@byteluck-fe/model-driven-engine 7.0.0-props.19 → 7.0.0-props.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +4 -3
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -45,11 +45,12 @@ Example:
|
|
|
45
45
|
`," "];return gn.split(t,e)},split(t,e,r){let n=[],i="",u=!1,o=0,a=!1,s="",c=!1;for(let l of t)c?c=!1:l==="\\"?c=!0:a?l===s&&(a=!1):l==='"'||l==="'"?(a=!0,s=l):l==="("?o+=1:l===")"?o>0&&(o-=1):o===0&&e.includes(l)&&(u=!0),u?(i!==""&&n.push(i.trim()),i="",u=!1):i+=l;return(r||i!=="")&&n.push(i.trim()),n}};var Ic=gn;gn.default=gn;let Tc=mr,Lb=Ic;class Si extends Tc{get selectors(){return Lb.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}var ko=Si;Si.default=Si,Tc.registerRule(Si);let kb=Ao,qb=mi,jb=yi,Ub=Bi,Vb=bc,zb=pn,Wb=ko;function vn(t,e){if(Array.isArray(t))return t.map(o=>vn(o));let i=t,{inputs:r}=i,n=hs(i,["inputs"]);if(r){e=[];for(let o of r){let a=Er(De({},o),{__proto__:Ub.prototype});a.map&&(a.map=Er(De({},a.map),{__proto__:Vb.prototype})),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>vn(o,e))),n.source){let u=n.source,{inputId:o}=u,a=hs(u,["inputId"]);n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new zb(n);if(n.type==="decl")return new jb(n);if(n.type==="rule")return new Wb(n);if(n.type==="comment")return new qb(n);if(n.type==="atrule")return new kb(n);throw new Error("Unknown node type: "+t.type)}var Gb=vn;vn.default=vn;let{dirname:Oi,relative:Pc,resolve:Nc,sep:$c}=_t.default,{SourceMapConsumer:Rc,SourceMapGenerator:Mi}=Rr,{pathToFileURL:Lc}=wr.default,Hb=Bi,Qb=Boolean(Rc&&Mi),Jb=Boolean(Oi&&Nc&&Pc&&$c);class Zb{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
46
46
|
`;this.css.includes(`\r
|
|
47
47
|
`)&&(r=`\r
|
|
48
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Oi(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Rc(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else
|
|
49
|
-
`),r=a.length-u):r+=a.length,s&&c!=="start"){let l=s.parent||{raws:{}};(!(s.type==="decl"||s.type==="atrule"&&!s.nodes)||s!==l.last||l.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Oi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Oi(Nc(n,this.mapOpts.annotation)));let i=Pc(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new Hb(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Lc){let n=Lc(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;$c==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}var kc=Zb;let Xb=Ao,Kb=mi,Yb=yi,eF=pn,qc=ko,tF=zl;const jc={empty:!0,space:!0};function rF(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}class nF{constructor(e){this.input=e,this.root=new eF,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 r=new Xb;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,o=!1,a=!1,s=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(s.length>0){for(u=s.length-1,i=s[u];i&&i[0]==="space";)i=s[--u];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(e=s[s.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let u=r-1;u>=0&&(i=e[u],!(i[0]!=="space"&&(n+=1,n===2)));u--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,u;for(let[o,a]of e.entries()){if(i=a,u=i[0],u==="("&&(r+=1),u===")"&&(r-=1),r===0&&u===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new Kb;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=tF(this.input)}decl(e,r){let n=new Yb;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||rF(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.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 c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;let l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==" !important"&&(n.raws.important=l);break}else if(u[1].toLowerCase()==="important"){let l=e.slice(0),f="";for(let h=c;h>0;h--){let g=l[h][0];if(f.trim().startsWith("!")&&g!=="space")break;f=l.pop()[1]+f}f.trim().startsWith("!")&&(n.important=!0,n.raws.important=f,e=l)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new qc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}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 r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,u=null,o=[],a=e[1].startsWith("--"),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n==="("||n==="[")u||(u=c),o.push(n==="("?")":"]");else if(a&&i&&n==="{")u||(u=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(s,a);return}else break;else if(n==="{"){this.rule(s);return}else if(n==="}"){this.tokenizer.back(s.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(u=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(u),r&&i){if(!a)for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}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,r,n,i){let u,o,a=n.length,s="",c=!0,l,f;for(let h=0;h<a;h+=1)u=n[h],o=u[0],o==="space"&&h===a-1&&!i?c=!1:o==="comment"?(f=n[h-1]?n[h-1][0]:"empty",l=n[h+1]?n[h+1][0]:"empty",!jc[f]&&!jc[l]?s.slice(-1)===","?c=!1:s+=u[1]:c=!1):s+=u[1];if(!c){let h=n.reduce((g,m)=>g+m[1],"");e.raws[r]={raw:h,value:s}}e[r]=s}rule(e){e.pop();let r=new qc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}var iF=nF;let uF=mr,oF=Bi,sF=iF;function xi(t,e){let r=new oF(t,e),n=new sF(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
48
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Oi(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Rc(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else if(this.css){let e;for(;(e=this.css.lastIndexOf("/*#"))!==-1;){let r=this.css.indexOf("*/",e+3);if(r===-1)break;for(;e>0&&this.css[e-1]===`
|
|
49
|
+
`;)e--;this.css=this.css.slice(0,e)+this.css.slice(r+2)}}}}generate(){if(this.clearAnnotation(),Jb&&Qb&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Mi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Mi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Mi({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,o;this.stringify(this.root,(a,s,c)=>{if(this.css+=a,s&&c!=="end"&&(i.generated.line=e,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,u=a.lastIndexOf(`
|
|
50
|
+
`),r=a.length-u):r+=a.length,s&&c!=="start"){let l=s.parent||{raws:{}};(!(s.type==="decl"||s.type==="atrule"&&!s.nodes)||s!==l.last||l.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?Oi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Oi(Nc(n,this.mapOpts.annotation)));let i=Pc(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new Hb(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Lc){let n=Lc(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;$c==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}var kc=Zb;let Xb=Ao,Kb=mi,Yb=yi,eF=pn,qc=ko,tF=zl;const jc={empty:!0,space:!0};function rF(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}class nF{constructor(e){this.input=e,this.root=new eF,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 r=new Xb;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,o=!1,a=!1,s=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(s.length>0){for(u=s.length-1,i=s[u];i&&i[0]==="space";)i=s[--u];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(e=s[s.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let u=r-1;u>=0&&(i=e[u],!(i[0]!=="space"&&(n+=1,n===2)));u--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,u;for(let[o,a]of e.entries()){if(i=a,u=i[0],u==="("&&(r+=1),u===")"&&(r-=1),r===0&&u===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new Kb;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=tF(this.input)}decl(e,r){let n=new Yb;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||rF(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.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 c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;let l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==" !important"&&(n.raws.important=l);break}else if(u[1].toLowerCase()==="important"){let l=e.slice(0),f="";for(let h=c;h>0;h--){let g=l[h][0];if(f.trim().startsWith("!")&&g!=="space")break;f=l.pop()[1]+f}f.trim().startsWith("!")&&(n.important=!0,n.raws.important=f,e=l)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new qc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}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 r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,u=null,o=[],a=e[1].startsWith("--"),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n==="("||n==="[")u||(u=c),o.push(n==="("?")":"]");else if(a&&i&&n==="{")u||(u=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(s,a);return}else break;else if(n==="{"){this.rule(s);return}else if(n==="}"){this.tokenizer.back(s.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(u=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(u),r&&i){if(!a)for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}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,r,n,i){let u,o,a=n.length,s="",c=!0,l,f;for(let h=0;h<a;h+=1)u=n[h],o=u[0],o==="space"&&h===a-1&&!i?c=!1:o==="comment"?(f=n[h-1]?n[h-1][0]:"empty",l=n[h+1]?n[h+1][0]:"empty",!jc[f]&&!jc[l]?s.slice(-1)===","?c=!1:s+=u[1]:c=!1):s+=u[1];if(!c){let h=n.reduce((g,m)=>g+m[1],"");e.raws[r]={raw:h,value:s}}e[r]=s}rule(e){e.pop();let r=new qc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}var iF=nF;let uF=mr,oF=Bi,sF=iF;function xi(t,e){let r=new oF(t,e),n=new sF(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
50
51
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
|
|
51
52
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
|
|
52
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}var qo=xi;xi.default=xi,uF.registerParse(xi);class jo{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Uc=jo;jo.default=jo;let aF=Uc;class Uo{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new aF(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}}var Vo=Uo;Uo.default=Uo;let Vc={};var zc=function(e){Vc[e]||(Vc[e]=!0,typeof console!="undefined"&&console.warn&&console.warn(e))};let lF=mr,cF=bo,fF=kc,hF=qo,Wc=Vo,dF=pn,pF=gi,{isClean:Lt,my:gF}=ln,vF=zc;const mF={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},yF={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},DF={Once:!0,postcssPlugin:!0,prepare:!0},Ur=0;function mn(t){return typeof t=="object"&&typeof t.then=="function"}function Gc(t){let e=!1,r=mF[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ur,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ur,r+"Exit"]:[r,r+"Exit"]}function Hc(t){let e;return t.type==="document"?e=["Document",Ur,"DocumentExit"]:t.type==="root"?e=["Root",Ur,"RootExit"]:e=Gc(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function zo(t){return t[Lt]=!1,t.nodes&&t.nodes.forEach(e=>zo(e)),t}let Wo={};class sr{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=zo(r);else if(r instanceof sr||r instanceof Wc)i=zo(r.root),r.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let u=hF;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[gF]&&lF.rebuild(i)}this.result=new Wc(e,i,n),this.helpers=Er(De({},Wo),{postcss:Wo,result:this.result}),this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?De(De({},u),u.prepare(this.result)):u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,u=n.postcssVersion,o=this.result.processor.version,a=u.split("."),s=o.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+u+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!yF[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!DF[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){return Tt(this,null,function*(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(mn(n))try{yield n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Lt];){e[Lt]=!0;let r=[Hc(e)];for(;r.length>0;){let n=this.visitTick(r);if(mn(n))try{yield n}catch(i){let u=r[r.length-1].node;throw this.handleError(i,u)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(u=>n(u,this.helpers));yield Promise.all(i)}else yield n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()})}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return mn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=pF;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new fF(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(mn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Lt];)e[Lt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||vF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let u;try{u=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(mn(u))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Lt]){a[Lt]=!0,e.push(Hc(a));return}r.iterator=0,delete n.indexes[o]}let u=r.events;for(;r.eventIndex<u.length;){let o=u[r.eventIndex];if(r.eventIndex+=1,o===Ur){n.nodes&&n.nodes.length&&(n[Lt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Lt]=!0;let r=Gc(e);for(let n of r)if(n===Ur)e.nodes&&e.each(i=>{i[Lt]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}}sr.registerPostcss=t=>{Wo=t};var Qc=sr;sr.default=sr,dF.registerLazyResult(sr),cF.registerLazyResult(sr);let EF=kc,wF=qo;const CF=Vo;let AF=gi,bF=zc;class Go{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=wF;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,u=AF;this.result=new CF(this._processor,i,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new EF(u,i,this._opts,r);if(a.isMap()){let[s,c]=a.generate();s&&(this.result.css=s),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||bF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}}var FF=Go;Go.default=Go;let _F=bo,BF=Qc,SF=FF,OF=pn;class yn{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new SF(this,e,r):new BF(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}var MF=yn;yn.default=yn,OF.registerProcessor(yn),_F.registerProcessor(yn);let Jc=Ao,Zc=mi,xF=mr,IF=po,Xc=yi,Kc=bo,TF=Gb,PF=Bi,NF=Qc,$F=Ic,RF=vi,LF=qo,Ho=MF,kF=Vo,Yc=pn,ef=ko,qF=gi,jF=Uc;function me(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Ho(t)}me.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
53
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}var qo=xi;xi.default=xi,uF.registerParse(xi);class jo{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var Uc=jo;jo.default=jo;let aF=Uc;class Uo{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new aF(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}}var Vo=Uo;Uo.default=Uo;let Vc={};var zc=function(e){Vc[e]||(Vc[e]=!0,typeof console!="undefined"&&console.warn&&console.warn(e))};let lF=mr,cF=bo,fF=kc,hF=qo,Wc=Vo,dF=pn,pF=gi,{isClean:Lt,my:gF}=ln,vF=zc;const mF={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},yF={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},DF={Once:!0,postcssPlugin:!0,prepare:!0},Ur=0;function mn(t){return typeof t=="object"&&typeof t.then=="function"}function Gc(t){let e=!1,r=mF[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ur,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ur,r+"Exit"]:[r,r+"Exit"]}function Hc(t){let e;return t.type==="document"?e=["Document",Ur,"DocumentExit"]:t.type==="root"?e=["Root",Ur,"RootExit"]:e=Gc(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function zo(t){return t[Lt]=!1,t.nodes&&t.nodes.forEach(e=>zo(e)),t}let Wo={};class sr{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=zo(r);else if(r instanceof sr||r instanceof Wc)i=zo(r.root),r.map&&(typeof n.map=="undefined"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let u=hF;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[gF]&&lF.rebuild(i)}this.result=new Wc(e,i,n),this.helpers=Er(De({},Wo),{postcss:Wo,result:this.result}),this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?De(De({},u),u.prepare(this.result)):u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,u=n.postcssVersion,o=this.result.processor.version,a=u.split("."),s=o.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+u+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!yF[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!DF[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){return Tt(this,null,function*(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(mn(n))try{yield n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Lt];){e[Lt]=!0;let r=[Hc(e)];for(;r.length>0;){let n=this.visitTick(r);if(mn(n))try{yield n}catch(i){let u=r[r.length-1].node;throw this.handleError(i,u)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(u=>n(u,this.helpers));yield Promise.all(i)}else yield n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()})}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return mn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=pF;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new fF(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(mn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Lt];)e[Lt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||vF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let u;try{u=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(mn(u))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Lt]){a[Lt]=!0,e.push(Hc(a));return}r.iterator=0,delete n.indexes[o]}let u=r.events;for(;r.eventIndex<u.length;){let o=u[r.eventIndex];if(r.eventIndex+=1,o===Ur){n.nodes&&n.nodes.length&&(n[Lt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Lt]=!0;let r=Gc(e);for(let n of r)if(n===Ur)e.nodes&&e.each(i=>{i[Lt]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}}sr.registerPostcss=t=>{Wo=t};var Qc=sr;sr.default=sr,dF.registerLazyResult(sr),cF.registerLazyResult(sr);let EF=kc,wF=qo;const CF=Vo;let AF=gi,bF=zc;class Go{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=wF;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i=AF;this.result=new CF(this._processor,void 0,this._opts),this.result.css=r;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let o=new EF(i,void 0,this._opts,r);if(o.isMap()){let[a,s]=o.generate();a&&(this.result.css=a),s&&(this.result.map=s)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||bF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}}var FF=Go;Go.default=Go;let _F=bo,BF=Qc,SF=FF,OF=pn;class yn{constructor(e=[]){this.version="8.5.8",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new SF(this,e,r):new BF(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}var MF=yn;yn.default=yn,OF.registerProcessor(yn),_F.registerProcessor(yn);let Jc=Ao,Zc=mi,xF=mr,IF=po,Xc=yi,Kc=bo,TF=Gb,PF=Bi,NF=Qc,$F=Ic,RF=vi,LF=qo,Ho=MF,kF=Vo,Yc=pn,ef=ko,qF=gi,jF=Uc;function me(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Ho(t)}me.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
53
54
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
54
55
|
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Ho().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return me([i(s)]).process(o,a)},i},me.stringify=qF,me.parse=LF,me.fromJSON=TF,me.list=$F,me.comment=t=>new Zc(t),me.atRule=t=>new Jc(t),me.decl=t=>new Xc(t),me.rule=t=>new ef(t),me.root=t=>new Yc(t),me.document=t=>new Kc(t),me.CssSyntaxError=IF,me.Declaration=Xc,me.Container=xF,me.Processor=Ho,me.Document=Kc,me.Comment=Zc,me.Warning=jF,me.AtRule=Jc,me.Result=kF,me.Input=PF,me.Rule=ef,me.Root=Yc,me.Node=RF,NF.registerPostcss(me);var Ae=me;me.default=me,Ae.stringify,Ae.fromJSON,Ae.plugin,Ae.parse,Ae.list,Ae.document,Ae.comment,Ae.atRule,Ae.rule,Ae.decl,Ae.root,Ae.CssSyntaxError,Ae.Declaration,Ae.Container,Ae.Processor,Ae.Document,Ae.Comment,Ae.Warning,Ae.AtRule,Ae.Result,Ae.Input,Ae.Rule,Ae.Root,Ae.Node;const tf=(t={})=>{const e=t.prefix,r=/\s+$/.test(e)?e:`${e} `,n=t.ignoreFiles?[].concat(t.ignoreFiles):[],i=t.includeFiles?[].concat(t.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(u){const o=u.root,a=o.source.input.file;if(!(n.length&&a&&rf(a,n))&&!(i.length&&a&&!rf(a,i)))return{Rule(s,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];s.parent&&l.includes(s.parent.name)||(s.selectors=s.selectors.map(f=>t.exclude&&UF(f,t.exclude)?f:t.transform?t.transform(e,f,r+f,o.source.input.file,s):[":root","body","html"].some(h=>f.startsWith(h))?t.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,e):r+f))}}}}};function rf(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t.includes(r))}function UF(t,e){return e.some(r=>r instanceof RegExp?r.test(t):t===r)}tf.postcss=!0;var VF=tf,Qo={exports:{}},Jo={exports:{}},Zo={exports:{}},Xo={exports:{}},Ii={exports:{}},Dn={exports:{}},kt={exports:{}},ft={},Ti={exports:{}};(function(t,e){e.__esModule=!0,e.default=i;function r(u){for(var o=u.toLowerCase(),a="",s=!1,c=0;c<6&&o[c]!==void 0;c++){var l=o.charCodeAt(c),f=l>=97&&l<=102||l>=48&&l<=57;if(s=l===32,!f)break;a+=o[c]}if(a.length!==0){var h=parseInt(a,16),g=h>=55296&&h<=57343;return g||h===0||h>1114111?["\uFFFD",a.length+(s?1:0)]:[String.fromCodePoint(h),a.length+(s?1:0)]}}var n=/\\/;function i(u){var o=n.test(u);if(!o)return u;for(var a="",s=0;s<u.length;s++){if(u[s]==="\\"){var c=r(u.slice(s+1,s+7));if(c!==void 0){a+=c[0],s+=c[1];continue}if(u[s+1]==="\\"){a+="\\",s++;continue}u.length===s+1&&(a+=u[s]);continue}a+=u[s]}return a}t.exports=e.default})(Ti,Ti.exports);var Ko={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();if(!n[a])return;n=n[a]}return n}t.exports=e.default})(Ko,Ko.exports);var Yo={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),o=1;o<i;o++)u[o-1]=arguments[o];for(;u.length>0;){var a=u.shift();n[a]||(n[a]={}),n=n[a]}}t.exports=e.default})(Yo,Yo.exports);var es={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){for(var i="",u=n.indexOf("/*"),o=0;u>=0;){i=i+n.slice(o,u);var a=n.indexOf("*/",u+2);if(a<0)return i;o=a+2,u=n.indexOf("/*",o)}return i=i+n.slice(o),i}t.exports=e.default})(es,es.exports),ft.__esModule=!0,ft.unesc=ft.stripComments=ft.getProp=ft.ensureObject=void 0;var zF=Pi(Ti.exports);ft.unesc=zF.default;var WF=Pi(Ko.exports);ft.getProp=WF.default;var GF=Pi(Yo.exports);ft.ensureObject=GF.default;var HF=Pi(es.exports);ft.stripComments=HF.default;function Pi(t){return t&&t.__esModule?t:{default:t}}(function(t,e){e.__esModule=!0,e.default=void 0;var r=ft;function n(a,s){for(var c=0;c<s.length;c++){var l=s[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function i(a,s,c){return s&&n(a.prototype,s),c&&n(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}var u=function a(s,c){if(typeof s!="object"||s===null)return s;var l=new s.constructor;for(var f in s)if(!!s.hasOwnProperty(f)){var h=s[f],g=typeof h;f==="parent"&&g==="object"?c&&(l[f]=c):h instanceof Array?l[f]=h.map(function(m){return a(m,l)}):l[f]=a(h,l)}return l},o=function(){function a(c){c===void 0&&(c={}),Object.assign(this,c),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var s=a.prototype;return s.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},s.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},s.next=function(){return this.parent.at(this.parent.index(this)+1)},s.prev=function(){return this.parent.at(this.parent.index(this)-1)},s.clone=function(l){l===void 0&&(l={});var f=u(this);for(var h in l)f[h]=l[h];return f},s.appendToPropertyAndEscape=function(l,f,h){this.raws||(this.raws={});var g=this[l],m=this.raws[l];this[l]=g+f,m||h!==f?this.raws[l]=(m||g)+h:delete this.raws[l]},s.setPropertyAndEscape=function(l,f,h){this.raws||(this.raws={}),this[l]=f,this.raws[l]=h},s.setPropertyWithoutEscape=function(l,f){this[l]=f,this.raws&&delete this.raws[l]},s.isAtPosition=function(l,f){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>l||this.source.end.line<l||this.source.start.line===l&&this.source.start.column>f||this.source.end.line===l&&this.source.end.column<f)},s.stringifyProperty=function(l){return this.raws&&this.raws[l]||this[l]},s.valueToString=function(){return String(this.stringifyProperty("value"))},s.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},i(a,[{key:"rawSpaceBefore",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.before;return l===void 0&&(l=this.spaces&&this.spaces.before),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=l}},{key:"rawSpaceAfter",get:function(){var l=this.raws&&this.raws.spaces&&this.raws.spaces.after;return l===void 0&&(l=this.spaces.after),l||""},set:function(l){(0,r.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=l}}]),a}();e.default=o,t.exports=e.default})(kt,kt.exports);var le={};le.__esModule=!0,le.UNIVERSAL=le.TAG=le.STRING=le.SELECTOR=le.ROOT=le.PSEUDO=le.NESTING=le.ID=le.COMMENT=le.COMBINATOR=le.CLASS=le.ATTRIBUTE=void 0;var QF="tag";le.TAG=QF;var JF="string";le.STRING=JF;var ZF="selector";le.SELECTOR=ZF;var XF="root";le.ROOT=XF;var KF="pseudo";le.PSEUDO=KF;var YF="nesting";le.NESTING=YF;var e6="id";le.ID=e6;var t6="comment";le.COMMENT=t6;var r6="combinator";le.COMBINATOR=r6;var n6="class";le.CLASS=n6;var i6="attribute";le.ATTRIBUTE=i6;var u6="universal";le.UNIVERSAL=u6,function(t,e){e.__esModule=!0,e.default=void 0;var r=o(kt.exports),n=u(le);function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var y={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(y,E,w):y[E]=d[E]}return y.default=d,p&&p.set(d,y),y}function o(d){return d&&d.__esModule?d:{default:d}}function a(d,v){var p=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(p)return(p=p.call(d)).next.bind(p);if(Array.isArray(d)||(p=s(d))||v&&d&&typeof d.length=="number"){p&&(d=p);var y=0;return function(){return y>=d.length?{done:!0}:{done:!1,value:d[y++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
55
56
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(d,v){if(!!d){if(typeof d=="string")return c(d,v);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return c(d,v)}}function c(d,v){(v==null||v>d.length)&&(v=d.length);for(var p=0,y=new Array(v);p<v;p++)y[p]=d[p];return y}function l(d,v){for(var p=0;p<v.length;p++){var y=v[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(d,y.key,y)}}function f(d,v,p){return v&&l(d.prototype,v),p&&l(d,p),Object.defineProperty(d,"prototype",{writable:!1}),d}function h(d,v){d.prototype=Object.create(v.prototype),d.prototype.constructor=d,g(d,v)}function g(d,v){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,D){return y.__proto__=D,y},g(d,v)}var m=function(d){h(v,d);function v(y){var D;return D=d.call(this,y)||this,D.nodes||(D.nodes=[]),D}var p=v.prototype;return p.append=function(D){return D.parent=this,this.nodes.push(D),this},p.prepend=function(D){D.parent=this,this.nodes.unshift(D);for(var E in this.indexes)this.indexes[E]++;return this},p.at=function(D){return this.nodes[D]},p.index=function(D){return typeof D=="number"?D:this.nodes.indexOf(D)},p.removeChild=function(D){D=this.index(D),this.at(D).parent=void 0,this.nodes.splice(D,1);var E;for(var w in this.indexes)E=this.indexes[w],E>=D&&(this.indexes[w]=E-1);return this},p.removeAll=function(){for(var D=a(this.nodes),E;!(E=D()).done;){var w=E.value;w.parent=void 0}return this.nodes=[],this},p.empty=function(){return this.removeAll()},p.insertAfter=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_+1,0,E].concat(O)),E.parent=this;var b;for(var S in this.indexes)b=this.indexes[S],_<b&&(this.indexes[S]=b+arguments.length-1);return this},p.insertBefore=function(D,E){var w;E.parent=this;for(var _=this.index(D),O=[],C=2;C<arguments.length;C++)O.push(arguments[C]);(w=this.nodes).splice.apply(w,[_,0,E].concat(O)),E.parent=this;var b;for(var S in this.indexes)b=this.indexes[S],b>=_&&(this.indexes[S]=b+arguments.length-1);return this},p._findChildAtPosition=function(D,E){var w=void 0;return this.each(function(_){if(_.atPosition){var O=_.atPosition(D,E);if(O)return w=O,!1}else if(_.isAtPosition(D,E))return w=_,!1}),w},p.atPosition=function(D,E){if(this.isAtPosition(D,E))return this._findChildAtPosition(D,E)||this},p._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},p.each=function(D){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var w,_;this.indexes[E]<this.length&&(w=this.indexes[E],_=D(this.at(w),w),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},p.walk=function(D){return this.each(function(E,w){var _=D(E,w);if(_!==!1&&E.length&&(_=E.walk(D)),_===!1)return!1})},p.walkAttributes=function(D){var E=this;return this.walk(function(w){if(w.type===n.ATTRIBUTE)return D.call(E,w)})},p.walkClasses=function(D){var E=this;return this.walk(function(w){if(w.type===n.CLASS)return D.call(E,w)})},p.walkCombinators=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMBINATOR)return D.call(E,w)})},p.walkComments=function(D){var E=this;return this.walk(function(w){if(w.type===n.COMMENT)return D.call(E,w)})},p.walkIds=function(D){var E=this;return this.walk(function(w){if(w.type===n.ID)return D.call(E,w)})},p.walkNesting=function(D){var E=this;return this.walk(function(w){if(w.type===n.NESTING)return D.call(E,w)})},p.walkPseudos=function(D){var E=this;return this.walk(function(w){if(w.type===n.PSEUDO)return D.call(E,w)})},p.walkTags=function(D){var E=this;return this.walk(function(w){if(w.type===n.TAG)return D.call(E,w)})},p.walkUniversals=function(D){var E=this;return this.walk(function(w){if(w.type===n.UNIVERSAL)return D.call(E,w)})},p.split=function(D){var E=this,w=[];return this.reduce(function(_,O,C){var b=D.call(E,O);return w.push(O),b?(_.push(w),w=[]):C===E.length-1&&_.push(w),_},[])},p.map=function(D){return this.nodes.map(D)},p.reduce=function(D,E){return this.nodes.reduce(D,E)},p.every=function(D){return this.nodes.every(D)},p.some=function(D){return this.nodes.some(D)},p.filter=function(D){return this.nodes.filter(D)},p.sort=function(D){return this.nodes.sort(D)},p.toString=function(){return this.map(String).join("")},f(v,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),v}(r.default);e.default=m,t.exports=e.default}(Dn,Dn.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(l){return l&&l.__esModule?l:{default:l}}function u(l,f){for(var h=0;h<f.length;h++){var g=f[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}function o(l,f,h){return f&&u(l.prototype,f),h&&u(l,h),Object.defineProperty(l,"prototype",{writable:!1}),l}function a(l,f){l.prototype=Object.create(f.prototype),l.prototype.constructor=l,s(l,f)}function s(l,f){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,m){return g.__proto__=m,g},s(l,f)}var c=function(l){a(f,l);function f(g){var m;return m=l.call(this,g)||this,m.type=n.ROOT,m}var h=f.prototype;return h.toString=function(){var m=this.reduce(function(d,v){return d.push(String(v)),d},[]).join(",");return this.trailingComma?m+",":m},h.error=function(m,d){return this._error?this._error(m,d):new Error(m)},o(f,[{key:"errorGenerator",set:function(m){this._error=m}}]),f}(r.default);e.default=c,t.exports=e.default}(Ii,Ii.exports);var Ni={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.SELECTOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Ni,Ni.exports);var $i={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var o6={},s6=o6.hasOwnProperty,a6=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=s6.call(e,i)?e[i]:r[i];return n},l6=/[ -,\.\/:-@\[-\^`\{-~]/,c6=/[ -,\.\/:-@\[\]\^`\{-~]/,f6=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ts=function t(e,r){r=a6(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,u=e.charAt(0),o="",a=0,s=e.length;a<s;){var c=e.charAt(a++),l=c.charCodeAt(),f=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<s){var h=e.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}f="\\"+l.toString(16).toUpperCase()+" "}else r.escapeEverything?l6.test(c)?f="\\"+c:f="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?f="\\"+l.toString(16).toUpperCase()+" ":c=="\\"||!i&&(c=='"'&&n==c||c=="'"&&n==c)||i&&c6.test(c)?f="\\"+c:f=c;o+=f}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(u)&&(o="\\3"+u+" "+o.slice(1))),o=o.replace(f6,function(g,m,d){return m&&m.length%2?g:(m||"")+d}),!i&&r.wrap?n+o+n:o};ts.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},ts.version="3.0.0";var rs=ts;(function(t,e){e.__esModule=!0,e.default=void 0;var r=o(rs),n=ft,i=o(kt.exports),u=le;function o(h){return h&&h.__esModule?h:{default:h}}function a(h,g){for(var m=0;m<g.length;m++){var d=g[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function s(h,g,m){return g&&a(h.prototype,g),m&&a(h,m),Object.defineProperty(h,"prototype",{writable:!1}),h}function c(h,g){h.prototype=Object.create(g.prototype),h.prototype.constructor=h,l(h,g)}function l(h,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,v){return d.__proto__=v,d},l(h,g)}var f=function(h){c(g,h);function g(d){var v;return v=h.call(this,d)||this,v.type=u.CLASS,v._constructed=!0,v}var m=g.prototype;return m.valueToString=function(){return"."+h.prototype.valueToString.call(this)},s(g,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var p=(0,r.default)(v,{isIdentifier:!0});p!==v?((0,n.ensureObject)(this,"raws"),this.raws.value=p):this.raws&&delete this.raws.value}this._value=v}}]),g}(i.default);e.default=f,t.exports=e.default})($i,$i.exports);var Ri={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMMENT,f}return c}(r.default);e.default=a,t.exports=e.default})(Ri,Ri.exports);var Li={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.ID,h}var l=c.prototype;return l.valueToString=function(){return"#"+s.prototype.valueToString.call(this)},c}(r.default);e.default=a,t.exports=e.default})(Li,Li.exports);var ki={exports:{}},En={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=u(rs),n=ft,i=u(kt.exports);function u(f){return f&&f.__esModule?f:{default:f}}function o(f,h){for(var g=0;g<h.length;g++){var m=h[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}function a(f,h,g){return h&&o(f.prototype,h),g&&o(f,g),Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,c(f,h)}function c(f,h){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,d){return m.__proto__=d,m},c(f,h)}var l=function(f){s(h,f);function h(){return f.apply(this,arguments)||this}var g=h.prototype;return g.qualifiedName=function(d){return this.namespace?this.namespaceString+"|"+d:d},g.valueToString=function(){return this.qualifiedName(f.prototype.valueToString.call(this))},a(h,[{key:"namespace",get:function(){return this._namespace},set:function(d){if(d===!0||d==="*"||d==="&"){this._namespace=d,this.raws&&delete this.raws.namespace;return}var v=(0,r.default)(d,{isIdentifier:!0});this._namespace=d,v!==d?((0,n.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(d){this.namespace=d}},{key:"namespaceString",get:function(){if(this.namespace){var d=this.stringifyProperty("namespace");return d===!0?"":d}else return""}}]),h}(i.default);e.default=l,t.exports=e.default})(En,En.exports),function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.TAG,f}return c}(r.default);e.default=a,t.exports=e.default}(ki,ki.exports);var qi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.STRING,f}return c}(r.default);e.default=a,t.exports=e.default})(qi,qi.exports);var ji={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(Dn.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(f){var h;return h=s.call(this,f)||this,h.type=n.PSEUDO,h}var l=c.prototype;return l.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),h,this.rawSpaceAfter].join("")},c}(r.default);e.default=a,t.exports=e.default})(ji,ji.exports);var ns={},h6=wf.default.deprecate;(function(t){t.__esModule=!0,t.default=void 0,t.unescapeValue=v;var e=o(rs),r=o(Ti.exports),n=o(En.exports),i=le,u;function o(w){return w&&w.__esModule?w:{default:w}}function a(w,_){for(var O=0;O<_.length;O++){var C=_[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}function s(w,_,O){return _&&a(w.prototype,_),O&&a(w,O),Object.defineProperty(w,"prototype",{writable:!1}),w}function c(w,_){w.prototype=Object.create(_.prototype),w.prototype.constructor=w,l(w,_)}function l(w,_){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},l(w,_)}var f=h6,h=/^('|")([^]*)\1$/,g=f(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),m=f(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),d=f(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(w){var _=!1,O=null,C=w,b=C.match(h);return b&&(O=b[1],C=b[2]),C=(0,r.default)(C),C!==w&&(_=!0),{deprecatedUsage:_,unescaped:C,quoteMark:O}}function p(w){if(w.quoteMark!==void 0||w.value===void 0)return w;d();var _=v(w.value),O=_.quoteMark,C=_.unescaped;return w.raws||(w.raws={}),w.raws.value===void 0&&(w.raws.value=w.value),w.value=C,w.quoteMark=O,w}var y=function(w){c(_,w);function _(C){var b;return C===void 0&&(C={}),b=w.call(this,p(C))||this,b.type=i.ATTRIBUTE,b.raws=b.raws||{},Object.defineProperty(b.raws,"unquoted",{get:f(function(){return b.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:f(function(){return b.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),b._constructed=!0,b}var O=_.prototype;return O.getQuotedValue=function(b){b===void 0&&(b={});var S=this._determineQuoteMark(b),F=D[S],R=(0,e.default)(this._value,F);return R},O._determineQuoteMark=function(b){return b.smart?this.smartQuoteMark(b):this.preferredQuoteMark(b)},O.setValue=function(b,S){S===void 0&&(S={}),this._value=b,this._quoteMark=this._determineQuoteMark(S),this._syncRawValue()},O.smartQuoteMark=function(b){var S=this.value,F=S.replace(/[^']/g,"").length,R=S.replace(/[^"]/g,"").length;if(F+R===0){var X=(0,e.default)(S,{isIdentifier:!0});if(X===S)return _.NO_QUOTE;var Y=this.preferredQuoteMark(b);if(Y===_.NO_QUOTE){var Z=this.quoteMark||b.quoteMark||_.DOUBLE_QUOTE,U=D[Z],Pe=(0,e.default)(S,U);if(Pe.length<X.length)return Z}return Y}else return R===F?this.preferredQuoteMark(b):R<F?_.DOUBLE_QUOTE:_.SINGLE_QUOTE},O.preferredQuoteMark=function(b){var S=b.preferCurrentQuoteMark?this.quoteMark:b.quoteMark;return S===void 0&&(S=b.preferCurrentQuoteMark?b.quoteMark:this.quoteMark),S===void 0&&(S=_.DOUBLE_QUOTE),S},O._syncRawValue=function(){var b=(0,e.default)(this._value,D[this.quoteMark]);b===this._value?this.raws&&delete this.raws.value:this.raws.value=b},O._handleEscapes=function(b,S){if(this._constructed){var F=(0,e.default)(S,{isIdentifier:!0});F!==S?this.raws[b]=F:delete this.raws[b]}},O._spacesFor=function(b){var S={before:"",after:""},F=this.spaces[b]||{},R=this.raws.spaces&&this.raws.spaces[b]||{};return Object.assign(S,F,R)},O._stringFor=function(b,S,F){S===void 0&&(S=b),F===void 0&&(F=E);var R=this._spacesFor(S);return F(this.stringifyProperty(b),R)},O.offsetOf=function(b){var S=1,F=this._spacesFor("attribute");if(S+=F.before.length,b==="namespace"||b==="ns")return this.namespace?S:-1;if(b==="attributeNS"||(S+=this.namespaceString.length,this.namespace&&(S+=1),b==="attribute"))return S;S+=this.stringifyProperty("attribute").length,S+=F.after.length;var R=this._spacesFor("operator");S+=R.before.length;var X=this.stringifyProperty("operator");if(b==="operator")return X?S:-1;S+=X.length,S+=R.after.length;var Y=this._spacesFor("value");S+=Y.before.length;var Z=this.stringifyProperty("value");if(b==="value")return Z?S:-1;S+=Z.length,S+=Y.after.length;var U=this._spacesFor("insensitive");return S+=U.before.length,b==="insensitive"&&this.insensitive?S:-1},O.toString=function(){var b=this,S=[this.rawSpaceBefore,"["];return S.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(S.push(this._stringFor("operator")),S.push(this._stringFor("value")),S.push(this._stringFor("insensitiveFlag","insensitive",function(F,R){return F.length>0&&!b.quoted&&R.before.length===0&&!(b.spaces.value&&b.spaces.value.after)&&(R.before=" "),E(F,R)}))),S.push("]"),S.push(this.rawSpaceAfter),S.join("")},s(_,[{key:"quoted",get:function(){var b=this.quoteMark;return b==="'"||b==='"'},set:function(b){m()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(b){if(!this._constructed){this._quoteMark=b;return}this._quoteMark!==b&&(this._quoteMark=b,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(b){if(this._constructed){var S=v(b),F=S.deprecatedUsage,R=S.unescaped,X=S.quoteMark;if(F&&g(),R===this._value&&X===this._quoteMark)return;this._value=R,this._quoteMark=X,this._syncRawValue()}else this._value=b}},{key:"insensitive",get:function(){return this._insensitive},set:function(b){b||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=b}},{key:"attribute",get:function(){return this._attribute},set:function(b){this._handleEscapes("attribute",b),this._attribute=b}}]),_}(n.default);t.default=y,y.NO_QUOTE=null,y.SINGLE_QUOTE="'",y.DOUBLE_QUOTE='"';var D=(u={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},u[null]={isIdentifier:!0},u);function E(w,_){return""+_.before+w+_.after}})(ns);var Ui={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(En.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.UNIVERSAL,f.value="*",f}return c}(r.default);e.default=a,t.exports=e.default})(Ui,Ui.exports);var Vi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.COMBINATOR,f}return c}(r.default);e.default=a,t.exports=e.default})(Vi,Vi.exports);var zi={exports:{}};(function(t,e){e.__esModule=!0,e.default=void 0;var r=i(kt.exports),n=le;function i(s){return s&&s.__esModule?s:{default:s}}function u(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,o(s,c)}function o(s,c){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},o(s,c)}var a=function(s){u(c,s);function c(l){var f;return f=s.call(this,l)||this,f.type=n.NESTING,f.value="&",f}return c}(r.default);e.default=a,t.exports=e.default})(zi,zi.exports);var is={exports:{}};(function(t,e){e.__esModule=!0,e.default=r;function r(n){return n.sort(function(i,u){return i-u})}t.exports=e.default})(is,is.exports);var nf={},H={};H.__esModule=!0,H.word=H.tilde=H.tab=H.str=H.space=H.slash=H.singleQuote=H.semicolon=H.plus=H.pipe=H.openSquare=H.openParenthesis=H.newline=H.greaterThan=H.feed=H.equals=H.doubleQuote=H.dollar=H.cr=H.comment=H.comma=H.combinator=H.colon=H.closeSquare=H.closeParenthesis=H.caret=H.bang=H.backslash=H.at=H.asterisk=H.ampersand=void 0;var d6=38;H.ampersand=d6;var p6=42;H.asterisk=p6;var g6=64;H.at=g6;var v6=44;H.comma=v6;var m6=58;H.colon=m6;var y6=59;H.semicolon=y6;var D6=40;H.openParenthesis=D6;var E6=41;H.closeParenthesis=E6;var w6=91;H.openSquare=w6;var C6=93;H.closeSquare=C6;var A6=36;H.dollar=A6;var b6=126;H.tilde=b6;var F6=94;H.caret=F6;var _6=43;H.plus=_6;var B6=61;H.equals=B6;var S6=124;H.pipe=S6;var O6=62;H.greaterThan=O6;var M6=32;H.space=M6;var uf=39;H.singleQuote=uf;var x6=34;H.doubleQuote=x6;var I6=47;H.slash=I6;var T6=33;H.bang=T6;var P6=92;H.backslash=P6;var N6=13;H.cr=N6;var $6=12;H.feed=$6;var R6=10;H.newline=R6;var L6=9;H.tab=L6;var k6=uf;H.str=k6;var q6=-1;H.comment=q6;var j6=-2;H.word=j6;var U6=-3;H.combinator=U6,function(t){t.__esModule=!0,t.FIELDS=void 0,t.default=m;var e=u(H),r,n;function i(d){if(typeof WeakMap!="function")return null;var v=new WeakMap,p=new WeakMap;return(i=function(D){return D?p:v})(d)}function u(d,v){if(!v&&d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var p=i(v);if(p&&p.has(d))return p.get(d);var y={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in d)if(E!=="default"&&Object.prototype.hasOwnProperty.call(d,E)){var w=D?Object.getOwnPropertyDescriptor(d,E):null;w&&(w.get||w.set)?Object.defineProperty(y,E,w):y[E]=d[E]}return y.default=d,p&&p.set(d,y),y}for(var o=(r={},r[e.tab]=!0,r[e.newline]=!0,r[e.cr]=!0,r[e.feed]=!0,r),a=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),s={},c="0123456789abcdefABCDEF",l=0;l<c.length;l++)s[c.charCodeAt(l)]=!0;function f(d,v){var p=v,y;do{if(y=d.charCodeAt(p),a[y])return p-1;y===e.backslash?p=h(d,p)+1:p++}while(p<d.length);return p-1}function h(d,v){var p=v,y=d.charCodeAt(p+1);if(!o[y])if(s[y]){var D=0;do p++,D++,y=d.charCodeAt(p+1);while(s[y]&&D<6);D<6&&y===e.space&&p++}else p++;return p}var g={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};t.FIELDS=g;function m(d){var v=[],p=d.css.valueOf(),y=p,D=y.length,E=-1,w=1,_=0,O=0,C,b,S,F,R,X,Y,Z,U,Pe,wt,Dr,Ct;function G(J,z){if(d.safe)p+=z,U=p.length-1;else throw d.error("Unclosed "+J,w,_-E,_)}for(;_<D;){switch(C=p.charCodeAt(_),C===e.newline&&(E=_,w+=1),C){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:U=_;do U+=1,C=p.charCodeAt(U),C===e.newline&&(E=U,w+=1);while(C===e.space||C===e.newline||C===e.tab||C===e.cr||C===e.feed);Ct=e.space,F=w,S=U-E-1,O=U;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:U=_;do U+=1,C=p.charCodeAt(U);while(C===e.plus||C===e.greaterThan||C===e.tilde||C===e.pipe);Ct=e.combinator,F=w,S=_-E,O=U;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:U=_,Ct=C,F=w,S=_-E,O=U+1;break;case e.singleQuote:case e.doubleQuote:Dr=C===e.singleQuote?"'":'"',U=_;do for(R=!1,U=p.indexOf(Dr,U+1),U===-1&&G("quote",Dr),X=U;p.charCodeAt(X-1)===e.backslash;)X-=1,R=!R;while(R);Ct=e.str,F=w,S=_-E,O=U+1;break;default:C===e.slash&&p.charCodeAt(_+1)===e.asterisk?(U=p.indexOf("*/",_+2)+1,U===0&&G("comment","*/"),b=p.slice(_,U+1),Z=b.split(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.27",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "7.0.0-props.27",
|
|
30
30
|
"@byteluck-fe/model-driven-shared": "7.0.0-props.19",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
39
39
|
"postcss-nested": "^7.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "9dce69ac531a47802b45db121c824a9cee4d1992"
|
|
42
42
|
}
|