monocart-coverage-reports 2.11.6 → 2.12.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/lib/converter/converter.js +1 -1
- package/lib/generate.js +3 -5
- package/lib/istanbul/istanbul.js +4 -13
- package/lib/packages/monocart-coverage-vendor.js +2 -2
- package/lib/utils/gc.js +9 -9
- package/lib/utils/merge/merge.js +439 -439
- package/lib/utils/merge/range-tree.js +123 -123
- package/lib/utils/source-path.js +41 -20
- package/package.json +117 -119
|
@@ -1441,7 +1441,7 @@ const mergeV8Data = (state, stateList) => {
|
|
|
1441
1441
|
// console.log(stateList);
|
|
1442
1442
|
|
|
1443
1443
|
// let debug = false;
|
|
1444
|
-
// if (state.sourcePath.endsWith('counter
|
|
1444
|
+
// if (state.sourcePath.endsWith('counter')) {
|
|
1445
1445
|
// debug = true;
|
|
1446
1446
|
// console.log('merge v8 data ===================================', state.sourcePath);
|
|
1447
1447
|
// console.log('bytes before ============', stateList.map((it) => it.bytes));
|
package/lib/generate.js
CHANGED
|
@@ -12,9 +12,7 @@ const { StreamZip } = require('./packages/monocart-coverage-vendor.js');
|
|
|
12
12
|
// built-in reports
|
|
13
13
|
|
|
14
14
|
// istanbul
|
|
15
|
-
const {
|
|
16
|
-
initIstanbulData, mergeIstanbulCoverage, saveIstanbulReports
|
|
17
|
-
} = require('./istanbul/istanbul.js');
|
|
15
|
+
const { mergeIstanbulCoverage, saveIstanbulReports } = require('./istanbul/istanbul.js');
|
|
18
16
|
|
|
19
17
|
// v8
|
|
20
18
|
const { mergeV8Coverage, saveV8Report } = require('./v8/v8.js');
|
|
@@ -189,9 +187,9 @@ const getCoverageResults = async (dataList, sourceCache, options) => {
|
|
|
189
187
|
// istanbul data
|
|
190
188
|
const t3 = Date.now();
|
|
191
189
|
const istanbulData = await mergeIstanbulCoverage(dataList, options);
|
|
192
|
-
const { coverageData, fileSources } = initIstanbulData(istanbulData, options);
|
|
193
190
|
Util.logTime(`${EC.magenta('├')} [generate] prepared istanbul coverage data`, t3);
|
|
194
|
-
const
|
|
191
|
+
const fileSources = options.fileSources || {};
|
|
192
|
+
const results = await saveIstanbulReports(istanbulData, fileSources, options);
|
|
195
193
|
return results;
|
|
196
194
|
};
|
|
197
195
|
|
package/lib/istanbul/istanbul.js
CHANGED
|
@@ -37,6 +37,8 @@ const findHtmlPath = (outputDir) => {
|
|
|
37
37
|
|
|
38
38
|
const saveIstanbulReports = (coverageData, fileSources, options) => {
|
|
39
39
|
|
|
40
|
+
coverageData = initIstanbulSourcePath(coverageData, fileSources, options);
|
|
41
|
+
|
|
40
42
|
const coverageMap = istanbulLibCoverage.createCoverageMap(coverageData);
|
|
41
43
|
|
|
42
44
|
const defaultWatermarks = {
|
|
@@ -139,7 +141,7 @@ const addUntestedFiles = async (istanbulData, options) => {
|
|
|
139
141
|
// console.log('istanbul untestedList', untestedList);
|
|
140
142
|
untestedList.forEach((item) => {
|
|
141
143
|
if (!istanbulData[item.path]) {
|
|
142
|
-
istanbulData[item.path] = item;
|
|
144
|
+
istanbulData[item.path] = istanbulLibCoverage.createFileCoverage(item);
|
|
143
145
|
}
|
|
144
146
|
});
|
|
145
147
|
|
|
@@ -161,19 +163,8 @@ const mergeIstanbulCoverage = async (dataList, options) => {
|
|
|
161
163
|
return istanbulData;
|
|
162
164
|
};
|
|
163
165
|
|
|
164
|
-
const initIstanbulData = (istanbulData, options) => {
|
|
165
|
-
const fileSources = options.fileSources || {};
|
|
166
|
-
const coverageData = initIstanbulSourcePath(istanbulData, fileSources, options);
|
|
167
|
-
|
|
168
|
-
return {
|
|
169
|
-
fileSources,
|
|
170
|
-
coverageData
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
|
|
174
166
|
module.exports = {
|
|
175
167
|
saveIstanbulReports,
|
|
176
168
|
mergeIstanbulDataList,
|
|
177
|
-
mergeIstanbulCoverage
|
|
178
|
-
initIstanbulData
|
|
169
|
+
mergeIstanbulCoverage
|
|
179
170
|
};
|
|
@@ -18,8 +18,8 @@ var ea=Object.create;var Ft=Object.defineProperty;var ta=Object.getOwnPropertyDe
|
|
|
18
18
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
19
19
|
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),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&&(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 i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
|
|
20
20
|
`);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"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};gi.exports=lt;lt.default=lt});var Ei=b((vh,_i)=>{"use strict";var Oa=Ir();function Nr(n,e){new Oa(e).stringify(n)}_i.exports=Nr;Nr.default=Nr});var Rr=b((xh,Tr)=>{"use strict";Tr.exports.isClean=Symbol("isClean");Tr.exports.my=Symbol("my")});var Wt=b((Ch,wi)=>{"use strict";var Ia=Or(),Na=Ir(),Ta=Ei(),{isClean:at,my:Ra}=Rr();function Ar(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let i=n[r],s=typeof i;r==="parent"&&s==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>Ar(o,t)):(s==="object"&&i!==null&&(i=Ar(i)),t[r]=i)}return t}function ft(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,i=0;for(let s=0;s<n.length;s++){if(r===e.line&&t===e.column){i=s;break}n[s]===`
|
|
21
|
-
`?(t=1,r+=1):t+=1}return i}var ut=class{constructor(e={}){this.raws={},this[at]=!1,this[Ra]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):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){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ar(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:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ia(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[at]=!0}markDirty(){if(this[at]){this[at]=!1;let e=this;for(;e=e.parent;)e[at]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let
|
|
22
|
-
`?(t=1,r+=1):t+=1;return{column:t,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.source.input.css.slice(ft(this.source.input.css,this.source.start),ft(this.source.input.css,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s),r=this.positionInside(s+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Na().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ta){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}get proxyOf(){return this}};wi.exports=ut;ut.default=ut});var Dr=b((bh,yi)=>{"use strict";var Aa=Wt(),ct=class extends Aa{constructor(e){super(e),this.type="comment"}};yi.exports=ct;ct.default=ct});var Mr=b((Lh,Si)=>{"use strict";var Da=Wt(),ht=class extends Da{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Si.exports=ht;ht.default=ht});var dt=b((Oh,Ti)=>{"use strict";var vi=Dr(),xi=Mr(),Ma=Wt(),{isClean:Ci,my:bi}=Rr(),Pr,Li,Oi,Fr;function Ii(n){return n.map(e=>(e.nodes&&(e.nodes=Ii(e.nodes)),delete e.source,e))}function Ni(n){if(n[Ci]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Ni(e)}var ce=class n extends Ma{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...s)=>r(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ii(Li(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new xi(e)]}else if(e.selector||e.selectors)e=[new Fr(e)];else if(e.name)e=[new Pr(e)];else if(e.text)e=[new vi(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[bi]||n.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ci]&&Ni(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+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)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ce.registerParse=n=>{Li=n};ce.registerRule=n=>{Fr=n};ce.registerAtRule=n=>{Pr=n};ce.registerRoot=n=>{Oi=n};Ti.exports=ce;ce.default=ce;ce.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Pr.prototype):n.type==="rule"?Object.setPrototypeOf(n,Fr.prototype):n.type==="decl"?Object.setPrototypeOf(n,xi.prototype):n.type==="comment"?Object.setPrototypeOf(n,vi.prototype):n.type==="root"&&Object.setPrototypeOf(n,Oi.prototype),n[bi]=!0,n.nodes&&n.nodes.forEach(e=>{ce.rebuild(e)})}});var Ai=b((Ih,Ri)=>{var Pa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Fa=(n,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=n[Math.random()*n.length|0];return r},Ua=(n=21)=>{let e="",t=n;for(;t--;)e+=Pa[Math.random()*64|0];return e};Ri.exports={nanoid:Ua,customAlphabet:Fa}});var Mi=b(Ur=>{var Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ur.encode=function(n){if(0<=n&&n<Di.length)return Di[n];throw new TypeError("Must be between 0 and 63: "+n)};Ur.decode=function(n){var e=65,t=90,r=97,i=122,s=48,o=57,a=43,l=47,f=26,u=52;return e<=n&&n<=t?n-e:r<=n&&n<=i?n-r+f:s<=n&&n<=o?n-s+u:n==a?62:n==l?63:-1}});var zr=b(Br=>{var Pi=Mi(),kr=5,Fi=1<<kr,Ui=Fi-1,ki=Fi;function ka(n){return n<0?(-n<<1)+1:(n<<1)+0}function Ba(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Br.encode=function(e){var t="",r,i=ka(e);do r=i&Ui,i>>>=kr,i>0&&(r|=ki),t+=Pi.encode(r);while(i>0);return t};Br.decode=function(e,t,r){var i=e.length,s=0,o=0,a,l;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Pi.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&ki),l&=Ui,s=s+(l<<o),o+=kr}while(a);r.value=Ba(s),r.rest=t}});var qe=b($=>{function za(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}$.getArg=za;var Bi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ga=/^data:.+\,.+$/;function pt(n){var e=n.match(Bi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}$.urlParse=pt;function We(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}$.urlGenerate=We;var Wa=32;function qa(n){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var i=e[0];return e[0]=e[r],e[r]=i,e[0].result}var s=n(t);return e.unshift({input:t,result:s}),e.length>Wa&&e.pop(),s}}var Gr=qa(function(e){var t=e,r=pt(e);if(r){if(!r.path)return e;t=r.path}for(var i=$.isAbsolute(t),s=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,f=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?f++:f>0&&(l===""?(s.splice(a+1,f),f=0):(s.splice(a,2),f--));return t=s.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,We(r)):t});$.normalize=Gr;function zi(n,e){n===""&&(n="."),e===""&&(e=".");var t=pt(e),r=pt(n);if(r&&(n=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),We(t);if(t||e.match(Ga))return e;if(r&&!r.host&&!r.path)return r.host=e,We(r);var i=e.charAt(0)==="/"?e:Gr(n.replace(/\/+$/,"")+"/"+e);return r?(r.path=i,We(r)):i}$.join=zi;$.isAbsolute=function(n){return n.charAt(0)==="/"||Bi.test(n)};function ja(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var r=n.lastIndexOf("/");if(r<0||(n=n.slice(0,r),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}$.relative=ja;var Gi=function(){var n=Object.create(null);return!("__proto__"in n)}();function Wi(n){return n}function $a(n){return qi(n)?"$"+n:n}$.toSetString=Gi?Wi:$a;function Va(n){return qi(n)?n.slice(1):n}$.fromSetString=Gi?Wi:Va;function qi(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function Ha(n,e,t){var r=ge(n.source,e.source);return r!==0||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ge(n.name,e.name)}$.compareByOriginalPositions=Ha;function Za(n,e,t){var r;return r=n.originalLine-e.originalLine,r!==0||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ge(n.name,e.name)}$.compareByOriginalPositionsNoSource=Za;function Ya(n,e,t){var r=n.generatedLine-e.generatedLine;return r!==0||(r=n.generatedColumn-e.generatedColumn,r!==0||t)||(r=ge(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ge(n.name,e.name)}$.compareByGeneratedPositionsDeflated=Ya;function Xa(n,e,t){var r=n.generatedColumn-e.generatedColumn;return r!==0||t||(r=ge(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ge(n.name,e.name)}$.compareByGeneratedPositionsDeflatedNoLine=Xa;function ge(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function Ka(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=ge(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:ge(n.name,e.name)}$.compareByGeneratedPositionsInflated=Ka;function Ja(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}$.parseSourceMapInput=Ja;function Qa(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var r=pt(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}e=zi(We(r),e)}return Gr(e)}$.computeSourceURL=Qa});var jr=b(ji=>{var Wr=qe(),qr=Object.prototype.hasOwnProperty,Me=typeof Map<"u";function _e(){this._array=[],this._set=Me?new Map:Object.create(null)}_e.fromArray=function(e,t){for(var r=new _e,i=0,s=e.length;i<s;i++)r.add(e[i],t);return r};_e.prototype.size=function(){return Me?this._set.size:Object.getOwnPropertyNames(this._set).length};_e.prototype.add=function(e,t){var r=Me?e:Wr.toSetString(e),i=Me?this.has(e):qr.call(this._set,r),s=this._array.length;(!i||t)&&this._array.push(e),i||(Me?this._set.set(e,s):this._set[r]=s)};_e.prototype.has=function(e){if(Me)return this._set.has(e);var t=Wr.toSetString(e);return qr.call(this._set,t)};_e.prototype.indexOf=function(e){if(Me){var t=this._set.get(e);if(t>=0)return t}else{var r=Wr.toSetString(e);if(qr.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};_e.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};_e.prototype.toArray=function(){return this._array.slice()};ji.ArraySet=_e});var Hi=b(Vi=>{var $i=qe();function ef(n,e){var t=n.generatedLine,r=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn;return r>t||r==t&&s>=i||$i.compareByGeneratedPositionsInflated(n,e)<=0}function qt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}qt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};qt.prototype.add=function(e){ef(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};qt.prototype.toArray=function(){return this._sorted||(this._array.sort($i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Vi.MappingList=qt});var $r=b(Zi=>{var mt=zr(),W=qe(),jt=jr().ArraySet,tf=Hi().MappingList;function re(n){n||(n={}),this._file=W.getArg(n,"file",null),this._sourceRoot=W.getArg(n,"sourceRoot",null),this._skipValidation=W.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=W.getArg(n,"ignoreInvalidMapping",!1),this._sources=new jt,this._names=new jt,this._mappings=new tf,this._sourcesContents=null}re.prototype._version=3;re.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new re(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=W.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=W.relative(r,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};re.prototype.addMapping=function(e){var t=W.getArg(e,"generated"),r=W.getArg(e,"original",null),i=W.getArg(e,"source",null),s=W.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))};re.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=W.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};re.prototype.applySourceMap=function(e,t,r){var i=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=W.relative(s,i));var o=new jt,a=new jt;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=W.join(r,l.source)),s!=null&&(l.source=W.relative(s,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var h=l.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=W.join(r,l)),s!=null&&(l=W.relative(s,l)),this.setSourceContent(l,f))},this)};re.prototype._validateMapping=function(e,t,r,i){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var s="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)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!i)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};re.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,i=0,s=0,o=0,a="",l,f,u,h,c=this._mappings.toArray(),d=0,m=c.length;d<m;d++){if(f=c[d],l="",f.generatedLine!==t)for(e=0;f.generatedLine!==t;)l+=";",t++;else if(d>0){if(!W.compareByGeneratedPositionsInflated(f,c[d-1]))continue;l+=","}l+=mt.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(h=this._sources.indexOf(f.source),l+=mt.encode(h-o),o=h,l+=mt.encode(f.originalLine-1-i),i=f.originalLine-1,l+=mt.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(u=this._names.indexOf(f.name),l+=mt.encode(u-s),s=u)),a+=l}return a};re.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=W.relative(t,r));var i=W.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};re.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};re.prototype.toString=function(){return JSON.stringify(this.toJSON())};Zi.SourceMapGenerator=re});var Yi=b(Pe=>{Pe.GREATEST_LOWER_BOUND=1;Pe.LEAST_UPPER_BOUND=2;function Vr(n,e,t,r,i,s){var o=Math.floor((e-n)/2)+n,a=i(t,r[o],!0);return a===0?o:a>0?e-o>1?Vr(o,e,t,r,i,s):s==Pe.LEAST_UPPER_BOUND?e<r.length?e:-1:o:o-n>1?Vr(n,o,t,r,i,s):s==Pe.LEAST_UPPER_BOUND?o:n<0?-1:n}Pe.search=function(e,t,r,i){if(t.length===0)return-1;var s=Vr(-1,t.length,e,t,r,i||Pe.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(t[s],t[s-1],!0)===0;)--s;return s}});var Ji=b(Ki=>{function rf(n){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,o,a){if(o<a){var l=t(o,a),f=o-1;e(i,l,a);for(var u=i[a],h=o;h<a;h++)s(i[h],u,!1)<=0&&(f+=1,e(i,f,h));e(i,f+1,h);var c=f+1;r(i,s,o,c-1),r(i,s,c+1,a)}}return r}function nf(n){let e=rf.toString();return new Function(`return ${e}`)()(n)}var Xi=new WeakMap;Ki.quickSort=function(n,e,t=0){let r=Xi.get(e);r===void 0&&(r=nf(e),Xi.set(e,r)),r(n,e,t,n.length-1)}});var ts=b($t=>{var S=qe(),Zr=Yi(),je=jr().ArraySet,sf=zr(),gt=Ji().quickSort;function M(n,e){var t=n;return typeof n=="string"&&(t=S.parseSourceMapInput(n)),t.sections!=null?new he(t,e):new H(t,e)}M.fromSourceMap=function(n,e){return H.fromSourceMap(n,e)};M.prototype._version=3;M.prototype.__generatedMappings=null;Object.defineProperty(M.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});M.prototype.__originalMappings=null;Object.defineProperty(M.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});M.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};M.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};M.GENERATED_ORDER=1;M.ORIGINAL_ORDER=2;M.GREATEST_LOWER_BOUND=1;M.LEAST_UPPER_BOUND=2;M.prototype.eachMapping=function(e,t,r){var i=t||null,s=r||M.GENERATED_ORDER,o;switch(s){case M.GENERATED_ORDER:o=this._generatedMappings;break;case M.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),f=this._names,u=this._sources,h=this._sourceMapURL,c=0,d=o.length;c<d;c++){var m=o[c],p=m.source===null?null:u.at(m.source);p!==null&&(p=S.computeSourceURL(a,p,h)),l({source:p,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:f.at(m.name)})}};M.prototype.allGeneratedPositionsFor=function(e){var t=S.getArg(e,"line"),r={source:S.getArg(e,"source"),originalLine:t,originalColumn:S.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,Zr.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};$t.SourceMapConsumer=M;function H(n,e){var t=n;typeof n=="string"&&(t=S.parseSourceMapInput(n));var r=S.getArg(t,"version"),i=S.getArg(t,"sources"),s=S.getArg(t,"names",[]),o=S.getArg(t,"sourceRoot",null),a=S.getArg(t,"sourcesContent",null),l=S.getArg(t,"mappings"),f=S.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=S.normalize(o)),i=i.map(String).map(S.normalize).map(function(u){return o&&S.isAbsolute(o)&&S.isAbsolute(u)?S.relative(o,u):u}),this._names=je.fromArray(s.map(String),!0),this._sources=je.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return S.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=f}H.prototype=Object.create(M.prototype);H.prototype.consumer=M;H.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=S.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};H.fromSourceMap=function(e,t){var r=Object.create(H.prototype),i=r._names=je.fromArray(e._names.toArray(),!0),s=r._sources=je.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(d){return S.computeSourceURL(r.sourceRoot,d,t)});for(var o=e._mappings.toArray().slice(),a=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,u=o.length;f<u;f++){var h=o[f],c=new es;c.generatedLine=h.generatedLine,c.generatedColumn=h.generatedColumn,h.source&&(c.source=s.indexOf(h.source),c.originalLine=h.originalLine,c.originalColumn=h.originalColumn,h.name&&(c.name=i.indexOf(h.name)),l.push(c)),a.push(c)}return gt(r.__originalMappings,S.compareByOriginalPositions),r};H.prototype._version=3;Object.defineProperty(H.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function es(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Hr=S.compareByGeneratedPositionsDeflatedNoLine;function Qi(n,e){let t=n.length,r=n.length-e;if(!(r<=1))if(r==2){let i=n[e],s=n[e+1];Hr(i,s)>0&&(n[e]=s,n[e+1]=i)}else if(r<20)for(let i=e;i<t;i++)for(let s=i;s>e;s--){let o=n[s-1],a=n[s];if(Hr(o,a)<=0)break;n[s-1]=a,n[s]=o}else gt(n,Hr,e)}H.prototype._parseMappings=function(e,t){var r=1,i=0,s=0,o=0,a=0,l=0,f=e.length,u=0,h={},c={},d=[],m=[],p,_,v,C,I;let L=0;for(;u<f;)if(e.charAt(u)===";")r++,u++,i=0,Qi(m,L),L=m.length;else if(e.charAt(u)===",")u++;else{for(p=new es,p.generatedLine=r,C=u;C<f&&!this._charIsMappingSeparator(e,C);C++);for(_=e.slice(u,C),v=[];u<C;)sf.decode(e,u,c),I=c.value,u=c.rest,v.push(I);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(p.generatedColumn=i+v[0],i=p.generatedColumn,v.length>1&&(p.source=a+v[1],a+=v[1],p.originalLine=s+v[2],s=p.originalLine,p.originalLine+=1,p.originalColumn=o+v[3],o=p.originalColumn,v.length>4&&(p.name=l+v[4],l+=v[4])),m.push(p),typeof p.originalLine=="number"){let O=p.source;for(;d.length<=O;)d.push(null);d[O]===null&&(d[O]=[]),d[O].push(p)}}Qi(m,L),this.__generatedMappings=m;for(var R=0;R<d.length;R++)d[R]!=null&>(d[R],S.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};H.prototype._findMapping=function(e,t,r,i,s,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Zr.search(e,t,s,o)};H.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};H.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",S.compareByGeneratedPositionsDeflated,S.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var s=S.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=S.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=S.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:S.getArg(i,"originalLine",null),column:S.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};H.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};H.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=S.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=S.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')};H.prototype.generatedPositionFor=function(e){var t=S.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:S.getArg(e,"line"),originalColumn:S.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,S.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:S.getArg(s,"generatedLine",null),column:S.getArg(s,"generatedColumn",null),lastColumn:S.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};$t.BasicSourceMapConsumer=H;function he(n,e){var t=n;typeof n=="string"&&(t=S.parseSourceMapInput(n));var r=S.getArg(t,"version"),i=S.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new je,this._names=new je;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=S.getArg(o,"offset"),l=S.getArg(a,"line"),f=S.getArg(a,"column");if(l<s.line||l===s.line&&f<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:f+1},consumer:new M(S.getArg(o,"map"),e)}})}he.prototype=Object.create(M.prototype);he.prototype.constructor=M;he.prototype._version=3;Object.defineProperty(he.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});he.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},r=Zr.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};he.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};he.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};he.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(S.getArg(e,"source"))!==-1){var i=r.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};he.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=S.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;a.name&&(f=i.consumer._names.at(a.name),this._names.add(f),f=this._names.indexOf(f));var u={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:f};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}gt(this.__generatedMappings,S.compareByGeneratedPositionsDeflated),gt(this.__originalMappings,S.compareByOriginalPositions)};$t.IndexedSourceMapConsumer=he});var ns=b(rs=>{var of=$r().SourceMapGenerator,Vt=qe(),lf=/(\r?\n)/,af=10,$e="$$$isSourceNode$$$";function Q(n,e,t,r,i){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=i??null,this[$e]=!0,r!=null&&this.add(r)}Q.fromStringWithSourceMap=function(e,t,r){var i=new Q,s=e.split(lf),o=0,a=function(){var c=m(),d=m()||"";return c+d;function m(){return o<s.length?s[o++]:void 0}},l=1,f=0,u=null;return t.eachMapping(function(c){if(u!==null)if(l<c.generatedLine)h(u,a()),l++,f=0;else{var d=s[o]||"",m=d.substr(0,c.generatedColumn-f);s[o]=d.substr(c.generatedColumn-f),f=c.generatedColumn,h(u,m),u=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(f<c.generatedColumn){var d=s[o]||"";i.add(d.substr(0,c.generatedColumn)),s[o]=d.substr(c.generatedColumn),f=c.generatedColumn}u=c},this),o<s.length&&(u&&h(u,a()),i.add(s.splice(o).join(""))),t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Vt.join(r,c)),i.setSourceContent(c,d))}),i;function h(c,d){if(c===null||c.source===void 0)i.add(d);else{var m=r?Vt.join(r,c.source):c.source;i.add(new Q(c.originalLine,c.originalColumn,m,d,c.name))}}};Q.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[$e]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Q.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[$e]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Q.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)t=this.children[r],t[$e]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};Q.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};Q.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[$e]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};Q.prototype.setSourceContent=function(e,t){this.sourceContents[Vt.toSetString(e)]=t};Q.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][$e]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(Vt.fromSetString(i[t]),this.sourceContents[i[t]])};Q.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};Q.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new of(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(f,u){t.code+=f,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||l!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,o=u.line,a=u.column,l=u.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var h=0,c=f.length;h<c;h++)f.charCodeAt(h)===af?(t.line++,t.column=0,h+1===c?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(f,u){r.setSourceContent(f,u)}),{code:t.code,map:r}};rs.SourceNode=Q});var Yr=b(Ht=>{Ht.SourceMapGenerator=$r().SourceMapGenerator;Ht.SourceMapConsumer=ts().SourceMapConsumer;Ht.SourceNode=ns().SourceNode});var ls=b((zh,os)=>{"use strict";var{existsSync:ff,readFileSync:uf}=require("fs"),{dirname:Xr,join:cf}=require("path"),{SourceMapConsumer:is,SourceMapGenerator:ss}=Yr();function hf(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var _t=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Xr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new is(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return hf(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1: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()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Xr(e),ff(e))return this.mapFile=e,uf(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof is)return ss.fromSourceMap(t).toString();if(t instanceof ss)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=cf(Xr(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};os.exports=_t;_t.default=_t});var hs=b((Gh,cs)=>{"use strict";var{nanoid:df}=Ai(),{isAbsolute:Qr,resolve:en}=require("path"),{SourceMapConsumer:pf,SourceMapGenerator:mf}=Yr(),{fileURLToPath:as,pathToFileURL:Zt}=require("url"),fs=Or(),gf=ls(),Kr=Lr(),Jr=Symbol("fromOffsetCache"),_f=!!(pf&&mf),us=!!(en&&Qr),Ve=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new 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)):this.hasBOM=!1,t.from&&(!us||/^\w+:\/\//.test(t.from)||Qr(t.from)?this.file=t.from:this.file=en(t.from)),us&&_f){let r=new gf(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+df(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let s,o,a;if(t&&typeof t=="object"){let f=t,u=r;if(typeof f.offset=="number"){let h=this.fromOffset(f.offset);t=h.line,r=h.col}else t=f.line,r=f.column;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);o=h.line,s=h.col}else o=u.line,s=u.column}else if(!r){let f=this.fromOffset(t);t=f.line,r=f.col}let l=this.origin(t,r,o,s);return l?a=new fs(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,i.plugin):a=new fs(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,i.plugin),a.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Zt&&(a.input.url=Zt(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,r;if(this[Jr])r=this[Jr];else{let s=this.css.split(`
|
|
21
|
+
`?(t=1,r+=1):t+=1}return i}var ut=class{constructor(e={}){this.raws={},this[at]=!1,this[Ra]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):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){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Ar(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:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ia(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[at]=!0}markDirty(){if(this[at]){this[at]=!1;let e=this;for(;e=e.parent;)e[at]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(ft(r,this.source.start),ft(r,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=ft(i,this.source.start),o=s+e;for(let a=s;a<o;a++)i[a]===`
|
|
22
|
+
`?(t=1,r+=1):t+=1;return{column:t,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,o=i.slice(ft(i,this.source.start),ft(i,this.source.end)).indexOf(e.word);o!==-1&&(t=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Na().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ta){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}get proxyOf(){return this}};wi.exports=ut;ut.default=ut});var Dr=b((bh,yi)=>{"use strict";var Aa=Wt(),ct=class extends Aa{constructor(e){super(e),this.type="comment"}};yi.exports=ct;ct.default=ct});var Mr=b((Lh,Si)=>{"use strict";var Da=Wt(),ht=class extends Da{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Si.exports=ht;ht.default=ht});var dt=b((Oh,Ti)=>{"use strict";var vi=Dr(),xi=Mr(),Ma=Wt(),{isClean:Ci,my:bi}=Rr(),Pr,Li,Oi,Fr;function Ii(n){return n.map(e=>(e.nodes&&(e.nodes=Ii(e.nodes)),delete e.source,e))}function Ni(n){if(n[Ci]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Ni(e)}var ce=class n extends Ma{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...s)=>r(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ii(Li(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new xi(e)]}else if(e.selector||e.selectors)e=[new Fr(e)];else if(e.name)e=[new Pr(e)];else if(e.text)e=[new vi(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[bi]||n.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Ci]&&Ni(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+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)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ce.registerParse=n=>{Li=n};ce.registerRule=n=>{Fr=n};ce.registerAtRule=n=>{Pr=n};ce.registerRoot=n=>{Oi=n};Ti.exports=ce;ce.default=ce;ce.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Pr.prototype):n.type==="rule"?Object.setPrototypeOf(n,Fr.prototype):n.type==="decl"?Object.setPrototypeOf(n,xi.prototype):n.type==="comment"?Object.setPrototypeOf(n,vi.prototype):n.type==="root"&&Object.setPrototypeOf(n,Oi.prototype),n[bi]=!0,n.nodes&&n.nodes.forEach(e=>{ce.rebuild(e)})}});var Ai=b((Ih,Ri)=>{var Pa="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Fa=(n,e=21)=>(t=e)=>{let r="",i=t|0;for(;i--;)r+=n[Math.random()*n.length|0];return r},Ua=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Pa[Math.random()*64|0];return e};Ri.exports={nanoid:Ua,customAlphabet:Fa}});var Mi=b(Ur=>{var Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ur.encode=function(n){if(0<=n&&n<Di.length)return Di[n];throw new TypeError("Must be between 0 and 63: "+n)};Ur.decode=function(n){var e=65,t=90,r=97,i=122,s=48,o=57,a=43,l=47,f=26,u=52;return e<=n&&n<=t?n-e:r<=n&&n<=i?n-r+f:s<=n&&n<=o?n-s+u:n==a?62:n==l?63:-1}});var zr=b(Br=>{var Pi=Mi(),kr=5,Fi=1<<kr,Ui=Fi-1,ki=Fi;function ka(n){return n<0?(-n<<1)+1:(n<<1)+0}function Ba(n){var e=(n&1)===1,t=n>>1;return e?-t:t}Br.encode=function(e){var t="",r,i=ka(e);do r=i&Ui,i>>>=kr,i>0&&(r|=ki),t+=Pi.encode(r);while(i>0);return t};Br.decode=function(e,t,r){var i=e.length,s=0,o=0,a,l;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Pi.decode(e.charCodeAt(t++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(l&ki),l&=Ui,s=s+(l<<o),o+=kr}while(a);r.value=Ba(s),r.rest=t}});var qe=b($=>{function za(n,e,t){if(e in n)return n[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}$.getArg=za;var Bi=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ga=/^data:.+\,.+$/;function pt(n){var e=n.match(Bi);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}$.urlParse=pt;function We(n){var e="";return n.scheme&&(e+=n.scheme+":"),e+="//",n.auth&&(e+=n.auth+"@"),n.host&&(e+=n.host),n.port&&(e+=":"+n.port),n.path&&(e+=n.path),e}$.urlGenerate=We;var Wa=32;function qa(n){var e=[];return function(t){for(var r=0;r<e.length;r++)if(e[r].input===t){var i=e[0];return e[0]=e[r],e[r]=i,e[0].result}var s=n(t);return e.unshift({input:t,result:s}),e.length>Wa&&e.pop(),s}}var Gr=qa(function(e){var t=e,r=pt(e);if(r){if(!r.path)return e;t=r.path}for(var i=$.isAbsolute(t),s=[],o=0,a=0;;)if(o=a,a=t.indexOf("/",o),a===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,a));a<t.length&&t[a]==="/";)a++;for(var l,f=0,a=s.length-1;a>=0;a--)l=s[a],l==="."?s.splice(a,1):l===".."?f++:f>0&&(l===""?(s.splice(a+1,f),f=0):(s.splice(a,2),f--));return t=s.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,We(r)):t});$.normalize=Gr;function zi(n,e){n===""&&(n="."),e===""&&(e=".");var t=pt(e),r=pt(n);if(r&&(n=r.path||"/"),t&&!t.scheme)return r&&(t.scheme=r.scheme),We(t);if(t||e.match(Ga))return e;if(r&&!r.host&&!r.path)return r.host=e,We(r);var i=e.charAt(0)==="/"?e:Gr(n.replace(/\/+$/,"")+"/"+e);return r?(r.path=i,We(r)):i}$.join=zi;$.isAbsolute=function(n){return n.charAt(0)==="/"||Bi.test(n)};function ja(n,e){n===""&&(n="."),n=n.replace(/\/$/,"");for(var t=0;e.indexOf(n+"/")!==0;){var r=n.lastIndexOf("/");if(r<0||(n=n.slice(0,r),n.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(n.length+1)}$.relative=ja;var Gi=function(){var n=Object.create(null);return!("__proto__"in n)}();function Wi(n){return n}function $a(n){return qi(n)?"$"+n:n}$.toSetString=Gi?Wi:$a;function Va(n){return qi(n)?n.slice(1):n}$.fromSetString=Gi?Wi:Va;function qi(n){if(!n)return!1;var e=n.length;if(e<9||n.charCodeAt(e-1)!==95||n.charCodeAt(e-2)!==95||n.charCodeAt(e-3)!==111||n.charCodeAt(e-4)!==116||n.charCodeAt(e-5)!==111||n.charCodeAt(e-6)!==114||n.charCodeAt(e-7)!==112||n.charCodeAt(e-8)!==95||n.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(n.charCodeAt(t)!==36)return!1;return!0}function Ha(n,e,t){var r=ge(n.source,e.source);return r!==0||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ge(n.name,e.name)}$.compareByOriginalPositions=Ha;function Za(n,e,t){var r;return r=n.originalLine-e.originalLine,r!==0||(r=n.originalColumn-e.originalColumn,r!==0||t)||(r=n.generatedColumn-e.generatedColumn,r!==0)||(r=n.generatedLine-e.generatedLine,r!==0)?r:ge(n.name,e.name)}$.compareByOriginalPositionsNoSource=Za;function Ya(n,e,t){var r=n.generatedLine-e.generatedLine;return r!==0||(r=n.generatedColumn-e.generatedColumn,r!==0||t)||(r=ge(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ge(n.name,e.name)}$.compareByGeneratedPositionsDeflated=Ya;function Xa(n,e,t){var r=n.generatedColumn-e.generatedColumn;return r!==0||t||(r=ge(n.source,e.source),r!==0)||(r=n.originalLine-e.originalLine,r!==0)||(r=n.originalColumn-e.originalColumn,r!==0)?r:ge(n.name,e.name)}$.compareByGeneratedPositionsDeflatedNoLine=Xa;function ge(n,e){return n===e?0:n===null?1:e===null?-1:n>e?1:-1}function Ka(n,e){var t=n.generatedLine-e.generatedLine;return t!==0||(t=n.generatedColumn-e.generatedColumn,t!==0)||(t=ge(n.source,e.source),t!==0)||(t=n.originalLine-e.originalLine,t!==0)||(t=n.originalColumn-e.originalColumn,t!==0)?t:ge(n.name,e.name)}$.compareByGeneratedPositionsInflated=Ka;function Ja(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}$.parseSourceMapInput=Ja;function Qa(n,e,t){if(e=e||"",n&&(n[n.length-1]!=="/"&&e[0]!=="/"&&(n+="/"),e=n+e),t){var r=pt(t);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}e=zi(We(r),e)}return Gr(e)}$.computeSourceURL=Qa});var jr=b(ji=>{var Wr=qe(),qr=Object.prototype.hasOwnProperty,Me=typeof Map<"u";function _e(){this._array=[],this._set=Me?new Map:Object.create(null)}_e.fromArray=function(e,t){for(var r=new _e,i=0,s=e.length;i<s;i++)r.add(e[i],t);return r};_e.prototype.size=function(){return Me?this._set.size:Object.getOwnPropertyNames(this._set).length};_e.prototype.add=function(e,t){var r=Me?e:Wr.toSetString(e),i=Me?this.has(e):qr.call(this._set,r),s=this._array.length;(!i||t)&&this._array.push(e),i||(Me?this._set.set(e,s):this._set[r]=s)};_e.prototype.has=function(e){if(Me)return this._set.has(e);var t=Wr.toSetString(e);return qr.call(this._set,t)};_e.prototype.indexOf=function(e){if(Me){var t=this._set.get(e);if(t>=0)return t}else{var r=Wr.toSetString(e);if(qr.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};_e.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};_e.prototype.toArray=function(){return this._array.slice()};ji.ArraySet=_e});var Hi=b(Vi=>{var $i=qe();function ef(n,e){var t=n.generatedLine,r=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn;return r>t||r==t&&s>=i||$i.compareByGeneratedPositionsInflated(n,e)<=0}function qt(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}qt.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};qt.prototype.add=function(e){ef(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};qt.prototype.toArray=function(){return this._sorted||(this._array.sort($i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Vi.MappingList=qt});var $r=b(Zi=>{var mt=zr(),W=qe(),jt=jr().ArraySet,tf=Hi().MappingList;function re(n){n||(n={}),this._file=W.getArg(n,"file",null),this._sourceRoot=W.getArg(n,"sourceRoot",null),this._skipValidation=W.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=W.getArg(n,"ignoreInvalidMapping",!1),this._sources=new jt,this._names=new jt,this._mappings=new tf,this._sourcesContents=null}re.prototype._version=3;re.fromSourceMap=function(e,t){var r=e.sourceRoot,i=new re(Object.assign(t||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=W.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=W.relative(r,s)),i._sources.has(o)||i._sources.add(o);var a=e.sourceContentFor(s);a!=null&&i.setSourceContent(s,a)}),i};re.prototype.addMapping=function(e){var t=W.getArg(e,"generated"),r=W.getArg(e,"original",null),i=W.getArg(e,"source",null),s=W.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,r,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s}))};re.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=W.relative(this._sourceRoot,r)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};re.prototype.applySourceMap=function(e,t,r){var i=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=W.relative(s,i));var o=new jt,a=new jt;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var f=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});f.source!=null&&(l.source=f.source,r!=null&&(l.source=W.join(r,l.source)),s!=null&&(l.source=W.relative(s,l.source)),l.originalLine=f.line,l.originalColumn=f.column,f.name!=null&&(l.name=f.name))}var u=l.source;u!=null&&!o.has(u)&&o.add(u);var h=l.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,e.sources.forEach(function(l){var f=e.sourceContentFor(l);f!=null&&(r!=null&&(l=W.join(r,l)),s!=null&&(l=W.relative(s,l)),this.setSourceContent(l,f))},this)};re.prototype._validateMapping=function(e,t,r,i){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var s="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)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!i)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};re.prototype._serializeMappings=function(){for(var e=0,t=1,r=0,i=0,s=0,o=0,a="",l,f,u,h,c=this._mappings.toArray(),d=0,m=c.length;d<m;d++){if(f=c[d],l="",f.generatedLine!==t)for(e=0;f.generatedLine!==t;)l+=";",t++;else if(d>0){if(!W.compareByGeneratedPositionsInflated(f,c[d-1]))continue;l+=","}l+=mt.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(h=this._sources.indexOf(f.source),l+=mt.encode(h-o),o=h,l+=mt.encode(f.originalLine-1-i),i=f.originalLine-1,l+=mt.encode(f.originalColumn-r),r=f.originalColumn,f.name!=null&&(u=this._names.indexOf(f.name),l+=mt.encode(u-s),s=u)),a+=l}return a};re.prototype._generateSourcesContent=function(e,t){return e.map(function(r){if(!this._sourcesContents)return null;t!=null&&(r=W.relative(t,r));var i=W.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};re.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};re.prototype.toString=function(){return JSON.stringify(this.toJSON())};Zi.SourceMapGenerator=re});var Yi=b(Pe=>{Pe.GREATEST_LOWER_BOUND=1;Pe.LEAST_UPPER_BOUND=2;function Vr(n,e,t,r,i,s){var o=Math.floor((e-n)/2)+n,a=i(t,r[o],!0);return a===0?o:a>0?e-o>1?Vr(o,e,t,r,i,s):s==Pe.LEAST_UPPER_BOUND?e<r.length?e:-1:o:o-n>1?Vr(n,o,t,r,i,s):s==Pe.LEAST_UPPER_BOUND?o:n<0?-1:n}Pe.search=function(e,t,r,i){if(t.length===0)return-1;var s=Vr(-1,t.length,e,t,r,i||Pe.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(t[s],t[s-1],!0)===0;)--s;return s}});var Ji=b(Ki=>{function rf(n){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,o,a){if(o<a){var l=t(o,a),f=o-1;e(i,l,a);for(var u=i[a],h=o;h<a;h++)s(i[h],u,!1)<=0&&(f+=1,e(i,f,h));e(i,f+1,h);var c=f+1;r(i,s,o,c-1),r(i,s,c+1,a)}}return r}function nf(n){let e=rf.toString();return new Function(`return ${e}`)()(n)}var Xi=new WeakMap;Ki.quickSort=function(n,e,t=0){let r=Xi.get(e);r===void 0&&(r=nf(e),Xi.set(e,r)),r(n,e,t,n.length-1)}});var ts=b($t=>{var S=qe(),Zr=Yi(),je=jr().ArraySet,sf=zr(),gt=Ji().quickSort;function M(n,e){var t=n;return typeof n=="string"&&(t=S.parseSourceMapInput(n)),t.sections!=null?new he(t,e):new H(t,e)}M.fromSourceMap=function(n,e){return H.fromSourceMap(n,e)};M.prototype._version=3;M.prototype.__generatedMappings=null;Object.defineProperty(M.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});M.prototype.__originalMappings=null;Object.defineProperty(M.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});M.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return r===";"||r===","};M.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};M.GENERATED_ORDER=1;M.ORIGINAL_ORDER=2;M.GREATEST_LOWER_BOUND=1;M.LEAST_UPPER_BOUND=2;M.prototype.eachMapping=function(e,t,r){var i=t||null,s=r||M.GENERATED_ORDER,o;switch(s){case M.GENERATED_ORDER:o=this._generatedMappings;break;case M.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,l=e.bind(i),f=this._names,u=this._sources,h=this._sourceMapURL,c=0,d=o.length;c<d;c++){var m=o[c],p=m.source===null?null:u.at(m.source);p!==null&&(p=S.computeSourceURL(a,p,h)),l({source:p,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:f.at(m.name)})}};M.prototype.allGeneratedPositionsFor=function(e){var t=S.getArg(e,"line"),r={source:S.getArg(e,"source"),originalLine:t,originalColumn:S.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,Zr.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};$t.SourceMapConsumer=M;function H(n,e){var t=n;typeof n=="string"&&(t=S.parseSourceMapInput(n));var r=S.getArg(t,"version"),i=S.getArg(t,"sources"),s=S.getArg(t,"names",[]),o=S.getArg(t,"sourceRoot",null),a=S.getArg(t,"sourcesContent",null),l=S.getArg(t,"mappings"),f=S.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=S.normalize(o)),i=i.map(String).map(S.normalize).map(function(u){return o&&S.isAbsolute(o)&&S.isAbsolute(u)?S.relative(o,u):u}),this._names=je.fromArray(s.map(String),!0),this._sources=je.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return S.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=e,this.file=f}H.prototype=Object.create(M.prototype);H.prototype.consumer=M;H.prototype._findSourceIndex=function(n){var e=n;if(this.sourceRoot!=null&&(e=S.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==n)return t;return-1};H.fromSourceMap=function(e,t){var r=Object.create(H.prototype),i=r._names=je.fromArray(e._names.toArray(),!0),s=r._sources=je.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(d){return S.computeSourceURL(r.sourceRoot,d,t)});for(var o=e._mappings.toArray().slice(),a=r.__generatedMappings=[],l=r.__originalMappings=[],f=0,u=o.length;f<u;f++){var h=o[f],c=new es;c.generatedLine=h.generatedLine,c.generatedColumn=h.generatedColumn,h.source&&(c.source=s.indexOf(h.source),c.originalLine=h.originalLine,c.originalColumn=h.originalColumn,h.name&&(c.name=i.indexOf(h.name)),l.push(c)),a.push(c)}return gt(r.__originalMappings,S.compareByOriginalPositions),r};H.prototype._version=3;Object.defineProperty(H.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function es(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Hr=S.compareByGeneratedPositionsDeflatedNoLine;function Qi(n,e){let t=n.length,r=n.length-e;if(!(r<=1))if(r==2){let i=n[e],s=n[e+1];Hr(i,s)>0&&(n[e]=s,n[e+1]=i)}else if(r<20)for(let i=e;i<t;i++)for(let s=i;s>e;s--){let o=n[s-1],a=n[s];if(Hr(o,a)<=0)break;n[s-1]=a,n[s]=o}else gt(n,Hr,e)}H.prototype._parseMappings=function(e,t){var r=1,i=0,s=0,o=0,a=0,l=0,f=e.length,u=0,h={},c={},d=[],m=[],p,_,v,C,I;let L=0;for(;u<f;)if(e.charAt(u)===";")r++,u++,i=0,Qi(m,L),L=m.length;else if(e.charAt(u)===",")u++;else{for(p=new es,p.generatedLine=r,C=u;C<f&&!this._charIsMappingSeparator(e,C);C++);for(_=e.slice(u,C),v=[];u<C;)sf.decode(e,u,c),I=c.value,u=c.rest,v.push(I);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(p.generatedColumn=i+v[0],i=p.generatedColumn,v.length>1&&(p.source=a+v[1],a+=v[1],p.originalLine=s+v[2],s=p.originalLine,p.originalLine+=1,p.originalColumn=o+v[3],o=p.originalColumn,v.length>4&&(p.name=l+v[4],l+=v[4])),m.push(p),typeof p.originalLine=="number"){let O=p.source;for(;d.length<=O;)d.push(null);d[O]===null&&(d[O]=[]),d[O].push(p)}}Qi(m,L),this.__generatedMappings=m;for(var R=0;R<d.length;R++)d[R]!=null&>(d[R],S.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};H.prototype._findMapping=function(e,t,r,i,s,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Zr.search(e,t,s,o)};H.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};H.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",S.compareByGeneratedPositionsDeflated,S.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var s=S.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=S.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=S.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:S.getArg(i,"originalLine",null),column:S.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};H.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};H.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=S.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=S.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')};H.prototype.generatedPositionFor=function(e){var t=S.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:S.getArg(e,"line"),originalColumn:S.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,S.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:S.getArg(s,"generatedLine",null),column:S.getArg(s,"generatedColumn",null),lastColumn:S.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};$t.BasicSourceMapConsumer=H;function he(n,e){var t=n;typeof n=="string"&&(t=S.parseSourceMapInput(n));var r=S.getArg(t,"version"),i=S.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new je,this._names=new je;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=S.getArg(o,"offset"),l=S.getArg(a,"line"),f=S.getArg(a,"column");if(l<s.line||l===s.line&&f<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:l+1,generatedColumn:f+1},consumer:new M(S.getArg(o,"map"),e)}})}he.prototype=Object.create(M.prototype);he.prototype.constructor=M;he.prototype._version=3;Object.defineProperty(he.prototype,"sources",{get:function(){for(var n=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)n.push(this._sections[e].consumer.sources[t]);return n}});he.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},r=Zr.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};he.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};he.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};he.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer._findSourceIndex(S.getArg(e,"source"))!==-1){var i=r.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};he.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],l=i.consumer._sources.at(a.source);l!==null&&(l=S.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var f=null;a.name&&(f=i.consumer._names.at(a.name),this._names.add(f),f=this._names.indexOf(f));var u={source:l,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:f};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}gt(this.__generatedMappings,S.compareByGeneratedPositionsDeflated),gt(this.__originalMappings,S.compareByOriginalPositions)};$t.IndexedSourceMapConsumer=he});var ns=b(rs=>{var of=$r().SourceMapGenerator,Vt=qe(),lf=/(\r?\n)/,af=10,$e="$$$isSourceNode$$$";function Q(n,e,t,r,i){this.children=[],this.sourceContents={},this.line=n??null,this.column=e??null,this.source=t??null,this.name=i??null,this[$e]=!0,r!=null&&this.add(r)}Q.fromStringWithSourceMap=function(e,t,r){var i=new Q,s=e.split(lf),o=0,a=function(){var c=m(),d=m()||"";return c+d;function m(){return o<s.length?s[o++]:void 0}},l=1,f=0,u=null;return t.eachMapping(function(c){if(u!==null)if(l<c.generatedLine)h(u,a()),l++,f=0;else{var d=s[o]||"",m=d.substr(0,c.generatedColumn-f);s[o]=d.substr(c.generatedColumn-f),f=c.generatedColumn,h(u,m),u=c;return}for(;l<c.generatedLine;)i.add(a()),l++;if(f<c.generatedColumn){var d=s[o]||"";i.add(d.substr(0,c.generatedColumn)),s[o]=d.substr(c.generatedColumn),f=c.generatedColumn}u=c},this),o<s.length&&(u&&h(u,a()),i.add(s.splice(o).join(""))),t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Vt.join(r,c)),i.setSourceContent(c,d))}),i;function h(c,d){if(c===null||c.source===void 0)i.add(d);else{var m=r?Vt.join(r,c.source):c.source;i.add(new Q(c.originalLine,c.originalColumn,m,d,c.name))}}};Q.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[$e]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Q.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[$e]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Q.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)t=this.children[r],t[$e]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};Q.prototype.join=function(e){var t,r,i=this.children.length;if(i>0){for(t=[],r=0;r<i-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this};Q.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[$e]?r.replaceRight(e,t):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this};Q.prototype.setSourceContent=function(e,t){this.sourceContents[Vt.toSetString(e)]=t};Q.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][$e]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(Vt.fromSetString(i[t]),this.sourceContents[i[t]])};Q.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};Q.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new of(e),i=!1,s=null,o=null,a=null,l=null;return this.walk(function(f,u){t.code+=f,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||l!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,o=u.line,a=u.column,l=u.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var h=0,c=f.length;h<c;h++)f.charCodeAt(h)===af?(t.line++,t.column=0,h+1===c?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(f,u){r.setSourceContent(f,u)}),{code:t.code,map:r}};rs.SourceNode=Q});var Yr=b(Ht=>{Ht.SourceMapGenerator=$r().SourceMapGenerator;Ht.SourceMapConsumer=ts().SourceMapConsumer;Ht.SourceNode=ns().SourceNode});var ls=b((zh,os)=>{"use strict";var{existsSync:ff,readFileSync:uf}=require("fs"),{dirname:Xr,join:cf}=require("path"),{SourceMapConsumer:is,SourceMapGenerator:ss}=Yr();function hf(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}var _t=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Xr(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new is(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return hf(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1: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()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Xr(e),ff(e))return this.mapFile=e,uf(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof is)return ss.fromSourceMap(t).toString();if(t instanceof ss)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=cf(Xr(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};os.exports=_t;_t.default=_t});var hs=b((Gh,cs)=>{"use strict";var{nanoid:df}=Ai(),{isAbsolute:Qr,resolve:en}=require("path"),{SourceMapConsumer:pf,SourceMapGenerator:mf}=Yr(),{fileURLToPath:as,pathToFileURL:Zt}=require("url"),fs=Or(),gf=ls(),Kr=Lr(),Jr=Symbol("fromOffsetCache"),_f=!!(pf&&mf),us=!!(en&&Qr),Ve=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new 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)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!us||/^\w+:\/\//.test(t.from)||Qr(t.from)?this.file=t.from:this.file=en(t.from)),us&&_f){let r=new gf(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+df(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let s,o,a;if(t&&typeof t=="object"){let f=t,u=r;if(typeof f.offset=="number"){let h=this.fromOffset(f.offset);t=h.line,r=h.col}else t=f.line,r=f.column;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);o=h.line,s=h.col}else o=u.line,s=u.column}else if(!r){let f=this.fromOffset(t);t=f.line,r=f.col}let l=this.origin(t,r,o,s);return l?a=new fs(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,i.plugin):a=new fs(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,i.plugin),a.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Zt&&(a.input.url=Zt(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,r;if(this[Jr])r=this[Jr];else{let s=this.css.split(`
|
|
23
23
|
`);r=new Array(s.length);let o=0;for(let a=0,l=s.length;a<l;a++)r[a]=o,o+=s[a].length+1;this[Jr]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let s=r.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<r[o])s=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:en(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:i,line:r}));let l;Qr(o.source)?l=Zt(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Zt(this.map.mapFile));let f={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(as)f.file=as(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(f.source=u),f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};cs.exports=Ve;Ve.default=Ve;Kr&&Kr.registerInput&&Kr.registerInput(Ve)});var ms=b((Wh,ps)=>{"use strict";var ds=dt(),He=class extends ds{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};ps.exports=He;He.default=He;ds.registerAtRule(He)});var ys=b((qh,ws)=>{"use strict";var gs=dt(),_s,Es,xe=class extends gs{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new _s(new Es,this,e).stringify()}};xe.registerLazyResult=n=>{_s=n};xe.registerProcessor=n=>{Es=n};ws.exports=xe;xe.default=xe;gs.registerRoot(xe)});var vs=b((jh,Ss)=>{"use strict";var Et={comma(n){return Et.split(n,[","],!0)},space(n){let e=[" ",`
|
|
24
24
|
`," "];return Et.split(n,e)},split(n,e,t){let r=[],i="",s=!1,o=0,a=!1,l="",f=!1;for(let u of n)f?f=!1:u==="\\"?f=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};Ss.exports=Et;Et.default=Et});var bs=b(($h,Cs)=>{"use strict";var xs=dt(),Ef=vs(),Ze=class extends xs{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ef.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)}};Cs.exports=Ze;Ze.default=Ze;xs.registerRule(Ze)});var Ns=b((Vh,Is)=>{"use strict";var wf=ms(),yf=Dr(),Sf=Mr(),vf=ys(),Ls=bs(),xf=br(),Os={empty:!0,space:!0};function Cf(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}var tn=class{constructor(e){this.input=e,this.root=new vf,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 wf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,s,o=!1,a=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,s;for(let[o,a]of e.entries()){if(i=a,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new yf;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(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=xf(this.input)}decl(e,t){let r=new Sf;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Cf(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,f);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let c=f;c>0;c--){let d=u[c][0];if(h.trim().startsWith("!")&&d!=="space")break;h=u.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=o.map(f=>f[1]).join(""),o=[]),this.raw(r,"value",o.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 Ls;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,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];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){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,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")s||(s=f),o.push(r==="("?")":"]");else if(a&&i&&r==="{")s||(s=f),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!a)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,o,a=r.length,l="",f=!0,u,h;for(let c=0;c<a;c+=1)s=r[c],o=s[0],o==="space"&&c===a-1&&!i?f=!1:o==="comment"?(h=r[c-1]?r[c-1][0]:"empty",u=r[c+1]?r[c+1][0]:"empty",!Os[h]&&!Os[u]?l.slice(-1)===","?f=!1:l+=s[1]:f=!1):l+=s[1];if(!f){let c=r.reduce((d,m)=>d+m[1],"");e.raws[t]={raw:c,value:l}}e[t]=l}rule(e){e.pop();let t=new Ls;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="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][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",{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})}};Is.exports=tn});var Rs=b((Hh,Ts)=>{"use strict";var bf=dt(),Lf=hs(),Of=Ns();function Yt(n,e){let t=new Lf(n,e),r=new Of(t);try{r.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
25
25
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
|
package/lib/utils/gc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const v8 = require('node:v8');
|
|
2
|
-
const vm = require('node:vm');
|
|
3
|
-
|
|
4
|
-
if (typeof global.gc !== 'function') {
|
|
5
|
-
v8.setFlagsFromString('--expose_gc');
|
|
6
|
-
global.gc = vm.runInNewContext('gc');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
module.exports = global.gc;
|
|
1
|
+
const v8 = require('node:v8');
|
|
2
|
+
const vm = require('node:vm');
|
|
3
|
+
|
|
4
|
+
if (typeof global.gc !== 'function') {
|
|
5
|
+
v8.setFlagsFromString('--expose_gc');
|
|
6
|
+
global.gc = vm.runInNewContext('gc');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = global.gc;
|