monocart-coverage-reports 2.4.3 → 2.5.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.
@@ -25,7 +25,7 @@ var yh=Object.create;var ji=Object.defineProperty;var wh=Object.getOwnPropertyDe
25
25
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let i;return e.walk(s=>{if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(e){let i;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
26
26
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(e){let i;return e.walkDecls(s=>{if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(e){let i;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i}rawIndent(e){if(e.raws.indent)return e.raws.indent;let i;return e.walk(s=>{let n=s.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof s.raws.before<"u"){let r=s.raws.before.split(`
27
27
  `);return i=r[r.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(e){let i;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(e,i){let s=e[i],n=e.raws[i];return n&&n.value===s?n.raw:s}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,i){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,i)}};Gu.exports=Ci;Ci.default=Ci});var $u=y((Gw,Wu)=>{"use strict";var Dx=pr();function hr(t,e){new Dx(e).stringify(t)}Wu.exports=hr;hr.default=hr});var _s=y((Ww,Ku)=>{"use strict";var{isClean:ws,my:Vx}=rr(),Ux=lr(),zx=pr(),Hx=$u();function fr(t,e){let i=new t.constructor;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||s==="proxyCache")continue;let n=t[s],r=typeof n;s==="parent"&&r==="object"?e&&(i[s]=e):s==="source"?i[s]=n:Array.isArray(n)?i[s]=n.map(a=>fr(a,i)):(r==="object"&&n!==null&&(n=fr(n)),i[s]=n)}return i}var Si=class{constructor(e={}){this.raws={},this[ws]=!1,this[Vx]=!0;for(let i in e)if(i==="nodes"){this.nodes=[];for(let s of e[i])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[i]=e[i]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let i=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let i in e)this[i]=e[i];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 i=fr(this);for(let s in e)i[s]=e[s];return i}cloneAfter(e={}){let i=this.clone(e);return this.parent.insertAfter(this,i),i}cloneBefore(e={}){let i=this.clone(e);return this.parent.insertBefore(this,i),i}error(e,i={}){if(this.source){let{end:s,start:n}=this.rangeBy(i);return this.source.input.error(e,{column:n.column,line:n.line},{column:s.column,line:s.line},i)}return new Ux(e)}getProxyProcessor(){return{get(e,i){return i==="proxyOf"?e:i==="root"?()=>e.root().toProxy():e[i]},set(e,i,s){return e[i]===s||(e[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&e.markDirty()),!0}}}markDirty(){if(this[ws]){this[ws]=!1;let e=this;for(;e=e.parent;)e[ws]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,i){let s=this.source.start;if(e.index)s=this.positionInside(e.index,i);else if(e.word){i=this.toString();let n=i.indexOf(e.word);n!==-1&&(s=this.positionInside(n,i))}return s}positionInside(e,i){let s=i||this.toString(),n=this.source.start.column,r=this.source.start.line;for(let a=0;a<e;a++)s[a]===`
28
- `?(n=1,r+=1):n+=1;return{column:n,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let i={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(e.word){let n=this.toString(),r=n.indexOf(e.word);r!==-1&&(i=this.positionInside(r,n),s=this.positionInside(r+e.word.length,n))}else e.start?i={column:e.start.column,line:e.start.line}:e.index&&(i=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<i.line||s.line===i.line&&s.column<=i.column)&&(s={column:i.column+1,line:i.line}),{end:s,start:i}}raw(e,i){return new zx().raw(this,e,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let i=this,s=!1;for(let n of e)n===this?s=!0:s?(this.parent.insertAfter(i,n),i=n):this.parent.insertBefore(i,n);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,i){let s={},n=i==null;i=i||new Map;let r=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))s[a]=o.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,i):u);else if(typeof o=="object"&&o.toJSON)s[a]=o.toJSON(null,i);else if(a==="source"){let u=i.get(o.input);u==null&&(u=r,i.set(o.input,r),r++),s[a]={end:o.end,inputId:u,start:o.start}}else s[a]=o}return n&&(s.inputs=[...i.keys()].map(a=>a.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hx){e.stringify&&(e=e.stringify);let i="";return e(this,s=>{i+=s}),i}warn(e,i,s){let n={node:this};for(let r in s)n[r]=s[r];return e.warn(i,n)}get proxyOf(){return this}};Ku.exports=Si;Si.default=Si});var dr=y(($w,Ju)=>{"use strict";var Gx=_s(),ki=class extends Gx{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]==="$"}};Ju.exports=ki;ki.default=ki});var mr=y((Kw,Qu)=>{"use strict";var Wx=_s(),Ei=class extends Wx{constructor(e){super(e),this.type="comment"}};Qu.exports=Ei;Ei.default=Ei});var Ai=y((Jw,rl)=>{"use strict";var{isClean:Yu,my:Xu}=rr(),Zu=dr(),el=mr(),$x=_s(),tl,xr,vr,il;function sl(t){return t.map(e=>(e.nodes&&(e.nodes=sl(e.nodes)),delete e.source,e))}function nl(t){if(t[Yu]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)nl(e)}var Ie=class t extends $x{append(...e){for(let i of e){let s=this.normalize(i,this.last);for(let n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let i of this.nodes)i.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let i=this.getIterator(),s,n;for(;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],n=e(this.proxyOf.nodes[s],s),n!==!1);)this.indexes[i]+=1;return delete this.indexes[i],n}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,i){return i==="proxyOf"?e:e[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?(...s)=>e[i](...s.map(n=>typeof n=="function"?(r,a)=>n(r.toProxy(),a):n)):i==="every"||i==="some"?s=>e[i]((n,...r)=>s(n.toProxy(),...r)):i==="root"?()=>e.root().toProxy():i==="nodes"?e.nodes.map(s=>s.toProxy()):i==="first"||i==="last"?e[i].toProxy():e[i]:e[i]},set(e,i,s){return e[i]===s||(e[i]=s,(i==="name"||i==="params"||i==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,i){let s=this.index(e),n=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let a of n)this.proxyOf.nodes.splice(s+1,0,a);let r;for(let a in this.indexes)r=this.indexes[a],s<r&&(this.indexes[a]=r+n.length);return this.markDirty(),this}insertBefore(e,i){let s=this.index(e),n=s===0?"prepend":!1,r=this.normalize(i,this.proxyOf.nodes[s],n).reverse();s=this.index(e);for(let o of r)this.proxyOf.nodes.splice(s,0,o);let a;for(let o in this.indexes)a=this.indexes[o],s<=a&&(this.indexes[o]=a+r.length);return this.markDirty(),this}normalize(e,i){if(typeof e=="string")e=sl(tl(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"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 Zu(e)]}else if(e.selector)e=[new xr(e)];else if(e.name)e=[new vr(e)];else if(e.text)e=[new el(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Xu]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Yu]&&nl(n),typeof n.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(n.raws.before=i.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let i of e){let s=this.normalize(i,this.first,"prepend").reverse();for(let n of s)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+s.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 i;for(let s in this.indexes)i=this.indexes[s],i>=e&&(this.indexes[s]=i-1);return this.markDirty(),this}replaceValues(e,i,s){return s||(s=i,i={}),this.walkDecls(n=>{i.props&&!i.props.includes(n.prop)||i.fast&&!n.value.includes(i.fast)||(n.value=n.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((i,s)=>{let n;try{n=e(i,s)}catch(r){throw i.addToError(r)}return n!==!1&&i.walk&&(n=i.walk(e)),n})}walkAtRules(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="atrule"&&e.test(s.name))return i(s,n)}):this.walk((s,n)=>{if(s.type==="atrule"&&s.name===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="atrule")return i(s,n)}))}walkComments(e){return this.walk((i,s)=>{if(i.type==="comment")return e(i,s)})}walkDecls(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="decl"&&e.test(s.prop))return i(s,n)}):this.walk((s,n)=>{if(s.type==="decl"&&s.prop===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="decl")return i(s,n)}))}walkRules(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="rule"&&e.test(s.selector))return i(s,n)}):this.walk((s,n)=>{if(s.type==="rule"&&s.selector===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="rule")return i(s,n)}))}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]}};Ie.registerParse=t=>{tl=t};Ie.registerRule=t=>{xr=t};Ie.registerAtRule=t=>{vr=t};Ie.registerRoot=t=>{il=t};rl.exports=Ie;Ie.default=Ie;Ie.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,vr.prototype):t.type==="rule"?Object.setPrototypeOf(t,xr.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zu.prototype):t.type==="comment"?Object.setPrototypeOf(t,el.prototype):t.type==="root"&&Object.setPrototypeOf(t,il.prototype),t[Xu]=!0,t.nodes&&t.nodes.forEach(e=>{Ie.rebuild(e)})}});var cl=y((Qw,ol)=>{"use strict";var al=Ai(),Vt=class extends al{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)}};ol.exports=Vt;Vt.default=Vt;al.registerAtRule(Vt)});var fl=y((Yw,hl)=>{"use strict";var ul=Ai(),ll,pl,at=class extends ul{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,i,s){let n=super.normalize(e);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let r of n)r.raws.before=i.raws.before}return n}removeChild(e,i){let s=this.index(e);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new ll(new pl,this,e).stringify()}};at.registerLazyResult=t=>{ll=t};at.registerProcessor=t=>{pl=t};hl.exports=at;at.default=at;ul.registerRoot(at)});var ml=y((Xw,dl)=>{"use strict";var Oi={comma(t){return Oi.split(t,[","],!0)},space(t){let e=[" ",`
28
+ `?(n=1,r+=1):n+=1;return{column:n,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let i={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(e.word){let n=this.toString(),r=n.indexOf(e.word);r!==-1&&(i=this.positionInside(r,n),s=this.positionInside(r+e.word.length,n))}else e.start?i={column:e.start.column,line:e.start.line}:e.index&&(i=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<i.line||s.line===i.line&&s.column<=i.column)&&(s={column:i.column+1,line:i.line}),{end:s,start:i}}raw(e,i){return new zx().raw(this,e,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let i=this,s=!1;for(let n of e)n===this?s=!0:s?(this.parent.insertAfter(i,n),i=n):this.parent.insertBefore(i,n);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,i){let s={},n=i==null;i=i||new Map;let r=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))s[a]=o.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,i):u);else if(typeof o=="object"&&o.toJSON)s[a]=o.toJSON(null,i);else if(a==="source"){let u=i.get(o.input);u==null&&(u=r,i.set(o.input,r),r++),s[a]={end:o.end,inputId:u,start:o.start}}else s[a]=o}return n&&(s.inputs=[...i.keys()].map(a=>a.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hx){e.stringify&&(e=e.stringify);let i="";return e(this,s=>{i+=s}),i}warn(e,i,s){let n={node:this};for(let r in s)n[r]=s[r];return e.warn(i,n)}get proxyOf(){return this}};Ku.exports=Si;Si.default=Si});var dr=y(($w,Ju)=>{"use strict";var Gx=_s(),ki=class extends Gx{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]==="$"}};Ju.exports=ki;ki.default=ki});var mr=y((Kw,Qu)=>{"use strict";var Wx=_s(),Ei=class extends Wx{constructor(e){super(e),this.type="comment"}};Qu.exports=Ei;Ei.default=Ei});var Ai=y((Jw,rl)=>{"use strict";var{isClean:Yu,my:Xu}=rr(),Zu=dr(),el=mr(),$x=_s(),tl,xr,vr,il;function sl(t){return t.map(e=>(e.nodes&&(e.nodes=sl(e.nodes)),delete e.source,e))}function nl(t){if(t[Yu]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)nl(e)}var Ie=class t extends $x{append(...e){for(let i of e){let s=this.normalize(i,this.last);for(let n of s)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let i of this.nodes)i.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let i=this.getIterator(),s,n;for(;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],n=e(this.proxyOf.nodes[s],s),n!==!1);)this.indexes[i]+=1;return delete this.indexes[i],n}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,i){return i==="proxyOf"?e:e[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?(...s)=>e[i](...s.map(n=>typeof n=="function"?(r,a)=>n(r.toProxy(),a):n)):i==="every"||i==="some"?s=>e[i]((n,...r)=>s(n.toProxy(),...r)):i==="root"?()=>e.root().toProxy():i==="nodes"?e.nodes.map(s=>s.toProxy()):i==="first"||i==="last"?e[i].toProxy():e[i]:e[i]},set(e,i,s){return e[i]===s||(e[i]=s,(i==="name"||i==="params"||i==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,i){let s=this.index(e),n=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let a of n)this.proxyOf.nodes.splice(s+1,0,a);let r;for(let a in this.indexes)r=this.indexes[a],s<r&&(this.indexes[a]=r+n.length);return this.markDirty(),this}insertBefore(e,i){let s=this.index(e),n=s===0?"prepend":!1,r=this.normalize(i,this.proxyOf.nodes[s],n).reverse();s=this.index(e);for(let o of r)this.proxyOf.nodes.splice(s,0,o);let a;for(let o in this.indexes)a=this.indexes[o],s<=a&&(this.indexes[o]=a+r.length);return this.markDirty(),this}normalize(e,i){if(typeof e=="string")e=sl(tl(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"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 Zu(e)]}else if(e.selector)e=[new xr(e)];else if(e.name)e=[new vr(e)];else if(e.text)e=[new el(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Xu]||t.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Yu]&&nl(n),typeof n.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(n.raws.before=i.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let i of e){let s=this.normalize(i,this.first,"prepend").reverse();for(let n of s)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+s.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 i;for(let s in this.indexes)i=this.indexes[s],i>=e&&(this.indexes[s]=i-1);return this.markDirty(),this}replaceValues(e,i,s){return s||(s=i,i={}),this.walkDecls(n=>{i.props&&!i.props.includes(n.prop)||i.fast&&!n.value.includes(i.fast)||(n.value=n.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((i,s)=>{let n;try{n=e(i,s)}catch(r){throw i.addToError(r)}return n!==!1&&i.walk&&(n=i.walk(e)),n})}walkAtRules(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="atrule"&&e.test(s.name))return i(s,n)}):this.walk((s,n)=>{if(s.type==="atrule"&&s.name===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="atrule")return i(s,n)}))}walkComments(e){return this.walk((i,s)=>{if(i.type==="comment")return e(i,s)})}walkDecls(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="decl"&&e.test(s.prop))return i(s,n)}):this.walk((s,n)=>{if(s.type==="decl"&&s.prop===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="decl")return i(s,n)}))}walkRules(e,i){return i?e instanceof RegExp?this.walk((s,n)=>{if(s.type==="rule"&&e.test(s.selector))return i(s,n)}):this.walk((s,n)=>{if(s.type==="rule"&&s.selector===e)return i(s,n)}):(i=e,this.walk((s,n)=>{if(s.type==="rule")return i(s,n)}))}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]}};Ie.registerParse=t=>{tl=t};Ie.registerRule=t=>{xr=t};Ie.registerAtRule=t=>{vr=t};Ie.registerRoot=t=>{il=t};rl.exports=Ie;Ie.default=Ie;Ie.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,vr.prototype):t.type==="rule"?Object.setPrototypeOf(t,xr.prototype):t.type==="decl"?Object.setPrototypeOf(t,Zu.prototype):t.type==="comment"?Object.setPrototypeOf(t,el.prototype):t.type==="root"&&Object.setPrototypeOf(t,il.prototype),t[Xu]=!0,t.nodes&&t.nodes.forEach(e=>{Ie.rebuild(e)})}});var cl=y((Qw,ol)=>{"use strict";var al=Ai(),Vt=class extends al{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)}};ol.exports=Vt;Vt.default=Vt;al.registerAtRule(Vt)});var fl=y((Yw,hl)=>{"use strict";var ul=Ai(),ll,pl,at=class extends ul{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,i,s){let n=super.normalize(e);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let r of n)r.raws.before=i.raws.before}return n}removeChild(e,i){let s=this.index(e);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new ll(new pl,this,e).stringify()}};at.registerLazyResult=t=>{ll=t};at.registerProcessor=t=>{pl=t};hl.exports=at;at.default=at;ul.registerRoot(at)});var ml=y((Xw,dl)=>{"use strict";var Oi={comma(t){return Oi.split(t,[","],!0)},space(t){let e=[" ",`
29
29
  `," "];return Oi.split(t,e)},split(t,e,i){let s=[],n="",r=!1,a=0,o=!1,u="",p=!1;for(let l of t)p?p=!1:l==="\\"?p=!0:o?l===u&&(o=!1):l==='"'||l==="'"?(o=!0,u=l):l==="("?a+=1:l===")"?a>0&&(a-=1):a===0&&e.includes(l)&&(r=!0),r?(n!==""&&s.push(n.trim()),n="",r=!1):n+=l;return(i||n!=="")&&s.push(n.trim()),s}};dl.exports=Oi;Oi.default=Oi});var gl=y((Zw,vl)=>{"use strict";var xl=Ai(),Kx=ml(),Ut=class extends xl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Kx.comma(this.selector)}set selectors(e){let i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};vl.exports=Ut;Ut.default=Ut;xl.registerRule(Ut)});var _l=y((e1,wl)=>{"use strict";var Jx=dr(),Qx=cr(),Yx=mr(),Xx=cl(),Zx=fl(),bl=gl(),yl={empty:!0,space:!0};function ev(t){for(let e=t.length-1;e>=0;e--){let i=t[e],s=i[3]||i[2];if(s)return s}}var gr=class{constructor(e){this.input=e,this.root=new Zx,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 i=new Xx;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let s,n,r,a=!1,o=!1,u=[],p=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?p.push(s==="("?")":"]"):s==="{"&&p.length>0?p.push("}"):s===p[p.length-1]&&p.pop(),p.length===0)if(s===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){o=!0;break}else if(s==="}"){if(u.length>0){for(r=u.length-1,n=u[r];n&&n[0]==="space";)n=u[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(i.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(i,"params",u),a&&(e=u[u.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let s=0,n;for(let r=i-1;r>=0&&(n=e[r],!(n[0]!=="space"&&(s+=1,s===2)));r--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,s,n,r;for(let[a,o]of e.entries()){if(s=o,n=s[0],n==="("&&(i+=1),n===")"&&(i-=1),i===0&&n===":")if(!r)this.doubleColon(s);else{if(r[0]==="word"&&r[1]==="progid")continue;return a}r=s}return!1}comment(e){let i=new Yx;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))i.text="",i.raws.left=s,i.raws.right="";else{let n=s.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=Qx(this.input)}decl(e,i){let s=new Jx;this.init(s,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(n[3]||n[2]||ev(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let p=e[0][0];if(p===":"||p==="space"||p==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){s.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),s.raws.between+=r[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let p=e.length-1;p>=0;p--){if(r=e[p],r[1].toLowerCase()==="!important"){s.important=!0;let l=this.stringFrom(e,p);l=this.spacesFromEnd(e)+l,l!==" !important"&&(s.raws.important=l);break}else if(r[1].toLowerCase()==="important"){let l=e.slice(0),h="";for(let f=p;f>0;f--){let v=l[f][0];if(h.trim().indexOf("!")===0&&v!=="space")break;h=l.pop()[1]+h}h.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=h,e=l)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(s.raws.between+=a.map(p=>p[1]).join(""),a=[]),this.raw(s,"value",a.concat(e),i),s.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new bl;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}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 i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,s=null,n=!1,r=null,a=[],o=e[1].startsWith("--"),u=[],p=e;for(;p;){if(s=p[0],u.push(p),s==="("||s==="[")r||(r=p),a.push(s==="("?")":"]");else if(o&&n&&s==="{")r||(r=p),a.push("}");else if(a.length===0)if(s===";")if(n){this.decl(u,o);return}else break;else if(s==="{"){this.rule(u);return}else if(s==="}"){this.tokenizer.back(u.pop()),i=!0;break}else s===":"&&(n=!0);else s===a[a.length-1]&&(a.pop(),a.length===0&&(r=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(r),i&&n){if(!o)for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,o)}else this.unknownWord(u)}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,i,s,n){let r,a,o=s.length,u="",p=!0,l,h;for(let f=0;f<o;f+=1)r=s[f],a=r[0],a==="space"&&f===o-1&&!n?p=!1:a==="comment"?(h=s[f-1]?s[f-1][0]:"empty",l=s[f+1]?s[f+1][0]:"empty",!yl[h]&&!yl[l]?u.slice(-1)===","?p=!1:u+=r[1]:p=!1):u+=r[1];if(!p){let f=s.reduce((v,m)=>v+m[1],"");e.raws[i]={raw:f,value:u}}e[i]=u}rule(e){e.pop();let i=new bl;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,s="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let i,s="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let i,s="";for(;e.length&&(i=e[e.length-1][0],i==="space");)s=e.pop()[1]+s;return s}stringFrom(e,i){let s="";for(let n=i;n<e.length;n++)s+=e[n][1];return e.splice(i,e.length-i),s}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,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};wl.exports=gr});var Sl=y(br=>{var Cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");br.encode=function(t){if(0<=t&&t<Cl.length)return Cl[t];throw new TypeError("Must be between 0 and 63: "+t)};br.decode=function(t){var e=65,i=90,s=97,n=122,r=48,a=57,o=43,u=47,p=26,l=52;return e<=t&&t<=i?t-e:s<=t&&t<=n?t-s+p:r<=t&&t<=a?t-r+l:t==o?62:t==u?63:-1}});var _r=y(wr=>{var kl=Sl(),yr=5,El=1<<yr,Al=El-1,Ol=El;function tv(t){return t<0?(-t<<1)+1:(t<<1)+0}function iv(t){var e=(t&1)===1,i=t>>1;return e?-i:i}wr.encode=function(e){var i="",s,n=tv(e);do s=n&Al,n>>>=yr,n>0&&(s|=Ol),i+=kl.encode(s);while(n>0);return i};wr.decode=function(e,i,s){var n=e.length,r=0,a=0,o,u;do{if(i>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(u=kl.decode(e.charCodeAt(i++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));o=!!(u&Ol),u&=Al,r=r+(u<<a),a+=yr}while(o);s.value=iv(r),s.rest=i}});var Ht=y(X=>{function sv(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}X.getArg=sv;var Nl=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,nv=/^data:.+\,.+$/;function Ni(t){var e=t.match(Nl);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}X.urlParse=Ni;function zt(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}X.urlGenerate=zt;var rv=32;function av(t){var e=[];return function(i){for(var s=0;s<e.length;s++)if(e[s].input===i){var n=e[0];return e[0]=e[s],e[s]=n,e[0].result}var r=t(i);return e.unshift({input:i,result:r}),e.length>rv&&e.pop(),r}}var Cr=av(function(e){var i=e,s=Ni(e);if(s){if(!s.path)return e;i=s.path}for(var n=X.isAbsolute(i),r=[],a=0,o=0;;)if(a=o,o=i.indexOf("/",a),o===-1){r.push(i.slice(a));break}else for(r.push(i.slice(a,o));o<i.length&&i[o]==="/";)o++;for(var u,p=0,o=r.length-1;o>=0;o--)u=r[o],u==="."?r.splice(o,1):u===".."?p++:p>0&&(u===""?(r.splice(o+1,p),p=0):(r.splice(o,2),p--));return i=r.join("/"),i===""&&(i=n?"/":"."),s?(s.path=i,zt(s)):i});X.normalize=Cr;function Ll(t,e){t===""&&(t="."),e===""&&(e=".");var i=Ni(e),s=Ni(t);if(s&&(t=s.path||"/"),i&&!i.scheme)return s&&(i.scheme=s.scheme),zt(i);if(i||e.match(nv))return e;if(s&&!s.host&&!s.path)return s.host=e,zt(s);var n=e.charAt(0)==="/"?e:Cr(t.replace(/\/+$/,"")+"/"+e);return s?(s.path=n,zt(s)):n}X.join=Ll;X.isAbsolute=function(t){return t.charAt(0)==="/"||Nl.test(t)};function ov(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var s=t.lastIndexOf("/");if(s<0||(t=t.slice(0,s),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}X.relative=ov;var Rl=function(){var t=Object.create(null);return!("__proto__"in t)}();function Il(t){return t}function cv(t){return Pl(t)?"$"+t:t}X.toSetString=Rl?Il:cv;function uv(t){return Pl(t)?t.slice(1):t}X.fromSetString=Rl?Il:uv;function Pl(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function lv(t,e,i){var s=We(t.source,e.source);return s!==0||(s=t.originalLine-e.originalLine,s!==0)||(s=t.originalColumn-e.originalColumn,s!==0||i)||(s=t.generatedColumn-e.generatedColumn,s!==0)||(s=t.generatedLine-e.generatedLine,s!==0)?s:We(t.name,e.name)}X.compareByOriginalPositions=lv;function pv(t,e,i){var s;return s=t.originalLine-e.originalLine,s!==0||(s=t.originalColumn-e.originalColumn,s!==0||i)||(s=t.generatedColumn-e.generatedColumn,s!==0)||(s=t.generatedLine-e.generatedLine,s!==0)?s:We(t.name,e.name)}X.compareByOriginalPositionsNoSource=pv;function hv(t,e,i){var s=t.generatedLine-e.generatedLine;return s!==0||(s=t.generatedColumn-e.generatedColumn,s!==0||i)||(s=We(t.source,e.source),s!==0)||(s=t.originalLine-e.originalLine,s!==0)||(s=t.originalColumn-e.originalColumn,s!==0)?s:We(t.name,e.name)}X.compareByGeneratedPositionsDeflated=hv;function fv(t,e,i){var s=t.generatedColumn-e.generatedColumn;return s!==0||i||(s=We(t.source,e.source),s!==0)||(s=t.originalLine-e.originalLine,s!==0)||(s=t.originalColumn-e.originalColumn,s!==0)?s:We(t.name,e.name)}X.compareByGeneratedPositionsDeflatedNoLine=fv;function We(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function dv(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=We(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:We(t.name,e.name)}X.compareByGeneratedPositionsInflated=dv;function mv(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}X.parseSourceMapInput=mv;function xv(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var s=Ni(i);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var n=s.path.lastIndexOf("/");n>=0&&(s.path=s.path.substring(0,n+1))}e=Ll(zt(s),e)}return Cr(e)}X.computeSourceURL=xv});var Er=y(Tl=>{var Sr=Ht(),kr=Object.prototype.hasOwnProperty,bt=typeof Map<"u";function $e(){this._array=[],this._set=bt?new Map:Object.create(null)}$e.fromArray=function(e,i){for(var s=new $e,n=0,r=e.length;n<r;n++)s.add(e[n],i);return s};$e.prototype.size=function(){return bt?this._set.size:Object.getOwnPropertyNames(this._set).length};$e.prototype.add=function(e,i){var s=bt?e:Sr.toSetString(e),n=bt?this.has(e):kr.call(this._set,s),r=this._array.length;(!n||i)&&this._array.push(e),n||(bt?this._set.set(e,r):this._set[s]=r)};$e.prototype.has=function(e){if(bt)return this._set.has(e);var i=Sr.toSetString(e);return kr.call(this._set,i)};$e.prototype.indexOf=function(e){if(bt){var i=this._set.get(e);if(i>=0)return i}else{var s=Sr.toSetString(e);if(kr.call(this._set,s))return this._set[s]}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()};Tl.ArraySet=$e});var Bl=y(jl=>{var Fl=Ht();function vv(t,e){var i=t.generatedLine,s=e.generatedLine,n=t.generatedColumn,r=e.generatedColumn;return s>i||s==i&&r>=n||Fl.compareByGeneratedPositionsInflated(t,e)<=0}function Cs(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Cs.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};Cs.prototype.add=function(e){vv(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Cs.prototype.toArray=function(){return this._sorted||(this._array.sort(Fl.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};jl.MappingList=Cs});var Ar=y(Ml=>{var Li=_r(),$=Ht(),Ss=Er().ArraySet,gv=Bl().MappingList;function Ee(t){t||(t={}),this._file=$.getArg(t,"file",null),this._sourceRoot=$.getArg(t,"sourceRoot",null),this._skipValidation=$.getArg(t,"skipValidation",!1),this._sources=new Ss,this._names=new Ss,this._mappings=new gv,this._sourcesContents=null}Ee.prototype._version=3;Ee.fromSourceMap=function(e){var i=e.sourceRoot,s=new Ee({file:e.file,sourceRoot:i});return e.eachMapping(function(n){var r={generated:{line:n.generatedLine,column:n.generatedColumn}};n.source!=null&&(r.source=n.source,i!=null&&(r.source=$.relative(i,r.source)),r.original={line:n.originalLine,column:n.originalColumn},n.name!=null&&(r.name=n.name)),s.addMapping(r)}),e.sources.forEach(function(n){var r=n;i!==null&&(r=$.relative(i,n)),s._sources.has(r)||s._sources.add(r);var a=e.sourceContentFor(n);a!=null&&s.setSourceContent(n,a)}),s};Ee.prototype.addMapping=function(e){var i=$.getArg(e,"generated"),s=$.getArg(e,"original",null),n=$.getArg(e,"source",null),r=$.getArg(e,"name",null);this._skipValidation||this._validateMapping(i,s,n,r),n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),r!=null&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:n,name:r})};Ee.prototype.setSourceContent=function(e,i){var s=e;this._sourceRoot!=null&&(s=$.relative(this._sourceRoot,s)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[$.toSetString(s)]=i):this._sourcesContents&&(delete this._sourcesContents[$.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ee.prototype.applySourceMap=function(e,i,s){var n=i;if(i==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.`);n=e.file}var r=this._sourceRoot;r!=null&&(n=$.relative(r,n));var a=new Ss,o=new Ss;this._mappings.unsortedForEach(function(u){if(u.source===n&&u.originalLine!=null){var p=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});p.source!=null&&(u.source=p.source,s!=null&&(u.source=$.join(s,u.source)),r!=null&&(u.source=$.relative(r,u.source)),u.originalLine=p.line,u.originalColumn=p.column,p.name!=null&&(u.name=p.name))}var l=u.source;l!=null&&!a.has(l)&&a.add(l);var h=u.name;h!=null&&!o.has(h)&&o.add(h)},this),this._sources=a,this._names=o,e.sources.forEach(function(u){var p=e.sourceContentFor(u);p!=null&&(s!=null&&(u=$.join(s,u)),r!=null&&(u=$.relative(r,u)),this.setSourceContent(u,p))},this)};Ee.prototype._validateMapping=function(e,i,s,n){if(i&&typeof i.line!="number"&&typeof i.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!s&&!n)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:s,original:i,name:n}))}};Ee.prototype._serializeMappings=function(){for(var e=0,i=1,s=0,n=0,r=0,a=0,o="",u,p,l,h,f=this._mappings.toArray(),v=0,m=f.length;v<m;v++){if(p=f[v],u="",p.generatedLine!==i)for(e=0;p.generatedLine!==i;)u+=";",i++;else if(v>0){if(!$.compareByGeneratedPositionsInflated(p,f[v-1]))continue;u+=","}u+=Li.encode(p.generatedColumn-e),e=p.generatedColumn,p.source!=null&&(h=this._sources.indexOf(p.source),u+=Li.encode(h-a),a=h,u+=Li.encode(p.originalLine-1-n),n=p.originalLine-1,u+=Li.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(l=this._names.indexOf(p.name),u+=Li.encode(l-r),r=l)),o+=u}return o};Ee.prototype._generateSourcesContent=function(e,i){return e.map(function(s){if(!this._sourcesContents)return null;i!=null&&(s=$.relative(i,s));var n=$.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};Ee.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};Ee.prototype.toString=function(){return JSON.stringify(this.toJSON())};Ml.SourceMapGenerator=Ee});var ql=y(yt=>{yt.GREATEST_LOWER_BOUND=1;yt.LEAST_UPPER_BOUND=2;function Or(t,e,i,s,n,r){var a=Math.floor((e-t)/2)+t,o=n(i,s[a],!0);return o===0?a:o>0?e-a>1?Or(a,e,i,s,n,r):r==yt.LEAST_UPPER_BOUND?e<s.length?e:-1:a:a-t>1?Or(t,a,i,s,n,r):r==yt.LEAST_UPPER_BOUND?a:t<0?-1:t}yt.search=function(e,i,s,n){if(i.length===0)return-1;var r=Or(-1,i.length,e,i,s,n||yt.GREATEST_LOWER_BOUND);if(r<0)return-1;for(;r-1>=0&&s(i[r],i[r-1],!0)===0;)--r;return r}});var Ul=y(Vl=>{function bv(t){function e(n,r,a){var o=n[r];n[r]=n[a],n[a]=o}function i(n,r){return Math.round(n+Math.random()*(r-n))}function s(n,r,a,o){if(a<o){var u=i(a,o),p=a-1;e(n,u,o);for(var l=n[o],h=a;h<o;h++)r(n[h],l,!1)<=0&&(p+=1,e(n,p,h));e(n,p+1,h);var f=p+1;s(n,r,a,f-1),s(n,r,f+1,o)}}return s}function yv(t){let e=bv.toString();return new Function(`return ${e}`)()(t)}var Dl=new WeakMap;Vl.quickSort=function(t,e,i=0){let s=Dl.get(e);s===void 0&&(s=yv(e),Dl.set(e,s)),s(t,e,i,t.length-1)}});var Gl=y(ks=>{var C=Ht(),Lr=ql(),Gt=Er().ArraySet,wv=_r(),Ri=Ul().quickSort;function M(t,e){var i=t;return typeof t=="string"&&(i=C.parseSourceMapInput(t)),i.sections!=null?new Pe(i,e):new se(i,e)}M.fromSourceMap=function(t,e){return se.fromSourceMap(t,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,i){var s=e.charAt(i);return s===";"||s===","};M.prototype._parseMappings=function(e,i){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,i,s){var n=i||null,r=s||M.GENERATED_ORDER,a;switch(r){case M.GENERATED_ORDER:a=this._generatedMappings;break;case M.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,u=e.bind(n),p=this._names,l=this._sources,h=this._sourceMapURL,f=0,v=a.length;f<v;f++){var m=a[f],x=m.source===null?null:l.at(m.source);x=C.computeSourceURL(o,x,h),u({source:x,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:p.at(m.name)})}};M.prototype.allGeneratedPositionsFor=function(e){var i=C.getArg(e,"line"),s={source:C.getArg(e,"source"),originalLine:i,originalColumn:C.getArg(e,"column",0)};if(s.source=this._findSourceIndex(s.source),s.source<0)return[];var n=[],r=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,Lr.LEAST_UPPER_BOUND);if(r>=0){var a=this._originalMappings[r];if(e.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:C.getArg(a,"generatedLine",null),column:C.getArg(a,"generatedColumn",null),lastColumn:C.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++r];else for(var u=a.originalColumn;a&&a.originalLine===i&&a.originalColumn==u;)n.push({line:C.getArg(a,"generatedLine",null),column:C.getArg(a,"generatedColumn",null),lastColumn:C.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++r]}return n};ks.SourceMapConsumer=M;function se(t,e){var i=t;typeof t=="string"&&(i=C.parseSourceMapInput(t));var s=C.getArg(i,"version"),n=C.getArg(i,"sources"),r=C.getArg(i,"names",[]),a=C.getArg(i,"sourceRoot",null),o=C.getArg(i,"sourcesContent",null),u=C.getArg(i,"mappings"),p=C.getArg(i,"file",null);if(s!=this._version)throw new Error("Unsupported version: "+s);a&&(a=C.normalize(a)),n=n.map(String).map(C.normalize).map(function(l){return a&&C.isAbsolute(a)&&C.isAbsolute(l)?C.relative(a,l):l}),this._names=Gt.fromArray(r.map(String),!0),this._sources=Gt.fromArray(n,!0),this._absoluteSources=this._sources.toArray().map(function(l){return C.computeSourceURL(a,l,e)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=u,this._sourceMapURL=e,this.file=p}se.prototype=Object.create(M.prototype);se.prototype.consumer=M;se.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=C.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==t)return i;return-1};se.fromSourceMap=function(e,i){var s=Object.create(se.prototype),n=s._names=Gt.fromArray(e._names.toArray(),!0),r=s._sources=Gt.fromArray(e._sources.toArray(),!0);s.sourceRoot=e._sourceRoot,s.sourcesContent=e._generateSourcesContent(s._sources.toArray(),s.sourceRoot),s.file=e._file,s._sourceMapURL=i,s._absoluteSources=s._sources.toArray().map(function(v){return C.computeSourceURL(s.sourceRoot,v,i)});for(var a=e._mappings.toArray().slice(),o=s.__generatedMappings=[],u=s.__originalMappings=[],p=0,l=a.length;p<l;p++){var h=a[p],f=new Hl;f.generatedLine=h.generatedLine,f.generatedColumn=h.generatedColumn,h.source&&(f.source=r.indexOf(h.source),f.originalLine=h.originalLine,f.originalColumn=h.originalColumn,h.name&&(f.name=n.indexOf(h.name)),u.push(f)),o.push(f)}return Ri(s.__originalMappings,C.compareByOriginalPositions),s};se.prototype._version=3;Object.defineProperty(se.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Hl(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Nr=C.compareByGeneratedPositionsDeflatedNoLine;function zl(t,e){let i=t.length,s=t.length-e;if(!(s<=1))if(s==2){let n=t[e],r=t[e+1];Nr(n,r)>0&&(t[e]=r,t[e+1]=n)}else if(s<20)for(let n=e;n<i;n++)for(let r=n;r>e;r--){let a=t[r-1],o=t[r];if(Nr(a,o)<=0)break;t[r-1]=o,t[r]=a}else Ri(t,Nr,e)}se.prototype._parseMappings=function(e,i){var s=1,n=0,r=0,a=0,o=0,u=0,p=e.length,l=0,h={},f={},v=[],m=[],x,g,S,L,R;let q=0;for(;l<p;)if(e.charAt(l)===";")s++,l++,n=0,zl(m,q),q=m.length;else if(e.charAt(l)===",")l++;else{for(x=new Hl,x.generatedLine=s,L=l;L<p&&!this._charIsMappingSeparator(e,L);L++);for(g=e.slice(l,L),S=[];l<L;)wv.decode(e,l,f),R=f.value,l=f.rest,S.push(R);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");if(x.generatedColumn=n+S[0],n=x.generatedColumn,S.length>1&&(x.source=o+S[1],o+=S[1],x.originalLine=r+S[2],r=x.originalLine,x.originalLine+=1,x.originalColumn=a+S[3],a=x.originalColumn,S.length>4&&(x.name=u+S[4],u+=S[4])),m.push(x),typeof x.originalLine=="number"){let le=x.source;for(;v.length<=le;)v.push(null);v[le]===null&&(v[le]=[]),v[le].push(x)}}zl(m,q),this.__generatedMappings=m;for(var D=0;D<v.length;D++)v[D]!=null&&Ri(v[D],C.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...v)};se.prototype._findMapping=function(e,i,s,n,r,a){if(e[s]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[s]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return Lr.search(e,i,r,a)};se.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var i=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var s=this._generatedMappings[e+1];if(i.generatedLine===s.generatedLine){i.lastGeneratedColumn=s.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};se.prototype.originalPositionFor=function(e){var i={generatedLine:C.getArg(e,"line"),generatedColumn:C.getArg(e,"column")},s=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",C.compareByGeneratedPositionsDeflated,C.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(s>=0){var n=this._generatedMappings[s];if(n.generatedLine===i.generatedLine){var r=C.getArg(n,"source",null);r!==null&&(r=this._sources.at(r),r=C.computeSourceURL(this.sourceRoot,r,this._sourceMapURL));var a=C.getArg(n,"name",null);return a!==null&&(a=this._names.at(a)),{source:r,line:C.getArg(n,"originalLine",null),column:C.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};se.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};se.prototype.sourceContentFor=function(e,i){if(!this.sourcesContent)return null;var s=this._findSourceIndex(e);if(s>=0)return this.sourcesContent[s];var n=e;this.sourceRoot!=null&&(n=C.relative(this.sourceRoot,n));var r;if(this.sourceRoot!=null&&(r=C.urlParse(this.sourceRoot))){var a=n.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!r.path||r.path=="/")&&this._sources.has("/"+n))return this.sourcesContent[this._sources.indexOf("/"+n)]}if(i)return null;throw new Error('"'+n+'" is not in the SourceMap.')};se.prototype.generatedPositionFor=function(e){var i=C.getArg(e,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var s={source:i,originalLine:C.getArg(e,"line"),originalColumn:C.getArg(e,"column")},n=this._findMapping(s,this._originalMappings,"originalLine","originalColumn",C.compareByOriginalPositions,C.getArg(e,"bias",M.GREATEST_LOWER_BOUND));if(n>=0){var r=this._originalMappings[n];if(r.source===s.source)return{line:C.getArg(r,"generatedLine",null),column:C.getArg(r,"generatedColumn",null),lastColumn:C.getArg(r,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ks.BasicSourceMapConsumer=se;function Pe(t,e){var i=t;typeof t=="string"&&(i=C.parseSourceMapInput(t));var s=C.getArg(i,"version"),n=C.getArg(i,"sections");if(s!=this._version)throw new Error("Unsupported version: "+s);this._sources=new Gt,this._names=new Gt;var r={line:-1,column:0};this._sections=n.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=C.getArg(a,"offset"),u=C.getArg(o,"line"),p=C.getArg(o,"column");if(u<r.line||u===r.line&&p<r.column)throw new Error("Section offsets must be ordered and non-overlapping.");return r=o,{generatedOffset:{generatedLine:u+1,generatedColumn:p+1},consumer:new M(C.getArg(a,"map"),e)}})}Pe.prototype=Object.create(M.prototype);Pe.prototype.constructor=M;Pe.prototype._version=3;Object.defineProperty(Pe.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var i=0;i<this._sections[e].consumer.sources.length;i++)t.push(this._sections[e].consumer.sources[i]);return t}});Pe.prototype.originalPositionFor=function(e){var i={generatedLine:C.getArg(e,"line"),generatedColumn:C.getArg(e,"column")},s=Lr.search(i,this._sections,function(r,a){var o=r.generatedLine-a.generatedOffset.generatedLine;return o||r.generatedColumn-a.generatedOffset.generatedColumn}),n=this._sections[s];return n?n.consumer.originalPositionFor({line:i.generatedLine-(n.generatedOffset.generatedLine-1),column:i.generatedColumn-(n.generatedOffset.generatedLine===i.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Pe.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Pe.prototype.sourceContentFor=function(e,i){for(var s=0;s<this._sections.length;s++){var n=this._sections[s],r=n.consumer.sourceContentFor(e,!0);if(r)return r}if(i)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Pe.prototype.generatedPositionFor=function(e){for(var i=0;i<this._sections.length;i++){var s=this._sections[i];if(s.consumer._findSourceIndex(C.getArg(e,"source"))!==-1){var n=s.consumer.generatedPositionFor(e);if(n){var r={line:n.line+(s.generatedOffset.generatedLine-1),column:n.column+(s.generatedOffset.generatedLine===n.line?s.generatedOffset.generatedColumn-1:0)};return r}}}return{line:null,column:null}};Pe.prototype._parseMappings=function(e,i){this.__generatedMappings=[],this.__originalMappings=[];for(var s=0;s<this._sections.length;s++)for(var n=this._sections[s],r=n.consumer._generatedMappings,a=0;a<r.length;a++){var o=r[a],u=n.consumer._sources.at(o.source);u=C.computeSourceURL(n.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var p=null;o.name&&(p=n.consumer._names.at(o.name),this._names.add(p),p=this._names.indexOf(p));var l={source:u,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:p};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}Ri(this.__generatedMappings,C.compareByGeneratedPositionsDeflated),Ri(this.__originalMappings,C.compareByOriginalPositions)};ks.IndexedSourceMapConsumer=Pe});var $l=y(Wl=>{var _v=Ar().SourceMapGenerator,Es=Ht(),Cv=/(\r?\n)/,Sv=10,Wt="$$$isSourceNode$$$";function ve(t,e,i,s,n){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=i??null,this.name=n??null,this[Wt]=!0,s!=null&&this.add(s)}ve.fromStringWithSourceMap=function(e,i,s){var n=new ve,r=e.split(Cv),a=0,o=function(){var f=m(),v=m()||"";return f+v;function m(){return a<r.length?r[a++]:void 0}},u=1,p=0,l=null;return i.eachMapping(function(f){if(l!==null)if(u<f.generatedLine)h(l,o()),u++,p=0;else{var v=r[a]||"",m=v.substr(0,f.generatedColumn-p);r[a]=v.substr(f.generatedColumn-p),p=f.generatedColumn,h(l,m),l=f;return}for(;u<f.generatedLine;)n.add(o()),u++;if(p<f.generatedColumn){var v=r[a]||"";n.add(v.substr(0,f.generatedColumn)),r[a]=v.substr(f.generatedColumn),p=f.generatedColumn}l=f},this),a<r.length&&(l&&h(l,o()),n.add(r.splice(a).join(""))),i.sources.forEach(function(f){var v=i.sourceContentFor(f);v!=null&&(s!=null&&(f=Es.join(s,f)),n.setSourceContent(f,v))}),n;function h(f,v){if(f===null||f.source===void 0)n.add(v);else{var m=s?Es.join(s,f.source):f.source;n.add(new ve(f.originalLine,f.originalColumn,m,v,f.name))}}};ve.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(i){this.add(i)},this);else if(e[Wt]||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};ve.prototype.prepend=function(e){if(Array.isArray(e))for(var i=e.length-1;i>=0;i--)this.prepend(e[i]);else if(e[Wt]||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};ve.prototype.walk=function(e){for(var i,s=0,n=this.children.length;s<n;s++)i=this.children[s],i[Wt]?i.walk(e):i!==""&&e(i,{source:this.source,line:this.line,column:this.column,name:this.name})};ve.prototype.join=function(e){var i,s,n=this.children.length;if(n>0){for(i=[],s=0;s<n-1;s++)i.push(this.children[s]),i.push(e);i.push(this.children[s]),this.children=i}return this};ve.prototype.replaceRight=function(e,i){var s=this.children[this.children.length-1];return s[Wt]?s.replaceRight(e,i):typeof s=="string"?this.children[this.children.length-1]=s.replace(e,i):this.children.push("".replace(e,i)),this};ve.prototype.setSourceContent=function(e,i){this.sourceContents[Es.toSetString(e)]=i};ve.prototype.walkSourceContents=function(e){for(var i=0,s=this.children.length;i<s;i++)this.children[i][Wt]&&this.children[i].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),i=0,s=n.length;i<s;i++)e(Es.fromSetString(n[i]),this.sourceContents[n[i]])};ve.prototype.toString=function(){var e="";return this.walk(function(i){e+=i}),e};ve.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},s=new _v(e),n=!1,r=null,a=null,o=null,u=null;return this.walk(function(p,l){i.code+=p,l.source!==null&&l.line!==null&&l.column!==null?((r!==l.source||a!==l.line||o!==l.column||u!==l.name)&&s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:i.line,column:i.column},name:l.name}),r=l.source,a=l.line,o=l.column,u=l.name,n=!0):n&&(s.addMapping({generated:{line:i.line,column:i.column}}),r=null,n=!1);for(var h=0,f=p.length;h<f;h++)p.charCodeAt(h)===Sv?(i.line++,i.column=0,h+1===f?(r=null,n=!1):n&&s.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:i.line,column:i.column},name:l.name})):i.column++}),this.walkSourceContents(function(p,l){s.setSourceContent(p,l)}),{code:i.code,map:s}};Wl.SourceNode=ve});var Rr=y(As=>{As.SourceMapGenerator=Ar().SourceMapGenerator;As.SourceMapConsumer=Gl().SourceMapConsumer;As.SourceNode=$l().SourceNode});var Jl=y((h1,Kl)=>{var kv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ev=(t,e=21)=>(i=e)=>{let s="",n=i;for(;n--;)s+=t[Math.random()*t.length|0];return s},Av=(t=21)=>{let e="",i=t;for(;i--;)e+=kv[Math.random()*64|0];return e};Kl.exports={nanoid:Av,customAlphabet:Ev}});var Zl=y((f1,Xl)=>{"use strict";var{SourceMapConsumer:Ql,SourceMapGenerator:Yl}=Rr(),{existsSync:Ov,readFileSync:Nv}=require("fs"),{dirname:Ir,join:Lv}=require("path");function Rv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ii=class{constructor(e,i){if(i.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=i.map?i.map.prev:void 0,n=this.loadMap(i.from,s);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=Ir(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new Ql(this.text)),this.consumerCache}decodeInline(e){let i=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(n.test(e)||r.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(i.test(e)||s.test(e))return Rv(e.substr(RegExp.lastMatch.length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}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 i=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let s=e.lastIndexOf(i.pop()),n=e.indexOf("*/",s);s>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,n)))}loadFile(e){if(this.root=Ir(e),Ov(e))return this.mapFile=e,Nv(e,"utf-8").toString().trim()}loadMap(e,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let s=i(e);if(s){let n=this.loadFile(s);if(!n)throw new Error("Unable to load previous source map: "+s.toString());return n}}else{if(i instanceof Ql)return Yl.fromSourceMap(i).toString();if(i instanceof Yl)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let s=this.annotation;return e&&(s=Lv(Ir(e),s)),this.loadFile(s)}}}startWith(e,i){return e?e.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Xl.exports=Ii;Ii.default=Ii});var np=y((d1,sp)=>{"use strict";var{SourceMapConsumer:Iv,SourceMapGenerator:Pv}=Rr(),{fileURLToPath:ep,pathToFileURL:Os}=require("url"),{isAbsolute:Fr,resolve:jr}=require("path"),{nanoid:Tv}=Jl(),Pr=ur(),tp=lr(),Fv=Zl(),Tr=Symbol("fromOffsetCache"),jv=!!(Iv&&Pv),ip=!!(jr&&Fr),$t=class{constructor(e,i={}){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,i.from&&(!ip||/^\w+:\/\//.test(i.from)||Fr(i.from)?this.file=i.from:this.file=jr(i.from)),ip&&jv){let s=new Fv(this.css,i);if(s.text){this.map=s;let n=s.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Tv(6)+">"),this.map&&(this.map.file=this.from)}error(e,i,s,n={}){let r,a,o;if(i&&typeof i=="object"){let p=i,l=s;if(typeof p.offset=="number"){let h=this.fromOffset(p.offset);i=h.line,s=h.col}else i=p.line,s=p.column;if(typeof l.offset=="number"){let h=this.fromOffset(l.offset);a=h.line,o=h.col}else a=l.line,o=l.column}else if(!s){let p=this.fromOffset(i);i=p.line,s=p.col}let u=this.origin(i,s,a,o);return u?r=new tp(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):r=new tp(e,a===void 0?i:{column:s,line:i},a===void 0?s:{column:o,line:a},this.css,this.file,n.plugin),r.input={column:s,endColumn:o,endLine:a,line:i,source:this.css},this.file&&(Os&&(r.input.url=Os(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let i,s;if(this[Tr])s=this[Tr];else{let r=this.css.split(`
30
30
  `);s=new Array(r.length);let a=0;for(let o=0,u=r.length;o<u;o++)s[o]=a,a+=r[o].length+1;this[Tr]=s}i=s[s.length-1];let n=0;if(e>=i)n=s.length-1;else{let r=s.length-2,a;for(;n<r;)if(a=n+(r-n>>1),e<s[a])r=a-1;else if(e>=s[a+1])n=a+1;else{n=a;break}}return{col:e-s[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:jr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,i,s,n){if(!this.map)return!1;let r=this.map.consumer(),a=r.originalPositionFor({column:i,line:e});if(!a.source)return!1;let o;typeof s=="number"&&(o=r.originalPositionFor({column:n,line:s}));let u;Fr(a.source)?u=Os(a.source):u=new URL(a.source,this.map.consumer().sourceRoot||Os(this.map.mapFile));let p={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:u.toString()};if(u.protocol==="file:")if(ep)p.file=ep(u);else throw new Error("file: protocol is not available in this PostCSS build");let l=r.sourceContentFor(a.source);return l&&(p.source=l),p}toJSON(){let e={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(e[i]=this[i]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};sp.exports=$t;$t.default=$t;Pr&&Pr.registerInput&&Pr.registerInput($t)});var ap=y((m1,rp)=>{"use strict";var Bv=Ai(),Mv=_l(),qv=np();function Ns(t,e){let i=new qv(t,e),s=new Mv(i);try{s.parse()}catch(n){throw process.env.NODE_ENV!=="production"&&n.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?n.message+=`
31
31
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?n.message+=`
@@ -4,65 +4,6 @@ const Util = {
4
4
  tagPattern: /(\s*)@([^@\s]+)(\s*)/g,
5
5
  lineBreakPattern: /\r\n|[\r\n\u2028\u2029]/gu,
6
6
 
7
- attachments: {
8
- audit: {
9
- name: 'audit',
10
- contentType: 'text/html',
11
- reportFile: 'audit-report.json'
12
- },
13
- coverage: {
14
- name: 'coverage',
15
- contentType: 'text/html',
16
- reportFile: 'coverage-report.json'
17
- },
18
- network: {
19
- name: 'network',
20
- contentType: 'text/html',
21
- reportFile: 'network-report.json'
22
- },
23
- // artifact will be removed finally
24
- artifact: {
25
- name: 'artifact',
26
- contentType: 'application/json'
27
- }
28
- },
29
-
30
- pageTimings: [{
31
- key: 'onContentLoad',
32
- name: 'Content Loaded',
33
- color: '#1a1aa6'
34
- }, {
35
- key: 'onLoad',
36
- name: 'Page Loaded',
37
- color: '#c80000'
38
- }],
39
-
40
- timings: [{
41
- key: 'blocked',
42
- name: 'Blocking',
43
- color: '#858585'
44
- }, {
45
- key: 'dns',
46
- name: 'DNS Lookup',
47
- color: '#009688'
48
- }, {
49
- key: 'connect',
50
- name: 'Connecting',
51
- color: '#b52dcd'
52
- }, {
53
- key: 'send',
54
- name: 'Sending',
55
- color: '#74979a'
56
- }, {
57
- key: 'wait',
58
- name: 'Waiting',
59
- color: '#00a846'
60
- }, {
61
- key: 'receive',
62
- name: 'Receiving',
63
- color: '#0299de'
64
- }],
65
-
66
7
  hasOwn: function(obj, key) {
67
8
  return Object.prototype.hasOwnProperty.call(obj, key);
68
9
  },
@@ -190,6 +131,20 @@ const Util = {
190
131
 
191
132
  // =============================================================================
192
133
 
134
+ getMetrics: (type, metrics) => {
135
+ const istanbulMetrics = ['statements', 'branches', 'functions', 'lines'];
136
+ const v8Metrics = ['bytes'].concat(istanbulMetrics);
137
+ const allMetrics = type === 'v8' ? v8Metrics : istanbulMetrics;
138
+ let list = allMetrics;
139
+ if (Util.isList(metrics)) {
140
+ const newList = list.filter((k) => metrics.includes(k));
141
+ if (newList.length) {
142
+ list = newList;
143
+ }
144
+ }
145
+ return list;
146
+ },
147
+
193
148
  generatePercentChart: function(percent) {
194
149
  return `<div style="--mcr-percent:${percent}%;" class="mcr-percent-chart"></div>`;
195
150
  },
@@ -409,6 +364,10 @@ const Util = {
409
364
  return `${Util.dFixed(px)},${Util.dFixed(py)}`;
410
365
  },
411
366
 
367
+ capitalizeFirstLetter: (string) => {
368
+ return string.charAt(0).toUpperCase() + string.slice(1);
369
+ },
370
+
412
371
  // =============================================================================
413
372
  // formatter
414
373
 
package/lib/utils/util.js CHANGED
@@ -409,6 +409,19 @@ const Util = {
409
409
  return template;
410
410
  },
411
411
 
412
+ getColorStrByStatus: (str, status) => {
413
+ if (status === 'low') {
414
+ return EC.red(str);
415
+ }
416
+ if (status === 'medium') {
417
+ return EC.yellow(str);
418
+ }
419
+ if (status === 'high') {
420
+ return EC.green(str);
421
+ }
422
+ return str;
423
+ },
424
+
412
425
  // ==========================================================================================
413
426
 
414
427
  loggingLevels: {
package/lib/v8/v8.js CHANGED
@@ -1,4 +1,6 @@
1
1
  const path = require('path');
2
+ const CG = require('console-grid');
3
+ const EC = require('eight-colors');
2
4
  const Util = require('../utils/util.js');
3
5
  const { getV8Summary } = require('./v8-summary.js');
4
6
  const { dedupeFlatRanges } = require('../utils/dedupe.js');
@@ -233,7 +235,212 @@ const mergeV8Coverage = async (dataList, sourceCache, options) => {
233
235
 
234
236
  // ============================================================
235
237
 
236
- const saveCodecovReport = async (reportData, reportOptions, options) => {
238
+ const mergeSingleSubGroups = (item) => {
239
+
240
+ if (!item.subs) {
241
+ return;
242
+ }
243
+ if (item.subs.length === 1) {
244
+ const sub = item.subs[0];
245
+ if (!sub.subs) {
246
+ return;
247
+ }
248
+ item.name = [item.name, sub.name].filter((it) => it).join('/');
249
+ item.subs = sub.subs;
250
+ mergeSingleSubGroups(item);
251
+ return;
252
+ }
253
+
254
+ item.subs.forEach((sub) => {
255
+ mergeSingleSubGroups(sub);
256
+ });
257
+
258
+ };
259
+
260
+ const getRowData = (rowName, summary, metrics) => {
261
+ const summaryRow = {};
262
+ let lowest = {
263
+ pct: 100,
264
+ status: 'high'
265
+ };
266
+ metrics.map((k) => {
267
+ const s = summary[k];
268
+ const percent = s.pct;
269
+ if (typeof percent !== 'number') {
270
+ return;
271
+ }
272
+ summaryRow[k] = Util.getColorStrByStatus(Util.PSF(percent, 100, 2), s.status);
273
+ if (percent < lowest.pct) {
274
+ lowest = s;
275
+ }
276
+ });
277
+ summaryRow.name = Util.getColorStrByStatus(rowName, lowest.status);
278
+ return summaryRow;
279
+ };
280
+
281
+ const getUncoveredLines = (file) => {
282
+ const lines = [];
283
+
284
+ const dataLines = file.data.lines;
285
+
286
+ let startLine;
287
+ let endLine;
288
+
289
+ const addLines = () => {
290
+ if (!startLine) {
291
+ return;
292
+ }
293
+ if (endLine) {
294
+ // range
295
+ const link = startLine.color === 'yellow' && endLine.color === 'yellow' ? EC.yellow('-') : EC.red('-');
296
+ lines.push(EC[startLine.color](startLine.line) + link + EC[endLine.color](endLine.line));
297
+ startLine = null;
298
+ endLine = null;
299
+ } else {
300
+ // only start
301
+ lines.push(EC[startLine.color](startLine.line));
302
+ startLine = null;
303
+ }
304
+ };
305
+
306
+ const setLines = (line, color) => {
307
+ if (startLine) {
308
+ endLine = {
309
+ line,
310
+ color
311
+ };
312
+ return;
313
+ }
314
+ startLine = {
315
+ line,
316
+ color
317
+ };
318
+ };
319
+
320
+ Object.keys(dataLines).forEach((line) => {
321
+ const count = dataLines[line];
322
+ if (count === 0) {
323
+ setLines(line, 'red');
324
+ return;
325
+ }
326
+ // 0 < count < 1
327
+ if (typeof count === 'string') {
328
+ setLines(line, 'yellow');
329
+ return;
330
+ }
331
+ // count >= 1
332
+ addLines();
333
+ });
334
+ addLines();
335
+
336
+ return lines.join(',');
337
+ };
338
+
339
+ const getGroupedRows = (files, metrics, cdOptions) => {
340
+
341
+ const skipPercent = cdOptions.skipPercent;
342
+ if (typeof skipPercent === 'number' && skipPercent > 0) {
343
+ files = files.filter((file) => {
344
+ const { summary } = file;
345
+ for (const k of metrics) {
346
+ const percent = summary[k].pct;
347
+ if (typeof percent === 'number' && percent < skipPercent) {
348
+ return true;
349
+ }
350
+ }
351
+ return false;
352
+ });
353
+ }
354
+
355
+ let groups = [];
356
+
357
+ files.forEach((file) => {
358
+ const { sourcePath, summary } = file;
359
+ const pathList = sourcePath.split('/');
360
+ const lastName = pathList.pop();
361
+ let subs = groups;
362
+ pathList.forEach((key) => {
363
+ const item = subs.find((it) => it.name === key && it.subs);
364
+ if (item) {
365
+ subs = item.subs;
366
+ return;
367
+ }
368
+ const sub = {
369
+ name: key,
370
+ subs: []
371
+ };
372
+ subs.push(sub);
373
+ subs = sub.subs;
374
+ });
375
+ const fileRow = getRowData(lastName, summary, metrics);
376
+ fileRow.uncoveredLines = getUncoveredLines(file);
377
+ subs.push(fileRow);
378
+ });
379
+
380
+ const group = {
381
+ subs: groups
382
+ };
383
+ mergeSingleSubGroups(group);
384
+
385
+ if (group.name) {
386
+ groups = [group];
387
+ }
388
+
389
+ return groups;
390
+ };
391
+
392
+ const handleConsoleDetailsReport = (reportData, reportOptions, options) => {
393
+ const cdOptions = {
394
+ maxCols: 50,
395
+ skipPercent: 0,
396
+ metrics: [],
397
+ ... reportOptions
398
+ };
399
+
400
+ const {
401
+ name, summary, files
402
+ } = reportData;
403
+
404
+ if (name) {
405
+ EC.logCyan(name);
406
+ }
407
+
408
+ const metrics = Util.getMetrics('v8', cdOptions.metrics);
409
+ const rows = getGroupedRows(files, metrics, cdOptions);
410
+ const summaryRow = getRowData('Summary', summary, metrics);
411
+ // no rows if skipped all by skipPercent
412
+ if (rows.length) {
413
+ rows.push({
414
+ innerBorder: true
415
+ });
416
+ }
417
+ rows.push(summaryRow);
418
+
419
+ const columns = [{
420
+ id: 'name',
421
+ name: 'Name'
422
+ }, ... metrics.map((m) => {
423
+ return {
424
+ id: m,
425
+ name: Util.capitalizeFirstLetter(m),
426
+ align: 'right'
427
+ };
428
+ }), {
429
+ id: 'uncoveredLines',
430
+ name: 'Uncovered Lines'
431
+ }];
432
+
433
+ CG({
434
+ options: {
435
+ nullPlaceholder: '',
436
+ defaultMaxWidth: cdOptions.maxCols
437
+ },
438
+ columns,
439
+ rows
440
+ });
441
+ };
442
+
443
+ const handleCodecovReport = async (reportData, reportOptions, options) => {
237
444
  const codecovOptions = {
238
445
  outputFile: 'codecov.json',
239
446
  ... reportOptions
@@ -255,7 +462,7 @@ const saveCodecovReport = async (reportData, reportOptions, options) => {
255
462
  return Util.relativePath(jsonPath);
256
463
  };
257
464
 
258
- const saveV8JsonReport = async (reportData, reportOptions, options) => {
465
+ const handleV8JsonReport = async (reportData, reportOptions, options) => {
259
466
  const v8JsonOptions = {
260
467
  outputFile: 'coverage-report.json',
261
468
  ... reportOptions
@@ -268,7 +475,7 @@ const saveV8JsonReport = async (reportData, reportOptions, options) => {
268
475
  };
269
476
 
270
477
 
271
- const saveV8HtmlReport = async (reportData, reportOptions, options) => {
478
+ const handleV8HtmlReport = async (reportData, reportOptions, options) => {
272
479
 
273
480
  // V8 only options, merged with root options
274
481
  const v8HtmlOptions = {
@@ -340,9 +547,10 @@ const saveV8Report = async (v8list, options) => {
340
547
 
341
548
  // v8 reports
342
549
  const buildInV8Reports = {
343
- 'v8': saveV8HtmlReport,
344
- 'v8-json': saveV8JsonReport,
345
- 'codecov': saveCodecovReport
550
+ 'v8': handleV8HtmlReport,
551
+ 'v8-json': handleV8JsonReport,
552
+ 'codecov': handleCodecovReport,
553
+ 'console-details': handleConsoleDetailsReport
346
554
  };
347
555
 
348
556
  const outputs = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "2.4.3",
3
+ "version": "2.5.0",
4
4
  "description": "Monocart coverage reports",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -54,7 +54,7 @@
54
54
  "url": "git+https://github.com/cenfun/monocart-coverage-reports.git"
55
55
  },
56
56
  "dependencies": {
57
- "console-grid": "~2.1.0",
57
+ "console-grid": "~2.2.1",
58
58
  "eight-colors": "~1.2.1",
59
59
  "istanbul-lib-coverage": "~3.2.2",
60
60
  "istanbul-lib-report": "~3.0.1",
@@ -68,7 +68,7 @@
68
68
  "commander": "^12.0.0",
69
69
  "eslint": "^8.56.0",
70
70
  "eslint-config-plus": "^1.0.6",
71
- "eslint-plugin-html": "^7.1.0",
71
+ "eslint-plugin-html": "^8.0.0",
72
72
  "eslint-plugin-vue": "^9.21.1",
73
73
  "stylelint": "^15.11.0",
74
74
  "stylelint-config-plus": "^1.0.4"