@bgord/design 2.0.8 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css-purge.js +14 -14
- package/dist/index.d.ts +56 -28
- package/dist/lib.d.ts +2 -26
- package/dist/lib.js +2 -26
- package/dist/main.min.css +1 -1
- package/dist/main.min.css.br +0 -0
- package/dist/main.min.css.gz +0 -0
- package/package.json +5 -5
- package/readme.md +1 -2
package/dist/css-purge.js
CHANGED
|
@@ -20,16 +20,16 @@ var hp=Object.create;var{getPrototypeOf:pp,defineProperty:bi,getOwnPropertyNames
|
|
|
20
20
|
*
|
|
21
21
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
22
22
|
* Released under the MIT License.
|
|
23
|
-
*/var Xi=Ki(),ze=(e,t,r)=>{if(Xi(e)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Xi(t)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};if(typeof n.strictZeros==="boolean")n.relaxZeros=n.strictZeros===!1;let s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+s+i+o+a;if(ze.cache.hasOwnProperty(u))return ze.cache[u].result;let l=Math.min(e,t),c=Math.max(e,t);if(Math.abs(l-c)===1){let
|
|
23
|
+
*/var Xi=Ki(),ze=(e,t,r)=>{if(Xi(e)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Xi(t)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};if(typeof n.strictZeros==="boolean")n.relaxZeros=n.strictZeros===!1;let s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+s+i+o+a;if(ze.cache.hasOwnProperty(u))return ze.cache[u].result;let l=Math.min(e,t),c=Math.max(e,t);if(Math.abs(l-c)===1){let g=e+"|"+t;if(n.capture)return`(${g})`;if(n.wrap===!1)return g;return`(?:${g})`}let f=no(e)||no(t),h={min:e,max:t,a:l,b:c},_=[],p=[];if(f)h.isPadded=f,h.maxLen=String(h.max).length;if(l<0){let g=c<0?Math.abs(c):1;p=Ji(g,Math.abs(l),h,n),l=h.a=0}if(c>=0)_=Ji(l,c,h,n);if(h.negatives=p,h.positives=_,h.result=od(p,_,n),n.capture===!0)h.result=`(${h.result})`;else if(n.wrap!==!1&&_.length+p.length>1)h.result=`(?:${h.result})`;return ze.cache[u]=h,h.result};function od(e,t,r){let n=dn(e,t,"-",!1,r)||[],s=dn(t,e,"",!1,r)||[],i=dn(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ad(e,t){let r=1,n=1,s=eo(e,r),i=new Set([t]);while(e<=s&&s<=t)i.add(s),r+=1,s=eo(e,r);s=to(t+1,n)-1;while(e<s&&s<=t)i.add(s),n+=1,s=to(t+1,n)-1;return i=[...i],i.sort(cd),i}function ud(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=ld(e,t),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[u,l]=n[a];if(u===l)i+=u;else if(u!=="0"||l!=="9")i+=fd(u,l,r);else o++}if(o)i+=r.shorthand===!0?"\\d":"[0-9]";return{pattern:i,count:[o],digits:s}}function Ji(e,t,r,n){let s=ad(e,t),i=[],o=e,a;for(let u=0;u<s.length;u++){let l=s[u],c=ud(String(o),String(l),n),f="";if(!r.isPadded&&a&&a.pattern===c.pattern){if(a.count.length>1)a.count.pop();a.count.push(c.count[0]),a.string=a.pattern+ro(a.count),o=l+1;continue}if(r.isPadded)f=hd(l,r,n);c.string=f+c.pattern+ro(c.count),i.push(c),o=l+1,a=c}return i}function dn(e,t,r,n,s){let i=[];for(let o of e){let{string:a}=o;if(!n&&!Zi(t,"string",a))i.push(r+a);if(n&&Zi(t,"string",a))i.push(r+a)}return i}function ld(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function cd(e,t){return e>t?1:t>e?-1:0}function Zi(e,t,r){return e.some((n)=>n[t]===r)}function eo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function to(e,t){return e-e%Math.pow(10,t)}function ro(e){let[t=0,r=""]=e;if(r||t>1)return`{${t+(r?","+r:"")}}`;return""}function fd(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function no(e){return/^-?(0+)\d/.test(e)}function hd(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}ze.cache={};ze.clearCache=()=>ze.cache={};so.exports=ze});var mn=d(function(ZO,ho){/*!
|
|
24
24
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
25
25
|
*
|
|
26
26
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
27
27
|
* Licensed under the MIT License.
|
|
28
|
-
*/var pd=j("util"),ao=io(),oo=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),dd=(e)=>(t)=>e===!0?Number(t):String(t),gn=(e)=>typeof e==="number"||typeof e==="string"&&e!=="",kt=(e)=>Number.isInteger(+e),_n=(e)=>{let t=`${e}`,r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return!1;while(t[++r]==="0");return r>0},gd=(e,t,r)=>{if(typeof e==="string"||typeof t==="string")return!0;return r.stringify===!0},_d=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";if(n)e=e.slice(1);e=n+e.padStart(n?t-1:t,"0")}if(r===!1)return String(e);return e},dr=(e,t)=>{let r=e[0]==="-"?"-":"";if(r)e=e.slice(1),t--;while(e.length<t)e="0"+e;return r?"-"+e:e},md=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",s="",i="",o;if(e.positives.length)s=e.positives.map((a)=>dr(String(a),r)).join("|");if(e.negatives.length)i=`-(${n}${e.negatives.map((a)=>dr(String(a),r)).join("|")})`;if(s&&i)o=`${s}|${i}`;else o=s||i;if(t.wrap)return`(${n}${o})`;return o},uo=(e,t,r,n)=>{if(r)return ao(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},lo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return ao(e,t,r)},co=(...e)=>RangeError("Invalid range arguments: "+pd.inspect(...e)),fo=(e,t,r)=>{if(r.strictRanges===!0)throw co([e,t]);return[]},yd=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},vd=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw co([e,t]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i,a=String(e),u=String(t),l=String(r);r=Math.max(Math.abs(r),1);let c=_n(a)||_n(u)||_n(l),
|
|
29
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Oo=d(function(nC,Ao){var Ad=hr(),{MAX_LENGTH:bo,CHAR_BACKSLASH:yn,CHAR_BACKTICK:Od,CHAR_COMMA:Cd,CHAR_DOT:Pd,CHAR_LEFT_PARENTHESES:Td,CHAR_RIGHT_PARENTHESES:Rd,CHAR_LEFT_CURLY_BRACE:Ld,CHAR_RIGHT_CURLY_BRACE:Id,CHAR_LEFT_SQUARE_BRACKET:xo,CHAR_RIGHT_SQUARE_BRACKET:Eo,CHAR_DOUBLE_QUOTE:Md,CHAR_SINGLE_QUOTE:kd,CHAR_NO_BREAK_SPACE:Nd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dd}=wo(),qd=(e,t={})=>{if(typeof e!=="string")throw TypeError("Expected a string");let r=t||{},n=typeof r.maxLength==="number"?Math.min(bo,r.maxLength):bo;if(e.length>n)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],o=s,a=s,u=0,l=e.length,c=0,h=0,f,g=()=>e[c++],p=(_)=>{if(_.type==="text"&&a.type==="dot")a.type="text";if(a&&a.type==="text"&&_.type==="text"){a.value+=_.value;return}return o.nodes.push(_),_.parent=o,_.prev=a,a=_,_};p({type:"bos"});while(c<l){if(o=i[i.length-1],f=g(),f===Dd||f===Nd)continue;if(f===yn){p({type:"text",value:(t.keepEscaping?f:"")+g()});continue}if(f===Eo){p({type:"text",value:"\\"+f});continue}if(f===xo){u++;let _;while(c<l&&(_=g())){if(f+=_,_===xo){u++;continue}if(_===yn){f+=g();continue}if(_===Eo){if(u--,u===0)break}}p({type:"text",value:f});continue}if(f===Td){o=p({type:"paren",nodes:[]}),i.push(o),p({type:"text",value:f});continue}if(f===Rd){if(o.type!=="paren"){p({type:"text",value:f});continue}o=i.pop(),p({type:"text",value:f}),o=i[i.length-1];continue}if(f===Md||f===kd||f===Od){let _=f,m;if(t.keepQuotes!==!0)f="";while(c<l&&(m=g())){if(m===yn){f+=m+g();continue}if(m===_){if(t.keepQuotes===!0)f+=m;break}f+=m}p({type:"text",value:f});continue}if(f===Ld){h++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=p(m),i.push(o),p({type:"open",value:f});continue}if(f===Id){if(o.type!=="brace"){p({type:"text",value:f});continue}let _="close";o=i.pop(),o.close=!0,p({type:_,value:f}),h--,o=i[i.length-1];continue}if(f===Cd&&h>0){if(o.ranges>0){o.ranges=0;let _=o.nodes.shift();o.nodes=[_,{type:"text",value:Ad(o)}]}p({type:"comma",value:f}),o.commas++;continue}if(f===Pd&&h>0&&o.commas===0){let _=o.nodes;if(h===0||_.length===0){p({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){_.pop();let m=_[_.length-1];m.value+=a.value+f,a=m,o.ranges--;continue}p({type:"dot",value:f});continue}p({type:"text",value:f})}do if(o=i.pop(),o.type!=="root"){o.nodes.forEach((C)=>{if(!C.nodes){if(C.type==="open")C.isOpen=!0;if(C.type==="close")C.isClose=!0;if(!C.nodes)C.type="text";C.invalid=!0}});let _=i[i.length-1],m=_.nodes.indexOf(o);_.nodes.splice(m,1,...o.nodes)}while(i.length>0);return p({type:"eos"}),s};Ao.exports=qd});var To=d(function(sC,Po){var Co=hr(),Fd=_o(),jd=vo(),Bd=Oo(),ge=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=ge.create(n,t);if(Array.isArray(s))r.push(...s);else r.push(s)}else r=[].concat(ge.create(e,t));if(t&&t.expand===!0&&t.nodupes===!0)r=[...new Set(r)];return r};ge.parse=(e,t={})=>Bd(e,t);ge.stringify=(e,t={})=>{if(typeof e==="string")return Co(ge.parse(e,t),t);return Co(e,t)};ge.compile=(e,t={})=>{if(typeof e==="string")e=ge.parse(e,t);return Fd(e,t)};ge.expand=(e,t={})=>{if(typeof e==="string")e=ge.parse(e,t);let r=jd(e,t);if(t.noempty===!0)r=r.filter(Boolean);if(t.nodupes===!0)r=[...new Set(r)];return r};ge.create=(e,t={})=>{if(e===""||e.length<3)return[e];return t.expand!==!0?ge.compile(e,t):ge.expand(e,t)};Po.exports=ge});var Nt=d(function(iC,Lo){var Hd=j("path"),Ro={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Ud={...Ro,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},$d={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Lo.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:$d,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Hd.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ud:Ro}}});var Dt=d(function(Kd){var Gd=j("path"),Wd=process.platform==="win32",{REGEX_BACKSLASH:Vd,REGEX_REMOVE_BACKSLASH:Qd,REGEX_SPECIAL_CHARS:Yd,REGEX_SPECIAL_CHARS_GLOBAL:zd}=Nt();Kd.isObject=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e);Kd.hasRegexChars=(e)=>Yd.test(e);Kd.isRegexChar=(e)=>e.length===1&&Kd.hasRegexChars(e);Kd.escapeRegex=(e)=>e.replace(zd,"\\$1");Kd.toPosixSlashes=(e)=>e.replace(Vd,"/");Kd.removeBackslashes=(e)=>e.replace(Qd,(t)=>t==="\\"?"":t);Kd.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10)return!0;return!1};Kd.isWindows=(e)=>{if(e&&typeof e.windows==="boolean")return e.windows;return Wd===!0||Gd.sep==="\\"};Kd.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);if(n===-1)return e;if(e[n-1]==="\\")return Kd.escapeLast(e,t,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};Kd.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./"))r=r.slice(2),t.prefix="./";return r};Kd.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;if(t.negated===!0)i=`(?:^(?!${i}).*$)`;return i}});var Ho=d(function(aC,Bo){var ko=Dt(),{CHAR_ASTERISK:vn,CHAR_AT:og,CHAR_BACKWARD_SLASH:qt,CHAR_COMMA:ag,CHAR_DOT:Sn,CHAR_EXCLAMATION_MARK:wn,CHAR_FORWARD_SLASH:jo,CHAR_LEFT_CURLY_BRACE:bn,CHAR_LEFT_PARENTHESES:xn,CHAR_LEFT_SQUARE_BRACKET:ug,CHAR_PLUS:lg,CHAR_QUESTION_MARK:No,CHAR_RIGHT_CURLY_BRACE:cg,CHAR_RIGHT_PARENTHESES:Do,CHAR_RIGHT_SQUARE_BRACKET:fg}=Nt(),qo=(e)=>e===jo||e===qt,Fo=(e)=>{if(e.isPrefix!==!0)e.depth=e.isGlobstar?1/0:1},hg=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],o=[],a=[],u=e,l=-1,c=0,h=0,f=!1,g=!1,p=!1,_=!1,m=!1,C=!1,R=!1,L=!1,q=!1,D=!1,T=0,M,A,I={value:"",depth:0,isGlob:!1},V=()=>l>=n,S=()=>u.charCodeAt(l+1),J=()=>(M=A,u.charCodeAt(++l));while(l<n){A=J();let ce;if(A===qt){if(R=I.backslashes=!0,A=J(),A===bn)C=!0;continue}if(C===!0||A===bn){T++;while(V()!==!0&&(A=J())){if(A===qt){R=I.backslashes=!0,J();continue}if(A===bn){T++;continue}if(C!==!0&&A===Sn&&(A=J())===Sn){if(f=I.isBrace=!0,p=I.isGlob=!0,D=!0,s===!0)continue;break}if(C!==!0&&A===ag){if(f=I.isBrace=!0,p=I.isGlob=!0,D=!0,s===!0)continue;break}if(A===cg){if(T--,T===0){C=!1,f=I.isBrace=!0,D=!0;break}}}if(s===!0)continue;break}if(A===jo){if(i.push(l),o.push(I),I={value:"",depth:0,isGlob:!1},D===!0)continue;if(M===Sn&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0){if((A===lg||A===og||A===vn||A===No||A===wn)===!0&&S()===xn){if(p=I.isGlob=!0,_=I.isExtglob=!0,D=!0,A===wn&&l===c)q=!0;if(s===!0){while(V()!==!0&&(A=J())){if(A===qt){R=I.backslashes=!0,A=J();continue}if(A===Do){p=I.isGlob=!0,D=!0;break}}continue}break}}if(A===vn){if(M===vn)m=I.isGlobstar=!0;if(p=I.isGlob=!0,D=!0,s===!0)continue;break}if(A===No){if(p=I.isGlob=!0,D=!0,s===!0)continue;break}if(A===ug){while(V()!==!0&&(ce=J())){if(ce===qt){R=I.backslashes=!0,J();continue}if(ce===fg){g=I.isBracket=!0,p=I.isGlob=!0,D=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&A===wn&&l===c){L=I.negated=!0,c++;continue}if(r.noparen!==!0&&A===xn){if(p=I.isGlob=!0,s===!0){while(V()!==!0&&(A=J())){if(A===xn){R=I.backslashes=!0,A=J();continue}if(A===Do){D=!0;break}}continue}break}if(p===!0){if(D=!0,s===!0)continue;break}}if(r.noext===!0)_=!1,p=!1;let Q=u,Ge="",y="";if(c>0)Ge=u.slice(0,c),u=u.slice(c),h-=c;if(Q&&p===!0&&h>0)Q=u.slice(0,h),y=u.slice(h);else if(p===!0)Q="",y=u;else Q=u;if(Q&&Q!==""&&Q!=="/"&&Q!==u){if(qo(Q.charCodeAt(Q.length-1)))Q=Q.slice(0,-1)}if(r.unescape===!0){if(y)y=ko.removeBackslashes(y);if(Q&&R===!0)Q=ko.removeBackslashes(Q)}let v={prefix:Ge,input:e,start:c,base:Q,glob:y,isBrace:f,isBracket:g,isGlob:p,isExtglob:_,isGlobstar:m,negated:L,negatedExtglob:q};if(r.tokens===!0){if(v.maxDepth=0,!qo(A))o.push(I);v.tokens=o}if(r.parts===!0||r.tokens===!0){let ce;for(let F=0;F<i.length;F++){let Re=ce?ce+1:c,Le=i[F],de=e.slice(Re,Le);if(r.tokens){if(F===0&&c!==0)o[F].isPrefix=!0,o[F].value=Ge;else o[F].value=de;Fo(o[F]),v.maxDepth+=o[F].depth}if(F!==0||de!=="")a.push(de);ce=Le}if(ce&&ce+1<e.length){let F=e.slice(ce+1);if(a.push(F),r.tokens)o[o.length-1].value=F,Fo(o[o.length-1]),v.maxDepth+=o[o.length-1].depth}v.slashes=i,v.parts=a}return v};Bo.exports=hg});var Vo=d(function(uC,Wo){var Ft=Nt(),ue=Dt(),{MAX_LENGTH:gr,POSIX_REGEX_SOURCE:pg,REGEX_NON_SPECIAL_CHARS:dg,REGEX_SPECIAL_CHARS_BACKREF:gg,REPLACEMENTS:Uo}=Ft,_g=(e,t)=>{if(typeof t.expandRange==="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map((s)=>ue.escapeRegex(s)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,$o=(e)=>{let t=[],r=0,n=0,s=0,i="",o=!1;for(let a of e){if(o===!0){i+=a,o=!1;continue}if(a==="\\"){i+=a,o=!0;continue}if(a==='"'){s=s===1?0:1,i+=a;continue}if(s===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},mg=(e)=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Go=(e)=>{let t=e.trim(),r=!0;while(r===!0)if(r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t))t=t.slice(2,-1),r=!0;if(!mg(t))return;return t.replace(/\\(.)/g,"$1")},yg=(e)=>{let t=e.map(Go).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let s=t[r],i=t[n],o=s[0];if(!o||s!==o.repeat(s.length)||i!==o.repeat(i.length))continue;if(s===i||s.startsWith(i)||i.startsWith(s))return!0}return!1},En=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,s=0,i=!1;for(let o=1;o<e.length;o++){let a=e[o];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){s=s===1?0:1;continue}if(s===1)continue;if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(r>0)continue;if(a==="("){n++;continue}if(a===")"){if(n--,n===0){if(t===!0&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}}},vg=(e)=>{let t=0,r=[];while(t<e.length){let s=En(e.slice(t),!1);if(!s||s.type!=="*")return;let i=$o(s.body).map((a)=>a.trim());if(i.length!==1)return;let o=Go(i[0]);if(!o||o.length!==1)return;r.push(o),t+=s.end+1}if(r.length<1)return;return`${r.length===1?ue.escapeRegex(r[0]):`[${r.map((s)=>ue.escapeRegex(s)).join("")}]`}*`},Sg=(e)=>{let t=0,r=e.trim(),n=En(r);while(n)t++,r=n.body.trim(),n=En(r);return t},wg=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==="number"?t.maxExtglobRecursion:Ft.DEFAULT_MAX_EXTGLOB_RECURSION,n=$o(e).map((s)=>s.trim());if(n.length>1){if(n.some((s)=>s==="")||n.some((s)=>/^[*?]+$/.test(s))||yg(n))return{risky:!0}}for(let s of n){let i=vg(s);if(i)return{risky:!0,safeOutput:i};if(Sg(s)>r)return{risky:!0}}return{risky:!1}},An=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");e=Uo[e]||e;let r={...t},n=typeof r.maxLength==="number"?Math.min(gr,r.maxLength):gr,s=e.length;if(s>n)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},o=[i],a=r.capture?"":"?:",u=ue.isWindows(t),l=Ft.globChars(u),c=Ft.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:g,ONE_CHAR:p,DOTS_SLASH:_,NO_DOT:m,NO_DOT_SLASH:C,NO_DOTS_SLASH:R,QMARK:L,QMARK_NO_DOT:q,STAR:D,START_ANCHOR:T}=l,M=(x)=>`(${a}(?:(?!${T}${x.dot?_:h}).)*?)`,A=r.dot?"":m,I=r.dot?L:q,V=r.bash===!0?M(r):D;if(r.capture)V=`(${V})`;if(typeof r.noext==="boolean")r.noextglob=r.noext;let S={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ue.removePrefix(e,S),s=e.length;let J=[],Q=[],Ge=[],y=i,v,ce=()=>S.index===s-1,F=S.peek=(x=1)=>e[S.index+x],Re=S.advance=()=>e[++S.index]||"",Le=()=>e.slice(S.index+1),de=(x="",Z=0)=>{S.consumed+=x,S.index+=Z},ur=(x)=>{S.output+=x.output!=null?x.output:x.value,de(x.value)},cp=()=>{let x=1;while(F()==="!"&&(F(2)!=="("||F(3)==="?"))Re(),S.start++,x++;if(x%2===0)return!1;return S.negated=!0,S.start++,!0},lr=(x)=>{S[x]++,Ge.push(x)},We=(x)=>{S[x]--,Ge.pop()},N=(x)=>{if(y.type==="globstar"){let Z=S.braces>0&&(x.type==="comma"||x.type==="brace"),b=x.extglob===!0||J.length&&(x.type==="pipe"||x.type==="paren");if(x.type!=="slash"&&x.type!=="paren"&&!Z&&!b)S.output=S.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=V,S.output+=y.output}if(J.length&&x.type!=="paren")J[J.length-1].inner+=x.value;if(x.value||x.output)ur(x);if(y&&y.type==="text"&&x.type==="text"){y.value+=x.value,y.output=(y.output||"")+x.value;return}x.prev=y,o.push(x),y=x},cr=(x,Z)=>{let b={...c[Z],conditions:1,inner:""};b.prev=y,b.parens=S.parens,b.output=S.output,b.startIndex=S.index,b.tokensIndex=o.length;let k=(r.capture?"(":"")+b.open;lr("parens"),N({type:x,value:Z,output:S.output?"":p}),N({type:"paren",extglob:!0,value:Re(),output:k}),J.push(b)},fp=(x)=>{let Z=e.slice(x.startIndex,S.index+1),b=e.slice(x.startIndex+2,S.index),k=wg(b,r);if((x.type==="plus"||x.type==="star")&&k.risky){let G=k.safeOutput?(x.output?"":p)+(r.capture?`(${k.safeOutput})`:k.safeOutput):void 0,Ie=o[x.tokensIndex];Ie.type="text",Ie.value=Z,Ie.output=G||ue.escapeRegex(Z);for(let Me=x.tokensIndex+1;Me<o.length;Me++)o[Me].value="",o[Me].output="",delete o[Me].suffix;S.output=x.output+Ie.output,S.backtrack=!0,N({type:"paren",extglob:!0,value:v,output:""}),We("parens");return}let Y=x.close+(r.capture?")":""),ne;if(x.type==="negate"){let G=V;if(x.inner&&x.inner.length>1&&x.inner.includes("/"))G=M(r);if(G!==V||ce()||/^\)+$/.test(Le()))Y=x.close=`)$))${G}`;if(x.inner.includes("*")&&(ne=Le())&&/^\.[^\\/.]+$/.test(ne)){let Ie=An(ne,{...t,fastpaths:!1}).output;Y=x.close=`)${Ie})${G})`}if(x.prev.type==="bos")S.negatedExtglob=!0}N({type:"paren",extglob:!0,value:v,output:Y}),We("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let x=!1,Z=e.replace(gg,(b,k,Y,ne,G,Ie)=>{if(ne==="\\")return x=!0,b;if(ne==="?"){if(k)return k+ne+(G?L.repeat(G.length):"");if(Ie===0)return I+(G?L.repeat(G.length):"");return L.repeat(Y.length)}if(ne===".")return h.repeat(Y.length);if(ne==="*"){if(k)return k+ne+(G?V:"");return V}return k?b:`\\${b}`});if(x===!0)if(r.unescape===!0)Z=Z.replace(/\\/g,"");else Z=Z.replace(/\\+/g,(b)=>b.length%2===0?"\\\\":b?"\\":"");if(Z===e&&r.contains===!0)return S.output=e,S;return S.output=ue.wrapOutput(Z,S,t),S}while(!ce()){if(v=Re(),v==="\x00")continue;if(v==="\\"){let b=F();if(b==="/"&&r.bash!==!0)continue;if(b==="."||b===";")continue;if(!b){v+="\\",N({type:"text",value:v});continue}let k=/^\\+/.exec(Le()),Y=0;if(k&&k[0].length>2){if(Y=k[0].length,S.index+=Y,Y%2!==0)v+="\\"}if(r.unescape===!0)v=Re();else v+=Re();if(S.brackets===0){N({type:"text",value:v});continue}}if(S.brackets>0&&(v!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&v===":"){let b=y.value.slice(1);if(b.includes("[")){if(y.posix=!0,b.includes(":")){let k=y.value.lastIndexOf("["),Y=y.value.slice(0,k),ne=y.value.slice(k+2),G=pg[ne];if(G){if(y.value=Y+G,S.backtrack=!0,Re(),!i.output&&o.indexOf(y)===1)i.output=p;continue}}}}if(v==="["&&F()!==":"||v==="-"&&F()==="]")v=`\\${v}`;if(v==="]"&&(y.value==="["||y.value==="[^"))v=`\\${v}`;if(r.posix===!0&&v==="!"&&y.value==="[")v="^";y.value+=v,ur({value:v});continue}if(S.quotes===1&&v!=='"'){v=ue.escapeRegex(v),y.value+=v,ur({value:v});continue}if(v==='"'){if(S.quotes=S.quotes===1?0:1,r.keepQuotes===!0)N({type:"text",value:v});continue}if(v==="("){lr("parens"),N({type:"paren",value:v});continue}if(v===")"){if(S.parens===0&&r.strictBrackets===!0)throw SyntaxError(_t("opening","("));let b=J[J.length-1];if(b&&S.parens===b.parens+1){fp(J.pop());continue}N({type:"paren",value:v,output:S.parens?")":"\\)"}),We("parens");continue}if(v==="["){if(r.nobracket===!0||!Le().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw SyntaxError(_t("closing","]"));v=`\\${v}`}else lr("brackets");N({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){N({type:"text",value:v,output:`\\${v}`});continue}if(S.brackets===0){if(r.strictBrackets===!0)throw SyntaxError(_t("opening","["));N({type:"text",value:v,output:`\\${v}`});continue}We("brackets");let b=y.value.slice(1);if(y.posix!==!0&&b[0]==="^"&&!b.includes("/"))v=`/${v}`;if(y.value+=v,ur({value:v}),r.literalBrackets===!1||ue.hasRegexChars(b))continue;let k=ue.escapeRegex(y.value);if(S.output=S.output.slice(0,-y.value.length),r.literalBrackets===!0){S.output+=k,y.value=k;continue}y.value=`(${a}${k}|${y.value})`,S.output+=y.value;continue}if(v==="{"&&r.nobrace!==!0){lr("braces");let b={type:"brace",value:v,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};Q.push(b),N(b);continue}if(v==="}"){let b=Q[Q.length-1];if(r.nobrace===!0||!b){N({type:"text",value:v,output:v});continue}let k=")";if(b.dots===!0){let Y=o.slice(),ne=[];for(let G=Y.length-1;G>=0;G--){if(o.pop(),Y[G].type==="brace")break;if(Y[G].type!=="dots")ne.unshift(Y[G].value)}k=_g(ne,r),S.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Y=S.output.slice(0,b.outputIndex),ne=S.tokens.slice(b.tokensIndex);b.value=b.output="\\{",v=k="\\}",S.output=Y;for(let G of ne)S.output+=G.output||G.value}N({type:"brace",value:v,output:k}),We("braces"),Q.pop();continue}if(v==="|"){if(J.length>0)J[J.length-1].conditions++;N({type:"text",value:v});continue}if(v===","){let b=v,k=Q[Q.length-1];if(k&&Ge[Ge.length-1]==="braces")k.comma=!0,b="|";N({type:"comma",value:v,output:b});continue}if(v==="/"){if(y.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),y=i;continue}N({type:"slash",value:v,output:g});continue}if(v==="."){if(S.braces>0&&y.type==="dot"){if(y.value===".")y.output=h;let b=Q[Q.length-1];y.type="dots",y.output+=v,y.value+=v,b.dots=!0;continue}if(S.braces+S.parens===0&&y.type!=="bos"&&y.type!=="slash"){N({type:"text",value:v,output:h});continue}N({type:"dot",value:v,output:h});continue}if(v==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("qmark",v);continue}if(y&&y.type==="paren"){let k=F(),Y=v;if(k==="<"&&!ue.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(y.value==="("&&!/[!=<:]/.test(k)||k==="<"&&!/<([!=]|\w+>)/.test(Le()))Y=`\\${v}`;N({type:"text",value:v,output:Y});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){N({type:"qmark",value:v,output:q});continue}N({type:"qmark",value:v,output:L});continue}if(v==="!"){if(r.noextglob!==!0&&F()==="("){if(F(2)!=="?"||!/[!=<:]/.test(F(3))){cr("negate",v);continue}}if(r.nonegate!==!0&&S.index===0){cp();continue}}if(v==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("plus",v);continue}if(y&&y.value==="("||r.regex===!1){N({type:"plus",value:v,output:f});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||S.parens>0){N({type:"plus",value:v});continue}N({type:"plus",value:f});continue}if(v==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){N({type:"at",extglob:!0,value:v,output:""});continue}N({type:"text",value:v});continue}if(v!=="*"){if(v==="$"||v==="^")v=`\\${v}`;let b=dg.exec(Le());if(b)v+=b[0],S.index+=b[0].length;N({type:"text",value:v});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=v,y.output=V,S.backtrack=!0,S.globstar=!0,de(v);continue}let x=Le();if(r.noextglob!==!0&&/^\([^?]/.test(x)){cr("star",v);continue}if(y.type==="star"){if(r.noglobstar===!0){de(v);continue}let b=y.prev,k=b.prev,Y=b.type==="slash"||b.type==="bos",ne=k&&(k.type==="star"||k.type==="globstar");if(r.bash===!0&&(!Y||x[0]&&x[0]!=="/")){N({type:"star",value:v,output:""});continue}let G=S.braces>0&&(b.type==="comma"||b.type==="brace"),Ie=J.length&&(b.type==="pipe"||b.type==="paren");if(!Y&&b.type!=="paren"&&!G&&!Ie){N({type:"star",value:v,output:""});continue}while(x.slice(0,3)==="/**"){let Me=e[S.index+4];if(Me&&Me!=="/")break;x=x.slice(3),de("/**",3)}if(b.type==="bos"&&ce()){y.type="globstar",y.value+=v,y.output=M(r),S.output=y.output,S.globstar=!0,de(v);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ne&&ce()){S.output=S.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=M(r)+(r.strictSlashes?")":"|$)"),y.value+=v,S.globstar=!0,S.output+=b.output+y.output,de(v);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&x[0]==="/"){let Me=x[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=`${M(r)}${g}|${g}${Me})`,y.value+=v,S.output+=b.output+y.output,S.globstar=!0,de(v+Re()),N({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&x[0]==="/"){y.type="globstar",y.value+=v,y.output=`(?:^|${g}|${M(r)}${g})`,S.output=y.output,S.globstar=!0,de(v+Re()),N({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-y.output.length),y.type="globstar",y.output=M(r),y.value+=v,S.output+=y.output,S.globstar=!0,de(v);continue}let Z={type:"star",value:v,output:V};if(r.bash===!0){if(Z.output=".*?",y.type==="bos"||y.type==="slash")Z.output=A+Z.output;N(Z);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){Z.output=v,N(Z);continue}if(S.index===S.start||y.type==="slash"||y.type==="dot"){if(y.type==="dot")S.output+=C,y.output+=C;else if(r.dot===!0)S.output+=R,y.output+=R;else S.output+=A,y.output+=A;if(F()!=="*")S.output+=p,y.output+=p}N(Z)}while(S.brackets>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing","]"));S.output=ue.escapeLast(S.output,"["),We("brackets")}while(S.parens>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing",")"));S.output=ue.escapeLast(S.output,"("),We("parens")}while(S.braces>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing","}"));S.output=ue.escapeLast(S.output,"{"),We("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket"))N({type:"maybe_slash",value:"",output:`${g}?`});if(S.backtrack===!0){S.output="";for(let x of S.tokens)if(S.output+=x.output!=null?x.output:x.value,x.suffix)S.output+=x.suffix}return S};An.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength==="number"?Math.min(gr,r.maxLength):gr,s=e.length;if(s>n)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Uo[e]||e;let i=ue.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:g,START_ANCHOR:p}=Ft.globChars(i),_=r.dot?h:c,m=r.dot?f:c,C=r.capture?"":"?:",R={negated:!1,prefix:""},L=r.bash===!0?".*?":g;if(r.capture)L=`(${L})`;let q=(A)=>{if(A.noglobstar===!0)return L;return`(${C}(?:(?!${p}${A.dot?l:o}).)*?)`},D=(A)=>{switch(A){case"*":return`${_}${u}${L}`;case".*":return`${o}${u}${L}`;case"*.*":return`${_}${L}${o}${u}${L}`;case"*/*":return`${_}${L}${a}${u}${m}${L}`;case"**":return _+q(r);case"**/*":return`(?:${_}${q(r)}${a})?${m}${u}${L}`;case"**/*.*":return`(?:${_}${q(r)}${a})?${m}${L}${o}${u}${L}`;case"**/.*":return`(?:${_}${q(r)}${a})?${o}${u}${L}`;default:{let I=/^(.*?)\.(\w+)$/.exec(A);if(!I)return;let V=D(I[1]);if(!V)return;return V+o+I[2]}}},T=ue.removePrefix(e,R),M=D(T);if(M&&r.strictSlashes!==!0)M+=`${a}?`;return M};Wo.exports=An});var Yo=d(function(lC,Qo){var bg=j("path"),xg=Ho(),On=Vo(),Cn=Dt(),Eg=Nt(),Ag=(e)=>e&&typeof e==="object"&&!Array.isArray(e),te=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map((f)=>te(f,t,r));return(f)=>{for(let g of c){let p=g(f);if(p)return p}return!1}}let n=Ag(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n)throw TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Cn.isWindows(t),o=n?te.compileRe(e,t):te.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(s.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=te(s.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:g,output:p}=te.test(c,o,t,{glob:e,posix:i}),_={glob:e,state:a,regex:o,posix:i,input:c,output:p,match:g,isMatch:f};if(typeof s.onResult==="function")s.onResult(_);if(f===!1)return _.isMatch=!1,h?_:!1;if(u(c)){if(typeof s.onIgnore==="function")s.onIgnore(_);return _.isMatch=!1,h?_:!1}if(typeof s.onMatch==="function")s.onMatch(_);return h?_:!0};if(r)l.state=a;return l};te.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string")throw TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},o=i.format||(s?Cn.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;if(a===!1)u=o?o(e):e,a=u===n;if(a===!1||i.capture===!0)if(i.matchBase===!0||i.basename===!0)a=te.matchBase(e,t,r,s);else a=t.exec(u);return{isMatch:Boolean(a),match:a,output:u}};te.matchBase=(e,t,r,n=Cn.isWindows(r))=>(t instanceof RegExp?t:te.makeRe(t,r)).test(bg.basename(e));te.isMatch=(e,t,r)=>te(t,r)(e);te.parse=(e,t)=>{if(Array.isArray(e))return e.map((r)=>te.parse(r,t));return On(e,{...t,fastpaths:!1})};te.scan=(e,t)=>xg(e,t);te.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",o=s.contains?"":"$",a=`${i}(?:${e.output})${o}`;if(e&&e.negated===!0)a=`^(?!${a}).*$`;let u=te.toRegex(a,t);if(n===!0)u.state=e;return u};te.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!=="string")throw TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};if(t.fastpaths!==!1&&(e[0]==="."||e[0]==="*"))s.output=On.fastpaths(e,t);if(!s.output)s=On(e,t);return te.compileRe(s,t,r,n)};te.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};te.constants=Eg;Qo.exports=te});var ea=d(function(cC,Zo){var Ko=j("util"),Xo=To(),ke=Yo(),Pn=Dt(),zo=(e)=>e===""||e==="./",Jo=(e)=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},z=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,s=new Set,i=new Set,o=0,a=(c)=>{if(i.add(c.output),r&&r.onResult)r.onResult(c)};for(let c=0;c<t.length;c++){let h=ke(String(t[c]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;if(f)o++;for(let g of e){let p=h(g,!0);if(!(f?!p.isMatch:p.isMatch))continue;if(f)n.add(p.output);else n.delete(p.output),s.add(p.output)}}let l=(o===t.length?[...i]:[...s]).filter((c)=>!n.has(c));if(r&&l.length===0){if(r.failglob===!0)throw Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map((c)=>c.replace(/\\/g,"")):t}return l};z.match=z;z.matcher=(e,t)=>ke(e,t);z.isMatch=(e,t,r)=>ke(t,r)(e);z.any=z.isMatch;z.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,s=[],o=new Set(z(e,t,{...r,onResult:(a)=>{if(r.onResult)r.onResult(a);s.push(a.output)}}));for(let a of s)if(!o.has(a))n.add(a);return[...n]};z.contains=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ko.inspect(e)}"`);if(Array.isArray(t))return t.some((n)=>z.contains(e,n,r));if(typeof t==="string"){if(zo(e)||zo(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return z.isMatch(e,t,{...r,contains:!0})};z.matchKeys=(e,t,r)=>{if(!Pn.isObject(e))throw TypeError("Expected the first argument to be an object");let n=z(Object.keys(e),t,r),s={};for(let i of n)s[i]=e[i];return s};z.some=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=ke(String(s),r);if(n.some((o)=>i(o)))return!0}return!1};z.every=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=ke(String(s),r);if(!n.every((o)=>i(o)))return!1}return!0};z.all=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ko.inspect(e)}"`);return[].concat(t).every((n)=>ke(n,r)(e))};z.capture=(e,t,r)=>{let n=Pn.isWindows(r),i=ke.makeRe(String(e),{...r,capture:!0}).exec(n?Pn.toPosixSlashes(t):t);if(i)return i.slice(1).map((o)=>o===void 0?"":o)};z.makeRe=(...e)=>ke.makeRe(...e);z.scan=(...e)=>ke.scan(...e);z.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let s of Xo(String(n),t))r.push(ke.parse(s,t));return r};z.braces=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");if(t&&t.nobrace===!0||!Jo(e))return[e];return Xo(e,t)};z.braceExpand=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");return z.braces(e,{...t,expand:!0})};z.hasBraces=Jo;Zo.exports=z});var ha=d(function(ca){Object.defineProperty(ca,"__esModule",{value:!0});ca.isAbsolute=ca.partitionAbsoluteAndRelative=ca.removeDuplicateSlashes=ca.matchAny=ca.convertPatternsToRe=ca.makeRe=ca.getPatternParts=ca.expandBraceExpansion=ca.expandPatternsWithBraceExpansion=ca.isAffectDepthOfReadingPattern=ca.endsWithSlashGlobStar=ca.hasGlobStar=ca.getBaseDirectory=ca.isPatternRelatedToParentDirectory=ca.getPatternsOutsideCurrentDirectory=ca.getPatternsInsideCurrentDirectory=ca.getPositivePatterns=ca.getNegativePatterns=ca.isPositivePattern=ca.isNegativePattern=ca.convertToNegativePattern=ca.convertToPositivePattern=ca.isDynamicPattern=ca.isStaticPattern=void 0;var ta=j("path"),Og=Vi(),Tn=ea(),ra="**",Cg="\\",Pg=/[*?]|^!/,Tg=/\[[^[]*]/,Rg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Lg=/[!*+?@]\([^(]*\)/,Ig=/,|\.\./,Mg=/(?!^)\/{2,}/g;function na(e,t={}){return!sa(e,t)}ca.isStaticPattern=na;function sa(e,t={}){if(e==="")return!1;if(t.caseSensitiveMatch===!1||e.includes(Cg))return!0;if(Pg.test(e)||Tg.test(e)||Rg.test(e))return!0;if(t.extglob!==!1&&Lg.test(e))return!0;if(t.braceExpansion!==!1&&kg(e))return!0;return!1}ca.isDynamicPattern=sa;function kg(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Ig.test(n)}function Ng(e){return _r(e)?e.slice(1):e}ca.convertToPositivePattern=Ng;function Dg(e){return"!"+e}ca.convertToNegativePattern=Dg;function _r(e){return e.startsWith("!")&&e[1]!=="("}ca.isNegativePattern=_r;function ia(e){return!_r(e)}ca.isPositivePattern=ia;function qg(e){return e.filter(_r)}ca.getNegativePatterns=qg;function Fg(e){return e.filter(ia)}ca.getPositivePatterns=Fg;function jg(e){return e.filter((t)=>!Rn(t))}ca.getPatternsInsideCurrentDirectory=jg;function Bg(e){return e.filter(Rn)}ca.getPatternsOutsideCurrentDirectory=Bg;function Rn(e){return e.startsWith("..")||e.startsWith("./..")}ca.isPatternRelatedToParentDirectory=Rn;function Hg(e){return Og(e,{flipBackslashes:!1})}ca.getBaseDirectory=Hg;function Ug(e){return e.includes(ra)}ca.hasGlobStar=Ug;function oa(e){return e.endsWith("/"+ra)}ca.endsWithSlashGlobStar=oa;function $g(e){let t=ta.basename(e);return oa(e)||na(t)}ca.isAffectDepthOfReadingPattern=$g;function Gg(e){return e.reduce((t,r)=>t.concat(aa(r)),[])}ca.expandPatternsWithBraceExpansion=Gg;function aa(e){let t=Tn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter((r)=>r!=="")}ca.expandBraceExpansion=aa;function Wg(e,t){let{parts:r}=Tn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));if(r.length===0)r=[e];if(r[0].startsWith("/"))r[0]=r[0].slice(1),r.unshift("");return r}ca.getPatternParts=Wg;function ua(e,t){return Tn.makeRe(e,t)}ca.makeRe=ua;function Vg(e,t){return e.map((r)=>ua(r,t))}ca.convertPatternsToRe=Vg;function Qg(e,t){return t.some((r)=>r.test(e))}ca.matchAny=Qg;function Yg(e){return e.replace(Mg,"/")}ca.removeDuplicateSlashes=Yg;function zg(e){let t=[],r=[];for(let n of e)if(la(n))t.push(n);else r.push(n);return[t,r]}ca.partitionAbsoluteAndRelative=zg;function la(e){return ta.isAbsolute(e)}ca.isAbsolute=la});var _a=d(function(hC,ga){var v_=j("stream"),pa=v_.PassThrough,S_=Array.prototype.slice;ga.exports=w_;function w_(){let e=[],t=S_.call(arguments),r=!1,n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null)t.pop();else n={};let s=n.end!==!1,i=n.pipeError===!0;if(n.objectMode==null)n.objectMode=!0;if(n.highWaterMark==null)n.highWaterMark=65536;let o=pa(n);function a(){for(let c=0,h=arguments.length;c<h;c++)e.push(da(arguments[c],n));return u(),this}function u(){if(r)return;r=!0;let c=e.shift();if(!c){process.nextTick(l);return}if(!Array.isArray(c))c=[c];let h=c.length+1;function f(){if(--h>0)return;r=!1,u()}function g(p){function _(){if(p.removeListener("merge2UnpipeEnd",_),p.removeListener("end",_),i)p.removeListener("error",m);f()}function m(C){o.emit("error",C)}if(p._readableState.endEmitted)return f();if(p.on("merge2UnpipeEnd",_),p.on("end",_),i)p.on("error",m);p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<c.length;p++)g(c[p]);f()}function l(){if(r=!1,o.emit("queueDrain"),s)o.end()}if(o.setMaxListeners(0),o.add=a,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),t.length)a.apply(null,t);return o}function da(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe)e=e.pipe(pa(t));if(!e._readableState||!e.pause||!e.pipe)throw Error("Only readable stream can be merged.");e.pause()}else for(let r=0,n=e.length;r<n;r++)e[r]=da(e[r],t);return e}});var Sa=d(function(ya){Object.defineProperty(ya,"__esModule",{value:!0});ya.merge=void 0;var b_=_a();function x_(e){let t=b_(e);return e.forEach((r)=>{r.once("error",(n)=>t.emit("error",n))}),t.once("close",()=>ma(e)),t.once("end",()=>ma(e)),t}ya.merge=x_;function ma(e){e.forEach((t)=>t.emit("close"))}});var xa=d(function(wa){Object.defineProperty(wa,"__esModule",{value:!0});wa.isEmpty=wa.isString=void 0;function E_(e){return typeof e==="string"}wa.isString=E_;function A_(e){return e===""}wa.isEmpty=A_});var De=d(function(Ea){Object.defineProperty(Ea,"__esModule",{value:!0});Ea.string=Ea.stream=Ea.pattern=Ea.path=Ea.fs=Ea.errno=Ea.array=void 0;var C_=Oi();Ea.array=C_;var P_=Ti();Ea.errno=P_;var T_=Mi();Ea.fs=T_;var R_=ji();Ea.path=R_;var L_=ha();Ea.pattern=L_;var I_=Sa();Ea.stream=I_;var M_=xa();Ea.string=M_});var La=d(function(Ta){Object.defineProperty(Ta,"__esModule",{value:!0});Ta.convertPatternGroupToTask=Ta.convertPatternGroupsToTasks=Ta.groupPatternsByBaseDirectory=Ta.getNegativePatternsAsPositive=Ta.getPositivePatterns=Ta.convertPatternsToTasks=Ta.generate=void 0;var xe=De();function B_(e,t){let r=Oa(e,t),n=Oa(t.ignore,t),s=Ca(r),i=Pa(r,n),o=s.filter((c)=>xe.pattern.isStaticPattern(c,t)),a=s.filter((c)=>xe.pattern.isDynamicPattern(c,t)),u=Ln(o,i,!1),l=Ln(a,i,!0);return u.concat(l)}Ta.generate=B_;function Oa(e,t){let r=e;if(t.braceExpansion)r=xe.pattern.expandPatternsWithBraceExpansion(r);if(t.baseNameMatch)r=r.map((n)=>n.includes("/")?n:`**/${n}`);return r.map((n)=>xe.pattern.removeDuplicateSlashes(n))}function Ln(e,t,r){let n=[],s=xe.pattern.getPatternsOutsideCurrentDirectory(e),i=xe.pattern.getPatternsInsideCurrentDirectory(e),o=In(s),a=In(i);if(n.push(...Mn(o,t,r)),"."in a)n.push(kn(".",i,t,r));else n.push(...Mn(a,t,r));return n}Ta.convertPatternsToTasks=Ln;function Ca(e){return xe.pattern.getPositivePatterns(e)}Ta.getPositivePatterns=Ca;function Pa(e,t){return xe.pattern.getNegativePatterns(e).concat(t).map(xe.pattern.convertToPositivePattern)}Ta.getNegativePatternsAsPositive=Pa;function In(e){let t={};return e.reduce((r,n)=>{let s=xe.pattern.getBaseDirectory(n);if(s in r)r[s].push(n);else r[s]=[n];return r},t)}Ta.groupPatternsByBaseDirectory=In;function Mn(e,t,r){return Object.keys(e).map((n)=>kn(n,e[n],t,r))}Ta.convertPatternGroupsToTasks=Mn;function kn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(xe.pattern.convertToNegativePattern))}}Ta.convertPatternGroupToTask=kn});var Na=d(function(Ma){Object.defineProperty(Ma,"__esModule",{value:!0});Ma.read=void 0;function Q_(e,t,r){t.fs.lstat(e,(n,s)=>{if(n!==null){Ia(r,n);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){Nn(r,s);return}t.fs.stat(e,(i,o)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Ia(r,i);return}Nn(r,s);return}if(t.markSymbolicLink)o.isSymbolicLink=()=>!0;Nn(r,o)})})}Ma.read=Q_;function Ia(e,t){e(t)}function Nn(e,t){e(null,t)}});var Fa=d(function(Da){Object.defineProperty(Da,"__esModule",{value:!0});Da.read=void 0;function Y_(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);if(t.markSymbolicLink)n.isSymbolicLink=()=>!0;return n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Da.read=Y_});var Ha=d(function(ja){Object.defineProperty(ja,"__esModule",{value:!0});ja.createFileSystemAdapter=ja.FILE_SYSTEM_ADAPTER=void 0;var mr=j("fs");ja.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync};function z_(e){if(e===void 0)return ja.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},ja.FILE_SYSTEM_ADAPTER),e)}ja.createFileSystemAdapter=z_});var Ga=d(function($a){Object.defineProperty($a,"__esModule",{value:!0});var K_=Ha();class Ua{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=K_.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}$a.default=Ua});var Xe=d(function(Va){Object.defineProperty(Va,"__esModule",{value:!0});Va.statSync=Va.stat=Va.Settings=void 0;var Wa=Na(),J_=Fa(),qn=Ga();Va.Settings=qn.default;function Z_(e,t,r){if(typeof t==="function"){Wa.read(e,Fn(),t);return}Wa.read(e,Fn(t),r)}Va.stat=Z_;function em(e,t){let r=Fn(t);return J_.read(e,r)}Va.statSync=em;function Fn(e={}){if(e instanceof qn.default)return e;return new qn.default(e)}});var Ka=d(function(bC,za){/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ya;za.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(e)=>(Ya||(Ya=Promise.resolve())).then(e).catch((t)=>setTimeout(()=>{throw t},0))});var Ja=d(function(xC,Xa){/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */Xa.exports=sm;var nm=Ka();function sm(e,t){let r,n,s,i=!0;if(Array.isArray(e))r=[],n=e.length;else s=Object.keys(e),r={},n=s.length;function o(u){function l(){if(t)t(u,r);t=null}if(i)nm(l);else l()}function a(u,l,c){if(r[u]=c,--n===0||l)o(l)}if(!n)o(null);else if(s)s.forEach(function(u){e[u](function(l,c){a(u,l,c)})});else e.forEach(function(u,l){u(function(c,h){a(l,c,h)})});i=!1}});var jn=d(function(tu){Object.defineProperty(tu,"__esModule",{value:!0});tu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var yr=process.versions.node.split(".");if(yr[0]===void 0||yr[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Za=Number.parseInt(yr[0],10),im=Number.parseInt(yr[1],10),eu=10,om=10,am=Za>eu,um=Za===eu&&im>=om;tu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=am||um});var ou=d(function(su){Object.defineProperty(su,"__esModule",{value:!0});su.createDirentFromStats=void 0;class nu{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function lm(e,t){return new nu(e,t)}su.createDirentFromStats=lm});var Bn=d(function(au){Object.defineProperty(au,"__esModule",{value:!0});au.fs=void 0;var cm=ou();au.fs=cm});var Hn=d(function(lu){Object.defineProperty(lu,"__esModule",{value:!0});lu.joinPathSegments=void 0;function fm(e,t,r){if(e.endsWith(r))return e+t;return e+r+t}lu.joinPathSegments=fm});var yu=d(function(_u){Object.defineProperty(_u,"__esModule",{value:!0});_u.readdir=_u.readdirWithFileTypes=_u.read=void 0;var hm=Xe(),fu=Ja(),pm=jn(),hu=Bn(),pu=Hn();function dm(e,t,r){if(!t.stats&&pm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){du(e,t,r);return}gu(e,t,r)}_u.read=dm;function du(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,s)=>{if(n!==null){vr(r,n);return}let i=s.map((a)=>({dirent:a,name:a.name,path:pu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Un(r,i);return}let o=i.map((a)=>gm(a,t));fu(o,(a,u)=>{if(a!==null){vr(r,a);return}Un(r,u)})})}_u.readdirWithFileTypes=du;function gm(e,t){return(r)=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=hu.fs.createDirentFromStats(e.name,s),r(null,e)})}}function gu(e,t,r){t.fs.readdir(e,(n,s)=>{if(n!==null){vr(r,n);return}let i=s.map((o)=>{let a=pu.joinPathSegments(e,o,t.pathSegmentSeparator);return(u)=>{hm.stat(a,t.fsStatSettings,(l,c)=>{if(l!==null){u(l);return}let h={name:o,path:a,dirent:hu.fs.createDirentFromStats(o,c)};if(t.stats)h.stats=c;u(null,h)})}});fu(i,(o,a)=>{if(o!==null){vr(r,o);return}Un(r,a)})})}_u.readdir=gu;function vr(e,t){e(t)}function Un(e,t){e(null,t)}});var Au=d(function(xu){Object.defineProperty(xu,"__esModule",{value:!0});xu.readdir=xu.readdirWithFileTypes=xu.read=void 0;var ym=Xe(),vm=jn(),vu=Bn(),Su=Hn();function Sm(e,t){if(!t.stats&&vm.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return wu(e,t);return bu(e,t)}xu.read=Sm;function wu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n)=>{let s={dirent:n,name:n.name,path:Su.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(s.path);s.dirent=vu.fs.createDirentFromStats(s.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return s})}xu.readdirWithFileTypes=wu;function bu(e,t){return t.fs.readdirSync(e).map((n)=>{let s=Su.joinPathSegments(e,n,t.pathSegmentSeparator),i=ym.statSync(s,t.fsStatSettings),o={name:n,path:s,dirent:vu.fs.createDirentFromStats(n,i)};if(t.stats)o.stats=i;return o})}xu.readdir=bu});var Pu=d(function(Ou){Object.defineProperty(Ou,"__esModule",{value:!0});Ou.createFileSystemAdapter=Ou.FILE_SYSTEM_ADAPTER=void 0;var mt=j("fs");Ou.FILE_SYSTEM_ADAPTER={lstat:mt.lstat,stat:mt.stat,lstatSync:mt.lstatSync,statSync:mt.statSync,readdir:mt.readdir,readdirSync:mt.readdirSync};function xm(e){if(e===void 0)return Ou.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},Ou.FILE_SYSTEM_ADAPTER),e)}Ou.createFileSystemAdapter=xm});var Lu=d(function(Ru){Object.defineProperty(Ru,"__esModule",{value:!0});var Em=j("path"),Am=Xe(),Om=Pu();class Tu{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Om.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Em.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Am.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}Ru.default=Tu});var Sr=d(function(Mu){Object.defineProperty(Mu,"__esModule",{value:!0});Mu.Settings=Mu.scandirSync=Mu.scandir=void 0;var Iu=yu(),Pm=Au(),Gn=Lu();Mu.Settings=Gn.default;function Tm(e,t,r){if(typeof t==="function"){Iu.read(e,Wn(),t);return}Iu.read(e,Wn(t),r)}Mu.scandir=Tm;function Rm(e,t){let r=Wn(t);return Pm.read(e,r)}Mu.scandirSync=Rm;function Wn(e={}){if(e instanceof Gn.default)return e;return new Gn.default(e)}});var Du=d(function(MC,Nu){function Mm(e){var t=new e,r=t;function n(){var i=t;if(i.next)t=i.next;else t=new e,r=t;return i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Nu.exports=Mm});var Fu=d(function(kC,Vn){var km=Du();function qu(e,t,r){if(typeof e==="function")r=t,t=e,e=null;if(!(r>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var n=km(Nm),s=null,i=null,o=0,a=null,u={push:_,drain:he,saturated:he,pause:c,paused:!1,get concurrency(){return r},set concurrency(T){if(!(T>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(r=T,u.paused)return;for(;s&&o<r;)o++,C()},running:l,resume:g,idle:p,length:h,getQueue:f,unshift:m,empty:he,kill:R,killAndDrain:L,error:D,abort:q};return u;function l(){return o}function c(){u.paused=!0}function h(){var T=s,M=0;while(T)T=T.next,M++;return M}function f(){var T=s,M=[];while(T)M.push(T.value),T=T.next;return M}function g(){if(!u.paused)return;if(u.paused=!1,s===null){o++,C();return}for(;s&&o<r;)o++,C()}function p(){return o===0&&u.length()===0}function _(T,M){var A=n.get();if(A.context=e,A.release=C,A.value=T,A.callback=M||he,A.errorHandler=a,o>=r||u.paused)if(i)i.next=A,i=A;else s=A,i=A,u.saturated();else o++,t.call(e,A.value,A.worked)}function m(T,M){var A=n.get();if(A.context=e,A.release=C,A.value=T,A.callback=M||he,A.errorHandler=a,o>=r||u.paused)if(s)A.next=s,s=A;else s=A,i=A,u.saturated();else o++,t.call(e,A.value,A.worked)}function C(T){if(T)n.release(T);var M=s;if(M&&o<=r)if(!u.paused){if(i===s)i=null;if(s=M.next,M.next=null,t.call(e,M.value,M.worked),i===null)u.empty()}else o--;else if(--o===0)u.drain()}function R(){s=null,i=null,u.drain=he}function L(){s=null,i=null,u.drain(),u.drain=he}function q(){var T=s;s=null,i=null;while(T){var M=T.next,A=T.callback,I=T.errorHandler,V=T.value,S=T.context;if(T.value=null,T.callback=he,T.errorHandler=null,I)I(Error("abort"),V);A.call(S,Error("abort")),T.release(T),T=M}u.drain=he}function D(T){a=T}}function he(){}function Nm(){this.value=null,this.callback=he,this.next=null,this.release=he,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var{callback:s,errorHandler:i,value:o}=e;if(e.value=null,e.callback=he,e.errorHandler)i(r,o);s.call(e.context,r,n),e.release(e)}}function Dm(e,t,r){if(typeof e==="function")r=t,t=e,e=null;function n(c,h){t.call(this,c).then(function(f){h(null,f)},h)}var s=qu(e,n,r),{push:i,unshift:o}=s;return s.push=a,s.unshift=u,s.drained=l,s;function a(c){var h=new Promise(function(f,g){i(c,function(p,_){if(p){g(p);return}f(_)})});return h.catch(he),h}function u(c){var h=new Promise(function(f,g){o(c,function(p,_){if(p){g(p);return}f(_)})});return h.catch(he),h}function l(){var c=new Promise(function(h){process.nextTick(function(){if(s.idle())h();else{var f=s.drain;s.drain=function(){if(typeof f==="function")f();h(),s.drain=f}}})});return c}}Vn.exports=qu;Vn.exports.promise=Dm});var wr=d(function(ju){Object.defineProperty(ju,"__esModule",{value:!0});ju.joinPathSegments=ju.replacePathSegmentSeparator=ju.isAppliedFilter=ju.isFatalError=void 0;function qm(e,t){if(e.errorFilter===null)return!0;return!e.errorFilter(t)}ju.isFatalError=qm;function Fm(e,t){return e===null||e(t)}ju.isAppliedFilter=Fm;function jm(e,t){return e.split(/[/\\]/).join(t)}ju.replacePathSegmentSeparator=jm;function Bm(e,t,r){if(e==="")return t;if(e.endsWith(r))return e+t;return e+r+t}ju.joinPathSegments=Bm});var Qn=d(function(Uu){Object.defineProperty(Uu,"__esModule",{value:!0});var Gm=wr();class Hu{constructor(e,t){this._root=e,this._settings=t,this._root=Gm.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}Uu.default=Hu});var Yn=d(function(Gu){Object.defineProperty(Gu,"__esModule",{value:!0});var Vm=j("events"),Qm=Sr(),Ym=Fu(),br=wr(),zm=Qn();class $u extends zm.default{constructor(e,t){super(e,t);this._settings=t,this._scandir=Qm.scandir,this._emitter=new Vm.EventEmitter,this._queue=Ym(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){let r={directory:e,base:t};this._queue.push(r,(n)=>{if(n!==null)this._handleError(n)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){t(r,void 0);return}for(let s of n)this._handleEntry(s,e.base);t(null,void 0)})}_handleError(e){if(this._isDestroyed||!br.isFatalError(this._settings,e))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;if(t!==void 0)e.path=br.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(br.isAppliedFilter(this._settings.entryFilter,e))this._emitEntry(e);if(e.dirent.isDirectory()&&br.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}Gu.default=$u});var Qu=d(function(Vu){Object.defineProperty(Vu,"__esModule",{value:!0});var Xm=Yn();class Wu{constructor(e,t){this._root=e,this._settings=t,this._reader=new Xm.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t)=>{Jm(e,t)}),this._reader.onEntry((t)=>{this._storage.push(t)}),this._reader.onEnd(()=>{Zm(e,this._storage)}),this._reader.read()}}Vu.default=Wu;function Jm(e,t){e(t)}function Zm(e,t){e(null,t)}});var Ku=d(function(zu){Object.defineProperty(zu,"__esModule",{value:!0});var ty=j("stream"),ry=Yn();class Yu{constructor(e,t){this._root=e,this._settings=t,this._reader=new ry.default(this._root,this._settings),this._stream=new ty.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((e)=>{this._stream.emit("error",e)}),this._reader.onEntry((e)=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}zu.default=Yu});var Zu=d(function(Ju){Object.defineProperty(Ju,"__esModule",{value:!0});var sy=Sr(),xr=wr(),iy=Qn();class Xu extends iy.default{constructor(){super(...arguments);this._scandir=sy.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let n of r)this._handleEntry(n,t)}catch(r){this._handleError(r)}}_handleError(e){if(!xr.isFatalError(this._settings,e))return;throw e}_handleEntry(e,t){let r=e.path;if(t!==void 0)e.path=xr.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(xr.isAppliedFilter(this._settings.entryFilter,e))this._pushToStorage(e);if(e.dirent.isDirectory()&&xr.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}Ju.default=Xu});var rl=d(function(tl){Object.defineProperty(tl,"__esModule",{value:!0});var ay=Zu();class el{constructor(e,t){this._root=e,this._settings=t,this._reader=new ay.default(this._root,this._settings)}read(){return this._reader.read()}}tl.default=el});var il=d(function(sl){Object.defineProperty(sl,"__esModule",{value:!0});var ly=j("path"),cy=Sr();class nl{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ly.sep),this.fsScandirSettings=new cy.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}sl.default=nl});var Ar=d(function(al){Object.defineProperty(al,"__esModule",{value:!0});al.Settings=al.walkStream=al.walkSync=al.walk=void 0;var ol=Qu(),hy=Ku(),py=rl(),zn=il();al.Settings=zn.default;function dy(e,t,r){if(typeof t==="function"){new ol.default(e,Er()).read(t);return}new ol.default(e,Er(t)).read(r)}al.walk=dy;function gy(e,t){let r=Er(t);return new py.default(e,r).read()}al.walkSync=gy;function _y(e,t){let r=Er(t);return new hy.default(e,r).read()}al.walkStream=_y;function Er(e={}){if(e instanceof zn.default)return e;return new zn.default(e)}});var Or=d(function(fl){Object.defineProperty(fl,"__esModule",{value:!0});var Sy=j("path"),wy=Xe(),ll=De();class cl{constructor(e){this._settings=e,this._fsStatSettings=new wy.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Sy.resolve(this._settings.cwd,e)}_makeEntry(e,t){let r={name:t,path:t,dirent:ll.fs.createDirentFromStats(t,e)};if(this._settings.stats)r.stats=e;return r}_isFatalError(e){return!ll.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}fl.default=cl});var Kn=d(function(pl){Object.defineProperty(pl,"__esModule",{value:!0});var xy=j("stream"),Ey=Xe(),Ay=Ar(),Oy=Or();class hl extends Oy.default{constructor(){super(...arguments);this._walkStream=Ay.walkStream,this._stat=Ey.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let r=e.map(this._getFullEntryPath,this),n=new xy.PassThrough({objectMode:!0});n._write=(s,i,o)=>this._getEntry(r[s],e[s],t).then((a)=>{if(a!==null&&t.entryFilter(a))n.push(a);if(s===r.length-1)n.end();o()}).catch(o);for(let s=0;s<r.length;s++)n.write(s);return n}_getEntry(e,t,r){return this._getStat(e).then((n)=>this._makeEntry(n,t)).catch((n)=>{if(r.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?t(s):r(n))})}}pl.default=hl});var _l=d(function(gl){Object.defineProperty(gl,"__esModule",{value:!0});var Py=Ar(),Ty=Or(),Ry=Kn();class dl extends Ty.default{constructor(){super(...arguments);this._walkAsync=Py.walk,this._readerStream=new Ry.default(this._settings)}dynamic(e,t){return new Promise((r,n)=>{this._walkAsync(e,t,(s,i)=>{if(s===null)r(i);else n(s)})})}async static(e,t){let r=[],n=this._readerStream.static(e,t);return new Promise((s,i)=>{n.once("error",i),n.on("data",(o)=>r.push(o)),n.once("end",()=>s(r))})}}gl.default=dl});var vl=d(function(yl){Object.defineProperty(yl,"__esModule",{value:!0});var jt=De();class ml{constructor(e,t,r){this._patterns=e,this._settings=t,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(e){return jt.pattern.getPatternParts(e,this._micromatchOptions).map((r)=>{if(!jt.pattern.isDynamicPattern(r,this._settings))return{dynamic:!1,pattern:r};return{dynamic:!0,pattern:r,patternRe:jt.pattern.makeRe(r,this._micromatchOptions)}})}_splitSegmentsIntoSections(e){return jt.array.splitWhen(e,(t)=>t.dynamic&&jt.pattern.hasGlobStar(t.pattern))}}yl.default=ml});var bl=d(function(wl){Object.defineProperty(wl,"__esModule",{value:!0});var My=vl();class Sl extends My.default{match(e){let t=e.split("/"),r=t.length,n=this._storage.filter((s)=>!s.complete||s.segments.length>r);for(let s of n){let i=s.sections[0];if(!s.complete&&r>i.length)return!0;if(t.every((a,u)=>{let l=s.segments[u];if(l.dynamic&&l.patternRe.test(a))return!0;if(!l.dynamic&&l.pattern===a)return!0;return!1}))return!0}return!1}}wl.default=Sl});var Al=d(function(El){Object.defineProperty(El,"__esModule",{value:!0});var Cr=De(),Ny=bl();class xl{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,r){let n=this._getMatcher(t),s=this._getNegativePatternsRe(r);return(i)=>this._filter(e,i,n,s)}_getMatcher(e){return new Ny.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let t=e.filter(Cr.pattern.isAffectDepthOfReadingPattern);return Cr.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,n){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;let s=Cr.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(s,r))return!1;return this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,t){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let r=t.split("/").length;if(e==="")return r;let n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!Cr.pattern.matchAny(e,t)}}El.default=xl});var Pl=d(function(Cl){Object.defineProperty(Cl,"__esModule",{value:!0});var Ve=De();class Ol{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){let[r,n]=Ve.pattern.partitionAbsoluteAndRelative(t),s={positive:{all:Ve.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Ve.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Ve.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(i)=>this._filter(i,s)}_filter(e,t){let r=Ve.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let n=this._isMatchToPatternsSet(r,t,e.dirent.isDirectory());if(this._settings.unique&&n)this._createIndexRecord(r);return n}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,r){if(!this._isMatchToPatterns(e,t.positive.all,r))return!1;if(this._isMatchToPatterns(e,t.negative.relative,r))return!1;if(this._isMatchToAbsoluteNegative(e,t.negative.absolute,r))return!1;return!0}_isMatchToAbsoluteNegative(e,t,r){if(t.length===0)return!1;let n=Ve.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(n,t,r)}_isMatchToPatterns(e,t,r){if(t.length===0)return!1;let n=Ve.pattern.matchAny(e,t);if(!n&&r)return Ve.pattern.matchAny(e+"/",t);return n}}Cl.default=Ol});var Ll=d(function(Rl){Object.defineProperty(Rl,"__esModule",{value:!0});var Fy=De();class Tl{constructor(e){this._settings=e}getFilter(){return(e)=>this._isNonFatalError(e)}_isNonFatalError(e){return Fy.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}Rl.default=Tl});var Nl=d(function(kl){Object.defineProperty(kl,"__esModule",{value:!0});var Il=De();class Ml{constructor(e){this._settings=e}getTransformer(){return(e)=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute)t=Il.path.makeAbsolute(this._settings.cwd,t),t=Il.path.unixify(t);if(this._settings.markDirectories&&e.dirent.isDirectory())t+="/";if(!this._settings.objectMode)return t;return Object.assign(Object.assign({},e),{path:t})}}kl.default=Ml});var Pr=d(function(ql){Object.defineProperty(ql,"__esModule",{value:!0});var Hy=j("path"),Uy=Al(),$y=Pl(),Gy=Ll(),Wy=Nl();class Dl{constructor(e){this._settings=e,this.errorFilter=new Gy.default(this._settings),this.entryFilter=new $y.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Uy.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Wy.default(this._settings)}_getRootDirectory(e){return Hy.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}ql.default=Dl});var Bl=d(function(jl){Object.defineProperty(jl,"__esModule",{value:!0});var Qy=_l(),Yy=Pr();class Fl extends Yy.default{constructor(){super(...arguments);this._reader=new Qy.default(this._settings)}async read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(t,e,r)).map((s)=>r.transform(s))}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}jl.default=Fl});var $l=d(function(Ul){Object.defineProperty(Ul,"__esModule",{value:!0});var Ky=j("stream"),Xy=Kn(),Jy=Pr();class Hl extends Jy.default{constructor(){super(...arguments);this._reader=new Xy.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e),n=this.api(t,e,r),s=new Ky.Readable({objectMode:!0,read:()=>{}});return n.once("error",(i)=>s.emit("error",i)).on("data",(i)=>s.emit("data",r.transform(i))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}Ul.default=Hl});var Vl=d(function(Wl){Object.defineProperty(Wl,"__esModule",{value:!0});var ev=Xe(),tv=Ar(),rv=Or();class Gl extends rv.default{constructor(){super(...arguments);this._walkSync=tv.walkSync,this._statSync=ev.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let r=[];for(let n of e){let s=this._getFullEntryPath(n),i=this._getEntry(s,n,t);if(i===null||!t.entryFilter(i))continue;r.push(i)}return r}_getEntry(e,t,r){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(n){if(r.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}Wl.default=Gl});var zl=d(function(Yl){Object.defineProperty(Yl,"__esModule",{value:!0});var sv=Vl(),iv=Pr();class Ql extends iv.default{constructor(){super(...arguments);this._reader=new sv.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(t,e,r).map(r.transform)}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}Yl.default=Ql});var Jl=d(function(Xl){Object.defineProperty(Xl,"__esModule",{value:!0});Xl.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yt=j("fs"),av=j("os"),uv=Math.max(av.cpus().length,1);Xl.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yt.lstat,lstatSync:yt.lstatSync,stat:yt.stat,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};class Kl{constructor(e={}){if(this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uv),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===void 0?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xl.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}Xl.default=Kl});var tc=d(function(iP,ec){var Zl=La(),cv=Bl(),fv=$l(),hv=zl(),Jn=Jl(),ye=De();async function Zn(e,t){Ee(e);let r=es(e,cv.default,t),n=await Promise.all(r);return ye.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(l,c){Ee(l);let h=es(l,hv.default,c);return ye.array.flatten(h)}e.sync=t;function r(l,c){Ee(l);let h=es(l,fv.default,c);return ye.stream.merge(h)}e.stream=r;function n(l,c){Ee(l);let h=[].concat(l),f=new Jn.default(c);return Zl.generate(h,f)}e.generateTasks=n;function s(l,c){Ee(l);let h=new Jn.default(c);return ye.pattern.isDynamicPattern(l,h)}e.isDynamicPattern=s;function i(l){return Ee(l),ye.path.escape(l)}e.escapePath=i;function o(l){return Ee(l),ye.path.convertPathToPattern(l)}e.convertPathToPattern=o;let a;(function(l){function c(f){return Ee(f),ye.path.escapePosixPath(f)}l.escapePath=c;function h(f){return Ee(f),ye.path.convertPosixPathToPattern(f)}l.convertPathToPattern=h})(a=e.posix||(e.posix={}));let u;(function(l){function c(f){return Ee(f),ye.path.escapeWindowsPath(f)}l.escapePath=c;function h(f){return Ee(f),ye.path.convertWindowsPathToPattern(f)}l.convertPathToPattern=h})(u=e.win32||(e.win32={}))})(Zn||(Zn={}));function es(e,t,r){let n=[].concat(e),s=new Jn.default(r),i=Zl.generate(n,s),o=new t(s);return i.map(o.read,o)}function Ee(e){if(![].concat(e).every((n)=>ye.string.isString(n)&&!ye.string.isEmpty(n)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}ec.exports=Zn});var rs=d(function(oP,ts){var Rr=process||{},rc=Rr.argv||[],Tr=Rr.env||{},pv=!(!!Tr.NO_COLOR||rc.includes("--no-color"))&&(!!Tr.FORCE_COLOR||rc.includes("--color")||Rr.platform==="win32"||(Rr.stdout||{}).isTTY&&Tr.TERM!=="dumb"||!!Tr.CI),dv=(e,t,r=e)=>(n)=>{let s=""+n,i=s.indexOf(t,e.length);return~i?e+gv(s,t,r,i)+t:e+s+t},gv=(e,t,r,n)=>{let s="",i=0;do s+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i);while(~n);return s+e.substring(i)},nc=(e=pv)=>{let t=e?dv:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ts.exports=nc();ts.exports.createColors=nc});var ns=d(function(aP,ic){var Lr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ir=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_v=/.[\r\n"'(/\\]/,sc=/[\da-f]/i;ic.exports=function(t,r={}){let n=t.css.valueOf(),s=r.ignoreErrors,i,o,a,u,l,c,h,f,g,p,_=n.length,m=0,C=[],R=[],L=-1;function q(){return m}function D(I){throw t.error("Unclosed "+I,m)}function T(){return R.length===0&&m>=_}function M(I){if(R.length)return R.pop();if(m>=_)return;let V=I?I.ignoreUnclosed:!1;switch(i=n.charCodeAt(m),i){case 10:case 32:case 9:case 13:case 12:{u=m;do u+=1,i=n.charCodeAt(u);while(i===32||i===10||i===9||i===13||i===12);c=["space",n.slice(m,u)],m=u-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let S=String.fromCharCode(i);c=[S,S,m];break}case 40:{if(p=C.length?C.pop()[1]:"",g=n.charCodeAt(m+1),p==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(s||V){u=m;break}else D("bracket");f=u;while(n.charCodeAt(f-1)===92)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else if(m<=L)c=["(","(",m];else if(u=n.indexOf(")",m+1),o=n.slice(m,u+1),u===-1||_v.test(o))L=u===-1?_:u,c=["(","(",m];else c=["brackets",o,m,u],m=u;break}case 39:case 34:{l=i===39?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(s||V){u=m+1;break}else D("string");f=u;while(n.charCodeAt(f-1)===92)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case 64:{if(Lr.lastIndex=m+1,Lr.test(n),Lr.lastIndex===0)u=n.length-1;else u=Lr.lastIndex-2;c=["at-word",n.slice(m,u+1),m,u],m=u;break}case 92:{u=m,a=!0;while(n.charCodeAt(u+1)===92)u+=1,a=!a;if(i=n.charCodeAt(u+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12){if(u+=1,sc.test(n.charAt(u))){while(sc.test(n.charAt(u+1)))u+=1;if(n.charCodeAt(u+1)===32)u+=1}}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{if(i===47&&n.charCodeAt(m+1)===42){if(u=n.indexOf("*/",m+2)+1,u===0)if(s||V)u=n.length;else D("comment");c=["comment",n.slice(m,u+1),m,u],m=u}else{if(Ir.lastIndex=m+1,Ir.test(n),Ir.lastIndex===0)u=n.length-1;else u=Ir.lastIndex-2;c=["word",n.slice(m,u+1),m,u],C.push(c),m=u}break}}return m++,c}function A(I){R.push(I)}return{back:A,endOfFile:T,nextToken:M,position:q}}});var ss=d(function(uP,uc){var fe=rs(),mv=ns(),oc;function yv(e){oc=e}var vv={";":fe.yellow,":":fe.yellow,"(":fe.cyan,")":fe.cyan,"[":fe.yellow,"]":fe.yellow,"{":fe.yellow,"}":fe.yellow,"at-word":fe.cyan,brackets:fe.cyan,call:fe.cyan,class:fe.yellow,comment:fe.gray,hash:fe.magenta,string:fe.green};function Sv([e,t],r){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return e}function ac(e){let t=mv(new oc(e),{ignoreErrors:!0}),r="";while(!t.endOfFile()){let n=t.nextToken(),s=vv[Sv(n,t)];if(s)r+=n[1].split(/\r?\n/).map((i)=>s(i)).join(`
|
|
30
|
-
`);else r+=n[1]}return r}ac.registerInput=yv;uc.exports=ac});var Mr=d(function(lP,fc){var cc=rs(),lc=ss();class Bt extends Error{constructor(e,t,r,n,s,i){super(e);if(this.name="CssSyntaxError",this.reason=e,s)this.file=s;if(n)this.source=n;if(i)this.plugin=i;if(typeof t<"u"&&typeof r<"u")if(typeof t==="number")this.line=t,this.column=r;else this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,Bt)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=cc.isColorSupported;let r=(l)=>l,n=(l)=>l,s=(l)=>l;if(e){let{bold:l,gray:c,red:
|
|
31
|
-
`+R+n("^")}let
|
|
32
|
-
`+
|
|
28
|
+
*/var pd=j("util"),ao=io(),oo=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),dd=(e)=>(t)=>e===!0?Number(t):String(t),gn=(e)=>typeof e==="number"||typeof e==="string"&&e!=="",kt=(e)=>Number.isInteger(+e),_n=(e)=>{let t=`${e}`,r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return!1;while(t[++r]==="0");return r>0},gd=(e,t,r)=>{if(typeof e==="string"||typeof t==="string")return!0;return r.stringify===!0},_d=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";if(n)e=e.slice(1);e=n+e.padStart(n?t-1:t,"0")}if(r===!1)return String(e);return e},dr=(e,t)=>{let r=e[0]==="-"?"-":"";if(r)e=e.slice(1),t--;while(e.length<t)e="0"+e;return r?"-"+e:e},md=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",s="",i="",o;if(e.positives.length)s=e.positives.map((a)=>dr(String(a),r)).join("|");if(e.negatives.length)i=`-(${n}${e.negatives.map((a)=>dr(String(a),r)).join("|")})`;if(s&&i)o=`${s}|${i}`;else o=s||i;if(t.wrap)return`(${n}${o})`;return o},uo=(e,t,r,n)=>{if(r)return ao(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},lo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return ao(e,t,r)},co=(...e)=>RangeError("Invalid range arguments: "+pd.inspect(...e)),fo=(e,t,r)=>{if(r.strictRanges===!0)throw co([e,t]);return[]},yd=(e,t)=>{if(t.strictRanges===!0)throw TypeError(`Expected step "${e}" to be a number`);return[]},vd=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw co([e,t]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i,a=String(e),u=String(t),l=String(r);r=Math.max(Math.abs(r),1);let c=_n(a)||_n(u)||_n(l),f=c?Math.max(a.length,u.length,l.length):0,h=c===!1&&gd(e,t,n)===!1,_=n.transform||dd(h);if(n.toRegex&&r===1)return uo(dr(e,f),dr(t,f),!0,n);let p={negatives:[],positives:[]},g=(R)=>p[R<0?"negatives":"positives"].push(Math.abs(R)),m=[],C=0;while(o?s>=i:s<=i){if(n.toRegex===!0&&r>1)g(s);else m.push(_d(_(s,C),f,h));s=o?s-r:s+r,C++}if(n.toRegex===!0)return r>1?md(p,n,f):lo(m,null,{wrap:!1,...n});return m},Sd=(e,t,r=1,n={})=>{if(!kt(e)&&e.length>1||!kt(t)&&t.length>1)return fo(e,t,n);let s=n.transform||((h)=>String.fromCharCode(h)),i=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=i>o,u=Math.min(i,o),l=Math.max(i,o);if(n.toRegex&&r===1)return uo(u,l,!1,n);let c=[],f=0;while(a?i>=o:i<=o)c.push(s(i,f)),i=a?i-r:i+r,f++;if(n.toRegex===!0)return lo(c,null,{wrap:!1,options:n});return c},pr=(e,t,r,n={})=>{if(t==null&&gn(e))return[e];if(!gn(e)||!gn(t))return fo(e,t,n);if(typeof r==="function")return pr(e,t,1,{transform:r});if(oo(r))return pr(e,t,0,r);let s={...n};if(s.capture===!0)s.wrap=!0;if(r=r||s.step||1,!kt(r)){if(r!=null&&!oo(r))return yd(r,s);return pr(e,t,1,r)}if(kt(e)&&kt(t))return vd(e,t,r,s);return Sd(e,t,Math.max(Math.abs(r),1),s)};ho.exports=pr});var _o=d(function(eC,go){var wd=mn(),po=fr(),bd=(e,t={})=>{let r=(n,s={})=>{let i=po.isInvalidBrace(s),o=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",l="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=po.reduce(n.nodes),f=wd(...c,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let c of n.nodes)l+=r(c,n);return l};return r(e)};go.exports=bd});var vo=d(function(tC,yo){var xd=mn(),mo=hr(),gt=fr(),Ke=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?gt.flatten(t).map((s)=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(Ke(i,t,r));else for(let i of t){if(r===!0&&typeof i==="string")i=`{${i}}`;n.push(Array.isArray(i)?Ke(s,i,r):s+i)}return gt.flatten(n)},Ed=(e,t={})=>{let r=t.rangeLimit===void 0?1000:t.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;while(o.type!=="brace"&&o.type!=="root"&&o.parent)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(Ke(a.pop(),mo(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(Ke(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let f=gt.reduce(s.nodes);if(gt.exceedsLimit(...f,t.step,r))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=xd(...f,t);if(h.length===0)h=mo(s,t);a.push(Ke(a.pop(),h)),s.nodes=[];return}let u=gt.encloseBrace(s),l=s.queue,c=s;while(c.type!=="brace"&&c.type!=="root"&&c.parent)c=c.parent,l=c.queue;for(let f=0;f<s.nodes.length;f++){let h=s.nodes[f];if(h.type==="comma"&&s.type==="brace"){if(f===1)l.push("");l.push("");continue}if(h.type==="close"){a.push(Ke(a.pop(),l,u));continue}if(h.value&&h.type!=="open"){l.push(Ke(l.pop(),h.value));continue}if(h.nodes)n(h,s)}return l};return gt.flatten(n(e))};yo.exports=Ed});var wo=d(function(rC,So){So.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
29
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Oo=d(function(nC,Ao){var Ad=hr(),{MAX_LENGTH:bo,CHAR_BACKSLASH:yn,CHAR_BACKTICK:Od,CHAR_COMMA:Cd,CHAR_DOT:Pd,CHAR_LEFT_PARENTHESES:Td,CHAR_RIGHT_PARENTHESES:Rd,CHAR_LEFT_CURLY_BRACE:Ld,CHAR_RIGHT_CURLY_BRACE:Id,CHAR_LEFT_SQUARE_BRACKET:xo,CHAR_RIGHT_SQUARE_BRACKET:Eo,CHAR_DOUBLE_QUOTE:Md,CHAR_SINGLE_QUOTE:kd,CHAR_NO_BREAK_SPACE:Nd,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dd}=wo(),qd=(e,t={})=>{if(typeof e!=="string")throw TypeError("Expected a string");let r=t||{},n=typeof r.maxLength==="number"?Math.min(bo,r.maxLength):bo;if(e.length>n)throw SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],o=s,a=s,u=0,l=e.length,c=0,f=0,h,_=()=>e[c++],p=(g)=>{if(g.type==="text"&&a.type==="dot")a.type="text";if(a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};p({type:"bos"});while(c<l){if(o=i[i.length-1],h=_(),h===Dd||h===Nd)continue;if(h===yn){p({type:"text",value:(t.keepEscaping?h:"")+_()});continue}if(h===Eo){p({type:"text",value:"\\"+h});continue}if(h===xo){u++;let g;while(c<l&&(g=_())){if(h+=g,g===xo){u++;continue}if(g===yn){h+=_();continue}if(g===Eo){if(u--,u===0)break}}p({type:"text",value:h});continue}if(h===Td){o=p({type:"paren",nodes:[]}),i.push(o),p({type:"text",value:h});continue}if(h===Rd){if(o.type!=="paren"){p({type:"text",value:h});continue}o=i.pop(),p({type:"text",value:h}),o=i[i.length-1];continue}if(h===Md||h===kd||h===Od){let g=h,m;if(t.keepQuotes!==!0)h="";while(c<l&&(m=_())){if(m===yn){h+=m+_();continue}if(m===g){if(t.keepQuotes===!0)h+=m;break}h+=m}p({type:"text",value:h});continue}if(h===Ld){f++;let m={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=p(m),i.push(o),p({type:"open",value:h});continue}if(h===Id){if(o.type!=="brace"){p({type:"text",value:h});continue}let g="close";o=i.pop(),o.close=!0,p({type:g,value:h}),f--,o=i[i.length-1];continue}if(h===Cd&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:Ad(o)}]}p({type:"comma",value:h}),o.commas++;continue}if(h===Pd&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){p({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let m=g[g.length-1];m.value+=a.value+h,a=m,o.ranges--;continue}p({type:"dot",value:h});continue}p({type:"text",value:h})}do if(o=i.pop(),o.type!=="root"){o.nodes.forEach((C)=>{if(!C.nodes){if(C.type==="open")C.isOpen=!0;if(C.type==="close")C.isClose=!0;if(!C.nodes)C.type="text";C.invalid=!0}});let g=i[i.length-1],m=g.nodes.indexOf(o);g.nodes.splice(m,1,...o.nodes)}while(i.length>0);return p({type:"eos"}),s};Ao.exports=qd});var To=d(function(sC,Po){var Co=hr(),Fd=_o(),jd=vo(),Bd=Oo(),ge=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=ge.create(n,t);if(Array.isArray(s))r.push(...s);else r.push(s)}else r=[].concat(ge.create(e,t));if(t&&t.expand===!0&&t.nodupes===!0)r=[...new Set(r)];return r};ge.parse=(e,t={})=>Bd(e,t);ge.stringify=(e,t={})=>{if(typeof e==="string")return Co(ge.parse(e,t),t);return Co(e,t)};ge.compile=(e,t={})=>{if(typeof e==="string")e=ge.parse(e,t);return Fd(e,t)};ge.expand=(e,t={})=>{if(typeof e==="string")e=ge.parse(e,t);let r=jd(e,t);if(t.noempty===!0)r=r.filter(Boolean);if(t.nodupes===!0)r=[...new Set(r)];return r};ge.create=(e,t={})=>{if(e===""||e.length<3)return[e];return t.expand!==!0?ge.compile(e,t):ge.expand(e,t)};Po.exports=ge});var Nt=d(function(iC,Lo){var Hd=j("path"),Ro={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Ud={...Ro,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},$d={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Lo.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:$d,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Hd.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Ud:Ro}}});var Dt=d(function(Kd){var Gd=j("path"),Wd=process.platform==="win32",{REGEX_BACKSLASH:Vd,REGEX_REMOVE_BACKSLASH:Qd,REGEX_SPECIAL_CHARS:Yd,REGEX_SPECIAL_CHARS_GLOBAL:zd}=Nt();Kd.isObject=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e);Kd.hasRegexChars=(e)=>Yd.test(e);Kd.isRegexChar=(e)=>e.length===1&&Kd.hasRegexChars(e);Kd.escapeRegex=(e)=>e.replace(zd,"\\$1");Kd.toPosixSlashes=(e)=>e.replace(Vd,"/");Kd.removeBackslashes=(e)=>e.replace(Qd,(t)=>t==="\\"?"":t);Kd.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10)return!0;return!1};Kd.isWindows=(e)=>{if(e&&typeof e.windows==="boolean")return e.windows;return Wd===!0||Gd.sep==="\\"};Kd.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);if(n===-1)return e;if(e[n-1]==="\\")return Kd.escapeLast(e,t,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};Kd.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./"))r=r.slice(2),t.prefix="./";return r};Kd.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;if(t.negated===!0)i=`(?:^(?!${i}).*$)`;return i}});var Ho=d(function(aC,Bo){var ko=Dt(),{CHAR_ASTERISK:vn,CHAR_AT:og,CHAR_BACKWARD_SLASH:qt,CHAR_COMMA:ag,CHAR_DOT:Sn,CHAR_EXCLAMATION_MARK:wn,CHAR_FORWARD_SLASH:jo,CHAR_LEFT_CURLY_BRACE:bn,CHAR_LEFT_PARENTHESES:xn,CHAR_LEFT_SQUARE_BRACKET:ug,CHAR_PLUS:lg,CHAR_QUESTION_MARK:No,CHAR_RIGHT_CURLY_BRACE:cg,CHAR_RIGHT_PARENTHESES:Do,CHAR_RIGHT_SQUARE_BRACKET:fg}=Nt(),qo=(e)=>e===jo||e===qt,Fo=(e)=>{if(e.isPrefix!==!0)e.depth=e.isGlobstar?1/0:1},hg=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],o=[],a=[],u=e,l=-1,c=0,f=0,h=!1,_=!1,p=!1,g=!1,m=!1,C=!1,R=!1,I=!1,D=!1,q=!1,T=0,M,x,L={value:"",depth:0,isGlob:!1},V=()=>l>=n,S=()=>u.charCodeAt(l+1),J=()=>(M=x,u.charCodeAt(++l));while(l<n){x=J();let ce;if(x===qt){if(R=L.backslashes=!0,x=J(),x===bn)C=!0;continue}if(C===!0||x===bn){T++;while(V()!==!0&&(x=J())){if(x===qt){R=L.backslashes=!0,J();continue}if(x===bn){T++;continue}if(C!==!0&&x===Sn&&(x=J())===Sn){if(h=L.isBrace=!0,p=L.isGlob=!0,q=!0,s===!0)continue;break}if(C!==!0&&x===ag){if(h=L.isBrace=!0,p=L.isGlob=!0,q=!0,s===!0)continue;break}if(x===cg){if(T--,T===0){C=!1,h=L.isBrace=!0,q=!0;break}}}if(s===!0)continue;break}if(x===jo){if(i.push(l),o.push(L),L={value:"",depth:0,isGlob:!1},q===!0)continue;if(M===Sn&&l===c+1){c+=2;continue}f=l+1;continue}if(r.noext!==!0){if((x===lg||x===og||x===vn||x===No||x===wn)===!0&&S()===xn){if(p=L.isGlob=!0,g=L.isExtglob=!0,q=!0,x===wn&&l===c)D=!0;if(s===!0){while(V()!==!0&&(x=J())){if(x===qt){R=L.backslashes=!0,x=J();continue}if(x===Do){p=L.isGlob=!0,q=!0;break}}continue}break}}if(x===vn){if(M===vn)m=L.isGlobstar=!0;if(p=L.isGlob=!0,q=!0,s===!0)continue;break}if(x===No){if(p=L.isGlob=!0,q=!0,s===!0)continue;break}if(x===ug){while(V()!==!0&&(ce=J())){if(ce===qt){R=L.backslashes=!0,J();continue}if(ce===fg){_=L.isBracket=!0,p=L.isGlob=!0,q=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&x===wn&&l===c){I=L.negated=!0,c++;continue}if(r.noparen!==!0&&x===xn){if(p=L.isGlob=!0,s===!0){while(V()!==!0&&(x=J())){if(x===xn){R=L.backslashes=!0,x=J();continue}if(x===Do){q=!0;break}}continue}break}if(p===!0){if(q=!0,s===!0)continue;break}}if(r.noext===!0)g=!1,p=!1;let Q=u,Ge="",y="";if(c>0)Ge=u.slice(0,c),u=u.slice(c),f-=c;if(Q&&p===!0&&f>0)Q=u.slice(0,f),y=u.slice(f);else if(p===!0)Q="",y=u;else Q=u;if(Q&&Q!==""&&Q!=="/"&&Q!==u){if(qo(Q.charCodeAt(Q.length-1)))Q=Q.slice(0,-1)}if(r.unescape===!0){if(y)y=ko.removeBackslashes(y);if(Q&&R===!0)Q=ko.removeBackslashes(Q)}let v={prefix:Ge,input:e,start:c,base:Q,glob:y,isBrace:h,isBracket:_,isGlob:p,isExtglob:g,isGlobstar:m,negated:I,negatedExtglob:D};if(r.tokens===!0){if(v.maxDepth=0,!qo(x))o.push(L);v.tokens=o}if(r.parts===!0||r.tokens===!0){let ce;for(let F=0;F<i.length;F++){let Re=ce?ce+1:c,Le=i[F],de=e.slice(Re,Le);if(r.tokens){if(F===0&&c!==0)o[F].isPrefix=!0,o[F].value=Ge;else o[F].value=de;Fo(o[F]),v.maxDepth+=o[F].depth}if(F!==0||de!=="")a.push(de);ce=Le}if(ce&&ce+1<e.length){let F=e.slice(ce+1);if(a.push(F),r.tokens)o[o.length-1].value=F,Fo(o[o.length-1]),v.maxDepth+=o[o.length-1].depth}v.slashes=i,v.parts=a}return v};Bo.exports=hg});var Vo=d(function(uC,Wo){var Ft=Nt(),ue=Dt(),{MAX_LENGTH:gr,POSIX_REGEX_SOURCE:pg,REGEX_NON_SPECIAL_CHARS:dg,REGEX_SPECIAL_CHARS_BACKREF:gg,REPLACEMENTS:Uo}=Ft,_g=(e,t)=>{if(typeof t.expandRange==="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map((s)=>ue.escapeRegex(s)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,$o=(e)=>{let t=[],r=0,n=0,s=0,i="",o=!1;for(let a of e){if(o===!0){i+=a,o=!1;continue}if(a==="\\"){i+=a,o=!0;continue}if(a==='"'){s=s===1?0:1,i+=a;continue}if(s===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},mg=(e)=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Go=(e)=>{let t=e.trim(),r=!0;while(r===!0)if(r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t))t=t.slice(2,-1),r=!0;if(!mg(t))return;return t.replace(/\\(.)/g,"$1")},yg=(e)=>{let t=e.map(Go).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let s=t[r],i=t[n],o=s[0];if(!o||s!==o.repeat(s.length)||i!==o.repeat(i.length))continue;if(s===i||s.startsWith(i)||i.startsWith(s))return!0}return!1},En=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,s=0,i=!1;for(let o=1;o<e.length;o++){let a=e[o];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){s=s===1?0:1;continue}if(s===1)continue;if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(r>0)continue;if(a==="("){n++;continue}if(a===")"){if(n--,n===0){if(t===!0&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}}},vg=(e)=>{let t=0,r=[];while(t<e.length){let s=En(e.slice(t),!1);if(!s||s.type!=="*")return;let i=$o(s.body).map((a)=>a.trim());if(i.length!==1)return;let o=Go(i[0]);if(!o||o.length!==1)return;r.push(o),t+=s.end+1}if(r.length<1)return;return`${r.length===1?ue.escapeRegex(r[0]):`[${r.map((s)=>ue.escapeRegex(s)).join("")}]`}*`},Sg=(e)=>{let t=0,r=e.trim(),n=En(r);while(n)t++,r=n.body.trim(),n=En(r);return t},wg=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion==="number"?t.maxExtglobRecursion:Ft.DEFAULT_MAX_EXTGLOB_RECURSION,n=$o(e).map((s)=>s.trim());if(n.length>1){if(n.some((s)=>s==="")||n.some((s)=>/^[*?]+$/.test(s))||yg(n))return{risky:!0}}for(let s of n){let i=vg(s);if(i)return{risky:!0,safeOutput:i};if(Sg(s)>r)return{risky:!0}}return{risky:!1}},An=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");e=Uo[e]||e;let r={...t},n=typeof r.maxLength==="number"?Math.min(gr,r.maxLength):gr,s=e.length;if(s>n)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},o=[i],a=r.capture?"":"?:",u=ue.isWindows(t),l=Ft.globChars(u),c=Ft.extglobChars(l),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:_,ONE_CHAR:p,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:C,NO_DOTS_SLASH:R,QMARK:I,QMARK_NO_DOT:D,STAR:q,START_ANCHOR:T}=l,M=(E)=>`(${a}(?:(?!${T}${E.dot?g:f}).)*?)`,x=r.dot?"":m,L=r.dot?I:D,V=r.bash===!0?M(r):q;if(r.capture)V=`(${V})`;if(typeof r.noext==="boolean")r.noextglob=r.noext;let S={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ue.removePrefix(e,S),s=e.length;let J=[],Q=[],Ge=[],y=i,v,ce=()=>S.index===s-1,F=S.peek=(E=1)=>e[S.index+E],Re=S.advance=()=>e[++S.index]||"",Le=()=>e.slice(S.index+1),de=(E="",Z=0)=>{S.consumed+=E,S.index+=Z},ur=(E)=>{S.output+=E.output!=null?E.output:E.value,de(E.value)},cp=()=>{let E=1;while(F()==="!"&&(F(2)!=="("||F(3)==="?"))Re(),S.start++,E++;if(E%2===0)return!1;return S.negated=!0,S.start++,!0},lr=(E)=>{S[E]++,Ge.push(E)},We=(E)=>{S[E]--,Ge.pop()},N=(E)=>{if(y.type==="globstar"){let Z=S.braces>0&&(E.type==="comma"||E.type==="brace"),b=E.extglob===!0||J.length&&(E.type==="pipe"||E.type==="paren");if(E.type!=="slash"&&E.type!=="paren"&&!Z&&!b)S.output=S.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=V,S.output+=y.output}if(J.length&&E.type!=="paren")J[J.length-1].inner+=E.value;if(E.value||E.output)ur(E);if(y&&y.type==="text"&&E.type==="text"){y.value+=E.value,y.output=(y.output||"")+E.value;return}E.prev=y,o.push(E),y=E},cr=(E,Z)=>{let b={...c[Z],conditions:1,inner:""};b.prev=y,b.parens=S.parens,b.output=S.output,b.startIndex=S.index,b.tokensIndex=o.length;let k=(r.capture?"(":"")+b.open;lr("parens"),N({type:E,value:Z,output:S.output?"":p}),N({type:"paren",extglob:!0,value:Re(),output:k}),J.push(b)},fp=(E)=>{let Z=e.slice(E.startIndex,S.index+1),b=e.slice(E.startIndex+2,S.index),k=wg(b,r);if((E.type==="plus"||E.type==="star")&&k.risky){let G=k.safeOutput?(E.output?"":p)+(r.capture?`(${k.safeOutput})`:k.safeOutput):void 0,Ie=o[E.tokensIndex];Ie.type="text",Ie.value=Z,Ie.output=G||ue.escapeRegex(Z);for(let Me=E.tokensIndex+1;Me<o.length;Me++)o[Me].value="",o[Me].output="",delete o[Me].suffix;S.output=E.output+Ie.output,S.backtrack=!0,N({type:"paren",extglob:!0,value:v,output:""}),We("parens");return}let Y=E.close+(r.capture?")":""),ne;if(E.type==="negate"){let G=V;if(E.inner&&E.inner.length>1&&E.inner.includes("/"))G=M(r);if(G!==V||ce()||/^\)+$/.test(Le()))Y=E.close=`)$))${G}`;if(E.inner.includes("*")&&(ne=Le())&&/^\.[^\\/.]+$/.test(ne)){let Ie=An(ne,{...t,fastpaths:!1}).output;Y=E.close=`)${Ie})${G})`}if(E.prev.type==="bos")S.negatedExtglob=!0}N({type:"paren",extglob:!0,value:v,output:Y}),We("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let E=!1,Z=e.replace(gg,(b,k,Y,ne,G,Ie)=>{if(ne==="\\")return E=!0,b;if(ne==="?"){if(k)return k+ne+(G?I.repeat(G.length):"");if(Ie===0)return L+(G?I.repeat(G.length):"");return I.repeat(Y.length)}if(ne===".")return f.repeat(Y.length);if(ne==="*"){if(k)return k+ne+(G?V:"");return V}return k?b:`\\${b}`});if(E===!0)if(r.unescape===!0)Z=Z.replace(/\\/g,"");else Z=Z.replace(/\\+/g,(b)=>b.length%2===0?"\\\\":b?"\\":"");if(Z===e&&r.contains===!0)return S.output=e,S;return S.output=ue.wrapOutput(Z,S,t),S}while(!ce()){if(v=Re(),v==="\x00")continue;if(v==="\\"){let b=F();if(b==="/"&&r.bash!==!0)continue;if(b==="."||b===";")continue;if(!b){v+="\\",N({type:"text",value:v});continue}let k=/^\\+/.exec(Le()),Y=0;if(k&&k[0].length>2){if(Y=k[0].length,S.index+=Y,Y%2!==0)v+="\\"}if(r.unescape===!0)v=Re();else v+=Re();if(S.brackets===0){N({type:"text",value:v});continue}}if(S.brackets>0&&(v!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&v===":"){let b=y.value.slice(1);if(b.includes("[")){if(y.posix=!0,b.includes(":")){let k=y.value.lastIndexOf("["),Y=y.value.slice(0,k),ne=y.value.slice(k+2),G=pg[ne];if(G){if(y.value=Y+G,S.backtrack=!0,Re(),!i.output&&o.indexOf(y)===1)i.output=p;continue}}}}if(v==="["&&F()!==":"||v==="-"&&F()==="]")v=`\\${v}`;if(v==="]"&&(y.value==="["||y.value==="[^"))v=`\\${v}`;if(r.posix===!0&&v==="!"&&y.value==="[")v="^";y.value+=v,ur({value:v});continue}if(S.quotes===1&&v!=='"'){v=ue.escapeRegex(v),y.value+=v,ur({value:v});continue}if(v==='"'){if(S.quotes=S.quotes===1?0:1,r.keepQuotes===!0)N({type:"text",value:v});continue}if(v==="("){lr("parens"),N({type:"paren",value:v});continue}if(v===")"){if(S.parens===0&&r.strictBrackets===!0)throw SyntaxError(_t("opening","("));let b=J[J.length-1];if(b&&S.parens===b.parens+1){fp(J.pop());continue}N({type:"paren",value:v,output:S.parens?")":"\\)"}),We("parens");continue}if(v==="["){if(r.nobracket===!0||!Le().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw SyntaxError(_t("closing","]"));v=`\\${v}`}else lr("brackets");N({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){N({type:"text",value:v,output:`\\${v}`});continue}if(S.brackets===0){if(r.strictBrackets===!0)throw SyntaxError(_t("opening","["));N({type:"text",value:v,output:`\\${v}`});continue}We("brackets");let b=y.value.slice(1);if(y.posix!==!0&&b[0]==="^"&&!b.includes("/"))v=`/${v}`;if(y.value+=v,ur({value:v}),r.literalBrackets===!1||ue.hasRegexChars(b))continue;let k=ue.escapeRegex(y.value);if(S.output=S.output.slice(0,-y.value.length),r.literalBrackets===!0){S.output+=k,y.value=k;continue}y.value=`(${a}${k}|${y.value})`,S.output+=y.value;continue}if(v==="{"&&r.nobrace!==!0){lr("braces");let b={type:"brace",value:v,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};Q.push(b),N(b);continue}if(v==="}"){let b=Q[Q.length-1];if(r.nobrace===!0||!b){N({type:"text",value:v,output:v});continue}let k=")";if(b.dots===!0){let Y=o.slice(),ne=[];for(let G=Y.length-1;G>=0;G--){if(o.pop(),Y[G].type==="brace")break;if(Y[G].type!=="dots")ne.unshift(Y[G].value)}k=_g(ne,r),S.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let Y=S.output.slice(0,b.outputIndex),ne=S.tokens.slice(b.tokensIndex);b.value=b.output="\\{",v=k="\\}",S.output=Y;for(let G of ne)S.output+=G.output||G.value}N({type:"brace",value:v,output:k}),We("braces"),Q.pop();continue}if(v==="|"){if(J.length>0)J[J.length-1].conditions++;N({type:"text",value:v});continue}if(v===","){let b=v,k=Q[Q.length-1];if(k&&Ge[Ge.length-1]==="braces")k.comma=!0,b="|";N({type:"comma",value:v,output:b});continue}if(v==="/"){if(y.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",o.pop(),y=i;continue}N({type:"slash",value:v,output:_});continue}if(v==="."){if(S.braces>0&&y.type==="dot"){if(y.value===".")y.output=f;let b=Q[Q.length-1];y.type="dots",y.output+=v,y.value+=v,b.dots=!0;continue}if(S.braces+S.parens===0&&y.type!=="bos"&&y.type!=="slash"){N({type:"text",value:v,output:f});continue}N({type:"dot",value:v,output:f});continue}if(v==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("qmark",v);continue}if(y&&y.type==="paren"){let k=F(),Y=v;if(k==="<"&&!ue.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(y.value==="("&&!/[!=<:]/.test(k)||k==="<"&&!/<([!=]|\w+>)/.test(Le()))Y=`\\${v}`;N({type:"text",value:v,output:Y});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){N({type:"qmark",value:v,output:D});continue}N({type:"qmark",value:v,output:I});continue}if(v==="!"){if(r.noextglob!==!0&&F()==="("){if(F(2)!=="?"||!/[!=<:]/.test(F(3))){cr("negate",v);continue}}if(r.nonegate!==!0&&S.index===0){cp();continue}}if(v==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){cr("plus",v);continue}if(y&&y.value==="("||r.regex===!1){N({type:"plus",value:v,output:h});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||S.parens>0){N({type:"plus",value:v});continue}N({type:"plus",value:h});continue}if(v==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){N({type:"at",extglob:!0,value:v,output:""});continue}N({type:"text",value:v});continue}if(v!=="*"){if(v==="$"||v==="^")v=`\\${v}`;let b=dg.exec(Le());if(b)v+=b[0],S.index+=b[0].length;N({type:"text",value:v});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=v,y.output=V,S.backtrack=!0,S.globstar=!0,de(v);continue}let E=Le();if(r.noextglob!==!0&&/^\([^?]/.test(E)){cr("star",v);continue}if(y.type==="star"){if(r.noglobstar===!0){de(v);continue}let b=y.prev,k=b.prev,Y=b.type==="slash"||b.type==="bos",ne=k&&(k.type==="star"||k.type==="globstar");if(r.bash===!0&&(!Y||E[0]&&E[0]!=="/")){N({type:"star",value:v,output:""});continue}let G=S.braces>0&&(b.type==="comma"||b.type==="brace"),Ie=J.length&&(b.type==="pipe"||b.type==="paren");if(!Y&&b.type!=="paren"&&!G&&!Ie){N({type:"star",value:v,output:""});continue}while(E.slice(0,3)==="/**"){let Me=e[S.index+4];if(Me&&Me!=="/")break;E=E.slice(3),de("/**",3)}if(b.type==="bos"&&ce()){y.type="globstar",y.value+=v,y.output=M(r),S.output=y.output,S.globstar=!0,de(v);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!ne&&ce()){S.output=S.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=M(r)+(r.strictSlashes?")":"|$)"),y.value+=v,S.globstar=!0,S.output+=b.output+y.output,de(v);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&E[0]==="/"){let Me=E[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=`${M(r)}${_}|${_}${Me})`,y.value+=v,S.output+=b.output+y.output,S.globstar=!0,de(v+Re()),N({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&E[0]==="/"){y.type="globstar",y.value+=v,y.output=`(?:^|${_}|${M(r)}${_})`,S.output=y.output,S.globstar=!0,de(v+Re()),N({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-y.output.length),y.type="globstar",y.output=M(r),y.value+=v,S.output+=y.output,S.globstar=!0,de(v);continue}let Z={type:"star",value:v,output:V};if(r.bash===!0){if(Z.output=".*?",y.type==="bos"||y.type==="slash")Z.output=x+Z.output;N(Z);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){Z.output=v,N(Z);continue}if(S.index===S.start||y.type==="slash"||y.type==="dot"){if(y.type==="dot")S.output+=C,y.output+=C;else if(r.dot===!0)S.output+=R,y.output+=R;else S.output+=x,y.output+=x;if(F()!=="*")S.output+=p,y.output+=p}N(Z)}while(S.brackets>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing","]"));S.output=ue.escapeLast(S.output,"["),We("brackets")}while(S.parens>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing",")"));S.output=ue.escapeLast(S.output,"("),We("parens")}while(S.braces>0){if(r.strictBrackets===!0)throw SyntaxError(_t("closing","}"));S.output=ue.escapeLast(S.output,"{"),We("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket"))N({type:"maybe_slash",value:"",output:`${_}?`});if(S.backtrack===!0){S.output="";for(let E of S.tokens)if(S.output+=E.output!=null?E.output:E.value,E.suffix)S.output+=E.suffix}return S};An.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength==="number"?Math.min(gr,r.maxLength):gr,s=e.length;if(s>n)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Uo[e]||e;let i=ue.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:_,START_ANCHOR:p}=Ft.globChars(i),g=r.dot?f:c,m=r.dot?h:c,C=r.capture?"":"?:",R={negated:!1,prefix:""},I=r.bash===!0?".*?":_;if(r.capture)I=`(${I})`;let D=(x)=>{if(x.noglobstar===!0)return I;return`(${C}(?:(?!${p}${x.dot?l:o}).)*?)`},q=(x)=>{switch(x){case"*":return`${g}${u}${I}`;case".*":return`${o}${u}${I}`;case"*.*":return`${g}${I}${o}${u}${I}`;case"*/*":return`${g}${I}${a}${u}${m}${I}`;case"**":return g+D(r);case"**/*":return`(?:${g}${D(r)}${a})?${m}${u}${I}`;case"**/*.*":return`(?:${g}${D(r)}${a})?${m}${I}${o}${u}${I}`;case"**/.*":return`(?:${g}${D(r)}${a})?${o}${u}${I}`;default:{let L=/^(.*?)\.(\w+)$/.exec(x);if(!L)return;let V=q(L[1]);if(!V)return;return V+o+L[2]}}},T=ue.removePrefix(e,R),M=q(T);if(M&&r.strictSlashes!==!0)M+=`${a}?`;return M};Wo.exports=An});var Yo=d(function(lC,Qo){var bg=j("path"),xg=Ho(),On=Vo(),Cn=Dt(),Eg=Nt(),Ag=(e)=>e&&typeof e==="object"&&!Array.isArray(e),te=(e,t,r=!1)=>{if(Array.isArray(e)){let c=e.map((h)=>te(h,t,r));return(h)=>{for(let _ of c){let p=_(h);if(p)return p}return!1}}let n=Ag(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n)throw TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Cn.isWindows(t),o=n?te.compileRe(e,t):te.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(s.ignore){let c={...t,ignore:null,onMatch:null,onResult:null};u=te(s.ignore,c,r)}let l=(c,f=!1)=>{let{isMatch:h,match:_,output:p}=te.test(c,o,t,{glob:e,posix:i}),g={glob:e,state:a,regex:o,posix:i,input:c,output:p,match:_,isMatch:h};if(typeof s.onResult==="function")s.onResult(g);if(h===!1)return g.isMatch=!1,f?g:!1;if(u(c)){if(typeof s.onIgnore==="function")s.onIgnore(g);return g.isMatch=!1,f?g:!1}if(typeof s.onMatch==="function")s.onMatch(g);return f?g:!0};if(r)l.state=a;return l};te.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string")throw TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},o=i.format||(s?Cn.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;if(a===!1)u=o?o(e):e,a=u===n;if(a===!1||i.capture===!0)if(i.matchBase===!0||i.basename===!0)a=te.matchBase(e,t,r,s);else a=t.exec(u);return{isMatch:Boolean(a),match:a,output:u}};te.matchBase=(e,t,r,n=Cn.isWindows(r))=>(t instanceof RegExp?t:te.makeRe(t,r)).test(bg.basename(e));te.isMatch=(e,t,r)=>te(t,r)(e);te.parse=(e,t)=>{if(Array.isArray(e))return e.map((r)=>te.parse(r,t));return On(e,{...t,fastpaths:!1})};te.scan=(e,t)=>xg(e,t);te.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",o=s.contains?"":"$",a=`${i}(?:${e.output})${o}`;if(e&&e.negated===!0)a=`^(?!${a}).*$`;let u=te.toRegex(a,t);if(n===!0)u.state=e;return u};te.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!=="string")throw TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};if(t.fastpaths!==!1&&(e[0]==="."||e[0]==="*"))s.output=On.fastpaths(e,t);if(!s.output)s=On(e,t);return te.compileRe(s,t,r,n)};te.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};te.constants=Eg;Qo.exports=te});var ea=d(function(cC,Zo){var Ko=j("util"),Xo=To(),ke=Yo(),Pn=Dt(),zo=(e)=>e===""||e==="./",Jo=(e)=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},z=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,s=new Set,i=new Set,o=0,a=(c)=>{if(i.add(c.output),r&&r.onResult)r.onResult(c)};for(let c=0;c<t.length;c++){let f=ke(String(t[c]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;if(h)o++;for(let _ of e){let p=f(_,!0);if(!(h?!p.isMatch:p.isMatch))continue;if(h)n.add(p.output);else n.delete(p.output),s.add(p.output)}}let l=(o===t.length?[...i]:[...s]).filter((c)=>!n.has(c));if(r&&l.length===0){if(r.failglob===!0)throw Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map((c)=>c.replace(/\\/g,"")):t}return l};z.match=z;z.matcher=(e,t)=>ke(e,t);z.isMatch=(e,t,r)=>ke(t,r)(e);z.any=z.isMatch;z.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,s=[],o=new Set(z(e,t,{...r,onResult:(a)=>{if(r.onResult)r.onResult(a);s.push(a.output)}}));for(let a of s)if(!o.has(a))n.add(a);return[...n]};z.contains=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ko.inspect(e)}"`);if(Array.isArray(t))return t.some((n)=>z.contains(e,n,r));if(typeof t==="string"){if(zo(e)||zo(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return z.isMatch(e,t,{...r,contains:!0})};z.matchKeys=(e,t,r)=>{if(!Pn.isObject(e))throw TypeError("Expected the first argument to be an object");let n=z(Object.keys(e),t,r),s={};for(let i of n)s[i]=e[i];return s};z.some=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=ke(String(s),r);if(n.some((o)=>i(o)))return!0}return!1};z.every=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=ke(String(s),r);if(!n.every((o)=>i(o)))return!1}return!0};z.all=(e,t,r)=>{if(typeof e!=="string")throw TypeError(`Expected a string: "${Ko.inspect(e)}"`);return[].concat(t).every((n)=>ke(n,r)(e))};z.capture=(e,t,r)=>{let n=Pn.isWindows(r),i=ke.makeRe(String(e),{...r,capture:!0}).exec(n?Pn.toPosixSlashes(t):t);if(i)return i.slice(1).map((o)=>o===void 0?"":o)};z.makeRe=(...e)=>ke.makeRe(...e);z.scan=(...e)=>ke.scan(...e);z.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let s of Xo(String(n),t))r.push(ke.parse(s,t));return r};z.braces=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");if(t&&t.nobrace===!0||!Jo(e))return[e];return Xo(e,t)};z.braceExpand=(e,t)=>{if(typeof e!=="string")throw TypeError("Expected a string");return z.braces(e,{...t,expand:!0})};z.hasBraces=Jo;Zo.exports=z});var ha=d(function(ca){Object.defineProperty(ca,"__esModule",{value:!0});ca.isAbsolute=ca.partitionAbsoluteAndRelative=ca.removeDuplicateSlashes=ca.matchAny=ca.convertPatternsToRe=ca.makeRe=ca.getPatternParts=ca.expandBraceExpansion=ca.expandPatternsWithBraceExpansion=ca.isAffectDepthOfReadingPattern=ca.endsWithSlashGlobStar=ca.hasGlobStar=ca.getBaseDirectory=ca.isPatternRelatedToParentDirectory=ca.getPatternsOutsideCurrentDirectory=ca.getPatternsInsideCurrentDirectory=ca.getPositivePatterns=ca.getNegativePatterns=ca.isPositivePattern=ca.isNegativePattern=ca.convertToNegativePattern=ca.convertToPositivePattern=ca.isDynamicPattern=ca.isStaticPattern=void 0;var ta=j("path"),Og=Vi(),Tn=ea(),ra="**",Cg="\\",Pg=/[*?]|^!/,Tg=/\[[^[]*]/,Rg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Lg=/[!*+?@]\([^(]*\)/,Ig=/,|\.\./,Mg=/(?!^)\/{2,}/g;function na(e,t={}){return!sa(e,t)}ca.isStaticPattern=na;function sa(e,t={}){if(e==="")return!1;if(t.caseSensitiveMatch===!1||e.includes(Cg))return!0;if(Pg.test(e)||Tg.test(e)||Rg.test(e))return!0;if(t.extglob!==!1&&Lg.test(e))return!0;if(t.braceExpansion!==!1&&kg(e))return!0;return!1}ca.isDynamicPattern=sa;function kg(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Ig.test(n)}function Ng(e){return _r(e)?e.slice(1):e}ca.convertToPositivePattern=Ng;function Dg(e){return"!"+e}ca.convertToNegativePattern=Dg;function _r(e){return e.startsWith("!")&&e[1]!=="("}ca.isNegativePattern=_r;function ia(e){return!_r(e)}ca.isPositivePattern=ia;function qg(e){return e.filter(_r)}ca.getNegativePatterns=qg;function Fg(e){return e.filter(ia)}ca.getPositivePatterns=Fg;function jg(e){return e.filter((t)=>!Rn(t))}ca.getPatternsInsideCurrentDirectory=jg;function Bg(e){return e.filter(Rn)}ca.getPatternsOutsideCurrentDirectory=Bg;function Rn(e){return e.startsWith("..")||e.startsWith("./..")}ca.isPatternRelatedToParentDirectory=Rn;function Hg(e){return Og(e,{flipBackslashes:!1})}ca.getBaseDirectory=Hg;function Ug(e){return e.includes(ra)}ca.hasGlobStar=Ug;function oa(e){return e.endsWith("/"+ra)}ca.endsWithSlashGlobStar=oa;function $g(e){let t=ta.basename(e);return oa(e)||na(t)}ca.isAffectDepthOfReadingPattern=$g;function Gg(e){return e.reduce((t,r)=>t.concat(aa(r)),[])}ca.expandPatternsWithBraceExpansion=Gg;function aa(e){let t=Tn.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter((r)=>r!=="")}ca.expandBraceExpansion=aa;function Wg(e,t){let{parts:r}=Tn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));if(r.length===0)r=[e];if(r[0].startsWith("/"))r[0]=r[0].slice(1),r.unshift("");return r}ca.getPatternParts=Wg;function ua(e,t){return Tn.makeRe(e,t)}ca.makeRe=ua;function Vg(e,t){return e.map((r)=>ua(r,t))}ca.convertPatternsToRe=Vg;function Qg(e,t){return t.some((r)=>r.test(e))}ca.matchAny=Qg;function Yg(e){return e.replace(Mg,"/")}ca.removeDuplicateSlashes=Yg;function zg(e){let t=[],r=[];for(let n of e)if(la(n))t.push(n);else r.push(n);return[t,r]}ca.partitionAbsoluteAndRelative=zg;function la(e){return ta.isAbsolute(e)}ca.isAbsolute=la});var _a=d(function(hC,ga){var v_=j("stream"),pa=v_.PassThrough,S_=Array.prototype.slice;ga.exports=w_;function w_(){let e=[],t=S_.call(arguments),r=!1,n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null)t.pop();else n={};let s=n.end!==!1,i=n.pipeError===!0;if(n.objectMode==null)n.objectMode=!0;if(n.highWaterMark==null)n.highWaterMark=65536;let o=pa(n);function a(){for(let c=0,f=arguments.length;c<f;c++)e.push(da(arguments[c],n));return u(),this}function u(){if(r)return;r=!0;let c=e.shift();if(!c){process.nextTick(l);return}if(!Array.isArray(c))c=[c];let f=c.length+1;function h(){if(--f>0)return;r=!1,u()}function _(p){function g(){if(p.removeListener("merge2UnpipeEnd",g),p.removeListener("end",g),i)p.removeListener("error",m);h()}function m(C){o.emit("error",C)}if(p._readableState.endEmitted)return h();if(p.on("merge2UnpipeEnd",g),p.on("end",g),i)p.on("error",m);p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<c.length;p++)_(c[p]);h()}function l(){if(r=!1,o.emit("queueDrain"),s)o.end()}if(o.setMaxListeners(0),o.add=a,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),t.length)a.apply(null,t);return o}function da(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe)e=e.pipe(pa(t));if(!e._readableState||!e.pause||!e.pipe)throw Error("Only readable stream can be merged.");e.pause()}else for(let r=0,n=e.length;r<n;r++)e[r]=da(e[r],t);return e}});var Sa=d(function(ya){Object.defineProperty(ya,"__esModule",{value:!0});ya.merge=void 0;var b_=_a();function x_(e){let t=b_(e);return e.forEach((r)=>{r.once("error",(n)=>t.emit("error",n))}),t.once("close",()=>ma(e)),t.once("end",()=>ma(e)),t}ya.merge=x_;function ma(e){e.forEach((t)=>t.emit("close"))}});var xa=d(function(wa){Object.defineProperty(wa,"__esModule",{value:!0});wa.isEmpty=wa.isString=void 0;function E_(e){return typeof e==="string"}wa.isString=E_;function A_(e){return e===""}wa.isEmpty=A_});var De=d(function(Ea){Object.defineProperty(Ea,"__esModule",{value:!0});Ea.string=Ea.stream=Ea.pattern=Ea.path=Ea.fs=Ea.errno=Ea.array=void 0;var C_=Oi();Ea.array=C_;var P_=Ti();Ea.errno=P_;var T_=Mi();Ea.fs=T_;var R_=ji();Ea.path=R_;var L_=ha();Ea.pattern=L_;var I_=Sa();Ea.stream=I_;var M_=xa();Ea.string=M_});var La=d(function(Ta){Object.defineProperty(Ta,"__esModule",{value:!0});Ta.convertPatternGroupToTask=Ta.convertPatternGroupsToTasks=Ta.groupPatternsByBaseDirectory=Ta.getNegativePatternsAsPositive=Ta.getPositivePatterns=Ta.convertPatternsToTasks=Ta.generate=void 0;var xe=De();function B_(e,t){let r=Oa(e,t),n=Oa(t.ignore,t),s=Ca(r),i=Pa(r,n),o=s.filter((c)=>xe.pattern.isStaticPattern(c,t)),a=s.filter((c)=>xe.pattern.isDynamicPattern(c,t)),u=Ln(o,i,!1),l=Ln(a,i,!0);return u.concat(l)}Ta.generate=B_;function Oa(e,t){let r=e;if(t.braceExpansion)r=xe.pattern.expandPatternsWithBraceExpansion(r);if(t.baseNameMatch)r=r.map((n)=>n.includes("/")?n:`**/${n}`);return r.map((n)=>xe.pattern.removeDuplicateSlashes(n))}function Ln(e,t,r){let n=[],s=xe.pattern.getPatternsOutsideCurrentDirectory(e),i=xe.pattern.getPatternsInsideCurrentDirectory(e),o=In(s),a=In(i);if(n.push(...Mn(o,t,r)),"."in a)n.push(kn(".",i,t,r));else n.push(...Mn(a,t,r));return n}Ta.convertPatternsToTasks=Ln;function Ca(e){return xe.pattern.getPositivePatterns(e)}Ta.getPositivePatterns=Ca;function Pa(e,t){return xe.pattern.getNegativePatterns(e).concat(t).map(xe.pattern.convertToPositivePattern)}Ta.getNegativePatternsAsPositive=Pa;function In(e){let t={};return e.reduce((r,n)=>{let s=xe.pattern.getBaseDirectory(n);if(s in r)r[s].push(n);else r[s]=[n];return r},t)}Ta.groupPatternsByBaseDirectory=In;function Mn(e,t,r){return Object.keys(e).map((n)=>kn(n,e[n],t,r))}Ta.convertPatternGroupsToTasks=Mn;function kn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(xe.pattern.convertToNegativePattern))}}Ta.convertPatternGroupToTask=kn});var Na=d(function(Ma){Object.defineProperty(Ma,"__esModule",{value:!0});Ma.read=void 0;function Q_(e,t,r){t.fs.lstat(e,(n,s)=>{if(n!==null){Ia(r,n);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){Nn(r,s);return}t.fs.stat(e,(i,o)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Ia(r,i);return}Nn(r,s);return}if(t.markSymbolicLink)o.isSymbolicLink=()=>!0;Nn(r,o)})})}Ma.read=Q_;function Ia(e,t){e(t)}function Nn(e,t){e(null,t)}});var Fa=d(function(Da){Object.defineProperty(Da,"__esModule",{value:!0});Da.read=void 0;function Y_(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);if(t.markSymbolicLink)n.isSymbolicLink=()=>!0;return n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Da.read=Y_});var Ha=d(function(ja){Object.defineProperty(ja,"__esModule",{value:!0});ja.createFileSystemAdapter=ja.FILE_SYSTEM_ADAPTER=void 0;var mr=j("fs");ja.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync};function z_(e){if(e===void 0)return ja.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},ja.FILE_SYSTEM_ADAPTER),e)}ja.createFileSystemAdapter=z_});var Ga=d(function($a){Object.defineProperty($a,"__esModule",{value:!0});var K_=Ha();class Ua{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=K_.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}$a.default=Ua});var Xe=d(function(Va){Object.defineProperty(Va,"__esModule",{value:!0});Va.statSync=Va.stat=Va.Settings=void 0;var Wa=Na(),J_=Fa(),qn=Ga();Va.Settings=qn.default;function Z_(e,t,r){if(typeof t==="function"){Wa.read(e,Fn(),t);return}Wa.read(e,Fn(t),r)}Va.stat=Z_;function em(e,t){let r=Fn(t);return J_.read(e,r)}Va.statSync=em;function Fn(e={}){if(e instanceof qn.default)return e;return new qn.default(e)}});var Ka=d(function(bC,za){/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ya;za.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(e)=>(Ya||(Ya=Promise.resolve())).then(e).catch((t)=>setTimeout(()=>{throw t},0))});var Ja=d(function(xC,Xa){/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */Xa.exports=sm;var nm=Ka();function sm(e,t){let r,n,s,i=!0;if(Array.isArray(e))r=[],n=e.length;else s=Object.keys(e),r={},n=s.length;function o(u){function l(){if(t)t(u,r);t=null}if(i)nm(l);else l()}function a(u,l,c){if(r[u]=c,--n===0||l)o(l)}if(!n)o(null);else if(s)s.forEach(function(u){e[u](function(l,c){a(u,l,c)})});else e.forEach(function(u,l){u(function(c,f){a(l,c,f)})});i=!1}});var jn=d(function(tu){Object.defineProperty(tu,"__esModule",{value:!0});tu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var yr=process.versions.node.split(".");if(yr[0]===void 0||yr[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Za=Number.parseInt(yr[0],10),im=Number.parseInt(yr[1],10),eu=10,om=10,am=Za>eu,um=Za===eu&&im>=om;tu.IS_SUPPORT_READDIR_WITH_FILE_TYPES=am||um});var ou=d(function(su){Object.defineProperty(su,"__esModule",{value:!0});su.createDirentFromStats=void 0;class nu{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function lm(e,t){return new nu(e,t)}su.createDirentFromStats=lm});var Bn=d(function(au){Object.defineProperty(au,"__esModule",{value:!0});au.fs=void 0;var cm=ou();au.fs=cm});var Hn=d(function(lu){Object.defineProperty(lu,"__esModule",{value:!0});lu.joinPathSegments=void 0;function fm(e,t,r){if(e.endsWith(r))return e+t;return e+r+t}lu.joinPathSegments=fm});var yu=d(function(_u){Object.defineProperty(_u,"__esModule",{value:!0});_u.readdir=_u.readdirWithFileTypes=_u.read=void 0;var hm=Xe(),fu=Ja(),pm=jn(),hu=Bn(),pu=Hn();function dm(e,t,r){if(!t.stats&&pm.IS_SUPPORT_READDIR_WITH_FILE_TYPES){du(e,t,r);return}gu(e,t,r)}_u.read=dm;function du(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,s)=>{if(n!==null){vr(r,n);return}let i=s.map((a)=>({dirent:a,name:a.name,path:pu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Un(r,i);return}let o=i.map((a)=>gm(a,t));fu(o,(a,u)=>{if(a!==null){vr(r,a);return}Un(r,u)})})}_u.readdirWithFileTypes=du;function gm(e,t){return(r)=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=hu.fs.createDirentFromStats(e.name,s),r(null,e)})}}function gu(e,t,r){t.fs.readdir(e,(n,s)=>{if(n!==null){vr(r,n);return}let i=s.map((o)=>{let a=pu.joinPathSegments(e,o,t.pathSegmentSeparator);return(u)=>{hm.stat(a,t.fsStatSettings,(l,c)=>{if(l!==null){u(l);return}let f={name:o,path:a,dirent:hu.fs.createDirentFromStats(o,c)};if(t.stats)f.stats=c;u(null,f)})}});fu(i,(o,a)=>{if(o!==null){vr(r,o);return}Un(r,a)})})}_u.readdir=gu;function vr(e,t){e(t)}function Un(e,t){e(null,t)}});var Au=d(function(xu){Object.defineProperty(xu,"__esModule",{value:!0});xu.readdir=xu.readdirWithFileTypes=xu.read=void 0;var ym=Xe(),vm=jn(),vu=Bn(),Su=Hn();function Sm(e,t){if(!t.stats&&vm.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return wu(e,t);return bu(e,t)}xu.read=Sm;function wu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n)=>{let s={dirent:n,name:n.name,path:Su.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(s.path);s.dirent=vu.fs.createDirentFromStats(s.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return s})}xu.readdirWithFileTypes=wu;function bu(e,t){return t.fs.readdirSync(e).map((n)=>{let s=Su.joinPathSegments(e,n,t.pathSegmentSeparator),i=ym.statSync(s,t.fsStatSettings),o={name:n,path:s,dirent:vu.fs.createDirentFromStats(n,i)};if(t.stats)o.stats=i;return o})}xu.readdir=bu});var Pu=d(function(Ou){Object.defineProperty(Ou,"__esModule",{value:!0});Ou.createFileSystemAdapter=Ou.FILE_SYSTEM_ADAPTER=void 0;var mt=j("fs");Ou.FILE_SYSTEM_ADAPTER={lstat:mt.lstat,stat:mt.stat,lstatSync:mt.lstatSync,statSync:mt.statSync,readdir:mt.readdir,readdirSync:mt.readdirSync};function xm(e){if(e===void 0)return Ou.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},Ou.FILE_SYSTEM_ADAPTER),e)}Ou.createFileSystemAdapter=xm});var Lu=d(function(Ru){Object.defineProperty(Ru,"__esModule",{value:!0});var Em=j("path"),Am=Xe(),Om=Pu();class Tu{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Om.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Em.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Am.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}Ru.default=Tu});var Sr=d(function(Mu){Object.defineProperty(Mu,"__esModule",{value:!0});Mu.Settings=Mu.scandirSync=Mu.scandir=void 0;var Iu=yu(),Pm=Au(),Gn=Lu();Mu.Settings=Gn.default;function Tm(e,t,r){if(typeof t==="function"){Iu.read(e,Wn(),t);return}Iu.read(e,Wn(t),r)}Mu.scandir=Tm;function Rm(e,t){let r=Wn(t);return Pm.read(e,r)}Mu.scandirSync=Rm;function Wn(e={}){if(e instanceof Gn.default)return e;return new Gn.default(e)}});var Du=d(function(MC,Nu){function Mm(e){var t=new e,r=t;function n(){var i=t;if(i.next)t=i.next;else t=new e,r=t;return i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Nu.exports=Mm});var Fu=d(function(kC,Vn){var km=Du();function qu(e,t,r){if(typeof e==="function")r=t,t=e,e=null;if(!(r>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var n=km(Nm),s=null,i=null,o=0,a=null,u={push:g,drain:he,saturated:he,pause:c,paused:!1,get concurrency(){return r},set concurrency(T){if(!(T>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(r=T,u.paused)return;for(;s&&o<r;)o++,C()},running:l,resume:_,idle:p,length:f,getQueue:h,unshift:m,empty:he,kill:R,killAndDrain:I,error:q,abort:D};return u;function l(){return o}function c(){u.paused=!0}function f(){var T=s,M=0;while(T)T=T.next,M++;return M}function h(){var T=s,M=[];while(T)M.push(T.value),T=T.next;return M}function _(){if(!u.paused)return;if(u.paused=!1,s===null){o++,C();return}for(;s&&o<r;)o++,C()}function p(){return o===0&&u.length()===0}function g(T,M){var x=n.get();if(x.context=e,x.release=C,x.value=T,x.callback=M||he,x.errorHandler=a,o>=r||u.paused)if(i)i.next=x,i=x;else s=x,i=x,u.saturated();else o++,t.call(e,x.value,x.worked)}function m(T,M){var x=n.get();if(x.context=e,x.release=C,x.value=T,x.callback=M||he,x.errorHandler=a,o>=r||u.paused)if(s)x.next=s,s=x;else s=x,i=x,u.saturated();else o++,t.call(e,x.value,x.worked)}function C(T){if(T)n.release(T);var M=s;if(M&&o<=r)if(!u.paused){if(i===s)i=null;if(s=M.next,M.next=null,t.call(e,M.value,M.worked),i===null)u.empty()}else o--;else if(--o===0)u.drain()}function R(){s=null,i=null,u.drain=he}function I(){s=null,i=null,u.drain(),u.drain=he}function D(){var T=s;s=null,i=null;while(T){var M=T.next,x=T.callback,L=T.errorHandler,V=T.value,S=T.context;if(T.value=null,T.callback=he,T.errorHandler=null,T.next=null,L)L(Error("abort"),V);x.call(S,Error("abort")),n.release(T),T=M}u.drain=he}function q(T){a=T}}function he(){}function Nm(){this.value=null,this.callback=he,this.next=null,this.release=he,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var{callback:s,errorHandler:i,value:o}=e;if(e.value=null,e.callback=he,e.errorHandler)i(r,o);s.call(e.context,r,n),e.release(e)}}function Dm(e,t,r){if(typeof e==="function")r=t,t=e,e=null;function n(c,f){t.call(this,c).then(function(h){f(null,h)},f)}var s=qu(e,n,r),{push:i,unshift:o}=s;return s.push=a,s.unshift=u,s.drained=l,s;function a(c){var f=new Promise(function(h,_){i(c,function(p,g){if(p){_(p);return}h(g)})});return f.catch(he),f}function u(c){var f=new Promise(function(h,_){o(c,function(p,g){if(p){_(p);return}h(g)})});return f.catch(he),f}function l(){var c=new Promise(function(f){process.nextTick(function(){if(s.idle())f();else{var h=s.drain;s.drain=function(){if(typeof h==="function")h();f(),s.drain=h}}})});return c}}Vn.exports=qu;Vn.exports.promise=Dm});var wr=d(function(ju){Object.defineProperty(ju,"__esModule",{value:!0});ju.joinPathSegments=ju.replacePathSegmentSeparator=ju.isAppliedFilter=ju.isFatalError=void 0;function qm(e,t){if(e.errorFilter===null)return!0;return!e.errorFilter(t)}ju.isFatalError=qm;function Fm(e,t){return e===null||e(t)}ju.isAppliedFilter=Fm;function jm(e,t){return e.split(/[/\\]/).join(t)}ju.replacePathSegmentSeparator=jm;function Bm(e,t,r){if(e==="")return t;if(e.endsWith(r))return e+t;return e+r+t}ju.joinPathSegments=Bm});var Qn=d(function(Uu){Object.defineProperty(Uu,"__esModule",{value:!0});var Gm=wr();class Hu{constructor(e,t){this._root=e,this._settings=t,this._root=Gm.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}Uu.default=Hu});var Yn=d(function(Gu){Object.defineProperty(Gu,"__esModule",{value:!0});var Vm=j("events"),Qm=Sr(),Ym=Fu(),br=wr(),zm=Qn();class $u extends zm.default{constructor(e,t){super(e,t);this._settings=t,this._scandir=Qm.scandir,this._emitter=new Vm.EventEmitter,this._queue=Ym(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){let r={directory:e,base:t};this._queue.push(r,(n)=>{if(n!==null)this._handleError(n)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){t(r,void 0);return}for(let s of n)this._handleEntry(s,e.base);t(null,void 0)})}_handleError(e){if(this._isDestroyed||!br.isFatalError(this._settings,e))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;if(t!==void 0)e.path=br.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(br.isAppliedFilter(this._settings.entryFilter,e))this._emitEntry(e);if(e.dirent.isDirectory()&&br.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}Gu.default=$u});var Qu=d(function(Vu){Object.defineProperty(Vu,"__esModule",{value:!0});var Xm=Yn();class Wu{constructor(e,t){this._root=e,this._settings=t,this._reader=new Xm.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t)=>{Jm(e,t)}),this._reader.onEntry((t)=>{this._storage.push(t)}),this._reader.onEnd(()=>{Zm(e,this._storage)}),this._reader.read()}}Vu.default=Wu;function Jm(e,t){e(t)}function Zm(e,t){e(null,t)}});var Ku=d(function(zu){Object.defineProperty(zu,"__esModule",{value:!0});var ty=j("stream"),ry=Yn();class Yu{constructor(e,t){this._root=e,this._settings=t,this._reader=new ry.default(this._root,this._settings),this._stream=new ty.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((e)=>{this._stream.emit("error",e)}),this._reader.onEntry((e)=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}zu.default=Yu});var Zu=d(function(Ju){Object.defineProperty(Ju,"__esModule",{value:!0});var sy=Sr(),xr=wr(),iy=Qn();class Xu extends iy.default{constructor(){super(...arguments);this._scandir=sy.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let n of r)this._handleEntry(n,t)}catch(r){this._handleError(r)}}_handleError(e){if(!xr.isFatalError(this._settings,e))return;throw e}_handleEntry(e,t){let r=e.path;if(t!==void 0)e.path=xr.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(xr.isAppliedFilter(this._settings.entryFilter,e))this._pushToStorage(e);if(e.dirent.isDirectory()&&xr.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}Ju.default=Xu});var rl=d(function(tl){Object.defineProperty(tl,"__esModule",{value:!0});var ay=Zu();class el{constructor(e,t){this._root=e,this._settings=t,this._reader=new ay.default(this._root,this._settings)}read(){return this._reader.read()}}tl.default=el});var il=d(function(sl){Object.defineProperty(sl,"__esModule",{value:!0});var ly=j("path"),cy=Sr();class nl{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ly.sep),this.fsScandirSettings=new cy.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}sl.default=nl});var Ar=d(function(al){Object.defineProperty(al,"__esModule",{value:!0});al.Settings=al.walkStream=al.walkSync=al.walk=void 0;var ol=Qu(),hy=Ku(),py=rl(),zn=il();al.Settings=zn.default;function dy(e,t,r){if(typeof t==="function"){new ol.default(e,Er()).read(t);return}new ol.default(e,Er(t)).read(r)}al.walk=dy;function gy(e,t){let r=Er(t);return new py.default(e,r).read()}al.walkSync=gy;function _y(e,t){let r=Er(t);return new hy.default(e,r).read()}al.walkStream=_y;function Er(e={}){if(e instanceof zn.default)return e;return new zn.default(e)}});var Or=d(function(fl){Object.defineProperty(fl,"__esModule",{value:!0});var Sy=j("path"),wy=Xe(),ll=De();class cl{constructor(e){this._settings=e,this._fsStatSettings=new wy.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Sy.resolve(this._settings.cwd,e)}_makeEntry(e,t){let r={name:t,path:t,dirent:ll.fs.createDirentFromStats(t,e)};if(this._settings.stats)r.stats=e;return r}_isFatalError(e){return!ll.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}fl.default=cl});var Kn=d(function(pl){Object.defineProperty(pl,"__esModule",{value:!0});var xy=j("stream"),Ey=Xe(),Ay=Ar(),Oy=Or();class hl extends Oy.default{constructor(){super(...arguments);this._walkStream=Ay.walkStream,this._stat=Ey.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let r=e.map(this._getFullEntryPath,this),n=new xy.PassThrough({objectMode:!0});n._write=(s,i,o)=>this._getEntry(r[s],e[s],t).then((a)=>{if(a!==null&&t.entryFilter(a))n.push(a);if(s===r.length-1)n.end();o()}).catch(o);for(let s=0;s<r.length;s++)n.write(s);return n}_getEntry(e,t,r){return this._getStat(e).then((n)=>this._makeEntry(n,t)).catch((n)=>{if(r.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?t(s):r(n))})}}pl.default=hl});var _l=d(function(gl){Object.defineProperty(gl,"__esModule",{value:!0});var Py=Ar(),Ty=Or(),Ry=Kn();class dl extends Ty.default{constructor(){super(...arguments);this._walkAsync=Py.walk,this._readerStream=new Ry.default(this._settings)}dynamic(e,t){return new Promise((r,n)=>{this._walkAsync(e,t,(s,i)=>{if(s===null)r(i);else n(s)})})}async static(e,t){let r=[],n=this._readerStream.static(e,t);return new Promise((s,i)=>{n.once("error",i),n.on("data",(o)=>r.push(o)),n.once("end",()=>s(r))})}}gl.default=dl});var vl=d(function(yl){Object.defineProperty(yl,"__esModule",{value:!0});var jt=De();class ml{constructor(e,t,r){this._patterns=e,this._settings=t,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(e){return jt.pattern.getPatternParts(e,this._micromatchOptions).map((r)=>{if(!jt.pattern.isDynamicPattern(r,this._settings))return{dynamic:!1,pattern:r};return{dynamic:!0,pattern:r,patternRe:jt.pattern.makeRe(r,this._micromatchOptions)}})}_splitSegmentsIntoSections(e){return jt.array.splitWhen(e,(t)=>t.dynamic&&jt.pattern.hasGlobStar(t.pattern))}}yl.default=ml});var bl=d(function(wl){Object.defineProperty(wl,"__esModule",{value:!0});var My=vl();class Sl extends My.default{match(e){let t=e.split("/"),r=t.length,n=this._storage.filter((s)=>!s.complete||s.segments.length>r);for(let s of n){let i=s.sections[0];if(!s.complete&&r>i.length)return!0;if(t.every((a,u)=>{let l=s.segments[u];if(l.dynamic&&l.patternRe.test(a))return!0;if(!l.dynamic&&l.pattern===a)return!0;return!1}))return!0}return!1}}wl.default=Sl});var Al=d(function(El){Object.defineProperty(El,"__esModule",{value:!0});var Cr=De(),Ny=bl();class xl{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,r){let n=this._getMatcher(t),s=this._getNegativePatternsRe(r);return(i)=>this._filter(e,i,n,s)}_getMatcher(e){return new Ny.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let t=e.filter(Cr.pattern.isAffectDepthOfReadingPattern);return Cr.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,n){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;let s=Cr.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(s,r))return!1;return this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,t){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let r=t.split("/").length;if(e==="")return r;let n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!Cr.pattern.matchAny(e,t)}}El.default=xl});var Pl=d(function(Cl){Object.defineProperty(Cl,"__esModule",{value:!0});var Ve=De();class Ol{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){let[r,n]=Ve.pattern.partitionAbsoluteAndRelative(t),s={positive:{all:Ve.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:Ve.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Ve.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(i)=>this._filter(i,s)}_filter(e,t){let r=Ve.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let n=this._isMatchToPatternsSet(r,t,e.dirent.isDirectory());if(this._settings.unique&&n)this._createIndexRecord(r);return n}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,r){if(!this._isMatchToPatterns(e,t.positive.all,r))return!1;if(this._isMatchToPatterns(e,t.negative.relative,r))return!1;if(this._isMatchToAbsoluteNegative(e,t.negative.absolute,r))return!1;return!0}_isMatchToAbsoluteNegative(e,t,r){if(t.length===0)return!1;let n=Ve.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(n,t,r)}_isMatchToPatterns(e,t,r){if(t.length===0)return!1;let n=Ve.pattern.matchAny(e,t);if(!n&&r)return Ve.pattern.matchAny(e+"/",t);return n}}Cl.default=Ol});var Ll=d(function(Rl){Object.defineProperty(Rl,"__esModule",{value:!0});var Fy=De();class Tl{constructor(e){this._settings=e}getFilter(){return(e)=>this._isNonFatalError(e)}_isNonFatalError(e){return Fy.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}Rl.default=Tl});var Nl=d(function(kl){Object.defineProperty(kl,"__esModule",{value:!0});var Il=De();class Ml{constructor(e){this._settings=e}getTransformer(){return(e)=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute)t=Il.path.makeAbsolute(this._settings.cwd,t),t=Il.path.unixify(t);if(this._settings.markDirectories&&e.dirent.isDirectory())t+="/";if(!this._settings.objectMode)return t;return Object.assign(Object.assign({},e),{path:t})}}kl.default=Ml});var Pr=d(function(ql){Object.defineProperty(ql,"__esModule",{value:!0});var Hy=j("path"),Uy=Al(),$y=Pl(),Gy=Ll(),Wy=Nl();class Dl{constructor(e){this._settings=e,this.errorFilter=new Gy.default(this._settings),this.entryFilter=new $y.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Uy.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Wy.default(this._settings)}_getRootDirectory(e){return Hy.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}ql.default=Dl});var Bl=d(function(jl){Object.defineProperty(jl,"__esModule",{value:!0});var Qy=_l(),Yy=Pr();class Fl extends Yy.default{constructor(){super(...arguments);this._reader=new Qy.default(this._settings)}async read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(t,e,r)).map((s)=>r.transform(s))}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}jl.default=Fl});var $l=d(function(Ul){Object.defineProperty(Ul,"__esModule",{value:!0});var Ky=j("stream"),Xy=Kn(),Jy=Pr();class Hl extends Jy.default{constructor(){super(...arguments);this._reader=new Xy.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e),n=this.api(t,e,r),s=new Ky.Readable({objectMode:!0,read:()=>{}});return n.once("error",(i)=>s.emit("error",i)).on("data",(i)=>s.emit("data",r.transform(i))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}Ul.default=Hl});var Vl=d(function(Wl){Object.defineProperty(Wl,"__esModule",{value:!0});var ev=Xe(),tv=Ar(),rv=Or();class Gl extends rv.default{constructor(){super(...arguments);this._walkSync=tv.walkSync,this._statSync=ev.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let r=[];for(let n of e){let s=this._getFullEntryPath(n),i=this._getEntry(s,n,t);if(i===null||!t.entryFilter(i))continue;r.push(i)}return r}_getEntry(e,t,r){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(n){if(r.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}Wl.default=Gl});var zl=d(function(Yl){Object.defineProperty(Yl,"__esModule",{value:!0});var sv=Vl(),iv=Pr();class Ql extends iv.default{constructor(){super(...arguments);this._reader=new sv.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(t,e,r).map(r.transform)}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}Yl.default=Ql});var Jl=d(function(Xl){Object.defineProperty(Xl,"__esModule",{value:!0});Xl.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yt=j("fs"),av=j("os"),uv=Math.max(av.cpus().length,1);Xl.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yt.lstat,lstatSync:yt.lstatSync,stat:yt.stat,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};class Kl{constructor(e={}){if(this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uv),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===void 0?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xl.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}Xl.default=Kl});var tc=d(function(iP,ec){var Zl=La(),cv=Bl(),fv=$l(),hv=zl(),Jn=Jl(),ye=De();async function Zn(e,t){Ee(e);let r=es(e,cv.default,t),n=await Promise.all(r);return ye.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(l,c){Ee(l);let f=es(l,hv.default,c);return ye.array.flatten(f)}e.sync=t;function r(l,c){Ee(l);let f=es(l,fv.default,c);return ye.stream.merge(f)}e.stream=r;function n(l,c){Ee(l);let f=[].concat(l),h=new Jn.default(c);return Zl.generate(f,h)}e.generateTasks=n;function s(l,c){Ee(l);let f=new Jn.default(c);return ye.pattern.isDynamicPattern(l,f)}e.isDynamicPattern=s;function i(l){return Ee(l),ye.path.escape(l)}e.escapePath=i;function o(l){return Ee(l),ye.path.convertPathToPattern(l)}e.convertPathToPattern=o;let a;(function(l){function c(h){return Ee(h),ye.path.escapePosixPath(h)}l.escapePath=c;function f(h){return Ee(h),ye.path.convertPosixPathToPattern(h)}l.convertPathToPattern=f})(a=e.posix||(e.posix={}));let u;(function(l){function c(h){return Ee(h),ye.path.escapeWindowsPath(h)}l.escapePath=c;function f(h){return Ee(h),ye.path.convertWindowsPathToPattern(h)}l.convertPathToPattern=f})(u=e.win32||(e.win32={}))})(Zn||(Zn={}));function es(e,t,r){let n=[].concat(e),s=new Jn.default(r),i=Zl.generate(n,s),o=new t(s);return i.map(o.read,o)}function Ee(e){if(![].concat(e).every((n)=>ye.string.isString(n)&&!ye.string.isEmpty(n)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}ec.exports=Zn});var rs=d(function(oP,ts){var Rr=process||{},rc=Rr.argv||[],Tr=Rr.env||{},pv=!(!!Tr.NO_COLOR||rc.includes("--no-color"))&&(!!Tr.FORCE_COLOR||rc.includes("--color")||Rr.platform==="win32"||(Rr.stdout||{}).isTTY&&Tr.TERM!=="dumb"||!!Tr.CI),dv=(e,t,r=e)=>(n)=>{let s=""+n,i=s.indexOf(t,e.length);return~i?e+gv(s,t,r,i)+t:e+s+t},gv=(e,t,r,n)=>{let s="",i=0;do s+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i);while(~n);return s+e.substring(i)},nc=(e=pv)=>{let t=e?dv:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ts.exports=nc();ts.exports.createColors=nc});var ns=d(function(aP,ic){var Lr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ir=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_v=/.[\r\n"'(/\\]/,sc=/[\da-f]/i;ic.exports=function(t,r={}){let n=t.css.valueOf(),s=r.ignoreErrors,i,o,a,u,l,c,f,h,_,p,g=n.length,m=0,C=[],R=[],I=-1;function D(){return m}function q(L){throw t.error("Unclosed "+L,m)}function T(){return R.length===0&&m>=g}function M(L){if(R.length)return R.pop();if(m>=g)return;let V=L?L.ignoreUnclosed:!1;switch(i=n.charCodeAt(m),i){case 10:case 32:case 9:case 13:case 12:{u=m;do u+=1,i=n.charCodeAt(u);while(i===32||i===10||i===9||i===13||i===12);c=["space",n.slice(m,u)],m=u-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let S=String.fromCharCode(i);c=[S,S,m];break}case 40:{if(p=C.length?C.pop()[1]:"",_=n.charCodeAt(m+1),p==="url"&&_!==39&&_!==34&&_!==32&&_!==10&&_!==9&&_!==12&&_!==13){u=m;do{if(f=!1,u=n.indexOf(")",u+1),u===-1)if(s||V){u=m;break}else q("bracket");h=u;while(n.charCodeAt(h-1)===92)h-=1,f=!f}while(f);c=["brackets",n.slice(m,u+1),m,u],m=u}else if(m<=I)c=["(","(",m];else if(u=n.indexOf(")",m+1),o=n.slice(m,u+1),u===-1||_v.test(o))I=u===-1?g:u,c=["(","(",m];else c=["brackets",o,m,u],m=u;break}case 39:case 34:{l=i===39?"'":'"',u=m;do{if(f=!1,u=n.indexOf(l,u+1),u===-1)if(s||V){u=m+1;break}else q("string");h=u;while(n.charCodeAt(h-1)===92)h-=1,f=!f}while(f);c=["string",n.slice(m,u+1),m,u],m=u;break}case 64:{if(Lr.lastIndex=m+1,Lr.test(n),Lr.lastIndex===0)u=n.length-1;else u=Lr.lastIndex-2;c=["at-word",n.slice(m,u+1),m,u],m=u;break}case 92:{u=m,a=!0;while(n.charCodeAt(u+1)===92)u+=1,a=!a;if(i=n.charCodeAt(u+1),a&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12){if(u+=1,sc.test(n.charAt(u))){while(sc.test(n.charAt(u+1)))u+=1;if(n.charCodeAt(u+1)===32)u+=1}}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{if(i===47&&n.charCodeAt(m+1)===42){if(u=n.indexOf("*/",m+2)+1,u===0)if(s||V)u=n.length;else q("comment");c=["comment",n.slice(m,u+1),m,u],m=u}else{if(Ir.lastIndex=m+1,Ir.test(n),Ir.lastIndex===0)u=n.length-1;else u=Ir.lastIndex-2;c=["word",n.slice(m,u+1),m,u],C.push(c),m=u}break}}return m++,c}function x(L){R.push(L)}return{back:x,endOfFile:T,nextToken:M,position:D}}});var ss=d(function(uP,uc){var fe=rs(),mv=ns(),oc;function yv(e){oc=e}var vv={";":fe.yellow,":":fe.yellow,"(":fe.cyan,")":fe.cyan,"[":fe.yellow,"]":fe.yellow,"{":fe.yellow,"}":fe.yellow,"at-word":fe.cyan,brackets:fe.cyan,call:fe.cyan,class:fe.yellow,comment:fe.gray,hash:fe.magenta,string:fe.green};function Sv([e,t],r){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return e}function ac(e){let t=mv(new oc(e),{ignoreErrors:!0}),r="";while(!t.endOfFile()){let n=t.nextToken(),s=vv[Sv(n,t)];if(s)r+=n[1].split(/\r?\n/).map((i)=>s(i)).join(`
|
|
30
|
+
`);else r+=n[1]}return r}ac.registerInput=yv;uc.exports=ac});var Mr=d(function(lP,fc){var cc=rs(),lc=ss();class Bt extends Error{constructor(e,t,r,n,s,i){super(e);if(this.name="CssSyntaxError",this.reason=e,s)this.file=s;if(n)this.source=n;if(i)this.plugin=i;if(typeof t<"u"&&typeof r<"u")if(typeof t==="number")this.line=t,this.column=r;else this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,Bt)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=cc.isColorSupported;let r=(l)=>l,n=(l)=>l,s=(l)=>l;if(e){let{bold:l,gray:c,red:f}=cc.createColors(!0);if(n=(h)=>l(f(h)),r=(h)=>c(h),lc)s=(h)=>lc(h)}let i=t.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;return i.slice(o,a).map((l,c)=>{let f=o+1+c,h=" "+(" "+f).slice(-u)+" | ";if(f===this.line){if(l.length>160){let p=20,g=Math.max(0,this.column-p),m=Math.max(this.column+p,this.endColumn+p),C=l.slice(g,m),R=r(h.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,p-1)).replace(/[^\t]/g," ");return n(">")+r(h)+s(C)+`
|
|
31
|
+
`+R+n("^")}let _=r(h.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(h)+s(l)+`
|
|
32
|
+
`+_+n("^")}return" "+r(h)+s(l)}).join(`
|
|
33
33
|
`)}toString(){let e=this.showSourceCode();if(e)e=`
|
|
34
34
|
|
|
35
35
|
`+e+`
|
|
@@ -44,22 +44,22 @@ var hp=Object.create;var{getPrototypeOf:pp,defineProperty:bi,getOwnPropertyNames
|
|
|
44
44
|
`))r=r.replace(/[^\n]+$/,"");return!1}}),typeof r>"u")r=this.raw(t,null,"beforeDecl");else if(r)r=r.replace(/\S/g,"");return r}rawBeforeDecl(e,t){let r;if(e.walkDecls((n)=>{if(typeof n.raws.before<"u"){if(r=n.raws.before,r.includes(`
|
|
45
45
|
`))r=r.replace(/[^\n]+$/,"");return!1}}),typeof r>"u")r=this.raw(t,null,"beforeRule");else if(r)r=r.replace(/\S/g,"");return r}rawBeforeOpen(e){let t;return e.walk((r)=>{if(r.type!=="decl"){if(t=r.raws.between,typeof t<"u")return!1}}),t}rawBeforeRule(e){let t;if(e.walk((r)=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before<"u"){if(t=r.raws.before,t.includes(`
|
|
46
46
|
`))t=t.replace(/[^\n]+$/,"");return!1}}}),t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;return e.walkDecls((r)=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk((r)=>{if(r.nodes&&r.nodes.length===0){if(t=r.raws.after,typeof t<"u")return!1}}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r)=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e){if(typeof r.raws.before<"u"){let s=r.raws.before.split(`
|
|
47
|
-
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}}),t}rawSemicolon(e){let t;return e.walk((r)=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"){if(t=r.raws.semicolon,typeof t<"u")return!1}}),t}rawValue(e,t){let r=e[t],n=e.raws[t];if(n&&n.value===r)return n.raw;return r}root(e){if(e.source&&e.source.input.hasBOM)this.builder("\uFEFF",e,"start");if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&e.parent.type==="document";this.builder(r?t:Ae(t))}}rule(e){if(this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon)this.builder(Ae(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}_c.exports=Ht;Ht.default=Ht});var Ut=d(function(fP,mc){var Ov=is();function os(e,t){new Ov(t).stringify(e)}mc.exports=os;os.default=os});var $t=d(function(Cv,as){Cv.isClean=Symbol("isClean");Cv.my=Symbol("my")});var Wt=d(function(hP,yc){var Rv=Mr(),Lv=is(),Iv=Ut(),{isClean:Gt,my:Mv}=$t();function kv(e,t){let r=new e.constructor,n=[[e,r,t]];while(n.length>0){let[s,i,o]=n.pop();for(let a in s){if(!Object.prototype.hasOwnProperty.call(s,a))continue;if(a==="proxyCache")continue;let u=s[a],l=typeof u;if(a==="parent"&&l==="object"){if(o)i[a]=o}else if(a==="source")i[a]=u;else if(Array.isArray(u)){let c=[];i[a]=c;for(let
|
|
47
|
+
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}}),t}rawSemicolon(e){let t;return e.walk((r)=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"){if(t=r.raws.semicolon,typeof t<"u")return!1}}),t}rawValue(e,t){let r=e[t],n=e.raws[t];if(n&&n.value===r)return n.raw;return r}root(e){if(e.source&&e.source.input.hasBOM)this.builder("\uFEFF",e,"start");if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&e.parent.type==="document";this.builder(r?t:Ae(t))}}rule(e){if(this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon)this.builder(Ae(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}_c.exports=Ht;Ht.default=Ht});var Ut=d(function(fP,mc){var Ov=is();function os(e,t){new Ov(t).stringify(e)}mc.exports=os;os.default=os});var $t=d(function(Cv,as){Cv.isClean=Symbol("isClean");Cv.my=Symbol("my")});var Wt=d(function(hP,yc){var Rv=Mr(),Lv=is(),Iv=Ut(),{isClean:Gt,my:Mv}=$t();function kv(e,t){let r=new e.constructor,n=[[e,r,t]];while(n.length>0){let[s,i,o]=n.pop();for(let a in s){if(!Object.prototype.hasOwnProperty.call(s,a))continue;if(a==="proxyCache")continue;let u=s[a],l=typeof u;if(a==="parent"&&l==="object"){if(o)i[a]=o}else if(a==="source")i[a]=u;else if(Array.isArray(u)){let c=[];i[a]=c;for(let f of u){let h=new f.constructor;c.push(h),n.push([f,h,i])}}else{if(l==="object"&&u!==null){let c=new u.constructor;n.push([u,c,void 0]),u=c}i[a]=u}}}return r}function Ne(e,t){if(t&&typeof t.offset<"u")return t.offset;let r=1,n=1,s=0;for(let i=0;i<e.length;i++){if(n===t.line&&r===t.column){s=i;break}if(e[i]===`
|
|
48
48
|
`)r=1,n+=1;else r+=1}return s}class vt{get proxyOf(){return this}constructor(e={}){this.raws={},this[Gt]=!1,this[Mv]=!0;for(let t of Object.keys(e)){if(t==="__proto__")continue;if(t==="nodes"){this.nodes=[];for(let r of e[t])if(typeof r.clone==="function"&&r.parent)this.append(r.clone());else this.append(r)}else this[t]=e[t]}}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}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){if(delete this.raws.before,delete this.raws.after,!e)delete this.raws.between}clone(e={}){let t=kv(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new Rv(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(t==="root")return()=>e.root().toProxy();else return e[t]},set(e,t,r){if(e[t]===r)return!0;if(e[t]=r,t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")e.markDirty();return!0}}}markClean(){this[Gt]=!0}markDirty(){if(this[Gt]){this[Gt]=!1;let e=this;while(e=e.parent)e[Gt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ne(t,this.source.start)};if(e.index)r=this.positionInside(e.index);else if(e.word){let s=t.slice(Ne(t,this.source.start),Ne(t,this.source.end)).indexOf(e.word);if(s!==-1)r=this.positionInside(s)}return r}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=Ne(n,this.source.start),i=s+e;for(let o=s;o<i;o++)if(n[o]===`
|
|
49
|
-
`)t=1,r+=1;else t+=1;return{column:t,line:r,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ne(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==="number"?this.source.end.offset:Ne(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let i=t.slice(Ne(t,this.source.start),Ne(t,this.source.end)).indexOf(e.word);if(i!==-1)r=this.positionInside(i),n=this.positionInside(i+e.word.length)}else{if(e.start)r={column:e.start.column,line:e.start.line,offset:Ne(t,e.start)};else if(typeof e.index==="number")r=this.positionInside(e.index);if(e.end)n={column:e.end.column,line:e.end.line,offset:Ne(t,e.end)};else if(typeof e.endIndex==="number")n=this.positionInside(e.endIndex);else if(typeof e.index==="number")n=this.positionInside(e.index+1)}if(n.line<r.line||n.line===r.line&&n.column<=r.column)n={column:r.column+1,line:r.line,offset:r.offset+1};return{end:n,start:r}}raw(e,t){return new Lv().raw(this,e,t)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)if(n===this)r=!0;else if(r)this.parent.insertAfter(t,n),t=n;else this.parent.insertBefore(t,n);if(!r)this.remove()}return this}root(){let e=this;while(e.parent&&e.parent.type!=="document")e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],s=[[this,n,0]];for(let o=0;o<s.length;o++){let[a,u,l]=s[o],c={};u[l]=c;for(let h in a){if(!Object.prototype.hasOwnProperty.call(a,h))continue;if(h==="parent"||h==="proxyCache")continue;let f=a[h];if(Array.isArray(f)){let g=[];c[h]=g;for(let p=0;p<f.length;p++){let _=f[p];if(typeof _==="object"&&_.toJSON)if(_.toJSON===vt.prototype.toJSON)s.push([_,g,p]);else g[p]=_.toJSON(null,t);else g[p]=_}}else if(typeof f==="object"&&f.toJSON)if(f.toJSON===vt.prototype.toJSON)s.push([f,c,h]);else c[h]=f.toJSON(null,t);else if(h==="source"){if(f==null)continue;let g=t.get(f.input);if(g==null)g=t.size,t.set(f.input,g);c[h]={end:f.end,inputId:g,start:f.start}}else c[h]=f}}let i=n[0];if(r)i.inputs=[...t.keys()].map((o)=>o.toJSON());return i}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(e=Iv){if(e.stringify)e=e.stringify;let t="";return e(this,(r)=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}}yc.exports=vt;vt.default=vt});var Vt=d(function(pP,vc){var Nv=Wt();class kr extends Nv{constructor(e){super(e);this.type="comment"}}vc.exports=kr;kr.default=kr});var Qt=d(function(dP,Sc){var Dv=Wt();class Nr extends Dv{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){if(e&&typeof e.value<"u"&&typeof e.value!=="string")e={...e,value:String(e.value)};super(e);this.type="decl"}}Sc.exports=Nr;Nr.default=Nr});var qe=d(function(gP,Pc){var wc=Vt(),bc=Qt(),xc=Wt(),{isClean:Ec,my:Ac}=$t(),us,Oc,Cc,ls;function qv(e){let t=e.slice();while(t.length>0){let r=t.pop();if(delete r.source,r.nodes){r.nodes=r.nodes.slice();for(let n of r.nodes)t.push(n)}}return e.slice()}function Fv(e){let t=[e];while(t.length>0){let r=t.pop();if(r[Ec]=!1,r.proxyOf.nodes)for(let n of r.proxyOf.nodes)t.push(n)}}class Oe extends xc{get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];while(t.length>0){let r=t.pop();if(r!==this&&r.cleanRaws!==Oe.prototype.cleanRaws){r.cleanRaws(e);continue}if(xc.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n===!1)break;this.indexes[t]+=1}return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(!e[t])return e[t];else if(t==="each"||typeof t==="string"&&t.startsWith("walk"))return(...r)=>e[t](...r.map((n)=>{if(typeof n==="function")return(s,i)=>n(s.toProxy(),i);else return n}));else if(t==="every"||t==="some")return(r)=>e[t]((n,...s)=>r(n.toProxy(),...s));else if(t==="root")return()=>e.root().toProxy();else if(t==="nodes")return e.nodes.map((r)=>r.toProxy());else if(t==="first"||t==="last")return e[t].toProxy();else return e[t]},set(e,t,r){if(e[t]===r)return!0;if(e[t]=r,t==="name"||t==="params"||t==="selector")e.markDirty();return!0}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let i of n)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)if(s=this.indexes[i],r<s)this.indexes[i]=s+n.length;return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r,0,o);let i;for(let o in this.indexes)if(i=this.indexes[o],r<=i)this.indexes[o]=i+s.length;return this.markDirty(),this}normalize(e,t){if(typeof e==="string")e=qv(Oc(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)if(n.parent)n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)if(n.parent)n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw Error("Value field is missed in node creation");else if(typeof e.value!=="string")e.value=String(e.value);e=[new bc(e)]}else if(e.selector||e.selectors)e=[new ls(e)];else if(e.name)e=[new us(e)];else if(e.text)e=[new wc(e)];else throw Error("Unknown node type in node creation");return e.map((n)=>{if(!n[Ac])Oe.rebuild(n);if(n=n.proxyOf,n.parent)n.parent.removeChild(n);if(n[Ec])Fv(n);if(!n.raws)n.raws={};if(typeof n.raws.before>"u"){if(t&&typeof t.raws.before<"u")n.raws.before=t.raws.before.replace(/\S/g,"")}return n.parent=this.proxyOf,n})}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)if(t=this.indexes[r],t>=e)this.indexes[r]=t-1;return this.markDirty(),this}replaceValues(e,t,r){if(!r)r=t,t={};return this.walkDecls((n)=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,r)}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];while(t.length>0){let{iterator:r,node:n}=t[t.length-1],s=n.indexes[r];if(s>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let a=t[t.length-1];if(a)a.node.indexes[a.iterator]+=1;continue}let i=n.proxyOf.nodes[s],o;try{o=e(i,s)}catch(a){throw i.addToError(a)}if(o===!1){for(let a of t)delete a.node.indexes[a.iterator];return!1}if(i.walk&&i.proxyOf.nodes)t.push({iterator:i.getIterator(),node:i});else n.indexes[r]+=1}return}walkAtRules(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)});return this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)})}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)});return this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)})}walkRules(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)});return this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)})}}Oe.registerParse=(e)=>{Oc=e};Oe.registerRule=(e)=>{ls=e};Oe.registerAtRule=(e)=>{us=e};Oe.registerRoot=(e)=>{Cc=e};Pc.exports=Oe;Oe.default=Oe;Oe.rebuild=(e)=>{let t=[e];while(t.length>0){let r=t.pop();if(r.type==="atrule")Object.setPrototypeOf(r,us.prototype);else if(r.type==="rule")Object.setPrototypeOf(r,ls.prototype);else if(r.type==="decl")Object.setPrototypeOf(r,bc.prototype);else if(r.type==="comment")Object.setPrototypeOf(r,wc.prototype);else if(r.type==="root")Object.setPrototypeOf(r,Cc.prototype);if(r[Ac]=!0,r.nodes)for(let n of r.nodes)t.push(n)}}});var Dr=d(function(_P,Rc){var Tc=qe();class Yt extends Tc{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}Rc.exports=Yt;Yt.default=Yt;Tc.registerAtRule(Yt)});var qr=d(function(mP,Mc){var jv=qe(),Lc,Ic;class St extends jv{constructor(e){super({type:"document",...e});if(!this.nodes)this.nodes=[]}toResult(e={}){return new Lc(new Ic,this,e).stringify()}}St.registerLazyResult=(e)=>{Lc=e};St.registerProcessor=(e)=>{Ic=e};Mc.exports=St;St.default=St});var Nc=d(function(yP,kc){var Bv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hv=(e,t=21)=>(r=t)=>{let n="",s=r|0;while(s-- >0)n+=e[Math.random()*e.length|0];return n},Uv=(e=21)=>{let t="",r=e|0;while(r-- >0)t+=Bv[Math.random()*64|0];return t};kc.exports={nanoid:Uv,customAlphabet:Hv}});var qc=d(function($v){var Dc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$v.encode=function(e){if(0<=e&&e<Dc.length)return Dc[e];throw TypeError("Must be between 0 and 63: "+e)};$v.decode=function(e){var t=65,r=90,n=97,s=122,i=48,o=57,a=43,u=47,l=26,c=52;if(t<=e&&e<=r)return e-t;if(n<=e&&e<=s)return e-n+l;if(i<=e&&e<=o)return e-i+c;if(e==a)return 62;if(e==u)return 63;return-1}});var fs=d(function(Yv){var Fc=qc(),cs=5,jc=1<<cs,Bc=jc-1,Hc=jc;function Vv(e){return e<0?(-e<<1)+1:(e<<1)+0}function Qv(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Yv.encode=function(t){var r="",n,s=Vv(t);do{if(n=s&Bc,s>>>=cs,s>0)n|=Hc;r+=Fc.encode(n)}while(s>0);return r};Yv.decode=function(t,r,n){var s=t.length,i=0,o=0,a,u;do{if(r>=s)throw Error("Expected more digits in base 64 VLQ value.");if(u=Fc.decode(t.charCodeAt(r++)),u===-1)throw Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(u&Hc),u&=Bc,i=i+(u<<o),o+=cs}while(a);n.value=Qv(i),n.rest=r}});var bt=d(function(Qc){function Xv(e,t,r){if(t in e)return e[t];else if(arguments.length===3)return r;else throw Error('"'+t+'" is a required argument.')}Qc.getArg=Xv;var Uc=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Jv=/^data:.+\,.+$/;function zt(e){var t=e.match(Uc);if(!t)return null;return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}Qc.urlParse=zt;function wt(e){var t="";if(e.scheme)t+=e.scheme+":";if(t+="//",e.auth)t+=e.auth+"@";if(e.host)t+=e.host;if(e.port)t+=":"+e.port;if(e.path)t+=e.path;return t}Qc.urlGenerate=wt;var Zv=32;function eS(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var s=t[0];return t[0]=t[n],t[n]=s,t[0].result}var i=e(r);if(t.unshift({input:r,result:i}),t.length>Zv)t.pop();return i}}var hs=eS(function(t){var r=t,n=zt(t);if(n){if(!n.path)return t;r=n.path}var s=Qc.isAbsolute(r),i=[],o=0,a=0;while(!0)if(o=a,a=r.indexOf("/",o),a===-1){i.push(r.slice(o));break}else{i.push(r.slice(o,a));while(a<r.length&&r[a]==="/")a++}for(var u,l=0,a=i.length-1;a>=0;a--)if(u=i[a],u===".")i.splice(a,1);else if(u==="..")l++;else if(l>0)if(u==="")i.splice(a+1,l),l=0;else i.splice(a,2),l--;if(r=i.join("/"),r==="")r=s?"/":".";if(n)return n.path=r,wt(n);return r});Qc.normalize=hs;function $c(e,t){if(e==="")e=".";if(t==="")t=".";var r=zt(t),n=zt(e);if(n)e=n.path||"/";if(r&&!r.scheme){if(n)r.scheme=n.scheme;return wt(r)}if(r||t.match(Jv))return t;if(n&&!n.host&&!n.path)return n.host=t,wt(n);var s=t.charAt(0)==="/"?t:hs(e.replace(/\/+$/,"")+"/"+t);if(n)return n.path=s,wt(n);return s}Qc.join=$c;Qc.isAbsolute=function(e){return e.charAt(0)==="/"||Uc.test(e)};function tS(e,t){if(e==="")e=".";e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}Qc.relative=tS;var Gc=function(){var e=Object.create(null);return!("__proto__"in e)}();function Wc(e){return e}function rS(e){if(Vc(e))return"$"+e;return e}Qc.toSetString=Gc?Wc:rS;function nS(e){if(Vc(e))return e.slice(1);return e}Qc.fromSetString=Gc?Wc:nS;function Vc(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function sS(e,t,r){var n=Fe(e.source,t.source);if(n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0||r)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0)return n;if(n=e.generatedLine-t.generatedLine,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByOriginalPositions=sS;function iS(e,t,r){var n=e.originalLine-t.originalLine;if(n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0||r)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0)return n;if(n=e.generatedLine-t.generatedLine,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByOriginalPositionsNoSource=iS;function oS(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0||r)return n;if(n=Fe(e.source,t.source),n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsDeflated=oS;function aS(e,t,r){var n=e.generatedColumn-t.generatedColumn;if(n!==0||r)return n;if(n=Fe(e.source,t.source),n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsDeflatedNoLine=aS;function Fe(e,t){if(e===t)return 0;if(e===null)return 1;if(t===null)return-1;if(e>t)return 1;return-1}function uS(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0)return r;if(r=e.generatedColumn-t.generatedColumn,r!==0)return r;if(r=Fe(e.source,t.source),r!==0)return r;if(r=e.originalLine-t.originalLine,r!==0)return r;if(r=e.originalColumn-t.originalColumn,r!==0)return r;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsInflated=uS;function lS(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Qc.parseSourceMapInput=lS;function cS(e,t,r){if(t=t||"",e){if(e[e.length-1]!=="/"&&t[0]!=="/")e+="/";t=e+t}if(r){var n=zt(r);if(!n)throw Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");if(s>=0)n.path=n.path.substring(0,s+1)}t=$c(wt(n),t)}return hs(t)}Qc.computeSourceURL=cS});var gs=d(function(CS){var ps=bt(),ds=Object.prototype.hasOwnProperty,Je=typeof Map<"u";function je(){this._array=[],this._set=Je?new Map:Object.create(null)}je.fromArray=function(t,r){var n=new je;for(var s=0,i=t.length;s<i;s++)n.add(t[s],r);return n};je.prototype.size=function(){return Je?this._set.size:Object.getOwnPropertyNames(this._set).length};je.prototype.add=function(t,r){var n=Je?t:ps.toSetString(t),s=Je?this.has(t):ds.call(this._set,n),i=this._array.length;if(!s||r)this._array.push(t);if(!s)if(Je)this._set.set(t,i);else this._set[n]=i};je.prototype.has=function(t){if(Je)return this._set.has(t);else{var r=ps.toSetString(t);return ds.call(this._set,r)}};je.prototype.indexOf=function(t){if(Je){var r=this._set.get(t);if(r>=0)return r}else{var n=ps.toSetString(t);if(ds.call(this._set,n))return this._set[n]}throw Error('"'+t+'" is not in the set.')};je.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw Error("No element indexed by "+t)};je.prototype.toArray=function(){return this._array.slice()};CS.ArraySet=je});var zc=d(function(RS){var Yc=bt();function TS(e,t){var r=e.generatedLine,n=t.generatedLine,s=e.generatedColumn,i=t.generatedColumn;return n>r||n==r&&i>=s||Yc.compareByGeneratedPositionsInflated(e,t)<=0}function Fr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Fr.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Fr.prototype.add=function(t){if(TS(this._last,t))this._last=t,this._array.push(t);else this._sorted=!1,this._array.push(t)};Fr.prototype.toArray=function(){if(!this._sorted)this._array.sort(Yc.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};RS.MappingList=Fr});var _s=d(function(MS){var Kt=fs(),re=bt(),jr=gs().ArraySet,IS=zc().MappingList;function ve(e){if(!e)e={};this._file=re.getArg(e,"file",null),this._sourceRoot=re.getArg(e,"sourceRoot",null),this._skipValidation=re.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=re.getArg(e,"ignoreInvalidMapping",!1),this._sources=new jr,this._names=new jr,this._mappings=new IS,this._sourcesContents=null}ve.prototype._version=3;ve.fromSourceMap=function(t,r){var n=t.sourceRoot,s=new ve(Object.assign(r||{},{file:t.file,sourceRoot:n}));return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};if(i.source!=null){if(o.source=i.source,n!=null)o.source=re.relative(n,o.source);if(o.original={line:i.originalLine,column:i.originalColumn},i.name!=null)o.name=i.name}s.addMapping(o)}),t.sources.forEach(function(i){var o=i;if(n!==null)o=re.relative(n,i);if(!s._sources.has(o))s._sources.add(o);var a=t.sourceContentFor(i);if(a!=null)s.setSourceContent(i,a)}),s};ve.prototype.addMapping=function(t){var r=re.getArg(t,"generated"),n=re.getArg(t,"original",null),s=re.getArg(t,"source",null),i=re.getArg(t,"name",null);if(!this._skipValidation){if(this._validateMapping(r,n,s,i)===!1)return}if(s!=null){if(s=String(s),!this._sources.has(s))this._sources.add(s)}if(i!=null){if(i=String(i),!this._names.has(i))this._names.add(i)}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:i})};ve.prototype.setSourceContent=function(t,r){var n=t;if(this._sourceRoot!=null)n=re.relative(this._sourceRoot,n);if(r!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[re.toSetString(n)]=r}else if(this._sourcesContents){if(delete this._sourcesContents[re.toSetString(n)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};ve.prototype.applySourceMap=function(t,r,n){var s=r;if(r==null){if(t.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var i=this._sourceRoot;if(i!=null)s=re.relative(i,s);var o=new jr,a=new jr;this._mappings.unsortedForEach(function(u){if(u.source===s&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});if(l.source!=null){if(u.source=l.source,n!=null)u.source=re.join(n,u.source);if(i!=null)u.source=re.relative(i,u.source);if(u.originalLine=l.line,u.originalColumn=l.column,l.name!=null)u.name=l.name}}var c=u.source;if(c!=null&&!o.has(c))o.add(c);var h=u.name;if(h!=null&&!a.has(h))a.add(h)},this),this._sources=o,this._names=a,t.sources.forEach(function(u){var l=t.sourceContentFor(u);if(l!=null){if(n!=null)u=re.join(n,u);if(i!=null)u=re.relative(i,u);this.setSourceContent(u,l)}},this)};ve.prototype._validateMapping=function(t,r,n,s){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){var i="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(i);return!1}else throw Error(i)}if(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!s)return;else if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;else{var i="Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:s});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(i);return!1}else throw Error(i)}};ve.prototype._serializeMappings=function(){var t=0,r=1,n=0,s=0,i=0,o=0,a="",u,l,c,h,f=this._mappings.toArray();for(var g=0,p=f.length;g<p;g++){if(l=f[g],u="",l.generatedLine!==r){t=0;while(l.generatedLine!==r)u+=";",r++}else if(g>0){if(!re.compareByGeneratedPositionsInflated(l,f[g-1]))continue;u+=","}if(u+=Kt.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null){if(h=this._sources.indexOf(l.source),u+=Kt.encode(h-o),o=h,u+=Kt.encode(l.originalLine-1-s),s=l.originalLine-1,u+=Kt.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null)c=this._names.indexOf(l.name),u+=Kt.encode(c-i),i=c}a+=u}return a};ve.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;if(r!=null)n=re.relative(r,n);var s=re.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};ve.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)t.file=this._file;if(this._sourceRoot!=null)t.sourceRoot=this._sourceRoot;if(this._sourcesContents)t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot);return t};ve.prototype.toString=function(){return JSON.stringify(this.toJSON())};MS.SourceMapGenerator=ve});var Xc=d(function(NS){NS.GREATEST_LOWER_BOUND=1;NS.LEAST_UPPER_BOUND=2;function ms(e,t,r,n,s,i){var o=Math.floor((t-e)/2)+e,a=s(r,n[o],!0);if(a===0)return o;else if(a>0){if(t-o>1)return ms(o,t,r,n,s,i);if(i==NS.LEAST_UPPER_BOUND)return t<n.length?t:-1;else return o}else{if(o-e>1)return ms(e,o,r,n,s,i);if(i==NS.LEAST_UPPER_BOUND)return o;else return e<0?-1:e}}NS.search=function(t,r,n,s){if(r.length===0)return-1;var i=ms(-1,r.length,t,r,n,s||NS.GREATEST_LOWER_BOUND);if(i<0)return-1;while(i-1>=0){if(n(r[i],r[i-1],!0)!==0)break;--i}return i}});var Zc=d(function(jS){function qS(e){function t(s,i,o){var a=s[i];s[i]=s[o],s[o]=a}function r(s,i){return Math.round(s+Math.random()*(i-s))}function n(s,i,o,a){if(o<a){var u=r(o,a),l=o-1;t(s,u,a);var c=s[a];for(var h=o;h<a;h++)if(i(s[h],c,!1)<=0)l+=1,t(s,l,h);t(s,l+1,h);var f=l+1;n(s,i,o,f-1),n(s,i,f+1,a)}}return n}function FS(e){let t=qS.toString();return Function(`return ${t}`)()(e)}var Jc=new WeakMap;jS.quickSort=function(e,t,r=0){let n=Jc.get(t);if(n===void 0)n=FS(t),Jc.set(t,n);n(e,t,r,e.length-1)}});var rf=d(function(US){var P=bt(),Ss=Xc(),xt=gs().ArraySet,HS=fs(),Xt=Zc().quickSort;function K(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);return r.sections!=null?new Ce(r,t):new ie(r,t)}K.fromSourceMap=function(e,t){return ie.fromSourceMap(e,t)};K.prototype._version=3;K.prototype.__generatedMappings=null;Object.defineProperty(K.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});K.prototype.__originalMappings=null;Object.defineProperty(K.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});K.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};K.prototype._parseMappings=function(t,r){throw Error("Subclasses must implement _parseMappings")};K.GENERATED_ORDER=1;K.ORIGINAL_ORDER=2;K.GREATEST_LOWER_BOUND=1;K.LEAST_UPPER_BOUND=2;K.prototype.eachMapping=function(t,r,n){var s=r||null,i=n||K.GENERATED_ORDER,o;switch(i){case K.GENERATED_ORDER:o=this._generatedMappings;break;case K.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var a=this.sourceRoot,u=t.bind(s),l=this._names,c=this._sources,h=this._sourceMapURL;for(var f=0,g=o.length;f<g;f++){var p=o[f],_=p.source===null?null:c.at(p.source);if(_!==null)_=P.computeSourceURL(a,_,h);u({source:_,generatedLine:p.generatedLine,generatedColumn:p.generatedColumn,originalLine:p.originalLine,originalColumn:p.originalColumn,name:p.name===null?null:l.at(p.name)})}};K.prototype.allGeneratedPositionsFor=function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,Ss.LEAST_UPPER_BOUND);if(i>=0){var o=this._originalMappings[i];if(t.column===void 0){var a=o.originalLine;while(o&&o.originalLine===a)s.push({line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}else{var u=o.originalColumn;while(o&&o.originalLine===r&&o.originalColumn==u)s.push({line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}}return s};US.SourceMapConsumer=K;function ie(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);var n=P.getArg(r,"version"),s=P.getArg(r,"sources"),i=P.getArg(r,"names",[]),o=P.getArg(r,"sourceRoot",null),a=P.getArg(r,"sourcesContent",null),u=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw Error("Unsupported version: "+n);if(o)o=P.normalize(o);s=s.map(String).map(P.normalize).map(function(c){return o&&P.isAbsolute(o)&&P.isAbsolute(c)?P.relative(o,c):c}),this._names=xt.fromArray(i.map(String),!0),this._sources=xt.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return P.computeSourceURL(o,c,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=t,this.file=l}ie.prototype=Object.create(K.prototype);ie.prototype.consumer=K;ie.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null)t=P.relative(this.sourceRoot,t);if(this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ie.fromSourceMap=function(t,r){var n=Object.create(ie.prototype),s=n._names=xt.fromArray(t._names.toArray(),!0),i=n._sources=xt.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(g){return P.computeSourceURL(n.sourceRoot,g,r)});var o=t._mappings.toArray().slice(),a=n.__generatedMappings=[],u=n.__originalMappings=[];for(var l=0,c=o.length;l<c;l++){var h=o[l],f=new tf;if(f.generatedLine=h.generatedLine,f.generatedColumn=h.generatedColumn,h.source){if(f.source=i.indexOf(h.source),f.originalLine=h.originalLine,f.originalColumn=h.originalColumn,h.name)f.name=s.indexOf(h.name);u.push(f)}a.push(f)}return Xt(n.__originalMappings,P.compareByOriginalPositions),n};ie.prototype._version=3;Object.defineProperty(ie.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function tf(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var vs=P.compareByGeneratedPositionsDeflatedNoLine;function ef(e,t){let r=e.length,n=e.length-t;if(n<=1)return;else if(n==2){let s=e[t],i=e[t+1];if(vs(s,i)>0)e[t]=i,e[t+1]=s}else if(n<20)for(let s=t;s<r;s++)for(let i=s;i>t;i--){let o=e[i-1],a=e[i];if(vs(o,a)<=0)break;e[i-1]=a,e[i]=o}else Xt(e,vs,t)}ie.prototype._parseMappings=function(t,r){var n=1,s=0,i=0,o=0,a=0,u=0,l=t.length,c=0,h={},f={},g=[],p=[],_,m,C,R,L;let q=0;while(c<l)if(t.charAt(c)===";")n++,c++,s=0,ef(p,q),q=p.length;else if(t.charAt(c)===",")c++;else{_=new tf,_.generatedLine=n;for(R=c;R<l;R++)if(this._charIsMappingSeparator(t,R))break;m=t.slice(c,R),C=[];while(c<R)HS.decode(t,c,f),L=f.value,c=f.rest,C.push(L);if(C.length===2)throw Error("Found a source, but no line and column");if(C.length===3)throw Error("Found a source and line, but no column");if(_.generatedColumn=s+C[0],s=_.generatedColumn,C.length>1){if(_.source=a+C[1],a+=C[1],_.originalLine=i+C[2],i=_.originalLine,_.originalLine+=1,_.originalColumn=o+C[3],o=_.originalColumn,C.length>4)_.name=u+C[4],u+=C[4]}if(p.push(_),typeof _.originalLine==="number"){let T=_.source;while(g.length<=T)g.push(null);if(g[T]===null)g[T]=[];g[T].push(_)}}ef(p,q),this.__generatedMappings=p;for(var D=0;D<g.length;D++)if(g[D]!=null)Xt(g[D],P.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)};ie.prototype._findMapping=function(t,r,n,s,i,o){if(t[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[s]<0)throw TypeError("Column must be greater than or equal to 0, got "+t[s]);return Ss.search(t,r,i,o)};ie.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ie.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var i=P.getArg(s,"source",null);if(i!==null)i=this._sources.at(i),i=P.computeSourceURL(this.sourceRoot,i,this._sourceMapURL);var o=P.getArg(s,"name",null);if(o!==null)o=this._names.at(o);return{source:i,line:P.getArg(s,"originalLine",null),column:P.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};ie.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null})};ie.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var s=t;if(this.sourceRoot!=null)s=P.relative(this.sourceRoot,s);var i;if(this.sourceRoot!=null&&(i=P.urlParse(this.sourceRoot))){var o=s.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||i.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;else throw Error('"'+s+'" is not in the SourceMap.')};ie.prototype.generatedPositionFor=function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===n.source)return{line:P.getArg(i,"generatedLine",null),column:P.getArg(i,"generatedColumn",null),lastColumn:P.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};US.BasicSourceMapConsumer=ie;function Ce(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);var n=P.getArg(r,"version"),s=P.getArg(r,"sections");if(n!=this._version)throw Error("Unsupported version: "+n);this._sources=new xt,this._names=new xt;var i={line:-1,column:0};this._sections=s.map(function(o){if(o.url)throw Error("Support for url field in sections not implemented.");var a=P.getArg(o,"offset"),u=P.getArg(a,"line"),l=P.getArg(a,"column");if(u<i.line||u===i.line&&l<i.column)throw Error("Section offsets must be ordered and non-overlapping.");return i=a,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new K(P.getArg(o,"map"),t)}})}Ce.prototype=Object.create(K.prototype);Ce.prototype.constructor=K;Ce.prototype._version=3;Object.defineProperty(Ce.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Ce.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=Ss.search(r,this._sections,function(i,o){var a=i.generatedLine-o.generatedOffset.generatedLine;if(a)return a;return i.generatedColumn-o.generatedOffset.generatedColumn}),s=this._sections[n];if(!s)return{source:null,line:null,column:null,name:null};return s.consumer.originalPositionFor({line:r.generatedLine-(s.generatedOffset.generatedLine-1),column:r.generatedColumn-(s.generatedOffset.generatedLine===r.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias})};Ce.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Ce.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var s=this._sections[n],i=s.consumer.sourceContentFor(t,!0);if(i||i==="")return i}if(r)return null;else throw Error('"'+t+'" is not in the SourceMap.')};Ce.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))===-1)continue;var s=n.consumer.generatedPositionFor(t);if(s){var i={line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)};return i}}return{line:null,column:null}};Ce.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++){var s=this._sections[n],i=s.consumer._generatedMappings;for(var o=0;o<i.length;o++){var a=i[o],u=s.consumer._sources.at(a.source);if(u!==null)u=P.computeSourceURL(s.consumer.sourceRoot,u,this._sourceMapURL);this._sources.add(u),u=this._sources.indexOf(u);var l=null;if(a.name)l=s.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l);var c={source:u,generatedLine:a.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(s.generatedOffset.generatedLine===a.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};if(this.__generatedMappings.push(c),typeof c.originalLine==="number")this.__originalMappings.push(c)}}Xt(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),Xt(this.__originalMappings,P.compareByOriginalPositions)};US.IndexedSourceMapConsumer=Ce});var nf=d(function(zS){var VS=_s().SourceMapGenerator,Br=bt(),QS=/(\r?\n)/,YS=10,Et="$$$isSourceNode$$$";function _e(e,t,r,n,s){if(this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=s==null?null:s,this[Et]=!0,n!=null)this.add(n)}_e.fromStringWithSourceMap=function(t,r,n){var s=new _e,i=t.split(QS),o=0,a=function(){var f=p(),g=p()||"";return f+g;function p(){return o<i.length?i[o++]:void 0}},u=1,l=0,c=null;if(r.eachMapping(function(f){if(c!==null)if(u<f.generatedLine)h(c,a()),u++,l=0;else{var g=i[o]||"",p=g.substr(0,f.generatedColumn-l);i[o]=g.substr(f.generatedColumn-l),l=f.generatedColumn,h(c,p),c=f;return}while(u<f.generatedLine)s.add(a()),u++;if(l<f.generatedColumn){var g=i[o]||"";s.add(g.substr(0,f.generatedColumn)),i[o]=g.substr(f.generatedColumn),l=f.generatedColumn}c=f},this),o<i.length){if(c)h(c,a());s.add(i.splice(o).join(""))}return r.sources.forEach(function(f){var g=r.sourceContentFor(f);if(g!=null){if(n!=null)f=Br.join(n,f);s.setSourceContent(f,g)}}),s;function h(f,g){if(f===null||f.source===void 0)s.add(g);else{var p=n?Br.join(n,f.source):f.source;s.add(new _e(f.originalLine,f.originalColumn,p,g,f.name))}}};_e.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Et]||typeof t==="string"){if(t)this.children.push(t)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};_e.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Et]||typeof t==="string")this.children.unshift(t);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};_e.prototype.walk=function(t){var r;for(var n=0,s=this.children.length;n<s;n++)if(r=this.children[n],r[Et])r.walk(t);else if(r!=="")t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};_e.prototype.join=function(t){var r,n,s=this.children.length;if(s>0){r=[];for(n=0;n<s-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};_e.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];if(n[Et])n.replaceRight(t,r);else if(typeof n==="string")this.children[this.children.length-1]=n.replace(t,r);else this.children.push("".replace(t,r));return this};_e.prototype.setSourceContent=function(t,r){this.sourceContents[Br.toSetString(t)]=r};_e.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)if(this.children[r][Et])this.children[r].walkSourceContents(t);var s=Object.keys(this.sourceContents);for(var r=0,n=s.length;r<n;r++)t(Br.fromSetString(s[r]),this.sourceContents[s[r]])};_e.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};_e.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new VS(t),s=!1,i=null,o=null,a=null,u=null;return this.walk(function(l,c){if(r.code+=l,c.source!==null&&c.line!==null&&c.column!==null){if(i!==c.source||o!==c.line||a!==c.column||u!==c.name)n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name});i=c.source,o=c.line,a=c.column,u=c.name,s=!0}else if(s)n.addMapping({generated:{line:r.line,column:r.column}}),i=null,s=!1;for(var h=0,f=l.length;h<f;h++)if(l.charCodeAt(h)===YS){if(r.line++,r.column=0,h+1===f)i=null,s=!1;else if(s)n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})}else r.column++}),this.walkSourceContents(function(l,c){n.setSourceContent(l,c)}),{code:r.code,map:n}};zS.SourceNode=_e});var Hr=d(function(XS){XS.SourceMapGenerator=_s().SourceMapGenerator;XS.SourceMapConsumer=rf().SourceMapConsumer;XS.SourceNode=nf().SourceNode});var ws=d(function(RP,uf){var{existsSync:tw,readFileSync:rw,realpathSync:nw}=j("fs"),{dirname:Ur,isAbsolute:sw,join:iw,relative:ow,sep:aw}=j("path"),{SourceMapConsumer:sf,SourceMapGenerator:of}=Hr();function af(e){try{return nw(e)}catch{return e}}function uw(e){if(Buffer)return Buffer.from(e,"base64").toString();else return window.atob(e)}class $r{constructor(e,t){if(t.map===!1)return;if(t.unsafeMap)this.unsafeMap=!0;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);if(!this.mapFile&&t.from)this.mapFile=t.from;if(this.mapFile)this.root=Ur(this.mapFile);if(n)this.text=n}consumer(){if(!this.consumerCache)this.consumerCache=new sf(this.json||this.text);return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,i=e.match(n)||e.match(s);if(i)return decodeURIComponent(e.substr(i[0].length));let o=e.match(t)||e.match(r);if(o)return uw(e.substr(o[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return!1;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);if(r>-1&&n>-1)this.annotation=this.getAnnotationURL(e.substring(r,n))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(!t)return;let n=ow(af(Ur(t)),af(e));if(n===".."||n.startsWith(".."+aw)||sw(n))return}if(this.root=Ur(e),tw(e))return this.mapFile=e,rw(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t)if(typeof t==="string")return t;else if(typeof t==="function"){let r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(t instanceof sf)return of.fromSourceMap(t).toString();else if(t instanceof of)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let r=this.annotation;if(e)r=iw(Ur(e),r);let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}startWith(e,t){if(!e)return!1;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}uf.exports=$r;$r.default=$r});var Zt=d(function(LP,pf){var{nanoid:lw}=Nc(),{isAbsolute:xs,resolve:Es}=j("path"),{SourceMapConsumer:cw,SourceMapGenerator:fw}=Hr(),{fileURLToPath:lf,pathToFileURL:Gr}=j("url"),cf=Mr(),hw=ws(),As=ss(),bs=Symbol("lineToIndexCache"),pw=Boolean(cw&&fw),ff=Boolean(Es&&xs);function hf(e){if(e[bs])return e[bs];let t=e.css.split(`
|
|
50
|
-
`),r=Array(t.length),n=0;for(let s=0,i=t.length;s<i;s++)r[s]=n,n+=t[s].length+1;return e[bs]=r,r}class Jt{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e==="object"&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(this.document=this.css,t.document)this.document=t.document.toString();if(t.from)if(!ff||/^\w+:\/\//.test(t.from)||xs(t.from))this.file=t.from;else this.file=Es(t.from);if(ff&&pw){let r=new hw(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;if(!this.file&&n)this.file=this.mapResolve(n)}}if(!this.file)this.id="<input css "+lw(6)+">";if(this.map)this.map.file=this.from}error(e,t,r,n={}){let s,i,o,a,u;if(t&&typeof t==="object"){let c=t,
|
|
51
|
-
`,"\t"];return er.split(e,t)},split(e,t,r){if(typeof e!=="string")return[];let n=[],s="",i=!1,o=0,a=!1,u="",l=!1;for(let
|
|
49
|
+
`)t=1,r+=1;else t+=1;return{column:t,line:r,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Ne(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==="number"?this.source.end.offset:Ne(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let i=t.slice(Ne(t,this.source.start),Ne(t,this.source.end)).indexOf(e.word);if(i!==-1)r=this.positionInside(i),n=this.positionInside(i+e.word.length)}else{if(e.start)r={column:e.start.column,line:e.start.line,offset:Ne(t,e.start)};else if(typeof e.index==="number")r=this.positionInside(e.index);if(e.end)n={column:e.end.column,line:e.end.line,offset:Ne(t,e.end)};else if(typeof e.endIndex==="number")n=this.positionInside(e.endIndex);else if(typeof e.index==="number")n=this.positionInside(e.index+1)}if(n.line<r.line||n.line===r.line&&n.column<=r.column)n={column:r.column+1,line:r.line,offset:r.offset+1};return{end:n,start:r}}raw(e,t){return new Lv().raw(this,e,t)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)if(n===this)r=!0;else if(r)this.parent.insertAfter(t,n),t=n;else this.parent.insertBefore(t,n);if(!r)this.remove()}return this}root(){let e=this;while(e.parent&&e.parent.type!=="document")e=e.parent;return e}toJSON(e,t){let r=t==null;t=t||new Map;let n=[],s=[[this,n,0]];for(let o=0;o<s.length;o++){let[a,u,l]=s[o],c={};u[l]=c;for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;if(f==="parent"||f==="proxyCache")continue;let h=a[f];if(Array.isArray(h)){let _=[];c[f]=_;for(let p=0;p<h.length;p++){let g=h[p];if(typeof g==="object"&&g.toJSON)if(g.toJSON===vt.prototype.toJSON)s.push([g,_,p]);else _[p]=g.toJSON(null,t);else _[p]=g}}else if(typeof h==="object"&&h.toJSON)if(h.toJSON===vt.prototype.toJSON)s.push([h,c,f]);else c[f]=h.toJSON(null,t);else if(f==="source"){if(h==null)continue;let _=t.get(h.input);if(_==null)_=t.size,t.set(h.input,_);c[f]={end:h.end,inputId:_,start:h.start}}else c[f]=h}}let i=n[0];if(r)i.inputs=[...t.keys()].map((o)=>o.toJSON());return i}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(e=Iv){if(e.stringify)e=e.stringify;let t="";return e(this,(r)=>{t+=r}),t}warn(e,t,r={}){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}}yc.exports=vt;vt.default=vt});var Vt=d(function(pP,vc){var Nv=Wt();class kr extends Nv{constructor(e){super(e);this.type="comment"}}vc.exports=kr;kr.default=kr});var Qt=d(function(dP,Sc){var Dv=Wt();class Nr extends Dv{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){if(e&&typeof e.value<"u"&&typeof e.value!=="string")e={...e,value:String(e.value)};super(e);this.type="decl"}}Sc.exports=Nr;Nr.default=Nr});var qe=d(function(gP,Pc){var wc=Vt(),bc=Qt(),xc=Wt(),{isClean:Ec,my:Ac}=$t(),us,Oc,Cc,ls;function qv(e){let t=e.slice();while(t.length>0){let r=t.pop();if(delete r.source,r.nodes){r.nodes=r.nodes.slice();for(let n of r.nodes)t.push(n)}}return e.slice()}function Fv(e){let t=[e];while(t.length>0){let r=t.pop();if(r[Ec]=!1,r.proxyOf.nodes)for(let n of r.proxyOf.nodes)t.push(n)}}class Oe extends xc{get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){let t=[this];while(t.length>0){let r=t.pop();if(r!==this&&r.cleanRaws!==Oe.prototype.cleanRaws){r.cleanRaws(e);continue}if(xc.prototype.cleanRaws.call(r,e),r.nodes)for(let n of r.nodes)t.push(n)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;while(this.indexes[t]<this.proxyOf.nodes.length){if(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n===!1)break;this.indexes[t]+=1}return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){if(t==="proxyOf")return e;else if(!e[t])return e[t];else if(t==="each"||typeof t==="string"&&t.startsWith("walk"))return(...r)=>e[t](...r.map((n)=>{if(typeof n==="function")return(s,i)=>n(s.toProxy(),i);else return n}));else if(t==="every"||t==="some")return(r)=>e[t]((n,...s)=>r(n.toProxy(),...s));else if(t==="root")return()=>e.root().toProxy();else if(t==="nodes")return e.nodes.map((r)=>r.toProxy());else if(t==="first"||t==="last")return e[t].toProxy();else return e[t]},set(e,t,r){if(e[t]===r)return!0;if(e[t]=r,t==="name"||t==="params"||t==="selector")e.markDirty();return!0}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let i of n)this.proxyOf.nodes.splice(r+1,0,i);let s;for(let i in this.indexes)if(s=this.indexes[i],r<s)this.indexes[i]=s+n.length;return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r,0,o);let i;for(let o in this.indexes)if(i=this.indexes[o],r<=i)this.indexes[o]=i+s.length;return this.markDirty(),this}normalize(e,t){if(typeof e==="string")e=qv(Oc(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)if(n.parent)n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)if(n.parent)n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw Error("Value field is missed in node creation");else if(typeof e.value!=="string")e.value=String(e.value);e=[new bc(e)]}else if(e.selector||e.selectors)e=[new ls(e)];else if(e.name)e=[new us(e)];else if(e.text)e=[new wc(e)];else throw Error("Unknown node type in node creation");return e.map((n)=>{if(!n[Ac])Oe.rebuild(n);if(n=n.proxyOf,n.parent)n.parent.removeChild(n);if(n[Ec])Fv(n);if(!n.raws)n.raws={};if(typeof n.raws.before>"u"){if(t&&typeof t.raws.before<"u")n.raws.before=t.raws.before.replace(/\S/g,"")}return n.parent=this.proxyOf,n})}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)if(t=this.indexes[r],t>=e)this.indexes[r]=t-1;return this.markDirty(),this}replaceValues(e,t,r){if(!r)r=t,t={};return this.walkDecls((n)=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,r)}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];while(t.length>0){let{iterator:r,node:n}=t[t.length-1],s=n.indexes[r];if(s>=n.proxyOf.nodes.length){delete n.indexes[r],t.pop();let a=t[t.length-1];if(a)a.node.indexes[a.iterator]+=1;continue}let i=n.proxyOf.nodes[s],o;try{o=e(i,s)}catch(a){throw i.addToError(a)}if(o===!1){for(let a of t)delete a.node.indexes[a.iterator];return!1}if(i.walk&&i.proxyOf.nodes)t.push({iterator:i.getIterator(),node:i});else n.indexes[r]+=1}return}walkAtRules(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)});return this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)})}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)});return this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)})}walkRules(e,t){if(!t)return t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)});if(e instanceof RegExp)return this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)});return this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)})}}Oe.registerParse=(e)=>{Oc=e};Oe.registerRule=(e)=>{ls=e};Oe.registerAtRule=(e)=>{us=e};Oe.registerRoot=(e)=>{Cc=e};Pc.exports=Oe;Oe.default=Oe;Oe.rebuild=(e)=>{let t=[e];while(t.length>0){let r=t.pop();if(r.type==="atrule")Object.setPrototypeOf(r,us.prototype);else if(r.type==="rule")Object.setPrototypeOf(r,ls.prototype);else if(r.type==="decl")Object.setPrototypeOf(r,bc.prototype);else if(r.type==="comment")Object.setPrototypeOf(r,wc.prototype);else if(r.type==="root")Object.setPrototypeOf(r,Cc.prototype);if(r[Ac]=!0,r.nodes)for(let n of r.nodes)t.push(n)}}});var Dr=d(function(_P,Rc){var Tc=qe();class Yt extends Tc{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}Rc.exports=Yt;Yt.default=Yt;Tc.registerAtRule(Yt)});var qr=d(function(mP,Mc){var jv=qe(),Lc,Ic;class St extends jv{constructor(e){super({type:"document",...e});if(!this.nodes)this.nodes=[]}toResult(e={}){return new Lc(new Ic,this,e).stringify()}}St.registerLazyResult=(e)=>{Lc=e};St.registerProcessor=(e)=>{Ic=e};Mc.exports=St;St.default=St});var Nc=d(function(yP,kc){var Bv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hv=(e,t=21)=>(r=t)=>{let n="",s=r|0;while(s-- >0)n+=e[Math.random()*e.length|0];return n},Uv=(e=21)=>{let t="",r=e|0;while(r-- >0)t+=Bv[Math.random()*64|0];return t};kc.exports={nanoid:Uv,customAlphabet:Hv}});var qc=d(function($v){var Dc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");$v.encode=function(e){if(0<=e&&e<Dc.length)return Dc[e];throw TypeError("Must be between 0 and 63: "+e)};$v.decode=function(e){var t=65,r=90,n=97,s=122,i=48,o=57,a=43,u=47,l=26,c=52;if(t<=e&&e<=r)return e-t;if(n<=e&&e<=s)return e-n+l;if(i<=e&&e<=o)return e-i+c;if(e==a)return 62;if(e==u)return 63;return-1}});var fs=d(function(Yv){var Fc=qc(),cs=5,jc=1<<cs,Bc=jc-1,Hc=jc;function Vv(e){return e<0?(-e<<1)+1:(e<<1)+0}function Qv(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Yv.encode=function(t){var r="",n,s=Vv(t);do{if(n=s&Bc,s>>>=cs,s>0)n|=Hc;r+=Fc.encode(n)}while(s>0);return r};Yv.decode=function(t,r,n){var s=t.length,i=0,o=0,a,u;do{if(r>=s)throw Error("Expected more digits in base 64 VLQ value.");if(u=Fc.decode(t.charCodeAt(r++)),u===-1)throw Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(u&Hc),u&=Bc,i=i+(u<<o),o+=cs}while(a);n.value=Qv(i),n.rest=r}});var bt=d(function(Qc){function Xv(e,t,r){if(t in e)return e[t];else if(arguments.length===3)return r;else throw Error('"'+t+'" is a required argument.')}Qc.getArg=Xv;var Uc=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Jv=/^data:.+\,.+$/;function zt(e){var t=e.match(Uc);if(!t)return null;return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}Qc.urlParse=zt;function wt(e){var t="";if(e.scheme)t+=e.scheme+":";if(t+="//",e.auth)t+=e.auth+"@";if(e.host)t+=e.host;if(e.port)t+=":"+e.port;if(e.path)t+=e.path;return t}Qc.urlGenerate=wt;var Zv=32;function eS(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var s=t[0];return t[0]=t[n],t[n]=s,t[0].result}var i=e(r);if(t.unshift({input:r,result:i}),t.length>Zv)t.pop();return i}}var hs=eS(function(t){var r=t,n=zt(t);if(n){if(!n.path)return t;r=n.path}var s=Qc.isAbsolute(r),i=[],o=0,a=0;while(!0)if(o=a,a=r.indexOf("/",o),a===-1){i.push(r.slice(o));break}else{i.push(r.slice(o,a));while(a<r.length&&r[a]==="/")a++}for(var u,l=0,a=i.length-1;a>=0;a--)if(u=i[a],u===".")i.splice(a,1);else if(u==="..")l++;else if(l>0)if(u==="")i.splice(a+1,l),l=0;else i.splice(a,2),l--;if(r=i.join("/"),r==="")r=s?"/":".";if(n)return n.path=r,wt(n);return r});Qc.normalize=hs;function $c(e,t){if(e==="")e=".";if(t==="")t=".";var r=zt(t),n=zt(e);if(n)e=n.path||"/";if(r&&!r.scheme){if(n)r.scheme=n.scheme;return wt(r)}if(r||t.match(Jv))return t;if(n&&!n.host&&!n.path)return n.host=t,wt(n);var s=t.charAt(0)==="/"?t:hs(e.replace(/\/+$/,"")+"/"+t);if(n)return n.path=s,wt(n);return s}Qc.join=$c;Qc.isAbsolute=function(e){return e.charAt(0)==="/"||Uc.test(e)};function tS(e,t){if(e==="")e=".";e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}Qc.relative=tS;var Gc=function(){var e=Object.create(null);return!("__proto__"in e)}();function Wc(e){return e}function rS(e){if(Vc(e))return"$"+e;return e}Qc.toSetString=Gc?Wc:rS;function nS(e){if(Vc(e))return e.slice(1);return e}Qc.fromSetString=Gc?Wc:nS;function Vc(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function sS(e,t,r){var n=Fe(e.source,t.source);if(n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0||r)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0)return n;if(n=e.generatedLine-t.generatedLine,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByOriginalPositions=sS;function iS(e,t,r){var n=e.originalLine-t.originalLine;if(n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0||r)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0)return n;if(n=e.generatedLine-t.generatedLine,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByOriginalPositionsNoSource=iS;function oS(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0)return n;if(n=e.generatedColumn-t.generatedColumn,n!==0||r)return n;if(n=Fe(e.source,t.source),n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsDeflated=oS;function aS(e,t,r){var n=e.generatedColumn-t.generatedColumn;if(n!==0||r)return n;if(n=Fe(e.source,t.source),n!==0)return n;if(n=e.originalLine-t.originalLine,n!==0)return n;if(n=e.originalColumn-t.originalColumn,n!==0)return n;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsDeflatedNoLine=aS;function Fe(e,t){if(e===t)return 0;if(e===null)return 1;if(t===null)return-1;if(e>t)return 1;return-1}function uS(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0)return r;if(r=e.generatedColumn-t.generatedColumn,r!==0)return r;if(r=Fe(e.source,t.source),r!==0)return r;if(r=e.originalLine-t.originalLine,r!==0)return r;if(r=e.originalColumn-t.originalColumn,r!==0)return r;return Fe(e.name,t.name)}Qc.compareByGeneratedPositionsInflated=uS;function lS(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Qc.parseSourceMapInput=lS;function cS(e,t,r){if(t=t||"",e){if(e[e.length-1]!=="/"&&t[0]!=="/")e+="/";t=e+t}if(r){var n=zt(r);if(!n)throw Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");if(s>=0)n.path=n.path.substring(0,s+1)}t=$c(wt(n),t)}return hs(t)}Qc.computeSourceURL=cS});var gs=d(function(CS){var ps=bt(),ds=Object.prototype.hasOwnProperty,Je=typeof Map<"u";function je(){this._array=[],this._set=Je?new Map:Object.create(null)}je.fromArray=function(t,r){var n=new je;for(var s=0,i=t.length;s<i;s++)n.add(t[s],r);return n};je.prototype.size=function(){return Je?this._set.size:Object.getOwnPropertyNames(this._set).length};je.prototype.add=function(t,r){var n=Je?t:ps.toSetString(t),s=Je?this.has(t):ds.call(this._set,n),i=this._array.length;if(!s||r)this._array.push(t);if(!s)if(Je)this._set.set(t,i);else this._set[n]=i};je.prototype.has=function(t){if(Je)return this._set.has(t);else{var r=ps.toSetString(t);return ds.call(this._set,r)}};je.prototype.indexOf=function(t){if(Je){var r=this._set.get(t);if(r>=0)return r}else{var n=ps.toSetString(t);if(ds.call(this._set,n))return this._set[n]}throw Error('"'+t+'" is not in the set.')};je.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw Error("No element indexed by "+t)};je.prototype.toArray=function(){return this._array.slice()};CS.ArraySet=je});var zc=d(function(RS){var Yc=bt();function TS(e,t){var r=e.generatedLine,n=t.generatedLine,s=e.generatedColumn,i=t.generatedColumn;return n>r||n==r&&i>=s||Yc.compareByGeneratedPositionsInflated(e,t)<=0}function Fr(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Fr.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Fr.prototype.add=function(t){if(TS(this._last,t))this._last=t,this._array.push(t);else this._sorted=!1,this._array.push(t)};Fr.prototype.toArray=function(){if(!this._sorted)this._array.sort(Yc.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};RS.MappingList=Fr});var _s=d(function(MS){var Kt=fs(),re=bt(),jr=gs().ArraySet,IS=zc().MappingList;function ve(e){if(!e)e={};this._file=re.getArg(e,"file",null),this._sourceRoot=re.getArg(e,"sourceRoot",null),this._skipValidation=re.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=re.getArg(e,"ignoreInvalidMapping",!1),this._sources=new jr,this._names=new jr,this._mappings=new IS,this._sourcesContents=null}ve.prototype._version=3;ve.fromSourceMap=function(t,r){var n=t.sourceRoot,s=new ve(Object.assign(r||{},{file:t.file,sourceRoot:n}));return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};if(i.source!=null){if(o.source=i.source,n!=null)o.source=re.relative(n,o.source);if(o.original={line:i.originalLine,column:i.originalColumn},i.name!=null)o.name=i.name}s.addMapping(o)}),t.sources.forEach(function(i){var o=i;if(n!==null)o=re.relative(n,i);if(!s._sources.has(o))s._sources.add(o);var a=t.sourceContentFor(i);if(a!=null)s.setSourceContent(i,a)}),s};ve.prototype.addMapping=function(t){var r=re.getArg(t,"generated"),n=re.getArg(t,"original",null),s=re.getArg(t,"source",null),i=re.getArg(t,"name",null);if(!this._skipValidation){if(this._validateMapping(r,n,s,i)===!1)return}if(s!=null){if(s=String(s),!this._sources.has(s))this._sources.add(s)}if(i!=null){if(i=String(i),!this._names.has(i))this._names.add(i)}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:i})};ve.prototype.setSourceContent=function(t,r){var n=t;if(this._sourceRoot!=null)n=re.relative(this._sourceRoot,n);if(r!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[re.toSetString(n)]=r}else if(this._sourcesContents){if(delete this._sourcesContents[re.toSetString(n)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};ve.prototype.applySourceMap=function(t,r,n){var s=r;if(r==null){if(t.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var i=this._sourceRoot;if(i!=null)s=re.relative(i,s);var o=new jr,a=new jr;this._mappings.unsortedForEach(function(u){if(u.source===s&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});if(l.source!=null){if(u.source=l.source,n!=null)u.source=re.join(n,u.source);if(i!=null)u.source=re.relative(i,u.source);if(u.originalLine=l.line,u.originalColumn=l.column,l.name!=null)u.name=l.name}}var c=u.source;if(c!=null&&!o.has(c))o.add(c);var f=u.name;if(f!=null&&!a.has(f))a.add(f)},this),this._sources=o,this._names=a,t.sources.forEach(function(u){var l=t.sourceContentFor(u);if(l!=null){if(n!=null)u=re.join(n,u);if(i!=null)u=re.relative(i,u);this.setSourceContent(u,l)}},this)};ve.prototype._validateMapping=function(t,r,n,s){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){var i="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(i);return!1}else throw Error(i)}if(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!s)return;else if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;else{var i="Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:s});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(i);return!1}else throw Error(i)}};ve.prototype._serializeMappings=function(){var t=0,r=1,n=0,s=0,i=0,o=0,a="",u,l,c,f,h=this._mappings.toArray();for(var _=0,p=h.length;_<p;_++){if(l=h[_],u="",l.generatedLine!==r){t=0;while(l.generatedLine!==r)u+=";",r++}else if(_>0){if(!re.compareByGeneratedPositionsInflated(l,h[_-1]))continue;u+=","}if(u+=Kt.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null){if(f=this._sources.indexOf(l.source),u+=Kt.encode(f-o),o=f,u+=Kt.encode(l.originalLine-1-s),s=l.originalLine-1,u+=Kt.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null)c=this._names.indexOf(l.name),u+=Kt.encode(c-i),i=c}a+=u}return a};ve.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;if(r!=null)n=re.relative(r,n);var s=re.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};ve.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)t.file=this._file;if(this._sourceRoot!=null)t.sourceRoot=this._sourceRoot;if(this._sourcesContents)t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot);return t};ve.prototype.toString=function(){return JSON.stringify(this.toJSON())};MS.SourceMapGenerator=ve});var Xc=d(function(NS){NS.GREATEST_LOWER_BOUND=1;NS.LEAST_UPPER_BOUND=2;function ms(e,t,r,n,s,i){var o=Math.floor((t-e)/2)+e,a=s(r,n[o],!0);if(a===0)return o;else if(a>0){if(t-o>1)return ms(o,t,r,n,s,i);if(i==NS.LEAST_UPPER_BOUND)return t<n.length?t:-1;else return o}else{if(o-e>1)return ms(e,o,r,n,s,i);if(i==NS.LEAST_UPPER_BOUND)return o;else return e<0?-1:e}}NS.search=function(t,r,n,s){if(r.length===0)return-1;var i=ms(-1,r.length,t,r,n,s||NS.GREATEST_LOWER_BOUND);if(i<0)return-1;while(i-1>=0){if(n(r[i],r[i-1],!0)!==0)break;--i}return i}});var Zc=d(function(jS){function qS(e){function t(s,i,o){var a=s[i];s[i]=s[o],s[o]=a}function r(s,i){return Math.round(s+Math.random()*(i-s))}function n(s,i,o,a){if(o<a){var u=r(o,a),l=o-1;t(s,u,a);var c=s[a];for(var f=o;f<a;f++)if(i(s[f],c,!1)<=0)l+=1,t(s,l,f);t(s,l+1,f);var h=l+1;n(s,i,o,h-1),n(s,i,h+1,a)}}return n}function FS(e){let t=qS.toString();return Function(`return ${t}`)()(e)}var Jc=new WeakMap;jS.quickSort=function(e,t,r=0){let n=Jc.get(t);if(n===void 0)n=FS(t),Jc.set(t,n);n(e,t,r,e.length-1)}});var rf=d(function(US){var P=bt(),Ss=Xc(),xt=gs().ArraySet,HS=fs(),Xt=Zc().quickSort;function K(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);return r.sections!=null?new Ce(r,t):new ie(r,t)}K.fromSourceMap=function(e,t){return ie.fromSourceMap(e,t)};K.prototype._version=3;K.prototype.__generatedMappings=null;Object.defineProperty(K.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});K.prototype.__originalMappings=null;Object.defineProperty(K.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});K.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};K.prototype._parseMappings=function(t,r){throw Error("Subclasses must implement _parseMappings")};K.GENERATED_ORDER=1;K.ORIGINAL_ORDER=2;K.GREATEST_LOWER_BOUND=1;K.LEAST_UPPER_BOUND=2;K.prototype.eachMapping=function(t,r,n){var s=r||null,i=n||K.GENERATED_ORDER,o;switch(i){case K.GENERATED_ORDER:o=this._generatedMappings;break;case K.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var a=this.sourceRoot,u=t.bind(s),l=this._names,c=this._sources,f=this._sourceMapURL;for(var h=0,_=o.length;h<_;h++){var p=o[h],g=p.source===null?null:c.at(p.source);if(g!==null)g=P.computeSourceURL(a,g,f);u({source:g,generatedLine:p.generatedLine,generatedColumn:p.generatedColumn,originalLine:p.originalLine,originalColumn:p.originalColumn,name:p.name===null?null:l.at(p.name)})}};K.prototype.allGeneratedPositionsFor=function(t){var r=P.getArg(t,"line"),n={source:P.getArg(t,"source"),originalLine:r,originalColumn:P.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,Ss.LEAST_UPPER_BOUND);if(i>=0){var o=this._originalMappings[i];if(t.column===void 0){var a=o.originalLine;while(o&&o.originalLine===a)s.push({line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}else{var u=o.originalColumn;while(o&&o.originalLine===r&&o.originalColumn==u)s.push({line:P.getArg(o,"generatedLine",null),column:P.getArg(o,"generatedColumn",null),lastColumn:P.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}}return s};US.SourceMapConsumer=K;function ie(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);var n=P.getArg(r,"version"),s=P.getArg(r,"sources"),i=P.getArg(r,"names",[]),o=P.getArg(r,"sourceRoot",null),a=P.getArg(r,"sourcesContent",null),u=P.getArg(r,"mappings"),l=P.getArg(r,"file",null);if(n!=this._version)throw Error("Unsupported version: "+n);if(o)o=P.normalize(o);s=s.map(String).map(P.normalize).map(function(c){return o&&P.isAbsolute(o)&&P.isAbsolute(c)?P.relative(o,c):c}),this._names=xt.fromArray(i.map(String),!0),this._sources=xt.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return P.computeSourceURL(o,c,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=t,this.file=l}ie.prototype=Object.create(K.prototype);ie.prototype.consumer=K;ie.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null)t=P.relative(this.sourceRoot,t);if(this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ie.fromSourceMap=function(t,r){var n=Object.create(ie.prototype),s=n._names=xt.fromArray(t._names.toArray(),!0),i=n._sources=xt.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(_){return P.computeSourceURL(n.sourceRoot,_,r)});var o=t._mappings.toArray().slice(),a=n.__generatedMappings=[],u=n.__originalMappings=[];for(var l=0,c=o.length;l<c;l++){var f=o[l],h=new tf;if(h.generatedLine=f.generatedLine,h.generatedColumn=f.generatedColumn,f.source){if(h.source=i.indexOf(f.source),h.originalLine=f.originalLine,h.originalColumn=f.originalColumn,f.name)h.name=s.indexOf(f.name);u.push(h)}a.push(h)}return Xt(n.__originalMappings,P.compareByOriginalPositions),n};ie.prototype._version=3;Object.defineProperty(ie.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function tf(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var vs=P.compareByGeneratedPositionsDeflatedNoLine;function ef(e,t){let r=e.length,n=e.length-t;if(n<=1)return;else if(n==2){let s=e[t],i=e[t+1];if(vs(s,i)>0)e[t]=i,e[t+1]=s}else if(n<20)for(let s=t;s<r;s++)for(let i=s;i>t;i--){let o=e[i-1],a=e[i];if(vs(o,a)<=0)break;e[i-1]=a,e[i]=o}else Xt(e,vs,t)}ie.prototype._parseMappings=function(t,r){var n=1,s=0,i=0,o=0,a=0,u=0,l=t.length,c=0,f={},h={},_=[],p=[],g,m,C,R,I;let D=0;while(c<l)if(t.charAt(c)===";")n++,c++,s=0,ef(p,D),D=p.length;else if(t.charAt(c)===",")c++;else{g=new tf,g.generatedLine=n;for(R=c;R<l;R++)if(this._charIsMappingSeparator(t,R))break;m=t.slice(c,R),C=[];while(c<R)HS.decode(t,c,h),I=h.value,c=h.rest,C.push(I);if(C.length===2)throw Error("Found a source, but no line and column");if(C.length===3)throw Error("Found a source and line, but no column");if(g.generatedColumn=s+C[0],s=g.generatedColumn,C.length>1){if(g.source=a+C[1],a+=C[1],g.originalLine=i+C[2],i=g.originalLine,g.originalLine+=1,g.originalColumn=o+C[3],o=g.originalColumn,C.length>4)g.name=u+C[4],u+=C[4]}if(p.push(g),typeof g.originalLine==="number"){let T=g.source;while(_.length<=T)_.push(null);if(_[T]===null)_[T]=[];_[T].push(g)}}ef(p,D),this.__generatedMappings=p;for(var q=0;q<_.length;q++)if(_[q]!=null)Xt(_[q],P.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(..._)};ie.prototype._findMapping=function(t,r,n,s,i,o){if(t[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[s]<0)throw TypeError("Column must be greater than or equal to 0, got "+t[s]);return Ss.search(t,r,i,o)};ie.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ie.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",P.compareByGeneratedPositionsDeflated,P.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var i=P.getArg(s,"source",null);if(i!==null)i=this._sources.at(i),i=P.computeSourceURL(this.sourceRoot,i,this._sourceMapURL);var o=P.getArg(s,"name",null);if(o!==null)o=this._names.at(o);return{source:i,line:P.getArg(s,"originalLine",null),column:P.getArg(s,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};ie.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null})};ie.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var s=t;if(this.sourceRoot!=null)s=P.relative(this.sourceRoot,s);var i;if(this.sourceRoot!=null&&(i=P.urlParse(this.sourceRoot))){var o=s.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||i.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;else throw Error('"'+s+'" is not in the SourceMap.')};ie.prototype.generatedPositionFor=function(t){var r=P.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:P.getArg(t,"line"),originalColumn:P.getArg(t,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",P.compareByOriginalPositions,P.getArg(t,"bias",K.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===n.source)return{line:P.getArg(i,"generatedLine",null),column:P.getArg(i,"generatedColumn",null),lastColumn:P.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};US.BasicSourceMapConsumer=ie;function Ce(e,t){var r=e;if(typeof e==="string")r=P.parseSourceMapInput(e);var n=P.getArg(r,"version"),s=P.getArg(r,"sections");if(n!=this._version)throw Error("Unsupported version: "+n);this._sources=new xt,this._names=new xt;var i={line:-1,column:0};this._sections=s.map(function(o){if(o.url)throw Error("Support for url field in sections not implemented.");var a=P.getArg(o,"offset"),u=P.getArg(a,"line"),l=P.getArg(a,"column");if(u<i.line||u===i.line&&l<i.column)throw Error("Section offsets must be ordered and non-overlapping.");return i=a,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new K(P.getArg(o,"map"),t)}})}Ce.prototype=Object.create(K.prototype);Ce.prototype.constructor=K;Ce.prototype._version=3;Object.defineProperty(Ce.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Ce.prototype.originalPositionFor=function(t){var r={generatedLine:P.getArg(t,"line"),generatedColumn:P.getArg(t,"column")},n=Ss.search(r,this._sections,function(i,o){var a=i.generatedLine-o.generatedOffset.generatedLine;if(a)return a;return i.generatedColumn-o.generatedOffset.generatedColumn}),s=this._sections[n];if(!s)return{source:null,line:null,column:null,name:null};return s.consumer.originalPositionFor({line:r.generatedLine-(s.generatedOffset.generatedLine-1),column:r.generatedColumn-(s.generatedOffset.generatedLine===r.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias})};Ce.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Ce.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var s=this._sections[n],i=s.consumer.sourceContentFor(t,!0);if(i||i==="")return i}if(r)return null;else throw Error('"'+t+'" is not in the SourceMap.')};Ce.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(P.getArg(t,"source"))===-1)continue;var s=n.consumer.generatedPositionFor(t);if(s){var i={line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)};return i}}return{line:null,column:null}};Ce.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++){var s=this._sections[n],i=s.consumer._generatedMappings;for(var o=0;o<i.length;o++){var a=i[o],u=s.consumer._sources.at(a.source);if(u!==null)u=P.computeSourceURL(s.consumer.sourceRoot,u,this._sourceMapURL);this._sources.add(u),u=this._sources.indexOf(u);var l=null;if(a.name)l=s.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l);var c={source:u,generatedLine:a.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(s.generatedOffset.generatedLine===a.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};if(this.__generatedMappings.push(c),typeof c.originalLine==="number")this.__originalMappings.push(c)}}Xt(this.__generatedMappings,P.compareByGeneratedPositionsDeflated),Xt(this.__originalMappings,P.compareByOriginalPositions)};US.IndexedSourceMapConsumer=Ce});var nf=d(function(zS){var VS=_s().SourceMapGenerator,Br=bt(),QS=/(\r?\n)/,YS=10,Et="$$$isSourceNode$$$";function _e(e,t,r,n,s){if(this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=s==null?null:s,this[Et]=!0,n!=null)this.add(n)}_e.fromStringWithSourceMap=function(t,r,n){var s=new _e,i=t.split(QS),o=0,a=function(){var h=p(),_=p()||"";return h+_;function p(){return o<i.length?i[o++]:void 0}},u=1,l=0,c=null;if(r.eachMapping(function(h){if(c!==null)if(u<h.generatedLine)f(c,a()),u++,l=0;else{var _=i[o]||"",p=_.substr(0,h.generatedColumn-l);i[o]=_.substr(h.generatedColumn-l),l=h.generatedColumn,f(c,p),c=h;return}while(u<h.generatedLine)s.add(a()),u++;if(l<h.generatedColumn){var _=i[o]||"";s.add(_.substr(0,h.generatedColumn)),i[o]=_.substr(h.generatedColumn),l=h.generatedColumn}c=h},this),o<i.length){if(c)f(c,a());s.add(i.splice(o).join(""))}return r.sources.forEach(function(h){var _=r.sourceContentFor(h);if(_!=null){if(n!=null)h=Br.join(n,h);s.setSourceContent(h,_)}}),s;function f(h,_){if(h===null||h.source===void 0)s.add(_);else{var p=n?Br.join(n,h.source):h.source;s.add(new _e(h.originalLine,h.originalColumn,p,_,h.name))}}};_e.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Et]||typeof t==="string"){if(t)this.children.push(t)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};_e.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Et]||typeof t==="string")this.children.unshift(t);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};_e.prototype.walk=function(t){var r;for(var n=0,s=this.children.length;n<s;n++)if(r=this.children[n],r[Et])r.walk(t);else if(r!=="")t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};_e.prototype.join=function(t){var r,n,s=this.children.length;if(s>0){r=[];for(n=0;n<s-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};_e.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];if(n[Et])n.replaceRight(t,r);else if(typeof n==="string")this.children[this.children.length-1]=n.replace(t,r);else this.children.push("".replace(t,r));return this};_e.prototype.setSourceContent=function(t,r){this.sourceContents[Br.toSetString(t)]=r};_e.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)if(this.children[r][Et])this.children[r].walkSourceContents(t);var s=Object.keys(this.sourceContents);for(var r=0,n=s.length;r<n;r++)t(Br.fromSetString(s[r]),this.sourceContents[s[r]])};_e.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};_e.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new VS(t),s=!1,i=null,o=null,a=null,u=null;return this.walk(function(l,c){if(r.code+=l,c.source!==null&&c.line!==null&&c.column!==null){if(i!==c.source||o!==c.line||a!==c.column||u!==c.name)n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name});i=c.source,o=c.line,a=c.column,u=c.name,s=!0}else if(s)n.addMapping({generated:{line:r.line,column:r.column}}),i=null,s=!1;for(var f=0,h=l.length;f<h;f++)if(l.charCodeAt(f)===YS){if(r.line++,r.column=0,f+1===h)i=null,s=!1;else if(s)n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})}else r.column++}),this.walkSourceContents(function(l,c){n.setSourceContent(l,c)}),{code:r.code,map:n}};zS.SourceNode=_e});var Hr=d(function(XS){XS.SourceMapGenerator=_s().SourceMapGenerator;XS.SourceMapConsumer=rf().SourceMapConsumer;XS.SourceNode=nf().SourceNode});var ws=d(function(RP,uf){var{existsSync:tw,readFileSync:rw,realpathSync:nw}=j("fs"),{dirname:Ur,isAbsolute:sw,join:iw,relative:ow,sep:aw}=j("path"),{SourceMapConsumer:sf,SourceMapGenerator:of}=Hr();function af(e){try{return nw(e)}catch{return e}}function uw(e){if(Buffer)return Buffer.from(e,"base64").toString();else return window.atob(e)}class $r{constructor(e,t){if(t.map===!1)return;if(t.unsafeMap)this.unsafeMap=!0;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);if(!this.mapFile&&t.from)this.mapFile=t.from;if(this.mapFile)this.root=Ur(this.mapFile);if(n)this.text=n}consumer(){if(!this.consumerCache)this.consumerCache=new sf(this.json||this.text);return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,i=e.match(n)||e.match(s);if(i)return decodeURIComponent(e.substr(i[0].length));let o=e.match(t)||e.match(r);if(o)return uw(e.substr(o[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return!1;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);if(r>-1&&n>-1)this.annotation=this.getAnnotationURL(e.substring(r,n))}loadFile(e,t,r){if(!r&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(!t)return;let n=ow(af(Ur(t)),af(e));if(n===".."||n.startsWith(".."+aw)||sw(n))return}if(this.root=Ur(e),tw(e))return this.mapFile=e,rw(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t)if(typeof t==="string")return t;else if(typeof t==="function"){let r=t(e);if(r){let n=this.loadFile(r,e,!0);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(t instanceof sf)return of.fromSourceMap(t).toString();else if(t instanceof of)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let r=this.annotation;if(e)r=iw(Ur(e),r);let n=this.loadFile(r,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}startWith(e,t){if(!e)return!1;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}uf.exports=$r;$r.default=$r});var Zt=d(function(LP,pf){var{nanoid:lw}=Nc(),{isAbsolute:xs,resolve:Es}=j("path"),{SourceMapConsumer:cw,SourceMapGenerator:fw}=Hr(),{fileURLToPath:lf,pathToFileURL:Gr}=j("url"),cf=Mr(),hw=ws(),As=ss(),bs=Symbol("lineToIndexCache"),pw=Boolean(cw&&fw),ff=Boolean(Es&&xs);function hf(e){if(e[bs])return e[bs];let t=e.css.split(`
|
|
50
|
+
`),r=Array(t.length),n=0;for(let s=0,i=t.length;s<i;s++)r[s]=n,n+=t[s].length+1;return e[bs]=r,r}class Jt{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e==="object"&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(this.document=this.css,t.document)this.document=t.document.toString();if(t.from)if(!ff||/^\w+:\/\//.test(t.from)||xs(t.from))this.file=t.from;else this.file=Es(t.from);if(ff&&pw){let r=new hw(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;if(!this.file&&n)this.file=this.mapResolve(n)}}if(!this.file)this.id="<input css "+lw(6)+">";if(this.map)this.map.file=this.from}error(e,t,r,n={}){let s,i,o,a,u;if(t&&typeof t==="object"){let c=t,f=r;if(typeof c.offset==="number"){a=c.offset;let h=this.fromOffset(a);t=h.line,r=h.col}else t=c.line,r=c.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset==="number"){o=f.offset;let h=this.fromOffset(o);i=h.line,s=h.col}else i=f.line,s=f.column,o=this.fromLineAndColumn(f.line,f.column)}else if(!r){a=t;let c=this.fromOffset(a);t=c.line,r=c.col}else a=this.fromLineAndColumn(t,r);let l=this.origin(t,r,i,s);if(l)u=new cf(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin);else u=new cf(e,i===void 0?t:{column:r,line:t},i===void 0?r:{column:s,line:i},this.css,this.file,n.plugin);if(u.input={column:r,endColumn:s,endLine:i,endOffset:o,line:t,offset:a,source:this.css},this.file){if(Gr)u.input.url=Gr(this.file).toString();u.input.file=this.file}return u}fromLineAndColumn(e,t){return hf(this)[e-1]+t-1}fromOffset(e){let t=hf(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let s=t.length-2,i;while(n<s)if(i=n+(s-n>>1),e<t[i])s=i-1;else if(e>=t[i+1])n=i+1;else{n=i;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){if(/^\w+:\/\//.test(e))return e;return Es(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s=this.map.consumer(),i=s.originalPositionFor({column:t-1,line:e});if(!i.source)return!1;let o;if(typeof r==="number"){let c=s.originalPositionFor({column:n-1,line:r});if(c.source)o=c}let a;if(xs(i.source))a=Gr(i.source);else a=new URL(i.source,this.map.consumer().sourceRoot||Gr(this.map.mapFile));let u={column:i.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:i.line,url:a.toString()};if(a.protocol==="file:")if(lf)u.file=lf(a);else throw Error("file: protocol is not available in this PostCSS build");let l=s.sourceContentFor(i.source);if(l)u.source=l;return u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])if(this[t]!=null)e[t]=this[t];if(this.map){if(e.map={...this.map},e.map.consumerCache)e.map.consumerCache=void 0}return e}}pf.exports=Jt;Jt.default=Jt;if(As&&As.registerInput)As.registerInput(Jt)});var At=d(function(IP,mf){var df=qe(),gf,_f;class Ze extends df{constructor(e){super(e);if(this.type="root",!this.nodes)this.nodes=[]}normalize(e,t,r){let n=new Set;for(let i of Array.isArray(e)?e:[e])if(i&&typeof i==="object"&&!i.parent&&i.raws&&typeof i.raws.before<"u")n.add(i.raws);let s=super.normalize(e);if(t){if(r==="prepend")if(this.nodes.length>1)t.raws.before=this.nodes[1].raws.before;else delete t.raws.before;else if(this.first!==t){for(let i of s)if(!n.has(i.raws))i.raws.before=t.raws.before}}return s}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[r].raws.before;return super.removeChild(e)}toResult(e={}){return new gf(new _f,this,e).stringify()}}Ze.registerLazyResult=(e)=>{gf=e};Ze.registerProcessor=(e)=>{_f=e};mf.exports=Ze;Ze.default=Ze;df.registerRoot(Ze)});var Os=d(function(MP,yf){var er={comma(e){return er.split(e,[","],!0)},space(e){let t=[" ",`
|
|
51
|
+
`,"\t"];return er.split(e,t)},split(e,t,r){if(typeof e!=="string")return[];let n=[],s="",i=!1,o=0,a=!1,u="",l=!1;for(let f of e){if(l)l=!1;else if(f==="\\")l=!0;else if(a){if(f===u)a=!1}else if(f==='"'||f==="'")a=!0,u=f;else if(f==="(")o+=1;else if(f===")"){if(o>0)o-=1}else if(o===0){if(t.includes(f))i=!0}if(i){let h=s.trim();if(r||h!=="")n.push(h);s="",i=!1}else s+=f}let c=s.trim();if(r||c!=="")n.push(c);return n}};yf.exports=er;er.default=er});var Wr=d(function(kP,Sf){var vf=qe(),dw=Os();class tr extends vf{get selectors(){return dw.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e);if(this.type="rule",!this.nodes)this.nodes=[]}}Sf.exports=tr;tr.default=tr;vf.registerRule(tr)});var xf=d(function(NP,bf){var gw=Dr(),_w=Vt(),mw=Qt(),yw=Zt(),vw=ws(),Sw=At(),ww=Wr();function wf(e,t){if(!e.inputs)return t;return e.inputs.map((r)=>{let n={...r,__proto__:yw.prototype};if(n.map)n.map={...n.map,__proto__:vw.prototype};return n})}function bw(e,t,r){let n={...e};if(delete n.inputs,delete n.nodes,n.source){let{inputId:i,...o}=n.source;if(n.source=o,i!=null)n.source.input=t[i]}let s;if(n.type==="root")s=new Sw(n);else if(n.type==="decl")s=new mw(n);else if(n.type==="rule")s=new ww(n);else if(n.type==="comment")s=new _w(n);else if(n.type==="atrule")s=new gw(n);else throw Error("Unknown node type: "+e.type);if(r){s.nodes=r;for(let i of r)i.parent=s}return s}function Vr(e,t){if(Array.isArray(e))return e.map((s)=>Vr(s));let r,n=[{childIndex:0,children:[],inputs:wf(e,t),json:e}];while(n.length>0){let s=n[n.length-1],i=s.json.nodes;if(i&&s.childIndex<i.length){let a=i[s.childIndex];s.childIndex+=1,n.push({childIndex:0,children:[],inputs:wf(a,s.inputs),json:a});continue}n.pop();let o=bw(s.json,s.inputs,i?s.children:void 0);if(n.length>0)n[n.length-1].children.push(o);else r=o}return r}bf.exports=Vr;Vr.default=Vr});var Cs=d(function(DP,Rf){var{dirname:Qr,relative:Af,resolve:Of,sep:Cf}=j("path"),{SourceMapConsumer:Pf,SourceMapGenerator:Yr}=Hr(),{pathToFileURL:Ef}=j("url"),xw=Zt(),Ew=Boolean(Pf&&Yr),Aw=Boolean(Qr&&Of&&Af&&Cf);class Tf{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline())e="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")e=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")e=this.mapOpts.annotation(this.opts.to,this.root);else e=this.outputFile()+".map";let t=`
|
|
52
52
|
`;if(this.css.includes(`\r
|
|
53
53
|
`))t=`\r
|
|
54
54
|
`;this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Qr(e.file),n;if(this.mapOpts.sourcesContent===!1){if(n=new Pf(e.text),n.sourcesContent)n.sourcesContent=null}else n=e.consumer();this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){if(e=this.root.nodes[t],e.type!=="comment")continue;if(e.text.startsWith("# sourceMappingURL="))this.root.removeChild(t)}}else if(this.css){let e="/*# sourceMappingURL=",t;while((t=this.css.lastIndexOf(e))!==-1){let r=this.css.indexOf("*/",t+e.length);if(r===-1)break;while(t>0&&this.css[t-1]===`
|
|
55
55
|
`)t--;this.css=this.css.slice(0,t)+this.css.slice(r+2)}}}generate(){if(this.clearAnnotation(),Aw&&Ew&&this.isMap())return this.generateMap();else{let e="";return this.stringify(this.root,(t)=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Yr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Yr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new Yr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,i;this.stringify(this.root,(o,a,u)=>{if(this.css+=o,a&&u!=="end")if(n.generated.line=e,n.generated.column=t-1,a.source&&a.source.start)n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n);else n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n);if(i=o.match(/\n/g),i)e+=i.length,s=o.lastIndexOf(`
|
|
56
|
-
`),t=o.length-s;else t+=o.length;if(a&&u!=="start"){let l=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==l.last||l.raws.semicolon)if(a.source&&a.source.end)n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n);else n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((e)=>e.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;if(typeof e<"u"&&e!==!0)return!1;if(this.previous().length)return this.previous().some((t)=>t.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((e)=>e.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Qr(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")r=Qr(Of(r,this.mapOpts.annotation));let n=Af(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e)=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t))this.previousMaps.push(t)}});else{let e=new xw(this.originalCSS,this.opts);if(e.map)this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t)=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(e.source.input.from);else return this.toUrl(this.path(e.source.input.from))}toBase64(e){if(Buffer)return Buffer.from(e).toString("base64");else return window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ef){let r=Ef(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(Cf==="\\")e=e.replace(/\\/g,"/");let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}Rf.exports=Tf});var Nf=d(function(qP,kf){var Ow=Dr(),Cw=Vt(),Pw=Qt(),Tw=At(),Lf=Wr(),Rw=ns(),If={empty:!0,space:!0};function Lw(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}function Ps(e,t,r){let n="";for(let s=t;s<r;s++)n+=e[s][1];return n}class Mf{constructor(e){this.input=e,this.root=new Tw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Ow;if(t.name=e[1].slice(1),t.name==="")this.unnamedAtrule(t,e);this.init(t,e[2]);let r,n,s,i=!1,o=!1,a=[],u=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="[")u.push(r==="("?")":"]");else if(r==="{"&&u.length>0)u.push("}");else if(r===u[u.length-1])u.pop();if(u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(a.length>0){s=a.length-1,n=a[s];while(n&&n[0]==="space")n=a[--s];if(n)t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}if(t.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),i)e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=""}else t.raws.afterName="",t.params="";if(o)t.nodes=[],this.current=t}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0;s--)if(n=e[s],n[0]!=="space"){if(r+=1,r===2)break}throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[i,o]of e.entries()){if(n=o,s=n[0],s==="(")t+=1;if(s===")")t-=1;if(t===0&&s===":")if(!r)this.doubleColon(n);else if(r[0]==="word"&&r[1]==="progid")continue;else return i;r=n}return!1}comment(e){let t=new Cw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Rw(this.input)}decl(e,t){let r=new Pw;this.init(r,e[0][2]);let n=e[e.length-1];if(n[0]===";")this.semicolon=!0,e.pop();r.source.end=this.getPosition(n[3]||n[2]||Lw(e)),r.source.end.offset++;let s=0;while(e[s][0]!=="word"){if(s===e.length-1)this.unknownWord([e[s]]);s++}r.raws.before+=Ps(e,0,s),r.source.start=this.getPosition(e[s][2]);let i=s;while(s<e.length){let h=e[s][0];if(h===":"||h==="space"||h==="comment")break;s++}r.prop=Ps(e,i,s);let o=s,a;while(s<e.length){if(a=e[s],s++,a[0]===":")break;if(a[0]==="word"&&/\w/.test(a[1]))this.unknownWord([a])}if(r.raws.between=Ps(e,o,s),r.prop[0]==="_"||r.prop[0]==="*")r.raws.before+=r.prop[0],r.prop=r.prop.slice(1);let u=s;while(s<e.length){let h=e[s][0];if(h!=="space"&&h!=="comment")break;s++}let l=e.slice(u,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let h=e.length-1;h>=0;h--){if(a=e[h],a[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,h);if(f=this.spacesFromEnd(e)+f,f!==" !important")r.raws.important=f;break}else if(a[1].toLowerCase()==="important"){let f=e.slice(0),g="";for(let p=h;p>0;p--){let _=f[p][0];if(g.trim().startsWith("!")&&_!=="space")break;g=f.pop()[1]+g}if(g.trim().startsWith("!"))r.important=!0,r.raws.important=g,e=f}if(a[0]!=="space"&&a[0]!=="comment")break}if(e.some((h)=>h[0]!=="space"&&h[0]!=="comment"))r.raws.between+=l.map((h)=>h[1]).join(""),l=[];if(this.raw(r,"value",l.concat(e),t),r.value.includes(":")&&!t)this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Lf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(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.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(e)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon)t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset++}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){if(this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment")this.semicolon=!1}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],u=e;while(u){if(r=u[0],a.push(u),r==="("||r==="["){if(!s)s=u;i.push(r==="("?")":"]")}else if(o&&n&&r==="{"){if(!s)s=u;i.push("}")}else if(i.length===0){if(r===";")if(n){this.decl(a,o);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else if(r===":")n=!0}else if(r===i[i.length-1]){if(i.pop(),i.length===0)s=null}u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=!0;if(i.length>0)this.unclosedBracket(s);if(t&&n){if(!o)while(a.length){if(u=a[a.length-1][0],u!=="space"&&u!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,o)}else this.unknownWord(a)}parse(){let e;while(!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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o=r.length,a="",u=!0,l,c;for(let h=0;h<o;h+=1)if(s=r[h],i=s[0],i==="space"&&h===o-1&&!n)u=!1;else if(i==="comment")if(c=r[h-1]?r[h-1][0]:"empty",l=r[h+1]?r[h+1][0]:"empty",!If[c]&&!If[l])if(a.slice(-1)===",")u=!1;else a+=s[1];else u=!1;else a+=s[1];if(!u){let h=r.reduce((f,g)=>f+g[1],"");e.raws[t]={raw:h,value:a}}e[t]=a}rule(e){e.pop();let t=new Lf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";while(e.length){if(t=e[e.length-1][0],t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t,r="";while(e.length){if(t=e[0][0],t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t,r="";while(e.length){if(t=e[e.length-1][0],t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}kf.exports=Mf});var Kr=d(function(FP,Df){var Iw=qe(),Mw=Zt(),kw=Nf();function zr(e,t){let r=new Mw(e,t),n=new kw(r);try{n.parse()}catch(s){if(s.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from))s.message+=`
|
|
56
|
+
`),t=o.length-s;else t+=o.length;if(a&&u!=="start"){let l=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==l.last||l.raws.semicolon)if(a.source&&a.source.end)n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n);else n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((e)=>e.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;if(typeof e<"u"&&e!==!0)return!1;if(this.previous().length)return this.previous().some((t)=>t.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((e)=>e.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Qr(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")r=Qr(Of(r,this.mapOpts.annotation));let n=Af(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e)=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t))this.previousMaps.push(t)}});else{let e=new xw(this.originalCSS,this.opts);if(e.map)this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t)=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(e.source.input.from);else return this.toUrl(this.path(e.source.input.from))}toBase64(e){if(Buffer)return Buffer.from(e).toString("base64");else return window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ef){let r=Ef(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(Cf==="\\")e=e.replace(/\\/g,"/");let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}Rf.exports=Tf});var Nf=d(function(qP,kf){var Ow=Dr(),Cw=Vt(),Pw=Qt(),Tw=At(),Lf=Wr(),Rw=ns(),If={empty:!0,space:!0};function Lw(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}function Ps(e,t,r){let n="";for(let s=t;s<r;s++)n+=e[s][1];return n}class Mf{constructor(e){this.input=e,this.root=new Tw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Ow;if(t.name=e[1].slice(1),t.name==="")this.unnamedAtrule(t,e);this.init(t,e[2]);let r,n,s,i=!1,o=!1,a=[],u=[];while(!this.tokenizer.endOfFile()){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="[")u.push(r==="("?")":"]");else if(r==="{"&&u.length>0)u.push("}");else if(r===u[u.length-1])u.pop();if(u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(a.length>0){s=a.length-1,n=a[s];while(n&&n[0]==="space")n=a[--s];if(n)t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}if(t.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),i)e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=""}else t.raws.afterName="",t.params="";if(o)t.nodes=[],this.current=t}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0;s--)if(n=e[s],n[0]!=="space"){if(r+=1,r===2)break}throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;for(let[i,o]of e.entries()){if(n=o,s=n[0],s==="(")t+=1;if(s===")")t-=1;if(t===0&&s===":")if(!r)this.doubleColon(n);else if(r[0]==="word"&&r[1]==="progid")continue;else return i;r=n}return!1}comment(e){let t=new Cw;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(!r.trim())t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=Rw(this.input)}decl(e,t){let r=new Pw;this.init(r,e[0][2]);let n=e[e.length-1];if(n[0]===";")this.semicolon=!0,e.pop();r.source.end=this.getPosition(n[3]||n[2]||Lw(e)),r.source.end.offset++;let s=0;while(e[s][0]!=="word"){if(s===e.length-1)this.unknownWord([e[s]]);s++}r.raws.before+=Ps(e,0,s),r.source.start=this.getPosition(e[s][2]);let i=s;while(s<e.length){let f=e[s][0];if(f===":"||f==="space"||f==="comment")break;s++}r.prop=Ps(e,i,s);let o=s,a;while(s<e.length){if(a=e[s],s++,a[0]===":")break;if(a[0]==="word"&&/\w/.test(a[1]))this.unknownWord([a])}if(r.raws.between=Ps(e,o,s),r.prop[0]==="_"||r.prop[0]==="*")r.raws.before+=r.prop[0],r.prop=r.prop.slice(1);let u=s;while(s<e.length){let f=e[s][0];if(f!=="space"&&f!=="comment")break;s++}let l=e.slice(u,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(a=e[f],a[1].toLowerCase()==="!important"){r.important=!0;let h=this.stringFrom(e,f);if(h=this.spacesFromEnd(e)+h,h!==" !important")r.raws.important=h;break}else if(a[1].toLowerCase()==="important"){let h=e.slice(0),_="";for(let p=f;p>0;p--){let g=h[p][0];if(_.trim().startsWith("!")&&g!=="space")break;_=h.pop()[1]+_}if(_.trim().startsWith("!"))r.important=!0,r.raws.important=_,e=h}if(a[0]!=="space"&&a[0]!=="comment")break}if(e.some((f)=>f[0]!=="space"&&f[0]!=="comment"))r.raws.between+=l.map((f)=>f[1]).join(""),l=[];if(this.raw(r,"value",l.concat(e),t),r.value.includes(":")&&!t)this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Lf;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(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.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(e)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon)t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset++}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){if(this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment")this.semicolon=!1}other(e){let t=!1,r=null,n=!1,s=null,i=[],o=e[1].startsWith("--"),a=[],u=e;while(u){if(r=u[0],a.push(u),r==="("||r==="["){if(!s)s=u;i.push(r==="("?")":"]")}else if(o&&n&&r==="{"){if(!s)s=u;i.push("}")}else if(i.length===0){if(r===";")if(n){this.decl(a,o);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else if(r===":")n=!0}else if(r===i[i.length-1]){if(i.pop(),i.length===0)s=null}u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=!0;if(i.length>0)this.unclosedBracket(s);if(t&&n){if(!o)while(a.length){if(u=a[a.length-1][0],u!=="space"&&u!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,o)}else this.unknownWord(a)}parse(){let e;while(!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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,i,o=r.length,a="",u=!0,l,c;for(let f=0;f<o;f+=1)if(s=r[f],i=s[0],i==="space"&&f===o-1&&!n)u=!1;else if(i==="comment")if(c=r[f-1]?r[f-1][0]:"empty",l=r[f+1]?r[f+1][0]:"empty",!If[c]&&!If[l])if(a.slice(-1)===",")u=!1;else a+=s[1];else u=!1;else a+=s[1];if(!u){let f=r.reduce((h,_)=>h+_[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Lf;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";while(e.length){if(t=e[e.length-1][0],t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t,r="";while(e.length){if(t=e[0][0],t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t,r="";while(e.length){if(t=e[e.length-1][0],t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}kf.exports=Mf});var Kr=d(function(FP,Df){var Iw=qe(),Mw=Zt(),kw=Nf();function zr(e,t){let r=new Mw(e,t),n=new kw(r);try{n.parse()}catch(s){if(s.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from))s.message+=`
|
|
57
57
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(t.from))s.message+=`
|
|
58
58
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(t.from))s.message+=`
|
|
59
59
|
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw s}return n.root}Df.exports=zr;zr.default=zr;Iw.registerParse(zr)});var Ts=d(function(jP,qf){var Nw=qe(),{my:Dw}=$t();class Xr{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){if(!t.node[Dw])Nw.rebuild(t.node);let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}}qf.exports=Xr;Xr.default=Xr});var Zr=d(function(BP,Ff){var qw=Ts();class Jr{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)t.plugin=this.lastPlugin.postcssPlugin}let r=new qw(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e)=>e.type==="warning")}}Ff.exports=Jr;Jr.default=Jr});var Rs=d(function(HP,Bf){var jf={};Bf.exports=function(t){if(jf[t])return;if(jf[t]=!0,typeof console<"u"&&console.warn)console.warn(t)}});var Ms=d(function(UP,Gf){var Fw=qe(),jw=qr(),Bw=Cs(),Hw=Kr(),Hf=Zr(),Uw=At(),$w=Ut(),{isClean:Pe,my:Gw}=$t(),Ww=Rs(),Vw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qw={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Yw={Once:!0,postcssPlugin:!0,prepare:!0},Ot=0;function rr(e){return typeof e==="object"&&typeof e.then==="function"}function Ls(e){let t=!1,r=Vw[e.type];if(e.type==="decl")t=e.prop.toLowerCase();else if(e.type==="atrule")t=e.name.toLowerCase();if(t&&e.append)return[r,r+"-"+t,Ot,r+"Exit",r+"Exit-"+t];else if(t)return[r,r+"-"+t,r+"Exit",r+"Exit-"+t];else if(e.append)return[r,Ot,r+"Exit"];else return[r,r+"Exit"]}function Uf(e){let t;if(e.type==="document")t=["Document",Ot,"DocumentExit"];else if(e.type==="root")t=["Root",Ot,"RootExit"];else t=Ls(e);return{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function $f(e){let t=[e];while(t.length>0){let r=t.pop();if(r[Pe]=!1,r.nodes)for(let n of r.nodes)t.push(n)}return e}var Is={};class Qe{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let n;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=$f(t);else if(t instanceof Qe||t instanceof Hf){if(n=$f(t.root),t.map){if(typeof r.map>"u")r.map={};if(!r.map.inline)r.map.inline=!1;r.map.prev=t.map}}else{let s=Hw;if(r.syntax)s=r.syntax.parse;if(r.parser)s=r.parser;if(s.parse)s=s.parse;try{n=s(t,r)}catch(i){this.processed=!0,this.error=i}if(n&&!n[Gw])Fw.rebuild(n)}this.result=new Hf(e,n,r),this.helpers={...Is,postcss:Is,result:this.result},this.plugins=this.processor.plugins.map((s)=>{if(typeof s==="object"&&s.prepare)return{...s,...s.prepare(this.result)};else return s})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t)t.addToError(e);if(this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion){let{postcssPlugin:n,postcssVersion:s}=r,i=this.result.processor.version,o=s.split("."),a=i.split(".");if(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+s+". Perhaps this is the source of the error below.")}}catch(n){if(console&&console.error)console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,r,n)=>{if(!this.listeners[r])this.listeners[r]=[];this.listeners[r].push([t,n])};for(let t of this.plugins)if(typeof t==="object")for(let r in t){if(!Qw[r]&&/^[A-Z]/.test(r))throw Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Yw[r]){if(typeof t[r]==="object")for(let n in t[r])if(n==="*")e(t,r,t[r][n]);else e(t,r+"-"+n.toLowerCase(),t[r][n]);else if(typeof t[r]==="function")e(t,r,t[r])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(rr(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Pe]){e[Pe]=!0;let t=[Uf(e)];while(t.length>0){let r=this.visitTick(t);if(rr(r))try{await r}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map((s)=>r(s,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((r)=>e.Once(r,this.helpers));if(rr(t[0]))return Promise.all(t);return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=$w;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let r=this.result.root.source;if(e.map===void 0&&!(r&&r.input&&r.input.map)){let i="";return t(this.result.root,(o)=>{i+=o}),this.result.css=i,this.result}let s=new Bw(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}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){let t=this.runOnRoot(e);if(rr(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;while(!e[Pe])e[Pe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){if(!("from"in this.opts))Ww("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){this.result.lastPlugin=r;let s;try{s=n(t,this.helpers)}catch(i){throw this.handleError(i,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(rr(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[i,o]=n[t.visitorIndex];if(t.visitorIndex+=1,t.visitorIndex===n.length)t.visitors=[],t.visitorIndex=0;this.result.lastPlugin=i;try{return o(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let i=t.iterator;if(t.descending)t.descending=!1,r.indexes[i]+=1;let o;while(o=r.nodes[r.indexes[i]]){if(!o[Pe]){o[Pe]=!0,t.descending=!0,e.push(Uf(o));return}r.indexes[i]+=1}t.iterator=0,delete r.indexes[i]}let s=t.events;while(t.eventIndex<s.length){let i=s[t.eventIndex];if(t.eventIndex+=1,i===Ot){if(r.nodes&&r.nodes.length)r[Pe]=!0,t.iterator=r.getIterator();return}else if(this.listeners[i]){t.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Pe]=!0;let t=[{eventIndex:0,events:Ls(e),iterator:0,node:e}];while(t.length>0){let r=t[t.length-1],n=r.node;if(r.iterator!==0){let s=r.iterator;if(r.descending)r.descending=!1,n.indexes[s]+=1;let i,o=!1;while(i=n.nodes[n.indexes[s]]){if(!i[Pe]){i[Pe]=!0,r.descending=!0,t.push({eventIndex:0,events:Ls(i),iterator:0,node:i}),o=!0;break}n.indexes[s]+=1}if(o)continue;r.iterator=0,delete n.indexes[s]}if(r.eventIndex<r.events.length){let s=r.events[r.eventIndex];if(r.eventIndex+=1,s===Ot){if(n.nodes&&n.nodes.length)r.iterator=n.getIterator()}else{let i=this.listeners[s];if(i){if(this.visitSync(i,n.toProxy()))t.pop()}}continue}t.pop()}}warnings(){return this.sync().warnings()}}Qe.registerPostcss=(e)=>{Is=e};Gf.exports=Qe;Qe.default=Qe;Uw.registerLazyResult(Qe);jw.registerLazyResult(Qe)});var Vf=d(function($P,Wf){var zw=Cs(),Kw=Kr(),Xw=Zr(),Jw=Ut(),Zw=Rs();class en{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Kw;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;else return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n=Jw;this.result=new Xw(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let i=new zw(n,void 0,this._opts,t);if(i.isMap()){let[o,a]=i.generate();if(o)this.result.css=o;if(a)this.result.map=a}else i.clearAnnotation(),this.result.css=i.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(!("from"in this._opts))Zw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}Wf.exports=en;en.default=en});var Yf=d(function(GP,Qf){var eb=qr(),tb=Ms(),rb=Vf(),nb=At();class Ct{constructor(e=[]){this.version="8.5.28",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e){if(r.postcss===!0)r=r();else if(r.postcss)r=r.postcss;if(typeof r==="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r==="object"&&r.postcssPlugin)t.push(r);else if(typeof r==="function")t.push(r);else if(typeof r==="object"&&(r.parse||r.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(r+" is not a PostCSS plugin")}return t}process(e,t={}){if(!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax)return new rb(this,e,t);else return new tb(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}Qf.exports=Ct;Ct.default=Ct;nb.registerProcessor(Ct);eb.registerProcessor(Ct)});var rh=d(function(WP,th){var zf=Dr(),Kf=Vt(),sb=qe(),ib=Mr(),Xf=Qt(),Jf=qr(),ob=xf(),ab=Zt(),ub=Ms(),lb=Os(),cb=Wt(),fb=Kr(),ks=Yf(),hb=Zr(),Zf=At(),eh=Wr(),pb=Ut(),db=Ts();function B(...e){if(e.length===1&&Array.isArray(e[0]))e=e[0];return new ks(e)}B.plugin=function(t,r){let n=!1;function s(...o){if(console&&console.warn&&!n){if(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
|
|
60
60
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("zh"))console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
61
|
-
`+"https://www.w3ctech.com/topic/2226")}let a=r(...o);return a.postcssPlugin=t,a.postcssVersion=new ks().version,a}let i;return Object.defineProperty(s,"postcss",{get(){if(!i)i=s();return i}}),s.process=function(o,a,u){return B([s(u)]).process(o,a)},s};B.stringify=pb;B.parse=fb;B.fromJSON=ob;B.list=lb;B.comment=(e)=>new Kf(e);B.atRule=(e)=>new zf(e);B.decl=(e)=>new Xf(e);B.rule=(e)=>new eh(e);B.root=(e)=>new Zf(e);B.document=(e)=>new Jf(e);B.CssSyntaxError=ib;B.Declaration=Xf;B.Container=sb;B.Processor=ks;B.Document=Jf;B.Comment=Kf;B.Warning=db;B.AtRule=zf;B.Result=hb;B.Input=ab;B.Rule=eh;B.Root=Zf;B.Node=cb;ub.registerPostcss(B);th.exports=B;B.default=B});var Ns=d(function(oh){Object.defineProperty(oh,"__esModule",{value:!0});oh.default=yb;function _b(e){var t=e.toLowerCase(),r="",n=!1;for(var s=0;s<6&&t[s]!==void 0;s++){var i=t.charCodeAt(s),o=i>=97&&i<=102||i>=48&&i<=57;if(n=i===32,!o)break;r+=t[s]}if(r.length===0)return;var a=parseInt(r,16),u=a>=55296&&a<=57343;if(u||a===0||a>1114111)return["\uFFFD",r.length+(n?1:0)];return[String.fromCodePoint(a),r.length+(n?1:0)]}var mb=/\\/;function yb(e){var t=mb.test(e);if(!t)return e;var r="";for(var n=0;n<e.length;n++){if(e[n]==="\\"){var s=_b(e.slice(n+1,n+7));if(s!==void 0){r+=s[0],n+=s[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}if(e.length===n+1)r+=e[n];continue}r+=e[n]}return r}});var uh=d(function(ah){Object.defineProperty(ah,"__esModule",{value:!0});ah.default=Sb;function Sb(e){var t=[];for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];while(t.length>0){var n=t.shift();if(!e[n])return;e=e[n]}return e}});var ch=d(function(lh){Object.defineProperty(lh,"__esModule",{value:!0});lh.default=bb;function bb(e){var t=[];for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];while(t.length>0){var n=t.shift();if(!e[n])e[n]={};e=e[n]}}});var hh=d(function(fh){Object.defineProperty(fh,"__esModule",{value:!0});fh.default=Eb;function Eb(e){var t="",r=e.indexOf("/*"),n=0;while(r>=0){t=t+e.slice(n,r);var s=e.indexOf("*/",r+2);if(s<0)return t;n=s+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}});var dh=d(function(ph){Object.defineProperty(ph,"__esModule",{value:!0});ph.MAX_NESTING_DEPTH=void 0;ph.default=Ob;ph.MAX_NESTING_DEPTH=256;function Ob(e){return Number.isSafeInteger(e)&&e>=0?e:ph.MAX_NESTING_DEPTH}});var Pt=d(function(le){var nr=le&&le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(le,"__esModule",{value:!0});le.MAX_NESTING_DEPTH=le.resolveMaxNestingDepth=le.stripComments=le.ensureObject=le.getProp=le.unesc=void 0;var Pb=Ns();Object.defineProperty(le,"unesc",{enumerable:!0,get:function(){return nr(Pb).default}});var Tb=uh();Object.defineProperty(le,"getProp",{enumerable:!0,get:function(){return nr(Tb).default}});var Rb=ch();Object.defineProperty(le,"ensureObject",{enumerable:!0,get:function(){return nr(Rb).default}});var Lb=hh();Object.defineProperty(le,"stripComments",{enumerable:!0,get:function(){return nr(Lb).default}});var gh=dh();Object.defineProperty(le,"resolveMaxNestingDepth",{enumerable:!0,get:function(){return nr(gh).default}});Object.defineProperty(le,"MAX_NESTING_DEPTH",{enumerable:!0,get:function(){return gh.MAX_NESTING_DEPTH}})});var Be=d(function(_h){Object.defineProperty(_h,"__esModule",{value:!0});var tn=Pt(),qs=function(e,t,r){if(r===void 0)r=0;if(r>tn.MAX_NESTING_DEPTH)throw Error("Cannot clone selector: nesting depth exceeds the maximum of ".concat(tn.MAX_NESTING_DEPTH,"."));if(typeof e!=="object"||e===null)return e;var n=new e.constructor;for(var s in e){if(!e.hasOwnProperty(s))continue;var i=e[s],o=typeof i;if(s==="parent"&&o==="object"){if(t)n[s]=t}else if(i instanceof Array)n[s]=i.map(function(a){return qs(a,n,r+1)});else n[s]=qs(i,n,r+1)}return n},Ib=function(){function e(t){if(t===void 0)t={};Object.assign(this,t),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}return e.prototype.remove=function(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var t in arguments)this.parent.insertBefore(this,arguments[t]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(t){if(t===void 0)t={};var r=qs(this);for(var n in t)r[n]=t[n];return r},e.prototype.appendToPropertyAndEscape=function(t,r,n){if(!this.raws)this.raws={};var s=this[t],i=this.raws[t];if(this[t]=s+r,i||n!==r)this.raws[t]=(i||s)+n;else delete this.raws[t]},e.prototype.setPropertyAndEscape=function(t,r,n){if(!this.raws)this.raws={};this[t]=r,this.raws[t]=n},e.prototype.setPropertyWithoutEscape=function(t,r){if(this[t]=r,this.raws)delete this.raws[t]},e.prototype.isAtPosition=function(t,r){if(this.source&&this.source.start&&this.source.end){if(this.source.start.line>t)return!1;if(this.source.end.line<t)return!1;if(this.source.start.line===t&&this.source.start.column>r)return!1;if(this.source.end.line===t&&this.source.end.column<r)return!1;return!0}return},e.prototype.stringifyProperty=function(t){return this.raws&&this.raws[t]||this[t]},Object.defineProperty(e.prototype,"rawSpaceBefore",{get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;if(t===void 0)t=this.spaces&&this.spaces.before;return t||""},set:function(t){(0,tn.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawSpaceAfter",{get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;if(t===void 0)t=this.spaces.after;return t||""},set:function(t){(0,tn.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=t},enumerable:!1,configurable:!0}),e.prototype.valueToString=function(){return String(this.stringifyProperty("value"))},e.prototype.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},e.prototype._stringify=function(){return this.toString()},e}();_h.default=Ib});var oe=d(function(mh){Object.defineProperty(mh,"__esModule",{value:!0});mh.UNIVERSAL=mh.ATTRIBUTE=mh.CLASS=mh.COMBINATOR=mh.COMMENT=mh.ID=mh.NESTING=mh.PSEUDO=mh.ROOT=mh.SELECTOR=mh.STRING=mh.TAG=void 0;mh.TAG="tag";mh.STRING="string";mh.SELECTOR="selector";mh.ROOT="root";mh.PSEUDO="pseudo";mh.NESTING="nesting";mh.ID="id";mh.COMMENT="comment";mh.COMBINATOR="combinator";mh.CLASS="class";mh.ATTRIBUTE="attribute";mh.UNIVERSAL="universal"});var rn=d(function(se){var Wb=se&&se.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vb=se&&se.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),Qb=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yb=se&&se.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")Vb(r,t,n[s])}return Qb(r,t),r}}(),zb=se&&se.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vh=se&&se.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(a){o={error:a}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(o)throw o.error}}return i},Sh=se&&se.__spreadArray||function(e,t,r){if(r||arguments.length===2){for(var n=0,s=t.length,i;n<s;n++)if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))},Kb=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(se,"__esModule",{value:!0});var Fs=Pt(),Xb=Kb(Be()),He=Yb(oe()),Jb=function(e){Wb(t,e);function t(r){var n=e.call(this,r)||this;if(!n.nodes)n.nodes=[];return n}return t.prototype.append=function(r){return r.parent=this,this.nodes.push(r),this},t.prototype.prepend=function(r){r.parent=this,this.nodes.unshift(r);for(var n in this.indexes)this.indexes[n]++;return this},t.prototype.at=function(r){return this.nodes[r]},t.prototype.index=function(r){if(typeof r==="number")return r;return this.nodes.indexOf(r)},Object.defineProperty(t.prototype,"first",{get:function(){return this.at(0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.at(this.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length},enumerable:!1,configurable:!0}),t.prototype.removeChild=function(r){r=this.index(r),this.at(r).parent=void 0,this.nodes.splice(r,1);var n;for(var s in this.indexes)if(n=this.indexes[s],n>=r)this.indexes[s]=n-1;return this},t.prototype.removeAll=function(){var r,n;try{for(var s=zb(this.nodes),i=s.next();!i.done;i=s.next()){var o=i.value;o.parent=void 0}}catch(a){r={error:a}}finally{try{if(i&&!i.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(r,n){var s;n.parent=this;var i=this.index(r),o=[];for(var a=2;a<arguments.length;a++)o.push(arguments[a]);(s=this.nodes).splice.apply(s,Sh([i+1,0,n],vh(o),!1)),n.parent=this;var u;for(var l in this.indexes)if(u=this.indexes[l],i<u)this.indexes[l]=u+arguments.length-1;return this},t.prototype.insertBefore=function(r,n){var s;n.parent=this;var i=this.index(r),o=[];for(var a=2;a<arguments.length;a++)o.push(arguments[a]);(s=this.nodes).splice.apply(s,Sh([i,0,n],vh(o),!1)),n.parent=this;var u;for(var l in this.indexes)if(u=this.indexes[l],u>=i)this.indexes[l]=u+arguments.length-1;return this},t.prototype._findChildAtPosition=function(r,n){var s=void 0;return this.each(function(i){if(i.atPosition){var o=i.atPosition(r,n);if(o)return s=o,!1}else if(i.isAtPosition(r,n))return s=i,!1}),s},t.prototype.atPosition=function(r,n){if(this.isAtPosition(r,n))return this._findChildAtPosition(r,n)||this;else return},t.prototype._inferEndPosition=function(){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.prototype.each=function(r){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!this.length)return;var s,i;while(this.indexes[n]<this.length){if(s=this.indexes[n],i=r(this.at(s),s),i===!1)break;this.indexes[n]+=1}if(delete this.indexes[n],i===!1)return!1},t.prototype.walk=function(r,n){if(n===void 0)n=0;if(n>Fs.MAX_NESTING_DEPTH)throw Error("Cannot walk selector: nesting depth exceeds the maximum of ".concat(Fs.MAX_NESTING_DEPTH,"."));return this.each(function(s,i){var o=r(s,i);if(o!==!1&&s.length)o=s.walk(r,n+1);if(o===!1)return!1})},t.prototype.walkAttributes=function(r){var n=this;return this.walk(function(s){if(s.type===He.ATTRIBUTE)return r.call(n,s)})},t.prototype.walkClasses=function(r){var n=this;return this.walk(function(s){if(s.type===He.CLASS)return r.call(n,s)})},t.prototype.walkCombinators=function(r){var n=this;return this.walk(function(s){if(s.type===He.COMBINATOR)return r.call(n,s)})},t.prototype.walkComments=function(r){var n=this;return this.walk(function(s){if(s.type===He.COMMENT)return r.call(n,s)})},t.prototype.walkIds=function(r){var n=this;return this.walk(function(s){if(s.type===He.ID)return r.call(n,s)})},t.prototype.walkNesting=function(r){var n=this;return this.walk(function(s){if(s.type===He.NESTING)return r.call(n,s)})},t.prototype.walkPseudos=function(r){var n=this;return this.walk(function(s){if(s.type===He.PSEUDO)return r.call(n,s)})},t.prototype.walkTags=function(r){var n=this;return this.walk(function(s){if(s.type===He.TAG)return r.call(n,s)})},t.prototype.walkUniversals=function(r){var n=this;return this.walk(function(s){if(s.type===He.UNIVERSAL)return r.call(n,s)})},t.prototype.split=function(r){var n=this,s=[];return this.reduce(function(i,o,a){var u=r.call(n,o);if(s.push(o),u)i.push(s),s=[];else if(a===n.length-1)i.push(s);return i},[])},t.prototype.map=function(r){return this.nodes.map(r)},t.prototype.reduce=function(r,n){return this.nodes.reduce(r,n)},t.prototype.every=function(r){return this.nodes.every(r)},t.prototype.some=function(r){return this.nodes.some(r)},t.prototype.filter=function(r){return this.nodes.filter(r)},t.prototype.sort=function(r){return this.nodes.sort(r)},t.prototype.toString=function(r){if(r===void 0)r={};return this._stringify(r,0,(0,Fs.resolveMaxNestingDepth)(r.maxNestingDepth))},t.prototype._stringify=function(r,n,s){var i=this;return this.map(function(o){return i._stringifyChild(o,r,n,s)}).join("")},t.prototype._stringifyChild=function(r,n,s,i){return typeof r._stringify==="function"?r._stringify(n,s,i):String(r)},t}(Xb.default);se.default=Jb});var js=d(function(et){var Zb=et&&et.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ex=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(et,"__esModule",{value:!0});var tx=ex(rn()),rx=oe(),nx=function(e){Zb(t,e);function t(r){var n=e.call(this,r)||this;return n.type=rx.ROOT,n}return t.prototype._stringify=function(r,n,s){var i=this,o=this.reduce(function(a,u){return a.push(i._stringifyChild(u,r,n,s)),a},[]).join(",");return this.trailingComma?o+",":o},t.prototype.error=function(r,n){if(this._error)return this._error(r,n);else return Error(r)},Object.defineProperty(t.prototype,"errorGenerator",{set:function(r){this._error=r},enumerable:!1,configurable:!0}),t}(tx.default);et.default=nx});var Bs=d(function(tt){var sx=tt&&tt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ix=tt&&tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tt,"__esModule",{value:!0});var ox=ix(rn()),ax=oe(),ux=function(e){sx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=ax.SELECTOR,n}return t}(ox.default);tt.default=ux});var nn=d(function(AT,wh){/*! https://mths.be/cssesc v3.0.0 by @mathias */var lx={},cx=lx.hasOwnProperty,fx=function(t,r){if(!t)return r;var n={};for(var s in r)n[s]=cx.call(t,s)?t[s]:r[s];return n},hx=/[ -,\.\/:-@\[-\^`\{-~]/,px=/[ -,\.\/:-@\[\]\^`\{-~]/,dx=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Hs=function e(t,r){if(r=fx(r,e.options),r.quotes!="single"&&r.quotes!="double")r.quotes="single";var n=r.quotes=="double"?'"':"'",s=r.isIdentifier,i=t.charAt(0),o="",a=0,u=t.length;while(a<u){var l=t.charAt(a++),c=l.charCodeAt(),h=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&a<u){var f=t.charCodeAt(a++);if((f&64512)==56320)c=((c&1023)<<10)+(f&1023)+65536;else a--}h="\\"+c.toString(16).toUpperCase()+" "}else if(r.escapeEverything)if(hx.test(l))h="\\"+l;else h="\\"+c.toString(16).toUpperCase()+" ";else if(/[\t\n\f\r\x0B]/.test(l))h="\\"+c.toString(16).toUpperCase()+" ";else if(l=="\\"||!s&&(l=='"'&&n==l||l=="'"&&n==l)||s&&px.test(l))h="\\"+l;else h=l;o+=h}if(s){if(/^-[-\d]/.test(o))o="\\-"+o.slice(1);else if(/\d/.test(i))o="\\3"+i+" "+o.slice(1)}if(o=o.replace(dx,function(g,p,_){if(p&&p.length%2)return g;return(p||"")+_}),!s&&r.wrap)return n+o+n;return o};Hs.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Hs.version="3.0.0";wh.exports=Hs});var Us=d(function(rt){var gx=rt&&rt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bh=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});var _x=bh(nn()),mx=Pt(),yx=bh(Be()),vx=oe(),Sx=function(e){gx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=vx.CLASS,n._constructed=!0,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(r){if(this._constructed){var n=(0,_x.default)(r,{isIdentifier:!0});if(n!==r)(0,mx.ensureObject)(this,"raws"),this.raws.value=n;else if(this.raws)delete this.raws.value}this._value=r},enumerable:!1,configurable:!0}),t.prototype.valueToString=function(){return"."+e.prototype.valueToString.call(this)},t}(yx.default);rt.default=Sx});var $s=d(function(nt){var wx=nt&&nt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bx=nt&&nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});var xx=bx(Be()),Ex=oe(),Ax=function(e){wx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Ex.COMMENT,n}return t}(xx.default);nt.default=Ax});var Gs=d(function(st){var Ox=st&&st.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cx=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});var Px=Cx(Be()),Tx=oe(),Rx=function(e){Ox(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Tx.ID,n}return t.prototype.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Px.default);st.default=Rx});var sn=d(function(it){var Lx=it&&it.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xh=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});var Ix=xh(nn()),Mx=Pt(),kx=xh(Be()),Nx=function(e){Lx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"namespace",{get:function(){return this._namespace},set:function(r){if(r===!0||r==="*"||r==="&"){if(this._namespace=r,this.raws)delete this.raws.namespace;return}var n=(0,Ix.default)(r,{isIdentifier:!0});if(this._namespace=r,n!==r)(0,Mx.ensureObject)(this,"raws"),this.raws.namespace=n;else if(this.raws)delete this.raws.namespace},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ns",{get:function(){return this._namespace},set:function(r){this.namespace=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"namespaceString",{get:function(){if(this.namespace){var r=this.stringifyProperty("namespace");if(r===!0)return"";else return r}else return""},enumerable:!1,configurable:!0}),t.prototype.qualifiedName=function(r){if(this.namespace)return"".concat(this.namespaceString,"|").concat(r);else return r},t.prototype.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},t}(kx.default);it.default=Nx});var Ws=d(function(ot){var Dx=ot&&ot.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qx=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ot,"__esModule",{value:!0});var Fx=qx(sn()),jx=oe(),Bx=function(e){Dx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=jx.TAG,n}return t}(Fx.default);ot.default=Bx});var Vs=d(function(at){var Hx=at&&at.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+Eh(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ux=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});var $x=Ux(Be()),Gx=oe(),Eh=function(e){Hx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Gx.STRING,n}return t}($x.default);at.default=Eh});var Qs=d(function(ut){var Wx=ut&&ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vx=ut&&ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ut,"__esModule",{value:!0});var Qx=Vx(rn()),Yx=oe(),zx=function(e){Wx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Yx.PSEUDO,n}return t.prototype._stringify=function(r,n,s){var i=this;if(n>=s)throw Error("Cannot serialize selector: nesting depth exceeds the maximum of ".concat(s,"."));var o=this.length?"("+this.map(function(a){return i._stringifyChild(a,r,n+1,s)}).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},t}(Qx.default);ut.default=zx});var Oh=d(function(MT,Ah){Ah.exports=j("util").deprecate});var Js=d(function(Ye){var Kx=Ye&&Ye.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ks=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Ys;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.unescapeValue=Xs;var sr=Ks(nn()),Xx=Ks(Ns()),Jx=Ks(sn()),Zx=oe(),ir=Oh(),eE=/^('|")([^]*)\1$/,tE=ir(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),rE=ir(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),nE=ir(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Xs(e){var t=!1,r=null,n=e,s=n.match(eE);if(s)r=s[1],n=s[2];if(n=(0,Xx.default)(n),n!==e)t=!0;return{deprecatedUsage:t,unescaped:n,quoteMark:r}}function sE(e){if(e.quoteMark!==void 0)return e;if(e.value===void 0)return e;nE();var t=Xs(e.value),{quoteMark:r,unescaped:n}=t;if(!e.raws)e.raws={};if(e.raws.value===void 0)e.raws.value=e.value;return e.value=n,e.quoteMark=r,e}var iE=function(e){Kx(t,e);function t(r){if(r===void 0)r={};var n=e.call(this,sE(r))||this;return n.type=Zx.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:ir(function(){return n.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:ir(function(){return n.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),n._constructed=!0,n}return t.prototype.getQuotedValue=function(r){if(r===void 0)r={};var n=this._determineQuoteMark(r),s=zs[n],i=(0,sr.default)(this._value,s);return i},t.prototype._determineQuoteMark=function(r){return r.smart?this.smartQuoteMark(r):this.preferredQuoteMark(r)},t.prototype.setValue=function(r,n){if(n===void 0)n={};this._value=r,this._quoteMark=this._determineQuoteMark(n),this._syncRawValue()},t.prototype.smartQuoteMark=function(r){var n=this.value,s=n.replace(/[^']/g,"").length,i=n.replace(/[^"]/g,"").length;if(s+i===0){var o=(0,sr.default)(n,{isIdentifier:!0});if(o===n)return t.NO_QUOTE;else{var a=this.preferredQuoteMark(r);if(a===t.NO_QUOTE){var u=this.quoteMark||r.quoteMark||t.DOUBLE_QUOTE,l=zs[u],c=(0,sr.default)(n,l);if(c.length<o.length)return u}return a}}else if(i===s)return this.preferredQuoteMark(r);else if(i<s)return t.DOUBLE_QUOTE;else return t.SINGLE_QUOTE},t.prototype.preferredQuoteMark=function(r){var n=r.preferCurrentQuoteMark?this.quoteMark:r.quoteMark;if(n===void 0)n=r.preferCurrentQuoteMark?r.quoteMark:this.quoteMark;if(n===void 0)n=t.DOUBLE_QUOTE;return n},Object.defineProperty(t.prototype,"quoted",{get:function(){var r=this.quoteMark;return r==="'"||r==='"'},set:function(r){rE()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quoteMark",{get:function(){return this._quoteMark},set:function(r){if(!this._constructed){this._quoteMark=r;return}if(this._quoteMark!==r)this._quoteMark=r,this._syncRawValue()},enumerable:!1,configurable:!0}),t.prototype._syncRawValue=function(){var r=(0,sr.default)(this._value,zs[this.quoteMark]);if(r===this._value){if(this.raws)delete this.raws.value}else this.raws.value=r},Object.defineProperty(t.prototype,"qualifiedAttribute",{get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitiveFlag",{get:function(){return this.insensitive?"i":""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(r){if(this._constructed){var n=Xs(r),{deprecatedUsage:s,unescaped:i,quoteMark:o}=n;if(s)tE();if(i===this._value&&o===this._quoteMark)return;this._value=i,this._quoteMark=o,this._syncRawValue()}else this._value=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this._insensitive},set:function(r){if(!r){if(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i"))this.raws.insensitiveFlag=void 0}this._insensitive=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attribute",{get:function(){return this._attribute},set:function(r){this._handleEscapes("attribute",r),this._attribute=r},enumerable:!1,configurable:!0}),t.prototype._handleEscapes=function(r,n){if(this._constructed){var s=(0,sr.default)(n,{isIdentifier:!0});if(s!==n)this.raws[r]=s;else delete this.raws[r]}},t.prototype._spacesFor=function(r){var n={before:"",after:""},s=this.spaces[r]||{},i=this.raws.spaces&&this.raws.spaces[r]||{};return Object.assign(n,s,i)},t.prototype._stringFor=function(r,n,s){if(n===void 0)n=r;if(s===void 0)s=Ch;var i=this._spacesFor(n);return s(this.stringifyProperty(r),i)},t.prototype.offsetOf=function(r){var n=1,s=this._spacesFor("attribute");if(n+=s.before.length,r==="namespace"||r==="ns")return this.namespace?n:-1;if(r==="attributeNS")return n;if(n+=this.namespaceString.length,this.namespace)n+=1;if(r==="attribute")return n;n+=this.stringifyProperty("attribute").length,n+=s.after.length;var i=this._spacesFor("operator");n+=i.before.length;var o=this.stringifyProperty("operator");if(r==="operator")return o?n:-1;n+=o.length,n+=i.after.length;var a=this._spacesFor("value");n+=a.before.length;var u=this.stringifyProperty("value");if(r==="value")return u?n:-1;n+=u.length,n+=a.after.length;var l=this._spacesFor("insensitive");if(n+=l.before.length,r==="insensitive")return this.insensitive?n:-1;return-1},t.prototype.toString=function(){var r=this,n=[this.rawSpaceBefore,"["];if(n.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value===""))n.push(this._stringFor("operator")),n.push(this._stringFor("value")),n.push(this._stringFor("insensitiveFlag","insensitive",function(s,i){if(s.length>0&&!r.quoted&&i.before.length===0&&!(r.spaces.value&&r.spaces.value.after))i.before=" ";return Ch(s,i)}));return n.push("]"),n.push(this.rawSpaceAfter),n.join("")},t.NO_QUOTE=null,t.SINGLE_QUOTE="'",t.DOUBLE_QUOTE='"',t}(Jx.default);Ye.default=iE;var zs=(Ys={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Ys[null]={isIdentifier:!0},Ys);function Ch(e,t){return"".concat(t.before).concat(e).concat(t.after)}});var Zs=d(function(lt){var oE=lt&<.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),aE=lt&<.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lt,"__esModule",{value:!0});var uE=aE(sn()),lE=oe(),cE=function(e){oE(t,e);function t(r){var n=e.call(this,r)||this;return n.type=lE.UNIVERSAL,n.value="*",n}return t}(uE.default);lt.default=cE});var ei=d(function(ct){var fE=ct&&ct.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hE=ct&&ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ct,"__esModule",{value:!0});var pE=hE(Be()),dE=oe(),gE=function(e){fE(t,e);function t(r){var n=e.call(this,r)||this;return n.type=dE.COMBINATOR,n}return t}(pE.default);ct.default=gE});var ti=d(function(ft){var _E=ft&&ft.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),mE=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ft,"__esModule",{value:!0});var yE=mE(Be()),vE=oe(),SE=function(e){_E(t,e);function t(r){var n=e.call(this,r)||this;return n.type=vE.NESTING,n.value="&",n}return t}(yE.default);ft.default=SE});var Th=d(function(Ph){Object.defineProperty(Ph,"__esModule",{value:!0});Ph.default=wE;function wE(e){return e.sort(function(t,r){return t-r})}});var ri=d(function(Rh){Object.defineProperty(Rh,"__esModule",{value:!0});Rh.combinator=Rh.word=Rh.comment=Rh.str=Rh.tab=Rh.newline=Rh.feed=Rh.cr=Rh.backslash=Rh.bang=Rh.slash=Rh.doubleQuote=Rh.singleQuote=Rh.space=Rh.greaterThan=Rh.pipe=Rh.equals=Rh.plus=Rh.caret=Rh.tilde=Rh.dollar=Rh.closeSquare=Rh.openSquare=Rh.closeParenthesis=Rh.openParenthesis=Rh.semicolon=Rh.colon=Rh.comma=Rh.at=Rh.asterisk=Rh.ampersand=void 0;Rh.ampersand=38;Rh.asterisk=42;Rh.at=64;Rh.comma=44;Rh.colon=58;Rh.semicolon=59;Rh.openParenthesis=40;Rh.closeParenthesis=41;Rh.openSquare=91;Rh.closeSquare=93;Rh.dollar=36;Rh.tilde=126;Rh.caret=94;Rh.plus=43;Rh.equals=61;Rh.pipe=124;Rh.greaterThan=62;Rh.space=32;Rh.singleQuote=39;Rh.doubleQuote=34;Rh.slash=47;Rh.bang=33;Rh.backslash=92;Rh.cr=13;Rh.feed=12;Rh.newline=10;Rh.tab=9;Rh.str=Rh.singleQuote;Rh.comment=-1;Rh.word=-2;Rh.combinator=-3});var kh=d(function(Te){var JE=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),ZE=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eA=Te&&Te.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")JE(r,t,n[s])}return ZE(r,t),r}}(),Tt,U;Object.defineProperty(Te,"__esModule",{value:!0});Te.FIELDS=void 0;Te.default=iA;var E=eA(ri()),tA=(Tt={},Tt[E.tab]=!0,Tt[E.newline]=!0,Tt[E.cr]=!0,Tt[E.feed]=!0,Tt),rA=(U={},U[E.space]=!0,U[E.tab]=!0,U[E.newline]=!0,U[E.cr]=!0,U[E.feed]=!0,U[E.ampersand]=!0,U[E.asterisk]=!0,U[E.bang]=!0,U[E.comma]=!0,U[E.colon]=!0,U[E.semicolon]=!0,U[E.openParenthesis]=!0,U[E.closeParenthesis]=!0,U[E.openSquare]=!0,U[E.closeSquare]=!0,U[E.singleQuote]=!0,U[E.doubleQuote]=!0,U[E.plus]=!0,U[E.pipe]=!0,U[E.tilde]=!0,U[E.greaterThan]=!0,U[E.equals]=!0,U[E.dollar]=!0,U[E.caret]=!0,U[E.slash]=!0,U),ni={},Mh="0123456789abcdefABCDEF";for(or=0;or<Mh.length;or++)ni[Mh.charCodeAt(or)]=!0;var or;function nA(e,t){var r=t,n;do if(n=e.charCodeAt(r),rA[n])return r-1;else if(n===E.backslash)r=sA(e,r)+1;else r++;while(r<e.length);return r-1}function sA(e,t){var r=t,n=e.charCodeAt(r+1);if(tA[n]);else if(ni[n]){var s=0;do r++,s++,n=e.charCodeAt(r+1);while(ni[n]&&s<6);if(s<6&&n===E.space)r++}else r++;return r}Te.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function iA(e){var t=[],r=e.css.valueOf(),n=r.length,s=-1,i=1,o=0,a=0,u,l,c,h,f,g,p,_,m,C,R,L,q;function D(T,M){if(e.safe)r+=M,m=r.length-1;else throw e.error("Unclosed "+T,i,o-s,o)}while(o<n){if(u=r.charCodeAt(o),u===E.newline)s=o,i+=1;switch(u){case E.space:case E.tab:case E.newline:case E.cr:case E.feed:m=o;do if(m+=1,u=r.charCodeAt(m),u===E.newline)s=m,i+=1;while(u===E.space||u===E.newline||u===E.tab||u===E.cr||u===E.feed);q=E.space,h=i,c=m-s-1,a=m;break;case E.plus:case E.greaterThan:case E.tilde:case E.pipe:m=o;do m+=1,u=r.charCodeAt(m);while(u===E.plus||u===E.greaterThan||u===E.tilde||u===E.pipe);q=E.combinator,h=i,c=o-s,a=m;break;case E.asterisk:case E.ampersand:case E.bang:case E.comma:case E.equals:case E.dollar:case E.caret:case E.openSquare:case E.closeSquare:case E.colon:case E.semicolon:case E.openParenthesis:case E.closeParenthesis:m=o,q=u,h=i,c=o-s,a=m+1;break;case E.singleQuote:case E.doubleQuote:L=u===E.singleQuote?"'":'"',m=o;do{if(f=!1,m=r.indexOf(L,m+1),m===-1)D("quote",L);g=m;while(r.charCodeAt(g-1)===E.backslash)g-=1,f=!f}while(f);q=E.str,h=i,c=o-s,a=m+1;break;default:if(u===E.slash&&r.charCodeAt(o+1)===E.asterisk){if(m=r.indexOf("*/",o+2)+1,m===0)D("comment","*/");if(l=r.slice(o,m+1),_=l.split(`
|
|
62
|
-
`),p=_.length-1,p>0)C=i+p,R=m-_[p].length;else C=i,R=s;q=E.comment,i=C,h=C,c=m-R}else if(u===E.slash)m=o,q=u,h=i,c=o-s,a=m+1;else m=nA(r,o),q=E.word,h=i,c=m-s;a=m+1;break}if(t.push([q,i,o-s,h,c,o,a]),R)s=R,R=null;o=a}return t}});var Hh=d(function(ae){var on=ae&&ae.__assign||function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e},on.apply(this,arguments)},oA=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),aA=ae&&ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),an=ae&&ae.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")oA(r,t,n[s])}return aA(r,t),r}}(),Nh=ae&&ae.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(a){o={error:a}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(o)throw o.error}}return i},Dh=ae&&ae.__spreadArray||function(e,t,r){if(r||arguments.length===2){for(var n=0,s=t.length,i;n<s;n++)if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))},Se=ae&&ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ht,si;Object.defineProperty(ae,"__esModule",{value:!0});var uA=Se(js()),ii=Se(Bs()),lA=Se(Us()),qh=Se($s()),cA=Se(Gs()),fA=Se(Ws()),oi=Se(Vs()),hA=Se(Qs()),Fh=an(Js()),pA=Se(Zs()),ai=Se(ei()),dA=Se(ti()),gA=Se(Th()),w=an(kh()),O=an(ri()),_A=an(oe()),X=Pt(),ci=(ht={},ht[O.space]=!0,ht[O.cr]=!0,ht[O.feed]=!0,ht[O.newline]=!0,ht[O.tab]=!0,ht),mA=on(on({},ci),(si={},si[O.comment]=!0,si));function jh(e){return{line:e[w.FIELDS.START_LINE],column:e[w.FIELDS.START_COL]}}function Bh(e){return{line:e[w.FIELDS.END_LINE],column:e[w.FIELDS.END_COL]}}function pt(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Rt(e){return pt(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],e[w.FIELDS.END_LINE],e[w.FIELDS.END_COL])}function ui(e,t){if(!e)return;return pt(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],t[w.FIELDS.END_LINE],t[w.FIELDS.END_COL])}function Lt(e,t){var r=e[t];if(typeof r!=="string")return;if(r.indexOf("\\")!==-1){if((0,X.ensureObject)(e,"raws"),e[t]=(0,X.unesc)(r),e.raws[t]===void 0)e.raws[t]=r}return e}function li(e,t){var r=-1,n=[];while((r=e.indexOf(t,r+1))!==-1)n.push(r);return n}function yA(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var vA=function(){function e(t,r){if(r===void 0)r={};this.rule=t,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.nestingDepth=0,this.maxNestingDepth=(0,X.resolveMaxNestingDepth)(this.options.maxNestingDepth),this.css=typeof this.rule==="string"?this.rule:this.rule.selector,this.tokens=(0,w.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=ui(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new uA.default({source:n}),this.root.errorGenerator=this._errorGenerator();var s=new ii.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s),this.current=s,this.loop()}return e.prototype._errorGenerator=function(){var t=this;return function(r,n){if(typeof t.rule==="string")return Error(r);return t.rule.error(r,n)}},e.prototype.attribute=function(){var t=[],r=this.currToken;this.position++;while(this.position<this.tokens.length&&this.currToken[w.FIELDS.TYPE]!==O.closeSquare)t.push(this.currToken),this.position++;if(!this.currToken)return this.expected("closing square bracket",r[w.FIELDS.START_POS]);if(this.currToken[w.FIELDS.TYPE]!==O.closeSquare)return this.expected("closing square bracket",this.currToken[w.FIELDS.START_POS]);var n=t.length,s={source:pt(r[1],r[2],this.currToken[3],this.currToken[4]),sourceIndex:r[w.FIELDS.START_POS]};if(n===1&&!~[O.word].indexOf(t[0][w.FIELDS.TYPE]))return this.expected("attribute",t[0][w.FIELDS.START_POS]);var i=0,o="",a="",u=null,l=!1;while(i<n){var c=t[i],h=this.content(c),f=t[i+1];switch(c[w.FIELDS.TYPE]){case O.space:if(l=!0,this.options.lossy)break;if(u){(0,X.ensureObject)(s,"spaces",u);var g=s.spaces[u].after||"";s.spaces[u].after=g+h;var p=(0,X.getProp)(s,"raws","spaces",u,"after")||null;if(p)s.raws.spaces[u].after=p+h}else o=o+h,a=a+h;break;case O.asterisk:if(f[w.FIELDS.TYPE]===O.equals)s.operator=h,u="operator";else if((!s.namespace||u==="namespace"&&!l)&&f){if(o)(0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=a,a="";s.namespace=(s.namespace||"")+h;var _=(0,X.getProp)(s,"raws","namespace")||null;if(_)s.raws.namespace+=h;u="namespace"}l=!1;break;case O.dollar:if(u==="value"){var m=(0,X.getProp)(s,"raws","value");if(s.value+="$",m)s.raws.value=m+"$";break}case O.caret:if(f[w.FIELDS.TYPE]===O.equals)s.operator=h,u="operator";l=!1;break;case O.combinator:if(h==="~"&&f[w.FIELDS.TYPE]===O.equals)s.operator=h,u="operator";if(h!=="|"){l=!1;break}if(f[w.FIELDS.TYPE]===O.equals)s.operator=h,u="operator";else if(!s.namespace&&!s.attribute)s.namespace=!0;l=!1;break;case O.word:if(f&&this.content(f)==="|"&&t[i+2]&&t[i+2][w.FIELDS.TYPE]!==O.equals&&!s.operator&&!s.namespace)s.namespace=h,u="namespace";else if(!s.attribute||u==="attribute"&&!l){if(o)(0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=a,a="";s.attribute=(s.attribute||"")+h;var _=(0,X.getProp)(s,"raws","attribute")||null;if(_)s.raws.attribute+=h;u="attribute"}else if(!s.value&&s.value!==""||u==="value"&&!(l||s.quoteMark)){var C=(0,X.unesc)(h),m=(0,X.getProp)(s,"raws","value")||"",R=s.value||"";if(s.value=R+C,s.quoteMark=null,C!==h||m)(0,X.ensureObject)(s,"raws"),s.raws.value=(m||R)+h;u="value"}else{var L=h==="i"||h==="I";if((s.value||s.value==="")&&(s.quoteMark||l)){if(s.insensitive=L,!L||h==="I")(0,X.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h;if(u="insensitive",o)(0,X.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=a,a=""}else if(s.value||s.value===""){if(u="value",s.value+=h,s.raws.value)s.raws.value+=h}}l=!1;break;case O.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[w.FIELDS.START_POS]});var q=(0,Fh.unescapeValue)(h),{unescaped:D,quoteMark:T}=q;s.value=D,s.quoteMark=T,u="value",(0,X.ensureObject)(s,"raws"),s.raws.value=h,l=!1;break;case O.equals:if(!s.attribute)return this.expected("attribute",c[w.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[w.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,u="operator",l=!1;break;case O.comment:if(u)if(l||f&&f[w.FIELDS.TYPE]===O.space||u==="insensitive"){var M=(0,X.getProp)(s,"spaces",u,"after")||"",A=(0,X.getProp)(s,"raws","spaces",u,"after")||M;(0,X.ensureObject)(s,"raws","spaces",u),s.raws.spaces[u].after=A+h}else{var I=s[u]||"",V=(0,X.getProp)(s,"raws",u)||I;(0,X.ensureObject)(s,"raws"),s.raws[u]=V+h}else a=a+h;break;default:return this.error('Unexpected "'.concat(h,'" found.'),{index:c[w.FIELDS.START_POS]})}i++}Lt(s,"attribute"),Lt(s,"namespace"),this.newNode(new Fh.default(s)),this.position++},e.prototype.parseWhitespaceEquivalentTokens=function(t){if(t<0)t=this.tokens.length;var r=this.position,n=[],s="",i=void 0;do if(ci[this.currToken[w.FIELDS.TYPE]]){if(!this.options.lossy)s+=this.content()}else if(this.currToken[w.FIELDS.TYPE]===O.comment){var o={};if(s)o.before=s,s="";i=new qh.default({value:this.content(),source:Rt(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS],spaces:o}),n.push(i)}while(++this.position<t);if(s){if(i)i.spaces.after=s;else if(!this.options.lossy){var a=this.tokens[r],u=this.tokens[this.position-1];n.push(new oi.default({value:"",source:pt(a[w.FIELDS.START_LINE],a[w.FIELDS.START_COL],u[w.FIELDS.END_LINE],u[w.FIELDS.END_COL]),sourceIndex:a[w.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return n},e.prototype.convertWhitespaceNodesToSpace=function(t,r){var n=this;if(r===void 0)r=!1;var s="",i="";if(t.forEach(function(a){var u=n.lossySpace(a.spaces.before,r),l=n.lossySpace(a.rawSpaceBefore,r);s+=u+n.lossySpace(a.spaces.after,r&&u.length===0),i+=u+a.value+n.lossySpace(a.rawSpaceAfter,r&&l.length===0)}),i===s)i=void 0;var o={space:s,rawSpace:i};return o},e.prototype.isNamedCombinator=function(t){if(t===void 0)t=this.position;return this.tokens[t+0]&&this.tokens[t+0][w.FIELDS.TYPE]===O.slash&&this.tokens[t+1]&&this.tokens[t+1][w.FIELDS.TYPE]===O.word&&this.tokens[t+2]&&this.tokens[t+2][w.FIELDS.TYPE]===O.slash},e.prototype.namedCombinator=function(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]),r=(0,X.unesc)(t).toLowerCase(),n={};if(r!==t)n.value="/".concat(t,"/");var s=new ai.default({value:"/".concat(r,"/"),source:pt(this.currToken[w.FIELDS.START_LINE],this.currToken[w.FIELDS.START_COL],this.tokens[this.position+2][w.FIELDS.END_LINE],this.tokens[this.position+2][w.FIELDS.END_COL]),sourceIndex:this.currToken[w.FIELDS.START_POS],raws:n});return this.position=this.position+3,s}else this.unexpected()},e.prototype.combinator=function(){var t=this;if(this.content()==="|")return this.namespace();var r=this.locateNextMeaningfulToken(this.position);if(r<0||this.tokens[r][w.FIELDS.TYPE]===O.comma||this.tokens[r][w.FIELDS.TYPE]===O.closeParenthesis){var n=this.parseWhitespaceEquivalentTokens(r);if(n.length>0){var s=this.current.last;if(s){var i=this.convertWhitespaceNodesToSpace(n),{space:o,rawSpace:a}=i;if(a!==void 0)s.rawSpaceAfter+=a;s.spaces.after+=o}else n.forEach(function(_){return t.newNode(_)})}return}var u=this.currToken,l=void 0;if(r>this.position)l=this.parseWhitespaceEquivalentTokens(r);var c;if(this.isNamedCombinator())c=this.namedCombinator();else if(this.currToken[w.FIELDS.TYPE]===O.combinator)c=new ai.default({value:this.content(),source:Rt(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS]}),this.position++;else if(ci[this.currToken[w.FIELDS.TYPE]]);else if(!l)this.unexpected();if(c){if(l){var h=this.convertWhitespaceNodesToSpace(l),{space:o,rawSpace:a}=h;c.spaces.before=o,c.rawSpaceBefore=a}}else{var f=this.convertWhitespaceNodesToSpace(l,!0),{space:o,rawSpace:a}=f;if(!a)a=o;var g={},p={spaces:{}};if(o.endsWith(" ")&&a.endsWith(" "))g.before=o.slice(0,o.length-1),p.spaces.before=a.slice(0,a.length-1);else if(o[0]===" "&&a[0]===" ")g.after=o.slice(1),p.spaces.after=a.slice(1);else p.value=a;c=new ai.default({value:" ",source:ui(u,this.tokens[this.position-1]),sourceIndex:u[w.FIELDS.START_POS],spaces:g,raws:p})}if(this.currToken&&this.currToken[w.FIELDS.TYPE]===O.space)c.spaces.after=this.optionalSpace(this.content()),this.position++;return this.newNode(c)},e.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var t=new ii.default({source:{start:jh(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][w.FIELDS.START_POS]});this.current.parent.append(t),this.current=t,this.position++},e.prototype.comment=function(){var t=this.currToken;this.newNode(new qh.default({value:this.content(),source:Rt(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},e.prototype.error=function(t,r){throw this.root.error(t,r)},e.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[w.FIELDS.START_POS]})},e.prototype.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[w.FIELDS.START_POS])},e.prototype.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[w.FIELDS.START_POS])},e.prototype.unexpected=function(){return this.error("Unexpected '".concat(this.content(),"'. Escaping special characters with \\ may help."),this.currToken[w.FIELDS.START_POS])},e.prototype.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[w.FIELDS.START_POS])},e.prototype.namespace=function(){var t=this.prevToken,r=t&&(t[w.FIELDS.TYPE]===O.word||t[w.FIELDS.TYPE]===O.asterisk||t[w.FIELDS.TYPE]===O.ampersand)?this.content(t):!0;if(!this.nextToken)return this.unexpectedPipe();if(this.nextToken[w.FIELDS.TYPE]===O.word)return this.position++,this.word(r);else if(this.nextToken[w.FIELDS.TYPE]===O.asterisk)return this.position++,this.universal(r);this.unexpectedPipe()},e.prototype.nesting=function(){if(this.nextToken){var t=this.content(this.nextToken);if(t==="|"){this.position++;return}}var r=this.currToken;this.newNode(new dA.default({value:this.content(),source:Rt(r),sourceIndex:r[w.FIELDS.START_POS]})),this.position++},e.prototype.parentheses=function(){var t=this.current.last,r=1,n=this.currToken;if(this.position++,t&&t.type===_A.PSEUDO){var s=new ii.default({source:{start:jh(this.tokens[this.position])},sourceIndex:this.tokens[this.position][w.FIELDS.START_POS]}),i=this.current;t.append(s),this.current=s,this.nestingDepth++;try{if(this.nestingDepth>this.maxNestingDepth)this.error("Cannot parse selector: nesting depth exceeds the maximum of ".concat(this.maxNestingDepth,"."),{index:this.currToken[w.FIELDS.START_POS]});while(this.position<this.tokens.length&&r){if(this.currToken[w.FIELDS.TYPE]===O.openParenthesis)r++;if(this.currToken[w.FIELDS.TYPE]===O.closeParenthesis)r--;if(r)this.parse();else this.current.source.end=Bh(this.currToken),this.current.parent.source.end=Bh(this.currToken),this.position++}}finally{this.nestingDepth--}this.current=i}else{var o=this.currToken,a="(",u=void 0;while(this.position<this.tokens.length&&r){if(this.currToken[w.FIELDS.TYPE]===O.openParenthesis)r++;if(this.currToken[w.FIELDS.TYPE]===O.closeParenthesis)r--;u=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++}if(t)t.appendToPropertyAndEscape("value",a,a);else this.newNode(new oi.default({value:a,source:pt(o[w.FIELDS.START_LINE],o[w.FIELDS.START_COL],u[w.FIELDS.END_LINE],u[w.FIELDS.END_COL]),sourceIndex:o[w.FIELDS.START_POS]}))}if(r)return this.expected("closing parenthesis",(this.currToken||n)[w.FIELDS.START_POS])},e.prototype.pseudo=function(){var t=this,r="",n=this.currToken;while(this.currToken&&this.currToken[w.FIELDS.TYPE]===O.colon)r+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[w.FIELDS.TYPE]===O.word)this.splitWord(!1,function(s,i){if(r+=s,t.newNode(new hA.default({value:r,source:ui(n,t.currToken),sourceIndex:n[w.FIELDS.START_POS]})),i>1&&t.nextToken&&t.nextToken[w.FIELDS.TYPE]===O.openParenthesis)t.error("Misplaced parenthesis.",{index:t.nextToken[w.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[w.FIELDS.START_POS])},e.prototype.space=function(){var t=this.content();if(this.position===0||this.prevToken[w.FIELDS.TYPE]===O.comma||this.prevToken[w.FIELDS.TYPE]===O.openParenthesis||this.current.nodes.every(function(r){return r.type==="comment"}))this.spaces=this.optionalSpace(t),this.position++;else if(this.position===this.tokens.length-1||this.nextToken[w.FIELDS.TYPE]===O.comma||this.nextToken[w.FIELDS.TYPE]===O.closeParenthesis)this.current.last.spaces.after=this.optionalSpace(t),this.position++;else this.combinator()},e.prototype.string=function(){var t=this.currToken;this.newNode(new oi.default({value:this.content(),source:Rt(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},e.prototype.universal=function(t){var r=this.nextToken;if(r&&this.content(r)==="|")return this.position++,this.namespace();var n=this.currToken;this.newNode(new pA.default({value:this.content(),source:Rt(n),sourceIndex:n[w.FIELDS.START_POS]}),t),this.position++},e.prototype.splitWord=function(t,r){var n=this,s=this.nextToken,i=this.content();while(s&&~[O.dollar,O.caret,O.equals,O.word].indexOf(s[w.FIELDS.TYPE])){this.position++;var o=this.content();if(i+=o,o.lastIndexOf("\\")===o.length-1){var a=this.nextToken;if(a&&a[w.FIELDS.TYPE]===O.space)i+=this.requiredSpace(this.content(a)),this.position++}s=this.nextToken}var u=li(i,".").filter(function(f){var g=i[f-1]==="\\",p=/^\d+\.\d+%$/.test(i);return!g&&!p}),l=li(i,"#").filter(function(f){return i[f-1]!=="\\"}),c=li(i,"#{");if(c.length)l=l.filter(function(f){return!~c.indexOf(f)});var h=(0,gA.default)(yA(Dh(Dh([0],Nh(u),!1),Nh(l),!1)));h.forEach(function(f,g){var p=h[g+1]||i.length,_=i.slice(f,p);if(g===0&&r)return r.call(n,_,h.length);var m,C=n.currToken,R=C[w.FIELDS.START_POS]+h[g],L=pt(C[1],C[2]+f,C[3],C[2]+(p-1));if(~u.indexOf(f)){var q={value:_.slice(1),source:L,sourceIndex:R};m=new lA.default(Lt(q,"value"))}else if(~l.indexOf(f)){var D={value:_.slice(1),source:L,sourceIndex:R};m=new cA.default(Lt(D,"value"))}else{var T={value:_,source:L,sourceIndex:R};Lt(T,"value"),m=new fA.default(T)}n.newNode(m,t),t=null}),this.position++},e.prototype.word=function(t){var r=this.nextToken;if(r&&this.content(r)==="|")return this.position++,this.namespace();return this.splitWord(t)},e.prototype.loop=function(){while(this.position<this.tokens.length)this.parse(!0);return this.current._inferEndPosition(),this.root},e.prototype.parse=function(t){switch(this.currToken[w.FIELDS.TYPE]){case O.space:this.space();break;case O.comment:this.comment();break;case O.openParenthesis:this.parentheses();break;case O.closeParenthesis:if(t)this.missingParenthesis();break;case O.openSquare:this.attribute();break;case O.dollar:case O.caret:case O.equals:case O.word:this.word();break;case O.colon:this.pseudo();break;case O.comma:this.comma();break;case O.asterisk:this.universal();break;case O.ampersand:this.nesting();break;case O.slash:case O.combinator:this.combinator();break;case O.str:this.string();break;case O.closeSquare:this.missingSquareBracket();case O.semicolon:this.missingBackslash();default:this.unexpected()}},e.prototype.expected=function(t,r,n){if(Array.isArray(t)){var s=t.pop();t="".concat(t.join(", ")," or ").concat(s)}var i=/^[aeiou]/.test(t[0])?"an":"a";if(!n)return this.error("Expected ".concat(i," ").concat(t,"."),{index:r});return this.error("Expected ".concat(i," ").concat(t,', found "').concat(n,'" instead.'),{index:r})},e.prototype.requiredSpace=function(t){return this.options.lossy?" ":t},e.prototype.optionalSpace=function(t){return this.options.lossy?"":t},e.prototype.lossySpace=function(t,r){if(this.options.lossy)return r?" ":"";else return t},e.prototype.parseParenthesisToken=function(t){var r=this.content(t);if(t[w.FIELDS.TYPE]===O.space)return this.requiredSpace(r);else return r},e.prototype.newNode=function(t,r){if(r){if(/^ +$/.test(r)){if(!this.options.lossy)this.spaces=(this.spaces||"")+r;r=!0}t.namespace=r,Lt(t,"namespace")}if(this.spaces)t.spaces.before=this.spaces,this.spaces="";return this.current.append(t)},e.prototype.content=function(t){if(t===void 0)t=this.currToken;return this.css.slice(t[w.FIELDS.START_POS],t[w.FIELDS.END_POS])},Object.defineProperty(e.prototype,"currToken",{get:function(){return this.tokens[this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextToken",{get:function(){return this.tokens[this.position+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevToken",{get:function(){return this.tokens[this.position-1]},enumerable:!1,configurable:!0}),e.prototype.locateNextMeaningfulToken=function(t){if(t===void 0)t=this.position+1;var r=t;while(r<this.tokens.length)if(mA[this.tokens[r][w.FIELDS.TYPE]]){r++;continue}else return r;return-1},e}();ae.default=vA});var Uh=d(function(ar){var SA=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});var wA=SA(Hh()),bA=function(){function e(t,r){this.func=t||function(){},this.funcRes=null,this.options=r}return e.prototype._shouldUpdateSelector=function(t,r){if(r===void 0)r={};var n=Object.assign({},this.options,r);if(n.updateSelector===!1)return!1;else return typeof t!=="string"},e.prototype._isLossy=function(t){if(t===void 0)t={};var r=Object.assign({},this.options,t);if(r.lossless===!1)return!0;else return!1},e.prototype._root=function(t,r){if(r===void 0)r={};var n=new wA.default(t,this._parseOptions(r));return n.root},e.prototype._parseOptions=function(t){var r=Object.assign({},this.options,t);return{lossy:this._isLossy(r),maxNestingDepth:r.maxNestingDepth}},e.prototype._stringifyOptions=function(t){var r=Object.assign({},this.options,t);return{maxNestingDepth:r.maxNestingDepth}},e.prototype._run=function(t,r){var n=this;if(r===void 0)r={};return new Promise(function(s,i){try{var o=n._root(t,r);Promise.resolve(n.func(o)).then(function(a){var u=void 0;if(n._shouldUpdateSelector(t,r))u=o.toString(n._stringifyOptions(r)),t.selector=u;return{transform:a,root:o,string:u}}).then(s,i)}catch(a){i(a);return}})},e.prototype._runSync=function(t,r){if(r===void 0)r={};var n=this._root(t,r),s=this.func(n);if(s&&typeof s.then==="function")throw Error("Selector processor returned a promise to a synchronous call.");var i=void 0;if(r.updateSelector&&typeof t!=="string")i=n.toString(this._stringifyOptions(r)),t.selector=i;return{transform:s,root:n,string:i}},e.prototype.ast=function(t,r){return this._run(t,r).then(function(n){return n.root})},e.prototype.astSync=function(t,r){return this._runSync(t,r).root},e.prototype.transform=function(t,r){return this._run(t,r).then(function(n){return n.transform})},e.prototype.transformSync=function(t,r){return this._runSync(t,r).transform},e.prototype.process=function(t,r){var n=this;return this._run(t,r).then(function(s){return s.string||s.root.toString(n._stringifyOptions(r))})},e.prototype.processSync=function(t,r){var n=this._runSync(t,r);return n.string||n.root.toString(this._stringifyOptions(r))},e}();ar.default=bA});var $h=d(function(H){var we=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H,"__esModule",{value:!0});H.universal=H.tag=H.string=H.selector=H.root=H.pseudo=H.nesting=H.id=H.comment=H.combinator=H.className=H.attribute=void 0;var xA=we(Js()),EA=we(Us()),AA=we(ei()),OA=we($s()),CA=we(Gs()),PA=we(ti()),TA=we(Qs()),RA=we(js()),LA=we(Bs()),IA=we(Vs()),MA=we(Ws()),kA=we(Zs()),NA=function(e){return new xA.default(e)};H.attribute=NA;var DA=function(e){return new EA.default(e)};H.className=DA;var qA=function(e){return new AA.default(e)};H.combinator=qA;var FA=function(e){return new OA.default(e)};H.comment=FA;var jA=function(e){return new CA.default(e)};H.id=jA;var BA=function(e){return new PA.default(e)};H.nesting=BA;var HA=function(e){return new TA.default(e)};H.pseudo=HA;var UA=function(e){return new RA.default(e)};H.root=UA;var $A=function(e){return new LA.default(e)};H.selector=$A;var GA=function(e){return new IA.default(e)};H.string=GA;var WA=function(e){return new MA.default(e)};H.tag=WA;var VA=function(e){return new kA.default(e)};H.universal=VA});var zh=d(function(Wh){var pe;Object.defineProperty(Wh,"__esModule",{value:!0});Wh.isUniversal=Wh.isTag=Wh.isString=Wh.isSelector=Wh.isRoot=Wh.isPseudo=Wh.isNesting=Wh.isIdentifier=Wh.isComment=Wh.isCombinator=Wh.isClassName=Wh.isAttribute=void 0;Wh.isNode=fi;Wh.isPseudoElement=Gh;Wh.isPseudoClass=YA;Wh.isContainer=zA;Wh.isNamespace=KA;var ee=oe(),QA=(pe={},pe[ee.ATTRIBUTE]=!0,pe[ee.CLASS]=!0,pe[ee.COMBINATOR]=!0,pe[ee.COMMENT]=!0,pe[ee.ID]=!0,pe[ee.NESTING]=!0,pe[ee.PSEUDO]=!0,pe[ee.ROOT]=!0,pe[ee.SELECTOR]=!0,pe[ee.STRING]=!0,pe[ee.TAG]=!0,pe[ee.UNIVERSAL]=!0,pe);function fi(e){return typeof e==="object"&&QA[e.type]}function be(e,t){return fi(t)&&t.type===e}Wh.isAttribute=be.bind(null,ee.ATTRIBUTE);Wh.isClassName=be.bind(null,ee.CLASS);Wh.isCombinator=be.bind(null,ee.COMBINATOR);Wh.isComment=be.bind(null,ee.COMMENT);Wh.isIdentifier=be.bind(null,ee.ID);Wh.isNesting=be.bind(null,ee.NESTING);Wh.isPseudo=be.bind(null,ee.PSEUDO);Wh.isRoot=be.bind(null,ee.ROOT);Wh.isSelector=be.bind(null,ee.SELECTOR);Wh.isString=be.bind(null,ee.STRING);Wh.isTag=be.bind(null,ee.TAG);Wh.isUniversal=be.bind(null,ee.UNIVERSAL);function Gh(e){return Wh.isPseudo(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function YA(e){return Wh.isPseudo(e)&&!Gh(e)}function zA(e){return!!(fi(e)&&e.walk)}function KA(e){return Wh.isAttribute(e)||Wh.isTag(e)}});var Kh=d(function(Ue){var cO=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),pi=Ue&&Ue.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))cO(t,e,r)};Object.defineProperty(Ue,"__esModule",{value:!0});pi(oe(),Ue);pi($h(),Ue);pi(zh(),Ue)});var Jh=d(function($e,Xh){var fO=$e&&$e.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),hO=$e&&$e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pO=$e&&$e.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")fO(r,t,n[s])}return hO(r,t),r}}(),dO=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gO=dO(Uh()),_O=pO(Kh()),di=function(e){return new gO.default(e)};Object.assign(di,_O);delete di.__esModule;Xh.exports=di});import*as up from"path";var mi=ln(tc());import*as Mt from"fs";import*as np from"path";var W=ln(rh(),1),ih=W.default,VP=W.default.stringify,QP=W.default.fromJSON,YP=W.default.plugin,nh=W.default.parse,zP=W.default.list,KP=W.default.document,XP=W.default.comment,JP=W.default.atRule,ZP=W.default.rule,eT=W.default.decl,sh=W.default.root,tT=W.default.CssSyntaxError,rT=W.default.Declaration,nT=W.default.Container,sT=W.default.Processor,iT=W.default.Document,oT=W.default.Comment,aT=W.default.Warning,uT=W.default.AtRule,lT=W.default.Result,cT=W.default.Input,fT=W.default.Rule,hT=W.default.Root,pT=W.default.Node;var sp=ln(Jh());import{promisify as Zh}from"util";var mO="purgecss ignore current",yO="purgecss ignore",vO="purgecss start ignore",SO="purgecss end ignore",wO="purgecss.config.js",bO="Error loading the config file";function me(e,t){if(t)t.forEach(e.add,e)}class It{constructor(e){this.undetermined=new Set,this.attrNames=new Set,this.attrValues=new Set,this.classes=new Set,this.ids=new Set,this.tags=new Set,this.merge(e)}merge(e){if(Array.isArray(e))me(this.undetermined,e);else if(e instanceof It)me(this.undetermined,e.undetermined),me(this.attrNames,e.attrNames),me(this.attrValues,e.attrValues),me(this.classes,e.classes),me(this.ids,e.ids),me(this.tags,e.tags);else{if(me(this.undetermined,e.undetermined),e.attributes)me(this.attrNames,e.attributes.names),me(this.attrValues,e.attributes.values);me(this.classes,e.classes),me(this.ids,e.ids),me(this.tags,e.tags)}return this}hasAttrName(e){return this.attrNames.has(e)||this.undetermined.has(e)}someAttrValue(e){for(let t of this.attrValues)if(e(t))return!0;for(let t of this.undetermined)if(e(t))return!0;return!1}hasAttrPrefix(e){return this.someAttrValue((t)=>t.startsWith(e))}hasAttrSuffix(e){return this.someAttrValue((t)=>t.endsWith(e))}hasAttrSubstr(e){return e.trim().split(" ").every((r)=>this.someAttrValue((n)=>n.includes(r)))}hasAttrValue(e){return this.attrValues.has(e)||this.undetermined.has(e)}hasClass(e){return this.classes.has(e)||this.undetermined.has(e)}hasId(e){return this.ids.has(e)||this.undetermined.has(e)}hasTag(e){return this.tags.has(e)||this.undetermined.has(e)}}var ep=["*",":root",":after",":before"],dt={css:[],content:[],defaultExtractor:(e)=>e.match(/[A-Za-z0-9_-]+/g)||[],extractors:[],fontFace:!1,keyframes:!1,rejected:!1,rejectedCss:!1,sourceMap:!1,stdin:!1,stdout:!1,variables:!1,safelist:{standard:[],deep:[],greedy:[],variables:[],keyframes:[]},blocklist:[],skippedContentGlobs:[],dynamicAttributes:[]};class yi{constructor(e){this.nodes=[],this.isUsed=!1,this.value=e}}class ip{constructor(){this.nodes=new Map,this.usedVariables=new Set,this.safelist=[]}addVariable(e){let{prop:t}=e;if(!this.nodes.has(t)){let r=new yi(e);this.nodes.set(t,[r])}else{let r=new yi(e),n=this.nodes.get(t)||[];this.nodes.set(t,[...n,r])}}addVariableUsage(e,t){let{prop:r}=e,n=this.nodes.get(r);for(let s of t){let i=s[1];if(this.nodes.has(i)){let o=this.nodes.get(i);n===null||n===void 0||n.forEach((a)=>{o===null||o===void 0||o.forEach((u)=>a.nodes.push(u))})}}}addVariableUsageInProperties(e){for(let t of e){let r=t[1];this.usedVariables.add(r)}}setAsUsed(e){let t=this.nodes.get(e);if(t){let r=[...t];while(r.length!==0){let n=r.pop();if(n&&!n.isUsed)n.isUsed=!0,r.push(...n.nodes)}}}removeUnused(){for(let e of this.usedVariables){let t=this.nodes.get(e);if(t)for(let r of t){let n=r.value.value.matchAll(/var\((.+?)[,)]/g);for(let s of n)if(!this.usedVariables.has(s[1]))this.usedVariables.add(s[1])}}for(let e of this.usedVariables)this.setAsUsed(e);for(let[e,t]of this.nodes)for(let r of t)if(!r.isUsed&&!this.isVariablesSafelisted(e))r.value.remove()}isVariablesSafelisted(e){return this.safelist.some((t)=>typeof t==="string"?t===e:t.test(e))}}var gi={access:Zh(Mt.access),readFile:Zh(Mt.readFile)};function un(e=[]){if(Array.isArray(e))return{...dt.safelist,standard:e};return{...dt.safelist,...e}}async function xO(e=wO){let t;try{let n=await import(np.resolve(process.cwd(),e));t=n.default&&typeof n.default==="object"?n.default:n}catch(r){if(r instanceof Error)throw Error(`${bO} ${r.message}`);throw Error()}return{...dt,...t,safelist:un(t.safelist)}}async function tp(e,t){return new It(await t(e))}function _i(e,t){switch(t){case"next":return e.text.includes(yO);case"start":return e.text.includes(vO);case"end":return e.text.includes(SO)}}function EO(e){if(ap(e)&&!e.selector||(e===null||e===void 0?void 0:e.nodes)&&!e.nodes.length||op(e)&&(!e.nodes&&!e.params||!e.params&&e.nodes&&!e.nodes.length))return!0;return!1}function AO(e){let t=!1;return e.walkComments((r)=>{if(r&&r.type==="comment"&&r.text.includes(mO))t=!0,r.remove()}),t}function vi(...e){let t=new It([]);return e.forEach(t.merge,t),t}function rp(e){return e.replace(/(^["'])|(["']$)/g,"")}function OO(e,t){if(!t.hasAttrName(e.attribute))return!1;if(typeof e.value>"u")return!0;switch(e.operator){case"$=":return t.hasAttrSuffix(e.value);case"~=":case"*=":return t.hasAttrSubstr(e.value);case"=":return t.hasAttrValue(e.value);case"|=":case"^=":return t.hasAttrPrefix(e.value);default:return!0}}function CO(e,t){return t.hasClass(e.value)}function PO(e,t){return t.hasId(e.value)}function TO(e,t){return t.hasTag(e.value)}function RO(e){return e.parent&&e.parent.type==="pseudo"&&e.parent.value.startsWith(":")||!1}function LO(e){return e.parent&&e.parent.type==="pseudo"&&(e.parent.value===":where"||e.parent.value===":is")||!1}function IO(e){var t;let r=!1;if(e.type==="selector"&&((t=e.parent)===null||t===void 0?void 0:t.type)==="root"&&e.nodes.length===1)e.walk((n)=>{if(n.type==="pseudo"&&(n.value===":where"||n.value===":is"||n.value===":has"||n.value===":not"))r=!0});return r}function op(e){return(e===null||e===void 0?void 0:e.type)==="atrule"}function ap(e){return(e===null||e===void 0?void 0:e.type)==="rule"}function MO(e){return(e===null||e===void 0?void 0:e.type)==="comment"}class Si{constructor(){this.ignore=!1,this.atRules={fontFace:[],keyframes:[]},this.usedAnimations=new Set,this.usedFontFaces=new Set,this.selectorsRemoved=new Set,this.removedNodes=[],this.variablesStructure=new ip,this.options=dt}collectDeclarationsData(e){let{prop:t,value:r}=e;if(this.options.variables){let n=r.matchAll(/var\((.+?)[,)]/g);if(t.startsWith("--"))this.variablesStructure.addVariable(e),this.variablesStructure.addVariableUsage(e,n);else this.variablesStructure.addVariableUsageInProperties(n)}if(this.options.keyframes){if(t==="animation"||t==="animation-name"){for(let n of r.split(/[\s,]+/))this.usedAnimations.add(n);return}if(t.startsWith("--"))for(let n of r.split(/[\s,]+/))this.usedAnimations.add(n)}if(this.options.fontFace){if(t==="font-family")for(let n of r.split(",")){let s=rp(n.trim());this.usedFontFaces.add(s)}return}}getFileExtractor(e,t){let r=t.find((n)=>n.extensions.find((s)=>e.endsWith(s)));return typeof r>"u"?this.options.defaultExtractor:r.extractor}async extractSelectorsFromFiles(e,t){let r=new It([]),n=[];for(let s of e)try{await gi.access(s,Mt.constants.F_OK),n.push(s)}catch(i){n.push(...mi.sync(s,{onlyFiles:!0,ignore:this.options.skippedContentGlobs.map((o)=>o.replace(/^\.\//,""))}))}if(e.length>0&&n.length===0)console.warn("No files found from the passed PurgeCSS option 'content'.");for(let s of n){let i=await gi.readFile(s,"utf-8"),o=this.getFileExtractor(s,t),a=await tp(i,o);r.merge(a)}return r}async extractSelectorsFromString(e,t){let r=new It([]);for(let{raw:n,extension:s}of e){let i=this.getFileExtractor(`.${s}`,t),o=await tp(n,i);r.merge(o)}return r}evaluateAtRule(e){if(this.options.keyframes&&e.name.endsWith("keyframes")){this.atRules.keyframes.push(e);return}if(this.options.fontFace&&e.name==="font-face"&&e.nodes){for(let t of e.nodes)if(t.type==="decl"&&t.prop==="font-family")this.atRules.fontFace.push({name:rp(t.value),node:e})}}evaluateRule(e,t){if(this.ignore)return;let r=e.prev();if(MO(r)&&_i(r,"next")){r.remove();return}if(e.parent&&op(e.parent)&&e.parent.name.endsWith("keyframes"))return;if(!ap(e))return;if(AO(e))return;let n=[];if(e.selector=sp.default((i)=>{i.walk((o)=>{if(o.type!=="selector")return;if(!this.shouldKeepSelector(o,t)){if(this.options.rejected)this.selectorsRemoved.add(o.toString());if(this.options.rejectedCss)n.push(o.toString());o.remove()}}),i.walk((o)=>{if(o.type!=="selector")return;if(o.toString()&&/(:where)|(:is)/.test(o.toString()))o.walk((a)=>{if(a.type!=="pseudo")return;if(a.value!==":where"&&a.value!==":is")return;if(a.nodes.length===0)o.remove()})})}).processSync(e.selector),e.selector&&typeof e.nodes<"u")for(let i of e.nodes){if(i.type!=="decl")continue;this.collectDeclarationsData(i)}let s=e.parent;if(!e.selector)e.remove();if(EO(s))s===null||s===void 0||s.remove();if(this.options.rejectedCss){if(n.length>0){let i=e.clone(),o=s===null||s===void 0?void 0:s.clone().removeAll().append(i);i.selectors=n;let a=o?o:i;this.removedNodes.push(a)}}}async getPurgedCSS(e,t){var r;let n=[],s=[];for(let i of e)if(typeof i==="string")s.push(...mi.sync(i,{onlyFiles:!0,ignore:this.options.skippedContentGlobs}));else s.push(i);for(let i of s){let o=typeof i==="string"?this.options.stdin?i:await gi.readFile(i,"utf-8"):i.raw,a=typeof i==="string"&&!this.options.stdin,u=nh(o,{from:a?i:void 0});if(this.walkThroughCSS(u,t),this.options.fontFace)this.removeUnusedFontFaces();if(this.options.keyframes)this.removeUnusedKeyframes();if(this.options.variables)this.removeUnusedCSSVariables();let l=u.toResult({map:this.options.sourceMap,to:typeof this.options.sourceMap==="object"&&this.options.sourceMap.to?this.options.sourceMap.to:a?i:void 0}),c={css:l.toString(),file:typeof i==="string"?i:i.name};if(this.options.sourceMap)c.sourceMap=(r=l.map)===null||r===void 0?void 0:r.toString();if(this.options.rejected)c.rejected=Array.from(this.selectorsRemoved),this.selectorsRemoved.clear();if(this.options.rejectedCss)c.rejectedCss=sh({nodes:this.removedNodes}).toString();n.push(c)}return n}isKeyframesSafelisted(e){return this.options.safelist.keyframes.some((t)=>typeof t==="string"?t===e:t.test(e))}isSelectorBlocklisted(e){return this.options.blocklist.some((t)=>typeof t==="string"?t===e:t.test(e))}isSelectorSafelisted(e){let t=this.options.safelist.standard.some((n)=>typeof n==="string"?n===e:n.test(e)),r=/^::.*/.test(e);return ep.includes(e)||r||t}isSelectorSafelistedDeep(e){return this.options.safelist.deep.some((t)=>t.test(e))}isSelectorSafelistedGreedy(e){return this.options.safelist.greedy.some((t)=>t.test(e))}async purge(e){this.options=typeof e!=="object"?await xO(e):{...dt,...e,safelist:un(e.safelist)};let{content:t,css:r,extractors:n,safelist:s}=this.options;if(this.options.variables)this.variablesStructure.safelist=s.variables||[];let i=t.filter((l)=>typeof l==="string"),o=t.filter((l)=>typeof l==="object"),a=await this.extractSelectorsFromFiles(i,n),u=await this.extractSelectorsFromString(o,n);return this.getPurgedCSS(r,vi(a,u))}removeUnusedCSSVariables(){this.variablesStructure.removeUnused()}removeUnusedFontFaces(){for(let{name:e,node:t}of this.atRules.fontFace)if(!this.usedFontFaces.has(e))t.remove()}removeUnusedKeyframes(){for(let e of this.atRules.keyframes)if(!this.usedAnimations.has(e.params)&&!this.isKeyframesSafelisted(e.params))e.remove()}getSelectorValue(e){return e.type==="attribute"&&e.attribute||e.value}shouldKeepSelector(e,t){if(RO(e)&&!LO(e))return!0;if(IO(e))return!0;if(this.options.safelist.greedy.length>0){if(e.nodes.map(this.getSelectorValue).some((s)=>s&&this.isSelectorSafelistedGreedy(s)))return!0}let r=!1;for(let n of e.nodes){let s=this.getSelectorValue(n);if(s&&this.isSelectorSafelistedDeep(s))return!0;if(s&&(ep.includes(s)||this.isSelectorSafelisted(s))){r=!0;continue}if(s&&this.isSelectorBlocklisted(s))return!1;switch(n.type){case"attribute":r=[...this.options.dynamicAttributes,"value","checked","selected","open"].includes(n.attribute)?!0:OO(n,t);break;case"class":r=CO(n,t);break;case"id":r=PO(n,t);break;case"tag":r=TO(n,t);break;default:continue}if(!r)return!1}return r}walkThroughCSS(e,t){e.walk((r)=>{if(r.type==="rule")return this.evaluateRule(r,t);if(r.type==="atrule")return this.evaluateAtRule(r);if(r.type==="comment"){if(_i(r,"start"))this.ignore=!0,r.remove();else if(_i(r,"end"))this.ignore=!1,r.remove()}})}}var kO="postcss-purgecss";async function NO(e,t,{result:r}){let n=new Si,s;try{s=await import(up.resolve(process.cwd(),"purgecss.config.js"))}catch{}let i={...dt,...s,...e,safelist:un((e===null||e===void 0?void 0:e.safelist)||(s===null||s===void 0?void 0:s.safelist))};if(e&&typeof e.contentFunction==="function")i.content=e.contentFunction(t.source&&t.source.input.file||"");if(n.options=i,i.variables)n.variablesStructure.safelist=i.safelist.variables||[];let{content:o,extractors:a}=i,u=o.filter((g)=>typeof g==="string"),l=o.filter((g)=>typeof g==="object"),c=await n.extractSelectorsFromFiles(u,a),h=await n.extractSelectorsFromString(l,a),f=vi(c,h);if(n.walkThroughCSS(t,f),n.options.fontFace)n.removeUnusedFontFaces();if(n.options.keyframes)n.removeUnusedKeyframes();if(n.options.variables)n.removeUnusedCSSVariables();if(n.options.rejected&&n.selectorsRemoved.size>0)r.messages.push({type:"purgecss",plugin:"postcss-purgecss",text:`purging ${n.selectorsRemoved.size} selectors:
|
|
63
|
-
${Array.from(n.selectorsRemoved).map((
|
|
61
|
+
`+"https://www.w3ctech.com/topic/2226")}let a=r(...o);return a.postcssPlugin=t,a.postcssVersion=new ks().version,a}let i;return Object.defineProperty(s,"postcss",{get(){if(!i)i=s();return i}}),s.process=function(o,a,u){return B([s(u)]).process(o,a)},s};B.stringify=pb;B.parse=fb;B.fromJSON=ob;B.list=lb;B.comment=(e)=>new Kf(e);B.atRule=(e)=>new zf(e);B.decl=(e)=>new Xf(e);B.rule=(e)=>new eh(e);B.root=(e)=>new Zf(e);B.document=(e)=>new Jf(e);B.CssSyntaxError=ib;B.Declaration=Xf;B.Container=sb;B.Processor=ks;B.Document=Jf;B.Comment=Kf;B.Warning=db;B.AtRule=zf;B.Result=hb;B.Input=ab;B.Rule=eh;B.Root=Zf;B.Node=cb;ub.registerPostcss(B);th.exports=B;B.default=B});var Ns=d(function(oh){Object.defineProperty(oh,"__esModule",{value:!0});oh.default=yb;function _b(e){var t=e.toLowerCase(),r="",n=!1;for(var s=0;s<6&&t[s]!==void 0;s++){var i=t.charCodeAt(s),o=i>=97&&i<=102||i>=48&&i<=57;if(n=i===32,!o)break;r+=t[s]}if(r.length===0)return;var a=parseInt(r,16),u=a>=55296&&a<=57343;if(u||a===0||a>1114111)return["\uFFFD",r.length+(n?1:0)];return[String.fromCodePoint(a),r.length+(n?1:0)]}var mb=/\\/;function yb(e){var t=mb.test(e);if(!t)return e;var r="";for(var n=0;n<e.length;n++){if(e[n]==="\\"){var s=_b(e.slice(n+1,n+7));if(s!==void 0){r+=s[0],n+=s[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}if(e.length===n+1)r+=e[n];continue}r+=e[n]}return r}});var uh=d(function(ah){Object.defineProperty(ah,"__esModule",{value:!0});ah.default=Sb;function Sb(e){var t=[];for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];while(t.length>0){var n=t.shift();if(!e[n])return;e=e[n]}return e}});var ch=d(function(lh){Object.defineProperty(lh,"__esModule",{value:!0});lh.default=bb;function bb(e){var t=[];for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];while(t.length>0){var n=t.shift();if(!e[n])e[n]={};e=e[n]}}});var hh=d(function(fh){Object.defineProperty(fh,"__esModule",{value:!0});fh.default=Eb;function Eb(e){var t="",r=e.indexOf("/*"),n=0;while(r>=0){t=t+e.slice(n,r);var s=e.indexOf("*/",r+2);if(s<0)return t;n=s+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}});var dh=d(function(ph){Object.defineProperty(ph,"__esModule",{value:!0});ph.MAX_NESTING_DEPTH=void 0;ph.default=Ob;ph.MAX_NESTING_DEPTH=256;function Ob(e){return Number.isSafeInteger(e)&&e>=0?e:ph.MAX_NESTING_DEPTH}});var Pt=d(function(le){var nr=le&&le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(le,"__esModule",{value:!0});le.MAX_NESTING_DEPTH=le.resolveMaxNestingDepth=le.stripComments=le.ensureObject=le.getProp=le.unesc=void 0;var Pb=Ns();Object.defineProperty(le,"unesc",{enumerable:!0,get:function(){return nr(Pb).default}});var Tb=uh();Object.defineProperty(le,"getProp",{enumerable:!0,get:function(){return nr(Tb).default}});var Rb=ch();Object.defineProperty(le,"ensureObject",{enumerable:!0,get:function(){return nr(Rb).default}});var Lb=hh();Object.defineProperty(le,"stripComments",{enumerable:!0,get:function(){return nr(Lb).default}});var gh=dh();Object.defineProperty(le,"resolveMaxNestingDepth",{enumerable:!0,get:function(){return nr(gh).default}});Object.defineProperty(le,"MAX_NESTING_DEPTH",{enumerable:!0,get:function(){return gh.MAX_NESTING_DEPTH}})});var Be=d(function(_h){Object.defineProperty(_h,"__esModule",{value:!0});var tn=Pt(),qs=function(e,t,r){if(r===void 0)r=0;if(r>tn.MAX_NESTING_DEPTH)throw Error("Cannot clone selector: nesting depth exceeds the maximum of ".concat(tn.MAX_NESTING_DEPTH,"."));if(typeof e!=="object"||e===null)return e;var n=new e.constructor;for(var s in e){if(!e.hasOwnProperty(s))continue;var i=e[s],o=typeof i;if(s==="parent"&&o==="object"){if(t)n[s]=t}else if(i instanceof Array)n[s]=i.map(function(a){return qs(a,n,r+1)});else n[s]=qs(i,n,r+1)}return n},Ib=function(){function e(t){if(t===void 0)t={};Object.assign(this,t),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}return e.prototype.remove=function(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var t in arguments)this.parent.insertBefore(this,arguments[t]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(t){if(t===void 0)t={};var r=qs(this);for(var n in t)r[n]=t[n];return r},e.prototype.appendToPropertyAndEscape=function(t,r,n){if(!this.raws)this.raws={};var s=this[t],i=this.raws[t];if(this[t]=s+r,i||n!==r)this.raws[t]=(i||s)+n;else delete this.raws[t]},e.prototype.setPropertyAndEscape=function(t,r,n){if(!this.raws)this.raws={};this[t]=r,this.raws[t]=n},e.prototype.setPropertyWithoutEscape=function(t,r){if(this[t]=r,this.raws)delete this.raws[t]},e.prototype.isAtPosition=function(t,r){if(this.source&&this.source.start&&this.source.end){if(this.source.start.line>t)return!1;if(this.source.end.line<t)return!1;if(this.source.start.line===t&&this.source.start.column>r)return!1;if(this.source.end.line===t&&this.source.end.column<r)return!1;return!0}return},e.prototype.stringifyProperty=function(t){return this.raws&&this.raws[t]||this[t]},Object.defineProperty(e.prototype,"rawSpaceBefore",{get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.before;if(t===void 0)t=this.spaces&&this.spaces.before;return t||""},set:function(t){(0,tn.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawSpaceAfter",{get:function(){var t=this.raws&&this.raws.spaces&&this.raws.spaces.after;if(t===void 0)t=this.spaces.after;return t||""},set:function(t){(0,tn.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=t},enumerable:!1,configurable:!0}),e.prototype.valueToString=function(){return String(this.stringifyProperty("value"))},e.prototype.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},e.prototype._stringify=function(){return this.toString()},e}();_h.default=Ib});var oe=d(function(mh){Object.defineProperty(mh,"__esModule",{value:!0});mh.UNIVERSAL=mh.ATTRIBUTE=mh.CLASS=mh.COMBINATOR=mh.COMMENT=mh.ID=mh.NESTING=mh.PSEUDO=mh.ROOT=mh.SELECTOR=mh.STRING=mh.TAG=void 0;mh.TAG="tag";mh.STRING="string";mh.SELECTOR="selector";mh.ROOT="root";mh.PSEUDO="pseudo";mh.NESTING="nesting";mh.ID="id";mh.COMMENT="comment";mh.COMBINATOR="combinator";mh.CLASS="class";mh.ATTRIBUTE="attribute";mh.UNIVERSAL="universal"});var rn=d(function(se){var Wb=se&&se.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vb=se&&se.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),Qb=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yb=se&&se.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")Vb(r,t,n[s])}return Qb(r,t),r}}(),zb=se&&se.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vh=se&&se.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(a){o={error:a}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(o)throw o.error}}return i},Sh=se&&se.__spreadArray||function(e,t,r){if(r||arguments.length===2){for(var n=0,s=t.length,i;n<s;n++)if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))},Kb=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(se,"__esModule",{value:!0});var Fs=Pt(),Xb=Kb(Be()),He=Yb(oe()),Jb=function(e){Wb(t,e);function t(r){var n=e.call(this,r)||this;if(!n.nodes)n.nodes=[];return n}return t.prototype.append=function(r){return r.parent=this,this.nodes.push(r),this},t.prototype.prepend=function(r){r.parent=this,this.nodes.unshift(r);for(var n in this.indexes)this.indexes[n]++;return this},t.prototype.at=function(r){return this.nodes[r]},t.prototype.index=function(r){if(typeof r==="number")return r;return this.nodes.indexOf(r)},Object.defineProperty(t.prototype,"first",{get:function(){return this.at(0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.at(this.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length},enumerable:!1,configurable:!0}),t.prototype.removeChild=function(r){r=this.index(r),this.at(r).parent=void 0,this.nodes.splice(r,1);var n;for(var s in this.indexes)if(n=this.indexes[s],n>=r)this.indexes[s]=n-1;return this},t.prototype.removeAll=function(){var r,n;try{for(var s=zb(this.nodes),i=s.next();!i.done;i=s.next()){var o=i.value;o.parent=void 0}}catch(a){r={error:a}}finally{try{if(i&&!i.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(r,n){var s;n.parent=this;var i=this.index(r),o=[];for(var a=2;a<arguments.length;a++)o.push(arguments[a]);(s=this.nodes).splice.apply(s,Sh([i+1,0,n],vh(o),!1)),n.parent=this;var u;for(var l in this.indexes)if(u=this.indexes[l],i<u)this.indexes[l]=u+arguments.length-1;return this},t.prototype.insertBefore=function(r,n){var s;n.parent=this;var i=this.index(r),o=[];for(var a=2;a<arguments.length;a++)o.push(arguments[a]);(s=this.nodes).splice.apply(s,Sh([i,0,n],vh(o),!1)),n.parent=this;var u;for(var l in this.indexes)if(u=this.indexes[l],u>=i)this.indexes[l]=u+arguments.length-1;return this},t.prototype._findChildAtPosition=function(r,n){var s=void 0;return this.each(function(i){if(i.atPosition){var o=i.atPosition(r,n);if(o)return s=o,!1}else if(i.isAtPosition(r,n))return s=i,!1}),s},t.prototype.atPosition=function(r,n){if(this.isAtPosition(r,n))return this._findChildAtPosition(r,n)||this;else return},t.prototype._inferEndPosition=function(){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.prototype.each=function(r){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach++;var n=this.lastEach;if(this.indexes[n]=0,!this.length)return;var s,i;while(this.indexes[n]<this.length){if(s=this.indexes[n],i=r(this.at(s),s),i===!1)break;this.indexes[n]+=1}if(delete this.indexes[n],i===!1)return!1},t.prototype.walk=function(r,n){if(n===void 0)n=0;if(n>Fs.MAX_NESTING_DEPTH)throw Error("Cannot walk selector: nesting depth exceeds the maximum of ".concat(Fs.MAX_NESTING_DEPTH,"."));return this.each(function(s,i){var o=r(s,i);if(o!==!1&&s.length)o=s.walk(r,n+1);if(o===!1)return!1})},t.prototype.walkAttributes=function(r){var n=this;return this.walk(function(s){if(s.type===He.ATTRIBUTE)return r.call(n,s)})},t.prototype.walkClasses=function(r){var n=this;return this.walk(function(s){if(s.type===He.CLASS)return r.call(n,s)})},t.prototype.walkCombinators=function(r){var n=this;return this.walk(function(s){if(s.type===He.COMBINATOR)return r.call(n,s)})},t.prototype.walkComments=function(r){var n=this;return this.walk(function(s){if(s.type===He.COMMENT)return r.call(n,s)})},t.prototype.walkIds=function(r){var n=this;return this.walk(function(s){if(s.type===He.ID)return r.call(n,s)})},t.prototype.walkNesting=function(r){var n=this;return this.walk(function(s){if(s.type===He.NESTING)return r.call(n,s)})},t.prototype.walkPseudos=function(r){var n=this;return this.walk(function(s){if(s.type===He.PSEUDO)return r.call(n,s)})},t.prototype.walkTags=function(r){var n=this;return this.walk(function(s){if(s.type===He.TAG)return r.call(n,s)})},t.prototype.walkUniversals=function(r){var n=this;return this.walk(function(s){if(s.type===He.UNIVERSAL)return r.call(n,s)})},t.prototype.split=function(r){var n=this,s=[];return this.reduce(function(i,o,a){var u=r.call(n,o);if(s.push(o),u)i.push(s),s=[];else if(a===n.length-1)i.push(s);return i},[])},t.prototype.map=function(r){return this.nodes.map(r)},t.prototype.reduce=function(r,n){return this.nodes.reduce(r,n)},t.prototype.every=function(r){return this.nodes.every(r)},t.prototype.some=function(r){return this.nodes.some(r)},t.prototype.filter=function(r){return this.nodes.filter(r)},t.prototype.sort=function(r){return this.nodes.sort(r)},t.prototype.toString=function(r){if(r===void 0)r={};return this._stringify(r,0,(0,Fs.resolveMaxNestingDepth)(r.maxNestingDepth))},t.prototype._stringify=function(r,n,s){var i=this;return this.map(function(o){return i._stringifyChild(o,r,n,s)}).join("")},t.prototype._stringifyChild=function(r,n,s,i){return typeof r._stringify==="function"?r._stringify(n,s,i):String(r)},t}(Xb.default);se.default=Jb});var js=d(function(et){var Zb=et&&et.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ex=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(et,"__esModule",{value:!0});var tx=ex(rn()),rx=oe(),nx=function(e){Zb(t,e);function t(r){var n=e.call(this,r)||this;return n.type=rx.ROOT,n}return t.prototype._stringify=function(r,n,s){var i=this,o=this.reduce(function(a,u){return a.push(i._stringifyChild(u,r,n,s)),a},[]).join(",");return this.trailingComma?o+",":o},t.prototype.error=function(r,n){if(this._error)return this._error(r,n);else return Error(r)},Object.defineProperty(t.prototype,"errorGenerator",{set:function(r){this._error=r},enumerable:!1,configurable:!0}),t}(tx.default);et.default=nx});var Bs=d(function(tt){var sx=tt&&tt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ix=tt&&tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tt,"__esModule",{value:!0});var ox=ix(rn()),ax=oe(),ux=function(e){sx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=ax.SELECTOR,n}return t}(ox.default);tt.default=ux});var nn=d(function(AT,wh){/*! https://mths.be/cssesc v3.0.0 by @mathias */var lx={},cx=lx.hasOwnProperty,fx=function(t,r){if(!t)return r;var n={};for(var s in r)n[s]=cx.call(t,s)?t[s]:r[s];return n},hx=/[ -,\.\/:-@\[-\^`\{-~]/,px=/[ -,\.\/:-@\[\]\^`\{-~]/,dx=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Hs=function e(t,r){if(r=fx(r,e.options),r.quotes!="single"&&r.quotes!="double")r.quotes="single";var n=r.quotes=="double"?'"':"'",s=r.isIdentifier,i=t.charAt(0),o="",a=0,u=t.length;while(a<u){var l=t.charAt(a++),c=l.charCodeAt(),f=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&a<u){var h=t.charCodeAt(a++);if((h&64512)==56320)c=((c&1023)<<10)+(h&1023)+65536;else a--}f="\\"+c.toString(16).toUpperCase()+" "}else if(r.escapeEverything)if(hx.test(l))f="\\"+l;else f="\\"+c.toString(16).toUpperCase()+" ";else if(/[\t\n\f\r\x0B]/.test(l))f="\\"+c.toString(16).toUpperCase()+" ";else if(l=="\\"||!s&&(l=='"'&&n==l||l=="'"&&n==l)||s&&px.test(l))f="\\"+l;else f=l;o+=f}if(s){if(/^-[-\d]/.test(o))o="\\-"+o.slice(1);else if(/\d/.test(i))o="\\3"+i+" "+o.slice(1)}if(o=o.replace(dx,function(_,p,g){if(p&&p.length%2)return _;return(p||"")+g}),!s&&r.wrap)return n+o+n;return o};Hs.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Hs.version="3.0.0";wh.exports=Hs});var Us=d(function(rt){var gx=rt&&rt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bh=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});var _x=bh(nn()),mx=Pt(),yx=bh(Be()),vx=oe(),Sx=function(e){gx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=vx.CLASS,n._constructed=!0,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(r){if(this._constructed){var n=(0,_x.default)(r,{isIdentifier:!0});if(n!==r)(0,mx.ensureObject)(this,"raws"),this.raws.value=n;else if(this.raws)delete this.raws.value}this._value=r},enumerable:!1,configurable:!0}),t.prototype.valueToString=function(){return"."+e.prototype.valueToString.call(this)},t}(yx.default);rt.default=Sx});var $s=d(function(nt){var wx=nt&&nt.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bx=nt&&nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});var xx=bx(Be()),Ex=oe(),Ax=function(e){wx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Ex.COMMENT,n}return t}(xx.default);nt.default=Ax});var Gs=d(function(st){var Ox=st&&st.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cx=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});var Px=Cx(Be()),Tx=oe(),Rx=function(e){Ox(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Tx.ID,n}return t.prototype.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Px.default);st.default=Rx});var sn=d(function(it){var Lx=it&&it.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xh=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});var Ix=xh(nn()),Mx=Pt(),kx=xh(Be()),Nx=function(e){Lx(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"namespace",{get:function(){return this._namespace},set:function(r){if(r===!0||r==="*"||r==="&"){if(this._namespace=r,this.raws)delete this.raws.namespace;return}var n=(0,Ix.default)(r,{isIdentifier:!0});if(this._namespace=r,n!==r)(0,Mx.ensureObject)(this,"raws"),this.raws.namespace=n;else if(this.raws)delete this.raws.namespace},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ns",{get:function(){return this._namespace},set:function(r){this.namespace=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"namespaceString",{get:function(){if(this.namespace){var r=this.stringifyProperty("namespace");if(r===!0)return"";else return r}else return""},enumerable:!1,configurable:!0}),t.prototype.qualifiedName=function(r){if(this.namespace)return"".concat(this.namespaceString,"|").concat(r);else return r},t.prototype.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},t}(kx.default);it.default=Nx});var Ws=d(function(ot){var Dx=ot&&ot.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qx=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ot,"__esModule",{value:!0});var Fx=qx(sn()),jx=oe(),Bx=function(e){Dx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=jx.TAG,n}return t}(Fx.default);ot.default=Bx});var Vs=d(function(at){var Hx=at&&at.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+Eh(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ux=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});var $x=Ux(Be()),Gx=oe(),Eh=function(e){Hx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Gx.STRING,n}return t}($x.default);at.default=Eh});var Qs=d(function(ut){var Wx=ut&&ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vx=ut&&ut.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ut,"__esModule",{value:!0});var Qx=Vx(rn()),Yx=oe(),zx=function(e){Wx(t,e);function t(r){var n=e.call(this,r)||this;return n.type=Yx.PSEUDO,n}return t.prototype._stringify=function(r,n,s){var i=this;if(n>=s)throw Error("Cannot serialize selector: nesting depth exceeds the maximum of ".concat(s,"."));var o=this.length?"("+this.map(function(a){return i._stringifyChild(a,r,n+1,s)}).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),o,this.rawSpaceAfter].join("")},t}(Qx.default);ut.default=zx});var Oh=d(function(MT,Ah){Ah.exports=j("util").deprecate});var Js=d(function(Ye){var Kx=Ye&&Ye.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ks=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Ys;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.unescapeValue=Xs;var sr=Ks(nn()),Xx=Ks(Ns()),Jx=Ks(sn()),Zx=oe(),ir=Oh(),eE=/^('|")([^]*)\1$/,tE=ir(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),rE=ir(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),nE=ir(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Xs(e){var t=!1,r=null,n=e,s=n.match(eE);if(s)r=s[1],n=s[2];if(n=(0,Xx.default)(n),n!==e)t=!0;return{deprecatedUsage:t,unescaped:n,quoteMark:r}}function sE(e){if(e.quoteMark!==void 0)return e;if(e.value===void 0)return e;nE();var t=Xs(e.value),{quoteMark:r,unescaped:n}=t;if(!e.raws)e.raws={};if(e.raws.value===void 0)e.raws.value=e.value;return e.value=n,e.quoteMark=r,e}var iE=function(e){Kx(t,e);function t(r){if(r===void 0)r={};var n=e.call(this,sE(r))||this;return n.type=Zx.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:ir(function(){return n.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:ir(function(){return n.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),n._constructed=!0,n}return t.prototype.getQuotedValue=function(r){if(r===void 0)r={};var n=this._determineQuoteMark(r),s=zs[n],i=(0,sr.default)(this._value,s);return i},t.prototype._determineQuoteMark=function(r){return r.smart?this.smartQuoteMark(r):this.preferredQuoteMark(r)},t.prototype.setValue=function(r,n){if(n===void 0)n={};this._value=r,this._quoteMark=this._determineQuoteMark(n),this._syncRawValue()},t.prototype.smartQuoteMark=function(r){var n=this.value,s=n.replace(/[^']/g,"").length,i=n.replace(/[^"]/g,"").length;if(s+i===0){var o=(0,sr.default)(n,{isIdentifier:!0});if(o===n)return t.NO_QUOTE;else{var a=this.preferredQuoteMark(r);if(a===t.NO_QUOTE){var u=this.quoteMark||r.quoteMark||t.DOUBLE_QUOTE,l=zs[u],c=(0,sr.default)(n,l);if(c.length<o.length)return u}return a}}else if(i===s)return this.preferredQuoteMark(r);else if(i<s)return t.DOUBLE_QUOTE;else return t.SINGLE_QUOTE},t.prototype.preferredQuoteMark=function(r){var n=r.preferCurrentQuoteMark?this.quoteMark:r.quoteMark;if(n===void 0)n=r.preferCurrentQuoteMark?r.quoteMark:this.quoteMark;if(n===void 0)n=t.DOUBLE_QUOTE;return n},Object.defineProperty(t.prototype,"quoted",{get:function(){var r=this.quoteMark;return r==="'"||r==='"'},set:function(r){rE()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quoteMark",{get:function(){return this._quoteMark},set:function(r){if(!this._constructed){this._quoteMark=r;return}if(this._quoteMark!==r)this._quoteMark=r,this._syncRawValue()},enumerable:!1,configurable:!0}),t.prototype._syncRawValue=function(){var r=(0,sr.default)(this._value,zs[this.quoteMark]);if(r===this._value){if(this.raws)delete this.raws.value}else this.raws.value=r},Object.defineProperty(t.prototype,"qualifiedAttribute",{get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitiveFlag",{get:function(){return this.insensitive?"i":""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(r){if(this._constructed){var n=Xs(r),{deprecatedUsage:s,unescaped:i,quoteMark:o}=n;if(s)tE();if(i===this._value&&o===this._quoteMark)return;this._value=i,this._quoteMark=o,this._syncRawValue()}else this._value=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this._insensitive},set:function(r){if(!r){if(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i"))this.raws.insensitiveFlag=void 0}this._insensitive=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attribute",{get:function(){return this._attribute},set:function(r){this._handleEscapes("attribute",r),this._attribute=r},enumerable:!1,configurable:!0}),t.prototype._handleEscapes=function(r,n){if(this._constructed){var s=(0,sr.default)(n,{isIdentifier:!0});if(s!==n)this.raws[r]=s;else delete this.raws[r]}},t.prototype._spacesFor=function(r){var n={before:"",after:""},s=this.spaces[r]||{},i=this.raws.spaces&&this.raws.spaces[r]||{};return Object.assign(n,s,i)},t.prototype._stringFor=function(r,n,s){if(n===void 0)n=r;if(s===void 0)s=Ch;var i=this._spacesFor(n);return s(this.stringifyProperty(r),i)},t.prototype.offsetOf=function(r){var n=1,s=this._spacesFor("attribute");if(n+=s.before.length,r==="namespace"||r==="ns")return this.namespace?n:-1;if(r==="attributeNS")return n;if(n+=this.namespaceString.length,this.namespace)n+=1;if(r==="attribute")return n;n+=this.stringifyProperty("attribute").length,n+=s.after.length;var i=this._spacesFor("operator");n+=i.before.length;var o=this.stringifyProperty("operator");if(r==="operator")return o?n:-1;n+=o.length,n+=i.after.length;var a=this._spacesFor("value");n+=a.before.length;var u=this.stringifyProperty("value");if(r==="value")return u?n:-1;n+=u.length,n+=a.after.length;var l=this._spacesFor("insensitive");if(n+=l.before.length,r==="insensitive")return this.insensitive?n:-1;return-1},t.prototype.toString=function(){var r=this,n=[this.rawSpaceBefore,"["];if(n.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value===""))n.push(this._stringFor("operator")),n.push(this._stringFor("value")),n.push(this._stringFor("insensitiveFlag","insensitive",function(s,i){if(s.length>0&&!r.quoted&&i.before.length===0&&!(r.spaces.value&&r.spaces.value.after))i.before=" ";return Ch(s,i)}));return n.push("]"),n.push(this.rawSpaceAfter),n.join("")},t.NO_QUOTE=null,t.SINGLE_QUOTE="'",t.DOUBLE_QUOTE='"',t}(Jx.default);Ye.default=iE;var zs=(Ys={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Ys[null]={isIdentifier:!0},Ys);function Ch(e,t){return"".concat(t.before).concat(e).concat(t.after)}});var Zs=d(function(lt){var oE=lt&<.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),aE=lt&<.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lt,"__esModule",{value:!0});var uE=aE(sn()),lE=oe(),cE=function(e){oE(t,e);function t(r){var n=e.call(this,r)||this;return n.type=lE.UNIVERSAL,n.value="*",n}return t}(uE.default);lt.default=cE});var ei=d(function(ct){var fE=ct&&ct.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hE=ct&&ct.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ct,"__esModule",{value:!0});var pE=hE(Be()),dE=oe(),gE=function(e){fE(t,e);function t(r){var n=e.call(this,r)||this;return n.type=dE.COMBINATOR,n}return t}(pE.default);ct.default=gE});var ti=d(function(ft){var _E=ft&&ft.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i))n[i]=s[i]},e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),mE=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ft,"__esModule",{value:!0});var yE=mE(Be()),vE=oe(),SE=function(e){_E(t,e);function t(r){var n=e.call(this,r)||this;return n.type=vE.NESTING,n.value="&",n}return t}(yE.default);ft.default=SE});var Th=d(function(Ph){Object.defineProperty(Ph,"__esModule",{value:!0});Ph.default=wE;function wE(e){return e.sort(function(t,r){return t-r})}});var ri=d(function(Rh){Object.defineProperty(Rh,"__esModule",{value:!0});Rh.combinator=Rh.word=Rh.comment=Rh.str=Rh.tab=Rh.newline=Rh.feed=Rh.cr=Rh.backslash=Rh.bang=Rh.slash=Rh.doubleQuote=Rh.singleQuote=Rh.space=Rh.greaterThan=Rh.pipe=Rh.equals=Rh.plus=Rh.caret=Rh.tilde=Rh.dollar=Rh.closeSquare=Rh.openSquare=Rh.closeParenthesis=Rh.openParenthesis=Rh.semicolon=Rh.colon=Rh.comma=Rh.at=Rh.asterisk=Rh.ampersand=void 0;Rh.ampersand=38;Rh.asterisk=42;Rh.at=64;Rh.comma=44;Rh.colon=58;Rh.semicolon=59;Rh.openParenthesis=40;Rh.closeParenthesis=41;Rh.openSquare=91;Rh.closeSquare=93;Rh.dollar=36;Rh.tilde=126;Rh.caret=94;Rh.plus=43;Rh.equals=61;Rh.pipe=124;Rh.greaterThan=62;Rh.space=32;Rh.singleQuote=39;Rh.doubleQuote=34;Rh.slash=47;Rh.bang=33;Rh.backslash=92;Rh.cr=13;Rh.feed=12;Rh.newline=10;Rh.tab=9;Rh.str=Rh.singleQuote;Rh.comment=-1;Rh.word=-2;Rh.combinator=-3});var kh=d(function(Te){var JE=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),ZE=Te&&Te.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eA=Te&&Te.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")JE(r,t,n[s])}return ZE(r,t),r}}(),Tt,U;Object.defineProperty(Te,"__esModule",{value:!0});Te.FIELDS=void 0;Te.default=iA;var A=eA(ri()),tA=(Tt={},Tt[A.tab]=!0,Tt[A.newline]=!0,Tt[A.cr]=!0,Tt[A.feed]=!0,Tt),rA=(U={},U[A.space]=!0,U[A.tab]=!0,U[A.newline]=!0,U[A.cr]=!0,U[A.feed]=!0,U[A.ampersand]=!0,U[A.asterisk]=!0,U[A.bang]=!0,U[A.comma]=!0,U[A.colon]=!0,U[A.semicolon]=!0,U[A.openParenthesis]=!0,U[A.closeParenthesis]=!0,U[A.openSquare]=!0,U[A.closeSquare]=!0,U[A.singleQuote]=!0,U[A.doubleQuote]=!0,U[A.plus]=!0,U[A.pipe]=!0,U[A.tilde]=!0,U[A.greaterThan]=!0,U[A.equals]=!0,U[A.dollar]=!0,U[A.caret]=!0,U[A.slash]=!0,U),ni={},Mh="0123456789abcdefABCDEF";for(or=0;or<Mh.length;or++)ni[Mh.charCodeAt(or)]=!0;var or;function nA(e,t){var r=t,n;do if(n=e.charCodeAt(r),rA[n])return r-1;else if(n===A.backslash)r=sA(e,r)+1;else r++;while(r<e.length);return r-1}function sA(e,t){var r=t,n=e.charCodeAt(r+1);if(tA[n]);else if(ni[n]){var s=0;do r++,s++,n=e.charCodeAt(r+1);while(ni[n]&&s<6);if(s<6&&n===A.space)r++}else r++;return r}Te.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function iA(e){var t=[],r=e.css.valueOf(),n=r.length,s=-1,i=1,o=0,a=0,u,l,c,f,h,_,p,g,m,C,R,I,D;function q(T,M){if(e.safe)r+=M,m=r.length-1;else throw e.error("Unclosed "+T,i,o-s,o)}while(o<n){if(u=r.charCodeAt(o),u===A.newline)s=o,i+=1;switch(u){case A.space:case A.tab:case A.newline:case A.cr:case A.feed:m=o;do if(m+=1,u=r.charCodeAt(m),u===A.newline)s=m,i+=1;while(u===A.space||u===A.newline||u===A.tab||u===A.cr||u===A.feed);D=A.space,f=i,c=m-s-1,a=m;break;case A.plus:case A.greaterThan:case A.tilde:case A.pipe:m=o;do m+=1,u=r.charCodeAt(m);while(u===A.plus||u===A.greaterThan||u===A.tilde||u===A.pipe);D=A.combinator,f=i,c=o-s,a=m;break;case A.asterisk:case A.ampersand:case A.bang:case A.comma:case A.equals:case A.dollar:case A.caret:case A.openSquare:case A.closeSquare:case A.colon:case A.semicolon:case A.openParenthesis:case A.closeParenthesis:m=o,D=u,f=i,c=o-s,a=m+1;break;case A.singleQuote:case A.doubleQuote:I=u===A.singleQuote?"'":'"',m=o;do{if(h=!1,m=r.indexOf(I,m+1),m===-1)q("quote",I);_=m;while(r.charCodeAt(_-1)===A.backslash)_-=1,h=!h}while(h);D=A.str,f=i,c=o-s,a=m+1;break;default:if(u===A.slash&&r.charCodeAt(o+1)===A.asterisk){if(m=r.indexOf("*/",o+2)+1,m===0)q("comment","*/");if(l=r.slice(o,m+1),g=l.split(`
|
|
62
|
+
`),p=g.length-1,p>0)C=i+p,R=m-g[p].length;else C=i,R=s;D=A.comment,i=C,f=C,c=m-R}else if(u===A.slash)m=o,D=u,f=i,c=o-s,a=m+1;else m=nA(r,o),D=A.word,f=i,c=m-s;a=m+1;break}if(t.push([D,i,o-s,f,c,o,a]),R)s=R,R=null;o=a}return t}});var Hh=d(function(ae){var on=ae&&ae.__assign||function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e},on.apply(this,arguments)},oA=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),aA=ae&&ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),an=ae&&ae.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")oA(r,t,n[s])}return aA(r,t),r}}(),Nh=ae&&ae.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],o;try{while((t===void 0||t-- >0)&&!(s=n.next()).done)i.push(s.value)}catch(a){o={error:a}}finally{try{if(s&&!s.done&&(r=n.return))r.call(n)}finally{if(o)throw o.error}}return i},Dh=ae&&ae.__spreadArray||function(e,t,r){if(r||arguments.length===2){for(var n=0,s=t.length,i;n<s;n++)if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))},Se=ae&&ae.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ht,si;Object.defineProperty(ae,"__esModule",{value:!0});var uA=Se(js()),ii=Se(Bs()),lA=Se(Us()),qh=Se($s()),cA=Se(Gs()),fA=Se(Ws()),oi=Se(Vs()),hA=Se(Qs()),Fh=an(Js()),pA=Se(Zs()),ai=Se(ei()),dA=Se(ti()),gA=Se(Th()),w=an(kh()),O=an(ri()),_A=an(oe()),X=Pt(),ci=(ht={},ht[O.space]=!0,ht[O.cr]=!0,ht[O.feed]=!0,ht[O.newline]=!0,ht[O.tab]=!0,ht),mA=on(on({},ci),(si={},si[O.comment]=!0,si));function jh(e){return{line:e[w.FIELDS.START_LINE],column:e[w.FIELDS.START_COL]}}function Bh(e){return{line:e[w.FIELDS.END_LINE],column:e[w.FIELDS.END_COL]}}function pt(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Rt(e){return pt(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],e[w.FIELDS.END_LINE],e[w.FIELDS.END_COL])}function ui(e,t){if(!e)return;return pt(e[w.FIELDS.START_LINE],e[w.FIELDS.START_COL],t[w.FIELDS.END_LINE],t[w.FIELDS.END_COL])}function Lt(e,t){var r=e[t];if(typeof r!=="string")return;if(r.indexOf("\\")!==-1){if((0,X.ensureObject)(e,"raws"),e[t]=(0,X.unesc)(r),e.raws[t]===void 0)e.raws[t]=r}return e}function li(e,t){var r=-1,n=[];while((r=e.indexOf(t,r+1))!==-1)n.push(r);return n}function yA(){return Array.from(new Set(Array.prototype.concat.apply([],arguments)))}var vA=function(){function e(t,r){if(r===void 0)r={};this.rule=t,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.nestingDepth=0,this.maxNestingDepth=(0,X.resolveMaxNestingDepth)(this.options.maxNestingDepth),this.css=typeof this.rule==="string"?this.rule:this.rule.selector,this.tokens=(0,w.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=ui(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new uA.default({source:n}),this.root.errorGenerator=this._errorGenerator();var s=new ii.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s),this.current=s,this.loop()}return e.prototype._errorGenerator=function(){var t=this;return function(r,n){if(typeof t.rule==="string")return Error(r);return t.rule.error(r,n)}},e.prototype.attribute=function(){var t=[],r=this.currToken;this.position++;while(this.position<this.tokens.length&&this.currToken[w.FIELDS.TYPE]!==O.closeSquare)t.push(this.currToken),this.position++;if(!this.currToken)return this.expected("closing square bracket",r[w.FIELDS.START_POS]);if(this.currToken[w.FIELDS.TYPE]!==O.closeSquare)return this.expected("closing square bracket",this.currToken[w.FIELDS.START_POS]);var n=t.length,s={source:pt(r[1],r[2],this.currToken[3],this.currToken[4]),sourceIndex:r[w.FIELDS.START_POS]};if(n===1&&!~[O.word].indexOf(t[0][w.FIELDS.TYPE]))return this.expected("attribute",t[0][w.FIELDS.START_POS]);var i=0,o="",a="",u=null,l=!1;while(i<n){var c=t[i],f=this.content(c),h=t[i+1];switch(c[w.FIELDS.TYPE]){case O.space:if(l=!0,this.options.lossy)break;if(u){(0,X.ensureObject)(s,"spaces",u);var _=s.spaces[u].after||"";s.spaces[u].after=_+f;var p=(0,X.getProp)(s,"raws","spaces",u,"after")||null;if(p)s.raws.spaces[u].after=p+f}else o=o+f,a=a+f;break;case O.asterisk:if(h[w.FIELDS.TYPE]===O.equals)s.operator=f,u="operator";else if((!s.namespace||u==="namespace"&&!l)&&h){if(o)(0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=a,a="";s.namespace=(s.namespace||"")+f;var g=(0,X.getProp)(s,"raws","namespace")||null;if(g)s.raws.namespace+=f;u="namespace"}l=!1;break;case O.dollar:if(u==="value"){var m=(0,X.getProp)(s,"raws","value");if(s.value+="$",m)s.raws.value=m+"$";break}case O.caret:if(h[w.FIELDS.TYPE]===O.equals)s.operator=f,u="operator";l=!1;break;case O.combinator:if(f==="~"&&h[w.FIELDS.TYPE]===O.equals)s.operator=f,u="operator";if(f!=="|"){l=!1;break}if(h[w.FIELDS.TYPE]===O.equals)s.operator=f,u="operator";else if(!s.namespace&&!s.attribute)s.namespace=!0;l=!1;break;case O.word:if(h&&this.content(h)==="|"&&t[i+2]&&t[i+2][w.FIELDS.TYPE]!==O.equals&&!s.operator&&!s.namespace)s.namespace=f,u="namespace";else if(!s.attribute||u==="attribute"&&!l){if(o)(0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=a,a="";s.attribute=(s.attribute||"")+f;var g=(0,X.getProp)(s,"raws","attribute")||null;if(g)s.raws.attribute+=f;u="attribute"}else if(!s.value&&s.value!==""||u==="value"&&!(l||s.quoteMark)){var C=(0,X.unesc)(f),m=(0,X.getProp)(s,"raws","value")||"",R=s.value||"";if(s.value=R+C,s.quoteMark=null,C!==f||m)(0,X.ensureObject)(s,"raws"),s.raws.value=(m||R)+f;u="value"}else{var I=f==="i"||f==="I";if((s.value||s.value==="")&&(s.quoteMark||l)){if(s.insensitive=I,!I||f==="I")(0,X.ensureObject)(s,"raws"),s.raws.insensitiveFlag=f;if(u="insensitive",o)(0,X.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=o,o="";if(a)(0,X.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=a,a=""}else if(s.value||s.value===""){if(u="value",s.value+=f,s.raws.value)s.raws.value+=f}}l=!1;break;case O.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:c[w.FIELDS.START_POS]});var D=(0,Fh.unescapeValue)(f),{unescaped:q,quoteMark:T}=D;s.value=q,s.quoteMark=T,u="value",(0,X.ensureObject)(s,"raws"),s.raws.value=f,l=!1;break;case O.equals:if(!s.attribute)return this.expected("attribute",c[w.FIELDS.START_POS],f);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:c[w.FIELDS.START_POS]});s.operator=s.operator?s.operator+f:f,u="operator",l=!1;break;case O.comment:if(u)if(l||h&&h[w.FIELDS.TYPE]===O.space||u==="insensitive"){var M=(0,X.getProp)(s,"spaces",u,"after")||"",x=(0,X.getProp)(s,"raws","spaces",u,"after")||M;(0,X.ensureObject)(s,"raws","spaces",u),s.raws.spaces[u].after=x+f}else{var L=s[u]||"",V=(0,X.getProp)(s,"raws",u)||L;(0,X.ensureObject)(s,"raws"),s.raws[u]=V+f}else a=a+f;break;default:return this.error('Unexpected "'.concat(f,'" found.'),{index:c[w.FIELDS.START_POS]})}i++}Lt(s,"attribute"),Lt(s,"namespace"),this.newNode(new Fh.default(s)),this.position++},e.prototype.parseWhitespaceEquivalentTokens=function(t){if(t<0)t=this.tokens.length;var r=this.position,n=[],s="",i=void 0;do if(ci[this.currToken[w.FIELDS.TYPE]]){if(!this.options.lossy)s+=this.content()}else if(this.currToken[w.FIELDS.TYPE]===O.comment){var o={};if(s)o.before=s,s="";i=new qh.default({value:this.content(),source:Rt(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS],spaces:o}),n.push(i)}while(++this.position<t);if(s){if(i)i.spaces.after=s;else if(!this.options.lossy){var a=this.tokens[r],u=this.tokens[this.position-1];n.push(new oi.default({value:"",source:pt(a[w.FIELDS.START_LINE],a[w.FIELDS.START_COL],u[w.FIELDS.END_LINE],u[w.FIELDS.END_COL]),sourceIndex:a[w.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return n},e.prototype.convertWhitespaceNodesToSpace=function(t,r){var n=this;if(r===void 0)r=!1;var s="",i="";if(t.forEach(function(a){var u=n.lossySpace(a.spaces.before,r),l=n.lossySpace(a.rawSpaceBefore,r);s+=u+n.lossySpace(a.spaces.after,r&&u.length===0),i+=u+a.value+n.lossySpace(a.rawSpaceAfter,r&&l.length===0)}),i===s)i=void 0;var o={space:s,rawSpace:i};return o},e.prototype.isNamedCombinator=function(t){if(t===void 0)t=this.position;return this.tokens[t+0]&&this.tokens[t+0][w.FIELDS.TYPE]===O.slash&&this.tokens[t+1]&&this.tokens[t+1][w.FIELDS.TYPE]===O.word&&this.tokens[t+2]&&this.tokens[t+2][w.FIELDS.TYPE]===O.slash},e.prototype.namedCombinator=function(){if(this.isNamedCombinator()){var t=this.content(this.tokens[this.position+1]),r=(0,X.unesc)(t).toLowerCase(),n={};if(r!==t)n.value="/".concat(t,"/");var s=new ai.default({value:"/".concat(r,"/"),source:pt(this.currToken[w.FIELDS.START_LINE],this.currToken[w.FIELDS.START_COL],this.tokens[this.position+2][w.FIELDS.END_LINE],this.tokens[this.position+2][w.FIELDS.END_COL]),sourceIndex:this.currToken[w.FIELDS.START_POS],raws:n});return this.position=this.position+3,s}else this.unexpected()},e.prototype.combinator=function(){var t=this;if(this.content()==="|")return this.namespace();var r=this.locateNextMeaningfulToken(this.position);if(r<0||this.tokens[r][w.FIELDS.TYPE]===O.comma||this.tokens[r][w.FIELDS.TYPE]===O.closeParenthesis){var n=this.parseWhitespaceEquivalentTokens(r);if(n.length>0){var s=this.current.last;if(s){var i=this.convertWhitespaceNodesToSpace(n),{space:o,rawSpace:a}=i;if(a!==void 0)s.rawSpaceAfter+=a;s.spaces.after+=o}else n.forEach(function(g){return t.newNode(g)})}return}var u=this.currToken,l=void 0;if(r>this.position)l=this.parseWhitespaceEquivalentTokens(r);var c;if(this.isNamedCombinator())c=this.namedCombinator();else if(this.currToken[w.FIELDS.TYPE]===O.combinator)c=new ai.default({value:this.content(),source:Rt(this.currToken),sourceIndex:this.currToken[w.FIELDS.START_POS]}),this.position++;else if(ci[this.currToken[w.FIELDS.TYPE]]);else if(!l)this.unexpected();if(c){if(l){var f=this.convertWhitespaceNodesToSpace(l),{space:o,rawSpace:a}=f;c.spaces.before=o,c.rawSpaceBefore=a}}else{var h=this.convertWhitespaceNodesToSpace(l,!0),{space:o,rawSpace:a}=h;if(!a)a=o;var _={},p={spaces:{}};if(o.endsWith(" ")&&a.endsWith(" "))_.before=o.slice(0,o.length-1),p.spaces.before=a.slice(0,a.length-1);else if(o[0]===" "&&a[0]===" ")_.after=o.slice(1),p.spaces.after=a.slice(1);else p.value=a;c=new ai.default({value:" ",source:ui(u,this.tokens[this.position-1]),sourceIndex:u[w.FIELDS.START_POS],spaces:_,raws:p})}if(this.currToken&&this.currToken[w.FIELDS.TYPE]===O.space)c.spaces.after=this.optionalSpace(this.content()),this.position++;return this.newNode(c)},e.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var t=new ii.default({source:{start:jh(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][w.FIELDS.START_POS]});this.current.parent.append(t),this.current=t,this.position++},e.prototype.comment=function(){var t=this.currToken;this.newNode(new qh.default({value:this.content(),source:Rt(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},e.prototype.error=function(t,r){throw this.root.error(t,r)},e.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[w.FIELDS.START_POS]})},e.prototype.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[w.FIELDS.START_POS])},e.prototype.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[w.FIELDS.START_POS])},e.prototype.unexpected=function(){return this.error("Unexpected '".concat(this.content(),"'. Escaping special characters with \\ may help."),this.currToken[w.FIELDS.START_POS])},e.prototype.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[w.FIELDS.START_POS])},e.prototype.namespace=function(){var t=this.prevToken,r=t&&(t[w.FIELDS.TYPE]===O.word||t[w.FIELDS.TYPE]===O.asterisk||t[w.FIELDS.TYPE]===O.ampersand)?this.content(t):!0;if(!this.nextToken)return this.unexpectedPipe();if(this.nextToken[w.FIELDS.TYPE]===O.word)return this.position++,this.word(r);else if(this.nextToken[w.FIELDS.TYPE]===O.asterisk)return this.position++,this.universal(r);this.unexpectedPipe()},e.prototype.nesting=function(){if(this.nextToken){var t=this.content(this.nextToken);if(t==="|"){this.position++;return}}var r=this.currToken;this.newNode(new dA.default({value:this.content(),source:Rt(r),sourceIndex:r[w.FIELDS.START_POS]})),this.position++},e.prototype.parentheses=function(){var t=this.current.last,r=1,n=this.currToken;if(this.position++,t&&t.type===_A.PSEUDO){var s=new ii.default({source:{start:jh(this.tokens[this.position])},sourceIndex:this.tokens[this.position][w.FIELDS.START_POS]}),i=this.current;t.append(s),this.current=s,this.nestingDepth++;try{if(this.nestingDepth>this.maxNestingDepth)this.error("Cannot parse selector: nesting depth exceeds the maximum of ".concat(this.maxNestingDepth,"."),{index:this.currToken[w.FIELDS.START_POS]});while(this.position<this.tokens.length&&r){if(this.currToken[w.FIELDS.TYPE]===O.openParenthesis)r++;if(this.currToken[w.FIELDS.TYPE]===O.closeParenthesis)r--;if(r)this.parse();else this.current.source.end=Bh(this.currToken),this.current.parent.source.end=Bh(this.currToken),this.position++}}finally{this.nestingDepth--}this.current=i}else{var o=this.currToken,a="(",u=void 0;while(this.position<this.tokens.length&&r){if(this.currToken[w.FIELDS.TYPE]===O.openParenthesis)r++;if(this.currToken[w.FIELDS.TYPE]===O.closeParenthesis)r--;u=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++}if(t)t.appendToPropertyAndEscape("value",a,a);else this.newNode(new oi.default({value:a,source:pt(o[w.FIELDS.START_LINE],o[w.FIELDS.START_COL],u[w.FIELDS.END_LINE],u[w.FIELDS.END_COL]),sourceIndex:o[w.FIELDS.START_POS]}))}if(r)return this.expected("closing parenthesis",(this.currToken||n)[w.FIELDS.START_POS])},e.prototype.pseudo=function(){var t=this,r="",n=this.currToken;while(this.currToken&&this.currToken[w.FIELDS.TYPE]===O.colon)r+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[w.FIELDS.TYPE]===O.word)this.splitWord(!1,function(s,i){if(r+=s,t.newNode(new hA.default({value:r,source:ui(n,t.currToken),sourceIndex:n[w.FIELDS.START_POS]})),i>1&&t.nextToken&&t.nextToken[w.FIELDS.TYPE]===O.openParenthesis)t.error("Misplaced parenthesis.",{index:t.nextToken[w.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[w.FIELDS.START_POS])},e.prototype.space=function(){var t=this.content();if(this.position===0||this.prevToken[w.FIELDS.TYPE]===O.comma||this.prevToken[w.FIELDS.TYPE]===O.openParenthesis||this.current.nodes.every(function(r){return r.type==="comment"}))this.spaces=this.optionalSpace(t),this.position++;else if(this.position===this.tokens.length-1||this.nextToken[w.FIELDS.TYPE]===O.comma||this.nextToken[w.FIELDS.TYPE]===O.closeParenthesis)this.current.last.spaces.after=this.optionalSpace(t),this.position++;else this.combinator()},e.prototype.string=function(){var t=this.currToken;this.newNode(new oi.default({value:this.content(),source:Rt(t),sourceIndex:t[w.FIELDS.START_POS]})),this.position++},e.prototype.universal=function(t){var r=this.nextToken;if(r&&this.content(r)==="|")return this.position++,this.namespace();var n=this.currToken;this.newNode(new pA.default({value:this.content(),source:Rt(n),sourceIndex:n[w.FIELDS.START_POS]}),t),this.position++},e.prototype.splitWord=function(t,r){var n=this,s=this.nextToken,i=this.content();while(s&&~[O.dollar,O.caret,O.equals,O.word].indexOf(s[w.FIELDS.TYPE])){this.position++;var o=this.content();if(i+=o,o.lastIndexOf("\\")===o.length-1){var a=this.nextToken;if(a&&a[w.FIELDS.TYPE]===O.space)i+=this.requiredSpace(this.content(a)),this.position++}s=this.nextToken}var u=li(i,".").filter(function(g){var m=i[g-1]==="\\",C=/^\d+\.\d+%$/.test(i);return!m&&!C}),l=li(i,"#").filter(function(g){return i[g-1]!=="\\"}),c=li(i,"#{");if(c.length){var f=new Set(c);l=l.filter(function(g){return!f.has(g)})}var h=new Set(u),_=new Set(l),p=(0,gA.default)(yA(Dh(Dh([0],Nh(u),!1),Nh(l),!1)));p.forEach(function(g,m){var C=p[m+1]||i.length,R=i.slice(g,C);if(m===0&&r)return r.call(n,R,p.length);var I,D=n.currToken,q=D[w.FIELDS.START_POS]+p[m],T=pt(D[1],D[2]+g,D[3],D[2]+(C-1));if(h.has(g)){var M={value:R.slice(1),source:T,sourceIndex:q};I=new lA.default(Lt(M,"value"))}else if(_.has(g)){var x={value:R.slice(1),source:T,sourceIndex:q};I=new cA.default(Lt(x,"value"))}else{var L={value:R,source:T,sourceIndex:q};Lt(L,"value"),I=new fA.default(L)}n.newNode(I,t),t=null}),this.position++},e.prototype.word=function(t){var r=this.nextToken;if(r&&this.content(r)==="|")return this.position++,this.namespace();return this.splitWord(t)},e.prototype.loop=function(){while(this.position<this.tokens.length)this.parse(!0);return this.current._inferEndPosition(),this.root},e.prototype.parse=function(t){switch(this.currToken[w.FIELDS.TYPE]){case O.space:this.space();break;case O.comment:this.comment();break;case O.openParenthesis:this.parentheses();break;case O.closeParenthesis:if(t)this.missingParenthesis();break;case O.openSquare:this.attribute();break;case O.dollar:case O.caret:case O.equals:case O.word:this.word();break;case O.colon:this.pseudo();break;case O.comma:this.comma();break;case O.asterisk:this.universal();break;case O.ampersand:this.nesting();break;case O.slash:case O.combinator:this.combinator();break;case O.str:this.string();break;case O.closeSquare:this.missingSquareBracket();case O.semicolon:this.missingBackslash();default:this.unexpected()}},e.prototype.expected=function(t,r,n){if(Array.isArray(t)){var s=t.pop();t="".concat(t.join(", ")," or ").concat(s)}var i=/^[aeiou]/.test(t[0])?"an":"a";if(!n)return this.error("Expected ".concat(i," ").concat(t,"."),{index:r});return this.error("Expected ".concat(i," ").concat(t,', found "').concat(n,'" instead.'),{index:r})},e.prototype.requiredSpace=function(t){return this.options.lossy?" ":t},e.prototype.optionalSpace=function(t){return this.options.lossy?"":t},e.prototype.lossySpace=function(t,r){if(this.options.lossy)return r?" ":"";else return t},e.prototype.parseParenthesisToken=function(t){var r=this.content(t);if(t[w.FIELDS.TYPE]===O.space)return this.requiredSpace(r);else return r},e.prototype.newNode=function(t,r){if(r){if(/^ +$/.test(r)){if(!this.options.lossy)this.spaces=(this.spaces||"")+r;r=!0}t.namespace=r,Lt(t,"namespace")}if(this.spaces)t.spaces.before=this.spaces,this.spaces="";return this.current.append(t)},e.prototype.content=function(t){if(t===void 0)t=this.currToken;return this.css.slice(t[w.FIELDS.START_POS],t[w.FIELDS.END_POS])},Object.defineProperty(e.prototype,"currToken",{get:function(){return this.tokens[this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextToken",{get:function(){return this.tokens[this.position+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevToken",{get:function(){return this.tokens[this.position-1]},enumerable:!1,configurable:!0}),e.prototype.locateNextMeaningfulToken=function(t){if(t===void 0)t=this.position+1;var r=t;while(r<this.tokens.length)if(mA[this.tokens[r][w.FIELDS.TYPE]]){r++;continue}else return r;return-1},e}();ae.default=vA});var Uh=d(function(ar){var SA=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ar,"__esModule",{value:!0});var wA=SA(Hh()),bA=function(){function e(t,r){this.func=t||function(){},this.funcRes=null,this.options=r}return e.prototype._shouldUpdateSelector=function(t,r){if(r===void 0)r={};var n=Object.assign({},this.options,r);if(n.updateSelector===!1)return!1;else return typeof t!=="string"},e.prototype._isLossy=function(t){if(t===void 0)t={};var r=Object.assign({},this.options,t);if(r.lossless===!1)return!0;else return!1},e.prototype._root=function(t,r){if(r===void 0)r={};var n=new wA.default(t,this._parseOptions(r));return n.root},e.prototype._parseOptions=function(t){var r=Object.assign({},this.options,t);return{lossy:this._isLossy(r),maxNestingDepth:r.maxNestingDepth}},e.prototype._stringifyOptions=function(t){var r=Object.assign({},this.options,t);return{maxNestingDepth:r.maxNestingDepth}},e.prototype._run=function(t,r){var n=this;if(r===void 0)r={};return new Promise(function(s,i){try{var o=n._root(t,r);Promise.resolve(n.func(o)).then(function(a){var u=void 0;if(n._shouldUpdateSelector(t,r))u=o.toString(n._stringifyOptions(r)),t.selector=u;return{transform:a,root:o,string:u}}).then(s,i)}catch(a){i(a);return}})},e.prototype._runSync=function(t,r){if(r===void 0)r={};var n=this._root(t,r),s=this.func(n);if(s&&typeof s.then==="function")throw Error("Selector processor returned a promise to a synchronous call.");var i=void 0;if(r.updateSelector&&typeof t!=="string")i=n.toString(this._stringifyOptions(r)),t.selector=i;return{transform:s,root:n,string:i}},e.prototype.ast=function(t,r){return this._run(t,r).then(function(n){return n.root})},e.prototype.astSync=function(t,r){return this._runSync(t,r).root},e.prototype.transform=function(t,r){return this._run(t,r).then(function(n){return n.transform})},e.prototype.transformSync=function(t,r){return this._runSync(t,r).transform},e.prototype.process=function(t,r){var n=this;return this._run(t,r).then(function(s){return s.string||s.root.toString(n._stringifyOptions(r))})},e.prototype.processSync=function(t,r){var n=this._runSync(t,r);return n.string||n.root.toString(this._stringifyOptions(r))},e}();ar.default=bA});var $h=d(function(H){var we=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H,"__esModule",{value:!0});H.universal=H.tag=H.string=H.selector=H.root=H.pseudo=H.nesting=H.id=H.comment=H.combinator=H.className=H.attribute=void 0;var xA=we(Js()),EA=we(Us()),AA=we(ei()),OA=we($s()),CA=we(Gs()),PA=we(ti()),TA=we(Qs()),RA=we(js()),LA=we(Bs()),IA=we(Vs()),MA=we(Ws()),kA=we(Zs()),NA=function(e){return new xA.default(e)};H.attribute=NA;var DA=function(e){return new EA.default(e)};H.className=DA;var qA=function(e){return new AA.default(e)};H.combinator=qA;var FA=function(e){return new OA.default(e)};H.comment=FA;var jA=function(e){return new CA.default(e)};H.id=jA;var BA=function(e){return new PA.default(e)};H.nesting=BA;var HA=function(e){return new TA.default(e)};H.pseudo=HA;var UA=function(e){return new RA.default(e)};H.root=UA;var $A=function(e){return new LA.default(e)};H.selector=$A;var GA=function(e){return new IA.default(e)};H.string=GA;var WA=function(e){return new MA.default(e)};H.tag=WA;var VA=function(e){return new kA.default(e)};H.universal=VA});var zh=d(function(Wh){var pe;Object.defineProperty(Wh,"__esModule",{value:!0});Wh.isUniversal=Wh.isTag=Wh.isString=Wh.isSelector=Wh.isRoot=Wh.isPseudo=Wh.isNesting=Wh.isIdentifier=Wh.isComment=Wh.isCombinator=Wh.isClassName=Wh.isAttribute=void 0;Wh.isNode=fi;Wh.isPseudoElement=Gh;Wh.isPseudoClass=YA;Wh.isContainer=zA;Wh.isNamespace=KA;var ee=oe(),QA=(pe={},pe[ee.ATTRIBUTE]=!0,pe[ee.CLASS]=!0,pe[ee.COMBINATOR]=!0,pe[ee.COMMENT]=!0,pe[ee.ID]=!0,pe[ee.NESTING]=!0,pe[ee.PSEUDO]=!0,pe[ee.ROOT]=!0,pe[ee.SELECTOR]=!0,pe[ee.STRING]=!0,pe[ee.TAG]=!0,pe[ee.UNIVERSAL]=!0,pe);function fi(e){return typeof e==="object"&&QA[e.type]}function be(e,t){return fi(t)&&t.type===e}Wh.isAttribute=be.bind(null,ee.ATTRIBUTE);Wh.isClassName=be.bind(null,ee.CLASS);Wh.isCombinator=be.bind(null,ee.COMBINATOR);Wh.isComment=be.bind(null,ee.COMMENT);Wh.isIdentifier=be.bind(null,ee.ID);Wh.isNesting=be.bind(null,ee.NESTING);Wh.isPseudo=be.bind(null,ee.PSEUDO);Wh.isRoot=be.bind(null,ee.ROOT);Wh.isSelector=be.bind(null,ee.SELECTOR);Wh.isString=be.bind(null,ee.STRING);Wh.isTag=be.bind(null,ee.TAG);Wh.isUniversal=be.bind(null,ee.UNIVERSAL);function Gh(e){return Wh.isPseudo(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function YA(e){return Wh.isPseudo(e)&&!Gh(e)}function zA(e){return!!(fi(e)&&e.walk)}function KA(e){return Wh.isAttribute(e)||Wh.isTag(e)}});var Kh=d(function(Ue){var cO=Ue&&Ue.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),pi=Ue&&Ue.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))cO(t,e,r)};Object.defineProperty(Ue,"__esModule",{value:!0});pi(oe(),Ue);pi($h(),Ue);pi(zh(),Ue)});var Jh=d(function($e,Xh){var fO=$e&&$e.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable))s={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),hO=$e&&$e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),pO=$e&&$e.__importStar||function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null){for(var n=e(t),s=0;s<n.length;s++)if(n[s]!=="default")fO(r,t,n[s])}return hO(r,t),r}}(),dO=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gO=dO(Uh()),_O=pO(Kh()),di=function(e){return new gO.default(e)};Object.assign(di,_O);delete di.__esModule;Xh.exports=di});import*as up from"path";var mi=ln(tc());import*as Mt from"fs";import*as np from"path";var W=ln(rh(),1),ih=W.default,VP=W.default.stringify,QP=W.default.fromJSON,YP=W.default.plugin,nh=W.default.parse,zP=W.default.list,KP=W.default.document,XP=W.default.comment,JP=W.default.atRule,ZP=W.default.rule,eT=W.default.decl,sh=W.default.root,tT=W.default.CssSyntaxError,rT=W.default.Declaration,nT=W.default.Container,sT=W.default.Processor,iT=W.default.Document,oT=W.default.Comment,aT=W.default.Warning,uT=W.default.AtRule,lT=W.default.Result,cT=W.default.Input,fT=W.default.Rule,hT=W.default.Root,pT=W.default.Node;var sp=ln(Jh());import{promisify as Zh}from"util";var mO="purgecss ignore current",yO="purgecss ignore",vO="purgecss start ignore",SO="purgecss end ignore",wO="purgecss.config.js",bO="Error loading the config file";function me(e,t){if(t)t.forEach(e.add,e)}class It{constructor(e){this.undetermined=new Set,this.attrNames=new Set,this.attrValues=new Set,this.classes=new Set,this.ids=new Set,this.tags=new Set,this.merge(e)}merge(e){if(Array.isArray(e))me(this.undetermined,e);else if(e instanceof It)me(this.undetermined,e.undetermined),me(this.attrNames,e.attrNames),me(this.attrValues,e.attrValues),me(this.classes,e.classes),me(this.ids,e.ids),me(this.tags,e.tags);else{if(me(this.undetermined,e.undetermined),e.attributes)me(this.attrNames,e.attributes.names),me(this.attrValues,e.attributes.values);me(this.classes,e.classes),me(this.ids,e.ids),me(this.tags,e.tags)}return this}hasAttrName(e){return this.attrNames.has(e)||this.undetermined.has(e)}someAttrValue(e){for(let t of this.attrValues)if(e(t))return!0;for(let t of this.undetermined)if(e(t))return!0;return!1}hasAttrPrefix(e){return this.someAttrValue((t)=>t.startsWith(e))}hasAttrSuffix(e){return this.someAttrValue((t)=>t.endsWith(e))}hasAttrSubstr(e){return e.trim().split(" ").every((r)=>this.someAttrValue((n)=>n.includes(r)))}hasAttrValue(e){return this.attrValues.has(e)||this.undetermined.has(e)}hasClass(e){return this.classes.has(e)||this.undetermined.has(e)}hasId(e){return this.ids.has(e)||this.undetermined.has(e)}hasTag(e){return this.tags.has(e)||this.undetermined.has(e)}}var ep=["*",":root",":after",":before"],dt={css:[],content:[],defaultExtractor:(e)=>e.match(/[A-Za-z0-9_-]+/g)||[],extractors:[],fontFace:!1,keyframes:!1,rejected:!1,rejectedCss:!1,sourceMap:!1,stdin:!1,stdout:!1,variables:!1,safelist:{standard:[],deep:[],greedy:[],variables:[],keyframes:[]},blocklist:[],skippedContentGlobs:[],dynamicAttributes:[]};class yi{constructor(e){this.nodes=[],this.isUsed=!1,this.value=e}}class ip{constructor(){this.nodes=new Map,this.usedVariables=new Set,this.safelist=[]}addVariable(e){let{prop:t}=e;if(!this.nodes.has(t)){let r=new yi(e);this.nodes.set(t,[r])}else{let r=new yi(e),n=this.nodes.get(t)||[];this.nodes.set(t,[...n,r])}}addVariableUsage(e,t){let{prop:r}=e,n=this.nodes.get(r);for(let s of t){let i=s[1];if(this.nodes.has(i)){let o=this.nodes.get(i);n===null||n===void 0||n.forEach((a)=>{o===null||o===void 0||o.forEach((u)=>a.nodes.push(u))})}}}addVariableUsageInProperties(e){for(let t of e){let r=t[1];this.usedVariables.add(r)}}setAsUsed(e){let t=this.nodes.get(e);if(t){let r=[...t];while(r.length!==0){let n=r.pop();if(n&&!n.isUsed)n.isUsed=!0,r.push(...n.nodes)}}}removeUnused(){for(let e of this.usedVariables){let t=this.nodes.get(e);if(t)for(let r of t){let n=r.value.value.matchAll(/var\((.+?)[,)]/g);for(let s of n)if(!this.usedVariables.has(s[1]))this.usedVariables.add(s[1])}}for(let e of this.usedVariables)this.setAsUsed(e);for(let[e,t]of this.nodes)for(let r of t)if(!r.isUsed&&!this.isVariablesSafelisted(e))r.value.remove()}isVariablesSafelisted(e){return this.safelist.some((t)=>typeof t==="string"?t===e:t.test(e))}}var gi={access:Zh(Mt.access),readFile:Zh(Mt.readFile)};function un(e=[]){if(Array.isArray(e))return{...dt.safelist,standard:e};return{...dt.safelist,...e}}async function xO(e=wO){let t;try{let n=await import(np.resolve(process.cwd(),e));t=n.default&&typeof n.default==="object"?n.default:n}catch(r){if(r instanceof Error)throw Error(`${bO} ${r.message}`);throw Error()}return{...dt,...t,safelist:un(t.safelist)}}async function tp(e,t){return new It(await t(e))}function _i(e,t){switch(t){case"next":return e.text.includes(yO);case"start":return e.text.includes(vO);case"end":return e.text.includes(SO)}}function EO(e){if(ap(e)&&!e.selector||(e===null||e===void 0?void 0:e.nodes)&&!e.nodes.length||op(e)&&(!e.nodes&&!e.params||!e.params&&e.nodes&&!e.nodes.length))return!0;return!1}function AO(e){let t=!1;return e.walkComments((r)=>{if(r&&r.type==="comment"&&r.text.includes(mO))t=!0,r.remove()}),t}function vi(...e){let t=new It([]);return e.forEach(t.merge,t),t}function rp(e){return e.replace(/(^["'])|(["']$)/g,"")}function OO(e,t){if(!t.hasAttrName(e.attribute))return!1;if(typeof e.value>"u")return!0;switch(e.operator){case"$=":return t.hasAttrSuffix(e.value);case"~=":case"*=":return t.hasAttrSubstr(e.value);case"=":return t.hasAttrValue(e.value);case"|=":case"^=":return t.hasAttrPrefix(e.value);default:return!0}}function CO(e,t){return t.hasClass(e.value)}function PO(e,t){return t.hasId(e.value)}function TO(e,t){return t.hasTag(e.value)}function RO(e){return e.parent&&e.parent.type==="pseudo"&&e.parent.value.startsWith(":")||!1}function LO(e){return e.parent&&e.parent.type==="pseudo"&&(e.parent.value===":where"||e.parent.value===":is")||!1}function IO(e){var t;let r=!1;if(e.type==="selector"&&((t=e.parent)===null||t===void 0?void 0:t.type)==="root"&&e.nodes.length===1)e.walk((n)=>{if(n.type==="pseudo"&&(n.value===":where"||n.value===":is"||n.value===":has"||n.value===":not"))r=!0});return r}function op(e){return(e===null||e===void 0?void 0:e.type)==="atrule"}function ap(e){return(e===null||e===void 0?void 0:e.type)==="rule"}function MO(e){return(e===null||e===void 0?void 0:e.type)==="comment"}class Si{constructor(){this.ignore=!1,this.atRules={fontFace:[],keyframes:[]},this.usedAnimations=new Set,this.usedFontFaces=new Set,this.selectorsRemoved=new Set,this.removedNodes=[],this.variablesStructure=new ip,this.options=dt}collectDeclarationsData(e){let{prop:t,value:r}=e;if(this.options.variables){let n=r.matchAll(/var\((.+?)[,)]/g);if(t.startsWith("--"))this.variablesStructure.addVariable(e),this.variablesStructure.addVariableUsage(e,n);else this.variablesStructure.addVariableUsageInProperties(n)}if(this.options.keyframes){if(t==="animation"||t==="animation-name"){for(let n of r.split(/[\s,]+/))this.usedAnimations.add(n);return}if(t.startsWith("--"))for(let n of r.split(/[\s,]+/))this.usedAnimations.add(n)}if(this.options.fontFace){if(t==="font-family")for(let n of r.split(",")){let s=rp(n.trim());this.usedFontFaces.add(s)}return}}getFileExtractor(e,t){let r=t.find((n)=>n.extensions.find((s)=>e.endsWith(s)));return typeof r>"u"?this.options.defaultExtractor:r.extractor}async extractSelectorsFromFiles(e,t){let r=new It([]),n=[];for(let s of e)try{await gi.access(s,Mt.constants.F_OK),n.push(s)}catch(i){n.push(...mi.sync(s,{onlyFiles:!0,ignore:this.options.skippedContentGlobs.map((o)=>o.replace(/^\.\//,""))}))}if(e.length>0&&n.length===0)console.warn("No files found from the passed PurgeCSS option 'content'.");for(let s of n){let i=await gi.readFile(s,"utf-8"),o=this.getFileExtractor(s,t),a=await tp(i,o);r.merge(a)}return r}async extractSelectorsFromString(e,t){let r=new It([]);for(let{raw:n,extension:s}of e){let i=this.getFileExtractor(`.${s}`,t),o=await tp(n,i);r.merge(o)}return r}evaluateAtRule(e){if(this.options.keyframes&&e.name.endsWith("keyframes")){this.atRules.keyframes.push(e);return}if(this.options.fontFace&&e.name==="font-face"&&e.nodes){for(let t of e.nodes)if(t.type==="decl"&&t.prop==="font-family")this.atRules.fontFace.push({name:rp(t.value),node:e})}}evaluateRule(e,t){if(this.ignore)return;let r=e.prev();if(MO(r)&&_i(r,"next")){r.remove();return}if(e.parent&&op(e.parent)&&e.parent.name.endsWith("keyframes"))return;if(!ap(e))return;if(AO(e))return;let n=[];if(e.selector=sp.default((i)=>{i.walk((o)=>{if(o.type!=="selector")return;if(!this.shouldKeepSelector(o,t)){if(this.options.rejected)this.selectorsRemoved.add(o.toString());if(this.options.rejectedCss)n.push(o.toString());o.remove()}}),i.walk((o)=>{if(o.type!=="selector")return;if(o.toString()&&/(:where)|(:is)/.test(o.toString()))o.walk((a)=>{if(a.type!=="pseudo")return;if(a.value!==":where"&&a.value!==":is")return;if(a.nodes.length===0)o.remove()})})}).processSync(e.selector),e.selector&&typeof e.nodes<"u")for(let i of e.nodes){if(i.type!=="decl")continue;this.collectDeclarationsData(i)}let s=e.parent;if(!e.selector)e.remove();if(EO(s))s===null||s===void 0||s.remove();if(this.options.rejectedCss){if(n.length>0){let i=e.clone(),o=s===null||s===void 0?void 0:s.clone().removeAll().append(i);i.selectors=n;let a=o?o:i;this.removedNodes.push(a)}}}async getPurgedCSS(e,t){var r;let n=[],s=[];for(let i of e)if(typeof i==="string")s.push(...mi.sync(i,{onlyFiles:!0,ignore:this.options.skippedContentGlobs}));else s.push(i);for(let i of s){let o=typeof i==="string"?this.options.stdin?i:await gi.readFile(i,"utf-8"):i.raw,a=typeof i==="string"&&!this.options.stdin,u=nh(o,{from:a?i:void 0});if(this.walkThroughCSS(u,t),this.options.fontFace)this.removeUnusedFontFaces();if(this.options.keyframes)this.removeUnusedKeyframes();if(this.options.variables)this.removeUnusedCSSVariables();let l=u.toResult({map:this.options.sourceMap,to:typeof this.options.sourceMap==="object"&&this.options.sourceMap.to?this.options.sourceMap.to:a?i:void 0}),c={css:l.toString(),file:typeof i==="string"?i:i.name};if(this.options.sourceMap)c.sourceMap=(r=l.map)===null||r===void 0?void 0:r.toString();if(this.options.rejected)c.rejected=Array.from(this.selectorsRemoved),this.selectorsRemoved.clear();if(this.options.rejectedCss)c.rejectedCss=sh({nodes:this.removedNodes}).toString();n.push(c)}return n}isKeyframesSafelisted(e){return this.options.safelist.keyframes.some((t)=>typeof t==="string"?t===e:t.test(e))}isSelectorBlocklisted(e){return this.options.blocklist.some((t)=>typeof t==="string"?t===e:t.test(e))}isSelectorSafelisted(e){let t=this.options.safelist.standard.some((n)=>typeof n==="string"?n===e:n.test(e)),r=/^::.*/.test(e);return ep.includes(e)||r||t}isSelectorSafelistedDeep(e){return this.options.safelist.deep.some((t)=>t.test(e))}isSelectorSafelistedGreedy(e){return this.options.safelist.greedy.some((t)=>t.test(e))}async purge(e){this.options=typeof e!=="object"?await xO(e):{...dt,...e,safelist:un(e.safelist)};let{content:t,css:r,extractors:n,safelist:s}=this.options;if(this.options.variables)this.variablesStructure.safelist=s.variables||[];let i=t.filter((l)=>typeof l==="string"),o=t.filter((l)=>typeof l==="object"),a=await this.extractSelectorsFromFiles(i,n),u=await this.extractSelectorsFromString(o,n);return this.getPurgedCSS(r,vi(a,u))}removeUnusedCSSVariables(){this.variablesStructure.removeUnused()}removeUnusedFontFaces(){for(let{name:e,node:t}of this.atRules.fontFace)if(!this.usedFontFaces.has(e))t.remove()}removeUnusedKeyframes(){for(let e of this.atRules.keyframes)if(!this.usedAnimations.has(e.params)&&!this.isKeyframesSafelisted(e.params))e.remove()}getSelectorValue(e){return e.type==="attribute"&&e.attribute||e.value}shouldKeepSelector(e,t){if(RO(e)&&!LO(e))return!0;if(IO(e))return!0;if(this.options.safelist.greedy.length>0){if(e.nodes.map(this.getSelectorValue).some((s)=>s&&this.isSelectorSafelistedGreedy(s)))return!0}let r=!1;for(let n of e.nodes){let s=this.getSelectorValue(n);if(s&&this.isSelectorSafelistedDeep(s))return!0;if(s&&(ep.includes(s)||this.isSelectorSafelisted(s))){r=!0;continue}if(s&&this.isSelectorBlocklisted(s))return!1;switch(n.type){case"attribute":r=[...this.options.dynamicAttributes,"value","checked","selected","open"].includes(n.attribute)?!0:OO(n,t);break;case"class":r=CO(n,t);break;case"id":r=PO(n,t);break;case"tag":r=TO(n,t);break;default:continue}if(!r)return!1}return r}walkThroughCSS(e,t){e.walk((r)=>{if(r.type==="rule")return this.evaluateRule(r,t);if(r.type==="atrule")return this.evaluateAtRule(r);if(r.type==="comment"){if(_i(r,"start"))this.ignore=!0,r.remove();else if(_i(r,"end"))this.ignore=!1,r.remove()}})}}var kO="postcss-purgecss";async function NO(e,t,{result:r}){let n=new Si,s;try{s=await import(up.resolve(process.cwd(),"purgecss.config.js"))}catch{}let i={...dt,...s,...e,safelist:un((e===null||e===void 0?void 0:e.safelist)||(s===null||s===void 0?void 0:s.safelist))};if(e&&typeof e.contentFunction==="function")i.content=e.contentFunction(t.source&&t.source.input.file||"");if(n.options=i,i.variables)n.variablesStructure.safelist=i.safelist.variables||[];let{content:o,extractors:a}=i,u=o.filter((_)=>typeof _==="string"),l=o.filter((_)=>typeof _==="object"),c=await n.extractSelectorsFromFiles(u,a),f=await n.extractSelectorsFromString(l,a),h=vi(c,f);if(n.walkThroughCSS(t,h),n.options.fontFace)n.removeUnusedFontFaces();if(n.options.keyframes)n.removeUnusedKeyframes();if(n.options.variables)n.removeUnusedCSSVariables();if(n.options.rejected&&n.selectorsRemoved.size>0)r.messages.push({type:"purgecss",plugin:"postcss-purgecss",text:`purging ${n.selectorsRemoved.size} selectors:
|
|
63
|
+
${Array.from(n.selectorsRemoved).map((_)=>_.trim()).join(`
|
|
64
64
|
`)}`}),n.selectorsRemoved.clear()}var wi=function(e){if(typeof e>"u")throw Error("PurgeCSS plugin does not have the correct options");return{postcssPlugin:kO,OnceExit(t,r){return NO(e,t,r)}}};wi.postcss=!0;var lp=()=>({postcssPlugin:"keep-reset-layer",AtRule:{layer(e){if(e.params.trim()==="reset")e.before({text:"purgecss start ignore"}),e.after({text:"purgecss end ignore"})}}});lp.postcss=!0;function DO(e){let t=e.match(/[\w-/:%]+(?<!:)/g)||[],r=e.matchAll(/data-[a-z0-9-]+(?:=(?:"[^"]*"|'[^']*'))?/gi),n=[];for(let s of r){let i=s[0];n.push(i,`[${i}]`);let o=i.split("=")[0];if(o)n.push(o,`[${o}]`)}return[...t,...n]}var qO=["web/**/*.{ts,tsx,jsx,js,html,hbs}","public/**/*.html","node_modules/@bgord/ui/**/*.{ts,tsx,jsx,js}"],FO={standard:[":focus-visible","tabindex"]},jO=[lp,wi({content:qO,safelist:FO,defaultExtractor:DO})];async function BO(e,t){if(!t)return;let r=e[2];if(!r)process.stderr.write(`Usage: bgord-css-purge <css-file>
|
|
65
65
|
`),process.exit(1);else{let n=await Bun.file(r).text(),s=await ih(jO).process(n,{from:void 0});await Bun.write(r,s.css)}}await BO(process.argv,import.meta.main);export{qO as content,DO as dataAttributeAwareExtractor,lp as keepResetLayer,BO as main,FO as safelist};
|