mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 13:51:53 +02:00
147 lines
629 KiB
JavaScript
147 lines
629 KiB
JavaScript
|
var Gb=Object.create;var Gi=Object.defineProperty;var Hb=Object.getOwnPropertyDescriptor;var Kb=Object.getOwnPropertyNames;var Yb=Object.getPrototypeOf,Qb=Object.prototype.hasOwnProperty;var D=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),Zb=(n,t)=>{for(var r in t)Gi(n,r,{get:t[r],enumerable:!0})},td=(n,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kb(t))!Qb.call(n,i)&&i!==r&&Gi(n,i,{get:()=>t[i],enumerable:!(e=Hb(t,i))||e.enumerable});return n};var ye=(n,t,r)=>(r=n!=null?Gb(Yb(n)):{},td(t||!n||!n.__esModule?Gi(r,"default",{value:n,enumerable:!0}):r,n)),ex=n=>td(Gi({},"__esModule",{value:!0}),n);var vn=D((V2,vo)=>{var tx=require("tty"),rx=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||tx.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),ue=(n,t,r=n)=>e=>{let i=""+e,a=i.indexOf(t,n.length);return~a?n+rd(i,t,r,a)+t:n+i+t},rd=(n,t,r,e)=>{let i=n.substring(0,e)+r,a=n.substring(e+t.length),s=a.indexOf(t);return~s?i+rd(a,t,r,s):i+a},nd=(n=rx)=>({isColorSupported:n,reset:n?t=>`\x1B[0m${t}\x1B[0m`:String,bold:n?ue("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:n?ue("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:n?ue("\x1B[3m","\x1B[23m"):String,underline:n?ue("\x1B[4m","\x1B[24m"):String,inverse:n?ue("\x1B[7m","\x1B[27m"):String,hidden:n?ue("\x1B[8m","\x1B[28m"):String,strikethrough:n?ue("\x1B[9m","\x1B[29m"):String,black:n?ue("\x1B[30m","\x1B[39m"):String,red:n?ue("\x1B[31m","\x1B[39m"):String,green:n?ue("\x1B[32m","\x1B[39m"):String,yellow:n?ue("\x1B[33m","\x1B[39m"):String,blue:n?ue("\x1B[34m","\x1B[39m"):String,magenta:n?ue("\x1B[35m","\x1B[39m"):String,cyan:n?ue("\x1B[36m","\x1B[39m"):String,white:n?ue("\x1B[37m","\x1B[39m"):String,gray:n?ue("\x1B[90m","\x1B[39m"):String,bgBlack:n?ue("\x1B[40m","\x1B[49m"):String,bgRed:n?ue("\x1B[41m","\x1B[49m"):String,bgGreen:n?ue("\x1B[42m","\x1B[49m"):String,bgYellow:n?ue("\x1B[43m","\x1B[49m"):String,bgBlue:n?ue("\x1B[44m","\x1B[49m"):String,bgMagenta:n?ue("\x1B[45m","\x1B[49m"):String,bgCyan:n?ue("\x1B[46m","\x1B[49m"):String,bgWhite:n?ue("\x1B[47m","\x1B[49m"):String});vo.exports=nd();vo.exports.createColors=nd});var yo=D((W2,od)=>{"use strict";var go="'".charCodeAt(0),id='"'.charCodeAt(0),Hi="\\".charCodeAt(0),ad="/".charCodeAt(0),Ki=`
|
||
|
`.charCodeAt(0),gn=" ".charCodeAt(0),Yi="\f".charCodeAt(0),Qi=" ".charCodeAt(0),Zi="\r".charCodeAt(0),nx="[".charCodeAt(0),ix="]".charCodeAt(0),ax="(".charCodeAt(0),sx=")".charCodeAt(0),ox="{".charCodeAt(0),lx="}".charCodeAt(0),ux=";".charCodeAt(0),cx="*".charCodeAt(0),fx=":".charCodeAt(0),dx="@".charCodeAt(0),ea=/[\t\n\f\r "#'()/;[\\\]{}]/g,ta=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,px=/.[\n"'(/\\]/,sd=/[\da-f]/i;od.exports=function(t,r={}){let e=t.css.valueOf(),i=r.ignoreErrors,a,s,l,c,p,f,v,m,o,u,d=e.length,h=0,g=[],y=[];function b(){return h}function x(T){throw t.error("Unclosed "+T,h)}function w(){return y.length===0&&h>=d}function E(T){if(y.length)return y.pop();if(h>=d)return;let M=T?T.ignoreUnclosed:!1;switch(a=e.charCodeAt(h),a){case Ki:case gn:case Qi:case Zi:case Yi:{s=h;do s+=1,a=e.charCodeAt(s);while(a===gn||a===Ki||a===Qi||a===Zi||a===Yi);u=["space",e.slice(h,s)],h=s-1;break}case nx:case ix:case ox:case lx:case fx:case ux:case sx:{let U=String.fromCharCode(a);u=[U,U,h];break}case ax:{if(m=g.length?g.pop()[1]:"",o=e.charCodeAt(h+1),m==="url"&&o!==go&&o!==id&&o!==gn&&o!==Ki&&o!==Qi&&o!==Yi&&o!==Zi){s=h;do{if(f=!1,s=e.indexOf(")",s+1),s===-1)if(i||M){s=h;break}else x("bracket");for(v=s;e.charCodeAt(v-1)===Hi;)v-=1,f=!f}while(f);u=["brackets",e.slice(h,s+1),h,s],h=s}else s=e.indexOf(")",h+1),c=e.slice(h,s+1),s===-1||px.test(c)?u=["(","(",h]:(u=["brackets",c,h,s],h=s);break}case go:case id:{l=a===go?"'":'"',s=h;do{if(f=!1,s=e.indexOf(l,s+1),s===-1)if(i||M){s=h+1;break}else x("string");for(v=s;e.charCodeAt(v-1)===Hi;)v-=1,f=!f}while(f);u=["string",e.slice(h,s+1),h,s],h=s;break}case dx:{ea.lastIndex=h+1,ea.test(e),ea.lastIndex===0?s=e.length-1:s=ea.lastIndex-2,u=["at-word",e.slice(h,s+1),h,s],h=s;break}case Hi:{for(s=h,p=!0;e.charCodeAt(s+1)===Hi;)s+=1,p=!p;if(a=e.charCodeAt(s+1),p&&a!==ad&&a!==gn&&a!==Ki&&a!==Qi&&a!==Zi&&a!==Yi&&(s+=1,sd.test(e.charAt(s)))){for(;sd.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===gn&&(s+=1)}u=["word",e.slice(h,s+1),h,s],h=s;break}default:{a===ad&&e.charCodeAt(h+1)===cx?(s=e.indexOf("*/",h+2)+1,s===0&&(i||M?s=e.length:x("comment")),u=["comment",e.slice(h,s+1),h,s],h=s):(ta.lastIndex=h+1,ta.test(e),ta.lastIndex===0?s=e.length-1:s=ta.lastIndex-2,u=["word",e.slice(h,s+1),h,s],g.push(u),h=s);break}}return h++,u}function C(T){y.push(T)}return{back:C,nextToken:E,endOfFile:w,position:b}}});var bo=D((J2,cd)=>{"use strict";var Ie=vn(),hx=yo(),ld;function mx(n){ld=n}var vx={brackets:Ie.cyan,"at-word":Ie.cyan,comment:Ie.gray,string:Ie.green,class:Ie.yellow,hash:Ie.magenta,call:Ie.cyan,"(":Ie.cyan,")":Ie.cyan,"{":Ie.yellow,"}":Ie.yellow,"[":Ie.yellow,"]":Ie.yellow,":":Ie.yellow,";":Ie.yellow};function gx([n,t],r){if(n==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!r.endOfFile()){let e=r.nextToken();if(r.back(e),e[0]==="brackets"||e[0]==="(")return"call"}return n}function ud(n){let t=hx(new ld(n),{ignoreErrors:!0}),r="";for(;!t.endOfFile();){let e=t.nextToken(),i=vx[gx(e,t)];i?r+=e[1].split(/\r?\n/).map(a=>i(a)).join(`
|
||
|
`):r+=e[1]}return r}ud.registerInput=mx;cd.exports=ud});var ra=D((X2,pd)=>{"use strict";var fd=vn(),dd=bo(),nr=class extends Error{constructor(t,r,e,i,a,s){super(t),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof e<"u"&&(typeof r=="number"?(this.line=r,this.column=e):(this.line=r.line,this.column=r.column,this.endLine=e.line,this.endColumn=e.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,nr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=fd.isColorSupported),dd&&t&&(r=dd(r));let e=r.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,e.length),s=String(a).length,l,c;if(t){let{bold:p,red:f,gray:v}=fd.createColors(!0);l=m=>p(f(m)),c=m=>v(m)}else l=c=p=>p;return e.slice(i,a).map((p,f)=>{let v=i+1+f,m=" "+(" "+v).slice(-s)+" | ";if(v===this.line){let o=c(m.replace(/\d/g," "))+p.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+c(m)+p+`
|
||
|
`+o+l("^")}return" "+c(m)+p}).join(`
|
||
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
||
|
|
||
|
`+t+`
|
||
|
`),this.name+": "+this.message+t}};pd.exports=nr;nr.default=nr});var na=D(($2,xo)=>{"use strict";xo.exports.isClean=Symbol("isClean");xo.exports.my=Symbol("my")});var So=D((G2,md)=>{"use strict";var hd={colon:": ",indent:" ",beforeDecl:`
|
||
|
`,beforeRule:`
|
||
|
`,beforeOpen:" ",beforeClose:`
|
||
|
`,beforeComment:`
|
||
|
`,after:`
|
||
|
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function yx(n){return n[0].toUpperCase()+n.slice(1)}var yn=class{constructor(t){this.builder=t}stringify(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}document(t){this.body(t)}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}comment(t){let r=this.raw(t,"left","commentLeft"),e=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+e+"*/",t)}decl(t,r){let e=this.raw(t,"between","colon"),i=t.prop+e+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),r&&(i+=";"),this.builder(i,t)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}atrule(t,r){let e="@"+t.name,i=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?e+=t.raws.afterName:i&&(e+=" "),t.nodes)this.block(t,e+i);else{let a=(t.raws.between||"")+(r?";":"");this.builder(e+i+a,t)}}body(t){let r=t.nodes.length-1;for(;r>0&&t.nodes[r].type==="comment";)r-=1;let e=this.raw(t,"semicolon");for(let i=0;i<t.nodes.length;i++){let a=t.nodes[i],s=this.raw(a,"before");s&&this.builder(s),this.stringify(a,r!==i||e)}}block(t,r){let e=this.raw(t,"between","beforeOpen");this.builder(r+e+"{",t,"start");let i;t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(i),this.builder("}",t,"end")}raw(t,r,e){let i;if(e||(e=r),r&&(i=t.raws[r],typeof i<"u"))return i;let a=t.parent;if(e==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return hd[e];let s=t.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[e]<"u")return s.rawCache[e];if(e==="before"||e==="after")return this.beforeAfter(t,e);{let l="raw"+yx(e);this[l]?i=this[l](s,t):s.walk(c=>{if(i=c.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=hd[e]),s.rawCache[e]=i,i}rawSemicolon(t){let r;return t.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"&&(r=e.raws.semicolon,typeof r<"u"))return!1}),r}rawEmptyBody(t){let r;return t.walk(e=>{if(e.nodes&&e.nodes.length===0&&(r=e.raws.after,typeof r<"u"))return!1}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk(e=>{let i=e.parent;if(i&&i!==t&&i.parent&&i.parent===t&&typeof e.raws.before<"u"){let a=e.raws.before.split(`
|
||
|
`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawBeforeComment(t,r){let e;return t.walkComments(i=>{if(typeof i.raws.before<"u")return e=i.raws.before,e.includes(`
|
||
|
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),typeof e>"u"?e=this.raw(r,null,"beforeDecl"):e&&(e=e.replace(/\S/g,"")),e}rawBeforeDecl(t,r){let e;return t.walkDecls(i=>{if(typeof i.raws.before<"u")return e=i.raws.before,e.includes(`
|
||
|
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),typeof e>"u"?e=this.raw(r,null,"beforeRule"):e&&(e=e.replace(/\S/g,"")),e}rawBeforeRule(t){let r;return t.walk(e=>{if(e.nodes&&(e.parent!==t||t.first!==e)&&typeof e.raws.before<"u")return r=e.raws.before,r.includes(`
|
||
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeClose(t){let r;return t.walk(e=>{if(e.nodes&&e.nodes.length>0&&typeof e.raws.after<"u")return r=e.raws.after,r.includes(`
|
||
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(t){let r;return t.walk(e=>{if(e.type!=="decl"&&(r=e.raws.between,typeof r<"u"))return!1}),r}rawColon(t){let r;return t.walkDecls(e=>{if(typeof e.raws.between<"u")return r=e.raws.between.replace(/[^\s:]/g,""),!1}),r}beforeAfter(t,r){let e;t.type==="decl"?e=this.raw(t,null,"beforeDecl"):t.type==="comment"?e=this.raw(t,null,"beforeComment"):r==="before"?e=this.raw(t,null,"beforeRule"):e=this.raw(t,null,"beforeClose");let i=t.parent,a=0;for(;i&&i.type!=="root";)a+=1,i=i.parent;if(e.includes(`
|
||
|
`)){let s=this.raw(t,null,"indent");if(s.length)for(let l=0;l<a;l++)e+=s}return e}rawValue(t,r){let e=t[r],i=t.raws[r];return i&&i.value===e?i.raw:e}};md.exports=yn;yn.default=yn});var bn=D((H2,vd)=>{"use strict";var bx=So();function wo(n,t){new bx(t).stringify(n)}vd.exports=wo;wo.default=wo});var Sn=D((K2,gd)=>{"use strict";var{isClean:ia,my:xx}=na(),Sx=ra(),wx=So(),Ex=bn();function Eo(n,t){let r=new n.constructor;for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e)||e==="proxyCache")continue;let i=n[e],a=typeof i;e==="parent"&&a==="object"?t&&(r[e]=t):e==="source"?r[e]=i:Array.isArray(i)?r[e]=i.map(s=>Eo(s,r)):(a==="object"&&i!==null&&(i=Eo(i)),r[e]=i)}return r}var xn=class{constructor(t={}){this.raws={},this[ia]=!1,this[xx]=!0;for(let r in t)if(r==="nodes"){this.nodes=[];for(let e of t[r])typeof e.clone=="function"?this.append(e.clone()):this.append(e)}else this[r]=t[r]}error(t,r={}){if(this.source){let{start:e,end:i}=this.rangeBy(r);return this.source.input.error(t,{line:e.line,column:e.column},{line:i.line,column:i.column},r)}return new Sx(t)}warn(t,r,e){let i={node:this};for(let a in e)i[a]=e[a];return t.warn(r,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(t=Ex){t.stringify&&(t=t.stringify);let r="";return t(this,e=>{r+=e}),r}assign(t={}){for(let r in t)this[r]=t[r];return this}clone(t={}){let r=Eo(this);for(let e in t)r[e]=t[e];return r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}replaceWith(...t){if(this.parent){let r=this,e=!1;for(let i of t)i===this?e=!0:e?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);e||this.remove()}return this}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}before(t){return this.parent.insertBefore(this,t),this}after(t){return this.parent.insertAfter(this,t),this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}raw(t,r){return new wx().raw(this,t,r)}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}toJSON(t,r){let e={},i=r==null;r=r||new Map;let a=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let l=this[s];if(Array.isArray(l))e[s]=l.map(c=>typeof c=="object"&&c.toJSON?c.toJSON(null,r):c);else if(typeof l=="object"&&l.toJSON)e[s]=l.toJSON(null,r);else if(s==="source"){let c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),e[s]={inputId:c,start:l.start,end:l.end}}else e[s]=l}return i&&(e.inputs=[...r.keys()].map(s=>s.toJSON())),e}positionInside(t){let r=this.toString(),e=this.source.start.column,i=this.source.start.line;for(let a=0;a<t;a++)r[a]===`
|
||
|
`?(e=1,i+=1):e+=1;return{line:i,column:e}}positionBy(t){let r=this.source.start;if(t.index)r=this.positionInside(t.index);else if(t.word){let e=this.toString().indexOf(t.word);e!==-1&&(r=this.positionInside(e))}return r}rangeBy(t){let r={line:this.source.start.line,column:this.source.start.column},e=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:r.line,column:r.column+1};if(t.word){let i=this.toString().indexOf(t.word);i!==-1&&(r=this.positionInside(i),e=this.positionInside(i+t.word.length))}else t.start?r={line:t.start.line,column:t.start.column}:t.index&&(r=this.positionInside(t.index)),t.end?e={line:t.end.line,column:t.end.column}:t.endIndex?e=this.positionInside(t.endIndex):t.index&&(e=this.positionInside(t.index+1));return(e.line<r.line||e.line===r.line&&e.column<=r.column)&&(e={line:r.line,column:r.column+1}),{start:r,end:e}}getProxyProcessor(){return{set(t,r,e){return t[r]===e||(t[r]=e,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&t.markDirty()),!0},get(t,r){return r==="proxyOf"?t:r==="root"?()=>t.root().toProxy():t[r]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}markDirty(){if(this[ia]){this[ia]=!1;let t=this;for(;t=t.parent;)t[ia]=!1}}get proxyOf(){return this}};gd.exports=xn;xn.default=xn});var En=D((Y2,yd)=>{"use strict";var Dx=Sn(),wn=class extends Dx{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};yd.exports=wn;wn.default=wn});var xd=D(Do=>{var bd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Do.encode=function(n){if(0<=n&&n<bd.length)return bd[n];throw new TypeError("Must be between 0 and 63: "+n)};Do.decode=function(n){var t=65,r=90,e=97,i=122,a=48,s=57,l=43,c=47,p=26,f=52;return t<=n&&n<=r?n-t:e<=n&&n<=i?n-e+p:a<=n&&n<=s?n-a+f:n==l?62:n==c?63:-1}});var _o=D(Ao=>{var Sd=xd(),Co=5,wd=1<<Co,Ed=wd-1,Dd=wd;function Cx(n){return n<0?(-n<<1)+1:(n<<1)+0}function Ax(n){var t=(n&1)===1,r=n>>1;return t?-r:r}Ao.encode=function(t){var r="",e,i=Cx(t);do e=i&Ed,i>>>=Co,i>0&&(e|=Dd),r+=Sd.encode(e);while(i>0);return r};Ao.decode=function(t,r,e){var i=t.length,a=0,s=0,l,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Sd.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));l=!!(c&Dd),c&=Ed,a=a+(c<<s),s+=Co}while(l);e.value=Ax(a),e.rest=r}});var Ar=D(Ce=>{function _x(n,t,r){if(t in n)return n[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Ce.getArg=_x;var Cd=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Tx=/^data:.+\,.+$/;function Dn(n){var t=n.match(Cd);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Ce.urlParse=Dn;function Cr(n){var t="";return n.scheme&&(t+=n.scheme+":"),t+="//",n.auth&&(t+=n.auth+"@"),n.host&&(t+=n.host),n.port&&(t+=":"+n.port),n.path&&(t+=n.path),t}Ce.urlGenerate=Cr;var kx=32;function Fx(n){var t=[];return function(r){for(var e=0;e<t.length;e++)if(t[e].input===r){var i=t[0];return t[0]=t[e],t[e]=i,t[0].result}var a=n(r);return t.unshift({input:r,result:a}),t.length>kx&&t.pop(),a}}var To=Fx(function(t){var r=t,e=Dn(t);if(e){if(!e.path)return t;r=e.path}for(var i=Ce.isAbsolute(r),a=[],s=0,l=0;;)if(s=l,l=r.indexOf("/",s),l===-1){a.push(r.slice(s));break}else for(a.push(r.slice(s,l));l<r.length&&r[l]==="/";)l++;for(var c,p=0,l=a.length-1;l>=0;l--)c=a[l],c==="."?a.splice(l,1):c===".."?p++:p>0&&(c===""?(a.splice(l+1,p),p=0):(a.splice(l,2),p--));return r=a.join("/"),r===""&&(r=i?"/":"."),e?(e.path=r,Cr(e)):r});Ce.normalize=To;function Ad(n,t){n===""&&(n="."),t===""&&(t=".");var r=Dn(t),e=Dn(n);if(e&&(n=e.path||"/"),r&&!r.scheme)return e&&(r.scheme=e.sch
|
||
|
`);e=new Array(a.length);let s=0;for(let l=0,c=a.length;l<c;l++)e[l]=s,s+=a[l].length+1;this[Ro]=e}r=e[e.length-1];let i=0;if(t>=r)i=e.length-1;else{let a=e.length-2,s;for(;i<a;)if(s=i+(a-i>>1),t<e[s])a=s-1;else if(t>=e[s+1])i=s+1;else{i=s;break}}return{line:i+1,col:t-e[i]+1}}error(t,r,e,i={}){let a,s,l;if(r&&typeof r=="object"){let p=r,f=e;if(typeof r.offset=="number"){let v=this.fromOffset(p.offset);r=v.line,e=v.col}else r=p.line,e=p.column;if(typeof f.offset=="number"){let v=this.fromOffset(f.offset);s=v.line,l=v.col}else s=f.line,l=f.column}else if(!e){let p=this.fromOffset(r);r=p.line,e=p.col}let c=this.origin(r,e,s,l);return c?a=new Kd(t,c.endLine===void 0?c.line:{line:c.line,column:c.column},c.endLine===void 0?c.column:{line:c.endLine,column:c.endColumn},c.source,c.file,i.plugin):a=new Kd(t,s===void 0?r:{line:r,column:e},s===void 0?e:{line:s,column:l},this.css,this.file,i.plugin),a.input={line:r,column:e,endLine:s,endColumn:l,source:this.css},this.file&&(fa&&(a.input.url=fa(this.file).toString()),a.input.file=this.file),a}origin(t,r,e,i){if(!this.map)return!1;let a=this.map.consumer(),s=a.originalPositionFor({line:t,column:r});if(!s.source)return!1;let l;typeof e=="number"&&(l=a.originalPositionFor({line:e,column:i}));let c;Uo(s.source)?c=fa(s.source):c=new URL(s.source,this.map.consumer().sourceRoot||fa(this.map.mapFile));let p={url:c.toString(),line:s.line,column:s.column,endLine:l&&l.line,endColumn:l&&l.column};if(c.protocol==="file:")if(Hd)p.file=Hd(c);else throw new Error("file: protocol is not available in this PostCSS build");let f=a.sourceContentFor(s.source);return f&&(p.source=f),p}mapResolve(t){return/^\w+:\/\//.test(t)?t:jo(this.map.consumer().sourceRoot||this.map.root||".",t)}get from(){return this.file||this.id}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(t[r]=this[r]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};Qd.exports=kr;kr.default=kr;qo&&qo.registerInput&&qo.registerInput(kr)});var Vo=D((dM,ip)=>{"use strict";var{SourceMapConsumer:ep,SourceMapGenerator:da}=ca(),{dirname:pa,resolve:tp,relative:rp,sep:np}=require("path"),{pathToFileURL:Zd}=require("url"),oS=Tn(),lS=Boolean(ep&&da),uS=Boolean(pa&&tp&&rp&&np),zo=class{constructor(t,r,e,i){this.stringify=t,this.mapOpts=e.map||{},this.root=r,this.opts=e,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let r=t.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let t=new oS(this.css,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let t={};if(this.root)this.root.walk(r=>{if(r.source){let e=r.source.input.from;if(e&&!t[e]){t[e]=!0;let i=this.usesFileUrls?this.toFileUrl(e):this.toUrl(this.path(e));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)}}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),e=t.root||pa(t.file),i;this.mapOpts.sourcesContent===!1?(i=new ep(t.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=t.consumer(),this.map.applySourceMap(i,r,this.to
|
||
|
`;this.css.includes(`\r
|
||
|
`)&&(r=`\r
|
||
|
`),this.css+=r+"/*# sourceMappingURL="+t+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=da.fromSourceMap(t)}else this.map=new da({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});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]}path(t){if(t.indexOf("<")===0||/^\w+:\/\//.test(t)||this.mapOpts.absolute)return t;let r=this.opts.to?pa(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(r=pa(tp(r,this.mapOpts.annotation))),t=rp(r,t),t}toUrl(t){return np==="\\"&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}toFileUrl(t){if(Zd)return Zd(t).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new da({file:this.outputFile()});let t=1,r=1,e="<no source>",i={source:"",generated:{line:0,column:0},original:{line:0,column:0}},a,s;this.stringify(this.root,(l,c,p)=>{if(this.css+=l,c&&p!=="end"&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=this.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,this.map.addMapping(i)):(i.source=e,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=l.match(/\n/g),a?(t+=a.length,s=l.lastIndexOf(`
|
||
|
`),r=l.length-s):r+=l.length,c&&p!=="start"){let f=c.parent||{raws:{}};(c.type!=="decl"||c!==f.last||f.raws.semicolon)&&(c.source&&c.source.end?(i.source=this.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2,this.map.addMapping(i)):(i.source=e,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1,this.map.addMapping(i)))}})}generate(){if(this.clearAnnotation(),uS&&lS&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,r=>{t+=r}),[t]}}};ip.exports=zo});var Fn=D((pM,ap)=>{"use strict";var cS=Sn(),kn=class extends cS{constructor(t){super(t),this.type="comment"}};ap.exports=kn;kn.default=kn});var Ut=D((hM,hp)=>{"use strict";var{isClean:sp,my:op}=na(),lp=En(),up=Fn(),fS=Sn(),cp,Wo,Jo,fp;function dp(n){return n.map(t=>(t.nodes&&(t.nodes=dp(t.nodes)),delete t.source,t))}function pp(n){if(n[sp]=!1,n.proxyOf.nodes)for(let t of n.proxyOf.nodes)pp(t)}var Je=class extends fS{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),e,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(e=this.indexes[r],i=t(this.proxyOf.nodes[e],e),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}walk(t){return this.each((r,e)=>{let i;try{i=t(r,e)}catch(a){throw r.addToError(a)}return i!==!1&&r.walk&&(i=r.walk(t)),i})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((e,i)=>{if(e.type==="decl"&&t.test(e.prop))return r(e,i)}):this.walk((e,i)=>{if(e.type==="decl"&&e.prop===t)return r(e,i)}):(r=t,this.walk((e,i)=>{if(e.type==="decl")return r(e,i)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((e,i)=>{if(e.type==="rule"&&t.test(e.selector))return r(e,i)}):this.walk((e,i)=>{if(e.type==="rule"&&e.selector===t)return r(e,i)}):(r=t,this.walk((e,i)=>{if(e.type==="rule")return r(e,i)}))}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((e,i)=>{if(e.type==="atrule"&&t.test(e.name))return r(e,i)}):this.walk((e,i)=>{if(e.type==="atrule"&&e.name===t)return r(e,i)}):(r=t,this.walk((e,i)=>{if(e.type==="atrule")return r(e,i)}))}walkComments(t){return this.walk((r,e)=>{if(r.type==="comment")return t(r,e)})}append(...t){for(let r of t){let e=this.normalize(r,this.last);for(let i of e)this.proxyOf.nodes.push(i)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let r of t){let e=this.normalize(r,this.first,"prepend").reverse();for(let i of e)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+e.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let r of this.nodes)r.cleanRaws(t)}insertBefore(t,r){let e=this.index(t),i=e===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[e],i).reverse();e=this.index(t);for(let l of a)this.proxyOf.nodes.splice(e,0,l);let s;for(let l in this.indexes)s=this.indexes[l],e<=s&&(this.indexes[l]=s+a.length);return this.markDirty(),this}insertAfter(t,r){let e=this.index(t),i=this.normalize(r,this.proxyOf.nodes[e]).reverse();e=this.index(t);for(let s of i)this.proxyOf.nodes.splice(e+1,0,s);let a;for(let s in this.indexes)a=this.indexes[s],e<a&&(this.indexes[s]=a+i.length);return this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let e in this.indexes)r=this.indexes[e],r>=t&&(this.indexes[e]=r-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,r,e){return e||(e=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(t,e))}),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}get first(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(t,r){if(typeof t==
|
||
|
`," "];return Mn.split(n,t)},comma(n){return Mn.split(n,[","],!0)}};Tp.exports=Mn;Mn.default=Mn});var ga=D((wM,Fp)=>{"use strict";var kp=Ut(),hS=Go(),Pr=class extends kp{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return hS.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,e=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(e)}};Fp.exports=Pr;Pr.default=Pr;kp.registerRule(Pr)});var Ip=D((EM,Mp)=>{"use strict";var mS=En(),vS=yo(),gS=Fn(),yS=va(),bS=Or(),Op=ga(),Pp={empty:!0,space:!0};function xS(n){for(let t=n.length-1;t>=0;t--){let r=n[t],e=r[3]||r[2];if(e)return e}}var Ho=class{constructor(t){this.input=t,this.root=new bS,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=vS(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}comment(t){let r=new gS;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]);let e=t[1].slice(2,-2);if(/^\s*$/.test(e))r.text="",r.raws.left=e,r.raws.right="";else{let i=e.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}emptyRule(t){let r=new Op;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}other(t){let r=!1,e=null,i=!1,a=null,s=[],l=t[1].startsWith("--"),c=[],p=t;for(;p;){if(e=p[0],c.push(p),e==="("||e==="[")a||(a=p),s.push(e==="("?")":"]");else if(l&&i&&e==="{")a||(a=p),s.push("}");else if(s.length===0)if(e===";")if(i){this.decl(c,l);return}else break;else if(e==="{"){this.rule(c);return}else if(e==="}"){this.tokenizer.back(c.pop()),r=!0;break}else e===":"&&(i=!0);else e===s[s.length-1]&&(s.pop(),s.length===0&&(a=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(a),r&&i){if(!l)for(;c.length&&(p=c[c.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)}rule(t){t.pop();let r=new Op;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}decl(t,r){let e=new mS;this.init(e,t[0][2]);let i=t[t.length-1];for(i[0]===";"&&(this.semicolon=!0,t.pop()),e.source.end=this.getPosition(i[3]||i[2]||xS(t));t[0][0]!=="word";)t.length===1&&this.unknownWord(t),e.raws.before+=t.shift()[1];for(e.source.start=this.getPosition(t[0][2]),e.prop="";t.length;){let p=t[0][0];if(p===":"||p==="space"||p==="comment")break;e.prop+=t.shift()[1]}e.raws.between="";let a;for(;t.length;)if(a=t.shift(),a[0]===":"){e.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),e.raws.between+=a[1];(e.prop[0]==="_"||e.prop[0]==="*")&&(e.raws.before+=e.prop[0],e.prop=e.prop.slice(1));let s=[],l;for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)s.push(t.shift());this.precheckMissedSemicolon(t);for(let p=t.length-1;p>=0;p--){if(a=t[p],a[1].toLowerCase()==="!important"){e.important=!0;let f=this.stringFrom(t,p);f=this.spacesFromEnd(t)+f,f!==" !important"&&(e.raws.important=f);break}else if(a[1].toLowerCase()==="important"){let f=t.slice(0),v="";for(let m=p;m>0;m--){let o=f[m][0];if(v.trim().indexOf("!")===0&&o!=="space")break;v=f.pop()[1]+v}v.trim().indexOf("!")===0&&(e.important=!0,e.raws.important=v,t=f)}if(a[0]!=="space"&&a[0]!=="comment")break}t.some(p=>p[0]!=="space"&&p[0]!=="comment")&&(e.raws.between+=s.map(p=>p[1]).join(""),s=[]),this.raw(e,"value",s.concat(t),r),e.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}atrule(t){let r=new yS;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);let e,i,a,s=!1,l=!1,c=[],p=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),e=t[0],e==="("||e==="["?p.push(e==="("?")":"]"
|
||
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?i.message+=`
|
||
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(i.message+=`
|
||
|
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return e.root}Np.exports=ya;ya.default=ya;SS.registerParse(ya)});var Qo=D((CM,Rp)=>{"use strict";var{isClean:bt,my:DS}=na(),CS=Vo(),AS=bn(),_S=Ut(),TS=ha(),kS=Xo(),Lp=ma(),FS=ba(),OS=Or(),PS={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},MS={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},IS={postcssPlugin:!0,prepare:!0,Once:!0},Mr=0;function In(n){return typeof n=="object"&&typeof n.then=="function"}function qp(n){let t=!1,r=PS[n.type];return n.type==="decl"?t=n.prop.toLowerCase():n.type==="atrule"&&(t=n.name.toLowerCase()),t&&n.append?[r,r+"-"+t,Mr,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:n.append?[r,Mr,r+"Exit"]:[r,r+"Exit"]}function Bp(n){let t;return n.type==="document"?t=["Document",Mr,"DocumentExit"]:n.type==="root"?t=["Root",Mr,"RootExit"]:t=qp(n),{node:n,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Ko(n){return n[bt]=!1,n.nodes&&n.nodes.forEach(t=>Ko(t)),n}var Yo={},xt=class{constructor(t,r,e){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=Ko(r);else if(r instanceof xt||r instanceof Lp)i=Ko(r.root),r.map&&(typeof e.map>"u"&&(e.map={}),e.map.inline||(e.map.inline=!1),e.map.prev=r.map);else{let a=FS;e.syntax&&(a=e.syntax.parse),e.parser&&(a=e.parser),a.parse&&(a=a.parse);try{i=a(r,e)}catch(s){this.processed=!0,this.error=s}i&&!i[DS]&&_S.rebuild(i)}this.result=new Lp(t,i,e),this.helpers={...Yo,result:this.result,postcss:Yo},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||kS("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(t,r)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(In(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[bt];)t[bt]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=AS;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let i=new CS(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}walkSync(t){t[bt]=!0;let r=qp(t);for(let e of r)if(e===Mr)t.nodes&&t.each(i=>{i[bt]||this.walkSync(i)});else{let i=this.listeners[e];if(i&&this.visitSync(i,t.toProxy()))return}}visitSync(t,r){for(let[e,i]of t){this.result.lastPlugin=e;let a;try{a=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(In(a))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPl
|
||
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
||
|
https://www.w3ctech.com/topic/2226`));let l=r(...s);return l.postcssPlugin=t,l.postcssVersion=new Zo().version,l}let a;return Object.defineProperty(i,"postcss",{get(){return a||(a=i()),a}}),i.process=function(s,l,c){return Z([i(c)]).process(s,l)},i};Z.stringify=ew;Z.parse=aw;Z.fromJSON=tw;Z.list=sw;Z.comment=n=>new Gp(n);Z.atRule=n=>new Hp(n);Z.decl=n=>new Xp(n);Z.rule=n=>new Kp(n);Z.root=n=>new Yp(n);Z.document=n=>new $p(n);Z.CssSyntaxError=YS;Z.Declaration=Xp;Z.Container=ZS;Z.Processor=Zo;Z.Document=$p;Z.Comment=Gp;Z.Warning=rw;Z.AtRule=Hp;Z.Result=nw;Z.Input=iw;Z.Rule=Kp;Z.Root=Yp;Z.Node=ow;QS.registerPostcss(Z);Qp.exports=Z;Z.default=Z});var eh=D((FM,Zp)=>{Zp.exports=function(n,t,r,e,i){for(t=t.split?t.split("."):t,e=0;e<t.length;e++)n=n?n[t[e]]:i;return n===i?r:n}});var Sa=D((xa,th)=>{"use strict";xa.__esModule=!0;xa.default=cw;function lw(n){for(var t=n.toLowerCase(),r="",e=!1,i=0;i<6&&t[i]!==void 0;i++){var a=t.charCodeAt(i),s=a>=97&&a<=102||a>=48&&a<=57;if(e=a===32,!s)break;r+=t[i]}if(r.length!==0){var l=parseInt(r,16),c=l>=55296&&l<=57343;return c||l===0||l>1114111?["\uFFFD",r.length+(e?1:0)]:[String.fromCodePoint(l),r.length+(e?1:0)]}}var uw=/\\/;function cw(n){var t=uw.test(n);if(!t)return n;for(var r="",e=0;e<n.length;e++){if(n[e]==="\\"){var i=lw(n.slice(e+1,e+7));if(i!==void 0){r+=i[0],e+=i[1];continue}if(n[e+1]==="\\"){r+="\\",e++;continue}n.length===e+1&&(r+=n[e]);continue}r+=n[e]}return r}th.exports=xa.default});var nh=D((wa,rh)=>{"use strict";wa.__esModule=!0;wa.default=fw;function fw(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];for(;r.length>0;){var i=r.shift();if(!n[i])return;n=n[i]}return n}rh.exports=wa.default});var ah=D((Ea,ih)=>{"use strict";Ea.__esModule=!0;Ea.default=dw;function dw(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];for(;r.length>0;){var i=r.shift();n[i]||(n[i]={}),n=n[i]}}ih.exports=Ea.default});var oh=D((Da,sh)=>{"use strict";Da.__esModule=!0;Da.default=pw;function pw(n){for(var t="",r=n.indexOf("/*"),e=0;r>=0;){t=t+n.slice(e,r);var i=n.indexOf("*/",r+2);if(i<0)return t;e=i+2,r=n.indexOf("/*",e)}return t=t+n.slice(e),t}sh.exports=Da.default});var Bn=D(wt=>{"use strict";wt.__esModule=!0;wt.stripComments=wt.ensureObject=wt.getProp=wt.unesc=void 0;var hw=Ca(Sa());wt.unesc=hw.default;var mw=Ca(nh());wt.getProp=mw.default;var vw=Ca(ah());wt.ensureObject=vw.default;var gw=Ca(oh());wt.stripComments=gw.default;function Ca(n){return n&&n.__esModule?n:{default:n}}});var It=D((qn,ch)=>{"use strict";qn.__esModule=!0;qn.default=void 0;var lh=Bn();function uh(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function yw(n,t,r){return t&&uh(n.prototype,t),r&&uh(n,r),n}var bw=function n(t,r){if(typeof t!="object"||t===null)return t;var e=new t.constructor;for(var i in t)if(!!t.hasOwnProperty(i)){var a=t[i],s=typeof a;i==="parent"&&s==="object"?r&&(e[i]=r):a instanceof Array?e[i]=a.map(function(l){return n(l,e)}):e[i]=n(a,e)}return e},xw=function(){function n(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=n.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(e){e===void 0&&(e={});var i=bw(this);for(var a in e)i[a]=e[a];return i},t.appendToPropertyAndEscape=function(e,i,a){this.raws||(this.raws={});var s=this[e],l=this.raws[e];this[e]=s+i,l||a!==i?this.raws[e]=(l||s)+a:delete this.raws[e]},t.setPropertyAndEscape=function(e,i,a){this.raws||(this.raws={}),this[e]=i,this.raws[e]=a},t.setPropertyWithoutEscape=function(e,i){this[e]=i,this.raws&&delete this.raws[e]},t.isA
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return r=n[Symbol.iterator](),r.next.bind(r)}function Bw(n,t){if(!!n){if(typeof n=="string")return fh(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set")return Array.from(n);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fh(n,t)}}function fh(n,t){(t==null||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}function dh(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function qw(n,t,r){return t&&dh(n.prototype,t),r&&dh(n,r),n}function Rw(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,el(n,t)}function el(n,t){return el=Object.setPrototypeOf||function(e,i){return e.__proto__=i,e},el(n,t)}var jw=function(n){Rw(t,n);function t(e){var i;return i=n.call(this,e)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var a;for(var s in this.indexes)a=this.indexes[s],a>=i&&(this.indexes[s]=a-1);return this},r.removeAll=function(){for(var i=Lw(this.nodes),a;!(a=i()).done;){var s=a.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(i,a){a.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,a),a.parent=this;var l;for(var c in this.indexes)l=this.indexes[c],s<=l&&(this.indexes[c]=l+1);return this},r.insertBefore=function(i,a){a.parent=this;var s=this.index(i);this.nodes.splice(s,0,a),a.parent=this;var l;for(var c in this.indexes)l=this.indexes[c],l<=s&&(this.indexes[c]=l+1);return this},r._findChildAtPosition=function(i,a){var s=void 0;return this.each(function(l){if(l.atPosition){var c=l.atPosition(i,a);if(c)return s=c,!1}else if(l.isAtPosition(i,a))return s=l,!1}),s},r.atPosition=function(i,a){if(this.isAtPosition(i,a))return this._findChildAtPosition(i,a)||this},r._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))},r.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var a=this.lastEach;if(this.indexes[a]=0,!!this.length){for(var s,l;this.indexes[a]<this.length&&(s=this.indexes[a],l=i(this.at(s),s),l!==!1);)this.indexes[a]+=1;if(delete this.indexes[a],l===!1)return!1}},r.walk=function(i){return this.each(function(a,s){var l=i(a,s);if(l!==!1&&a.length&&(l=a.walk(i)),l===!1)return!1})},r.walkAttributes=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.ATTRIBUTE)return i.call(a,s)})},r.walkClasses=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.CLASS)return i.call(a,s)})},r.walkCombinators=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.COMBINATOR)return i.call(a,s)})},r.walkComments=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.COMMENT)return i.call(a,s)})},r.walkIds=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.ID)return i.call(a,s)})},r.walkNesting=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.NESTING)return i.call(a,s)})},r.walkPseudos=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.PSEUDO)return i.call(a,s)})},r.walkTags=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.TAG)return i.call(a,s)})},r.walkUniversals=function(i){var a=this;return this.walk(function(s){if(s.type===Nt.UNIVERSAL)return i.call(a,s)})},r.split=function(i){var a=this,s=[];return this.reduce(function(l,c,p){var f=i.call(a,c);return s.push(c),f?(l.push(s),s=[]):p===a.l
|
||
|
`),d=h.length-1,d>0?(y=s+d,b=g-h[d].length):(y=s,b=a),w=N.comment,s=y,m=y,v=g-b):p===N.slash?(g=l,w=p,m=s,v=l-a,c=g+1):(g=$1(r,l),w=N.word,m=s,v=g-a),c=g+1;break}t.push([w,s,l-a,m,v,l,c]),b&&(a=b,b=null),l=c}return t}});var Kh=D((ri,Hh)=>{"use strict";ri.__esModule=!0;ri.default=void 0;var Y1=et(rl()),Ml=et(il()),Q1=et(ol()),Vh=et(ul()),Z1=et(fl()),eD=et(hl()),Il=et(vl()),tD=et(yl()),Wh=Pa(Dl()),rD=et(Al()),Nl=et(Tl()),nD=et(Fl()),iD=et(qh()),O=Pa(zh()),L=Pa(Ol()),aD=Pa(Te()),ce=Bn(),lr,Ll;function Gh(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return Gh=function(){return n},n}function Pa(n){if(n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=Gh();if(t&&t.has(n))return t.get(n);var r={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var a=e?Object.getOwnPropertyDescriptor(n,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function et(n){return n&&n.__esModule?n:{default:n}}function Jh(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function sD(n,t,r){return t&&Jh(n.prototype,t),r&&Jh(n,r),n}var Rl=(lr={},lr[L.space]=!0,lr[L.cr]=!0,lr[L.feed]=!0,lr[L.newline]=!0,lr[L.tab]=!0,lr),oD=Object.assign({},Rl,(Ll={},Ll[L.comment]=!0,Ll));function Xh(n){return{line:n[O.FIELDS.START_LINE],column:n[O.FIELDS.START_COL]}}function $h(n){return{line:n[O.FIELDS.END_LINE],column:n[O.FIELDS.END_COL]}}function ur(n,t,r,e){return{start:{line:n,column:t},end:{line:r,column:e}}}function Nr(n){return ur(n[O.FIELDS.START_LINE],n[O.FIELDS.START_COL],n[O.FIELDS.END_LINE],n[O.FIELDS.END_COL])}function Bl(n,t){if(!!n)return ur(n[O.FIELDS.START_LINE],n[O.FIELDS.START_COL],t[O.FIELDS.END_LINE],t[O.FIELDS.END_COL])}function Lr(n,t){var r=n[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,ce.ensureObject)(n,"raws"),n[t]=(0,ce.unesc)(r),n.raws[t]===void 0&&(n.raws[t]=r)),n}function ql(n,t){for(var r=-1,e=[];(r=n.indexOf(t,r+1))!==-1;)e.push(r);return e}function lD(){var n=Array.prototype.concat.apply([],arguments);return n.filter(function(t,r){return r===n.indexOf(t)})}var uD=function(){function n(r,e){e===void 0&&(e={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},e),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,O.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Bl(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y1.default({source:i}),this.root.errorGenerator=this._errorGenerator();var a=new Ml.default({source:{start:{line:1,column:1}}});this.root.append(a),this.current=a,this.loop()}var t=n.prototype;return t._errorGenerator=function(){var e=this;return function(i,a){return typeof e.rule=="string"?new Error(i):e.rule.error(i,a)}},t.attribute=function(){var e=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[O.FIELDS.TYPE]!==L.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[O.FIELDS.TYPE]!==L.closeSquare)return this.expected("closing square bracket",this.currToken[O.FIELDS.START_POS]);var a=e.length,s={source:ur(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[O.FIELDS.START_POS]};if(a===1&&!~[L.word].indexOf(e[0][O.FIELDS.TYPE]))return this.expected("attribute",e[0][O.FIELDS.START_POS]);for(var l=0,c="",p="",f=null,v=!1;l<a;){var m=e[l],o=this.content(m),u=e[l+1];switch(m[O.FIELDS.TYPE]){case L.space:if(v=!0,this.options.lossy)break;if(f){(0,ce.ensureObject)(s,"spaces",f);var d=s.spaces[f].after||"";s.spaces[f].after=d+o;var h=(0,ce.getProp)(s,"raws","spaces",f,"after")||null;h&&(s.raws.spaces[f].after=h+o)}else c=c+o,p=p+o;break;case L.asterisk:if(u[O.FIELDS.TYPE]===L.equals)s.operator=o,f="operator";else if((!s.namespace||f==="namespace"&&!v)&&u){c&&((0,ce.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=c,c=""),p&&((0,ce.ensureObject)(s,"raws","sp
|
||
|
`).slice(1,-1).map(ge=>ge.trim()).map(ge=>` ${ge}`).join(`
|
||
|
`)).join(`
|
||
|
|
||
|
`);C.push(` Use \`${n.replace("[",`[${U}:`)}\` for \`${W.trim()}\``);break}$_.default.warn([`The class \`${n}\` is ambiguous and matches multiple utilities.`,...C,`If this is content and not a class, replace it with \`${n.replace("[","[").replace("]","]")}\` to silence this warning.`]);continue}}o=o.map(y=>y.filter(b=>Nv(b[1])))}o=o.flat(),o=Array.from(lT(o,i)),o=Z_(o,t),s&&(o=eT(o,i));for(let y of a)o=tT(y,o,t);for(let y of o){if(y[1].raws.tailwind={...y[1].raws.tailwind,candidate:n},y[0].collectedFormats){let b=(0,Mv.formatVariantSelector)("&",...y[0].collectedFormats),x=Ur.default.root({nodes:[y[1].clone()]});x.walkRules(w=>{var E;if(!Ga(w)){var C;w.selector=(0,Mv.finalizeSelector)(b,{selector:w.selector,candidate:r,base:n.split(new RegExp(`\\${(C=t==null||(E=t.tailwindConfig)===null||E===void 0?void 0:E.separator)!==null&&C!==void 0?C:":"}(?![^[]*\\])`)).pop(),isArbitraryVariant:y[0].isArbitraryVariant,context:t})}}),y[1]=x.nodes[0]}yield y}}}function Ga(n){return n.parent&&n.parent.type==="atrule"&&n.parent.name==="keyframes"}function uT(n){if(n===!0)return t=>{Ga(t)||t.walkDecls(r=>{r.parent.type==="rule"&&!Ga(r.parent)&&(r.important=!0)})};if(typeof n=="string")return t=>{Ga(t)||(t.selectors=t.selectors.map(r=>`${n} ${r}`))}}function cT(n,t){let r=[],e=uT(t.tailwindConfig.important);for(let a of n){if(t.notClassCache.has(a))continue;if(t.candidateRuleCache.has(a)){r=r.concat(Array.from(t.candidateRuleCache.get(a)));continue}let s=Array.from(rc(a,t));if(s.length===0){t.notClassCache.add(a);continue}t.classCache.set(a,s);var i;let l=(i=t.candidateRuleCache.get(a))!==null&&i!==void 0?i:new Set;t.candidateRuleCache.set(a,l);for(let c of s){let[{sort:p,options:f},v]=c;if(f.respectImportant&&e){let o=Ur.default.root({nodes:[v.clone()]});o.walkRules(e),v=o.nodes[0]}let m=[p,v];l.add(m),t.ruleCache.add(m),r.push(m)}}return r}function tc(n){return n.startsWith("[")&&n.endsWith("]")}});var Jv=D(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});Object.defineProperty(sc,"hasContentChanged",{enumerable:!0,get:()=>mT});var fT=dT(require("crypto")),Vv=pT(Ja());function dT(n){return n&&n.__esModule?n:{default:n}}function Wv(n){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Wv=function(e){return e?r:t})(n)}function pT(n,t){if(!t&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var r=Wv(t);if(r&&r.has(n))return r.get(n);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in n)if(a!=="default"&&Object.prototype.hasOwnProperty.call(n,a)){var s=i?Object.getOwnPropertyDescriptor(n,a):null;s&&(s.get||s.set)?Object.defineProperty(e,a,s):e[a]=n[a]}return e.default=n,r&&r.set(n,e),e}function hT(n){try{return fT.default.createHash("md5").update(n,"utf-8").digest("binary")}catch{return""}}function mT(n,t){let r=t.toString();if(!r.includes("@tailwind"))return!1;let e=Vv.sourceHashMap.get(n),i=hT(r),a=e!==i;return Vv.sourceHashMap.set(n,i),a}});var Xv=D(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});Object.defineProperty(oc,"default",{enumerable:!0,get:()=>vT});function vT(n){return(n>0n)-(n<0n)}});var $v=D(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});Object.defineProperty(uc,"Offsets",{enumerable:!0,get:()=>lc});var gT=yT(Xv());function yT(n){return n&&n.__esModule?n:{default:n}}var lc=class{constructor(){this.offsets={defaults:0n,base:0n,components:0n,utilities:0n,variants:0n,user:0n},this.layerPositions={defaults:0n,base:1n,components:2n,utilities:3n,user:4n,variants:5n},this.reservedVariantBits=0n,this.variantOffsets=new Map}create(t){return{layer:t,parentLayer:t,arbitrary:0n,variants:0n,parallelIndex:0n,index:this.offsets[t]++,options:[]}}arbitraryProperty(){return{...this.create("utilities"),arbitrary:1n}}forVariant(t,r=0){let e=this.variantOffsets.get(t);if(e===void 0)throw new Error(`Cannot find offset for unknown variant ${t}`);return{...this.create("variants"),variants:e<<BigInt(r)}}applyVariantOffset(t,r,e){return{...t,layer:"variants",parentLayer:t.layer
|
||
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var y={type:101,value:h,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:d,end:this.scanner.index};return h.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(y)),y},u.prototype.peekJSXToken=function(){var d=this.scanner.saveState();this.scanner.scanComments();var h=this.lexJSX();return this.scanner.restoreState(d),h},u.prototype.expectJSX=function(d){var h=this.nextJSXToken();(h.type!==7||h.value!==d)&&this.throwUnexpectedToken(h)},u.prototype.matchJSX=function(d){var h=this.peekJSXToken();return h.type===7&&h.value===d},u.prototype.parseJSXIdentifier=function(){var d=this.createJSXNode(),h=this.nextJSXToken();return h.type!==100&&this.throwUnexpectedToken(h),this.finalize(d,new a.JSXIdentifier(h.value))},u.prototype.parseJSXElementName=function(){var d=this.createJSXNode(),h=this.parseJSXIdentifier();if(this.matchJSX(":")){var g=h;this.expectJSX(":");var y=this.parseJSXIdentifier();h=this.finalize(d,new a.JSXNamespacedName(g,y))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var b=h;this.expectJSX(".");var x=this.parseJSXIdentifier();h=this.finalize(d,new a.JSXMemberExpression(b,x))}return h},u.prototype.parseJSXAttributeName=function(){var d=this.createJSXNode(),h,g=this.parseJSXIdentifier();if(this.matchJSX(":")){var y=g;this.expectJSX(":");var b=this.parseJSXIdentifier();h=this.finalize(d,new a.JSXNamespacedName(y,b))}else h=g;return h},u.prototype.parseJSXStringLiteralAttribute=function(){var d=this.createJSXNode(),h=this.nextJSXToken();h.type!==8&&this.throwUnexpectedToken(h);var g=this.getTokenRaw(h);return this.finalize(d,new l.Literal(h.value,g))},u.prototype.parseJSXExpressionAttribute=function(){var d=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var h=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(d,new a.JSXExpressionContainer(h))},u.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},u.prototype.parseJSXNameValueAttribute=function(){var d=this.createJSXNode(),h=this.parseJSXAttributeName(),g=null;return this.matchJSX("=")&&(this.expectJSX("="),g=this.parseJSXAttributeValue()),this.finalize(d,new a.JSXAttribute(h,g))},u.prototype.parseJSXSpreadAttribute=function(){var d=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var h=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(d,new a.JSXSpreadAttribute(h))},u.prototype.parseJSXAttributes=function(){for(var d=[];!this.matchJSX("/")&&!this.matchJSX(">");){var h=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();d.push(h)}return d},u.prototype.parseJSXOpeningElement=function(){var d=this.createJSXNode();this.expectJSX("<");var h=this.parseJSXElementName(),g=this.parseJSXAttributes(),y=this.matchJSX("/");return y&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(d,new a.JSXOpeningElement(h,y,g))},u.prototype.parseJSXBoundaryElement=function(){var d=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var h=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(d,new a.JSXClosingElement(h))}var g=this.parseJSXElementName(),y=this.parseJSXAttributes(),b=this.matchJSX("/");return b&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(d,new a.JSXOpeningElement(g,b,y))},u.prototype.parseJSXEmptyExpression=function(){var d=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(d,new a.JSXEmptyExpression)},u.prototype.parseJSXExpressionContainer=func
|
||
|
`;break;case"r":o+="\r";break;case"t":o+=" ";break;case"b":o+="\b";break;case"f":o+="\f";break;case"v":o+="\v";break;case"8":case"9":o+=u,this.tolerateUnexpectedToken();break;default:if(u&&i.Character.isOctalDigit(u.charCodeAt(0))){var g=this.octalToDecimal(u);m=g.octal||m,o+=String.fromCharCode(g.code)}else o+=u;break}else++this.lineNumber,u==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index;else{if(i.Character.isLineTerminator(u.charCodeAt(0)))break;o+=u}}return v!==""&&(this.index=f,this.throwUnexpectedToken()),{type:8,value:o,octal:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},p.prototype.scanTemplate=function(){var f="",v=!1,m=this.index,o=this.source[m]==="`",u=!1,d=2;for(++this.index;!this.eof();){var h=this.source[this.index++];if(h==="`"){d=1,u=!0,v=!0;break}else if(h==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,v=!0;break}f+=h}else if(h==="\\")if(h=this.source[this.index++],i.Character.isLineTerminator(h.charCodeAt(0)))++this.lineNumber,h==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index;else switch(h){case"n":f+=`
|
||
|
`;break;case"r":f+="\r";break;case"t":f+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,f+=this.scanUnicodeCodePointEscape();else{var g=this.index,y=this.scanHexEscape(h);y!==null?f+=y:(this.index=g,f+=h)}break;case"x":var b=this.scanHexEscape(h);b===null&&this.throwUnexpectedToken(a.Messages.InvalidHexEscapeSequence),f+=b;break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="\v";break;default:h==="0"?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral),f+="\0"):i.Character.isOctalDigit(h.charCodeAt(0))?this.throwUnexpectedToken(a.Messages.TemplateOctalLiteral):f+=h;break}else i.Character.isLineTerminator(h.charCodeAt(0))?(++this.lineNumber,h==="\r"&&this.source[this.index]===`
|
||
|
`&&++this.index,this.lineStart=this.index,f+=`
|
||
|
`):f+=h}return v||this.throwUnexpectedToken(),o||this.curlyStack.pop(),{type:10,value:this.source.slice(m+1,this.index-d),cooked:f,head:o,tail:u,lineNumber:this.lineNumber,lineStart:this.lineStart,start:m,end:this.index}},p.prototype.testRegExp=function(f,v){var m="\uFFFF",o=f,u=this;v.indexOf("u")>=0&&(o=o.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(d,h,g){var y=parseInt(h||g,16);return y>1114111&&u.throwUnexpectedToken(a.Messages.InvalidRegExp),y<=65535?String.fromCharCode(y):m}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m));try{RegExp(o)}catch{this.throwUnexpectedToken(a.Messages.InvalidRegExp)}try{return new RegExp(f,v)}catch{return null}},p.prototype.scanRegExpBody=function(){var f=this.source[this.index];e.assert(f==="/","Regular expression literal must start with a slash");for(var v=this.source[this.index++],m=!1,o=!1;!this.eof();)if(f=this.source[this.index++],v+=f,f==="\\")f=this.source[this.index++],i.Character.isLineTerminator(f.charCodeAt(0))&&this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),v+=f;else if(i.Character.isLineTerminator(f.charCodeAt(0)))this.throwUnexpectedToken(a.Messages.UnterminatedRegExp);else if(m)f==="]"&&(m=!1);else if(f==="/"){o=!0;break}else f==="["&&(m=!0);return o||this.throwUnexpectedToken(a.Messages.UnterminatedRegExp),v.substr(1,v.length-2)},p.prototype.scanRegExpFlags=function(){for(var f="",v="";!this.eof();){var m=this.source[this.index];if(!i.Character.isIdentifierPart(m.charCodeAt(0)))break;if(++this.index,m==="\\"&&!this.eof())if(m=this.source[this.index],m==="u"){++this.index;var o=this.index,u=this.scanHexEscape("u");if(u!==null)for(v+=u,f+="\\u";o<this.index;++o)f+=this.source[o];else this.index=o,v+="u",f+="\\u";this.tolerateUnexpectedToken()}else f+="\\",this.tolerateUnexpectedToken();else v+=m,f+=m}return v},p.prototype.scanRegExp=function(){var f=this.index,v=this.scanRegExpBody(),m=this.scanRegExpFlags(),o=this.testRegExp(v,m);return{type:9,value:"",pattern:v,flags:m,regex:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:f,end:this.index}},p.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var f=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(f)?this.scanIdentifier():f===40||f===41||f===59?this.scanPunctuator():f===39||f===34?this.scanStringLiteral():f===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(f)?this.scanNumericLiteral():f===96||f===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():f>=55296&&f<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},p}();t.Scanner=c},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xD
|
||
|
`,wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},cP=wf.hasOwnProperty;function fP(n){var t=n||wf;function r(e){return cP.call(t,e)?t[e]:wf[e]}return{tabWidth:+r("tabWidth"),useTabs:!!r("useTabs"),reuseWhitespace:!!r("reuseWhitespace"),lineTerminator:r("lineTerminator"),wrapColumn:Math.max(r("wrapColumn"),0),sourceFileName:r("sourceFileName"),sourceMapName:r("sourceMapName"),sourceRoot:r("sourceRoot"),inputSourceMap:r("inputSourceMap"),parser:r("esprima")||r("parser"),range:r("range"),tolerant:r("tolerant"),quote:r("quote"),trailingComma:r("trailingComma"),arrayBracketSpacing:r("arrayBracketSpacing"),objectCurlySpacing:r("objectCurlySpacing"),arrowParensAlways:r("arrowParensAlways"),flowObjectCommas:r("flowObjectCommas"),tokens:!!r("tokens")}}Us.normalize=fP});var c0=D(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var dP=K(),vr=dP.__importDefault(require("assert")),Qt=Bt(),pP=function(){function n(t,r,e){e===void 0&&(e=r),this.sourceLines=t,this.sourceLoc=r,this.targetLoc=e}return n.prototype.slice=function(t,r,e){e===void 0&&(e=t.lastPos());var i=this.sourceLines,a=this.sourceLoc,s=this.targetLoc;function l(c){var p=a[c],f=s[c],v=r;return c==="end"?v=e:vr.default.strictEqual(c,"start"),hP(i,p,t,f,v)}if(Qt.comparePos(r,s.start)<=0)if(Qt.comparePos(s.end,e)<=0)s={start:Yt(s.start,r.line,r.column),end:Yt(s.end,r.line,r.column)};else{if(Qt.comparePos(e,s.start)<=0)return null;a={start:a.start,end:l("end")},s={start:Yt(s.start,r.line,r.column),end:Yt(e,r.line,r.column)}}else{if(Qt.comparePos(s.end,r)<=0)return null;Qt.comparePos(s.end,e)<=0?(a={start:l("start"),end:a.end},s={start:{line:1,column:0},end:Yt(s.end,r.line,r.column)}):(a={start:l("start"),end:l("end")},s={start:{line:1,column:0},end:Yt(e,r.line,r.column)})}return new n(this.sourceLines,a,s)},n.prototype.add=function(t,r){return new n(this.sourceLines,this.sourceLoc,{start:u0(this.targetLoc.start,t,r),end:u0(this.targetLoc.end,t,r)})},n.prototype.subtract=function(t,r){return new n(this.sourceLines,this.sourceLoc,{start:Yt(this.targetLoc.start,t,r),end:Yt(this.targetLoc.end,t,r)})},n.prototype.indent=function(t,r,e){if(r===void 0&&(r=!1),e===void 0&&(e=!1),t===0)return this;var i=this.targetLoc,a=i.start.line,s=i.end.line;if(r&&a===1&&s===1)return this;if(i={start:i.start,end:i.end},!r||a>1){var l=i.start.column+t;i.start={line:a,column:e?Math.max(0,l):l}}if(!r||s>1){var c=i.end.column+t;i.end={line:s,column:e?Math.max(0,c):c}}return new n(this.sourceLines,this.sourceLoc,i)},n}();Ef.default=pP;function u0(n,t,r){return{line:n.line+t-1,column:n.line===1?n.column+r:n.column}}function Yt(n,t,r){return{line:n.line-t+1,column:n.line===t?n.column-r:n.column}}function hP(n,t,r,e,i){var a=Qt.comparePos(e,i);if(a===0)return t;var s,l;if(a<0){s=n.skipSpaces(t)||n.lastPos(),l=r.skipSpaces(e)||r.lastPos();var c=i.line-l.line;for(s.line+=c,l.line+=c,c>0?(s.column=0,l.column=0):vr.default.strictEqual(c,0);Qt.comparePos(l,i)<0&&r.nextPos(l,!0);)vr.default.ok(n.nextPos(s,!0)),vr.default.strictEqual(n.charAt(s),r.charAt(l))}else{s=n.skipSpaces(t,!0)||n.firstPos(),l=r.skipSpaces(e,!0)||r.firstPos();var c=i.line-l.line;for(s.line+=c,l.line+=c,c<0?(s.column=n.getLineLength(s.line),l.column=r.getLineLength(l.line)):vr.default.strictEqual(c,0);Qt.comparePos(i,l)<0&&r.prevPos(l,!0);)vr.default.ok(n.prevPos(s,!0)),vr.default.strictEqual(n.charAt(s),r.charAt(l))}return s}});var Ti=D(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.concat=Tt.fromString=Tt.countSpaces=Tt.Lines=void 0;var st=K(),me=st.__importDefault(require("assert")),mP=st.__importDefault(vf()),d0=zs(),f0=Bt(),vP=st.__importDefault(c0()),Df=function(){function n(t,r){r===void 0&&(r=null),this.infos=t,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,me.default.ok(t.length>0),this.length=t.length,this.name=r||null,this.name&&this.mappings.push(new vP.default(this,{start:this.f
|
||
|
`:e>=a.length?"":a.charAt(e)},n.prototype.charAt=function(t){me.default.strictEqual(typeof t,"object"),me.default.strictEqual(typeof t.line,"number"),me.default.strictEqual(typeof t.column,"number");var r=t.line,e=t.column,i=this,a=i.infos,s=a[r-1],l=e;if(typeof s>"u"||l<0)return"";var c=this.getIndentAt(r);return l<c?" ":(l+=s.sliceStart-c,l===s.sliceEnd&&r<this.length?`
|
||
|
`:l>=s.sliceEnd?"":s.line.charAt(l))},n.prototype.stripMargin=function(t,r){if(t===0)return this;if(me.default.ok(t>0,"negative margin: "+t),r&&this.length===1)return this;var e=new n(this.infos.map(function(a,s){return a.line&&(s>0||!r)&&(a=st.__assign(st.__assign({},a),{indent:Math.max(0,a.indent-t)})),a}));if(this.mappings.length>0){var i=e.mappings;me.default.strictEqual(i.length,0),this.mappings.forEach(function(a){i.push(a.indent(t,r,!0))})}return e},n.prototype.indent=function(t){if(t===0)return this;var r=new n(this.infos.map(function(i){return i.line&&!i.locked&&(i=st.__assign(st.__assign({},i),{indent:i.indent+t})),i}));if(this.mappings.length>0){var e=r.mappings;me.default.strictEqual(e.length,0),this.mappings.forEach(function(i){e.push(i.indent(t))})}return r},n.prototype.indentTail=function(t){if(t===0)return this;if(this.length<2)return this;var r=new n(this.infos.map(function(i,a){return a>0&&i.line&&!i.locked&&(i=st.__assign(st.__assign({},i),{indent:i.indent+t})),i}));if(this.mappings.length>0){var e=r.mappings;me.default.strictEqual(e.length,0),this.mappings.forEach(function(i){e.push(i.indent(t,!0))})}return r},n.prototype.lockIndentTail=function(){return this.length<2?this:new n(this.infos.map(function(t,r){return st.__assign(st.__assign({},t),{locked:r>0})}))},n.prototype.getIndentAt=function(t){return me.default.ok(t>=1,"no line "+t+" (line numbers start from 1)"),Math.max(this.infos[t-1].indent,0)},n.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;for(var t=[],r=0,e=1,i=this.length;e<=i;++e){var a=this.infos[e-1],s=a.line.slice(a.sliceStart,a.sliceEnd);if(!en(s)){var l=Math.abs(a.indent-r);t[l]=~~t[l]+1,r=a.indent}}for(var c=-1,p=2,f=1;f<t.length;f+=1)Cf.call(t,f)&&t[f]>c&&(c=t[f],p=f);return this.cachedTabWidth=p},n.prototype.startsWithComment=function(){if(this.infos.length===0)return!1;var t=this.infos[0],r=t.sliceStart,e=t.sliceEnd,i=t.line.slice(r,e).trim();return i.length===0||i.slice(0,2)==="//"||i.slice(0,2)==="/*"},n.prototype.isOnlyWhitespace=function(){return en(this.toString())},n.prototype.isPrecededOnlyByWhitespace=function(t){var r=this.infos[t.line-1],e=Math.max(r.indent,0),i=t.column-e;if(i<=0)return!0;var a=r.sliceStart,s=Math.min(a+i,r.sliceEnd),l=r.line.slice(a,s);return en(l)},n.prototype.getLineLength=function(t){var r=this.infos[t-1];return this.getIndentAt(t)+r.sliceEnd-r.sliceStart},n.prototype.nextPos=function(t,r){r===void 0&&(r=!1);var e=Math.max(t.line,0),i=Math.max(t.column,0);return i<this.getLineLength(e)?(t.column+=1,r?!!this.skipSpaces(t,!1,!0):!0):e<this.length?(t.line+=1,t.column=0,r?!!this.skipSpaces(t,!1,!0):!0):!1},n.prototype.prevPos=function(t,r){r===void 0&&(r=!1);var e=t.line,i=t.column;if(i<1){if(e-=1,e<1)return!1;i=this.getLineLength(e)}else i=Math.min(i-1,this.getLineLength(e));return t.line=e,t.column=i,r?!!this.skipSpaces(t,!0,!0):!0},n.prototype.firstPos=function(){return{line:1,column:0}},n.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},n.prototype.skipSpaces=function(t,r,e){if(r===void 0&&(r=!1),e===void 0&&(e=!1),t?t=e?t:{line:t.line,column:t.column}:r?t=this.lastPos():t=this.firstPos(),r){for(;this.prevPos(t);)if(!en(this.charAt(t))&&this.nextPos(t))return t;return null}else{for(;en(this.charAt(t));)if(!this.nextPos(t))return null;return t}},n.prototype.trimLeft=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);return t?this.slice(t):gr},n.prototype.trimRight=function(){var t=this.skipSpaces(this.lastPos(),!0,!0);return t?this.slice(this.firstPos(),t):gr},n.prototype.trim=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);if(t===null)return gr;var r=this.skipSpaces(this.lastPos(),!0,!0);return r===null?gr:this.slice(t,r)},n.prototype.eachPos=function(t,r,e){r===void 0&&(r=this.firstPos()),e===void 0&&(e=!1);var i=this.firstPos();if(r&&(i.line=r.line,i.column=r.column),!(e&&!this.skipSpaces(i,!1,!0)))do t.call(this,i);while(this.nextPos(i,e))},n.prototype.bootstrapSlice=function(t,r){var e=this.toString().split(Af).slice(t.line-1,r.line
|
||
|
`))},n.prototype.slice=function(t,r){if(!r){if(!t)return this;r=this.lastPos()}if(!t)throw new Error("cannot slice with end but not start");var e=this.infos.slice(t.line-1,r.line);t.line===r.line?e[0]=tn(e[0],t.column,r.column):(me.default.ok(t.line<r.line),e[0]=tn(e[0],t.column),e.push(tn(e.pop(),0,r.column)));var i=new n(e);if(this.mappings.length>0){var a=i.mappings;me.default.strictEqual(a.length,0),this.mappings.forEach(function(s){var l=s.slice(this,t,r);l&&a.push(l)},this)}return i},n.prototype.bootstrapSliceString=function(t,r,e){return this.slice(t,r).toString(e)},n.prototype.sliceString=function(t,r,e){t===void 0&&(t=this.firstPos()),r===void 0&&(r=this.lastPos());for(var i=d0.normalize(e),a=i.tabWidth,s=i.useTabs,l=i.reuseWhitespace,c=i.lineTerminator,p=[],f=t.line;f<=r.line;++f){var v=this.infos[f-1];f===t.line?f===r.line?v=tn(v,t.column,r.column):v=tn(v,t.column):f===r.line&&(v=tn(v,0,r.column));var m=Math.max(v.indent,0),o=v.line.slice(0,v.sliceStart);if(l&&en(o)&&_f(o,a)===m){p.push(v.line.slice(0,v.sliceEnd));continue}var u=0,d=m;s&&(u=Math.floor(m/a),d-=u*a);var h="";u>0&&(h+=new Array(u+1).join(" ")),d>0&&(h+=new Array(d+1).join(" ")),h+=v.line.slice(v.sliceStart,v.sliceEnd),p.push(h)}return p.join(c)},n.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},n.prototype.join=function(t){var r=this,e=[],i=[],a;function s(p){if(p!==null){if(a){var f=p.infos[0],v=new Array(f.indent+1).join(" "),m=e.length,o=Math.max(a.indent,0)+a.sliceEnd-a.sliceStart;a.line=a.line.slice(0,a.sliceEnd)+v+f.line.slice(f.sliceStart,f.sliceEnd),a.locked=a.locked||f.locked,a.sliceEnd=a.line.length,p.mappings.length>0&&p.mappings.forEach(function(u){i.push(u.add(m,o))})}else p.mappings.length>0&&i.push.apply(i,p.mappings);p.infos.forEach(function(u,d){(!a||d>0)&&(a=st.__assign({},u),e.push(a))})}}function l(p,f){f>0&&s(r),s(p)}if(t.map(function(p){var f=Ws(p);return f.isEmpty()?null:f}).forEach(function(p,f){r.isEmpty()?s(p):l(p,f)}),e.length<1)return gr;var c=new n(e);return c.mappings=i,c},n.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=[this];return e.push.apply(e,t),me.default.strictEqual(e.length,t.length+1),gr.join(e)},n}();Tt.Lines=Df;var Vs={},Cf=Vs.hasOwnProperty,gP=10;function _f(n,t){for(var r=0,e=n.length,i=0;i<e;++i)switch(n.charCodeAt(i)){case 9:{me.default.strictEqual(typeof t,"number"),me.default.ok(t>0);var a=Math.ceil(r/t)*t;a===r?r+=t:r=a;break}case 11:case 12:case 13:case 65279:break;case 32:default:r+=1;break}return r}Tt.countSpaces=_f;var yP=/^\s*/,Af=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function Ws(n,t){if(n instanceof Df)return n;n+="";var r=t&&t.tabWidth,e=n.indexOf(" ")<0,i=!t&&e&&n.length<=gP;if(me.default.ok(r||e,`No tab width specified but encountered tabs in string
|
||
|
`+n),i&&Cf.call(Vs,n))return Vs[n];var a=new Df(n.split(Af).map(function(s){var l=yP.exec(s)[0];return{line:s,indent:_f(l,r),locked:!1,sliceStart:l.length,sliceEnd:s.length}}),d0.normalize(t).sourceFileName);return i&&(Vs[n]=a),a}Tt.fromString=Ws;function en(n){return!/\S/.test(n)}function tn(n,t,r){var e=n.sliceStart,i=n.sliceEnd,a=Math.max(n.indent,0),s=a+i-e;return typeof r>"u"&&(r=s),t=Math.max(t,0),r=Math.min(r,s),r=Math.max(r,t),r<a?(a=r,i=e):i-=s-r,s=r,s-=t,t<a?a-=t:(t-=a,a=0,e+=t),me.default.ok(a>=0),me.default.ok(e<=i),me.default.strictEqual(s,a+i-e),n.indent===a&&n.sliceStart===e&&n.sliceEnd===i?n:{line:n.line,indent:a,locked:!1,sliceStart:e,sliceEnd:i}}function bP(n){return gr.join(n)}Tt.concat=bP;var gr=Ws("")});var Ff=D(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.printComments=an.attach=void 0;var h0=K(),Tf=h0.__importDefault(require("assert")),yr=h0.__importStar(At()),nn=yr.namedTypes,m0=yr.builtInTypes.array,xP=yr.builtInTypes.object,Fi=Ti(),rn=Bt(),p0=new WeakMap;function v0(n,t,r){if(!n)return r;if(rn.fixFaultyLocations(n,t),r){if(nn.Node.check(n)&&nn.SourceLocation.check(n.loc)){for(var e=r.length-1;e>=0;--e){var i=r[e];if(i&&i.loc&&rn.comparePos(i.loc.end,n.loc.start)<=0)break}return r.splice(e+1,0,n),r}}else{var a=p0.get(n);if(a)return a}var s;if(m0.check(n))s=Object.keys(n);else if(xP.check(n))s=yr.getFieldNames(n);else return r;r||p0.set(n,r=[]);for(var e=0,l=s.length;e<l;++e)v0(n[s[e]],t,r);return r}function g0(n,t,r){for(var e=v0(n,r),i=0,a=e&&e.length,s,l;typeof a=="number"&&i<a;){var c=i+a>>1,p=e[c];if(rn.comparePos(p.loc.start,t.loc.start)<=0&&rn.comparePos(t.loc.end,p.loc.end)<=0){g0(t.enclosingNode=p,t,r);return}if(rn.comparePos(p.loc.end,t.loc.start)<=0){s=p,i=c+1;continue}if(rn.comparePos(t.loc.end,p.loc.start)<=0){l=p,a=c;continue}throw new Error("Comment location overlaps with node location")}s&&(t.precedingNode=s),l&&(t.followingNode=l)}function SP(n,t,r){if(!!m0.check(n)){var e=[];n.forEach(function(i){i.loc.lines=r,g0(t,i,r);var a=i.precedingNode,s=i.enclosingNode,l=i.followingNode;if(a&&l){var c=e.length;if(c>0){var p=e[c-1];Tf.default.strictEqual(p.precedingNode===i.precedingNode,p.followingNode===i.followingNode),p.followingNode!==i.followingNode&&ki(e,r)}e.push(i)}else if(a)ki(e,r),b0(a,i);else if(l)ki(e,r),y0(l,i);else if(s)ki(e,r),wP(s,i);else throw new Error("AST contains no nodes at all?")}),ki(e,r),n.forEach(function(i){delete i.precedingNode,delete i.enclosingNode,delete i.followingNode})}}an.attach=SP;function ki(n,t){var r=n.length;if(r!==0){for(var e=n[0].precedingNode,i=n[0].followingNode,a=i.loc.start,s=r,l;s>0;--s){l=n[s-1],Tf.default.strictEqual(l.precedingNode,e),Tf.default.strictEqual(l.followingNode,i);var c=t.sliceString(l.loc.end,a);if(/\S/.test(c))break;a=l.loc.start}for(;s<=r&&(l=n[s])&&(l.type==="Line"||l.type==="CommentLine")&&l.loc.start.column>i.loc.start.column;)++s;n.forEach(function(p,f){f<s?b0(e,p):y0(i,p)}),n.length=0}}function kf(n,t){var r=n.comments||(n.comments=[]);r.push(t)}function y0(n,t){t.leading=!0,t.trailing=!1,kf(n,t)}function wP(n,t){t.leading=!1,t.trailing=!1,kf(n,t)}function b0(n,t){t.leading=!1,t.trailing=!0,kf(n,t)}function EP(n,t){var r=n.getValue();nn.Comment.assert(r);var e=r.loc,i=e&&e.lines,a=[t(n)];if(r.trailing)a.push(`
|
||
|
`);else if(i instanceof Fi.Lines){var s=i.slice(e.end,i.skipSpaces(e.end)||i.lastPos());s.length===1?a.push(s):a.push(new Array(s.length).join(`
|
||
|
`))}else a.push(`
|
||
|
`);return Fi.concat(a)}function DP(n,t){var r=n.getValue(n);nn.Comment.assert(r);var e=r.loc,i=e&&e.lines,a=[];if(i instanceof Fi.Lines){var s=i.skipSpaces(e.start,!0)||i.firstPos(),l=i.slice(s,e.start);l.length===1?a.push(l):a.push(new Array(l.length).join(`
|
||
|
`))}return a.push(t(n)),Fi.concat(a)}function CP(n,t){var r=n.getValue(),e=t(n),i=nn.Node.check(r)&&yr.getFieldValue(r,"comments");if(!i||i.length===0)return e;var a=[],s=[e];return n.each(function(l){var c=l.getValue(),p=yr.getFieldValue(c,"leading"),f=yr.getFieldValue(c,"trailing");p||f&&!(nn.Statement.check(r)||c.type==="Block"||c.type==="CommentBlock")?a.push(EP(l,t)):f&&s.push(DP(l,t))},"comments"),a.push.apply(a,s),Fi.concat(a)}an.printComments=CP});var w0=D(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.parse=void 0;var Of=K(),AP=Of.__importDefault(require("assert")),Pf=Of.__importStar(At()),_P=Pf.builders,TP=Pf.builtInTypes.object,kP=Pf.builtInTypes.array,FP=zs(),OP=Ti(),PP=Ff(),qt=Of.__importStar(Bt());function MP(n,t){t=FP.normalize(t);var r=OP.fromString(n,t),e=r.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),i=[],a=t.parser.parse(e,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:i,tolerant:qt.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:qt.getOption(t,"sourceType","module")}),s=Array.isArray(a.tokens)?a.tokens:xf().tokenize(e,{loc:!0});delete a.tokens,s.forEach(function(f){typeof f.value!="string"&&(f.value=r.sliceString(f.loc.start,f.loc.end))}),Array.isArray(a.comments)&&(i=a.comments,delete a.comments),a.loc?qt.fixFaultyLocations(a,r):a.loc={start:r.firstPos(),end:r.lastPos()},a.loc.lines=r,a.loc.indent=0;var l,c;a.type==="Program"?(c=a,l=_P.file(a,t.sourceFileName||null),l.loc={start:r.firstPos(),end:r.lastPos(),lines:r,indent:0}):a.type==="File"&&(l=a,c=l.program),t.tokens&&(l.tokens=s);var p=qt.getTrueLoc({type:c.type,loc:c.loc,body:[],comments:i},r);return c.loc.start=p.start,c.loc.end=p.end,PP.attach(i,c.body.length?l.program:l,r),new x0(r,s).copy(l)}Js.parse=MP;var x0=function n(t,r){AP.default.ok(this instanceof n),this.lines=t,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map},S0=x0.prototype;S0.copy=function(n){if(this.seen.has(n))return this.seen.get(n);if(kP.check(n)){var t=new Array(n.length);return this.seen.set(n,t),n.forEach(function(m,o){t[o]=this.copy(m)},this),t}if(!TP.check(n))return n;qt.fixFaultyLocations(n,this.lines);var r=Object.create(Object.getPrototypeOf(n),{original:{value:n,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(n,r);var e=n.loc,i=this.indent,a=i,s=this.startTokenIndex,l=this.endTokenIndex;e&&((n.type==="Block"||n.type==="Line"||n.type==="CommentBlock"||n.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(e.start))&&(a=this.indent=e.start.column),e.lines=this.lines,e.tokens=this.tokens,e.indent=a,this.findTokenRange(e));for(var c=Object.keys(n),p=c.length,f=0;f<p;++f){var v=c[f];v==="loc"||v==="tokens"&&n.type==="File"?r[v]=n[v]:r[v]=this.copy(n[v])}return this.indent=i,this.startTokenIndex=s,this.endTokenIndex=l,r};S0.findTokenRange=function(n){for(;this.startTokenIndex>0;){var t=n.tokens[this.startTokenIndex];if(qt.comparePos(n.start,t.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<n.tokens.length;){var t=n.tokens[this.endTokenIndex];if(qt.comparePos(t.loc.end,n.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=n.tokens[this.startTokenIndex];if(qt.comparePos(t.loc.start,n.start)<0)++this.startTokenIndex;else break}for(n.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=n.tokens[this.endTokenIndex-1];if(qt.comparePos(n.end,t.loc.end)<0)--this.endTokenIndex;else break}n.end.token=this.endTokenIndex}});var Bf=D(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Nf=K(),ot=Nf.__importDefault(require("assert")),Oi=Nf.__importStar(At()),E0=Nf.__importStar(Bt()),le=Oi.namedTypes,IP=Oi.builtInTypes.array,NP=Oi.builtInTypes.number,Mf={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(n,t){n.forEach(function(r){Mf[r]=t})});var br=function n(t){ot.default.ok(this instanceof n),this.stack=[t]},Pe=br.prototype;br.from=function
|
||
|
`)},"directives"),e.interpreter&&i.push(n.call(r,"interpreter")),i.push(n.call(function(V){return ln(V,t,r)},"body")),S.concat(i);case"Noop":case"EmptyStatement":return S.fromString("");case"ExpressionStatement":return S.concat([n.call(r,"expression"),";"]);case"ParenthesizedExpression":return S.concat(["(",n.call(r,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return S.fromString(" ").join([n.call(r,"left"),e.operator,n.call(r,"right")]);case"AssignmentPattern":return S.concat([n.call(r,"left")," = ",n.call(r,"right")]);case"MemberExpression":case"OptionalMemberExpression":{i.push(n.call(r,"object"));var a=n.call(r,"property"),s=qi.getFieldValue(e,"optional");return e.computed?i.push(s?"?.[":"[",a,"]"):i.push(s?"?.":".",a),S.concat(i)}case"ChainExpression":return n.call(r,"expression");case"MetaProperty":return S.concat([n.call(r,"meta"),".",n.call(r,"property")]);case"BindExpression":return e.object&&i.push(n.call(r,"object")),i.push("::",n.call(r,"callee")),S.concat(i);case"Path":return S.fromString(".").join(e.body);case"Identifier":return S.concat([S.fromString(e.name,t),e.optional?"?":"",n.call(r,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return S.concat(["...",n.call(r,"argument"),n.call(r,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return e.declare&&i.push("declare "),e.async&&i.push("async "),i.push("function"),e.generator&&i.push("*"),e.id?i.push(" ",n.call(r,"id"),n.call(r,"typeParameters")):e.typeParameters&&i.push(n.call(r,"typeParameters")),i.push("(",kt(n,t,r),")",n.call(r,"returnType")),e.body&&i.push(" ",n.call(r,"body")),S.concat(i);case"ArrowFunctionExpression":return e.async&&i.push("async "),e.typeParameters&&i.push(n.call(r,"typeParameters")),!t.arrowParensAlways&&e.params.length===1&&!e.rest&&e.params[0].type==="Identifier"&&!e.params[0].typeAnnotation&&!e.returnType?i.push(n.call(r,"params",0)):i.push("(",kt(n,t,r),")",n.call(r,"returnType")),i.push(" => ",n.call(r,"body")),S.concat(i);case"MethodDefinition":return Uf(n,t,r);case"YieldExpression":return i.push("yield"),e.delegate&&i.push("*"),e.argument&&i.push(" ",n.call(r,"argument")),S.concat(i);case"AwaitExpression":return i.push("await"),e.all&&i.push("*"),e.argument&&i.push(" ",n.call(r,"argument")),S.concat(i);case"ModuleDeclaration":return i.push("module",n.call(r,"id")),e.source?(yt.default.ok(!e.body),i.push("from",n.call(r,"source"))):i.push(n.call(r,"body")),S.fromString(" ").join(i);case"ImportSpecifier":return e.importKind&&e.importKind!=="value"&&i.push(e.importKind+" "),e.imported?(i.push(n.call(r,"imported")),e.local&&e.local.name!==e.imported.name&&i.push(" as ",n.call(r,"local"))):e.id&&(i.push(n.call(r,"id")),e.name&&i.push(" as ",n.call(r,"name"))),S.concat(i);case"ExportSpecifier":return e.local?(i.push(n.call(r,"local")),e.exported&&e.exported.name!==e.local.name&&i.push(" as ",n.call(r,"exported"))):e.id&&(i.push(n.call(r,"id")),e.name&&i.push(" as ",n.call(r,"name"))),S.concat(i);case"ExportBatchSpecifier":return S.fromString("*");case"ImportNamespaceSpecifier":return i.push("* as "),e.local?i.push(n.call(r,"local")):e.id&&i.push(n.call(r,"id")),S.concat(i);case"ImportDefaultSpecifier":return e.local?n.call(r,"local"):n.call(r,"id");case"TSExportAssignment":return S.concat(["export = ",n.call(r,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return B0(n,t,r);case"ExportAllDeclaration":return i.push("export *"),e.exported&&i.push(" as ",n.call(r,"exported")),i.push(" from ",n.call(r,"source"),";"),S.concat(i);case"TSNamespaceExportDeclaration":return i.push("export as namespace ",n.call(r,"id")),Qs(S.concat(i));case"ExportNamespaceSpecifier":return S.concat(["* as ",n.call(r,"exported")]);case"ExportDefaultSpecifier":return n.call(r,"exported");case"Import":return S.fromString("import",t);case"ImportExpression":return S.concat(["import(
|
||
|
`).join(c).indent(t.tabWidth),","])),l.length>0&&i.push(", "),p.length>1?i.push(`{
|
||
|
`,p,`
|
||
|
}`):t.objectCurlySpacing?i.push("{ ",p," }"):i.push("{",p,"}")}i.push(" from ")}return i.push(n.call(r,"source"),";"),S.concat(i)}case"BlockStatement":{var f=n.call(function(V){return ln(V,t,r)},"body");return f.isEmpty()&&(!e.directives||e.directives.length===0)?S.fromString("{}"):(i.push(`{
|
||
|
`),e.directives&&n.each(function(V){i.push(Qs(r(V).indent(t.tabWidth)),e.directives.length>1||!f.isEmpty()?`
|
||
|
`:"")},"directives"),i.push(f.indent(t.tabWidth)),i.push(`
|
||
|
}`),S.concat(i))}case"ReturnStatement":{if(i.push("return"),e.argument){var v=n.call(r,"argument");v.startsWithComment()||v.length>1&&be.JSXElement&&be.JSXElement.check(e.argument)?i.push(` (
|
||
|
`,v.indent(t.tabWidth),`
|
||
|
)`):i.push(" ",v)}return i.push(";"),S.concat(i)}case"CallExpression":case"OptionalCallExpression":return i.push(n.call(r,"callee")),e.typeParameters&&i.push(n.call(r,"typeParameters")),e.typeArguments&&i.push(n.call(r,"typeArguments")),qi.getFieldValue(e,"optional")&&i.push("?."),i.push(L0(n,t,r)),S.concat(i);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":{var m=e.type==="ObjectTypeAnnotation",o=t.flowObjectCommas?",":m?";":",",u=[],d=!1;m&&(u.push("indexers","callProperties"),e.internalSlots!=null&&u.push("internalSlots")),u.push("properties");var h=0;u.forEach(function(V){h+=e[V].length});var g=m&&h===1||h===0,y=e.exact?"{|":"{",b=e.exact?"|}":"}";i.push(g?y:y+`
|
||
|
`);var x=i.length-1,w=0;if(u.forEach(function(V){n.each(function(Y){var Qe=r(Y);g||(Qe=Qe.indent(t.tabWidth));var dt=!m&&Qe.length>1;dt&&d&&i.push(`
|
||
|
`),i.push(Qe),w<h-1?(i.push(o+(dt?`
|
||
|
|
||
|
`:`
|
||
|
`)),d=!dt):(h!==1&&m||!g&&Ft.isTrailingCommaEnabled(t,"objects")&&Y.getValue().type!=="RestElement")&&i.push(o),w++},V)}),e.inexact){var E=S.fromString("...",t);g?(h>0&&i.push(o," "),i.push(E)):i.push(`
|
||
|
`,E.indent(t.tabWidth))}return i.push(g?b:`
|
||
|
`+b),w!==0&&g&&t.objectCurlySpacing&&(i[x]=y+" ",i[i.length-1]=" "+b),e.typeAnnotation&&i.push(n.call(r,"typeAnnotation")),S.concat(i)}case"PropertyPattern":return S.concat([n.call(r,"key"),": ",n.call(r,"pattern")]);case"ObjectProperty":case"Property":{if(e.method||e.kind==="get"||e.kind==="set")return Uf(n,t,r);if(e.shorthand&&e.value.type==="AssignmentPattern")return n.call(r,"value");var C=n.call(r,"key");return e.computed?i.push("[",C,"]"):i.push(C),(!e.shorthand||e.key.name!==e.value.name)&&i.push(": ",n.call(r,"value")),S.concat(i)}case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return Uf(n,t,r);case"PrivateName":return S.concat(["#",n.call(r,"id")]);case"Decorator":return S.concat(["@",n.call(r,"expression")]);case"ArrayExpression":case"ArrayPattern":{var T=e.elements,M=T.length,U=n.map(r,"elements"),W=S.fromString(", ").join(U),G=W.getLineLength(1)<=t.wrapColumn;return G?t.arrayBracketSpacing?i.push("[ "):i.push("["):i.push(`[
|
||
|
`),n.each(function(V){var Y=V.getName(),Qe=V.getValue();if(!Qe)i.push(",");else{var dt=U[Y];G?Y>0&&i.push(" "):dt=dt.indent(t.tabWidth),i.push(dt),(Y<M-1||!G&&Ft.isTrailingCommaEnabled(t,"arrays"))&&i.push(","),G||i.push(`
|
||
|
`)}},"elements"),G&&t.arrayBracketSpacing?i.push(" ]"):i.push("]"),e.typeAnnotation&&i.push(n.call(r,"typeAnnotation")),S.concat(i)}case"SequenceExpression":return S.fromString(", ").join(n.map(r,"expressions"));case"ThisExpression":return S.fromString("this");case"Super":return S.fromString("super");case"NullLiteral":return S.fromString("null");case"RegExpLiteral":return S.fromString(e.extra.raw);case"BigIntLiteral":return S.fromString(e.value+"n");case"NumericLiteral":return e.extra&&typeof e.extra.raw=="string"&&Number(e.extra.raw)===e.value?S.fromString(e.extra.raw,t):S.fromString(e.value,t);case"BooleanLiteral":case"StringLiteral":case"Literal":return typeof e.value=="number"&&typeof e.raw=="string"&&Number(e.raw)===e.value?S.fromString(e.raw,t):typeof e.value!="string"?S.fromString(e.value,t):S.fromString(Ks(e.value,t),t);case"Directive":return n.call(r,"value");case"DirectiveLiteral":return S.fromString(Ks(e.value,t));case"InterpreterDirective":return S.fromString("#!"+e.value+`
|
||
|
`,t);case"ModuleSpecifier":if(e.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return S.fromString(Ks(e.value,t),t);case"UnaryExpression":return i.push(e.operator),/[a-z]$/.test(e.operator)&&i.push(" "),i.push(n.call(r,"argument")),S.concat(i);case"UpdateExpression":return i.push(n.call(r,"argument"),e.operator),e.prefix&&i.reverse(),S.concat(i);case"ConditionalExpression":return S.concat([n.call(r,"test")," ? ",n.call(r,"consequent")," : ",n.call(r,"alternate")]);case"NewExpression":{i.push("new ",n.call(r,"callee")),e.typeParameters&&i.push(n.call(r,"typeParameters")),e.typeArguments&&i.push(n.call(r,"typeArguments"));var ge=e.arguments;return ge&&i.push(L0(n,t,r)),S.concat(i)}case"VariableDeclaration":{e.declare&&i.push("declare "),i.push(e.kind," ");var de=0,Ke=n.map(function(V){var Y=r(V);return de=Math.max(Y.length,de),Y},"declarations");de===1?i.push(S.fromString(", ").join(Ke)):Ke.length>1?i.push(S.fromString(`,
|
||
|
`).join(Ke).indentTail(e.kind.length+1)):i.push(Ke[0]);var ut=n.getParentNode();return!be.ForStatement.check(ut)&&!be.ForInStatement.check(ut)&&!(be.ForOfStatement&&be.ForOfStatement.check(ut))&&!(be.ForAwaitStatement&&be.ForAwaitStatement.check(ut))&&i.push(";"),S.concat(i)}case"VariableDeclarator":return e.init?S.fromString(" = ").join([n.call(r,"id"),n.call(r,"init")]):n.call(r,"id");case"WithStatement":return S.concat(["with (",n.call(r,"object"),") ",n.call(r,"body")]);case"IfStatement":{var we=xr(n.call(r,"consequent"),t);return i.push("if (",n.call(r,"test"),")",we),e.alternate&&i.push(q0(we)?" else":`
|
||
|
else`,xr(n.call(r,"alternate"),t)),S.concat(i)}case"ForStatement":{var Ee=n.call(r,"init"),k=Ee.length>1?`;
|
||
|
`:"; ",I="for (",P=S.fromString(k).join([Ee,n.call(r,"test"),n.call(r,"update")]).indentTail(I.length),z=S.concat([I,P,")"]),X=xr(n.call(r,"body"),t);return i.push(z),z.length>1&&(i.push(`
|
||
|
`),X=X.trimLeft()),i.push(X),S.concat(i)}case"WhileStatement":return S.concat(["while (",n.call(r,"test"),")",xr(n.call(r,"body"),t)]);case"ForInStatement":return S.concat([e.each?"for each (":"for (",n.call(r,"left")," in ",n.call(r,"right"),")",xr(n.call(r,"body"),t)]);case"ForOfStatement":case"ForAwaitStatement":return i.push("for "),(e.await||e.type==="ForAwaitStatement")&&i.push("await "),i.push("(",n.call(r,"left")," of ",n.call(r,"right"),")",xr(n.call(r,"body"),t)),S.concat(i);case"DoWhileStatement":{var H=S.concat(["do",xr(n.call(r,"body"),t)]);return i.push(H),q0(H)?i.push(" while"):i.push(`
|
||
|
while`),i.push(" (",n.call(r,"test"),");"),S.concat(i)}case"DoExpression":{var De=n.call(function(V){return ln(V,t,r)},"body");return S.concat([`do {
|
||
|
`,De.indent(t.tabWidth),`
|
||
|
}`])}case"BreakStatement":return i.push("break"),e.label&&i.push(" ",n.call(r,"label")),i.push(";"),S.concat(i);case"ContinueStatement":return i.push("continue"),e.label&&i.push(" ",n.call(r,"label")),i.push(";"),S.concat(i);case"LabeledStatement":return S.concat([n.call(r,"label"),`:
|
||
|
`,n.call(r,"body")]);case"TryStatement":return i.push("try ",n.call(r,"block")),e.handler?i.push(" ",n.call(r,"handler")):e.handlers&&n.each(function(V){i.push(" ",r(V))},"handlers"),e.finalizer&&i.push(" finally ",n.call(r,"finalizer")),S.concat(i);case"CatchClause":return i.push("catch "),e.param&&i.push("(",n.call(r,"param")),e.guard&&i.push(" if ",n.call(r,"guard")),e.param&&i.push(") "),i.push(n.call(r,"body")),S.concat(i);case"ThrowStatement":return S.concat(["throw ",n.call(r,"argument"),";"]);case"SwitchStatement":return S.concat(["switch (",n.call(r,"discriminant"),`) {
|
||
|
`,S.fromString(`
|
||
|
`).join(n.map(r,"cases")),`
|
||
|
}`]);case"SwitchCase":return e.test?i.push("case ",n.call(r,"test"),":"):i.push("default:"),e.consequent.length>0&&i.push(`
|
||
|
`,n.call(function(V){return ln(V,t,r)},"consequent").indent(t.tabWidth)),S.concat(i);case"DebuggerStatement":return S.fromString("debugger;");case"JSXAttribute":return i.push(n.call(r,"name")),e.value&&i.push("=",n.call(r,"value")),S.concat(i);case"JSXIdentifier":return S.fromString(e.name,t);case"JSXNamespacedName":return S.fromString(":").join([n.call(r,"namespace"),n.call(r,"name")]);case"JSXMemberExpression":return S.fromString(".").join([n.call(r,"object"),n.call(r,"property")]);case"JSXSpreadAttribute":return S.concat(["{...",n.call(r,"argument"),"}"]);case"JSXSpreadChild":return S.concat(["{...",n.call(r,"expression"),"}"]);case"JSXExpressionContainer":return S.concat(["{",n.call(r,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var re="opening"+(e.type==="JSXElement"?"Element":"Fragment"),ee="closing"+(e.type==="JSXElement"?"Element":"Fragment"),ze=n.call(r,re);if(e[re].selfClosing)return yt.default.ok(!e[ee],"unexpected "+ee+" element in self-closing "+e.type),ze;var ct=S.concat(n.map(function(V){var Y=V.getValue();if(be.Literal.check(Y)&&typeof Y.value=="string"){if(/\S/.test(Y.value))return Y.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(Y.value))return`
|
||
|
`}return r(V)},"children")).indentTail(t.tabWidth),Ye=n.call(r,ee);return S.concat([ze,ct,Ye])}case"JSXOpeningElement":{i.push("<",n.call(r,"name"));var Me=[];n.each(function(V){Me.push(" ",r(V))},"attributes");var jt=S.concat(Me),Ot=jt.length>1||jt.getLineLength(1)>t.wrapColumn;return Ot&&(Me.forEach(function(V,Y){V===" "&&(yt.default.strictEqual(Y%2,0),Me[Y]=`
|
||
|
`)}),jt=S.concat(Me).indentTail(t.tabWidth)),i.push(jt,e.selfClosing?" />":">"),S.concat(i)}case"JSXClosingElement":return S.concat(["</",n.call(r,"name"),">"]);case"JSXOpeningFragment":return S.fromString("<>");case"JSXClosingFragment":return S.fromString("</>");case"JSXText":return S.fromString(e.value,t);case"JSXEmptyExpression":return S.fromString("");case"TypeAnnotatedIdentifier":return S.concat([n.call(r,"annotation")," ",n.call(r,"identifier")]);case"ClassBody":return e.body.length===0?S.fromString("{}"):S.concat([`{
|
||
|
`,n.call(function(V){return ln(V,t,r)},"body").indent(t.tabWidth),`
|
||
|
}`]);case"ClassPropertyDefinition":return i.push("static ",n.call(r,"definition")),be.MethodDefinition.check(e.definition)||i.push(";"),S.concat(i);case"ClassProperty":{e.declare&&i.push("declare ");var Er=e.accessibility||e.access;typeof Er=="string"&&i.push(Er," "),e.static&&i.push("static "),e.abstract&&i.push("abstract "),e.readonly&&i.push("readonly ");var C=n.call(r,"key");return e.computed&&(C=S.concat(["[",C,"]"])),e.variance&&(C=S.concat([Bi(n,r),C])),i.push(C),e.optional&&i.push("?"),e.typeAnnotation&&i.push(n.call(r,"typeAnnotation")),e.value&&i.push(" = ",n.call(r,"value")),i.push(";"),S.concat(i)}case"ClassPrivateProperty":return e.static&&i.push("static "),i.push(n.call(r,"key")),e.typeAnnotation&&i.push(n.call(r,"typeAnnotation")),e.value&&i.push(" = ",n.call(r,"value")),i.push(";"),S.concat(i);case"ClassDeclaration":case"ClassExpression":return e.declare&&i.push("declare "),e.abstract&&i.push("abstract "),i.push("class"),e.id&&i.push(" ",n.call(r,"id")),e.typeParameters&&i.push(n.call(r,"typeParameters")),e.superClass&&i.push(" extends ",n.call(r,"superClass"),n.call(r,"superTypeParameters")),e.implements&&e.implements.length>0&&i.push(" implements ",S.fromString(", ").join(n.map(r,"implements"))),i.push(" ",n.call(r,"body")),S.concat(i);case"TemplateElement":return S.fromString(e.value.raw,t).lockIndentTail();case"TemplateLiteral":{var Dr=n.map(r,"expressions");return i.push("`"),n.each(function(V){var Y=V.getName();i.push(r(V)),Y<Dr.length&&i.push("${",Dr[Y],"}")},"quasis"),i.push("`"),S.concat(i).lockIndentTail()}case"TaggedTemplateExpression":return S.concat([n.call(r,"tag"),n.call(r,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(e.type));case"CommentBlock":case"Block":return S.concat(["/*",S.fromString(e.value,t),"*/"]);case"CommentLine":case"Line":return S.concat(["//",S.fromString(e.value,t)]);case"TypeAnnotation":return e.typeAnnotation?(e.typeAnnotation.type!=="FunctionTypeAnnotation"&&i.push(": "),i.push(n.call(r,"typeAnnotation")),S.concat(i)):S.fromString("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return S.fromString("*",t);case"EmptyTypeAnnotation":return S.fromString("empty",t);case"AnyTypeAnnotation":return S.fromString("any",t);case"MixedTypeAnnotation":return S.fromString("mixed",t);case"ArrayTypeAnnotation":return S.concat([n.call(r,"elementType"),"[]"]);case"TupleTypeAnnotation":{var zi=n.map(r,"types"),W=S.fromString(", ").join(zi),tr=W.getLineLength(1)<=t.wrapColumn;return tr?t.arrayBracketSpacing?i.push("[ "):i.push("["):i.push(`[
|
||
|
`),n.each(function(Y){var Qe=Y.getName(),dt=Y.getValue();if(!dt)i.push(",");else{var mn=zi[Qe];tr?Qe>0&&i.push(" "):mn=mn.indent(t.tabWidth),i.push(mn),(Qe<e.types.length-1||!tr&&Ft.isTrailingCommaEnabled(t,"arrays"))&&i.push(","),tr||i.push(`
|
||
|
`)}},"types"),tr&&t.arrayBracketSpacing?i.push(" ]"):i.push("]"),S.concat(i)}case"BooleanTypeAnnotation":return S.fromString("boolean",t);case"BooleanLiteralTypeAnnotation":return yt.default.strictEqual(typeof e.value,"boolean"),S.fromString(""+e.value,t);case"InterfaceTypeAnnotation":return i.push("interface"),e.extends&&e.extends.length>0&&i.push(" extends ",S.fromString(", ").join(n.map(r,"extends"))),i.push(" ",n.call(r,"body")),S.concat(i);case"DeclareClass":return Li(n,["class ",n.call(r,"id")," ",n.call(r,"body")]);case"DeclareFunction":return Li(n,["function ",n.call(r,"id"),";"]);case"DeclareModule":return Li(n,["module ",n.call(r,"id")," ",n.call(r,"body")]);case"DeclareModuleExports":return Li(n,["module.exports",n.call(r,"typeAnnotation")]);case"DeclareVariable":return Li(n,["var ",n.call(r,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return S.concat(["declare ",B0(n,t,r)]);case"EnumDeclaration":return S.concat(["enum ",n.call(r,"id"),n.call(r,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return(e.type==="EnumSymbolBody"||e.explicitType)&&i.push(" of ",e.type.slice(4,-4).toLowerCase()),i.push(` {
|
||
|
`,S.fromString(`
|
||
|
`).join(n.map(r,"members")).indent(t.tabWidth),`
|
||
|
}`),S.concat(i);case"EnumDefaultedMember":return S.concat([n.call(r,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return S.concat([n.call(r,"id")," = ",n.call(r,"init"),","]);case"InferredPredicate":return S.fromString("%checks",t);case"DeclaredPredicate":return S.concat(["%checks(",n.call(r,"value"),")"]);case"FunctionTypeAnnotation":{var ft=n.getParentNode(0),Vi=!(be.ObjectTypeCallProperty.check(ft)||be.ObjectTypeInternalSlot.check(ft)&&ft.method||be.DeclareFunction.check(n.getParentNode(2))),uo=Vi&&!be.FunctionTypeParam.check(ft)&&!be.TypeAlias.check(ft);uo&&i.push(": ");var Wi=!!e.typeParameters,Ji=Wi||e.params.length!==1||e.params[0].name;return i.push(Wi?n.call(r,"typeParameters"):"",Ji?"(":"",kt(n,t,r),Ji?")":""),e.returnType&&i.push(Vi?" => ":": ",n.call(r,"returnType")),S.concat(i)}case"FunctionTypeParam":{var Xi=n.call(r,"name");return i.push(Xi),e.optional&&i.push("?"),Xi.infos[0].line&&i.push(": "),i.push(n.call(r,"typeAnnotation")),S.concat(i)}case"GenericTypeAnnotation":return S.concat([n.call(r,"id"),n.call(r,"typeParameters")]);case"DeclareInterface":i.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return e.declare&&i.push("declare "),i.push("interface ",n.call(r,"id"),n.call(r,"typeParameters")," "),e.extends&&e.extends.length>0&&i.push("extends ",S.fromString(", ").join(n.map(r,"extends"))," "),e.body&&i.push(n.call(r,"body")),S.concat(i);case"ClassImplements":case"InterfaceExtends":return S.concat([n.call(r,"id"),n.call(r,"typeParameters")]);case"IntersectionTypeAnnotation":return S.fromString(" & ").join(n.map(r,"types"));case"NullableTypeAnnotation":return S.concat(["?",n.call(r,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return S.fromString("null",t);case"ThisTypeAnnotation":return S.fromString("this",t);case"NumberTypeAnnotation":return S.fromString("number",t);case"ObjectTypeCallProperty":return n.call(r,"value");case"ObjectTypeIndexer":return e.static&&i.push("static "),i.push(Bi(n,r),"["),e.id&&i.push(n.call(r,"id"),": "),i.push(n.call(r,"key"),"]: ",n.call(r,"value")),S.concat(i);case"ObjectTypeProperty":return S.concat([Bi(n,r),n.call(r,"key"),e.optional?"?":"",": ",n.call(r,"value")]);case"ObjectTypeInternalSlot":return S.concat([e.static?"static ":"","[[",n.call(r,"id"),"]]",e.optional?"?":"",e.value.type!=="FunctionTypeAnnotation"?": ":"",n.call(r,"value")]);case"QualifiedTypeIdentifier":return S.concat([n.call(r,"qualification"),".",n.call(r,"id")]);case"StringLiteralTypeAnnotation":return S.fromString(Ks(e.value,t),t);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return yt.default.strictEqual(typeof e.value,"number"),S.fromString(JSON.stringify(e.value),t);case"BigIntLiteralTypeAnnotation":return S.fromString(e.raw,t);case"StringTypeAnnotation":return S.fromString("string",t);case"DeclareTypeAlias":i.push("declare ");case"TypeAlias":return S.concat(["type ",n.call(r,"id"),n.call(r,"typeParameters")," = ",n.call(r,"right"),";"]);case"DeclareOpaqueType":i.push("declare ");case"OpaqueType":return i.push("opaque type ",n.call(r,"id"),n.call(r,"typeParameters")),e.supertype&&i.push(": ",n.call(r,"supertype")),e.impltype&&i.push(" = ",n.call(r,"impltype")),i.push(";"),S.concat(i);case"TypeCastExpression":return S.concat(["(",n.call(r,"expression"),n.call(r,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return S.concat(["<",S.fromString(", ").join(n.map(r,"params")),">"]);case"Variance":return e.kind==="plus"?S.fromString("+"):e.kind==="minus"?S.fromString("-"):S.fromString("");case"TypeParameter":return e.variance&&i.push(Bi(n,r)),i.push(n.call(r,"name")),e.bound&&i.push(n.call(r,"bound")),e.default&&i.push("=",n.call(r,"default")),S.concat(i);case"TypeofTypeAnnotation":return S.concat([S.fromString("typeof ",t),n.call(r,"argument")]);case"UnionTypeAnnotation":return S.fromString(" | ").join(n.map(r,"types"));case"VoidTypeAnnotation":return S.fromString("void",t);case"NullTypeAnnotation":return S.fromString("null",t);case"SymbolTypeAnnotation":return S.fromStrin
|
||
|
`,S.concat(i).indent(t.tabWidth),`
|
||
|
}`]);case"TSTupleType":return S.concat(["[",S.fromString(", ").join(n.map(r,"elementTypes")),"]"]);case"TSNamedTupleMember":return i.push(n.call(r,"label")),e.optional&&i.push("?"),i.push(": ",n.call(r,"elementType")),S.concat(i);case"TSRestType":return S.concat(["...",n.call(r,"typeAnnotation")]);case"TSOptionalType":return S.concat([n.call(r,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return S.concat([n.call(r,"objectType"),"[",n.call(r,"indexType"),"]"]);case"TSTypeOperator":return S.concat([n.call(r,"operator")," ",n.call(r,"typeAnnotation")]);case"TSTypeLiteral":{var rr=S.fromString(`,
|
||
|
`).join(n.map(r,"members"));return rr.isEmpty()?S.fromString("{}",t):(i.push(`{
|
||
|
`,rr.indent(t.tabWidth),`
|
||
|
}`),S.concat(i))}case"TSEnumMember":return i.push(n.call(r,"id")),e.initializer&&i.push(" = ",n.call(r,"initializer")),S.concat(i);case"TSTypeQuery":return S.concat(["typeof ",n.call(r,"exprName")]);case"TSParameterProperty":return e.accessibility&&i.push(e.accessibility," "),e.export&&i.push("export "),e.static&&i.push("static "),e.readonly&&i.push("readonly "),i.push(n.call(r,"parameter")),S.concat(i);case"TSTypeReference":return S.concat([n.call(r,"typeName"),n.call(r,"typeParameters")]);case"TSQualifiedName":return S.concat([n.call(r,"left"),".",n.call(r,"right")]);case"TSAsExpression":{var co=n.call(r,"expression");return i.push(co,S.fromString(" as "),n.call(r,"typeAnnotation")),S.concat(i)}case"TSNonNullExpression":return S.concat([n.call(r,"expression"),"!"]);case"TSTypeAnnotation":return S.concat([": ",n.call(r,"typeAnnotation")]);case"TSIndexSignature":return S.concat([e.readonly?"readonly ":"","[",n.map(r,"parameters"),"]",n.call(r,"typeAnnotation")]);case"TSPropertySignature":return i.push(Bi(n,r),e.readonly?"readonly ":""),e.computed?i.push("[",n.call(r,"key"),"]"):i.push(n.call(r,"key")),i.push(e.optional?"?":"",n.call(r,"typeAnnotation")),S.concat(i);case"TSMethodSignature":return e.computed?i.push("[",n.call(r,"key"),"]"):i.push(n.call(r,"key")),e.optional&&i.push("?"),i.push(n.call(r,"typeParameters"),"(",kt(n,t,r),")",n.call(r,"typeAnnotation")),S.concat(i);case"TSTypePredicate":return e.asserts&&i.push("asserts "),i.push(n.call(r,"parameterName")),e.typeAnnotation&&i.push(" is ",n.call(r,"typeAnnotation","typeAnnotation")),S.concat(i);case"TSCallSignatureDeclaration":return S.concat([n.call(r,"typeParameters"),"(",kt(n,t,r),")",n.call(r,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return e.typeParameters?i.push("new",n.call(r,"typeParameters")):i.push("new "),i.push("(",kt(n,t,r),")",n.call(r,"typeAnnotation")),S.concat(i);case"TSTypeAliasDeclaration":return S.concat([e.declare?"declare ":"","type ",n.call(r,"id"),n.call(r,"typeParameters")," = ",n.call(r,"typeAnnotation"),";"]);case"TSTypeParameter":{i.push(n.call(r,"name"));var ft=n.getParentNode(0),fo=be.TSMappedType.check(ft);return e.constraint&&i.push(fo?" in ":" extends ",n.call(r,"constraint")),e.default&&i.push(" = ",n.call(r,"default")),S.concat(i)}case"TSTypeAssertion":return i.push("<",n.call(r,"typeAnnotation"),"> ",n.call(r,"expression")),S.concat(i);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return S.concat(["<",S.fromString(", ").join(n.map(r,"params")),">"]);case"TSEnumDeclaration":{i.push(e.declare?"declare ":"",e.const?"const ":"","enum ",n.call(r,"id"));var rr=S.fromString(`,
|
||
|
`).join(n.map(r,"members"));return rr.isEmpty()?i.push(" {}"):i.push(` {
|
||
|
`,rr.indent(t.tabWidth),`
|
||
|
}`),S.concat(i)}case"TSExpressionWithTypeArguments":return S.concat([n.call(r,"expression"),n.call(r,"typeParameters")]);case"TSInterfaceBody":{var p=S.fromString(`;
|
||
|
`).join(n.map(r,"body"));return p.isEmpty()?S.fromString("{}",t):S.concat([`{
|
||
|
`,p.indent(t.tabWidth),";",`
|
||
|
}`])}case"TSImportType":return i.push("import(",n.call(r,"argument"),")"),e.qualifier&&i.push(".",n.call(r,"qualifier")),e.typeParameters&&i.push(n.call(r,"typeParameters")),S.concat(i);case"TSImportEqualsDeclaration":return e.isExport&&i.push("export "),i.push("import ",n.call(r,"id")," = ",n.call(r,"moduleReference")),Qs(S.concat(i));case"TSExternalModuleReference":return S.concat(["require(",n.call(r,"expression"),")"]);case"TSModuleDeclaration":{var ft=n.getParentNode();if(ft.type==="TSModuleDeclaration")i.push(".");else if(e.declare&&i.push("declare "),!e.global){var po=e.id.type==="StringLiteral"||e.id.type==="Literal"&&typeof e.id.value=="string";if(po)i.push("module ");else if(e.loc&&e.loc.lines&&e.id.loc){var ho=e.loc.lines.sliceString(e.loc.start,e.id.loc.start);ho.indexOf("module")>=0?i.push("module "):i.push("namespace ")}else i.push("namespace ")}if(i.push(n.call(r,"id")),e.body&&e.body.type==="TSModuleDeclaration")i.push(n.call(r,"body"));else if(e.body){var $i=n.call(r,"body");$i.isEmpty()?i.push(" {}"):i.push(` {
|
||
|
`,$i.indent(t.tabWidth),`
|
||
|
}`)}return S.concat(i)}case"TSModuleBlock":return n.call(function(V){return ln(V,t,r)},"body");case"ClassHeritage":case"ComprehensionBlock":case"ComprehensionExpression":case"Glob":case"GeneratorExpression":case"LetStatement":case"LetExpression":case"GraphExpression":case"GraphIndexExpression":case"XMLDefaultDeclaration":case"XMLAnyName":case"XMLQualifiedIdentifier":case"XMLFunctionQualifiedIdentifier":case"XMLAttributeSelector":case"XMLFilterExpression":case"XML":case"XMLElement":case"XMLList":case"XMLEscape":case"XMLText":case"XMLStartTag":case"XMLEndTag":case"XMLPointTag":case"XMLName":case"XMLAttribute":case"XMLCdata":case"XMLComment":case"XMLProcessingInstruction":default:debugger;throw new Error("unknown type: "+JSON.stringify(e.type))}}function KP(n,t){var r=[],e=n.getValue();return e.decorators&&e.decorators.length>0&&!Ft.getParentExportDeclaration(n)?n.each(function(i){r.push(t(i),`
|
||
|
`)},"decorators"):Ft.isExportDeclaration(e)&&e.declaration&&e.declaration.decorators&&n.each(function(i){r.push(t(i),`
|
||
|
`)},"declaration","decorators"),S.concat(r)}function ln(n,t,r){var e=[],i=!1,a=!1;n.each(function(p){var f=p.getValue();!f||f.type==="EmptyStatement"&&!(f.comments&&f.comments.length>0)||(be.Comment.check(f)?i=!0:be.Statement.check(f)?a=!0:zf.assert(f),e.push({node:f,printed:r(p)}))}),i&&yt.default.strictEqual(a,!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var s=null,l=e.length,c=[];return e.forEach(function(p,f){var v=p.printed,m=p.node,o=v.length>1,u=f>0,d=f<l-1,h,g,y=m&&m.loc&&m.loc.lines,b=y&&t.reuseWhitespace&&Ft.getTrueLoc(m,y);if(u)if(b){var x=y.skipSpaces(b.start,!0),w=x?x.line:1,E=b.start.line-w;h=Array(E+1).join(`
|
||
|
`)}else h=o?`
|
||
|
|
||
|
`:`
|
||
|
`;else h="";if(d)if(b){var C=y.skipSpaces(b.end),T=C?C.line:y.length,M=T-b.end.line;g=Array(M+1).join(`
|
||
|
`)}else g=o?`
|
||
|
|
||
|
`:`
|
||
|
`;else g="";c.push(YP(s,h),v),d?s=g:g&&c.push(g)}),S.concat(c)}function YP(n,t){if(!n&&!t)return S.fromString("");if(!n)return S.fromString(t);if(!t)return S.fromString(n);var r=S.fromString(n),e=S.fromString(t);return e.length>r.length?e:r}function Uf(n,t,r){var e=n.getNode(),i=e.kind,a=[],s=e.value;be.FunctionExpression.check(s)||(s=e);var l=e.accessibility||e.access;typeof l=="string"&&a.push(l," "),e.static&&a.push("static "),e.abstract&&a.push("abstract "),e.readonly&&a.push("readonly "),s.async&&a.push("async "),s.generator&&a.push("*"),(i==="get"||i==="set")&&a.push(i," ");var c=n.call(r,"key");return e.computed&&(c=S.concat(["[",c,"]"])),a.push(c),e.optional&&a.push("?"),e===s?(a.push(n.call(r,"typeParameters"),"(",kt(n,t,r),")",n.call(r,"returnType")),e.body?a.push(" ",n.call(r,"body")):a.push(";")):(a.push(n.call(r,"value","typeParameters"),"(",n.call(function(p){return kt(p,t,r)},"value"),")",n.call(r,"value","returnType")),s.body?a.push(" ",n.call(r,"value","body")):a.push(";")),S.concat(a)}function L0(n,t,r){var e=n.map(r,"arguments"),i=Ft.isTrailingCommaEnabled(t,"parameters"),a=S.fromString(", ").join(e);return a.getLineLength(1)>t.wrapColumn?(a=S.fromString(`,
|
||
|
`).join(e),S.concat([`(
|
||
|
`,a.indent(t.tabWidth),i?`,
|
||
|
)`:`
|
||
|
)`])):S.concat(["(",a,")"])}function kt(n,t,r){var e=n.getValue(),i,a=[];e.params?(i=e.params,a=n.map(r,"params")):e.parameters&&(i=e.parameters,a=n.map(r,"parameters")),e.defaults&&n.each(function(l){var c=l.getName(),p=a[c];p&&l.getValue()&&(a[c]=S.concat([p," = ",r(l)]))},"defaults"),e.rest&&a.push(S.concat(["...",n.call(r,"rest")]));var s=S.fromString(", ").join(a);return s.length>1||s.getLineLength(1)>t.wrapColumn?(s=S.fromString(`,
|
||
|
`).join(a),Ft.isTrailingCommaEnabled(t,"parameters")&&!e.rest&&i[i.length-1].type!=="RestElement"?s=S.concat([s,`,
|
||
|
`]):s=S.concat([s,`
|
||
|
`]),S.concat([`
|
||
|
`,s.indent(t.tabWidth)])):s}function B0(n,t,r){var e=n.getValue(),i=["export "];e.exportKind&&e.exportKind==="type"&&(e.declaration||i.push("type "));var a=t.objectCurlySpacing;if(be.Declaration.assert(e),(e.default||e.type==="ExportDefaultDeclaration")&&i.push("default "),e.declaration)i.push(n.call(r,"declaration"));else if(e.specifiers){if(e.specifiers.length===1&&e.specifiers[0].type==="ExportBatchSpecifier")i.push("*");else if(e.specifiers.length===0)i.push("{}");else if(e.specifiers[0].type==="ExportDefaultSpecifier"){var s=[],l=[];if(n.each(function(f){var v=f.getValue();v.type==="ExportDefaultSpecifier"?s.push(r(f)):l.push(r(f))},"specifiers"),s.forEach(function(f,v){v>0&&i.push(", "),i.push(f)}),l.length>0){var c=S.fromString(", ").join(l);c.getLineLength(1)>t.wrapColumn&&(c=S.concat([S.fromString(`,
|
||
|
`).join(l).indent(t.tabWidth),","])),s.length>0&&i.push(", "),c.length>1?i.push(`{
|
||
|
`,c,`
|
||
|
}`):t.objectCurlySpacing?i.push("{ ",c," }"):i.push("{",c,"}")}}else i.push(a?"{ ":"{",S.fromString(", ").join(n.map(r,"specifiers")),a?" }":"}");e.source&&i.push(" from ",n.call(r,"source"))}var p=S.concat(i);return Vf(p)!==";"&&!(e.declaration&&(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"||e.declaration.type==="TSModuleDeclaration"||e.declaration.type==="TSInterfaceDeclaration"||e.declaration.type==="TSEnumDeclaration"))&&(p=S.concat([p,";"])),p}function Li(n,t){var r=Ft.getParentExportDeclaration(n);return r?yt.default.strictEqual(r.type,"DeclareExportDeclaration"):t.unshift("declare "),S.concat(t)}function Bi(n,t){return n.call(function(r){var e=r.getValue();return e?e==="plus"?S.fromString("+"):e==="minus"?S.fromString("-"):t(r):S.fromString("")},"variance")}function xr(n,t){return n.length>1?S.concat([" ",n]):S.concat([`
|
||
|
`,Qs(n).indent(t.tabWidth)])}function Vf(n){var t=n.lastPos();do{var r=n.charAt(t);if(/\S/.test(r))return r}while(n.prevPos(t))}function q0(n){return Vf(n)==="}"}function Hs(n){return n.replace(/['"]/g,function(t){return t==='"'?"'":'"'})}function Ks(n,t){switch(zf.assert(n),t.quote){case"auto":{var r=JSON.stringify(n),e=Hs(JSON.stringify(Hs(n)));return r.length>e.length?e:r}case"single":return Hs(JSON.stringify(Hs(n)));case"double":default:return JSON.stringify(n)}}function Qs(n){var t=Vf(n);return!t||`
|
||
|
};`.indexOf(t)<0?S.concat([n,";"]):n}});var W0=D(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.run=He.prettyPrint=He.print=He.types=He.parse=void 0;var j0=K(),QP=j0.__importDefault(require("fs")),ZP=j0.__importStar(At());He.types=ZP;var U0=w0();Object.defineProperty(He,"parse",{enumerable:!0,get:function(){return U0.parse}});var z0=R0(),e2=At();Object.defineProperty(He,"visit",{enumerable:!0,get:function(){return e2.visit}});function V0(n,t){return new z0.Printer(t).print(n)}He.print=V0;function t2(n,t){return new z0.Printer(t).printGenerically(n)}He.prettyPrint=t2;function r2(n,t){return n2(process.argv[2],n,t)}He.run=r2;function n2(n,t,r){QP.default.readFile(n,"utf-8",function(e,i){if(e){console.error(e);return}a2(i,t,r)})}function i2(n){process.stdout.write(n)}function a2(n,t,r){var e=r&&r.writeback||i2;t(U0.parse(n,r),function(i){e(V0(i,r).code)})}});var $0=D((mN,Wf)=>{"use strict";var J0=require("path"),{createRequire:X0}=require("module");Wf.exports=(n,t)=>X0(J0.resolve(n,"noop.js"))(t);Wf.exports.silent=(n,t)=>{try{return X0(J0.resolve(n,"noop.js"))(t)}catch{}}});var Y0=D((vN,Jf)=>{"use strict";var G0=require("path"),H0=require("module"),s2=require("fs"),K0=(n,t,r)=>{if(typeof n!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof n}\``);if(typeof t!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);try{n=s2.realpathSync(n)}catch(a){if(a.code==="ENOENT")n=G0.resolve(n);else{if(r)return null;throw a}}let e=G0.join(n,"noop.js"),i=()=>H0._resolveFilename(t,{id:e,filename:e,paths:H0._nodeModulePaths(n)});if(r)try{return i()}catch{return null}return i()};Jf.exports=(n,t)=>K0(n,t);Jf.exports.silent=(n,t)=>K0(n,t,!0)});var Z0=D((gN,Xf)=>{"use strict";var Q0=()=>{let n=Error.prepareStackTrace;Error.prepareStackTrace=(r,e)=>e;let t=new Error().stack.slice(1);return Error.prepareStackTrace=n,t};Xf.exports=Q0;Xf.exports.default=Q0});var tb=D((yN,eb)=>{"use strict";var o2=Z0();eb.exports=n=>{let t=o2();if(!n)return t[2].getFileName();let r=!1;t.shift();for(let e of t){let i=e.getFileName();if(typeof i=="string"){if(i===n){r=!0;continue}if(i!=="module.js"&&r&&i!==n)return i}}}});var nb=D((bN,rb)=>{"use strict";var l2=require("path"),u2=Y0(),c2=tb();rb.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string");let t=c2(__filename),r=t?l2.dirname(t):__dirname,e=u2(r,n),i=require.cache[e];if(i&&i.parent){let s=i.parent.children.length;for(;s--;)i.parent.children[s].id===e&&i.parent.children.splice(s,1)}delete require.cache[e];let a=require.cache[t];return a===void 0?require(e):a.require(e)}});var ub=D((Sr,lb)=>{"use strict";var $f=require("crypto");Sr=lb.exports=Ri;function Ri(n,t){return t=sb(n,t),f2(n,t)}Sr.sha1=function(n){return Ri(n)};Sr.keys=function(n){return Ri(n,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})};Sr.MD5=function(n){return Ri(n,{algorithm:"md5",encoding:"hex"})};Sr.keysMD5=function(n){return Ri(n,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var un=$f.getHashes?$f.getHashes().slice():["sha1","md5"];un.push("passthrough");var ib=["buffer","hex","binary","base64"];function sb(n,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=t.ignoreUnknown===!0,r.respectType=t.respectType!==!1,r.respectFunctionNames=t.respectFunctionNames!==!1,r.respectFunctionProperties=t.respectFunctionProperties!==!1,r.unorderedArrays=t.unorderedArrays===!0,r.unorderedSets=t.unorderedSets!==!1,r.unorderedObjects=t.unorderedObjects!==!1,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,typeof n>"u")throw new Error("Object argument required.");for(var e=0;e<un.length;++e)un[e].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=un[e]);if(un.indexOf(r.algorithm)===-1)throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+un.join(", "));if(ib.indexOf(r.encoding)===-1&&r.algorithm!=="passthrough")throw
|
||
|
(see https://github.com/puleos/object-hash/issues/26)
|
||
|
Use "options.replacer" or "options.ignoreUnknown"
|
||
|
`)},_domwindow:function(){return e("domwindow")},_bigint:function(i){return e("bigint:"+i.toString())},_process:function(){return e("process")},_timer:function(){return e("timer")},_pipe:function(){return e("pipe")},_tcp:function(){return e("tcp")},_udp:function(){return e("udp")},_tty:function(){return e("tty")},_statwatcher:function(){return e("statwatcher")},_securecontext:function(){return e("securecontext")},_connection:function(){return e("connection")},_zlib:function(){return e("zlib")},_context:function(){return e("context")},_nodescript:function(){return e("nodescript")},_httpparser:function(){return e("httpparser")},_dataview:function(){return e("dataview")},_signal:function(){return e("signal")},_fsevent:function(){return e("fsevent")},_tlswrap:function(){return e("tlswrap")}}}function ob(){return{buf:"",write:function(n){this.buf+=n},end:function(n){this.buf+=n},read:function(){return this.buf}}}});var Hf=D((xN,cb)=>{var d2={}.toString;cb.exports=Array.isArray||function(n){return d2.call(n)=="[object Array]"}});var db=D((SN,fb)=>{"use strict";var p2=Hf();fb.exports=function(t){return t!=null&&typeof t=="object"&&p2(t)===!1}});var hb=D((EN,pb)=>{"use strict";var h2=Hf(),m2=db(),wN=Array.prototype.slice;pb.exports=cn;function cn(n,t){if(!(this instanceof cn))return typeof t=="number"?new cn(n).fromIndex(t):new cn(n,t);this.str=n||"",this.lineToIndex=v2(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}cn.prototype.fromIndex=function(n){if(n<0||n>=this.str.length||isNaN(n))return null;var t=g2(n,this.lineToIndex);return{line:t+this.origin,col:n-this.lineToIndex[t]+this.origin}};cn.prototype.toIndex=function(n,t){if(typeof t>"u")return h2(n)&&n.length>=2?this.toIndex(n[0],n[1]):m2(n)&&"line"in n&&("col"in n||"column"in n)?this.toIndex(n.line,"col"in n?n.col:n.column):-1;if(isNaN(n)||isNaN(t))return-1;if(n-=this.origin,t-=this.origin,n>=0&&t>=0&&n<this.lineToIndex.length){var r=this.lineToIndex[n],e=n===this.lineToIndex.length-1?this.str.length:this.lineToIndex[n+1];if(t<e-r)return r+t}return-1};function v2(n){for(var t=n.split(`
|
||
|
`),r=new Array(t.length),e=0,i=0,a=t.length;i<a;i++)r[i]=e,e+=t[i].length+1;return r}function g2(n,t){if(n>=t[t.length-1])return t.length-1;for(var r=0,e=t.length-2,i;r<e;)if(i=r+(e-r>>1),n<t[i])e=i-1;else if(n>=t[i+1])r=i+1;else{r=i;break}return r}});var yb=D((DN,gb)=>{"use strict";var mb={},y2=mb.hasOwnProperty,vb=(n,t)=>{for(let r in n)y2.call(n,r)&&t(r,n[r])},b2=(n,t)=>(t&&vb(t,(r,e)=>{n[r]=e}),n),x2=(n,t)=>{let r=n.length,e=-1;for(;++e<r;)t(n[e])},ji=mb.toString,S2=Array.isArray,w2=Buffer.isBuffer,E2=n=>ji.call(n)=="[object Object]",D2=n=>typeof n=="string"||ji.call(n)=="[object String]",C2=n=>typeof n=="number"||ji.call(n)=="[object Number]",A2=n=>typeof n=="function",_2=n=>ji.call(n)=="[object Map]",T2=n=>ji.call(n)=="[object Set]",k2={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},F2=/["'\\\b\f\n\r\t]/,O2=/[0-9]/,P2=/[ !#-&\(-\[\]-_a-~]/,Zt=(n,t)=>{let r=()=>{p=c,++t.indentLevel,c=t.indent.repeat(t.indentLevel)},e={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(e.quotes="double",e.wrap=!0),t=b2(e,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let a=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",s=t.compact,l=t.lowercaseHex,c=t.indent.repeat(t.indentLevel),p="",f=t.__inline1__,v=t.__inline2__,m=s?"":`
|
||
|
`,o,u=!0,d=t.numbers=="binary",h=t.numbers=="octal",g=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(i&&n&&A2(n.toJSON)&&(n=n.toJSON()),!D2(n)){if(_2(n))return n.size==0?"new Map()":(s||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Zt(Array.from(n),t)+")");if(T2(n))return n.size==0?"new Set()":"new Set("+Zt(Array.from(n),t)+")";if(w2(n))return n.length==0?"Buffer.from([])":"Buffer.from("+Zt(Array.from(n),t)+")";if(S2(n))return o=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),v||r(),x2(n,E=>{u=!1,v&&(t.__inline2__=!1),o.push((s||v?"":c)+Zt(E,t))}),u?"[]":v?"["+o.join(", ")+"]":"["+m+o.join(","+m)+m+(s?"":p)+"]";if(C2(n)){if(i)return JSON.stringify(n);if(g)return String(n);if(y){let E=n.toString(16);return l||(E=E.toUpperCase()),"0x"+E}if(d)return"0b"+n.toString(2);if(h)return"0o"+n.toString(8)}else return E2(n)?(o=[],t.wrap=!0,r(),vb(n,(E,C)=>{u=!1,o.push((s?"":c)+Zt(E,t)+":"+(s?"":" ")+Zt(C,t))}),u?"{}":"{"+m+o.join(","+m)+m+(s?"":p)+"}"):i?JSON.stringify(n)||"null":String(n)}let b=n,x=-1,w=b.length;for(o="";++x<w;){let E=b.charAt(x);if(t.es6){let W=b.charCodeAt(x);if(W>=55296&&W<=56319&&w>x+1){let G=b.charCodeAt(x+1);if(G>=56320&&G<=57343){let de=((W-55296)*1024+G-56320+65536).toString(16);l||(de=de.toUpperCase()),o+="\\u{"+de+"}",++x;continue}}}if(!t.escapeEverything){if(P2.test(E)){o+=E;continue}if(E=='"'){o+=a==E?'\\"':E;continue}if(E=="`"){o+=a==E?"\\`":E;continue}if(E=="'"){o+=a==E?"\\'":E;continue}}if(E=="\0"&&!i&&!O2.test(b.charAt(x+1))){o+="\\0";continue}if(F2.test(E)){o+=k2[E];continue}let C=E.charCodeAt(0);if(t.minimal&&C!=8232&&C!=8233){o+=E;continue}let T=C.toString(16);l||(T=T.toUpperCase());let M=T.length>2||i;o+="\\"+(M?"u":"x")+("0000"+T).slice(M?-4:-2)}return t.wrap&&(o=a+o+a),a=="`"&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext?o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--"):o};Zt.version="2.5.2";gb.exports=Zt});var U2={};Zb(U2,{options:()=>B2,parsers:()=>q2,printers:()=>qb});module.exports=ex(U2);var Zf=ye(require("prettier")),Ui=ye(require("prettier/parser-html")),Eb=ye(require("prettier/parser-angular")),io=ye(require("prettier/parser-postcss")),pn=ye(require("prettier/parser-babel")),Db=ye(require("prettier/parser-espree")),Cb=ye(require("prettier/parser-glimmer")),Ab=ye(require("prettier/parser-meriyah")),_b=ye(require("prettier/parser-flow")),Tb=ye(require("prettier/parser-typescript")),kb=ye(ac()),Fb=ye(ic()),Ob=ye(Ag()),lo=ye(W0()),Pb=ye(At()),hn=ye(require("path")),ao=ye($0()),Yf=ye(nb()),Mb=ye(ub()),Ib=ye(hb()),Nb=ye(yb());var fn=require("path"),ro=require("fs");function bb(n,t){let r=(0,fn.resolve)(".",n),e;for((0,ro.statSync)(r).isDirectory()||(r=(0,fn.dirname)(r));;){if(e=t(r,(0,ro.readdirSync)(r)),e)return(0,fn.resolve)(r,e);if(r=(0,fn.dirname)(e=r),e===r)break}}var lt=j2(),xb=new Map;function Lb(n){return(n>0n)-(n<0n)}function Sb(n,t){let r=n.tailwindConfig.prefix;return typeof r=="function"?r(t):r+t}function M2(n,{env:t}){var i,a;let r=new Set([Sb(t.context,"group"),Sb(t.context,"peer")]),e=[];for(let s of n){let l=(a=(i=t.generateRules(new Set([s]),t.context).sort(([c],[p])=>Lb(p-c))[0])==null?void 0:i[0])!=null?a:null;l===null&&r.has(s)&&(l=t.context.layerOrder.components),e.push([s,l])}return e}function Ne(n,{env:t,ignoreFirst:r=!1,ignoreLast:e=!1}){var f,v,m,o,u;if(typeof n!="string"||n===""||n.includes("{{"))return n;let i="",a=n.split(/(\s+)/),s=a.filter((d,h)=>h%2===0),l=a.filter((d,h)=>h%2!==0);s[s.length-1]===""&&s.pop();let c="";r&&(c=`${(f=s.shift())!=null?f:""}${(v=l.shift())!=null?v:""}`);let p="";e&&(p=`${(m=l.pop())!=null?m:""}${(o=s.pop())!=null?o:""}`),s=Bb(s,{env:t});for(let d=0;d<s.length;d++)i+=`${s[d]}${(u=l[d])!=null?u:""}`;return c+i+p}function Bb(n,{env:t}){return(t.context.getClassOrder?t.context.getClassOrder(n):M2(n,{env:t})).sort(([,e],[,i])=>e===i?0:e===null?-1:i===null?1:Lb(e-i)).map(([e])=>e)}function ve(n,t){return{...lt.parsers[n],preprocess(r,e){let i=wb(n,e);return i.preprocess?i.preprocess(r,e):r},parse(r,e,i={}){let a=wb(n,i);a.astFormat==="svelte-ast"&&(i.printer=qb["svelte-ast"]);let s=a.parse(r,e,
|
||
|
/*!
|
||
|
* isobject <https://github.com/jonschlinkert/isobject>
|
||
|
*
|
||
|
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||
|
* Licensed under the MIT License.
|
||
|
*/
|
||
|
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
|
/**
|
||
|
* line-column - Convert efficiently index to/from line-column in a string
|
||
|
* @module lineColumn
|
||
|
* @license MIT
|
||
|
*/
|