monocart-coverage-reports 2.6.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -3
- package/lib/client/cdp-client.js +146 -0
- package/lib/client/cdp-session.js +63 -0
- package/lib/client/coverage-client.js +280 -0
- package/lib/converter/find-original-range.js +49 -27
- package/lib/generate.js +6 -0
- package/lib/index.d.ts +53 -0
- package/lib/index.js +2 -0
- package/lib/index.mjs +1 -0
- package/lib/packages/monocart-coverage-v8.js +1 -1
- package/lib/packages/monocart-coverage-vendor.js +44 -38
- package/lib/utils/request.js +6 -5
- package/lib/utils/snapshot.js +4 -0
- package/lib/v8/v8.js +2 -1
- package/package.json +83 -81
|
@@ -1,58 +1,64 @@
|
|
|
1
|
-
var
|
|
2
|
-
`+n.stack)}}function
|
|
3
|
-
`)}
|
|
4
|
-
`))]}
|
|
5
|
-
`))for(let s of th(r,e))i.push(s);return i.sort(Ku.compareRangeCovs),i}je.parseFunctionRanges=Zu;function eh(t,e){let i=[],r=0;for(let{start:s,end:n,count:a}of t){let u=e.get(s),h=e.get(n);u>r&&i.push(" ".repeat(u-r)),i.push(ih(a,h-u)),r=h}return i.join("")}function th(t,e){let i=[],r=/\[(\d+)-*\)/gs;for(;;){let s=r.exec(t);if(s===null)break;let n=s.index,a=n+s[0].length,u=parseInt(s[1],10),h=e.get(n),l=e.get(a);if(h===void 0||l===void 0)throw new Error(`Invalid offsets for: ${JSON.stringify(t)}`);i.push({startOffset:h,endOffset:l,count:u})}return i}function ih(t,e){let i=`[${t.toString(10)}`,r=")",s=e-(i.length+r.length),n="-".repeat(Math.max(0,s));return`${i}${n}${r}`}function rh(t){let e="";for(let[i,r]of t)e.length<r&&(e+=" ".repeat(r-e.length)),e+=i.toString(10);return e}function sh(t){let e=new Map,i=/\d+/gs;for(;;){let r=i.exec(t);if(r===null)break;e.set(r.index,parseInt(r[0],10))}return e}je.parseOffsets=sh});var fs=C(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});function nh(t){let e=[];for(let i of t.result)e.push(hs(i));return{result:e}}Ue.cloneProcessCov=nh;function hs(t){let e=[];for(let i of t.functions)e.push(ls(i));return{scriptId:t.scriptId,url:t.url,functions:e}}Ue.cloneScriptCov=hs;function ls(t){let e=[];for(let i of t.ranges)e.push(cs(i));return{functionName:t.functionName,ranges:e,isBlockCoverage:t.isBlockCoverage}}Ue.cloneFunctionCov=ls;function cs(t){return{startOffset:t.startOffset,endOffset:t.endOffset,count:t.count}}Ue.cloneRangeCov=cs});var Ft=C(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var gi=class t{constructor(e,i,r,s){this.start=e,this.end=i,this.delta=r,this.children=s}static fromSortedRanges(e){let i,r=[];for(let s of e){let n=new t(s.startOffset,s.endOffset,s.count,[]);if(i===void 0){i=n,r.push([n,s.count]);continue}let a,u;for(;[a,u]=r[r.length-1],!(s.startOffset<a.end);)r.pop();n.delta-=u,a.children.push(n),r.push([n,s.count])}return i}normalize(){let e=[],i,r,s=[];for(let a of this.children)r===void 0?r=a:a.delta===r.delta&&a.start===i?s.push(a):(n(),r=a),i=a.end;if(r!==void 0&&n(),e.length===1){let a=e[0];if(a.start===this.start&&a.end===this.end){this.delta+=a.delta,this.children=a.children;return}}this.children=e;function n(){if(s.length!==0){r.end=s[s.length-1].end;for(let a of s)for(let u of a.children)u.delta+=a.delta-r.delta,r.children.push(u);s.length=0}r.normalize(),e.push(r)}}split(e){let i=this.children.length,r;for(let u=0;u<this.children.length;u++){let h=this.children[u];if(h.start<e&&e<h.end){r=h.split(e),i=u+1;break}else if(h.start>=e){i=u;break}}let s=this.children.length-i,n=this.children.splice(i,s);r!==void 0&&n.unshift(r);let a=new t(e,this.end,this.delta,n);return this.end=e,a}toRanges(){let e=[],i=[[this,0]];for(;i.length>0;){let[r,s]=i.pop(),n=s+r.delta;e.push({startOffset:r.start,endOffset:r.end,count:n});for(let a=r.children.length-1;a>=0;a--)i.push([r.children[a],n])}return e}};xi.RangeTree=gi});var vs=C(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});var vi=Vt(),ah=Ft();function ps(t){t.result.sort(vi.compareScriptCovs);for(let[e,i]of t.result.entries())i.scriptId=e.toString(10)}Ae.normalizeProcessCov=ps;function oh(t){for(let e of t.result)ms(e);ps(t)}Ae.deepNormalizeProcessCov=oh;function ds(t){t.functions.sort(vi.compareFunctionCovs)}Ae.normalizeScriptCov=ds;function ms(t){for(let e of t.functions)gs(e);ds(t)}Ae.deepNormalizeScriptCov=ms;function gs(t){t.ranges.sort(vi.compareRangeCovs);let e=ah.RangeTree.fromSortedRanges(t.ranges);xs(e),t.ranges=e.toRanges()}Ae.normalizeFunctionCov=gs;function xs(t){t.normalize()}Ae.normalizeRangeTree=xs});var Ss=C(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var ut=vs(),bi=Ft();function uh(t){if(t.length===0)return{result:[]};let e=new Map;for(let s of t)for(let n of s.result){let a=e.get(n.url);a===void 0&&(a=[],e.set(n.url,a)),a.push(n)}let i=[];for(let s of e.values())i.push(Cs(s));let r={result:i};return ut.normalizeProcessCov(r),r}ht.mergeProcessCovs=uh;function Cs(t){if(t.length===0)return;if(t.length===1){let u=t[0];return ut.deepNormalizeScriptCov(u),u}let e=t[0],i=e.scriptId,r=e.url,s=new Map;for(let u of t)for(let h of u.functions){let l=hh(h),c=s.get(l);if(c===void 0||!c[0].isBlockCoverage&&h.isBlockCoverage)c=[],s.set(l,c);else if(c[0].isBlockCoverage&&!h.isBlockCoverage)continue;c.push(h)}let n=[];for(let u of s.values())n.push(_s(u));let a={scriptId:i,url:r,functions:n};return ut.normalizeScriptCov(a),a}ht.mergeScriptCovs=Cs;function hh(t){let e=t.ranges[0];return`${e.startOffset.toString(10)};${e.endOffset.toString(10)}`}function _s(t){if(t.length===0)return;if(t.length===1){let u=t[0];return ut.normalizeFunctionCov(u),u}let e=t[0].functionName,i=[];for(let u of t)i.push(bi.RangeTree.fromSortedRanges(u.ranges));let r=ws(i);ut.normalizeRangeTree(r);let s=r.toRanges(),n=!(s.length===1&&s[0].count===0);return{functionName:e,ranges:s,isBlockCoverage:n}}ht.mergeFunctionCovs=_s;function ws(t){if(t.length<=1)return t[0];let e=t[0],i=0;for(let s of t)i+=s.delta;let r=lh(t);return new bi.RangeTree(e.start,e.end,i,r)}var Dt=class{constructor(e,i){this.parentIndex=e,this.tree=i}},Ge=class{constructor(e,i){this.offset=e,this.trees=i}static compare(e,i){return e.offset-i.offset}},yi=class t{constructor(e){this.queue=e,this.nextIndex=0,this.pendingOffset=0,this.pendingTrees=void 0}static fromParentTrees(e){let i=new Map;for(let[s,n]of e.entries())for(let a of n.children){let u=i.get(a.start);u===void 0&&(u=[],i.set(a.start,u)),u.push(new Dt(s,a))}let r=[];for(let[s,n]of i)r.push(new Ge(s,n));return r.sort(Ge.compare),new t(r)}setPendingOffset(e){this.pendingOffset=e}pushPendingTree(e){this.pendingTrees===void 0&&(this.pendingTrees=[]),this.pendingTrees.push(e)}next(){let e=this.pendingTrees,i=this.queue[this.nextIndex];if(e===void 0)return this.nextIndex++,i;if(i===void 0)return this.pendingTrees=void 0,new Ge(this.pendingOffset,e);if(this.pendingOffset<i.offset)return this.pendingTrees=void 0,new Ge(this.pendingOffset,e);if(this.pendingOffset===i.offset){this.pendingTrees=void 0;for(let r of e)i.trees.push(r)}return this.nextIndex++,i}};function lh(t){let e=[],i=yi.fromParentTrees(t),r=new Map,s;for(;;){let n=i.next();if(n===void 0)break;if(s!==void 0&&s.end<=n.offset&&(e.push(bs(s,r)),s=void 0),s===void 0){let a=n.offset+1;for(let{parentIndex:u,tree:h}of n.trees)a=Math.max(a,h.end),ys(r,u,h);i.setPendingOffset(a),s={start:n.offset,end:a}}else for(let{parentIndex:a,tree:u}of n.trees){if(u.end>s.end){let h=u.split(s.end);i.pushPendingTree(new Dt(a,h))}ys(r,a,u)}}return s!==void 0&&e.push(bs(s,r)),e}function ys(t,e,i){let r=t.get(e);r===void 0&&(r=[],t.set(e,r)),r.push(i)}function bs(t,e){let i=[];for(let r of e.values())r.length===1&&r[0].start===t.start&&r[0].end===t.end?i.push(r[0]):i.push(new bi.RangeTree(t.start,t.end,0,r));return e.clear(),ws(i)}});var Es=C(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var Bt=us();j.emitForest=Bt.emitForest;j.emitForestLines=Bt.emitForestLines;j.parseFunctionRanges=Bt.parseFunctionRanges;j.parseOffsets=Bt.parseOffsets;var qt=fs();j.cloneFunctionCov=qt.cloneFunctionCov;j.cloneProcessCov=qt.cloneProcessCov;j.cloneScriptCov=qt.cloneScriptCov;j.cloneRangeCov=qt.cloneRangeCov;var Ci=Vt();j.compareScriptCovs=Ci.compareScriptCovs;j.compareFunctionCovs=Ci.compareFunctionCovs;j.compareRangeCovs=Ci.compareRangeCovs;var _i=Ss();j.mergeFunctionCovs=_i.mergeFunctionCovs;j.mergeProcessCovs=_i.mergeProcessCovs;j.mergeScriptCovs=_i.mergeScriptCovs;var ch=Ft();j.RangeTree=ch.RangeTree});var qi=C((dp,Bi)=>{"use strict";Bi.exports.isClean=Symbol("isClean");Bi.exports.my=Symbol("my")});var Ui=C((mp,ji)=>{var nl=require("tty"),al=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||nl.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),T=(t,e,i=t)=>r=>{let s=""+r,n=s.indexOf(e,t.length);return~n?t+mn(s,e,i,n)+e:t+s+e},mn=(t,e,i,r)=>{let s=t.substring(0,r)+i,n=t.substring(r+e.length),a=n.indexOf(e);return~a?s+mn(n,e,i,a):s+n},gn=(t=al)=>({isColorSupported:t,reset:t?e=>`\x1B[0m${e}\x1B[0m`:String,bold:t?T("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:t?T("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:t?T("\x1B[3m","\x1B[23m"):String,underline:t?T("\x1B[4m","\x1B[24m"):String,inverse:t?T("\x1B[7m","\x1B[27m"):String,hidden:t?T("\x1B[8m","\x1B[28m"):String,strikethrough:t?T("\x1B[9m","\x1B[29m"):String,black:t?T("\x1B[30m","\x1B[39m"):String,red:t?T("\x1B[31m","\x1B[39m"):String,green:t?T("\x1B[32m","\x1B[39m"):String,yellow:t?T("\x1B[33m","\x1B[39m"):String,blue:t?T("\x1B[34m","\x1B[39m"):String,magenta:t?T("\x1B[35m","\x1B[39m"):String,cyan:t?T("\x1B[36m","\x1B[39m"):String,white:t?T("\x1B[37m","\x1B[39m"):String,gray:t?T("\x1B[90m","\x1B[39m"):String,bgBlack:t?T("\x1B[40m","\x1B[49m"):String,bgRed:t?T("\x1B[41m","\x1B[49m"):String,bgGreen:t?T("\x1B[42m","\x1B[49m"):String,bgYellow:t?T("\x1B[43m","\x1B[49m"):String,bgBlue:t?T("\x1B[44m","\x1B[49m"):String,bgMagenta:t?T("\x1B[45m","\x1B[49m"):String,bgCyan:t?T("\x1B[46m","\x1B[49m"):String,bgWhite:t?T("\x1B[47m","\x1B[49m"):String});ji.exports=gn();ji.exports.createColors=gn});var Gi=C((gp,vn)=>{"use strict";var Yt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ol=/.[\r\n"'(/\\]/,xn=/[\da-f]/i;vn.exports=function(e,i={}){let r=e.css.valueOf(),s=i.ignoreErrors,n,a,u,h,l,c,p,f,d,m,x=r.length,v=0,S=[],F=[];function Y(){return v}function W(be){throw e.error("Unclosed "+be,v)}function z(){return F.length===0&&v>=x}function B(be){if(F.length)return F.pop();if(v>=x)return;let ce=be?be.ignoreUnclosed:!1;switch(n=r.charCodeAt(v),n){case 10:case 32:case 9:case 13:case 12:{a=v;do a+=1,n=r.charCodeAt(a);while(n===32||n===10||n===9||n===13||n===12);m=["space",r.slice(v,a)],v=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Lt=String.fromCharCode(n);m=[Lt,Lt,v];break}case 40:{if(f=S.length?S.pop()[1]:"",d=r.charCodeAt(v+1),f==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=v;do{if(c=!1,a=r.indexOf(")",a+1),a===-1)if(s||ce){a=v;break}else W("bracket");for(p=a;r.charCodeAt(p-1)===92;)p-=1,c=!c}while(c);m=["brackets",r.slice(v,a+1),v,a],v=a}else a=r.indexOf(")",v+1),h=r.slice(v,a+1),a===-1||ol.test(h)?m=["(","(",v]:(m=["brackets",h,v,a],v=a);break}case 39:case 34:{u=n===39?"'":'"',a=v;do{if(c=!1,a=r.indexOf(u,a+1),a===-1)if(s||ce){a=v+1;break}else W("string");for(p=a;r.charCodeAt(p-1)===92;)p-=1,c=!c}while(c);m=["string",r.slice(v,a+1),v,a],v=a;break}case 64:{Yt.lastIndex=v+1,Yt.test(r),Yt.lastIndex===0?a=r.length-1:a=Yt.lastIndex-2,m=["at-word",r.slice(v,a+1),v,a],v=a;break}case 92:{for(a=v,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(a+=1,xn.test(r.charAt(a)))){for(;xn.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}m=["word",r.slice(v,a+1),v,a],v=a;break}default:{n===47&&r.charCodeAt(v+1)===42?(a=r.indexOf("*/",v+2)+1,a===0&&(s||ce?a=r.length:W("comment")),m=["comment",r.slice(v,a+1),v,a],v=a):(Xt.lastIndex=v+1,Xt.test(r),Xt.lastIndex===0?a=r.length-1:a=Xt.lastIndex-2,m=["word",r.slice(v,a+1),v,a],S.push(m),v=a);break}}return v++,m}function Pt(be){F.push(be)}return{back:Pt,endOfFile:z,nextToken:B,position:Y}}});var Hi=C((xp,Cn)=>{"use strict";var J=Ui(),ul=Gi(),yn;function hl(t){yn=t}var ll={";":J.yellow,":":J.yellow,"(":J.cyan,")":J.cyan,"[":J.yellow,"]":J.yellow,"{":J.yellow,"}":J.yellow,"at-word":J.cyan,brackets:J.cyan,call:J.cyan,class:J.yellow,comment:J.gray,hash:J.magenta,string:J.green};function cl([t,e],i){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!i.endOfFile()){let r=i.nextToken();if(i.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return t}function bn(t){let e=ul(new yn(t),{ignoreErrors:!0}),i="";for(;!e.endOfFile();){let r=e.nextToken(),s=ll[cl(r,e)];s?i+=r[1].split(/\r?\n/).map(n=>s(n)).join(`
|
|
6
|
-
`):i+=r[1]}return i}
|
|
7
|
-
`+d+
|
|
1
|
+
var Ul=Object.create;var oi=Object.defineProperty;var ql=Object.getOwnPropertyDescriptor;var jl=Object.getOwnPropertyNames;var Gl=Object.getPrototypeOf,Wl=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ui=(t,e)=>{for(var i in e)oi(t,i,{get:e[i],enumerable:!0})},un=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of jl(e))!Wl.call(t,s)&&s!==i&&oi(t,s,{get:()=>e[s],enumerable:!(r=ql(e,s))||r.enumerable});return t};var J=(t,e,i)=>(i=t!=null?Ul(Gl(t)):{},un(e||!t||!t.__esModule?oi(i,"default",{value:t,enumerable:!0}):i,t)),$l=t=>un(oi({},"__esModule",{value:!0}),t);var ln=v(B=>{"use strict";Object.defineProperty(B,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}});Object.defineProperty(B,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var hi;typeof Buffer<"u"?typeof Buffer.from=="function"?hi=Hl:hi=zl:hi=Ql;function Hl(t){return Buffer.from(t,"base64").toString()}function zl(t){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(t,"base64").toString()}function Ql(t){return decodeURIComponent(escape(atob(t)))}function Kl(t){return t.split(",").pop()}function Yl(t,e){var i=B.mapFileCommentRegex.exec(t),r=i[1]||i[2];try{var t=e(r);return t!=null&&typeof t.catch=="function"?t.catch(s):t}catch(n){s(n)}function s(n){throw new Error("An error occurred while trying to read the map file at "+r+`
|
|
2
|
+
`+n.stack)}}function K(t,e){e=e||{},e.hasComment&&(t=Kl(t)),e.encoding==="base64"?t=hi(t):e.encoding==="uri"&&(t=decodeURIComponent(t)),(e.isJSON||e.encoding)&&(t=JSON.parse(t)),this.sourcemap=t}K.prototype.toJSON=function(t){return JSON.stringify(this.sourcemap,null,t)};typeof Buffer<"u"?typeof Buffer.from=="function"?K.prototype.toBase64=Jl:K.prototype.toBase64=Xl:K.prototype.toBase64=Zl;function Jl(){var t=this.toJSON();return Buffer.from(t,"utf8").toString("base64")}function Xl(){var t=this.toJSON();if(typeof t=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(t,"utf8").toString("base64")}function Zl(){var t=this.toJSON();return btoa(unescape(encodeURIComponent(t)))}K.prototype.toURI=function(){var t=this.toJSON();return encodeURIComponent(t)};K.prototype.toComment=function(t){var e,i,r;return t!=null&&t.encoding==="uri"?(e="",i=this.toURI()):(e=";base64",i=this.toBase64()),r="sourceMappingURL=data:application/json;charset=utf-8"+e+","+i,t!=null&&t.multiline?"/*# "+r+" */":"//# "+r};K.prototype.toObject=function(){return JSON.parse(this.toJSON())};K.prototype.addProperty=function(t,e){if(this.sourcemap.hasOwnProperty(t))throw new Error('property "'+t+'" already exists on the sourcemap, use set property instead');return this.setProperty(t,e)};K.prototype.setProperty=function(t,e){return this.sourcemap[t]=e,this};K.prototype.getProperty=function(t){return this.sourcemap[t]};B.fromObject=function(t){return new K(t)};B.fromJSON=function(t){return new K(t,{isJSON:!0})};B.fromURI=function(t){return new K(t,{encoding:"uri"})};B.fromBase64=function(t){return new K(t,{encoding:"base64"})};B.fromComment=function(t){var e,i;return t=t.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),e=B.commentRegex.exec(t),i=e&&e[4]||"uri",new K(t,{encoding:i,hasComment:!0})};function hn(t){return new K(t,{isJSON:!0})}B.fromMapFileComment=function(t,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var i=Yl(t,e);return i!=null&&typeof i.then=="function"?i.then(hn):hn(i)};B.fromSource=function(t){var e=t.match(B.commentRegex);return e?B.fromComment(e.pop()):null};B.fromMapFileSource=function(t,e){if(typeof e=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var i=t.match(B.mapFileCommentRegex);return i?B.fromMapFileComment(i.pop(),e):null};B.removeComments=function(t){return t.replace(B.commentRegex,"")};B.removeMapFileComments=function(t){return t.replace(B.mapFileCommentRegex,"")};B.generateMapFileComment=function(t,e){var i="sourceMappingURL="+t;return e&&e.multiline?"/*# "+i+" */":"//# "+i}});var li=v(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});function sc(t,e){return t.url===e.url?0:t.url<e.url?-1:1}kt.compareScriptCovs=sc;function nc(t,e){return mn(t.ranges[0],e.ranges[0])}kt.compareFunctionCovs=nc;function mn(t,e){return t.startOffset!==e.startOffset?t.startOffset-e.startOffset:e.endOffset-t.endOffset}kt.compareRangeCovs=mn});var xn=v(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});var ac=li();function oc(t){return gn(t).join(`
|
|
3
|
+
`)}rt.emitForest=oc;function gn(t){let e=uc(t);return[dc(e),...t.map(r=>hc(r,e).join(`
|
|
4
|
+
`))]}rt.emitForestLines=gn;function uc(t){let e=new Set;for(let a of t){let o=[a];for(;o.length>0;){let h=o.pop();e.add(h.start),e.add(h.end);for(let l of h.children)o.push(l)}}let i=[...e];i.sort((a,o)=>a-o);let r=1;for(let a of i)r=Math.max(r,a.toString(10).length);let s=r+3,n=new Map;for(let[a,o]of i.entries())n.set(o,a*s);return n}function hc(t,e){let i=[],r=[t];for(;r.length>0;){let s=r;i.push(s),r=[];for(let n of s)for(let a of n.children)r.push(a)}return i.map(s=>cc(s,e))}function lc(t,e){let i=[];for(let r of t.split(`
|
|
5
|
+
`))for(let s of fc(r,e))i.push(s);return i.sort(ac.compareRangeCovs),i}rt.parseFunctionRanges=lc;function cc(t,e){let i=[],r=0;for(let{start:s,end:n,count:a}of t){let o=e.get(s),h=e.get(n);o>r&&i.push(" ".repeat(o-r)),i.push(pc(a,h-o)),r=h}return i.join("")}function fc(t,e){let i=[],r=/\[(\d+)-*\)/gs;for(;;){let s=r.exec(t);if(s===null)break;let n=s.index,a=n+s[0].length,o=parseInt(s[1],10),h=e.get(n),l=e.get(a);if(h===void 0||l===void 0)throw new Error(`Invalid offsets for: ${JSON.stringify(t)}`);i.push({startOffset:h,endOffset:l,count:o})}return i}function pc(t,e){let i=`[${t.toString(10)}`,r=")",s=e-(i.length+r.length),n="-".repeat(Math.max(0,s));return`${i}${n}${r}`}function dc(t){let e="";for(let[i,r]of t)e.length<r&&(e+=" ".repeat(r-e.length)),e+=i.toString(10);return e}function mc(t){let e=new Map,i=/\d+/gs;for(;;){let r=i.exec(t);if(r===null)break;e.set(r.index,parseInt(r[0],10))}return e}rt.parseOffsets=mc});var bn=v(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});function gc(t){let e=[];for(let i of t.result)e.push(yn(i));return{result:e}}st.cloneProcessCov=gc;function yn(t){let e=[];for(let i of t.functions)e.push(vn(i));return{scriptId:t.scriptId,url:t.url,functions:e}}st.cloneScriptCov=yn;function vn(t){let e=[];for(let i of t.ranges)e.push(_n(i));return{functionName:t.functionName,ranges:e,isBlockCoverage:t.isBlockCoverage}}st.cloneFunctionCov=vn;function _n(t){return{startOffset:t.startOffset,endOffset:t.endOffset,count:t.count}}st.cloneRangeCov=_n});var ci=v(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var rr=class t{constructor(e,i,r,s){this.start=e,this.end=i,this.delta=r,this.children=s}static fromSortedRanges(e){let i,r=[];for(let s of e){let n=new t(s.startOffset,s.endOffset,s.count,[]);if(i===void 0){i=n,r.push([n,s.count]);continue}let a,o;for(;[a,o]=r[r.length-1],!(s.startOffset<a.end);)r.pop();n.delta-=o,a.children.push(n),r.push([n,s.count])}return i}normalize(){let e=[],i,r,s=[];for(let a of this.children)r===void 0?r=a:a.delta===r.delta&&a.start===i?s.push(a):(n(),r=a),i=a.end;if(r!==void 0&&n(),e.length===1){let a=e[0];if(a.start===this.start&&a.end===this.end){this.delta+=a.delta,this.children=a.children;return}}this.children=e;function n(){if(s.length!==0){r.end=s[s.length-1].end;for(let a of s)for(let o of a.children)o.delta+=a.delta-r.delta,r.children.push(o);s.length=0}r.normalize(),e.push(r)}}split(e){let i=this.children.length,r;for(let o=0;o<this.children.length;o++){let h=this.children[o];if(h.start<e&&e<h.end){r=h.split(e),i=o+1;break}else if(h.start>=e){i=o;break}}let s=this.children.length-i,n=this.children.splice(i,s);r!==void 0&&n.unshift(r);let a=new t(e,this.end,this.delta,n);return this.end=e,a}toRanges(){let e=[],i=[[this,0]];for(;i.length>0;){let[r,s]=i.pop(),n=s+r.delta;e.push({startOffset:r.start,endOffset:r.end,count:n});for(let a=r.children.length-1;a>=0;a--)i.push([r.children[a],n])}return e}};sr.RangeTree=rr});var An=v(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var nr=li(),xc=ci();function Sn(t){t.result.sort(nr.compareScriptCovs);for(let[e,i]of t.result.entries())i.scriptId=e.toString(10)}Fe.normalizeProcessCov=Sn;function yc(t){for(let e of t.result)Cn(e);Sn(t)}Fe.deepNormalizeProcessCov=yc;function wn(t){t.functions.sort(nr.compareFunctionCovs)}Fe.normalizeScriptCov=wn;function Cn(t){for(let e of t.functions)En(e);wn(t)}Fe.deepNormalizeScriptCov=Cn;function En(t){t.ranges.sort(nr.compareRangeCovs);let e=xc.RangeTree.fromSortedRanges(t.ranges);kn(e),t.ranges=e.toRanges()}Fe.normalizeFunctionCov=En;function kn(t){t.normalize()}Fe.normalizeRangeTree=kn});var Tn=v(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});var At=An(),or=ci();function vc(t){if(t.length===0)return{result:[]};let e=new Map;for(let s of t)for(let n of s.result){let a=e.get(n.url);a===void 0&&(a=[],e.set(n.url,a)),a.push(n)}let i=[];for(let s of e.values())i.push(In(s));let r={result:i};return At.normalizeProcessCov(r),r}Ot.mergeProcessCovs=vc;function In(t){if(t.length===0)return;if(t.length===1){let o=t[0];return At.deepNormalizeScriptCov(o),o}let e=t[0],i=e.scriptId,r=e.url,s=new Map;for(let o of t)for(let h of o.functions){let l=_c(h),c=s.get(l);if(c===void 0||!c[0].isBlockCoverage&&h.isBlockCoverage)c=[],s.set(l,c);else if(c[0].isBlockCoverage&&!h.isBlockCoverage)continue;c.push(h)}let n=[];for(let o of s.values())n.push(Ln(o));let a={scriptId:i,url:r,functions:n};return At.normalizeScriptCov(a),a}Ot.mergeScriptCovs=In;function _c(t){let e=t.ranges[0];return`${e.startOffset.toString(10)};${e.endOffset.toString(10)}`}function Ln(t){if(t.length===0)return;if(t.length===1){let o=t[0];return At.normalizeFunctionCov(o),o}let e=t[0].functionName,i=[];for(let o of t)i.push(or.RangeTree.fromSortedRanges(o.ranges));let r=Pn(i);At.normalizeRangeTree(r);let s=r.toRanges(),n=!(s.length===1&&s[0].count===0);return{functionName:e,ranges:s,isBlockCoverage:n}}Ot.mergeFunctionCovs=Ln;function Pn(t){if(t.length<=1)return t[0];let e=t[0],i=0;for(let s of t)i+=s.delta;let r=bc(t);return new or.RangeTree(e.start,e.end,i,r)}var fi=class{constructor(e,i){this.parentIndex=e,this.tree=i}},nt=class{constructor(e,i){this.offset=e,this.trees=i}static compare(e,i){return e.offset-i.offset}},ar=class t{constructor(e){this.queue=e,this.nextIndex=0,this.pendingOffset=0,this.pendingTrees=void 0}static fromParentTrees(e){let i=new Map;for(let[s,n]of e.entries())for(let a of n.children){let o=i.get(a.start);o===void 0&&(o=[],i.set(a.start,o)),o.push(new fi(s,a))}let r=[];for(let[s,n]of i)r.push(new nt(s,n));return r.sort(nt.compare),new t(r)}setPendingOffset(e){this.pendingOffset=e}pushPendingTree(e){this.pendingTrees===void 0&&(this.pendingTrees=[]),this.pendingTrees.push(e)}next(){let e=this.pendingTrees,i=this.queue[this.nextIndex];if(e===void 0)return this.nextIndex++,i;if(i===void 0)return this.pendingTrees=void 0,new nt(this.pendingOffset,e);if(this.pendingOffset<i.offset)return this.pendingTrees=void 0,new nt(this.pendingOffset,e);if(this.pendingOffset===i.offset){this.pendingTrees=void 0;for(let r of e)i.trees.push(r)}return this.nextIndex++,i}};function bc(t){let e=[],i=ar.fromParentTrees(t),r=new Map,s;for(;;){let n=i.next();if(n===void 0)break;if(s!==void 0&&s.end<=n.offset&&(e.push(Nn(s,r)),s=void 0),s===void 0){let a=n.offset+1;for(let{parentIndex:o,tree:h}of n.trees)a=Math.max(a,h.end),On(r,o,h);i.setPendingOffset(a),s={start:n.offset,end:a}}else for(let{parentIndex:a,tree:o}of n.trees){if(o.end>s.end){let h=o.split(s.end);i.pushPendingTree(new fi(a,h))}On(r,a,o)}}return s!==void 0&&e.push(Nn(s,r)),e}function On(t,e,i){let r=t.get(e);r===void 0&&(r=[],t.set(e,r)),r.push(i)}function Nn(t,e){let i=[];for(let r of e.values())r.length===1&&r[0].start===t.start&&r[0].end===t.end?i.push(r[0]):i.push(new or.RangeTree(t.start,t.end,0,r));return e.clear(),Pn(i)}});var Rn=v($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});var pi=xn();$.emitForest=pi.emitForest;$.emitForestLines=pi.emitForestLines;$.parseFunctionRanges=pi.parseFunctionRanges;$.parseOffsets=pi.parseOffsets;var di=bn();$.cloneFunctionCov=di.cloneFunctionCov;$.cloneProcessCov=di.cloneProcessCov;$.cloneScriptCov=di.cloneScriptCov;$.cloneRangeCov=di.cloneRangeCov;var ur=li();$.compareScriptCovs=ur.compareScriptCovs;$.compareFunctionCovs=ur.compareFunctionCovs;$.compareRangeCovs=ur.compareRangeCovs;var hr=Tn();$.mergeFunctionCovs=hr.mergeFunctionCovs;$.mergeProcessCovs=hr.mergeProcessCovs;$.mergeScriptCovs=hr.mergeScriptCovs;var Sc=ci();$.RangeTree=Sc.RangeTree});var Ar=v((jg,kr)=>{"use strict";kr.exports.isClean=Symbol("isClean");kr.exports.my=Symbol("my")});var Nr=v((Gg,Or)=>{var xf=require("tty"),yf=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||xf.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),M=(t,e,i=t)=>r=>{let s=""+r,n=s.indexOf(e,t.length);return~n?t+wa(s,e,i,n)+e:t+s+e},wa=(t,e,i,r)=>{let s=t.substring(0,r)+i,n=t.substring(r+e.length),a=n.indexOf(e);return~a?s+wa(n,e,i,a):s+n},Ca=(t=yf)=>({isColorSupported:t,reset:t?e=>`\x1B[0m${e}\x1B[0m`:String,bold:t?M("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:t?M("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:t?M("\x1B[3m","\x1B[23m"):String,underline:t?M("\x1B[4m","\x1B[24m"):String,inverse:t?M("\x1B[7m","\x1B[27m"):String,hidden:t?M("\x1B[8m","\x1B[28m"):String,strikethrough:t?M("\x1B[9m","\x1B[29m"):String,black:t?M("\x1B[30m","\x1B[39m"):String,red:t?M("\x1B[31m","\x1B[39m"):String,green:t?M("\x1B[32m","\x1B[39m"):String,yellow:t?M("\x1B[33m","\x1B[39m"):String,blue:t?M("\x1B[34m","\x1B[39m"):String,magenta:t?M("\x1B[35m","\x1B[39m"):String,cyan:t?M("\x1B[36m","\x1B[39m"):String,white:t?M("\x1B[37m","\x1B[39m"):String,gray:t?M("\x1B[90m","\x1B[39m"):String,bgBlack:t?M("\x1B[40m","\x1B[49m"):String,bgRed:t?M("\x1B[41m","\x1B[49m"):String,bgGreen:t?M("\x1B[42m","\x1B[49m"):String,bgYellow:t?M("\x1B[43m","\x1B[49m"):String,bgBlue:t?M("\x1B[44m","\x1B[49m"):String,bgMagenta:t?M("\x1B[45m","\x1B[49m"):String,bgCyan:t?M("\x1B[46m","\x1B[49m"):String,bgWhite:t?M("\x1B[47m","\x1B[49m"):String});Or.exports=Ca();Or.exports.createColors=Ca});var Ir=v((Wg,ka)=>{"use strict";var Ei=/[\t\n\f\r "#'()/;[\\\]{}]/g,ki=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,vf=/.[\r\n"'(/\\]/,Ea=/[\da-f]/i;ka.exports=function(e,i={}){let r=e.css.valueOf(),s=i.ignoreErrors,n,a,o,h,l,c,f,p,d,m,g=r.length,y=0,C=[],L=[];function q(){return y}function T(ie){throw e.error("Unclosed "+ie,y)}function G(){return L.length===0&&y>=g}function F(ie){if(L.length)return L.pop();if(y>=g)return;let re=ie?ie.ignoreUnclosed:!1;switch(n=r.charCodeAt(y),n){case 10:case 32:case 9:case 13:case 12:{a=y;do a+=1,n=r.charCodeAt(a);while(n===32||n===10||n===9||n===13||n===12);m=["space",r.slice(y,a)],y=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let ai=String.fromCharCode(n);m=[ai,ai,y];break}case 40:{if(p=C.length?C.pop()[1]:"",d=r.charCodeAt(y+1),p==="url"&&d!==39&&d!==34&&d!==32&&d!==10&&d!==9&&d!==12&&d!==13){a=y;do{if(c=!1,a=r.indexOf(")",a+1),a===-1)if(s||re){a=y;break}else T("bracket");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["brackets",r.slice(y,a+1),y,a],y=a}else a=r.indexOf(")",y+1),h=r.slice(y,a+1),a===-1||vf.test(h)?m=["(","(",y]:(m=["brackets",h,y,a],y=a);break}case 39:case 34:{o=n===39?"'":'"',a=y;do{if(c=!1,a=r.indexOf(o,a+1),a===-1)if(s||re){a=y+1;break}else T("string");for(f=a;r.charCodeAt(f-1)===92;)f-=1,c=!c}while(c);m=["string",r.slice(y,a+1),y,a],y=a;break}case 64:{Ei.lastIndex=y+1,Ei.test(r),Ei.lastIndex===0?a=r.length-1:a=Ei.lastIndex-2,m=["at-word",r.slice(y,a+1),y,a],y=a;break}case 92:{for(a=y,l=!0;r.charCodeAt(a+1)===92;)a+=1,l=!l;if(n=r.charCodeAt(a+1),l&&n!==47&&n!==32&&n!==10&&n!==9&&n!==13&&n!==12&&(a+=1,Ea.test(r.charAt(a)))){for(;Ea.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}m=["word",r.slice(y,a+1),y,a],y=a;break}default:{n===47&&r.charCodeAt(y+1)===42?(a=r.indexOf("*/",y+2)+1,a===0&&(s||re?a=r.length:T("comment")),m=["comment",r.slice(y,a+1),y,a],y=a):(ki.lastIndex=y+1,ki.test(r),ki.lastIndex===0?a=r.length-1:a=ki.lastIndex-2,m=["word",r.slice(y,a+1),y,a],C.push(m),y=a);break}}return y++,m}function He(ie){L.push(ie)}return{back:He,endOfFile:G,nextToken:F,position:q}}});var Lr=v(($g,Na)=>{"use strict";var ee=Nr(),_f=Ir(),Aa;function bf(t){Aa=t}var Sf={";":ee.yellow,":":ee.yellow,"(":ee.cyan,")":ee.cyan,"[":ee.yellow,"]":ee.yellow,"{":ee.yellow,"}":ee.yellow,"at-word":ee.cyan,brackets:ee.cyan,call:ee.cyan,class:ee.yellow,comment:ee.gray,hash:ee.magenta,string:ee.green};function wf([t,e],i){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!i.endOfFile()){let r=i.nextToken();if(i.back(r),r[0]==="brackets"||r[0]==="(")return"call"}return t}function Oa(t){let e=_f(new Aa(t),{ignoreErrors:!0}),i="";for(;!e.endOfFile();){let r=e.nextToken(),s=Sf[wf(r,e)];s?i+=r[1].split(/\r?\n/).map(n=>s(n)).join(`
|
|
6
|
+
`):i+=r[1]}return i}Oa.registerInput=bf;Na.exports=Oa});var Pr=v((Hg,Pa)=>{"use strict";var Ia=Nr(),La=Lr(),Mt=class t extends Error{constructor(e,i,r,s,n,a){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),a&&(this.plugin=a),typeof i<"u"&&typeof r<"u"&&(typeof i=="number"?(this.line=i,this.column=r):(this.line=i.line,this.column=i.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}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(e){if(!this.source)return"";let i=this.source;e==null&&(e=Ia.isColorSupported),La&&e&&(i=La(i));let r=i.split(/\r?\n/),s=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),a=String(n).length,o,h;if(e){let{bold:l,gray:c,red:f}=Ia.createColors(!0);o=p=>l(f(p)),h=p=>c(p)}else o=h=l=>l;return r.slice(s,n).map((l,c)=>{let f=s+1+c,p=" "+(" "+f).slice(-a)+" | ";if(f===this.line){let d=h(p.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+h(p)+l+`
|
|
7
|
+
`+d+o("^")}return" "+h(p)+l}).join(`
|
|
8
8
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
9
9
|
|
|
10
10
|
`+e+`
|
|
11
|
-
`),this.name+": "+this.message+e}};
|
|
11
|
+
`),this.name+": "+this.message+e}};Pa.exports=Mt;Mt.default=Mt});var Tr=v((zg,Ra)=>{"use strict";var Ta={after:`
|
|
12
12
|
`,beforeClose:`
|
|
13
13
|
`,beforeComment:`
|
|
14
14
|
`,beforeDecl:`
|
|
15
15
|
`,beforeOpen:" ",beforeRule:`
|
|
16
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
17
|
-
`)){let a=this.raw(e,null,"indent");if(a.length)for(let
|
|
16
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Cf(t){return t[0].toUpperCase()+t.slice(1)}var Ft=class{constructor(e){this.builder=e}atrule(e,i){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(i?";":"");this.builder(r+s+n,e)}}beforeAfter(e,i){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):i==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
|
|
17
|
+
`)){let a=this.raw(e,null,"indent");if(a.length)for(let o=0;o<n;o++)r+=a}return r}block(e,i){let r=this.raw(e,"between","beforeOpen");this.builder(i+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let i=e.nodes.length-1;for(;i>0&&e.nodes[i].type==="comment";)i-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],a=this.raw(n,"before");a&&this.builder(a),this.stringify(n,i!==s||r)}}comment(e){let i=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+i+e.text+r+"*/",e)}decl(e,i){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),i&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,i,r){let s;if(r||(r=i),i&&(s=e.raws[i],typeof s<"u"))return s;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return Ta[r];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[r]<"u")return a.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let o="raw"+Cf(r);this[o]?s=this[o](a,e):a.walk(h=>{if(s=h.raws[i],typeof s<"u")return!1})}return typeof s>"u"&&(s=Ta[r]),a.rawCache[r]=s,s}rawBeforeClose(e){let i;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return i=r.raws.after,i.includes(`
|
|
18
18
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawBeforeComment(e,i){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
19
19
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(i,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,i){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
|
|
20
20
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(i,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let i;return e.walk(r=>{if(r.type!=="decl"&&(i=r.raws.between,typeof i<"u"))return!1}),i}rawBeforeRule(e){let i;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
|
|
21
21
|
`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i}rawColon(e){let i;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return i=r.raws.between.replace(/[^\s:]/g,""),!1}),i}rawEmptyBody(e){let i;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(i=r.raws.after,typeof i<"u"))return!1}),i}rawIndent(e){if(e.raws.indent)return e.raws.indent;let i;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
|
|
22
|
-
`);return i=n[n.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(e){let i;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(i=r.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(e,i){let r=e[i],s=e.raws[i];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,i){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,i)}};
|
|
23
|
-
`?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let i={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);n!==-1&&(i=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?i={column:e.start.column,line:e.start.line}:e.index&&(i=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line}),{end:r,start:i}}raw(e,i){return new
|
|
24
|
-
`," "];return _t.split(t,e)},split(t,e,i){let r=[],s="",n=!1,a=0,u=!1,h="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:u?c===h&&(u=!1):c==='"'||c==="'"?(u=!0,h=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(i||s!=="")&&r.push(s.trim()),r}};Kn.exports=_t;_t.default=_t});var Zn=C((Op,Xn)=>{"use strict";var Yn=Ct(),Cl=Jn(),Je=class extends Yn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Cl.comma(this.selector)}set selectors(e){let i=this.selector?this.selector.match(/,\s*/):null,r=i?i[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Xn.exports=Je;Je.default=Je;Yn.registerRule(Je)});var ra=C((Ip,ia)=>{"use strict";var _l=Ki(),wl=Gi(),Sl=Ji(),El=Gn(),kl=Qn(),ea=Zn(),ta={empty:!0,space:!0};function Al(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}var Zi=class{constructor(e){this.input=e,this.root=new kl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new El;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let r,s,n,a=!1,u=!1,h=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(h.length>0){for(n=h.length-1,s=h[n];s&&s[0]==="space";)s=h[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(e);break}else h.push(e);else h.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(i.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(i,"params",h),a&&(e=h[h.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),u&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let r=0,s;for(let n=i-1;n>=0&&(s=e[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let i=0,r,s,n;for(let[a,u]of e.entries()){if(r=u,s=r[0],s==="("&&(i+=1),s===")"&&(i-=1),i===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=r}return!1}comment(e){let i=new Sl;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))i.text="",i.raws.left=r,i.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);i.text=s[2],i.raws.left=s[1],i.raws.right=s[3]}}createTokenizer(){this.tokenizer=wl(this.input)}decl(e,i){let r=new _l;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Al(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(n=e[l],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let f=l;f>0;f--){let d=c[f][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=c.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),i),r.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new ea;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,r=null,s=!1,n=null,a=[],u=e[1].startsWith("--"),h=[],l=e;for(;l;){if(r=l[0],h.push(l),r==="("||r==="[")n||(n=l),a.push(r==="("?")":"]");else if(u&&s&&r==="{")n||(n=l),a.push("}");else if(a.length===0)if(r===";")if(s){this.decl(h,u);return}else break;else if(r==="{"){this.rule(h);return}else if(r==="}"){this.tokenizer.back(h.pop()),i=!0;break}else r===":"&&(s=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(n),i&&s){if(!u)for(;h.length&&(l=h[h.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(h.pop());this.decl(h,u)}else this.unknownWord(h)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,r,s){let n,a,u=r.length,h="",l=!0,c,p;for(let f=0;f<u;f+=1)n=r[f],a=n[0],a==="space"&&f===u-1&&!s?l=!1:a==="comment"?(p=r[f-1]?r[f-1][0]:"empty",c=r[f+1]?r[f+1][0]:"empty",!ta[p]&&!ta[c]?h.slice(-1)===","?l=!1:h+=n[1]:l=!1):h+=n[1];if(!l){let f=r.reduce((d,m)=>d+m[1],"");e.raws[i]={raw:f,value:h}}e[i]=h}rule(e){e.pop();let i=new ea;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let i,r="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],i==="space");)r=e.pop()[1]+r;return r}stringFrom(e,i){let r="";for(let s=i;s<e.length;s++)r+=e[s][1];return e.splice(i,e.length-i),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};ia.exports=Zi});var na=C(er=>{var sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");er.encode=function(t){if(0<=t&&t<sa.length)return sa[t];throw new TypeError("Must be between 0 and 63: "+t)};er.decode=function(t){var e=65,i=90,r=97,s=122,n=48,a=57,u=43,h=47,l=26,c=52;return e<=t&&t<=i?t-e:r<=t&&t<=s?t-r+l:n<=t&&t<=a?t-n+c:t==u?62:t==h?63:-1}});var rr=C(ir=>{var aa=na(),tr=5,oa=1<<tr,ua=oa-1,ha=oa;function Ol(t){return t<0?(-t<<1)+1:(t<<1)+0}function Il(t){var e=(t&1)===1,i=t>>1;return e?-i:i}ir.encode=function(e){var i="",r,s=Ol(e);do r=s&ua,s>>>=tr,s>0&&(r|=ha),i+=aa.encode(r);while(s>0);return i};ir.decode=function(e,i,r){var s=e.length,n=0,a=0,u,h;do{if(i>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(h=aa.decode(e.charCodeAt(i++)),h===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));u=!!(h&ha),h&=ua,n=n+(h<<a),a+=tr}while(u);r.value=Il(n),r.rest=i}});var Xe=C(q=>{function Nl(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}q.getArg=Nl;var la=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Pl=/^data:.+\,.+$/;function wt(t){var e=t.match(la);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}q.urlParse=wt;function Ye(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}q.urlGenerate=Ye;var Ll=32;function Tl(t){var e=[];return function(i){for(var r=0;r<e.length;r++)if(e[r].input===i){var s=e[0];return e[0]=e[r],e[r]=s,e[0].result}var n=t(i);return e.unshift({input:i,result:n}),e.length>Ll&&e.pop(),n}}var sr=Tl(function(e){var i=e,r=wt(e);if(r){if(!r.path)return e;i=r.path}for(var s=q.isAbsolute(i),n=[],a=0,u=0;;)if(a=u,u=i.indexOf("/",a),u===-1){n.push(i.slice(a));break}else for(n.push(i.slice(a,u));u<i.length&&i[u]==="/";)u++;for(var h,l=0,u=n.length-1;u>=0;u--)h=n[u],h==="."?n.splice(u,1):h===".."?l++:l>0&&(h===""?(n.splice(u+1,l),l=0):(n.splice(u,2),l--));return i=n.join("/"),i===""&&(i=s?"/":"."),r?(r.path=i,Ye(r)):i});q.normalize=sr;function ca(t,e){t===""&&(t="."),e===""&&(e=".");var i=wt(e),r=wt(t);if(r&&(t=r.path||"/"),i&&!i.scheme)return r&&(i.scheme=r.scheme),Ye(i);if(i||e.match(Pl))return e;if(r&&!r.host&&!r.path)return r.host=e,Ye(r);var s=e.charAt(0)==="/"?e:sr(t.replace(/\/+$/,"")+"/"+e);return r?(r.path=s,Ye(r)):s}q.join=ca;q.isAbsolute=function(t){return t.charAt(0)==="/"||la.test(t)};function Rl(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var r=t.lastIndexOf("/");if(r<0||(t=t.slice(0,r),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}q.relative=Rl;var fa=function(){var t=Object.create(null);return!("__proto__"in t)}();function pa(t){return t}function Ml(t){return da(t)?"$"+t:t}q.toSetString=fa?pa:Ml;function Vl(t){return da(t)?t.slice(1):t}q.fromSetString=fa?pa:Vl;function da(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function Fl(t,e,i){var r=Se(t.source,e.source);return r!==0||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0||i)||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=t.generatedLine-e.generatedLine,r!==0)?r:Se(t.name,e.name)}q.compareByOriginalPositions=Fl;function Dl(t,e,i){var r;return r=t.originalLine-e.originalLine,r!==0||(r=t.originalColumn-e.originalColumn,r!==0||i)||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=t.generatedLine-e.generatedLine,r!==0)?r:Se(t.name,e.name)}q.compareByOriginalPositionsNoSource=Dl;function Bl(t,e,i){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0||i)||(r=Se(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Se(t.name,e.name)}q.compareByGeneratedPositionsDeflated=Bl;function ql(t,e,i){var r=t.generatedColumn-e.generatedColumn;return r!==0||i||(r=Se(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Se(t.name,e.name)}q.compareByGeneratedPositionsDeflatedNoLine=ql;function Se(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function jl(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=Se(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:Se(t.name,e.name)}q.compareByGeneratedPositionsInflated=jl;function Ul(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}q.parseSourceMapInput=Ul;function Gl(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var r=wt(i);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}e=ca(Ye(r),e)}return sr(e)}q.computeSourceURL=Gl});var or=C(ma=>{var nr=Xe(),ar=Object.prototype.hasOwnProperty,De=typeof Map<"u";function Ee(){this._array=[],this._set=De?new Map:Object.create(null)}Ee.fromArray=function(e,i){for(var r=new Ee,s=0,n=e.length;s<n;s++)r.add(e[s],i);return r};Ee.prototype.size=function(){return De?this._set.size:Object.getOwnPropertyNames(this._set).length};Ee.prototype.add=function(e,i){var r=De?e:nr.toSetString(e),s=De?this.has(e):ar.call(this._set,r),n=this._array.length;(!s||i)&&this._array.push(e),s||(De?this._set.set(e,n):this._set[r]=n)};Ee.prototype.has=function(e){if(De)return this._set.has(e);var i=nr.toSetString(e);return ar.call(this._set,i)};Ee.prototype.indexOf=function(e){if(De){var i=this._set.get(e);if(i>=0)return i}else{var r=nr.toSetString(e);if(ar.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};Ee.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ee.prototype.toArray=function(){return this._array.slice()};ma.ArraySet=Ee});var va=C(xa=>{var ga=Xe();function Hl(t,e){var i=t.generatedLine,r=e.generatedLine,s=t.generatedColumn,n=e.generatedColumn;return r>i||r==i&&n>=s||ga.compareByGeneratedPositionsInflated(t,e)<=0}function ti(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ti.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};ti.prototype.add=function(e){Hl(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};ti.prototype.toArray=function(){return this._sorted||(this._array.sort(ga.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};xa.MappingList=ti});var ur=C(ya=>{var St=rr(),D=Xe(),ii=or().ArraySet,Wl=va().MappingList;function ae(t){t||(t={}),this._file=D.getArg(t,"file",null),this._sourceRoot=D.getArg(t,"sourceRoot",null),this._skipValidation=D.getArg(t,"skipValidation",!1),this._sources=new ii,this._names=new ii,this._mappings=new Wl,this._sourcesContents=null}ae.prototype._version=3;ae.fromSourceMap=function(e){var i=e.sourceRoot,r=new ae({file:e.file,sourceRoot:i});return e.eachMapping(function(s){var n={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(n.source=s.source,i!=null&&(n.source=D.relative(i,n.source)),n.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(n.name=s.name)),r.addMapping(n)}),e.sources.forEach(function(s){var n=s;i!==null&&(n=D.relative(i,s)),r._sources.has(n)||r._sources.add(n);var a=e.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};ae.prototype.addMapping=function(e){var i=D.getArg(e,"generated"),r=D.getArg(e,"original",null),s=D.getArg(e,"source",null),n=D.getArg(e,"name",null);this._skipValidation||this._validateMapping(i,r,s,n),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:n})};ae.prototype.setSourceContent=function(e,i){var r=e;this._sourceRoot!=null&&(r=D.relative(this._sourceRoot,r)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[D.toSetString(r)]=i):this._sourcesContents&&(delete this._sourcesContents[D.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ae.prototype.applySourceMap=function(e,i,r){var s=i;if(i==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var n=this._sourceRoot;n!=null&&(s=D.relative(n,s));var a=new ii,u=new ii;this._mappings.unsortedForEach(function(h){if(h.source===s&&h.originalLine!=null){var l=e.originalPositionFor({line:h.originalLine,column:h.originalColumn});l.source!=null&&(h.source=l.source,r!=null&&(h.source=D.join(r,h.source)),n!=null&&(h.source=D.relative(n,h.source)),h.originalLine=l.line,h.originalColumn=l.column,l.name!=null&&(h.name=l.name))}var c=h.source;c!=null&&!a.has(c)&&a.add(c);var p=h.name;p!=null&&!u.has(p)&&u.add(p)},this),this._sources=a,this._names=u,e.sources.forEach(function(h){var l=e.sourceContentFor(h);l!=null&&(r!=null&&(h=D.join(r,h)),n!=null&&(h=D.relative(n,h)),this.setSourceContent(h,l))},this)};ae.prototype._validateMapping=function(e,i,r,s){if(i&&typeof i.line!="number"&&typeof i.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!r&&!s)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:i,name:s}))}};ae.prototype._serializeMappings=function(){for(var e=0,i=1,r=0,s=0,n=0,a=0,u="",h,l,c,p,f=this._mappings.toArray(),d=0,m=f.length;d<m;d++){if(l=f[d],h="",l.generatedLine!==i)for(e=0;l.generatedLine!==i;)h+=";",i++;else if(d>0){if(!D.compareByGeneratedPositionsInflated(l,f[d-1]))continue;h+=","}h+=St.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),h+=St.encode(p-a),a=p,h+=St.encode(l.originalLine-1-s),s=l.originalLine-1,h+=St.encode(l.originalColumn-r),r=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),h+=St.encode(c-n),n=c)),u+=h}return u};ae.prototype._generateSourcesContent=function(e,i){return e.map(function(r){if(!this._sourcesContents)return null;i!=null&&(r=D.relative(i,r));var s=D.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};ae.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};ae.prototype.toString=function(){return JSON.stringify(this.toJSON())};ya.SourceMapGenerator=ae});var ba=C(Be=>{Be.GREATEST_LOWER_BOUND=1;Be.LEAST_UPPER_BOUND=2;function hr(t,e,i,r,s,n){var a=Math.floor((e-t)/2)+t,u=s(i,r[a],!0);return u===0?a:u>0?e-a>1?hr(a,e,i,r,s,n):n==Be.LEAST_UPPER_BOUND?e<r.length?e:-1:a:a-t>1?hr(t,a,i,r,s,n):n==Be.LEAST_UPPER_BOUND?a:t<0?-1:t}Be.search=function(e,i,r,s){if(i.length===0)return-1;var n=hr(-1,i.length,e,i,r,s||Be.GREATEST_LOWER_BOUND);if(n<0)return-1;for(;n-1>=0&&r(i[n],i[n-1],!0)===0;)--n;return n}});var wa=C(_a=>{function $l(t){function e(s,n,a){var u=s[n];s[n]=s[a],s[a]=u}function i(s,n){return Math.round(s+Math.random()*(n-s))}function r(s,n,a,u){if(a<u){var h=i(a,u),l=a-1;e(s,h,u);for(var c=s[u],p=a;p<u;p++)n(s[p],c,!1)<=0&&(l+=1,e(s,l,p));e(s,l+1,p);var f=l+1;r(s,n,a,f-1),r(s,n,f+1,u)}}return r}function zl(t){let e=$l.toString();return new Function(`return ${e}`)()(t)}var Ca=new WeakMap;_a.quickSort=function(t,e,i=0){let r=Ca.get(e);r===void 0&&(r=zl(e),Ca.set(e,r)),r(t,e,i,t.length-1)}});var ka=C(ri=>{var b=Xe(),cr=ba(),Ze=or().ArraySet,Ql=rr(),Et=wa().quickSort;function P(t,e){var i=t;return typeof t=="string"&&(i=b.parseSourceMapInput(t)),i.sections!=null?new de(i,e):new G(i,e)}P.fromSourceMap=function(t,e){return G.fromSourceMap(t,e)};P.prototype._version=3;P.prototype.__generatedMappings=null;Object.defineProperty(P.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});P.prototype.__originalMappings=null;Object.defineProperty(P.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});P.prototype._charIsMappingSeparator=function(e,i){var r=e.charAt(i);return r===";"||r===","};P.prototype._parseMappings=function(e,i){throw new Error("Subclasses must implement _parseMappings")};P.GENERATED_ORDER=1;P.ORIGINAL_ORDER=2;P.GREATEST_LOWER_BOUND=1;P.LEAST_UPPER_BOUND=2;P.prototype.eachMapping=function(e,i,r){var s=i||null,n=r||P.GENERATED_ORDER,a;switch(n){case P.GENERATED_ORDER:a=this._generatedMappings;break;case P.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var u=this.sourceRoot,h=e.bind(s),l=this._names,c=this._sources,p=this._sourceMapURL,f=0,d=a.length;f<d;f++){var m=a[f],x=m.source===null?null:c.at(m.source);x=b.computeSourceURL(u,x,p),h({source:x,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:l.at(m.name)})}};P.prototype.allGeneratedPositionsFor=function(e){var i=b.getArg(e,"line"),r={source:b.getArg(e,"source"),originalLine:i,originalColumn:b.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,cr.LEAST_UPPER_BOUND);if(n>=0){var a=this._originalMappings[n];if(e.column===void 0)for(var u=a.originalLine;a&&a.originalLine===u;)s.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n];else for(var h=a.originalColumn;a&&a.originalLine===i&&a.originalColumn==h;)s.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n]}return s};ri.SourceMapConsumer=P;function G(t,e){var i=t;typeof t=="string"&&(i=b.parseSourceMapInput(t));var r=b.getArg(i,"version"),s=b.getArg(i,"sources"),n=b.getArg(i,"names",[]),a=b.getArg(i,"sourceRoot",null),u=b.getArg(i,"sourcesContent",null),h=b.getArg(i,"mappings"),l=b.getArg(i,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=b.normalize(a)),s=s.map(String).map(b.normalize).map(function(c){return a&&b.isAbsolute(a)&&b.isAbsolute(c)?b.relative(a,c):c}),this._names=Ze.fromArray(n.map(String),!0),this._sources=Ze.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return b.computeSourceURL(a,c,e)}),this.sourceRoot=a,this.sourcesContent=u,this._mappings=h,this._sourceMapURL=e,this.file=l}G.prototype=Object.create(P.prototype);G.prototype.consumer=P;G.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=b.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==t)return i;return-1};G.fromSourceMap=function(e,i){var r=Object.create(G.prototype),s=r._names=Ze.fromArray(e._names.toArray(),!0),n=r._sources=Ze.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=i,r._absoluteSources=r._sources.toArray().map(function(d){return b.computeSourceURL(r.sourceRoot,d,i)});for(var a=e._mappings.toArray().slice(),u=r.__generatedMappings=[],h=r.__originalMappings=[],l=0,c=a.length;l<c;l++){var p=a[l],f=new Ea;f.generatedLine=p.generatedLine,f.generatedColumn=p.generatedColumn,p.source&&(f.source=n.indexOf(p.source),f.originalLine=p.originalLine,f.originalColumn=p.originalColumn,p.name&&(f.name=s.indexOf(p.name)),h.push(f)),u.push(f)}return Et(r.__originalMappings,b.compareByOriginalPositions),r};G.prototype._version=3;Object.defineProperty(G.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Ea(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var lr=b.compareByGeneratedPositionsDeflatedNoLine;function Sa(t,e){let i=t.length,r=t.length-e;if(!(r<=1))if(r==2){let s=t[e],n=t[e+1];lr(s,n)>0&&(t[e]=n,t[e+1]=s)}else if(r<20)for(let s=e;s<i;s++)for(let n=s;n>e;n--){let a=t[n-1],u=t[n];if(lr(a,u)<=0)break;t[n-1]=u,t[n]=a}else Et(t,lr,e)}G.prototype._parseMappings=function(e,i){var r=1,s=0,n=0,a=0,u=0,h=0,l=e.length,c=0,p={},f={},d=[],m=[],x,v,S,F,Y;let W=0;for(;c<l;)if(e.charAt(c)===";")r++,c++,s=0,Sa(m,W),W=m.length;else if(e.charAt(c)===",")c++;else{for(x=new Ea,x.generatedLine=r,F=c;F<l&&!this._charIsMappingSeparator(e,F);F++);for(v=e.slice(c,F),S=[];c<F;)Ql.decode(e,c,f),Y=f.value,c=f.rest,S.push(Y);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");if(x.generatedColumn=s+S[0],s=x.generatedColumn,S.length>1&&(x.source=u+S[1],u+=S[1],x.originalLine=n+S[2],n=x.originalLine,x.originalLine+=1,x.originalColumn=a+S[3],a=x.originalColumn,S.length>4&&(x.name=h+S[4],h+=S[4])),m.push(x),typeof x.originalLine=="number"){let B=x.source;for(;d.length<=B;)d.push(null);d[B]===null&&(d[B]=[]),d[B].push(x)}}Sa(m,W),this.__generatedMappings=m;for(var z=0;z<d.length;z++)d[z]!=null&&Et(d[z],b.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};G.prototype._findMapping=function(e,i,r,s,n,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return cr.search(e,i,n,a)};G.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var i=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(i.generatedLine===r.generatedLine){i.lastGeneratedColumn=r.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};G.prototype.originalPositionFor=function(e){var i={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},r=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",b.compareByGeneratedPositionsDeflated,b.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===i.generatedLine){var n=b.getArg(s,"source",null);n!==null&&(n=this._sources.at(n),n=b.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var a=b.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:n,line:b.getArg(s,"originalLine",null),column:b.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};G.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};G.prototype.sourceContentFor=function(e,i){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var s=e;this.sourceRoot!=null&&(s=b.relative(this.sourceRoot,s));var n;if(this.sourceRoot!=null&&(n=b.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||n.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(i)return null;throw new Error('"'+s+'" is not in the SourceMap.')};G.prototype.generatedPositionFor=function(e){var i=b.getArg(e,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var r={source:i,originalLine:b.getArg(e,"line"),originalColumn:b.getArg(e,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,b.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(s>=0){var n=this._originalMappings[s];if(n.source===r.source)return{line:b.getArg(n,"generatedLine",null),column:b.getArg(n,"generatedColumn",null),lastColumn:b.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ri.BasicSourceMapConsumer=G;function de(t,e){var i=t;typeof t=="string"&&(i=b.parseSourceMapInput(t));var r=b.getArg(i,"version"),s=b.getArg(i,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Ze,this._names=new Ze;var n={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var u=b.getArg(a,"offset"),h=b.getArg(u,"line"),l=b.getArg(u,"column");if(h<n.line||h===n.line&&l<n.column)throw new Error("Section offsets must be ordered and non-overlapping.");return n=u,{generatedOffset:{generatedLine:h+1,generatedColumn:l+1},consumer:new P(b.getArg(a,"map"),e)}})}de.prototype=Object.create(P.prototype);de.prototype.constructor=P;de.prototype._version=3;Object.defineProperty(de.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var i=0;i<this._sections[e].consumer.sources.length;i++)t.push(this._sections[e].consumer.sources[i]);return t}});de.prototype.originalPositionFor=function(e){var i={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},r=cr.search(i,this._sections,function(n,a){var u=n.generatedLine-a.generatedOffset.generatedLine;return u||n.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:i.generatedLine-(s.generatedOffset.generatedLine-1),column:i.generatedColumn-(s.generatedOffset.generatedLine===i.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};de.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};de.prototype.sourceContentFor=function(e,i){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],n=s.consumer.sourceContentFor(e,!0);if(n)return n}if(i)return null;throw new Error('"'+e+'" is not in the SourceMap.')};de.prototype.generatedPositionFor=function(e){for(var i=0;i<this._sections.length;i++){var r=this._sections[i];if(r.consumer._findSourceIndex(b.getArg(e,"source"))!==-1){var s=r.consumer.generatedPositionFor(e);if(s){var n={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return n}}}return{line:null,column:null}};de.prototype._parseMappings=function(e,i){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],n=s.consumer._generatedMappings,a=0;a<n.length;a++){var u=n[a],h=s.consumer._sources.at(u.source);h=b.computeSourceURL(s.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var l=null;u.name&&(l=s.consumer._names.at(u.name),this._names.add(l),l=this._names.indexOf(l));var c={source:h,generatedLine:u.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(s.generatedOffset.generatedLine===u.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}Et(this.__generatedMappings,b.compareByGeneratedPositionsDeflated),Et(this.__originalMappings,b.compareByOriginalPositions)};ri.IndexedSourceMapConsumer=de});var Oa=C(Aa=>{var Kl=ur().SourceMapGenerator,si=Xe(),Jl=/(\r?\n)/,Yl=10,et="$$$isSourceNode$$$";function Z(t,e,i,r,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=i??null,this.name=s??null,this[et]=!0,r!=null&&this.add(r)}Z.fromStringWithSourceMap=function(e,i,r){var s=new Z,n=e.split(Jl),a=0,u=function(){var f=m(),d=m()||"";return f+d;function m(){return a<n.length?n[a++]:void 0}},h=1,l=0,c=null;return i.eachMapping(function(f){if(c!==null)if(h<f.generatedLine)p(c,u()),h++,l=0;else{var d=n[a]||"",m=d.substr(0,f.generatedColumn-l);n[a]=d.substr(f.generatedColumn-l),l=f.generatedColumn,p(c,m),c=f;return}for(;h<f.generatedLine;)s.add(u()),h++;if(l<f.generatedColumn){var d=n[a]||"";s.add(d.substr(0,f.generatedColumn)),n[a]=d.substr(f.generatedColumn),l=f.generatedColumn}c=f},this),a<n.length&&(c&&p(c,u()),s.add(n.splice(a).join(""))),i.sources.forEach(function(f){var d=i.sourceContentFor(f);d!=null&&(r!=null&&(f=si.join(r,f)),s.setSourceContent(f,d))}),s;function p(f,d){if(f===null||f.source===void 0)s.add(d);else{var m=r?si.join(r,f.source):f.source;s.add(new Z(f.originalLine,f.originalColumn,m,d,f.name))}}};Z.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(i){this.add(i)},this);else if(e[et]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Z.prototype.prepend=function(e){if(Array.isArray(e))for(var i=e.length-1;i>=0;i--)this.prepend(e[i]);else if(e[et]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Z.prototype.walk=function(e){for(var i,r=0,s=this.children.length;r<s;r++)i=this.children[r],i[et]?i.walk(e):i!==""&&e(i,{source:this.source,line:this.line,column:this.column,name:this.name})};Z.prototype.join=function(e){var i,r,s=this.children.length;if(s>0){for(i=[],r=0;r<s-1;r++)i.push(this.children[r]),i.push(e);i.push(this.children[r]),this.children=i}return this};Z.prototype.replaceRight=function(e,i){var r=this.children[this.children.length-1];return r[et]?r.replaceRight(e,i):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,i):this.children.push("".replace(e,i)),this};Z.prototype.setSourceContent=function(e,i){this.sourceContents[si.toSetString(e)]=i};Z.prototype.walkSourceContents=function(e){for(var i=0,r=this.children.length;i<r;i++)this.children[i][et]&&this.children[i].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),i=0,r=s.length;i<r;i++)e(si.fromSetString(s[i]),this.sourceContents[s[i]])};Z.prototype.toString=function(){var e="";return this.walk(function(i){e+=i}),e};Z.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},r=new Kl(e),s=!1,n=null,a=null,u=null,h=null;return this.walk(function(l,c){i.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((n!==c.source||a!==c.line||u!==c.column||h!==c.name)&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name}),n=c.source,a=c.line,u=c.column,h=c.name,s=!0):s&&(r.addMapping({generated:{line:i.line,column:i.column}}),n=null,s=!1);for(var p=0,f=l.length;p<f;p++)l.charCodeAt(p)===Yl?(i.line++,i.column=0,p+1===f?(n=null,s=!1):s&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name})):i.column++}),this.walkSourceContents(function(l,c){r.setSourceContent(l,c)}),{code:i.code,map:r}};Aa.SourceNode=Z});var fr=C(ni=>{ni.SourceMapGenerator=ur().SourceMapGenerator;ni.SourceMapConsumer=ka().SourceMapConsumer;ni.SourceNode=Oa().SourceNode});var Na=C((jp,Ia)=>{var Xl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Zl=(t,e=21)=>(i=e)=>{let r="",s=i;for(;s--;)r+=t[Math.random()*t.length|0];return r},ec=(t=21)=>{let e="",i=t;for(;i--;)e+=Xl[Math.random()*64|0];return e};Ia.exports={nanoid:ec,customAlphabet:Zl}});var Ra=C((Up,Ta)=>{"use strict";var{SourceMapConsumer:Pa,SourceMapGenerator:La}=fr(),{existsSync:tc,readFileSync:ic}=require("fs"),{dirname:pr,join:rc}=require("path");function sc(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var kt=class{constructor(e,i){if(i.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=i.map?i.map.prev:void 0,s=this.loadMap(i.from,r);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=pr(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Pa(this.text)),this.consumerCache}decodeInline(e){let i=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(i.test(e)||r.test(e))return sc(e.substr(RegExp.lastMatch.length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let i=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let r=e.lastIndexOf(i.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=pr(e),tc(e))return this.mapFile=e,ic(e,"utf-8").toString().trim()}loadMap(e,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let r=i(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(i instanceof Pa)return La.fromSourceMap(i).toString();if(i instanceof La)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=rc(pr(e),r)),this.loadFile(r)}}}startWith(e,i){return e?e.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Ta.exports=kt;kt.default=kt});var Ba=C((Gp,Da)=>{"use strict";var{SourceMapConsumer:nc,SourceMapGenerator:ac}=fr(),{fileURLToPath:Ma,pathToFileURL:ai}=require("url"),{isAbsolute:gr,resolve:xr}=require("path"),{nanoid:oc}=Na(),dr=Hi(),Va=Wi(),uc=Ra(),mr=Symbol("fromOffsetCache"),hc=!!(nc&&ac),Fa=!!(xr&&gr),tt=class{constructor(e,i={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!Fa||/^\w+:\/\//.test(i.from)||gr(i.from)?this.file=i.from:this.file=xr(i.from)),Fa&&hc){let r=new uc(this.css,i);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+oc(6)+">"),this.map&&(this.map.file=this.from)}error(e,i,r,s={}){let n,a,u;if(i&&typeof i=="object"){let l=i,c=r;if(typeof l.offset=="number"){let p=this.fromOffset(l.offset);i=p.line,r=p.col}else i=l.line,r=l.column;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);a=p.line,u=p.col}else a=c.line,u=c.column}else if(!r){let l=this.fromOffset(i);i=l.line,r=l.col}let h=this.origin(i,r,a,u);return h?n=new Va(e,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,s.plugin):n=new Va(e,a===void 0?i:{column:r,line:i},a===void 0?r:{column:u,line:a},this.css,this.file,s.plugin),n.input={column:r,endColumn:u,endLine:a,line:i,source:this.css},this.file&&(ai&&(n.input.url=ai(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let i,r;if(this[mr])r=this[mr];else{let n=this.css.split(`
|
|
25
|
-
`);r=new Array(n.length);let a=0;for(let
|
|
22
|
+
`);return i=n[n.length-1],i=i.replace(/\S/g,""),!1}}),i}rawSemicolon(e){let i;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(i=r.raws.semicolon,typeof i<"u"))return!1}),i}rawValue(e,i){let r=e[i],s=e.raws[i];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,i){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,i)}};Ra.exports=Ft;Ft.default=Ft});var Fa=v((Qg,Ma)=>{"use strict";var Ef=Tr();function Rr(t,e){new Ef(e).stringify(t)}Ma.exports=Rr;Rr.default=Rr});var Oi=v((Kg,Va)=>{"use strict";var{isClean:Ai,my:kf}=Ar(),Af=Pr(),Of=Tr(),Nf=Fa();function Mr(t,e){let i=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let s=t[r],n=typeof s;r==="parent"&&n==="object"?e&&(i[r]=e):r==="source"?i[r]=s:Array.isArray(s)?i[r]=s.map(a=>Mr(a,i)):(n==="object"&&s!==null&&(s=Mr(s)),i[r]=s)}return i}var Vt=class{constructor(e={}){this.raws={},this[Ai]=!1,this[kf]=!0;for(let i in e)if(i==="nodes"){this.nodes=[];for(let r of e[i])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[i]=e[i]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let i=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let i in e)this[i]=e[i];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let i=Mr(this);for(let r in e)i[r]=e[r];return i}cloneAfter(e={}){let i=this.clone(e);return this.parent.insertAfter(this,i),i}cloneBefore(e={}){let i=this.clone(e);return this.parent.insertBefore(this,i),i}error(e,i={}){if(this.source){let{end:r,start:s}=this.rangeBy(i);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},i)}return new Af(e)}getProxyProcessor(){return{get(e,i){return i==="proxyOf"?e:i==="root"?()=>e.root().toProxy():e[i]},set(e,i,r){return e[i]===r||(e[i]=r,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ai]){this[Ai]=!1;let e=this;for(;e=e.parent;)e[Ai]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,i){let r=this.source.start;if(e.index)r=this.positionInside(e.index,i);else if(e.word){i=this.toString();let s=i.indexOf(e.word);s!==-1&&(r=this.positionInside(s,i))}return r}positionInside(e,i){let r=i||this.toString(),s=this.source.start.column,n=this.source.start.line;for(let a=0;a<e;a++)r[a]===`
|
|
23
|
+
`?(s=1,n+=1):s+=1;return{column:s,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let i={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(e.word){let s=this.toString(),n=s.indexOf(e.word);n!==-1&&(i=this.positionInside(n,s),r=this.positionInside(n+e.word.length,s))}else e.start?i={column:e.start.column,line:e.start.line}:e.index&&(i=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<i.line||r.line===i.line&&r.column<=i.column)&&(r={column:i.column+1,line:i.line}),{end:r,start:i}}raw(e,i){return new Of().raw(this,e,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let i=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,i){let r={},s=i==null;i=i||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))r[a]=o.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,i):h);else if(typeof o=="object"&&o.toJSON)r[a]=o.toJSON(null,i);else if(a==="source"){let h=i.get(o.input);h==null&&(h=n,i.set(o.input,n),n++),r[a]={end:o.end,inputId:h,start:o.start}}else r[a]=o}return s&&(r.inputs=[...i.keys()].map(a=>a.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Nf){e.stringify&&(e=e.stringify);let i="";return e(this,r=>{i+=r}),i}warn(e,i,r){let s={node:this};for(let n in r)s[n]=r[n];return e.warn(i,s)}get proxyOf(){return this}};Va.exports=Vt;Vt.default=Vt});var Fr=v((Yg,Ba)=>{"use strict";var If=Oi(),Bt=class extends If{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};Ba.exports=Bt;Bt.default=Bt});var Vr=v((Jg,Da)=>{"use strict";var Lf=Oi(),Dt=class extends Lf{constructor(e){super(e),this.type="comment"}};Da.exports=Dt;Dt.default=Dt});var Ut=v((Xg,Qa)=>{"use strict";var{isClean:Ua,my:qa}=Ar(),ja=Fr(),Ga=Vr(),Pf=Oi(),Wa,Br,Dr,$a;function Ha(t){return t.map(e=>(e.nodes&&(e.nodes=Ha(e.nodes)),delete e.source,e))}function za(t){if(t[Ua]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)za(e)}var ve=class t extends Pf{append(...e){for(let i of e){let r=this.normalize(i,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let i of this.nodes)i.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let i=this.getIterator(),r,s;for(;this.indexes[i]<this.proxyOf.nodes.length&&(r=this.indexes[i],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[i]+=1;return delete this.indexes[i],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,i){return i==="proxyOf"?e:e[i]?i==="each"||typeof i=="string"&&i.startsWith("walk")?(...r)=>e[i](...r.map(s=>typeof s=="function"?(n,a)=>s(n.toProxy(),a):s)):i==="every"||i==="some"?r=>e[i]((s,...n)=>r(s.toProxy(),...n)):i==="root"?()=>e.root().toProxy():i==="nodes"?e.nodes.map(r=>r.toProxy()):i==="first"||i==="last"?e[i].toProxy():e[i]:e[i]},set(e,i,r){return e[i]===r||(e[i]=r,(i==="name"||i==="params"||i==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,i){let r=this.index(e),s=this.normalize(i,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r+1,0,a);let n;for(let a in this.indexes)n=this.indexes[a],r<n&&(this.indexes[a]=n+s.length);return this.markDirty(),this}insertBefore(e,i){let r=this.index(e),s=r===0?"prepend":!1,n=this.normalize(i,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r,0,o);let a;for(let o in this.indexes)a=this.indexes[o],r<=a&&(this.indexes[o]=a+n.length);return this.markDirty(),this}normalize(e,i){if(typeof e=="string")e=Ha(Wa(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ja(e)]}else if(e.selector)e=[new Br(e)];else if(e.name)e=[new Dr(e)];else if(e.text)e=[new Ga(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[qa]||t.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ua]&&za(s),typeof s.raws.before>"u"&&i&&typeof i.raws.before<"u"&&(s.raws.before=i.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let i of e){let r=this.normalize(i,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let i;for(let r in this.indexes)i=this.indexes[r],i>=e&&(this.indexes[r]=i-1);return this.markDirty(),this}replaceValues(e,i,r){return r||(r=i,i={}),this.walkDecls(s=>{i.props&&!i.props.includes(s.prop)||i.fast&&!s.value.includes(i.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((i,r)=>{let s;try{s=e(i,r)}catch(n){throw i.addToError(n)}return s!==!1&&i.walk&&(s=i.walk(e)),s})}walkAtRules(e,i){return i?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return i(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return i(r,s)}):(i=e,this.walk((r,s)=>{if(r.type==="atrule")return i(r,s)}))}walkComments(e){return this.walk((i,r)=>{if(i.type==="comment")return e(i,r)})}walkDecls(e,i){return i?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return i(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return i(r,s)}):(i=e,this.walk((r,s)=>{if(r.type==="decl")return i(r,s)}))}walkRules(e,i){return i?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return i(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return i(r,s)}):(i=e,this.walk((r,s)=>{if(r.type==="rule")return i(r,s)}))}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]}};ve.registerParse=t=>{Wa=t};ve.registerRule=t=>{Br=t};ve.registerAtRule=t=>{Dr=t};ve.registerRoot=t=>{$a=t};Qa.exports=ve;ve.default=ve;ve.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Dr.prototype):t.type==="rule"?Object.setPrototypeOf(t,Br.prototype):t.type==="decl"?Object.setPrototypeOf(t,ja.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ga.prototype):t.type==="root"&&Object.setPrototypeOf(t,$a.prototype),t[qa]=!0,t.nodes&&t.nodes.forEach(e=>{ve.rebuild(e)})}});var Ja=v((Zg,Ya)=>{"use strict";var Ka=Ut(),ct=class extends Ka{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Ya.exports=ct;ct.default=ct;Ka.registerAtRule(ct)});var io=v((e0,to)=>{"use strict";var Xa=Ut(),Za,eo,qe=class extends Xa{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,i,r){let s=super.normalize(e);if(i){if(r==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let n of s)n.raws.before=i.raws.before}return s}removeChild(e,i){let r=this.index(e);return!i&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Za(new eo,this,e).stringify()}};qe.registerLazyResult=t=>{Za=t};qe.registerProcessor=t=>{eo=t};to.exports=qe;qe.default=qe;Xa.registerRoot(qe)});var so=v((t0,ro)=>{"use strict";var qt={comma(t){return qt.split(t,[","],!0)},space(t){let e=[" ",`
|
|
24
|
+
`," "];return qt.split(t,e)},split(t,e,i){let r=[],s="",n=!1,a=0,o=!1,h="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:o?c===h&&(o=!1):c==='"'||c==="'"?(o=!0,h=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=c;return(i||s!=="")&&r.push(s.trim()),r}};ro.exports=qt;qt.default=qt});var oo=v((i0,ao)=>{"use strict";var no=Ut(),Tf=so(),ft=class extends no{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Tf.comma(this.selector)}set selectors(e){let i=this.selector?this.selector.match(/,\s*/):null,r=i?i[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};ao.exports=ft;ft.default=ft;no.registerRule(ft)});var co=v((r0,lo)=>{"use strict";var Rf=Fr(),Mf=Ir(),Ff=Vr(),Vf=Ja(),Bf=io(),uo=oo(),ho={empty:!0,space:!0};function Df(t){for(let e=t.length-1;e>=0;e--){let i=t[e],r=i[3]||i[2];if(r)return r}}var Ur=class{constructor(e){this.input=e,this.root=new Bf,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new Vf;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let r,s,n,a=!1,o=!1,h=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(h.length>0){for(n=h.length-1,s=h[n];s&&s[0]==="space";)s=h[--n];s&&(i.source.end=this.getPosition(s[3]||s[2]),i.source.end.offset++)}this.end(e);break}else h.push(e);else h.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(i.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(i,"params",h),a&&(e=h[h.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let r=0,s;for(let n=i-1;n>=0&&(s=e[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let i=0,r,s,n;for(let[a,o]of e.entries()){if(r=o,s=r[0],s==="("&&(i+=1),s===")"&&(i-=1),i===0&&s===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=r}return!1}comment(e){let i=new Ff;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))i.text="",i.raws.left=r,i.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);i.text=s[2],i.raws.left=s[1],i.raws.right=s[3]}}createTokenizer(){this.tokenizer=Mf(this.input)}decl(e,i){let r=new Rf;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Df(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(n=e[l],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),f="";for(let p=l;p>0;p--){let d=c[p][0];if(f.trim().indexOf("!")===0&&d!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=f,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(r,"value",a.concat(e),i),r.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new uo;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,r=null,s=!1,n=null,a=[],o=e[1].startsWith("--"),h=[],l=e;for(;l;){if(r=l[0],h.push(l),r==="("||r==="[")n||(n=l),a.push(r==="("?")":"]");else if(o&&s&&r==="{")n||(n=l),a.push("}");else if(a.length===0)if(r===";")if(s){this.decl(h,o);return}else break;else if(r==="{"){this.rule(h);return}else if(r==="}"){this.tokenizer.back(h.pop()),i=!0;break}else r===":"&&(s=!0);else r===a[a.length-1]&&(a.pop(),a.length===0&&(n=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),a.length>0&&this.unclosedBracket(n),i&&s){if(!o)for(;h.length&&(l=h[h.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(h.pop());this.decl(h,o)}else this.unknownWord(h)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,r,s){let n,a,o=r.length,h="",l=!0,c,f;for(let p=0;p<o;p+=1)n=r[p],a=n[0],a==="space"&&p===o-1&&!s?l=!1:a==="comment"?(f=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!ho[f]&&!ho[c]?h.slice(-1)===","?l=!1:h+=n[1]:l=!1):h+=n[1];if(!l){let p=r.reduce((d,m)=>d+m[1],"");e.raws[i]={raw:p,value:h}}e[i]=h}rule(e){e.pop();let i=new uo;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let i,r="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let i,r="";for(;e.length&&(i=e[e.length-1][0],i==="space");)r=e.pop()[1]+r;return r}stringFrom(e,i){let r="";for(let s=i;s<e.length;s++)r+=e[s][1];return e.splice(i,e.length-i),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}};lo.exports=Ur});var po=v(qr=>{var fo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");qr.encode=function(t){if(0<=t&&t<fo.length)return fo[t];throw new TypeError("Must be between 0 and 63: "+t)};qr.decode=function(t){var e=65,i=90,r=97,s=122,n=48,a=57,o=43,h=47,l=26,c=52;return e<=t&&t<=i?t-e:r<=t&&t<=s?t-r+l:n<=t&&t<=a?t-n+c:t==o?62:t==h?63:-1}});var Wr=v(Gr=>{var mo=po(),jr=5,go=1<<jr,xo=go-1,yo=go;function Uf(t){return t<0?(-t<<1)+1:(t<<1)+0}function qf(t){var e=(t&1)===1,i=t>>1;return e?-i:i}Gr.encode=function(e){var i="",r,s=Uf(e);do r=s&xo,s>>>=jr,s>0&&(r|=yo),i+=mo.encode(r);while(s>0);return i};Gr.decode=function(e,i,r){var s=e.length,n=0,a=0,o,h;do{if(i>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(h=mo.decode(e.charCodeAt(i++)),h===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));o=!!(h&yo),h&=xo,n=n+(h<<a),a+=jr}while(o);r.value=qf(n),r.rest=i}});var dt=v(W=>{function jf(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}W.getArg=jf;var vo=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Gf=/^data:.+\,.+$/;function jt(t){var e=t.match(vo);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}W.urlParse=jt;function pt(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}W.urlGenerate=pt;var Wf=32;function $f(t){var e=[];return function(i){for(var r=0;r<e.length;r++)if(e[r].input===i){var s=e[0];return e[0]=e[r],e[r]=s,e[0].result}var n=t(i);return e.unshift({input:i,result:n}),e.length>Wf&&e.pop(),n}}var $r=$f(function(e){var i=e,r=jt(e);if(r){if(!r.path)return e;i=r.path}for(var s=W.isAbsolute(i),n=[],a=0,o=0;;)if(a=o,o=i.indexOf("/",a),o===-1){n.push(i.slice(a));break}else for(n.push(i.slice(a,o));o<i.length&&i[o]==="/";)o++;for(var h,l=0,o=n.length-1;o>=0;o--)h=n[o],h==="."?n.splice(o,1):h===".."?l++:l>0&&(h===""?(n.splice(o+1,l),l=0):(n.splice(o,2),l--));return i=n.join("/"),i===""&&(i=s?"/":"."),r?(r.path=i,pt(r)):i});W.normalize=$r;function _o(t,e){t===""&&(t="."),e===""&&(e=".");var i=jt(e),r=jt(t);if(r&&(t=r.path||"/"),i&&!i.scheme)return r&&(i.scheme=r.scheme),pt(i);if(i||e.match(Gf))return e;if(r&&!r.host&&!r.path)return r.host=e,pt(r);var s=e.charAt(0)==="/"?e:$r(t.replace(/\/+$/,"")+"/"+e);return r?(r.path=s,pt(r)):s}W.join=_o;W.isAbsolute=function(t){return t.charAt(0)==="/"||vo.test(t)};function Hf(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var r=t.lastIndexOf("/");if(r<0||(t=t.slice(0,r),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}W.relative=Hf;var bo=function(){var t=Object.create(null);return!("__proto__"in t)}();function So(t){return t}function zf(t){return wo(t)?"$"+t:t}W.toSetString=bo?So:zf;function Qf(t){return wo(t)?t.slice(1):t}W.fromSetString=bo?So:Qf;function wo(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function Kf(t,e,i){var r=Ie(t.source,e.source);return r!==0||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0||i)||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=t.generatedLine-e.generatedLine,r!==0)?r:Ie(t.name,e.name)}W.compareByOriginalPositions=Kf;function Yf(t,e,i){var r;return r=t.originalLine-e.originalLine,r!==0||(r=t.originalColumn-e.originalColumn,r!==0||i)||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=t.generatedLine-e.generatedLine,r!==0)?r:Ie(t.name,e.name)}W.compareByOriginalPositionsNoSource=Yf;function Jf(t,e,i){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0||i)||(r=Ie(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ie(t.name,e.name)}W.compareByGeneratedPositionsDeflated=Jf;function Xf(t,e,i){var r=t.generatedColumn-e.generatedColumn;return r!==0||i||(r=Ie(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ie(t.name,e.name)}W.compareByGeneratedPositionsDeflatedNoLine=Xf;function Ie(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function Zf(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=Ie(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:Ie(t.name,e.name)}W.compareByGeneratedPositionsInflated=Zf;function ep(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}W.parseSourceMapInput=ep;function tp(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var r=jt(i);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}e=_o(pt(r),e)}return $r(e)}W.computeSourceURL=tp});var Qr=v(Co=>{var Hr=dt(),zr=Object.prototype.hasOwnProperty,Je=typeof Map<"u";function Le(){this._array=[],this._set=Je?new Map:Object.create(null)}Le.fromArray=function(e,i){for(var r=new Le,s=0,n=e.length;s<n;s++)r.add(e[s],i);return r};Le.prototype.size=function(){return Je?this._set.size:Object.getOwnPropertyNames(this._set).length};Le.prototype.add=function(e,i){var r=Je?e:Hr.toSetString(e),s=Je?this.has(e):zr.call(this._set,r),n=this._array.length;(!s||i)&&this._array.push(e),s||(Je?this._set.set(e,n):this._set[r]=n)};Le.prototype.has=function(e){if(Je)return this._set.has(e);var i=Hr.toSetString(e);return zr.call(this._set,i)};Le.prototype.indexOf=function(e){if(Je){var i=this._set.get(e);if(i>=0)return i}else{var r=Hr.toSetString(e);if(zr.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')};Le.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Le.prototype.toArray=function(){return this._array.slice()};Co.ArraySet=Le});var Ao=v(ko=>{var Eo=dt();function ip(t,e){var i=t.generatedLine,r=e.generatedLine,s=t.generatedColumn,n=e.generatedColumn;return r>i||r==i&&n>=s||Eo.compareByGeneratedPositionsInflated(t,e)<=0}function Ni(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ni.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};Ni.prototype.add=function(e){ip(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Ni.prototype.toArray=function(){return this._sorted||(this._array.sort(Eo.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};ko.MappingList=Ni});var Kr=v(Oo=>{var Gt=Wr(),j=dt(),Ii=Qr().ArraySet,rp=Ao().MappingList;function fe(t){t||(t={}),this._file=j.getArg(t,"file",null),this._sourceRoot=j.getArg(t,"sourceRoot",null),this._skipValidation=j.getArg(t,"skipValidation",!1),this._sources=new Ii,this._names=new Ii,this._mappings=new rp,this._sourcesContents=null}fe.prototype._version=3;fe.fromSourceMap=function(e){var i=e.sourceRoot,r=new fe({file:e.file,sourceRoot:i});return e.eachMapping(function(s){var n={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(n.source=s.source,i!=null&&(n.source=j.relative(i,n.source)),n.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(n.name=s.name)),r.addMapping(n)}),e.sources.forEach(function(s){var n=s;i!==null&&(n=j.relative(i,s)),r._sources.has(n)||r._sources.add(n);var a=e.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};fe.prototype.addMapping=function(e){var i=j.getArg(e,"generated"),r=j.getArg(e,"original",null),s=j.getArg(e,"source",null),n=j.getArg(e,"name",null);this._skipValidation||this._validateMapping(i,r,s,n),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:n})};fe.prototype.setSourceContent=function(e,i){var r=e;this._sourceRoot!=null&&(r=j.relative(this._sourceRoot,r)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[j.toSetString(r)]=i):this._sourcesContents&&(delete this._sourcesContents[j.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};fe.prototype.applySourceMap=function(e,i,r){var s=i;if(i==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var n=this._sourceRoot;n!=null&&(s=j.relative(n,s));var a=new Ii,o=new Ii;this._mappings.unsortedForEach(function(h){if(h.source===s&&h.originalLine!=null){var l=e.originalPositionFor({line:h.originalLine,column:h.originalColumn});l.source!=null&&(h.source=l.source,r!=null&&(h.source=j.join(r,h.source)),n!=null&&(h.source=j.relative(n,h.source)),h.originalLine=l.line,h.originalColumn=l.column,l.name!=null&&(h.name=l.name))}var c=h.source;c!=null&&!a.has(c)&&a.add(c);var f=h.name;f!=null&&!o.has(f)&&o.add(f)},this),this._sources=a,this._names=o,e.sources.forEach(function(h){var l=e.sourceContentFor(h);l!=null&&(r!=null&&(h=j.join(r,h)),n!=null&&(h=j.relative(n,h)),this.setSourceContent(h,l))},this)};fe.prototype._validateMapping=function(e,i,r,s){if(i&&typeof i.line!="number"&&typeof i.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!r&&!s)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:i,name:s}))}};fe.prototype._serializeMappings=function(){for(var e=0,i=1,r=0,s=0,n=0,a=0,o="",h,l,c,f,p=this._mappings.toArray(),d=0,m=p.length;d<m;d++){if(l=p[d],h="",l.generatedLine!==i)for(e=0;l.generatedLine!==i;)h+=";",i++;else if(d>0){if(!j.compareByGeneratedPositionsInflated(l,p[d-1]))continue;h+=","}h+=Gt.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),h+=Gt.encode(f-a),a=f,h+=Gt.encode(l.originalLine-1-s),s=l.originalLine-1,h+=Gt.encode(l.originalColumn-r),r=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),h+=Gt.encode(c-n),n=c)),o+=h}return o};fe.prototype._generateSourcesContent=function(e,i){return e.map(function(r){if(!this._sourcesContents)return null;i!=null&&(r=j.relative(i,r));var s=j.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};fe.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};fe.prototype.toString=function(){return JSON.stringify(this.toJSON())};Oo.SourceMapGenerator=fe});var No=v(Xe=>{Xe.GREATEST_LOWER_BOUND=1;Xe.LEAST_UPPER_BOUND=2;function Yr(t,e,i,r,s,n){var a=Math.floor((e-t)/2)+t,o=s(i,r[a],!0);return o===0?a:o>0?e-a>1?Yr(a,e,i,r,s,n):n==Xe.LEAST_UPPER_BOUND?e<r.length?e:-1:a:a-t>1?Yr(t,a,i,r,s,n):n==Xe.LEAST_UPPER_BOUND?a:t<0?-1:t}Xe.search=function(e,i,r,s){if(i.length===0)return-1;var n=Yr(-1,i.length,e,i,r,s||Xe.GREATEST_LOWER_BOUND);if(n<0)return-1;for(;n-1>=0&&r(i[n],i[n-1],!0)===0;)--n;return n}});var Po=v(Lo=>{function sp(t){function e(s,n,a){var o=s[n];s[n]=s[a],s[a]=o}function i(s,n){return Math.round(s+Math.random()*(n-s))}function r(s,n,a,o){if(a<o){var h=i(a,o),l=a-1;e(s,h,o);for(var c=s[o],f=a;f<o;f++)n(s[f],c,!1)<=0&&(l+=1,e(s,l,f));e(s,l+1,f);var p=l+1;r(s,n,a,p-1),r(s,n,p+1,o)}}return r}function np(t){let e=sp.toString();return new Function(`return ${e}`)()(t)}var Io=new WeakMap;Lo.quickSort=function(t,e,i=0){let r=Io.get(e);r===void 0&&(r=np(e),Io.set(e,r)),r(t,e,i,t.length-1)}});var Mo=v(Li=>{var b=dt(),Xr=No(),mt=Qr().ArraySet,ap=Wr(),Wt=Po().quickSort;function P(t,e){var i=t;return typeof t=="string"&&(i=b.parseSourceMapInput(t)),i.sections!=null?new _e(i,e):new z(i,e)}P.fromSourceMap=function(t,e){return z.fromSourceMap(t,e)};P.prototype._version=3;P.prototype.__generatedMappings=null;Object.defineProperty(P.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});P.prototype.__originalMappings=null;Object.defineProperty(P.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});P.prototype._charIsMappingSeparator=function(e,i){var r=e.charAt(i);return r===";"||r===","};P.prototype._parseMappings=function(e,i){throw new Error("Subclasses must implement _parseMappings")};P.GENERATED_ORDER=1;P.ORIGINAL_ORDER=2;P.GREATEST_LOWER_BOUND=1;P.LEAST_UPPER_BOUND=2;P.prototype.eachMapping=function(e,i,r){var s=i||null,n=r||P.GENERATED_ORDER,a;switch(n){case P.GENERATED_ORDER:a=this._generatedMappings;break;case P.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,h=e.bind(s),l=this._names,c=this._sources,f=this._sourceMapURL,p=0,d=a.length;p<d;p++){var m=a[p],g=m.source===null?null:c.at(m.source);g=b.computeSourceURL(o,g,f),h({source:g,generatedLine:m.generatedLine,generatedColumn:m.generatedColumn,originalLine:m.originalLine,originalColumn:m.originalColumn,name:m.name===null?null:l.at(m.name)})}};P.prototype.allGeneratedPositionsFor=function(e){var i=b.getArg(e,"line"),r={source:b.getArg(e,"source"),originalLine:i,originalColumn:b.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,Xr.LEAST_UPPER_BOUND);if(n>=0){var a=this._originalMappings[n];if(e.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)s.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n];else for(var h=a.originalColumn;a&&a.originalLine===i&&a.originalColumn==h;)s.push({line:b.getArg(a,"generatedLine",null),column:b.getArg(a,"generatedColumn",null),lastColumn:b.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++n]}return s};Li.SourceMapConsumer=P;function z(t,e){var i=t;typeof t=="string"&&(i=b.parseSourceMapInput(t));var r=b.getArg(i,"version"),s=b.getArg(i,"sources"),n=b.getArg(i,"names",[]),a=b.getArg(i,"sourceRoot",null),o=b.getArg(i,"sourcesContent",null),h=b.getArg(i,"mappings"),l=b.getArg(i,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=b.normalize(a)),s=s.map(String).map(b.normalize).map(function(c){return a&&b.isAbsolute(a)&&b.isAbsolute(c)?b.relative(a,c):c}),this._names=mt.fromArray(n.map(String),!0),this._sources=mt.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(c){return b.computeSourceURL(a,c,e)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=h,this._sourceMapURL=e,this.file=l}z.prototype=Object.create(P.prototype);z.prototype.consumer=P;z.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=b.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==t)return i;return-1};z.fromSourceMap=function(e,i){var r=Object.create(z.prototype),s=r._names=mt.fromArray(e._names.toArray(),!0),n=r._sources=mt.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=i,r._absoluteSources=r._sources.toArray().map(function(d){return b.computeSourceURL(r.sourceRoot,d,i)});for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],h=r.__originalMappings=[],l=0,c=a.length;l<c;l++){var f=a[l],p=new Ro;p.generatedLine=f.generatedLine,p.generatedColumn=f.generatedColumn,f.source&&(p.source=n.indexOf(f.source),p.originalLine=f.originalLine,p.originalColumn=f.originalColumn,f.name&&(p.name=s.indexOf(f.name)),h.push(p)),o.push(p)}return Wt(r.__originalMappings,b.compareByOriginalPositions),r};z.prototype._version=3;Object.defineProperty(z.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Ro(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Jr=b.compareByGeneratedPositionsDeflatedNoLine;function To(t,e){let i=t.length,r=t.length-e;if(!(r<=1))if(r==2){let s=t[e],n=t[e+1];Jr(s,n)>0&&(t[e]=n,t[e+1]=s)}else if(r<20)for(let s=e;s<i;s++)for(let n=s;n>e;n--){let a=t[n-1],o=t[n];if(Jr(a,o)<=0)break;t[n-1]=o,t[n]=a}else Wt(t,Jr,e)}z.prototype._parseMappings=function(e,i){var r=1,s=0,n=0,a=0,o=0,h=0,l=e.length,c=0,f={},p={},d=[],m=[],g,y,C,L,q;let T=0;for(;c<l;)if(e.charAt(c)===";")r++,c++,s=0,To(m,T),T=m.length;else if(e.charAt(c)===",")c++;else{for(g=new Ro,g.generatedLine=r,L=c;L<l&&!this._charIsMappingSeparator(e,L);L++);for(y=e.slice(c,L),C=[];c<L;)ap.decode(e,c,p),q=p.value,c=p.rest,C.push(q);if(C.length===2)throw new Error("Found a source, but no line and column");if(C.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=s+C[0],s=g.generatedColumn,C.length>1&&(g.source=o+C[1],o+=C[1],g.originalLine=n+C[2],n=g.originalLine,g.originalLine+=1,g.originalColumn=a+C[3],a=g.originalColumn,C.length>4&&(g.name=h+C[4],h+=C[4])),m.push(g),typeof g.originalLine=="number"){let F=g.source;for(;d.length<=F;)d.push(null);d[F]===null&&(d[F]=[]),d[F].push(g)}}To(m,T),this.__generatedMappings=m;for(var G=0;G<d.length;G++)d[G]!=null&&Wt(d[G],b.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...d)};z.prototype._findMapping=function(e,i,r,s,n,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return Xr.search(e,i,n,a)};z.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var i=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(i.generatedLine===r.generatedLine){i.lastGeneratedColumn=r.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};z.prototype.originalPositionFor=function(e){var i={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},r=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",b.compareByGeneratedPositionsDeflated,b.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===i.generatedLine){var n=b.getArg(s,"source",null);n!==null&&(n=this._sources.at(n),n=b.computeSourceURL(this.sourceRoot,n,this._sourceMapURL));var a=b.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:n,line:b.getArg(s,"originalLine",null),column:b.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};z.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};z.prototype.sourceContentFor=function(e,i){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var s=e;this.sourceRoot!=null&&(s=b.relative(this.sourceRoot,s));var n;if(this.sourceRoot!=null&&(n=b.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||n.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(i)return null;throw new Error('"'+s+'" is not in the SourceMap.')};z.prototype.generatedPositionFor=function(e){var i=b.getArg(e,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var r={source:i,originalLine:b.getArg(e,"line"),originalColumn:b.getArg(e,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",b.compareByOriginalPositions,b.getArg(e,"bias",P.GREATEST_LOWER_BOUND));if(s>=0){var n=this._originalMappings[s];if(n.source===r.source)return{line:b.getArg(n,"generatedLine",null),column:b.getArg(n,"generatedColumn",null),lastColumn:b.getArg(n,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Li.BasicSourceMapConsumer=z;function _e(t,e){var i=t;typeof t=="string"&&(i=b.parseSourceMapInput(t));var r=b.getArg(i,"version"),s=b.getArg(i,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new mt,this._names=new mt;var n={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=b.getArg(a,"offset"),h=b.getArg(o,"line"),l=b.getArg(o,"column");if(h<n.line||h===n.line&&l<n.column)throw new Error("Section offsets must be ordered and non-overlapping.");return n=o,{generatedOffset:{generatedLine:h+1,generatedColumn:l+1},consumer:new P(b.getArg(a,"map"),e)}})}_e.prototype=Object.create(P.prototype);_e.prototype.constructor=P;_e.prototype._version=3;Object.defineProperty(_e.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var i=0;i<this._sections[e].consumer.sources.length;i++)t.push(this._sections[e].consumer.sources[i]);return t}});_e.prototype.originalPositionFor=function(e){var i={generatedLine:b.getArg(e,"line"),generatedColumn:b.getArg(e,"column")},r=Xr.search(i,this._sections,function(n,a){var o=n.generatedLine-a.generatedOffset.generatedLine;return o||n.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:i.generatedLine-(s.generatedOffset.generatedLine-1),column:i.generatedColumn-(s.generatedOffset.generatedLine===i.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};_e.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};_e.prototype.sourceContentFor=function(e,i){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],n=s.consumer.sourceContentFor(e,!0);if(n)return n}if(i)return null;throw new Error('"'+e+'" is not in the SourceMap.')};_e.prototype.generatedPositionFor=function(e){for(var i=0;i<this._sections.length;i++){var r=this._sections[i];if(r.consumer._findSourceIndex(b.getArg(e,"source"))!==-1){var s=r.consumer.generatedPositionFor(e);if(s){var n={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return n}}}return{line:null,column:null}};_e.prototype._parseMappings=function(e,i){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],n=s.consumer._generatedMappings,a=0;a<n.length;a++){var o=n[a],h=s.consumer._sources.at(o.source);h=b.computeSourceURL(s.consumer.sourceRoot,h,this._sourceMapURL),this._sources.add(h),h=this._sources.indexOf(h);var l=null;o.name&&(l=s.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:h,generatedLine:o.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(s.generatedOffset.generatedLine===o.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}Wt(this.__generatedMappings,b.compareByGeneratedPositionsDeflated),Wt(this.__originalMappings,b.compareByOriginalPositions)};Li.IndexedSourceMapConsumer=_e});var Vo=v(Fo=>{var op=Kr().SourceMapGenerator,Pi=dt(),up=/(\r?\n)/,hp=10,gt="$$$isSourceNode$$$";function se(t,e,i,r,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=i??null,this.name=s??null,this[gt]=!0,r!=null&&this.add(r)}se.fromStringWithSourceMap=function(e,i,r){var s=new se,n=e.split(up),a=0,o=function(){var p=m(),d=m()||"";return p+d;function m(){return a<n.length?n[a++]:void 0}},h=1,l=0,c=null;return i.eachMapping(function(p){if(c!==null)if(h<p.generatedLine)f(c,o()),h++,l=0;else{var d=n[a]||"",m=d.substr(0,p.generatedColumn-l);n[a]=d.substr(p.generatedColumn-l),l=p.generatedColumn,f(c,m),c=p;return}for(;h<p.generatedLine;)s.add(o()),h++;if(l<p.generatedColumn){var d=n[a]||"";s.add(d.substr(0,p.generatedColumn)),n[a]=d.substr(p.generatedColumn),l=p.generatedColumn}c=p},this),a<n.length&&(c&&f(c,o()),s.add(n.splice(a).join(""))),i.sources.forEach(function(p){var d=i.sourceContentFor(p);d!=null&&(r!=null&&(p=Pi.join(r,p)),s.setSourceContent(p,d))}),s;function f(p,d){if(p===null||p.source===void 0)s.add(d);else{var m=r?Pi.join(r,p.source):p.source;s.add(new se(p.originalLine,p.originalColumn,m,d,p.name))}}};se.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(i){this.add(i)},this);else if(e[gt]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};se.prototype.prepend=function(e){if(Array.isArray(e))for(var i=e.length-1;i>=0;i--)this.prepend(e[i]);else if(e[gt]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};se.prototype.walk=function(e){for(var i,r=0,s=this.children.length;r<s;r++)i=this.children[r],i[gt]?i.walk(e):i!==""&&e(i,{source:this.source,line:this.line,column:this.column,name:this.name})};se.prototype.join=function(e){var i,r,s=this.children.length;if(s>0){for(i=[],r=0;r<s-1;r++)i.push(this.children[r]),i.push(e);i.push(this.children[r]),this.children=i}return this};se.prototype.replaceRight=function(e,i){var r=this.children[this.children.length-1];return r[gt]?r.replaceRight(e,i):typeof r=="string"?this.children[this.children.length-1]=r.replace(e,i):this.children.push("".replace(e,i)),this};se.prototype.setSourceContent=function(e,i){this.sourceContents[Pi.toSetString(e)]=i};se.prototype.walkSourceContents=function(e){for(var i=0,r=this.children.length;i<r;i++)this.children[i][gt]&&this.children[i].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),i=0,r=s.length;i<r;i++)e(Pi.fromSetString(s[i]),this.sourceContents[s[i]])};se.prototype.toString=function(){var e="";return this.walk(function(i){e+=i}),e};se.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},r=new op(e),s=!1,n=null,a=null,o=null,h=null;return this.walk(function(l,c){i.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((n!==c.source||a!==c.line||o!==c.column||h!==c.name)&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name}),n=c.source,a=c.line,o=c.column,h=c.name,s=!0):s&&(r.addMapping({generated:{line:i.line,column:i.column}}),n=null,s=!1);for(var f=0,p=l.length;f<p;f++)l.charCodeAt(f)===hp?(i.line++,i.column=0,f+1===p?(n=null,s=!1):s&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:i.line,column:i.column},name:c.name})):i.column++}),this.walkSourceContents(function(l,c){r.setSourceContent(l,c)}),{code:i.code,map:r}};Fo.SourceNode=se});var Zr=v(Ti=>{Ti.SourceMapGenerator=Kr().SourceMapGenerator;Ti.SourceMapConsumer=Mo().SourceMapConsumer;Ti.SourceNode=Vo().SourceNode});var Do=v((m0,Bo)=>{var lp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cp=(t,e=21)=>(i=e)=>{let r="",s=i;for(;s--;)r+=t[Math.random()*t.length|0];return r},fp=(t=21)=>{let e="",i=t;for(;i--;)e+=lp[Math.random()*64|0];return e};Bo.exports={nanoid:fp,customAlphabet:cp}});var Go=v((g0,jo)=>{"use strict";var{SourceMapConsumer:Uo,SourceMapGenerator:qo}=Zr(),{existsSync:pp,readFileSync:dp}=require("fs"),{dirname:es,join:mp}=require("path");function gp(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var $t=class{constructor(e,i){if(i.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=i.map?i.map.prev:void 0,s=this.loadMap(i.from,r);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=es(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Uo(this.text)),this.consumerCache}decodeInline(e){let i=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(s.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(i.test(e)||r.test(e))return gp(e.substr(RegExp.lastMatch.length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let i=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let r=e.lastIndexOf(i.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=es(e),pp(e))return this.mapFile=e,dp(e,"utf-8").toString().trim()}loadMap(e,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let r=i(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(i instanceof Uo)return qo.fromSourceMap(i).toString();if(i instanceof qo)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=mp(es(e),r)),this.loadFile(r)}}}startWith(e,i){return e?e.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};jo.exports=$t;$t.default=$t});var Qo=v((x0,zo)=>{"use strict";var{SourceMapConsumer:xp,SourceMapGenerator:yp}=Zr(),{fileURLToPath:Wo,pathToFileURL:Ri}=require("url"),{isAbsolute:rs,resolve:ss}=require("path"),{nanoid:vp}=Do(),ts=Lr(),$o=Pr(),_p=Go(),is=Symbol("fromOffsetCache"),bp=!!(xp&&yp),Ho=!!(ss&&rs),xt=class{constructor(e,i={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,i.from&&(!Ho||/^\w+:\/\//.test(i.from)||rs(i.from)?this.file=i.from:this.file=ss(i.from)),Ho&&bp){let r=new _p(this.css,i);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+vp(6)+">"),this.map&&(this.map.file=this.from)}error(e,i,r,s={}){let n,a,o;if(i&&typeof i=="object"){let l=i,c=r;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);i=f.line,r=f.col}else i=l.line,r=l.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);a=f.line,o=f.col}else a=c.line,o=c.column}else if(!r){let l=this.fromOffset(i);i=l.line,r=l.col}let h=this.origin(i,r,a,o);return h?n=new $o(e,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,s.plugin):n=new $o(e,a===void 0?i:{column:r,line:i},a===void 0?r:{column:o,line:a},this.css,this.file,s.plugin),n.input={column:r,endColumn:o,endLine:a,line:i,source:this.css},this.file&&(Ri&&(n.input.url=Ri(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let i,r;if(this[is])r=this[is];else{let n=this.css.split(`
|
|
25
|
+
`);r=new Array(n.length);let a=0;for(let o=0,h=n.length;o<h;o++)r[o]=a,a+=n[o].length+1;this[is]=r}i=r[r.length-1];let s=0;if(e>=i)s=r.length-1;else{let n=r.length-2,a;for(;s<n;)if(a=s+(n-s>>1),e<r[a])n=a-1;else if(e>=r[a+1])s=a+1;else{s=a;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ss(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,i,r,s){if(!this.map)return!1;let n=this.map.consumer(),a=n.originalPositionFor({column:i,line:e});if(!a.source)return!1;let o;typeof r=="number"&&(o=n.originalPositionFor({column:s,line:r}));let h;rs(a.source)?h=Ri(a.source):h=new URL(a.source,this.map.consumer().sourceRoot||Ri(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:h.toString()};if(h.protocol==="file:")if(Wo)l.file=Wo(h);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let i of["hasBOM","css","file","id"])this[i]!=null&&(e[i]=this[i]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};zo.exports=xt;xt.default=xt;ts&&ts.registerInput&&ts.registerInput(xt)});var Yo=v((y0,Ko)=>{"use strict";var Sp=Ut(),wp=co(),Cp=Qo();function Mi(t,e){let i=new Cp(t,e),r=new wp(i);try{r.parse()}catch(s){throw process.env.NODE_ENV!=="production"&&s.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?s.message+=`
|
|
26
26
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?s.message+=`
|
|
27
27
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(s.message+=`
|
|
28
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return r.root}
|
|
29
|
-
`).replace(/^/gm," ".repeat(n))}let l=[`Usage: ${i.commandUsage(e)}`,""],c=i.commandDescription(e);c.length>0&&(l=l.concat([i.wrap(c,s,0),""]));let
|
|
30
|
-
`)}padWidth(e,i){return Math.max(i.longestOptionTermLength(e,i),i.longestGlobalOptionTermLength(e,i),i.longestSubcommandTermLength(e,i),i.longestArgumentTermLength(e,i))}wrap(e,i,r,s=40){let n=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${n}]+`);if(e.match(a))return e;let
|
|
28
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),s}return r.root}Ko.exports=Mi;Mi.default=Mi;Sp.registerParse(Mi)});var Ht=v(as=>{var Fi=class extends Error{constructor(e,i,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=i,this.exitCode=e,this.nestedError=void 0}},ns=class extends Fi{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};as.CommanderError=Fi;as.InvalidArgumentError=ns});var Vi=v(us=>{var{InvalidArgumentError:Ep}=Ht(),os=class{constructor(e,i){switch(this.description=i||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,i){return i===this.defaultValue||!Array.isArray(i)?[e]:i.concat(e)}default(e,i){return this.defaultValue=e,this.defaultValueDescription=i,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(i,r)=>{if(!this.argChoices.includes(i))throw new Ep(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(i,r):i},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function kp(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}us.Argument=os;us.humanReadableArgName=kp});var ls=v(Jo=>{var{humanReadableArgName:Ap}=Vi(),hs=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let i=e.commands.filter(s=>!s._hidden),r=e._getHelpCommand();return r&&!r._hidden&&i.push(r),this.sortSubcommands&&i.sort((s,n)=>s.name().localeCompare(n.name())),i}compareOptions(e,i){let r=s=>s.short?s.short.replace(/^-/,""):s.long.replace(/^--/,"");return r(e).localeCompare(r(i))}visibleOptions(e){let i=e.options.filter(s=>!s.hidden),r=e._getHelpOption();if(r&&!r.hidden){let s=r.short&&e._findOption(r.short),n=r.long&&e._findOption(r.long);!s&&!n?i.push(r):r.long&&!n?i.push(e.createOption(r.long,r.description)):r.short&&!s&&i.push(e.createOption(r.short,r.description))}return this.sortOptions&&i.sort(this.compareOptions),i}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let i=[];for(let r=e.parent;r;r=r.parent){let s=r.options.filter(n=>!n.hidden);i.push(...s)}return this.sortOptions&&i.sort(this.compareOptions),i}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(i=>{i.description=i.description||e._argsDescription[i.name()]||""}),e.registeredArguments.find(i=>i.description)?e.registeredArguments:[]}subcommandTerm(e){let i=e.registeredArguments.map(r=>Ap(r)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(i?" "+i:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,i){return i.visibleCommands(e).reduce((r,s)=>Math.max(r,i.subcommandTerm(s).length),0)}longestOptionTermLength(e,i){return i.visibleOptions(e).reduce((r,s)=>Math.max(r,i.optionTerm(s).length),0)}longestGlobalOptionTermLength(e,i){return i.visibleGlobalOptions(e).reduce((r,s)=>Math.max(r,i.optionTerm(s).length),0)}longestArgumentTermLength(e,i){return i.visibleArguments(e).reduce((r,s)=>Math.max(r,i.argumentTerm(s).length),0)}commandUsage(e){let i=e._name;e._aliases[0]&&(i=i+"|"+e._aliases[0]);let r="";for(let s=e.parent;s;s=s.parent)r=s.name()+" "+r;return r+i+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let i=[];return e.argChoices&&i.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&i.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&i.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&i.push(`env: ${e.envVar}`),i.length>0?`${e.description} (${i.join(", ")})`:e.description}argumentDescription(e){let i=[];if(e.argChoices&&i.push(`choices: ${e.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),e.defaultValue!==void 0&&i.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),i.length>0){let r=`(${i.join(", ")})`;return e.description?`${e.description} ${r}`:r}return e.description}formatHelp(e,i){let r=i.padWidth(e,i),s=i.helpWidth||80,n=2,a=2;function o(m,g){if(g){let y=`${m.padEnd(r+a)}${g}`;return i.wrap(y,s-n,r+a)}return m}function h(m){return m.join(`
|
|
29
|
+
`).replace(/^/gm," ".repeat(n))}let l=[`Usage: ${i.commandUsage(e)}`,""],c=i.commandDescription(e);c.length>0&&(l=l.concat([i.wrap(c,s,0),""]));let f=i.visibleArguments(e).map(m=>o(i.argumentTerm(m),i.argumentDescription(m)));f.length>0&&(l=l.concat(["Arguments:",h(f),""]));let p=i.visibleOptions(e).map(m=>o(i.optionTerm(m),i.optionDescription(m)));if(p.length>0&&(l=l.concat(["Options:",h(p),""])),this.showGlobalOptions){let m=i.visibleGlobalOptions(e).map(g=>o(i.optionTerm(g),i.optionDescription(g)));m.length>0&&(l=l.concat(["Global Options:",h(m),""]))}let d=i.visibleCommands(e).map(m=>o(i.subcommandTerm(m),i.subcommandDescription(m)));return d.length>0&&(l=l.concat(["Commands:",h(d),""])),l.join(`
|
|
30
|
+
`)}padWidth(e,i){return Math.max(i.longestOptionTermLength(e,i),i.longestGlobalOptionTermLength(e,i),i.longestSubcommandTermLength(e,i),i.longestArgumentTermLength(e,i))}wrap(e,i,r,s=40){let n=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${n}]+`);if(e.match(a))return e;let o=i-r;if(o<s)return e;let h=e.slice(0,r),l=e.slice(r).replace(`\r
|
|
31
31
|
`,`
|
|
32
|
-
`),c=" ".repeat(r),
|
|
33
|
-
|.{1,${
|
|
34
|
-
`?"":(
|
|
35
|
-
`)}};
|
|
32
|
+
`),c=" ".repeat(r),p="\\s\u200B",d=new RegExp(`
|
|
33
|
+
|.{1,${o-1}}([${p}]|$)|[^${p}]+?([${p}]|$)`,"g"),m=l.match(d)||[];return h+m.map((g,y)=>g===`
|
|
34
|
+
`?"":(y>0?c:"")+g.trimEnd()).join(`
|
|
35
|
+
`)}};Jo.Help=hs});var ds=v(ps=>{var{InvalidArgumentError:Op}=Ht(),cs=class{constructor(e,i){this.flags=e,this.description=i||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let r=Ip(e);this.short=r.shortFlag,this.long=r.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,i){return this.defaultValue=e,this.defaultValueDescription=i,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let i=e;return typeof e=="string"&&(i={[e]:!0}),this.implied=Object.assign(this.implied||{},i),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,i){return i===this.defaultValue||!Array.isArray(i)?[e]:i.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(i,r)=>{if(!this.argChoices.includes(i))throw new Op(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(i,r):i},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return Np(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},fs=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(i=>{i.negate?this.negativeOptions.set(i.attributeName(),i):this.positiveOptions.set(i.attributeName(),i)}),this.negativeOptions.forEach((i,r)=>{this.positiveOptions.has(r)&&this.dualOptions.add(r)})}valueFromOption(e,i){let r=i.attributeName();if(!this.dualOptions.has(r))return!0;let s=this.negativeOptions.get(r).presetArg,n=s!==void 0?s:!1;return i.negate===(n===e)}};function Np(t){return t.split("-").reduce((e,i)=>e+i[0].toUpperCase()+i.slice(1))}function Ip(t){let e,i,r=t.split(/[ |,]+/);return r.length>1&&!/^[[<]/.test(r[1])&&(e=r.shift()),i=r.shift(),!e&&/^-[^-]$/.test(i)&&(e=i,i=void 0),{shortFlag:e,longFlag:i}}ps.Option=cs;ps.DualOptions=fs});var Zo=v(Xo=>{function Lp(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let i=[];for(let r=0;r<=t.length;r++)i[r]=[r];for(let r=0;r<=e.length;r++)i[0][r]=r;for(let r=1;r<=e.length;r++)for(let s=1;s<=t.length;s++){let n=1;t[s-1]===e[r-1]?n=0:n=1,i[s][r]=Math.min(i[s-1][r]+1,i[s][r-1]+1,i[s-1][r-1]+n),s>1&&r>1&&t[s-1]===e[r-2]&&t[s-2]===e[r-1]&&(i[s][r]=Math.min(i[s][r],i[s-2][r-2]+1))}return i[t.length][e.length]}function Pp(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let i=t.startsWith("--");i&&(t=t.slice(2),e=e.map(a=>a.slice(2)));let r=[],s=3,n=.4;return e.forEach(a=>{if(a.length<=1)return;let o=Lp(t,a),h=Math.max(t.length,a.length);(h-o)/h>n&&(o<s?(s=o,r=[a]):o===s&&r.push(a))}),r.sort((a,o)=>a.localeCompare(o)),i&&(r=r.map(a=>`--${a}`)),r.length>1?`
|
|
36
36
|
(Did you mean one of ${r.join(", ")}?)`:r.length===1?`
|
|
37
|
-
(Did you mean ${r[0]}?)`:""}
|
|
38
|
-
- specify the name in Command constructor or using .name()`);return i=i||{},i.isDefault&&(this._defaultCommandName=e._name),(i.noHelp||i.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,i){return new
|
|
39
|
-
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(i):this._lifeCycleHooks[e]=[i],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=i=>{if(i.code!=="commander.executeSubCommandAsync")throw i},this}_exit(e,i,r){this._exitCallback&&this._exitCallback(new
|
|
40
|
-
- already used by option '${i.flags}'`)}this.options.push(e)}_registerCommand(e){let i=s=>[s.name()].concat(s.aliases()),r=i(e).find(s=>this._findCommand(s));if(r){let s=i(this._findCommand(r)).join("|"),n=i(e).join("|");throw new Error(`cannot add command '${n}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let i=e.name(),r=e.attributeName();if(e.negate){let n=e.long.replace(/^--no-/,"--");this._findOption(n)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let s=(n,a,
|
|
37
|
+
(Did you mean ${r[0]}?)`:""}Xo.suggestSimilar=Pp});var su=v(ru=>{var Tp=require("events").EventEmitter,ms=require("child_process"),Pe=require("path"),gs=require("fs"),D=require("process"),{Argument:Rp,humanReadableArgName:Mp}=Vi(),{CommanderError:xs}=Ht(),{Help:Fp}=ls(),{Option:eu,DualOptions:Vp}=ds(),{suggestSimilar:tu}=Zo(),ys=class t extends Tp{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:i=>D.stdout.write(i),writeErr:i=>D.stderr.write(i),getOutHelpWidth:()=>D.stdout.isTTY?D.stdout.columns:void 0,getErrHelpWidth:()=>D.stderr.isTTY?D.stderr.columns:void 0,outputError:(i,r)=>r(i)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let i=this;i;i=i.parent)e.push(i);return e}command(e,i,r){let s=i,n=r;typeof s=="object"&&s!==null&&(n=s,s=null),n=n||{};let[,a,o]=e.match(/([^ ]+) *(.*)/),h=this.createCommand(a);return s&&(h.description(s),h._executableHandler=!0),n.isDefault&&(this._defaultCommandName=h._name),h._hidden=!!(n.noHelp||n.hidden),h._executableFile=n.executableFile||null,o&&h.arguments(o),this._registerCommand(h),h.parent=this,h.copyInheritedSettings(this),s?this:h}createCommand(e){return new t(e)}createHelp(){return Object.assign(new Fp,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,i){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
38
|
+
- specify the name in Command constructor or using .name()`);return i=i||{},i.isDefault&&(this._defaultCommandName=e._name),(i.noHelp||i.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,i){return new Rp(e,i)}argument(e,i,r,s){let n=this.createArgument(e,i);return typeof r=="function"?n.default(s).argParser(r):n.default(r),this.addArgument(n),this}arguments(e){return e.trim().split(/ +/).forEach(i=>{this.argument(i)}),this}addArgument(e){let i=this.registeredArguments.slice(-1)[0];if(i&&i.variadic)throw new Error(`only the last argument can be variadic '${i.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,i){if(typeof e=="boolean")return this._addImplicitHelpCommand=e,this;e=e??"help [command]";let[,r,s]=e.match(/([^ ]+) *(.*)/),n=i??"display help for command",a=this.createCommand(r);return a.helpOption(!1),s&&a.arguments(s),n&&a.description(n),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(e,i){return typeof e!="object"?(this.helpCommand(e,i),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,i){let r=["preSubcommand","preAction","postAction"];if(!r.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
39
|
+
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(i):this._lifeCycleHooks[e]=[i],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=i=>{if(i.code!=="commander.executeSubCommandAsync")throw i},this}_exit(e,i,r){this._exitCallback&&this._exitCallback(new xs(e,i,r)),D.exit(e)}action(e){let i=r=>{let s=this.registeredArguments.length,n=r.slice(0,s);return this._storeOptionsAsProperties?n[s]=this:n[s]=this.opts(),n.push(this),e.apply(this,n)};return this._actionHandler=i,this}createOption(e,i){return new eu(e,i)}_callParseArg(e,i,r,s){try{return e.parseArg(i,r)}catch(n){if(n.code==="commander.invalidArgument"){let a=`${s} ${n.message}`;this.error(a,{exitCode:n.exitCode,code:n.code})}throw n}}_registerOption(e){let i=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(i){let r=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'
|
|
40
|
+
- already used by option '${i.flags}'`)}this.options.push(e)}_registerCommand(e){let i=s=>[s.name()].concat(s.aliases()),r=i(e).find(s=>this._findCommand(s));if(r){let s=i(this._findCommand(r)).join("|"),n=i(e).join("|");throw new Error(`cannot add command '${n}' as already have command '${s}'`)}this.commands.push(e)}addOption(e){this._registerOption(e);let i=e.name(),r=e.attributeName();if(e.negate){let n=e.long.replace(/^--no-/,"--");this._findOption(n)||this.setOptionValueWithSource(r,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(r,e.defaultValue,"default");let s=(n,a,o)=>{n==null&&e.presetArg!==void 0&&(n=e.presetArg);let h=this.getOptionValue(r);n!==null&&e.parseArg?n=this._callParseArg(e,n,h,a):n!==null&&e.variadic&&(n=e._concatValue(n,h)),n==null&&(e.negate?n=!1:e.isBoolean()||e.optional?n=!0:n=""),this.setOptionValueWithSource(r,n,o)};return this.on("option:"+i,n=>{let a=`error: option '${e.flags}' argument '${n}' is invalid.`;s(n,a,"cli")}),e.envVar&&this.on("optionEnv:"+i,n=>{let a=`error: option '${e.flags}' value '${n}' from env '${e.envVar}' is invalid.`;s(n,a,"env")}),this}_optionEx(e,i,r,s,n){if(typeof i=="object"&&i instanceof eu)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(i,r);if(a.makeOptionMandatory(!!e.mandatory),typeof s=="function")a.default(n).argParser(s);else if(s instanceof RegExp){let o=s;s=(h,l)=>{let c=o.exec(h);return c?c[0]:l},a.default(n).argParser(s)}else a.default(s);return this.addOption(a)}option(e,i,r,s){return this._optionEx({},e,i,r,s)}requiredOption(e,i,r,s){return this._optionEx({mandatory:!0},e,i,r,s)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,i){return this.setOptionValueWithSource(e,i,void 0)}setOptionValueWithSource(e,i,r){return this._storeOptionsAsProperties?this[e]=i:this._optionValues[e]=i,this._optionValueSources[e]=r,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let i;return this._getCommandAndAncestors().forEach(r=>{r.getOptionValueSource(e)!==void 0&&(i=r.getOptionValueSource(e))}),i}_prepareUserArgs(e,i){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");i=i||{},e===void 0&&(e=D.argv,D.versions&&D.versions.electron&&(i.from="electron")),this.rawArgs=e.slice();let r;switch(i.from){case void 0:case"node":this._scriptPath=e[1],r=e.slice(2);break;case"electron":D.defaultApp?(this._scriptPath=e[1],r=e.slice(2)):r=e.slice(1);break;case"user":r=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${i.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(e,i){let r=this._prepareUserArgs(e,i);return this._parseCommand([],r),this}async parseAsync(e,i){let r=this._prepareUserArgs(e,i);return await this._parseCommand([],r),this}_executeSubCommand(e,i){i=i.slice();let r=!1,s=[".js",".ts",".tsx",".mjs",".cjs"];function n(c,f){let p=Pe.resolve(c,f);if(gs.existsSync(p))return p;if(s.includes(Pe.extname(f)))return;let d=s.find(m=>gs.existsSync(`${p}${m}`));if(d)return`${p}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=e._executableFile||`${this._name}-${e._name}`,o=this._executableDir||"";if(this._scriptPath){let c;try{c=gs.realpathSync(this._scriptPath)}catch{c=this._scriptPath}o=Pe.resolve(Pe.dirname(c),o)}if(o){let c=n(o,a);if(!c&&!e._executableFile&&this._scriptPath){let f=Pe.basename(this._scriptPath,Pe.extname(this._scriptPath));f!==this._name&&(c=n(o,`${f}-${e._name}`))}a=c||a}r=s.includes(Pe.extname(a));let h;D.platform!=="win32"?r?(i.unshift(a),i=iu(D.execArgv).concat(i),h=ms.spawn(D.argv[0],i,{stdio:"inherit"})):h=ms.spawn(a,i,{stdio:"inherit"}):(i.unshift(a),i=iu(D.execArgv).concat(i),h=ms.spawn(D.execPath,i,{stdio:"inherit"})),h.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{D.on(f,()=>{h.killed===!1&&h.exitCode===null&&h.kill(f)})});let l=this._exitCallback;h.on("close",(c,f)=>{c=c??1,l?l(new xs(c,"commander.executeSubCommandAsync","(close)")):D.exit(c)}),h.on("error",c=>{if(c.code==="ENOENT"){let f=o?`searched for local subcommand relative to directory '${o}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",p=`'${a}' does not exist
|
|
41
41
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
42
42
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
43
|
-
- ${
|
|
43
|
+
- ${f}`;throw new Error(p)}else if(c.code==="EACCES")throw new Error(`'${a}' not executable`);if(!l)D.exit(1);else{let f=new xs(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,l(f)}}),this.runningCommand=h}_dispatchSubcommand(e,i,r){let s=this._findCommand(e);s||this.help({error:!0});let n;return n=this._chainOrCallSubCommandHook(n,s,"preSubcommand"),n=this._chainOrCall(n,()=>{if(s._executableHandler)this._executeSubCommand(s,i.concat(r));else return s._parseCommand(i,r)}),n}_dispatchHelpCommand(e){var r,s;e||this.help();let i=this._findCommand(e);return i&&!i._executableHandler&&i.help(),this._dispatchSubcommand(e,[],[((r=this._getHelpOption())==null?void 0:r.long)??((s=this._getHelpOption())==null?void 0:s.short)??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,i)=>{e.required&&this.args[i]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(r,s,n)=>{let a=s;if(s!==null&&r.parseArg){let o=`error: command-argument value '${s}' is invalid for argument '${r.name()}'.`;a=this._callParseArg(r,s,n,o)}return a};this._checkNumberOfArguments();let i=[];this.registeredArguments.forEach((r,s)=>{let n=r.defaultValue;r.variadic?s<this.args.length?(n=this.args.slice(s),r.parseArg&&(n=n.reduce((a,o)=>e(r,o,a),r.defaultValue))):n===void 0&&(n=[]):s<this.args.length&&(n=this.args[s],r.parseArg&&(n=e(r,n,r.defaultValue))),i[s]=n}),this.processedArgs=i}_chainOrCall(e,i){return e&&e.then&&typeof e.then=="function"?e.then(()=>i()):i()}_chainOrCallHooks(e,i){let r=e,s=[];return this._getCommandAndAncestors().reverse().filter(n=>n._lifeCycleHooks[i]!==void 0).forEach(n=>{n._lifeCycleHooks[i].forEach(a=>{s.push({hookedCommand:n,callback:a})})}),i==="postAction"&&s.reverse(),s.forEach(n=>{r=this._chainOrCall(r,()=>n.callback(n.hookedCommand,this))}),r}_chainOrCallSubCommandHook(e,i,r){let s=e;return this._lifeCycleHooks[r]!==void 0&&this._lifeCycleHooks[r].forEach(n=>{s=this._chainOrCall(s,()=>n(this,i))}),s}_parseCommand(e,i){let r=this.parseOptions(i);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(r.operands),i=r.unknown,this.args=e.concat(i),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),i);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(i),this._dispatchSubcommand(this._defaultCommandName,e,i);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},n=`command:${this.name()}`;if(this._actionHandler){s(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(n,e,i)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(n))s(),this._processArguments(),this.parent.emit(n,e,i);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,i);this.listenerCount("command:*")?this.emit("command:*",e,i):this.commands.length?this.unknownCommand():(s(),this._processArguments())}else this.commands.length?(s(),this.help({error:!0})):(s(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(i=>i._name===e||i._aliases.includes(e))}_findOption(e){return this.options.find(i=>i.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(i=>{i.mandatory&&e.getOptionValue(i.attributeName())===void 0&&e.missingMandatoryOptionValue(i)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(r=>{let s=r.attributeName();return this.getOptionValue(s)===void 0?!1:this.getOptionValueSource(s)!=="default"});e.filter(r=>r.conflictsWith.length>0).forEach(r=>{let s=e.find(n=>r.conflictsWith.includes(n.attributeName()));s&&this._conflictingOption(r,s)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let i=[],r=[],s=i,n=e.slice();function a(h){return h.length>1&&h[0]==="-"}let o=null;for(;n.length;){let h=n.shift();if(h==="--"){s===r&&s.push(h),s.push(...n);break}if(o&&!a(h)){this.emit(`option:${o.name()}`,h);continue}if(o=null,a(h)){let l=this._findOption(h);if(l){if(l.required){let c=n.shift();c===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,c)}else if(l.optional){let c=null;n.length>0&&!a(n[0])&&(c=n.shift()),this.emit(`option:${l.name()}`,c)}else this.emit(`option:${l.name()}`);o=l.variadic?l:null;continue}}if(h.length>2&&h[0]==="-"&&h[1]!=="-"){let l=this._findOption(`-${h[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,h.slice(2)):(this.emit(`option:${l.name()}`),n.unshift(`-${h.slice(2)}`));continue}}if(/^--[^=]+=/.test(h)){let l=h.indexOf("="),c=this._findOption(h.slice(0,l));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,h.slice(l+1));continue}}if(a(h)&&(s=r),(this._enablePositionalOptions||this._passThroughOptions)&&i.length===0&&r.length===0){if(this._findCommand(h)){i.push(h),n.length>0&&r.push(...n);break}else if(this._getHelpCommand()&&h===this._getHelpCommand().name()){i.push(h),n.length>0&&i.push(...n);break}else if(this._defaultCommandName){r.push(h),n.length>0&&r.push(...n);break}}if(this._passThroughOptions){s.push(h),n.length>0&&s.push(...n);break}s.push(h)}return{operands:i,unknown:r}}opts(){if(this._storeOptionsAsProperties){let e={},i=this.options.length;for(let r=0;r<i;r++){let s=this.options[r].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,i)=>Object.assign(e,i.opts()),{})}error(e,i){this._outputConfiguration.outputError(`${e}
|
|
44
44
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
45
45
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
46
|
-
`),this.outputHelp({error:!0}));let r=i||{},s=r.exitCode||1,n=r.code||"commander.error";this._exit(s,n,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in
|
|
47
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,i){return e===void 0&&i===void 0?this._description:(this._description=e,i&&(this._argsDescription=i),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){var s;if(e===void 0)return this._aliases[0];let i=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(i=this.commands[this.commands.length-1]),e===i._name)throw new Error("Command alias can't be the same as its name");let r=(s=this.parent)==null?void 0:s._findCommand(e);if(r){let n=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return i._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(i=>this.alias(i)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let i=this.registeredArguments.map(r=>
|
|
46
|
+
`),this.outputHelp({error:!0}));let r=i||{},s=r.exitCode||1,n=r.code||"commander.error";this._exit(s,n,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in D.env){let i=e.attributeName();(this.getOptionValue(i)===void 0||["default","config","env"].includes(this.getOptionValueSource(i)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,D.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new Vp(this.options),i=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&i(r.attributeName())&&e.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(s=>!i(s)).forEach(s=>{this.setOptionValueWithSource(s,r.implied[s],"implied")})})}missingArgument(e){let i=`error: missing required argument '${e}'`;this.error(i,{code:"commander.missingArgument"})}optionMissingArgument(e){let i=`error: option '${e.flags}' argument missing`;this.error(i,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let i=`error: required option '${e.flags}' not specified`;this.error(i,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,i){let r=a=>{let o=a.attributeName(),h=this.getOptionValue(o),l=this.options.find(f=>f.negate&&o===f.attributeName()),c=this.options.find(f=>!f.negate&&o===f.attributeName());return l&&(l.presetArg===void 0&&h===!1||l.presetArg!==void 0&&h===l.presetArg)?l:c||a},s=a=>{let o=r(a),h=o.attributeName();return this.getOptionValueSource(h)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},n=`error: ${s(e)} cannot be used with ${s(i)}`;this.error(n,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let i="";if(e.startsWith("--")&&this._showSuggestionAfterError){let s=[],n=this;do{let a=n.createHelp().visibleOptions(n).filter(o=>o.long).map(o=>o.long);s=s.concat(a),n=n.parent}while(n&&!n._enablePositionalOptions);i=tu(e,s)}let r=`error: unknown option '${e}'${i}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let i=this.registeredArguments.length,r=i===1?"":"s",n=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${i} argument${r} but got ${e.length}.`;this.error(n,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],i="";if(this._showSuggestionAfterError){let s=[];this.createHelp().visibleCommands(this).forEach(n=>{s.push(n.name()),n.alias()&&s.push(n.alias())}),i=tu(e,s)}let r=`error: unknown command '${e}'${i}`;this.error(r,{code:"commander.unknownCommand"})}version(e,i,r){if(e===void 0)return this._version;this._version=e,i=i||"-V, --version",r=r||"output the version number";let s=this.createOption(i,r);return this._versionOptionName=s.attributeName(),this._registerOption(s),this.on("option:"+s.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
47
|
+
`),this._exit(0,"commander.version",e)}),this}description(e,i){return e===void 0&&i===void 0?this._description:(this._description=e,i&&(this._argsDescription=i),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){var s;if(e===void 0)return this._aliases[0];let i=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(i=this.commands[this.commands.length-1]),e===i._name)throw new Error("Command alias can't be the same as its name");let r=(s=this.parent)==null?void 0:s._findCommand(e);if(r){let n=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return i._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(i=>this.alias(i)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let i=this.registeredArguments.map(r=>Mp(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?i:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Pe.basename(e,Pe.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let i=this.createHelp();return i.helpWidth===void 0&&(i.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),i.formatHelp(this,i)}_getHelpContext(e){e=e||{};let i={error:!!e.error},r;return i.error?r=s=>this._outputConfiguration.writeErr(s):r=s=>this._outputConfiguration.writeOut(s),i.write=e.write||r,i.command=this,i}outputHelp(e){var n;let i;typeof e=="function"&&(i=e,e=void 0);let r=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",r)),this.emit("beforeHelp",r);let s=this.helpInformation(r);if(i&&(s=i(s),typeof s!="string"&&!Buffer.isBuffer(s)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(s),(n=this._getHelpOption())!=null&&n.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",r),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",r))}helpOption(e,i){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",i=i??"display help for command",this._helpOption=this.createOption(e,i),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let i=D.exitCode||0;i===0&&e&&typeof e!="function"&&e.error&&(i=1),this._exit(i,"commander.help","(outputHelp)")}addHelpText(e,i){let r=["beforeAll","before","after","afterAll"];if(!r.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
48
48
|
Expecting one of '${r.join("', '")}'`);let s=`${e}Help`;return this.on(s,n=>{let a;typeof i=="function"?a=i({error:n.error,command:n.command}):a=i,a&&n.write(`${a}
|
|
49
|
-
`)}),this}_outputHelpIfRequested(e){let i=this._getHelpOption();i&&e.find(s=>i.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function za(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let i,r="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?i=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(i=n[1],/^\d+$/.test(n[3])?s=n[3]:r=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(i=n[1],r=n[3],s=n[4]),i&&s!=="0"?`${i}=${r}:${parseInt(s)+1}`:e})}Qa.Command=Pr});var Za=C(oe=>{var{Argument:Ja}=hi(),{Command:Lr}=Ka(),{CommanderError:kc,InvalidArgumentError:Ya}=At(),{Help:Ac}=wr(),{Option:Xa}=Ar();oe.program=new Lr;oe.createCommand=t=>new Lr(t);oe.createOption=(t,e)=>new Xa(t,e);oe.createArgument=(t,e)=>new Ja(t,e);oe.Command=Lr;oe.Option=Xa;oe.Argument=Ja;oe.Help=Ac;oe.CommanderError=kc;oe.InvalidArgumentError=Ya;oe.InvalidOptionArgumentError=Ya});var ao=C((hd,no)=>{no.exports=so;so.sync=Ic;var io=require("fs");function Oc(t,e){var i=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var r=0;r<i.length;r++){var s=i[r].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function ro(t,e,i){return!t.isSymbolicLink()&&!t.isFile()?!1:Oc(e,i)}function so(t,e,i){io.stat(t,function(r,s){i(r,r?!1:ro(s,t,e))})}function Ic(t,e){return ro(io.statSync(t),t,e)}});var co=C((ld,lo)=>{lo.exports=uo;uo.sync=Nc;var oo=require("fs");function uo(t,e,i){oo.stat(t,function(r,s){i(r,r?!1:ho(s,e))})}function Nc(t,e){return ho(oo.statSync(t),e)}function ho(t,e){return t.isFile()&&Pc(t,e)}function Pc(t,e){var i=t.mode,r=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),a=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),u=parseInt("100",8),h=parseInt("010",8),l=parseInt("001",8),c=u|h,p=i&l||i&h&&s===a||i&u&&r===n||i&c&&n===0;return p}});var po=C((fd,fo)=>{var cd=require("fs"),li;process.platform==="win32"||global.TESTING_WINDOWS?li=ao():li=co();fo.exports=Tr;Tr.sync=Lc;function Tr(t,e,i){if(typeof e=="function"&&(i=e,e={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,s){Tr(t,e||{},function(n,a){n?s(n):r(a)})})}li(t,e||{},function(r,s){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,s=!1),i(r,s)})}function Lc(t,e){try{return li.sync(t,e||{})}catch(i){if(e&&e.ignoreErrors||i.code==="EACCES")return!1;throw i}}});var Co=C((pd,bo)=>{var it=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",mo=require("path"),Tc=it?";":":",go=po(),xo=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),vo=(t,e)=>{let i=e.colon||Tc,r=t.match(/\//)||it&&t.match(/\\/)?[""]:[...it?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(i)],s=it?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=it?s.split(i):[""];return it&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:r,pathExt:n,pathExtExe:s}},yo=(t,e,i)=>{typeof e=="function"&&(i=e,e={}),e||(e={});let{pathEnv:r,pathExt:s,pathExtExe:n}=vo(t,e),a=[],u=l=>new Promise((c,p)=>{if(l===r.length)return e.all&&a.length?c(a):p(xo(t));let f=r[l],d=/^".*"$/.test(f)?f.slice(1,-1):f,m=mo.join(d,t),x=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;c(h(x,l,0))}),h=(l,c,p)=>new Promise((f,d)=>{if(p===s.length)return f(u(c+1));let m=s[p];go(l+m,{pathExt:n},(x,v)=>{if(!x&&v)if(e.all)a.push(l+m);else return f(l+m);return f(h(l,c,p+1))})});return i?u(0).then(l=>i(null,l),i):u(0)},Rc=(t,e)=>{e=e||{};let{pathEnv:i,pathExt:r,pathExtExe:s}=vo(t,e),n=[];for(let a=0;a<i.length;a++){let u=i[a],h=/^".*"$/.test(u)?u.slice(1,-1):u,l=mo.join(h,t),c=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let p=0;p<r.length;p++){let f=c+r[p];try{if(go.sync(f,{pathExt:s}))if(e.all)n.push(f);else return f}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw xo(t)};bo.exports=yo;yo.sync=Rc});var wo=C((dd,Rr)=>{"use strict";var _o=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};Rr.exports=_o;Rr.exports.default=_o});var Ao=C((md,ko)=>{"use strict";var So=require("path"),Mc=Co(),Vc=wo();function Eo(t,e){let i=t.options.env||process.env,r=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let a;try{a=Mc.sync(t.command,{path:i[Vc({env:i})],pathExt:e?So.delimiter:void 0})}catch{}finally{n&&process.chdir(r)}return a&&(a=So.resolve(s?t.options.cwd:"",a)),a}function Fc(t){return Eo(t)||Eo(t,!0)}ko.exports=Fc});var Oo=C((gd,Vr)=>{"use strict";var Mr=/([()\][%!^"`<>&|;, *?])/g;function Dc(t){return t=t.replace(Mr,"^$1"),t}function Bc(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Mr,"^$1"),e&&(t=t.replace(Mr,"^$1")),t}Vr.exports.command=Dc;Vr.exports.argument=Bc});var No=C((xd,Io)=>{"use strict";Io.exports=/^#!(.*)/});var Lo=C((vd,Po)=>{"use strict";var qc=No();Po.exports=(t="")=>{let e=t.match(qc);if(!e)return null;let[i,r]=e[0].replace(/#! ?/,"").split(" "),s=i.split("/").pop();return s==="env"?r:r?`${s} ${r}`:s}});var Ro=C((yd,To)=>{"use strict";var Fr=require("fs"),jc=Lo();function Uc(t){let i=Buffer.alloc(150),r;try{r=Fr.openSync(t,"r"),Fr.readSync(r,i,0,150,0),Fr.closeSync(r)}catch{}return jc(i.toString())}To.exports=Uc});var Do=C((bd,Fo)=>{"use strict";var Gc=require("path"),Mo=Ao(),Vo=Oo(),Hc=Ro(),Wc=process.platform==="win32",$c=/\.(?:com|exe)$/i,zc=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Qc(t){t.file=Mo(t);let e=t.file&&Hc(t.file);return e?(t.args.unshift(t.file),t.command=e,Mo(t)):t.file}function Kc(t){if(!Wc)return t;let e=Qc(t),i=!$c.test(e);if(t.options.forceShell||i){let r=zc.test(e);t.command=Gc.normalize(t.command),t.command=Vo.command(t.command),t.args=t.args.map(n=>Vo.argument(n,r));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Jc(t,e,i){e&&!Array.isArray(e)&&(i=e,e=null),e=e?e.slice(0):[],i=Object.assign({},i);let r={command:t,args:e,options:i,file:void 0,original:{command:t,args:e}};return i.shell?r:Kc(r)}Fo.exports=Jc});var jo=C((Cd,qo)=>{"use strict";var Dr=process.platform==="win32";function Br(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Yc(t,e){if(!Dr)return;let i=t.emit;t.emit=function(r,s){if(r==="exit"){let n=Bo(s,e,"spawn");if(n)return i.call(t,"error",n)}return i.apply(t,arguments)}}function Bo(t,e){return Dr&&t===1&&!e.file?Br(e.original,"spawn"):null}function Xc(t,e){return Dr&&t===1&&!e.file?Br(e.original,"spawnSync"):null}qo.exports={hookChildProcess:Yc,verifyENOENT:Bo,verifyENOENTSync:Xc,notFoundError:Br}});var Ho=C((_d,rt)=>{"use strict";var Uo=require("child_process"),qr=Do(),jr=jo();function Go(t,e,i){let r=qr(t,e,i),s=Uo.spawn(r.command,r.args,r.options);return jr.hookChildProcess(s,r),s}function Zc(t,e,i){let r=qr(t,e,i),s=Uo.spawnSync(r.command,r.args,r.options);return s.error=s.error||jr.verifyENOENTSync(s.status,r),s}rt.exports=Go;rt.exports.spawn=Go;rt.exports.sync=Zc;rt.exports._parse=qr;rt.exports._enoent=jr});var ru=C((Rd,iu)=>{"use strict";iu.exports=eu;function eu(t,e,i){t instanceof RegExp&&(t=Zo(t,i)),e instanceof RegExp&&(e=Zo(e,i));var r=tu(t,e,i);return r&&{start:r[0],end:r[1],pre:i.slice(0,r[0]),body:i.slice(r[0]+t.length,r[1]),post:i.slice(r[1]+e.length)}}function Zo(t,e){var i=e.match(t);return i?i[0]:null}eu.range=tu;function tu(t,e,i){var r,s,n,a,u,h=i.indexOf(t),l=i.indexOf(e,h+1),c=h;if(h>=0&&l>0){if(t===e)return[h,l];for(r=[],n=i.length;c>=0&&!u;)c==h?(r.push(c),h=i.indexOf(t,c+1)):r.length==1?u=[r.pop(),l]:(s=r.pop(),s<n&&(n=s,a=l),l=i.indexOf(e,c+1)),c=h<l&&h>=0?h:l;r.length&&(u=[n,a])}return u}});var cu=C((Md,lu)=>{var su=ru();lu.exports=lf;var nu="\0SLASH"+Math.random()+"\0",au="\0OPEN"+Math.random()+"\0",Kr="\0CLOSE"+Math.random()+"\0",ou="\0COMMA"+Math.random()+"\0",uu="\0PERIOD"+Math.random()+"\0";function Qr(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function uf(t){return t.split("\\\\").join(nu).split("\\{").join(au).split("\\}").join(Kr).split("\\,").join(ou).split("\\.").join(uu)}function hf(t){return t.split(nu).join("\\").split(au).join("{").split(Kr).join("}").split(ou).join(",").split(uu).join(".")}function hu(t){if(!t)return[""];var e=[],i=su("{","}",t);if(!i)return t.split(",");var r=i.pre,s=i.body,n=i.post,a=r.split(",");a[a.length-1]+="{"+s+"}";var u=hu(n);return n.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),e.push.apply(e,a),e}function lf(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ot(uf(t),!0).map(hf)):[]}function cf(t){return"{"+t+"}"}function ff(t){return/^-?0\d/.test(t)}function pf(t,e){return t<=e}function df(t,e){return t>=e}function Ot(t,e){var i=[],r=su("{","}",t);if(!r)return[t];var s=r.pre,n=r.post.length?Ot(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<n.length;a++){var u=s+"{"+r.body+"}"+n[a];i.push(u)}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=h||l,p=r.body.indexOf(",")>=0;if(!c&&!p)return r.post.match(/,.*\}/)?(t=r.pre+"{"+r.body+Kr+r.post,Ot(t)):[t];var f;if(c)f=r.body.split(/\.\./);else if(f=hu(r.body),f.length===1&&(f=Ot(f[0],!1).map(cf),f.length===1))return n.map(function(Lt){return r.pre+f[0]+Lt});var d;if(c){var m=Qr(f[0]),x=Qr(f[1]),v=Math.max(f[0].length,f[1].length),S=f.length==3?Math.abs(Qr(f[2])):1,F=pf,Y=x<m;Y&&(S*=-1,F=df);var W=f.some(ff);d=[];for(var z=m;F(z,x);z+=S){var B;if(l)B=String.fromCharCode(z),B==="\\"&&(B="");else if(B=String(z),W){var Pt=v-B.length;if(Pt>0){var be=new Array(Pt+1).join("0");z<0?B="-"+be+B.slice(1):B=be+B}}d.push(B)}}else{d=[];for(var ce=0;ce<f.length;ce++)d.push.apply(d,Ot(f[ce],!1))}for(var ce=0;ce<d.length;ce++)for(var a=0;a<n.length;a++){var u=s+d[ce]+n[a];(!e||c||u)&&i.push(u)}}return i}});var ip={};Rt(ip,{acorn:()=>Mi,acornLoose:()=>Vi,acornWalk:()=>Di,convertSourceMap:()=>tp,decode:()=>ns,foregroundChild:()=>Xo,mergeScriptCovs:()=>Au.mergeScriptCovs,minimatch:()=>H,parseCss:()=>Ou.default,program:()=>to,supportsColor:()=>ku});module.exports=Ru(ip);var tp=me(ts());var is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gu=new Uint8Array(64),ss=new Uint8Array(128);for(let t=0;t<is.length;t++){let e=is.charCodeAt(t);Gu[t]=e,ss[e]=t}function ns(t){let e=new Int32Array(5),i=[],r=0;do{let s=Hu(t,r),n=[],a=!0,u=0;e[0]=0;for(let h=r;h<s;h++){let l;h=at(t,h,e,0);let c=e[0];c<u&&(a=!1),u=c,rs(t,h,s)?(h=at(t,h,e,1),h=at(t,h,e,2),h=at(t,h,e,3),rs(t,h,s)?(h=at(t,h,e,4),l=[c,e[1],e[2],e[3],e[4]]):l=[c,e[1],e[2],e[3]]):l=[c],n.push(l)}a||Wu(n),i.push(n),r=s+1}while(r<=t.length);return i}function Hu(t,e){let i=t.indexOf(";",e);return i===-1?t.length:i}function at(t,e,i,r){let s=0,n=0,a=0;do{let h=t.charCodeAt(e++);a=ss[h],s|=(a&31)<<n,n+=5}while(a&32);let u=s&1;return s>>>=1,u&&(s=-2147483648|-s),i[r]+=s,e}function rs(t,e,i){return e>=i?!1:t.charCodeAt(e)!==44}function Wu(t){t.sort($u)}function $u(t,e){return t[0]-e[0]}var Au=me(Es());var Mi={};Rt(Mi,{Node:()=>we,Parser:()=>L,Position:()=>He,SourceLocation:()=>Ne,TokContext:()=>ie,Token:()=>Qe,TokenType:()=>A,defaultOptions:()=>We,getLineInfo:()=>Me,isIdentifierChar:()=>Re,isIdentifierStart:()=>ge,isNewLine:()=>fe,keywordTypes:()=>Wt,lineBreak:()=>Q,lineBreakG:()=>ft,nonASCIIwhitespace:()=>Oi,parse:()=>Wh,parseExpressionAt:()=>$h,tokContexts:()=>N,tokTypes:()=>o,tokenizer:()=>zh,version:()=>fn});var fh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Ps=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ph="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Ls="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",wi={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Si="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",dh={5:Si,"5module":Si+" export import",6:Si+" const class extends export import super"},mh=/^in(stanceof)?$/,gh=new RegExp("["+Ls+"]"),xh=new RegExp("["+Ls+ph+"]");function ki(t,e){for(var i=65536,r=0;r<e.length;r+=2){if(i+=e[r],i>t)return!1;if(i+=e[r+1],i>=t)return!0}return!1}function ge(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&gh.test(String.fromCharCode(t)):e===!1?!1:ki(t,Ps)}function Re(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&xh.test(String.fromCharCode(t)):e===!1?!1:ki(t,Ps)||ki(t,fh)}var A=function(e,i){i===void 0&&(i={}),this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function ee(t,e){return new A(t,{beforeExpr:!0,binop:e})}var te={beforeExpr:!0},X={startsExpr:!0},Wt={};function k(t,e){return e===void 0&&(e={}),e.keyword=t,Wt[t]=new A(t,e)}var o={num:new A("num",X),regexp:new A("regexp",X),string:new A("string",X),name:new A("name",X),privateId:new A("privateId",X),eof:new A("eof"),bracketL:new A("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new A("]"),braceL:new A("{",{beforeExpr:!0,startsExpr:!0}),braceR:new A("}"),parenL:new A("(",{beforeExpr:!0,startsExpr:!0}),parenR:new A(")"),comma:new A(",",te),semi:new A(";",te),colon:new A(":",te),dot:new A("."),question:new A("?",te),questionDot:new A("?."),arrow:new A("=>",te),template:new A("template"),invalidTemplate:new A("invalidTemplate"),ellipsis:new A("...",te),backQuote:new A("`",X),dollarBraceL:new A("${",{beforeExpr:!0,startsExpr:!0}),eq:new A("=",{beforeExpr:!0,isAssign:!0}),assign:new A("_=",{beforeExpr:!0,isAssign:!0}),incDec:new A("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new A("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ee("||",1),logicalAND:ee("&&",2),bitwiseOR:ee("|",3),bitwiseXOR:ee("^",4),bitwiseAND:ee("&",5),equality:ee("==/!=/===/!==",6),relational:ee("</>/<=/>=",7),bitShift:ee("<</>>/>>>",8),plusMin:new A("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ee("%",10),star:ee("*",10),slash:ee("/",10),starstar:new A("**",{beforeExpr:!0}),coalesce:ee("??",1),_break:k("break"),_case:k("case",te),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",te),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",te),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",X),_if:k("if"),_return:k("return",te),_switch:k("switch"),_throw:k("throw",te),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",X),_super:k("super",X),_class:k("class",X),_extends:k("extends",te),_export:k("export"),_import:k("import",X),_null:k("null",X),_true:k("true",X),_false:k("false",X),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Q=/\r\n?|\n|\u2028|\u2029/,ft=new RegExp(Q.source,"g");function fe(t){return t===10||t===13||t===8232||t===8233}function Ts(t,e,i){i===void 0&&(i=t.length);for(var r=e;r<i;r++){var s=t.charCodeAt(r);if(fe(s))return r<i-1&&s===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var Oi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,re=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Rs=Object.prototype,vh=Rs.hasOwnProperty,yh=Rs.toString,pt=Object.hasOwn||function(t,e){return vh.call(t,e)},ks=Array.isArray||function(t){return yh.call(t)==="[object Array]"},As=Object.create(null);function Oe(t){return As[t]||(As[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Ie(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var bh=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,He=function(e,i){this.line=e,this.column=i};He.prototype.offset=function(e){return new He(this.line,this.column+e)};var Ne=function(e,i,r){this.start=i,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)};function Me(t,e){for(var i=1,r=0;;){var s=Ts(t,r,e);if(s<0)return new He(i,e-r);++i,r=s}}var We={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Os=!1;function Ch(t){var e={};for(var i in We)e[i]=t&&pt(t,i)?t[i]:We[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!Os&&typeof console=="object"&&console.warn&&(Os=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
50
|
-
|
|
51
|
-
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Q).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=o.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ct),this.regexpState=null,this.privateNameStack=[]},xe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};L.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};xe.inFunction.get=function(){return(this.currentVarScope().flags&$e)>0};xe.inGenerator.get=function(){return(this.currentVarScope().flags&Ms)>0&&!this.currentVarScope().inClassFieldInit};xe.inAsync.get=function(){return(this.currentVarScope().flags&Ii)>0&&!this.currentVarScope().inClassFieldInit};xe.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags&dt)return!1;if(e.flags&$e)return(e.flags&Ii)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};xe.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&Ni)>0||i||this.options.allowSuperOutsideMethod};xe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ds)>0};xe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};xe.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&($e|dt))>0||i};xe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&dt)>0};L.extend=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var r=this,s=0;s<e.length;s++)r=e[s](r);return r};L.parse=function(e,i){return new this(i,e).parse()};L.parseExpressionAt=function(e,i,r){var s=new this(r,e,i);return s.nextToken(),s.parseExpression()};L.tokenizer=function(e,i){return new this(i,e)};Object.defineProperties(L.prototype,xe);var K=L.prototype,wh=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;K.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){re.lastIndex=t,t+=re.exec(this.input)[0].length;var e=wh.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){re.lastIndex=t+e[0].length;var i=re.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||Q.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}t+=e[0].length,re.lastIndex=t,t+=re.exec(this.input)[0].length,this.input[t]===";"&&t++}};K.eat=function(t){return this.type===t?(this.next(),!0):!1};K.isContextual=function(t){return this.type===o.name&&this.value===t&&!this.containsEsc};K.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};K.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};K.canInsertSemicolon=function(){return this.type===o.eof||this.type===o.braceR||Q.test(this.input.slice(this.lastTokEnd,this.start))};K.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};K.semicolon=function(){!this.eat(o.semi)&&!this.insertSemicolon()&&this.unexpected()};K.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};K.expect=function(t){this.eat(t)||this.unexpected()};K.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var $t=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};K.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}};K.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,r=t.doubleProto;if(!e)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};K.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};K.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var _=L.prototype;_.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==o.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var n=s[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var Ri={kind:"loop"},Sh={kind:"switch"};_.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;re.lastIndex=this.pos;var e=re.exec(this.input),i=this.pos+e[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(t)return!1;if(r===123||r>55295&&r<56320)return!0;if(ge(r,!0)){for(var s=i+1;Re(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var n=this.input.slice(i,s);if(!mh.test(n))return!0}return!1};_.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;re.lastIndex=this.pos;var t=re.exec(this.input),e=this.pos+t[0].length,i;return!Q.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(Re(i=this.input.charCodeAt(e+8))||i>55295&&i<56320))};_.parseStatement=function(t,e,i){var r=this.type,s=this.startNode(),n;switch(this.isLet(t)&&(r=o._var,n="let"),r){case o._break:case o._continue:return this.parseBreakContinueStatement(s,r.keyword);case o._debugger:return this.parseDebuggerStatement(s);case o._do:return this.parseDoStatement(s);case o._for:return this.parseForStatement(s);case o._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case o._class:return t&&this.unexpected(),this.parseClass(s,!0);case o._if:return this.parseIfStatement(s);case o._return:return this.parseReturnStatement(s);case o._switch:return this.parseSwitchStatement(s);case o._throw:return this.parseThrowStatement(s);case o._try:return this.parseTryStatement(s);case o._const:case o._var:return n=n||this.value,t&&n!=="var"&&this.unexpected(),this.parseVarStatement(s,n);case o._while:return this.parseWhileStatement(s);case o._with:return this.parseWithStatement(s);case o.braceL:return this.parseBlock(!0,s);case o.semi:return this.parseEmptyStatement(s);case o._export:case o._import:if(this.options.ecmaVersion>10&&r===o._import){re.lastIndex=this.pos;var a=re.exec(this.input),u=this.pos+a[0].length,h=this.input.charCodeAt(u);if(h===40||h===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===o._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var l=this.value,c=this.parseExpression();return r===o.name&&c.type==="Identifier"&&this.eat(o.colon)?this.parseLabeledStatement(s,l,c,t):this.parseExpressionStatement(s,c)}};_.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(o.semi)||this.insertSemicolon()?t.label=null:this.type!==o.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||t.label&&i))break}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")};_.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};_.parseDoStatement=function(t){return this.next(),this.labels.push(Ri),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(o._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(o.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};_.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ri),this.enterScope(0),this.expect(o.parenL),this.type===o.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===o._var||this.type===o._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===o._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r)):(e>-1&&this.unexpected(e),this.parseFor(t,r))}var n=this.isContextual("let"),a=!1,u=new $t,h=this.parseExpression(e>-1?"await":!0,u);return this.type===o._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===o._in?e>-1&&this.unexpected(e):t.await=e>-1),n&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,u),this.checkLValPattern(h),this.parseForIn(t,h)):(this.checkExpressionErrors(u,!0),e>-1&&this.unexpected(e),this.parseFor(t,h))};_.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,lt|(i?0:Ai),!1,e)};_.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};_.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(o.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};_.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(o.braceL),this.labels.push(Sh),this.enterScope(0);for(var e,i=!1;this.type!==o.braceR;)if(this.type===o._case||this.type===o._default){var r=this.type===o._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(o.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};_.parseThrowStatement=function(t){return this.next(),Q.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Eh=[];_.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?Fs:0),this.checkLValPattern(t,e?qs:_e),this.expect(o.parenR),t};_.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===o._catch){var e=this.startNode();this.next(),this.eat(o.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(o._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};_.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")};_.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ri),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};_.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};_.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};_.parseLabeledStatement=function(t,e,i,r){for(var s=0,n=this.labels;s<n.length;s+=1){var a=n[s];a.name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===o._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var l=this.labels[h];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=u;else break}return this.labels.push({name:e,kind:u,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")};_.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};_.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(o.braceL),t&&this.enterScope(0);this.type!==o.braceR;){var r=this.parseStatement(null);e.body.push(r)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};_.parseFor=function(t,e){return t.init=e,this.expect(o.semi),t.test=this.type===o.semi?null:this.parseExpression(),this.expect(o.semi),t.update=this.type===o.parenR?null:this.parseExpression(),this.expect(o.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};_.parseForIn=function(t,e){var i=this.type===o._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(o.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")};_.parseVar=function(t,e,i,r){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(o.eq)?s.init=this.parseMaybeAssign(e):!r&&i==="const"&&!(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&s.id.type!=="Identifier"&&!(e&&(this.type===o._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(o.comma))break}return t};_.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?Ti:_e,!1)};var lt=1,Ai=2,Us=4;_.parseFunction=function(t,e,i,r,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===o.star&&e&Ai&&this.unexpected(),t.generator=this.eat(o.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e<&&(t.id=e&Us&&this.type!==o.name?null:this.parseIdent(),t.id&&!(e&Ai)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?Ti:_e:Bs));var n=this.yieldPos,a=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Li(t.async,t.generator)),e<||(t.id=this.type===o.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=u,this.finishNode(t,e<?"FunctionDeclaration":"FunctionExpression")};_.parseFunctionParams=function(t){this.expect(o.parenL),t.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};_.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),s=this.startNode(),n=!1;for(s.body=[],this.expect(o.braceL);this.type!==o.braceR;){var a=this.parseClassElement(t.superClass!==null);a&&(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&kh(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};_.parseClassElement=function(t){if(this.eat(o.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,n=!1,a="method",u=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(o.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===o.star?u=!0:r="static"}if(i.static=u,!r&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===o.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(e>=9||!n)&&this.eat(o.star)&&(s=!0),!r&&!n&&!s){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:r=h)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===o.parenL||a!=="method"||s||n){var l=!i.static&&Gt(i,"constructor"),c=l&&t;l&&a!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,s,n,c)}else this.parseClassField(i);return i};_.isClassElementNameStart=function(){return this.type===o.name||this.type===o.privateId||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword};_.parseClassElementName=function(t){this.type===o.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};_.parseClassMethod=function(t,e,i,r){var s=t.key;t.kind==="constructor"?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&Gt(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,i,r);return t.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),t.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),t.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};_.parseClassField=function(t){if(Gt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&Gt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(o.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")};_.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(dt|Ni);this.type!==o.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};_.parseClassId=function(t,e){this.type===o.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,_e,!1)):(e===!0&&this.unexpected(),t.id=null)};_.parseClassSuper=function(t){t.superClass=this.eat(o._extends)?this.parseExprSubscripts(null,!1):null};_.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};_.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],n=0;n<i.length;++n){var a=i[n];pt(e,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function kh(t,e){var i=e.key.name,r=t[i],s="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(s=(e.static?"s":"i")+e.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(t[i]="true",!1):r?!0:(t[i]=s,!1)}function Gt(t,e){var i=t.computed,r=t.key;return!i&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}_.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==o.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};_.parseExport=function(t,e){if(this.next(),this.eat(o.star))return this.parseExportAllDeclaration(t,e);if(this.eat(o._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==o.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,r=t.specifiers;i<r.length;i+=1){var s=r[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};_.parseExportDeclaration=function(t){return this.parseStatement(null)};_.parseExportDefaultDeclaration=function(){var t;if(this.type===o._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,lt|Us,!1,t)}else if(this.type===o._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};_.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),pt(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)};_.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.checkPatternExport(t,n)}else if(i==="ArrayPattern")for(var a=0,u=e.elements;a<u.length;a+=1){var h=u[a];h&&this.checkPatternExport(t,h)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)};_.checkVariableExport=function(t,e){if(t)for(var i=0,r=e;i<r.length;i+=1){var s=r[i];this.checkPatternExport(t,s.id)}};_.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};_.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};_.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(i)i=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;e.push(this.parseExportSpecifier(t))}return e};_.parseImport=function(t){return this.next(),this.type===o.string?(t.specifiers=Eh,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===o.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};_.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,_e),this.finishNode(t,"ImportSpecifier")};_.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,_e),this.finishNode(t,"ImportDefaultSpecifier")};_.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,_e),this.finishNode(t,"ImportNamespaceSpecifier")};_.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===o.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(o.comma)))return t;if(this.type===o.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(o.braceL);!this.eat(o.braceR);){if(e)e=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;t.push(this.parseImportSpecifier())}return t};_.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===o.string){var t=this.parseLiteral(this.value);return bh.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};_.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};_.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var ne=L.prototype;ne.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.toAssignable(n,e),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t};ne.toAssignableList=function(t,e){for(var i=t.length,r=0;r<i;r++){var s=t[r];s&&this.toAssignable(s,e)}if(i){var n=t[i-1];this.options.ecmaVersion===6&&e&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return t};ne.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};ne.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==o.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};ne.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case o.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(o.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case o.braceL:return this.parseObj(!0)}return this.parseIdent()};ne.parseBindingList=function(t,e,i,r){for(var s=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(o.comma),e&&this.type===o.comma)s.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===o.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else s.push(this.parseAssignableListItem(r))}return s};ne.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};ne.parseBindingListItem=function(t){return t};ne.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(o.eq))return i;var r=this.startNodeAt(t,e);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};ne.checkLValSimple=function(t,e,i){e===void 0&&(e=Ut);var r=e!==Ut;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(e===_e&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(pt(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==js&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}};ne.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=Ut),t.type){case"ObjectPattern":for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,e,i)}break;case"ArrayPattern":for(var a=0,u=t.elements;a<u.length;a+=1){var h=u[a];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}};ne.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=Ut),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var ie=function(e,i,r,s,n){this.token=e,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!n},N={b_stat:new ie("{",!1),b_expr:new ie("{",!0),b_tmpl:new ie("${",!1),p_stat:new ie("(",!1),p_expr:new ie("(",!0),q_tmpl:new ie("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ie("function",!1),f_expr:new ie("function",!0),f_expr_gen:new ie("function",!0,!1,null,!0),f_gen:new ie("function",!1,!1,null,!0)},ze=L.prototype;ze.initialContext=function(){return[N.b_stat]};ze.curContext=function(){return this.context[this.context.length-1]};ze.braceIsBlock=function(t){var e=this.curContext();return e===N.f_expr||e===N.f_stat?!0:t===o.colon&&(e===N.b_stat||e===N.b_expr)?!e.isExpr:t===o._return||t===o.name&&this.exprAllowed?Q.test(this.input.slice(this.lastTokEnd,this.start)):t===o._else||t===o.semi||t===o.eof||t===o.parenR||t===o.arrow?!0:t===o.braceL?e===N.b_stat:t===o._var||t===o._const||t===o.name?!1:!this.exprAllowed};ze.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};ze.updateContext=function(t){var e,i=this.type;i.keyword&&t===o.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr};ze.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};o.parenR.updateContext=o.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===N.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};o.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?N.b_stat:N.b_expr),this.exprAllowed=!0};o.dollarBraceL.updateContext=function(){this.context.push(N.b_tmpl),this.exprAllowed=!0};o.parenL.updateContext=function(t){var e=t===o._if||t===o._for||t===o._with||t===o._while;this.context.push(e?N.p_stat:N.p_expr),this.exprAllowed=!0};o.incDec.updateContext=function(){};o._function.updateContext=o._class.updateContext=function(t){t.beforeExpr&&t!==o._else&&!(t===o.semi&&this.curContext()!==N.p_stat)&&!(t===o._return&&Q.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===o.colon||t===o.braceL)&&this.curContext()===N.b_stat)?this.context.push(N.f_expr):this.context.push(N.f_stat),this.exprAllowed=!1};o.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};o.backQuote.updateContext=function(){this.curContext()===N.q_tmpl?this.context.pop():this.context.push(N.q_tmpl),this.exprAllowed=!1};o.star.updateContext=function(t){if(t===o._function){var e=this.context.length-1;this.context[e]===N.f_expr?this.context[e]=N.f_expr_gen:this.context[e]=N.f_gen}this.exprAllowed=!0};o.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==o.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var w=L.prototype;w.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r=t.key,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&n==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);return}s="$"+s;var a=e[s];if(a){var u;n==="init"?u=this.strict&&a.init||a.get||a.set:u=a.init||a[n],u&&this.raiseRecoverable(r.start,"Redefinition of property")}else a=e[s]={init:!1,get:!1,set:!1};a[n]=!0}};w.parseExpression=function(t,e){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(t,e);if(this.type===o.comma){var n=this.startNodeAt(i,r);for(n.expressions=[s];this.eat(o.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return s};w.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,s=-1,n=-1,a=-1;e?(s=e.parenthesizedAssign,n=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new $t,r=!0);var u=this.start,h=this.startLoc;(this.type===o.parenL||this.type===o.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var l=this.parseMaybeConditional(t,e);if(i&&(l=i.call(this,l,u,h)),this.type.isAssign){var c=this.startNodeAt(u,h);return c.operator=this.value,this.type===o.eq&&(l=this.toAssignable(l,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=l.start&&(e.shorthandAssign=-1),this.type===o.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(c,"AssignmentExpression")}else r&&this.checkExpressionErrors(e,!0);return s>-1&&(e.parenthesizedAssign=s),n>-1&&(e.trailingComma=n),l};w.parseMaybeConditional=function(t,e){var i=this.start,r=this.startLoc,s=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return s;if(this.eat(o.question)){var n=this.startNodeAt(i,r);return n.test=s,n.consequent=this.parseMaybeAssign(),this.expect(o.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return s};w.parseExprOps=function(t,e){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,t)};w.parseExprOp=function(t,e,i,r,s){var n=this.type.binop;if(n!=null&&(!s||this.type!==o._in)&&n>r){var a=this.type===o.logicalOR||this.type===o.logicalAND,u=this.type===o.coalesce;u&&(n=o.logicalAND.binop);var h=this.value;this.next();var l=this.start,c=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,c,n,s),f=this.buildBinary(e,i,t,p,h,a||u);return(a&&this.type===o.coalesce||u&&(this.type===o.logicalOR||this.type===o.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,e,i,r,s)}return t};w.buildBinary=function(t,e,i,r,s,n){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=i,a.operator=s,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};w.parseMaybeUnary=function(t,e,i,r){var s=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(r),e=!0;else if(this.type.prefix){var u=this.startNode(),h=this.type===o.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,h,r),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&u.argument.type==="Identifier"?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&Gs(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):e=!0,a=this.finishNode(u,h?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===o.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==o._in&&this.unexpected();else{if(a=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,n);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}if(!i&&this.eat(o.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(s,n,a,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return a};function Gs(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Gs(t.expression)}w.parseExprSubscripts=function(t,e){var i=this.start,r=this.startLoc,s=this.parseExprAtom(t,e);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var n=this.parseSubscripts(s,i,r,!1,e);return t&&n.type==="MemberExpression"&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n};w.parseSubscripts=function(t,e,i,r,s){for(var n=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var u=this.parseSubscript(t,e,i,r,n,a,s);if(u.optional&&(a=!0),u===t||u.type==="ArrowFunctionExpression"){if(a){var h=this.startNodeAt(e,i);h.expression=u,u=this.finishNode(h,"ChainExpression")}return u}t=u}};w.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(o.arrow)};w.parseSubscriptAsyncArrow=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,r)};w.parseSubscript=function(t,e,i,r,s,n,a){var u=this.options.ecmaVersion>=11,h=u&&this.eat(o.questionDot);r&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(o.bracketL);if(l||h&&this.type!==o.parenL&&this.type!==o.backQuote||this.eat(o.dot)){var c=this.startNodeAt(e,i);c.object=t,l?(c.property=this.parseExpression(),this.expect(o.bracketR)):this.type===o.privateId&&t.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!l,u&&(c.optional=h),t=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(o.parenL)){var p=new $t,f=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var x=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1,p);if(s&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(e,i,x,a);this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var v=this.startNodeAt(e,i);v.callee=t,v.arguments=x,u&&(v.optional=h),t=this.finishNode(v,"CallExpression")}else if(this.type===o.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var S=this.startNodeAt(e,i);S.tag=t,S.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(S,"TaggedTemplateExpression")}return t};w.parseExprAtom=function(t,e,i){this.type===o.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case o._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===o.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==o.dot&&this.type!==o.bracketL&&this.type!==o.parenL&&this.unexpected(),this.finishNode(r,"Super");case o._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case o.name:var n=this.start,a=this.startLoc,u=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(o._function))return this.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(o.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,e);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===o.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(o.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,e)}return h;case o.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case o.num:case o.string:return this.parseLiteral(this.value);case o._null:case o._true:case o._false:return r=this.startNode(),r.value=this.type===o._null?null:this.type===o._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case o.parenL:var c=this.start,p=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),p;case o.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(o.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case o.braceL:return this.overrideContext(N.b_expr),this.parseObj(!1,t);case o._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case o._class:return this.parseClass(this.startNode(),!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate();case o._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};w.parseExprAtomDefault=function(){this.unexpected()};w.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===o.parenL&&!t)return this.parseDynamicImport(e);if(this.type===o.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};w.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(o.parenR)){var e=this.start;this.eat(o.comma)&&this.eat(o.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};w.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};w.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};w.parseParenExpression=function(){this.expect(o.parenL);var t=this.parseExpression();return this.expect(o.parenR),t};w.shouldParseArrow=function(t){return!this.canInsertSemicolon()};w.parseParenAndDistinguishExpression=function(t,e){var i=this.start,r=this.startLoc,s,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,u=this.startLoc,h=[],l=!0,c=!1,p=new $t,f=this.yieldPos,d=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==o.parenR;)if(l?l=!1:this.expect(o.comma),n&&this.afterTrailingComma(o.parenR,!0)){c=!0;break}else if(this.type===o.ellipsis){m=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var x=this.lastTokEnd,v=this.lastTokEndLoc;if(this.expect(o.parenR),t&&this.shouldParseArrow(h)&&this.eat(o.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(i,r,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?(s=this.startNodeAt(a,u),s.expressions=h,this.finishNodeAt(s,"SequenceExpression",x,v)):s=h[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var S=this.startNodeAt(i,r);return S.expression=s,this.finishNode(S,"ParenthesizedExpression")}else return s};w.parseParenItem=function(t){return t};w.parseParenArrowList=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,r)};var Ah=[];w.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===o.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(o.parenL)?t.arguments=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Ah,this.finishNode(t,"NewExpression")};w.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===o.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
52
|
-
`),cooked:this.value},this.next(),i.tail=this.type===o.backQuote,this.finishNode(i,"TemplateElement")};w.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(i.quasis=[r];!r.tail;)this.type===o.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(o.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(o.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")};w.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===o.name||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===o.star)&&!Q.test(this.input.slice(this.lastTokEnd,this.start))};w.parseObj=function(t,e){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(o.braceR);){if(r)r=!1;else if(this.expect(o.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(o.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,s,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")};w.parseProperty=function(t,e){var i=this.startNode(),r,s,n,a;if(this.options.ecmaVersion>=9&&this.eat(o.ellipsis))return t?(i.argument=this.parseIdent(!1),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,e),this.type===o.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(t||e)&&(n=this.start,a=this.startLoc),t||(r=this.eat(o.star)));var u=this.containsEsc;return this.parsePropertyName(i),!t&&!u&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(o.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,t,r,s,n,a,e,u),this.finishNode(i,"Property")};w.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e=t.kind==="get"?0:1;if(t.value.params.length!==e){var i=t.value.start;t.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};w.parsePropertyValue=function(t,e,i,r,s,n,a,u){(i||r)&&this.type===o.colon&&this.unexpected(),this.eat(o.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===o.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,r)):!e&&!u&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==o.comma&&this.type!==o.braceR&&this.type!==o.eq?((i||r)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,n,this.copyNode(t.key)):this.type===o.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected()};w.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(o.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(o.bracketR),t.key;t.computed=!1}return t.key=this.type===o.num||this.type===o.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};w.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};w.parseMethod=function(t,e,i){var r=this.startNode(),s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Li(e,r.generator)|Ni|(i?Ds:0)),this.expect(o.parenL),r.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")};w.parseArrowExpression=function(t,e,i,r){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Li(i,!1)|Vs),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")};w.parseFunctionBody=function(t,e,i,r){var s=e&&this.type!==o.braceL,n=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!n||u)&&(a=this.strictDirective(this.end),a&&u&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!n&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,js),t.body=this.parseBlock(!1,void 0,a&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()};w.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){var r=i[e];if(r.type!=="Identifier")return!1}return!0};w.checkParams=function(t,e){for(var i=Object.create(null),r=0,s=t.params;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,Ti,e?null:i)}};w.parseExprList=function(t,e,i,r){for(var s=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(o.comma),e&&this.afterTrailingComma(t))break;var a=void 0;i&&this.type===o.comma?a=null:this.type===o.ellipsis?(a=this.parseSpread(r),r&&this.type===o.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s};w.checkUnreserved=function(t){var e=t.start,i=t.end,r=t.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&r==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))}};w.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=e.start)),e};w.parseIdentNode=function(){var t=this.startNode();return this.type===o.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=o.name):this.unexpected(),t};w.parsePrivateIdent=function(){var t=this.startNode();return this.type===o.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};w.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===o.semi||this.canInsertSemicolon()||this.type!==o.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(o.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};w.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Ht=L.prototype;Ht.raise=function(t,e){var i=Me(this.input,t);e+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(e);throw r.pos=t,r.loc=i,r.raisedAt=this.pos,r};Ht.raiseRecoverable=Ht.raise;Ht.curPosition=function(){if(this.options.locations)return new He(this.curLine,this.pos-this.lineStart)};var Pe=L.prototype,Oh=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Pe.enterScope=function(t){this.scopeStack.push(new Oh(t))};Pe.exitScope=function(){this.scopeStack.pop()};Pe.treatFunctionsAsVarInScope=function(t){return t.flags&$e||!this.inModule&&t.flags&ct};Pe.declareName=function(t,e,i){var r=!1;if(e===_e){var s=this.currentScope();r=s.lexical.indexOf(t)>-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&s.flags&ct&&delete this.undefinedExports[t]}else if(e===qs){var n=this.currentScope();n.lexical.push(t)}else if(e===Bs){var a=this.currentScope();this.treatFunctionsAsVar?r=a.lexical.indexOf(t)>-1:r=a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var u=this.scopeStack.length-1;u>=0;--u){var h=this.scopeStack[u];if(h.lexical.indexOf(t)>-1&&!(h.flags&Fs&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){r=!0;break}if(h.var.push(t),this.inModule&&h.flags&ct&&delete this.undefinedExports[t],h.flags&Pi)break}r&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")};Pe.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};Pe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Pe.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&Pi)return e}};Pe.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&Pi&&!(e.flags&Vs))return e}};var we=function(e,i,r){this.type="",this.start=i,this.end=0,e.options.locations&&(this.loc=new Ne(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[i,0])},mt=L.prototype;mt.startNode=function(){return new we(this,this.start,this.startLoc)};mt.startNodeAt=function(t,e){return new we(this,t,e)};function Hs(t,e,i,r){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=i),t}mt.finishNode=function(t,e){return Hs.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};mt.finishNodeAt=function(t,e,i,r){return Hs.call(this,t,e,i,r)};mt.copyNode=function(t){var e=new we(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var Ws="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",$s=Ws+" Extended_Pictographic",zs=$s,Qs=zs+" EBase EComp EMod EPres ExtPict",Ks=Qs,Ih=Ks,Nh={9:Ws,10:$s,11:zs,12:Qs,13:Ks,14:Ih},Ph="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Lh={9:"",10:"",11:"",12:"",13:"",14:Ph},Is="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Js="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ys=Js+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Xs=Ys+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Zs=Xs+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",en=Zs+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Th=en+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Rh={9:Js,10:Ys,11:Xs,12:Zs,13:en,14:Th},tn={};function Mh(t){var e=tn[t]={binary:Oe(Nh[t]+" "+Is),binaryOfStrings:Oe(Lh[t]),nonBinary:{General_Category:Oe(Is),Script:Oe(Rh[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(jt=0,Ei=[9,10,11,12,13,14];jt<Ei.length;jt+=1)Ns=Ei[jt],Mh(Ns);var Ns,jt,Ei,y=L.prototype,ve=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};ve.prototype.reset=function(e,i,r){var s=r.indexOf("v")!==-1,n=r.indexOf("u")!==-1;this.start=e|0,this.source=i+"",this.flags=r,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};ve.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};ve.prototype.at=function(e,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(e>=s)return-1;var n=r.charCodeAt(e);if(!(i||this.switchU)||n<=55295||n>=57344||e+1>=s)return n;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(n<<10)+a-56613888:n};ve.prototype.nextIndex=function(e,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(e>=s)return s;var n=r.charCodeAt(e),a;return!(i||this.switchU)||n<=55295||n>=57344||e+1>=s||(a=r.charCodeAt(e+1))<56320||a>57343?e+1:e+2};ve.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};ve.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};ve.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};ve.prototype.eat=function(e,i){return i===void 0&&(i=!1),this.current(i)===e?(this.advance(i),!0):!1};ve.prototype.eatChars=function(e,i){i===void 0&&(i=!1);for(var r=this.pos,s=0,n=e;s<n.length;s+=1){var a=n[s],u=this.at(r,i);if(u===-1||u!==a)return!1;r=this.nextIndex(r,i)}return this.pos=r,!0};y.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,r=!1,s=!1,n=0;n<i.length;n++){var a=i.charAt(n);e.indexOf(a)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),a==="u"&&(r=!0),a==="v"&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(t.start,"Invalid regular expression flag")};y.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))};y.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var r=i[e];t.groupNames.indexOf(r)===-1&&t.raise("Invalid named capture referenced")}};y.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};y.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};y.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};y.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1};y.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};y.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};y.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return s!==-1&&s<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1};y.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};y.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};y.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1};y.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};y.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};y.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};y.regexp_eatSyntaxCharacter=function(t){var e=t.current();return rn(e)?(t.lastIntValue=e,t.advance(),!0):!1};function rn(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}y.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!rn(i);)t.advance();return t.pos!==e};y.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};y.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){t.groupNames.indexOf(t.lastStringValue)!==-1&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};y.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};y.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Ie(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Ie(t.lastIntValue);return!0}return!1};y.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),Vh(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function Vh(t){return ge(t,!0)||t===36||t===95}y.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),Fh(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function Fh(t){return Re(t,!0)||t===36||t===95||t===8204||t===8205}y.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};y.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1};y.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};y.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};y.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};y.regexp_eatZero=function(t){return t.current()===48&&!zt(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};y.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};y.regexp_eatControlLetter=function(t){var e=t.current();return sn(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function sn(t){return t>=65&&t<=90||t>=97&&t<=122}y.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(r&&s>=55296&&s<=56319){var n=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}t.pos=n,t.lastIntValue=s}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Dh(t.lastIntValue))return!0;r&&t.raise("Invalid unicode escape"),t.pos=i}return!1};function Dh(t){return t>=0&&t<=1114111}y.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};y.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};var nn=0,Ce=1,se=2;y.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(Bh(e))return t.lastIntValue=-1,t.advance(),Ce;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){t.lastIntValue=-1,t.advance();var r;if(t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&r===se&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return nn};function Bh(t){return t===100||t===68||t===115||t===83||t===119||t===87}y.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,r),Ce}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return nn};y.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){pt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")};y.regexp_validateUnicodePropertyNameOrValue=function(t,e){if(t.unicodeProperties.binary.test(e))return Ce;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(e))return se;t.raise("Invalid property name")};y.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";an(e=t.current());)t.lastStringValue+=Ie(e),t.advance();return t.lastStringValue!==""};function an(t){return sn(t)||t===95}y.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";qh(e=t.current());)t.lastStringValue+=Ie(e),t.advance();return t.lastStringValue!==""};function qh(t){return an(t)||zt(t)}y.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};y.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===se&&t.raise("Negated character class may contain strings"),!0}return!1};y.regexp_classContents=function(t){return t.current()===93?Ce:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Ce)};y.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(e===-1||i===-1)&&t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}};y.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||hn(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return r!==93?(t.lastIntValue=r,t.advance(),!0):!1};y.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};y.regexp_classSetExpression=function(t){var e=Ce,i;if(!this.regexp_eatClassSetRange(t))if(i=this.regexp_eatClassSetOperand(t)){i===se&&(e=se);for(var r=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(i=this.regexp_eatClassSetOperand(t))){i!==se&&(e=Ce);continue}t.raise("Invalid character in character class")}if(r!==t.pos)return e;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return e}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(i=this.regexp_eatClassSetOperand(t),!i)return e;i===se&&(e=se)}};y.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return i!==-1&&r!==-1&&i>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1};y.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Ce:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};y.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return i&&r===se&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null};y.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null};y.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===se&&(e=se);return e};y.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?Ce:se};y.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1);var i=t.current();return i<0||i===t.lookahead()&&jh(i)||Uh(i)?!1:(t.advance(),t.lastIntValue=i,!0)};function jh(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Uh(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}y.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return Gh(e)?(t.lastIntValue=e,t.advance(),!0):!1};function Gh(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}y.regexp_eatClassControlLetter=function(t){var e=t.current();return zt(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};y.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};y.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;zt(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e};function zt(t){return t>=48&&t<=57}y.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;on(i=t.current());)t.lastIntValue=16*t.lastIntValue+un(i),t.advance();return t.pos!==e};function on(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function un(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}y.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+i*8+t.lastIntValue:t.lastIntValue=e*8+i}else t.lastIntValue=e;return!0}return!1};y.regexp_eatOctalDigit=function(t){var e=t.current();return hn(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function hn(t){return t>=48&&t<=55}y.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var s=t.current();if(!on(s))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+un(s),t.advance()}return!0};var Qe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Ne(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},E=L.prototype;E.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Qe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};E.getToken=function(){return this.next(),new Qe(this)};typeof Symbol<"u"&&(E[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===o.eof,value:e}}}});E.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(o.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};E.readToken=function(t){return ge(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};E.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888};E.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,s=e;(r=Ts(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())};E.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!fe(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())};E.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&Oi.test(String.fromCharCode(t)))++this.pos;else break e}}};E.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)};E.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(o.ellipsis)):(++this.pos,this.finishToken(o.dot))};E.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(o.assign,2):this.finishOp(o.slash,1)};E.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,r=t===42?o.star:o.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,r=o.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(o.assign,i+1):this.finishOp(r,i)};E.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(o.assign,3)}return this.finishOp(t===124?o.logicalOR:o.logicalAND,2)}return e===61?this.finishOp(o.assign,2):this.finishOp(t===124?o.bitwiseOR:o.bitwiseAND,1)};E.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(o.assign,2):this.finishOp(o.bitwiseXOR,1)};E.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Q.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(o.incDec,2):e===61?this.finishOp(o.assign,2):this.finishOp(o.plusMin,1)};E.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(o.assign,i+1):this.finishOp(o.bitShift,i)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(i=2),this.finishOp(o.relational,i))};E.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(o.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(o.arrow)):this.finishOp(t===61?o.eq:o.prefix,1)};E.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(o.questionDot,2)}if(e===63){if(t>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(o.assign,3)}return this.finishOp(o.coalesce,2)}}return this.finishOp(o.question,1)};E.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),ge(e,!0)||e===92))return this.finishToken(o.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Ie(e)+"'")};E.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(o.parenL);case 41:return++this.pos,this.finishToken(o.parenR);case 59:return++this.pos,this.finishToken(o.semi);case 44:return++this.pos,this.finishToken(o.comma);case 91:return++this.pos,this.finishToken(o.bracketL);case 93:return++this.pos,this.finishToken(o.bracketR);case 123:return++this.pos,this.finishToken(o.braceL);case 125:return++this.pos,this.finishToken(o.braceR);case 58:return++this.pos,this.finishToken(o.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(o.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(o.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ie(t)+"'")};E.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)};E.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Q.test(r)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new ve(this));u.reset(i,s,a),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var h=null;try{h=new RegExp(s,a)}catch{}return this.finishToken(o.regexp,{pattern:s,flags:a,value:h})};E.readInt=function(t,e,i){for(var r=this.options.ecmaVersion>=12&&e===void 0,s=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,a=0,u=0,h=0,l=e??1/0;h<l;++h,++this.pos){var c=this.input.charCodeAt(this.pos),p=void 0;if(r&&c===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=c;continue}if(c>=97?p=c-97+10:c>=65?p=c-65+10:c>=48&&c<=57?p=c-48:p=1/0,p>=t)break;u=c,a=a*t+p}return r&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||e!=null&&this.pos-n!==e?null:a};function Hh(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function ln(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}E.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ln(this.input.slice(e,this.pos)),++this.pos):ge(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(o.num,i)};E.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&r===110){var s=ln(this.input.slice(e,this.pos));return++this.pos,ge(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(o.num,s)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),ge(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Hh(this.input.slice(e,this.pos),i);return this.finishToken(o.num,n)};E.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else e=this.readHexChar(4);return e};E.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;r===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(fe(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(o.string,e)};var cn={};E.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===cn)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};E.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw cn;this.raise(t,e)};E.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===o.template||this.type===o.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(o.dollarBraceL)):(++this.pos,this.finishToken(o.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(o.template,t));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(fe(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
53
|
-
|
|
54
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ie(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),(r!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return fe(e)?"":String.fromCharCode(e)}};E.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i};E.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(Re(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,t+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?ge:Re)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=Ie(a),i=this.pos}else break;e=!1}return t+this.input.slice(i,this.pos)};E.readWord=function(){var t=this.readWord1(),e=o.name;return this.keywords.test(t)&&(e=Wt[t]),this.finishToken(e,t)};var fn="8.11.3";L.acorn={Parser:L,version:fn,defaultOptions:We,Position:He,SourceLocation:Ne,getLineInfo:Me,Node:we,TokenType:A,tokTypes:o,keywordTypes:Wt,TokContext:ie,tokContexts:N,isIdentifierChar:Re,isIdentifierStart:ge,Token:Qe,isNewLine:fe,lineBreak:Q,lineBreakG:ft,nonASCIIwhitespace:Oi};function Wh(t,e){return L.parse(t,e)}function $h(t,e,i){return L.parseExpressionAt(t,e,i)}function zh(t,e){return L.tokenizer(t,e)}var Vi={};Rt(Vi,{LooseParser:()=>I,isDummy:()=>ye,parse:()=>Kh});var Qt="\u2716";function ye(t){return t.name===Qt}function pn(){}var I=function(e,i){if(i===void 0&&(i={}),this.toks=this.constructor.BaseParser.tokenizer(e,i),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:o.eof,start:0,end:0},this.tok.validateRegExpFlags=pn,this.tok.validateRegExpPattern=pn,this.options.locations){var r=this.toks.curPosition();this.tok.loc=new Ne(this.toks,r,r)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};I.prototype.startNode=function(){return new we(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)};I.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start};I.prototype.startNodeAt=function(e){return this.options.locations?new we(this.toks,e[0],e[1]):new we(this.toks,e)};I.prototype.finishNode=function(e,i){return e.type=i,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e};I.prototype.dummyNode=function(e){var i=this.startNode();return i.type=e,i.end=i.start,this.options.locations&&(i.loc.end=i.loc.start),this.options.ranges&&(i.range[1]=i.start),this.last={type:o.name,start:i.start,end:i.start,loc:i.loc},i};I.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=Qt,e};I.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=Qt,e};I.prototype.eat=function(e){return this.tok.type===e?(this.next(),!0):!1};I.prototype.isContextual=function(e){return this.tok.type===o.name&&this.tok.value===e};I.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(o.name)};I.prototype.canInsertSemicolon=function(){return this.tok.type===o.eof||this.tok.type===o.braceR||Q.test(this.input.slice(this.last.end,this.tok.start))};I.prototype.semicolon=function(){return this.eat(o.semi)};I.prototype.expect=function(e){if(this.eat(e))return!0;for(var i=1;i<=2;i++)if(this.lookAhead(i).type===e){for(var r=0;r<i;r++)this.next();return!0}};I.prototype.pushCx=function(){this.context.push(this.curIndent)};I.prototype.popCx=function(){this.curIndent=this.context.pop()};I.prototype.lineEnd=function(e){for(;e<this.input.length&&!fe(this.input.charCodeAt(e));)++e;return e};I.prototype.indentationAfter=function(e){for(var i=0;;++e){var r=this.input.charCodeAt(e);if(r===32)++i;else if(r===9)i+=this.options.tabSize;else return i}};I.prototype.closes=function(e,i,r,s){return this.tok.type===e||this.tok.type===o.eof?!0:r!==this.curLineStart&&this.curIndent<i&&this.tokenStartsLine()&&(!s||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<i)};I.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=this.curLineStart;--e){var i=this.input.charCodeAt(e);if(i!==9&&i!==32)return!1}return!0};I.prototype.extend=function(e,i){this[e]=i(this[e])};I.prototype.parse=function(){return this.next(),this.parseTopLevel()};I.extend=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var r=this,s=0;s<e.length;s++)r=e[s](r);return r};I.parse=function(e,i){return new this(e,i).parse()};I.BaseParser=L;var Kt=I.prototype;function Qh(t){return t<14&&t>8||t===32||t===160||fe(t)}Kt.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}};Kt.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===o.dot&&this.input.substr(this.toks.end,1)==="."&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=o.ellipsis),new Qe(this.toks)}catch(n){if(!(n instanceof SyntaxError))throw n;var t=n.message,e=n.raisedAt,i=!0;if(/unterminated/i.test(t))if(e=this.lineEnd(n.pos+1),/string/.test(t))i={start:n.pos,end:e,type:o.string,value:this.input.slice(n.pos+1,e)};else if(/regular expr/i.test(t)){var r=this.input.slice(n.pos,e);try{r=new RegExp(r)}catch{}i={start:n.pos,end:e,type:o.regexp,value:r}}else/template/.test(t)?i={start:n.pos,end:e,type:o.template,value:this.input.slice(n.pos,e)}:i=!1;else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(t))for(;e<this.input.length&&!Qh(this.input.charCodeAt(e));)++e;else if(/character escape|expected hexadecimal/i.test(t))for(;e<this.input.length;){var s=this.input.charCodeAt(e++);if(s===34||s===39||fe(s))break}else if(/unexpected character/i.test(t))e++,i=!1;else if(/regular expression/i.test(t))i=!0;else throw n;if(this.resetTo(e),i===!0&&(i={start:e,end:e,type:o.name,value:Qt}),i)return this.options.locations&&(i.loc=new Ne(this.toks,Me(this.input,i.start),Me(this.input,i.end))),i}};Kt.resetTo=function(t){this.toks.pos=t,this.toks.containsEsc=!1;var e=this.input.charAt(t-1);if(this.toks.exprAllowed=!e||/[[{(,;:?/*=+\-~!|&%^<>]/.test(e)||/[enwfd]/.test(e)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(t-10,t)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=ft.lastIndex=0;for(var i;(i=ft.exec(this.input))&&i.index<t;)++this.toks.curLine,this.toks.lineStart=i.index+i[0].length}};Kt.lookAhead=function(t){for(;t>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[t-1]};var U=I.prototype;U.parseTopLevel=function(){var t=this.startNodeAt(this.options.locations?[0,Me(this.input,0)]:0);for(t.body=[];this.tok.type!==o.eof;)t.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(t.body),this.last=this.tok,t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};U.parseStatement=function(){var t=this.tok.type,e=this.startNode(),i;switch(this.toks.isLet()&&(t=o._var,i="let"),t){case o._break:case o._continue:this.next();var r=t===o._break;return this.semicolon()||this.canInsertSemicolon()?e.label=null:(e.label=this.tok.type===o.name?this.parseIdent():null,this.semicolon()),this.finishNode(e,r?"BreakStatement":"ContinueStatement");case o._debugger:return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement");case o._do:return this.next(),e.body=this.parseStatement(),e.test=this.eat(o._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(e,"DoWhileStatement");case o._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(o.parenL),this.tok.type===o.semi)return this.parseFor(e,null);var n=this.toks.isLet();if(n||this.tok.type===o._var||this.tok.type===o._const){var a=this.parseVar(this.startNode(),!0,n?"let":this.tok.value);return a.declarations.length===1&&(this.tok.type===o._in||this.isContextual("of"))?(this.options.ecmaVersion>=9&&this.tok.type!==o._in&&(e.await=s),this.parseForIn(e,a)):this.parseFor(e,a)}var u=this.parseExpression(!0);return this.tok.type===o._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==o._in&&(e.await=s),this.parseForIn(e,this.toAssignable(u))):this.parseFor(e,u);case o._function:return this.next(),this.parseFunction(e,!0);case o._if:return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(),e.alternate=this.eat(o._else)?this.parseStatement():null,this.finishNode(e,"IfStatement");case o._return:return this.next(),this.eat(o.semi)||this.canInsertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement");case o._switch:var h=this.curIndent,l=this.curLineStart;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.pushCx(),this.expect(o.braceL);for(var c;!this.closes(o.braceR,h,l,!0);)if(this.tok.type===o._case||this.tok.type===o._default){var p=this.tok.type===o._case;c&&this.finishNode(c,"SwitchCase"),e.cases.push(c=this.startNode()),c.consequent=[],this.next(),p?c.test=this.parseExpression():c.test=null,this.expect(o.colon)}else c||(e.cases.push(c=this.startNode()),c.consequent=[],c.test=null),c.consequent.push(this.parseStatement());return c&&this.finishNode(c,"SwitchCase"),this.popCx(),this.eat(o.braceR),this.finishNode(e,"SwitchStatement");case o._throw:return this.next(),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement");case o._try:if(this.next(),e.block=this.parseBlock(),e.handler=null,this.tok.type===o._catch){var f=this.startNode();this.next(),this.eat(o.parenL)?(f.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(o.parenR)):f.param=null,f.body=this.parseBlock(),e.handler=this.finishNode(f,"CatchClause")}return e.finalizer=this.eat(o._finally)?this.parseBlock():null,!e.handler&&!e.finalizer?e.block:this.finishNode(e,"TryStatement");case o._var:case o._const:return this.parseVar(e,!1,i||this.tok.value);case o._while:return this.next(),e.test=this.parseParenExpression(),e.body=this.parseStatement(),this.finishNode(e,"WhileStatement");case o._with:return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(),this.finishNode(e,"WithStatement");case o.braceL:return this.parseBlock();case o.semi:return this.next(),this.finishNode(e,"EmptyStatement");case o._class:return this.parseClass(!0);case o._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===o.parenL||d===o.dot)return e.expression=this.parseExpression(),this.semicolon(),this.finishNode(e,"ExpressionStatement")}return this.parseImport();case o._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,!0,!0);var m=this.parseExpression();return ye(m)?(this.next(),this.tok.type===o.eof?this.finishNode(e,"EmptyStatement"):this.parseStatement()):t===o.name&&m.type==="Identifier"&&this.eat(o.colon)?(e.body=this.parseStatement(),e.label=m,this.finishNode(e,"LabeledStatement")):(e.expression=m,this.semicolon(),this.finishNode(e,"ExpressionStatement"))}};U.parseBlock=function(){var t=this.startNode();this.pushCx(),this.expect(o.braceL);var e=this.curIndent,i=this.curLineStart;for(t.body=[];!this.closes(o.braceR,e,i,!0);)t.body.push(this.parseStatement());return this.popCx(),this.eat(o.braceR),this.finishNode(t,"BlockStatement")};U.parseFor=function(t,e){return t.init=e,t.test=t.update=null,this.eat(o.semi)&&this.tok.type!==o.semi&&(t.test=this.parseExpression()),this.eat(o.semi)&&this.tok.type!==o.parenR&&(t.update=this.parseExpression()),this.popCx(),this.expect(o.parenR),t.body=this.parseStatement(),this.finishNode(t,"ForStatement")};U.parseForIn=function(t,e){var i=this.tok.type===o._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.popCx(),this.expect(o.parenR),t.body=this.parseStatement(),this.finishNode(t,i)};U.parseVar=function(t,e,i){t.kind=i,this.next(),t.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(o.eq)?this.parseMaybeAssign(e):null,t.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(o.comma));if(!t.declarations.length){var s=this.startNode();s.id=this.dummyIdent(),t.declarations.push(this.finishNode(s,"VariableDeclarator"))}return e||this.semicolon(),this.finishNode(t,"VariableDeclaration")};U.parseClass=function(t){var e=this.startNode();this.next(),this.tok.type===o.name?e.id=this.parseIdent():t===!0?e.id=this.dummyIdent():e.id=null,e.superClass=this.eat(o._extends)?this.parseExpression():null,e.body=this.startNode(),e.body.body=[],this.pushCx();var i=this.curIndent+1,r=this.curLineStart;for(this.eat(o.braceL),this.curIndent+1<i&&(i=this.curIndent,r=this.curLineStart);!this.closes(o.braceR,i,r);){var s=this.parseClassElement();s&&e.body.body.push(s)}return this.popCx(),this.eat(o.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(e.body,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};U.parseClassElement=function(){if(this.eat(o.semi))return null;var t=this.options,e=t.ecmaVersion,i=t.locations,r=this.curIndent,s=this.curLineStart,n=this.startNode(),a="",u=!1,h=!1,l="method",c=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(o.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.toks.type===o.star?c=!0:a="static"}if(n.static=c,!a&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.toks.type===o.star)&&!this.canInsertSemicolon()?h=!0:a="async"),!a){u=this.eat(o.star);var p=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=p:a=p)}if(a)n.computed=!1,n.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),n.key.name=a,this.finishNode(n.key,"Identifier");else if(this.parseClassElementName(n),ye(n.key))return ye(this.parseMaybeAssign())&&this.next(),this.eat(o.comma),null;if(e<13||this.toks.type===o.parenL||l!=="method"||u||h){var f=!n.computed&&!n.static&&!u&&!h&&l==="method"&&(n.key.type==="Identifier"&&n.key.name==="constructor"||n.key.type==="Literal"&&n.key.value==="constructor");n.kind=f?"constructor":l,n.value=this.parseMethod(u,h),this.finishNode(n,"MethodDefinition")}else{if(this.eat(o.eq))if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())n.value=null;else{var d=this.inAsync,m=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,n.value=this.parseMaybeAssign(),this.inAsync=d,this.inGenerator=m}else n.value=null;this.semicolon(),this.finishNode(n,"PropertyDefinition")}return n};U.parseClassStaticBlock=function(t){var e=this.curIndent,i=this.curLineStart;for(t.body=[],this.pushCx();!this.closes(o.braceR,e,i,!0);)t.body.push(this.parseStatement());return this.popCx(),this.eat(o.braceR),this.finishNode(t,"StaticBlock")};U.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()};U.parseClassElementName=function(t){this.toks.type===o.privateId?(t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};U.parseFunction=function(t,e,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(o.star)),this.options.ecmaVersion>=8&&(t.async=!!i),this.tok.type===o.name?t.id=this.parseIdent():e===!0&&(t.id=this.dummyIdent()),this.inAsync=t.async,this.inGenerator=t.generator,this.inFunction=!0,t.params=this.parseFunctionParams(),t.body=this.parseBlock(),this.toks.adaptDirectivePrologue(t.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")};U.parseExport=function(){var t=this.startNode();if(this.next(),this.eat(o.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?t.exported=this.parseExprAtom():t.exported=null),t.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(o._default)){var e;if(this.tok.type===o._function||(e=this.toks.isAsyncFunction())){var i=this.startNode();this.next(),e&&this.next(),t.declaration=this.parseFunction(i,"nullableID",e)}else this.tok.type===o._class?t.declaration=this.parseClass("nullableID"):(t.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(t,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(t.declaration=this.parseStatement(),t.specifiers=[],t.source=null):(t.declaration=null,t.specifiers=this.parseExportSpecifierList(),t.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(t,"ExportNamedDeclaration")};U.parseImport=function(){var t=this.startNode();if(this.next(),this.tok.type===o.string)t.specifiers=[],t.source=this.parseExprAtom();else{var e;this.tok.type===o.name&&this.tok.value!=="from"&&(e=this.startNode(),e.local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(o.comma)),t.specifiers=this.parseImportSpecifiers(),t.source=this.eatContextual("from")&&this.tok.type===o.string?this.parseExprAtom():this.dummyString(),e&&t.specifiers.unshift(e)}return this.semicolon(),this.finishNode(t,"ImportDeclaration")};U.parseImportSpecifiers=function(){var t=[];if(this.tok.type===o.star){var e=this.startNode();this.next(),e.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),t.push(this.finishNode(e,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,r=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(o.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(o.braceR,i+(this.curLineStart<=s?1:0),r);){var n=this.startNode();if(this.eat(o.star))n.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(n,"ImportNamespaceSpecifier");else{if(this.isContextual("from")||(n.imported=this.parseModuleExportName(),ye(n.imported)))break;n.local=this.eatContextual("as")?this.parseModuleExportName():n.imported,this.finishNode(n,"ImportSpecifier")}t.push(n),this.eat(o.comma)}this.eat(o.braceR),this.popCx()}return t};U.parseExportSpecifierList=function(){var t=[],e=this.curIndent,i=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(o.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(o.braceR,e+(this.curLineStart<=r?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),ye(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),t.push(s),this.eat(o.comma)}return this.eat(o.braceR),this.popCx(),t};U.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===o.string?this.parseExprAtom():this.parseIdent()};var O=I.prototype;O.checkLVal=function(t){if(!t)return t;switch(t.type){case"Identifier":case"MemberExpression":return t;case"ParenthesizedExpression":return t.expression=this.checkLVal(t.expression),t;default:return this.dummyIdent()}};O.parseExpression=function(t){var e=this.storeCurrentPos(),i=this.parseMaybeAssign(t);if(this.tok.type===o.comma){var r=this.startNodeAt(e);for(r.expressions=[i];this.eat(o.comma);)r.expressions.push(this.parseMaybeAssign(t));return this.finishNode(r,"SequenceExpression")}return i};O.parseParenExpression=function(){this.pushCx(),this.expect(o.parenL);var t=this.parseExpression();return this.popCx(),this.expect(o.parenR),t};O.parseMaybeAssign=function(t){if(this.inGenerator&&this.toks.isContextual("yield")){var e=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==o.star&&!this.tok.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(o.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}var i=this.storeCurrentPos(),r=this.parseMaybeConditional(t);if(this.tok.type.isAssign){var s=this.startNodeAt(i);return s.operator=this.tok.value,s.left=this.tok.type===o.eq?this.toAssignable(r):this.checkLVal(r),this.next(),s.right=this.parseMaybeAssign(t),this.finishNode(s,"AssignmentExpression")}return r};O.parseMaybeConditional=function(t){var e=this.storeCurrentPos(),i=this.parseExprOps(t);if(this.eat(o.question)){var r=this.startNodeAt(e);return r.test=i,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(o.colon)?this.parseMaybeAssign(t):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return i};O.parseExprOps=function(t){var e=this.storeCurrentPos(),i=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),e,-1,t,i,r)};O.parseExprOp=function(t,e,i,r,s,n){if(this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())return t;var a=this.tok.type.binop;if(a!=null&&(!r||this.tok.type!==o._in)&&a>i){var u=this.startNodeAt(e);if(u.left=t,u.operator=this.tok.value,this.next(),this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())u.right=this.dummyIdent();else{var h=this.storeCurrentPos();u.right=this.parseExprOp(this.parseMaybeUnary(!1),h,a,r,s,n)}return this.finishNode(u,/&&|\|\||\?\?/.test(u.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(u,e,i,r,s,n)}return t};O.parseMaybeUnary=function(t){var e=this.storeCurrentPos(),i;if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.tok.type.prefix){var r=this.startNode(),s=this.tok.type===o.incDec;s||(t=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),s&&(r.argument=this.checkLVal(r.argument)),i=this.finishNode(r,s?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===o.ellipsis){var n=this.startNode();this.next(),n.argument=this.parseMaybeUnary(t),i=this.finishNode(n,"SpreadElement")}else if(!t&&this.tok.type===o.privateId)i=this.parsePrivateIdent();else for(i=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(e);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(i),this.next(),i=this.finishNode(a,"UpdateExpression")}if(!t&&this.eat(o.starstar)){var u=this.startNodeAt(e);return u.operator="**",u.left=i,u.right=this.parseMaybeUnary(!1),this.finishNode(u,"BinaryExpression")}return i};O.parseExprSubscripts=function(){var t=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),t,!1,this.curIndent,this.curLineStart)};O.parseSubscripts=function(t,e,i,r,s){for(var n=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())if(this.tok.type===o.dot&&this.curIndent===r)--r;else break;var u=t.type==="Identifier"&&t.name==="async"&&!this.canInsertSemicolon(),h=n&&this.eat(o.questionDot);if(h&&(a=!0),h&&this.tok.type!==o.parenL&&this.tok.type!==o.bracketL&&this.tok.type!==o.backQuote||this.eat(o.dot)){var l=this.startNodeAt(e);l.object=t,this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,n&&(l.optional=h),t=this.finishNode(l,"MemberExpression")}else if(this.tok.type===o.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(e);c.object=t,c.property=this.parseExpression(),c.computed=!0,n&&(c.optional=h),this.popCx(),this.expect(o.bracketR),t=this.finishNode(c,"MemberExpression")}else if(!i&&this.tok.type===o.parenL){var p=this.parseExprList(o.parenR);if(u&&this.eat(o.arrow))return this.parseArrowExpression(this.startNodeAt(e),p,!0);var f=this.startNodeAt(e);f.callee=t,f.arguments=p,n&&(f.optional=h),t=this.finishNode(f,"CallExpression")}else if(this.tok.type===o.backQuote){var d=this.startNodeAt(e);d.tag=t,d.quasi=this.parseTemplate(),t=this.finishNode(d,"TaggedTemplateExpression")}else break}if(a){var m=this.startNodeAt(e);m.expression=t,t=this.finishNode(m,"ChainExpression")}return t};O.parseExprAtom=function(){var t;switch(this.tok.type){case o._this:case o._super:var e=this.tok.type===o._this?"ThisExpression":"Super";return t=this.startNode(),this.next(),this.finishNode(t,e);case o.name:var i=this.storeCurrentPos(),r=this.parseIdent(),s=!1;if(r.name==="async"&&!this.canInsertSemicolon()){if(this.eat(o._function))return this.toks.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===o.name&&(r=this.parseIdent(),s=!0)}return this.eat(o.arrow)?this.parseArrowExpression(this.startNodeAt(i),[r],s):r;case o.regexp:t=this.startNode();var n=this.tok.value;return t.regex={pattern:n.pattern,flags:n.flags},t.value=n.value,t.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(t,"Literal");case o.num:case o.string:return t=this.startNode(),t.value=this.tok.value,t.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===o.num&&t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal");case o._null:case o._true:case o._false:return t=this.startNode(),t.value=this.tok.type===o._null?null:this.tok.type===o._true,t.raw=this.tok.type.keyword,this.next(),this.finishNode(t,"Literal");case o.parenL:var a=this.storeCurrentPos();this.next();var u=this.parseExpression();if(this.expect(o.parenR),this.eat(o.arrow)){var h=u.expressions||[u];return h.length&&ye(h[h.length-1])&&h.pop(),this.parseArrowExpression(this.startNodeAt(a),h)}if(this.options.preserveParens){var l=this.startNodeAt(a);l.expression=u,u=this.finishNode(l,"ParenthesizedExpression")}return u;case o.bracketL:return t=this.startNode(),t.elements=this.parseExprList(o.bracketR,!0),this.finishNode(t,"ArrayExpression");case o.braceL:return this.toks.overrideContext(N.b_expr),this.parseObj();case o._class:return this.parseClass(!1);case o._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate();case o._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}};O.parseExprImport=function(){var t=this.startNode(),e=this.parseIdent(!0);switch(this.tok.type){case o.parenL:return this.parseDynamicImport(t);case o.dot:return t.meta=e,this.parseImportMeta(t);default:return t.name="import",this.finishNode(t,"Identifier")}};O.parseDynamicImport=function(t){return t.source=this.parseExprList(o.parenR)[0]||this.dummyString(),this.finishNode(t,"ImportExpression")};O.parseImportMeta=function(t){return this.next(),t.property=this.parseIdent(!0),this.finishNode(t,"MetaProperty")};O.parseNew=function(){var t=this.startNode(),e=this.curIndent,i=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(o.dot))return t.meta=r,t.property=this.parseIdent(!0),this.finishNode(t,"MetaProperty");var s=this.storeCurrentPos();return t.callee=this.parseSubscripts(this.parseExprAtom(),s,!0,e,i),this.tok.type===o.parenL?t.arguments=this.parseExprList(o.parenR):t.arguments=[],this.finishNode(t,"NewExpression")};O.parseTemplateElement=function(){var t=this.startNode();return this.tok.type===o.invalidTemplate?t.value={raw:this.tok.value,cooked:null}:t.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,`
|
|
55
|
-
`),cooked:this.tok.value},this.next(),t.tail=this.tok.type===o.backQuote,this.finishNode(t,"TemplateElement")};O.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.next(),t.expressions.push(this.parseExpression()),this.expect(o.braceR)?e=this.parseTemplateElement():(e=this.startNode(),e.value={cooked:"",raw:""},e.tail=!0,this.finishNode(e,"TemplateElement")),t.quasis.push(e);return this.expect(o.backQuote),this.finishNode(t,"TemplateLiteral")};O.parseObj=function(){var t=this.startNode();t.properties=[],this.pushCx();var e=this.curIndent+1,i=this.curLineStart;for(this.eat(o.braceL),this.curIndent+1<e&&(e=this.curIndent,i=this.curLineStart);!this.closes(o.braceR,e,i);){var r=this.startNode(),s=void 0,n=void 0,a=void 0;if(this.options.ecmaVersion>=9&&this.eat(o.ellipsis)){r.argument=this.parseMaybeAssign(),t.properties.push(this.finishNode(r,"SpreadElement")),this.eat(o.comma);continue}if(this.options.ecmaVersion>=6&&(a=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,s=this.eat(o.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(o.star),this.parsePropertyName(r)):n=!1,ye(r.key)){ye(this.parseMaybeAssign())&&this.next(),this.eat(o.comma);continue}if(this.eat(o.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===o.parenL||this.tok.type===o.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(s,n);else if(this.options.ecmaVersion>=5&&r.key.type==="Identifier"&&!r.computed&&(r.key.name==="get"||r.key.name==="set")&&this.tok.type!==o.comma&&this.tok.type!==o.braceR&&this.tok.type!==o.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(o.eq)){var u=this.startNodeAt(a);u.operator="=",u.left=r.key,u.right=this.parseMaybeAssign(),r.value=this.finishNode(u,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}t.properties.push(this.finishNode(r,"Property")),this.eat(o.comma)}return this.popCx(),this.eat(o.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(t,"ObjectExpression")};O.parsePropertyName=function(t){if(this.options.ecmaVersion>=6)if(this.eat(o.bracketL)){t.computed=!0,t.key=this.parseExpression(),this.expect(o.bracketR);return}else t.computed=!1;var e=this.tok.type===o.num||this.tok.type===o.string?this.parseExprAtom():this.parseIdent();t.key=e||this.dummyIdent()};O.parsePropertyAccessor=function(){if(this.tok.type===o.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===o.privateId)return this.parsePrivateIdent()};O.parseIdent=function(){var t=this.tok.type===o.name?this.tok.value:this.tok.type.keyword;if(!t)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=o.name);var e=this.startNode();return this.next(),e.name=t,this.finishNode(e,"Identifier")};O.parsePrivateIdent=function(){var t=this.startNode();return t.name=this.tok.value,this.next(),this.finishNode(t,"PrivateIdentifier")};O.initFunction=function(t){t.id=null,t.params=[],this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};O.toAssignable=function(t,e){if(!(!t||t.type==="Identifier"||t.type==="MemberExpression"&&!e))if(t.type==="ParenthesizedExpression")this.toAssignable(t.expression,e);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(t.type==="ObjectExpression"){t.type="ObjectPattern";for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e)}}else if(t.type==="ArrayExpression")t.type="ArrayPattern",this.toAssignableList(t.elements,e);else if(t.type==="Property")this.toAssignable(t.value,e);else if(t.type==="SpreadElement")t.type="RestElement",this.toAssignable(t.argument,e);else if(t.type==="AssignmentExpression")t.type="AssignmentPattern",delete t.operator;else return this.dummyIdent()}return t};O.toAssignableList=function(t,e){for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e)}return t};O.parseFunctionParams=function(t){return t=this.parseExprList(o.parenR),this.toAssignableList(t,!0)};O.parseMethod=function(t,e){var i=this.startNode(),r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=!!t),this.options.ecmaVersion>=8&&(i.async=!!e),this.inAsync=i.async,this.inGenerator=i.generator,this.inFunction=!0,i.params=this.parseFunctionParams(),i.body=this.parseBlock(),this.toks.adaptDirectivePrologue(i.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(i,"FunctionExpression")};O.parseArrowExpression=function(t,e,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.inAsync=t.async,this.inGenerator=!1,this.inFunction=!0,t.params=this.toAssignableList(e,!0),t.expression=this.tok.type!==o.braceL,t.expression?t.body=this.parseMaybeAssign():(t.body=this.parseBlock(),this.toks.adaptDirectivePrologue(t.body.body)),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(t,"ArrowFunctionExpression")};O.parseExprList=function(t,e){this.pushCx();var i=this.curIndent,r=this.curLineStart,s=[];for(this.next();!this.closes(t,i+1,r);){if(this.eat(o.comma)){s.push(e?null:this.dummyIdent());continue}var n=this.parseMaybeAssign();if(ye(n)){if(this.closes(t,i,r))break;this.next()}else s.push(n);this.eat(o.comma)}return this.popCx(),this.eat(t)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),s};O.parseAwait=function(){var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(),this.finishNode(t,"AwaitExpression")};We.tabSize=4;function Kh(t,e){return I.parse(t,e)}var Di={};Rt(Di,{ancestor:()=>Yh,base:()=>g,findNodeAfter:()=>rl,findNodeAround:()=>il,findNodeAt:()=>tl,findNodeBefore:()=>sl,full:()=>Zh,fullAncestor:()=>el,make:()=>dn,recursive:()=>Xh,simple:()=>Jh});function Jh(t,e,i,r,s){i||(i=g),function n(a,u,h){var l=h||a.type;i[l](a,u,n),e[l]&&e[l](a,u)}(t,r,s)}function Yh(t,e,i,r,s){var n=[];i||(i=g),function a(u,h,l){var c=l||u.type,p=u!==n[n.length-1];p&&n.push(u),i[c](u,h,a),e[c]&&e[c](u,h||n,n),p&&n.pop()}(t,r,s)}function Xh(t,e,i,r,s){var n=i?dn(i,r||void 0):r;(function a(u,h,l){n[l||u.type](u,h,a)})(t,e,s)}function Jt(t){return typeof t=="string"?function(e){return e===t}:t||function(){return!0}}var Ve=function(e,i){this.node=e,this.state=i};function Zh(t,e,i,r,s){i||(i=g);var n;(function a(u,h,l){var c=l||u.type;i[c](u,h,a),n!==u&&(e(u,h,c),n=u)})(t,r,s)}function el(t,e,i,r){i||(i=g);var s=[],n;(function a(u,h,l){var c=l||u.type,p=u!==s[s.length-1];p&&s.push(u),i[c](u,h,a),n!==u&&(e(u,h||s,s,c),n=u),p&&s.pop()})(t,r)}function tl(t,e,i,r,s,n){s||(s=g),r=Jt(r);try{(function a(u,h,l){var c=l||u.type;if((e==null||u.start<=e)&&(i==null||u.end>=i)&&s[c](u,h,a),(e==null||u.start===e)&&(i==null||u.end===i)&&r(c,u))throw new Ve(u,h)})(t,n)}catch(a){if(a instanceof Ve)return a;throw a}}function il(t,e,i,r,s){i=Jt(i),r||(r=g);try{(function n(a,u,h){var l=h||a.type;if(!(a.start>e||a.end<e)&&(r[l](a,u,n),i(l,a)))throw new Ve(a,u)})(t,s)}catch(n){if(n instanceof Ve)return n;throw n}}function rl(t,e,i,r,s){i=Jt(i),r||(r=g);try{(function n(a,u,h){if(!(a.end<e)){var l=h||a.type;if(a.start>=e&&i(l,a))throw new Ve(a,u);r[l](a,u,n)}})(t,s)}catch(n){if(n instanceof Ve)return n;throw n}}function sl(t,e,i,r,s){i=Jt(i),r||(r=g);var n;return function a(u,h,l){if(!(u.start>e)){var c=l||u.type;u.end<=e&&(!n||n.node.end<u.end)&&i(c,u)&&(n=new Ve(u,h)),r[c](u,h,a)}}(t,s),n}function dn(t,e){var i=Object.create(e||g);for(var r in t)i[r]=t[r];return i}function Fi(t,e,i){i(t,e)}function Fe(t,e,i){}var g={};g.Program=g.BlockStatement=g.StaticBlock=function(t,e,i){for(var r=0,s=t.body;r<s.length;r+=1){var n=s[r];i(n,e,"Statement")}};g.Statement=Fi;g.EmptyStatement=Fe;g.ExpressionStatement=g.ParenthesizedExpression=g.ChainExpression=function(t,e,i){return i(t.expression,e,"Expression")};g.IfStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Statement"),t.alternate&&i(t.alternate,e,"Statement")};g.LabeledStatement=function(t,e,i){return i(t.body,e,"Statement")};g.BreakStatement=g.ContinueStatement=Fe;g.WithStatement=function(t,e,i){i(t.object,e,"Expression"),i(t.body,e,"Statement")};g.SwitchStatement=function(t,e,i){i(t.discriminant,e,"Expression");for(var r=0,s=t.cases;r<s.length;r+=1){var n=s[r];n.test&&i(n.test,e,"Expression");for(var a=0,u=n.consequent;a<u.length;a+=1){var h=u[a];i(h,e,"Statement")}}};g.SwitchCase=function(t,e,i){t.test&&i(t.test,e,"Expression");for(var r=0,s=t.consequent;r<s.length;r+=1){var n=s[r];i(n,e,"Statement")}};g.ReturnStatement=g.YieldExpression=g.AwaitExpression=function(t,e,i){t.argument&&i(t.argument,e,"Expression")};g.ThrowStatement=g.SpreadElement=function(t,e,i){return i(t.argument,e,"Expression")};g.TryStatement=function(t,e,i){i(t.block,e,"Statement"),t.handler&&i(t.handler,e),t.finalizer&&i(t.finalizer,e,"Statement")};g.CatchClause=function(t,e,i){t.param&&i(t.param,e,"Pattern"),i(t.body,e,"Statement")};g.WhileStatement=g.DoWhileStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.body,e,"Statement")};g.ForStatement=function(t,e,i){t.init&&i(t.init,e,"ForInit"),t.test&&i(t.test,e,"Expression"),t.update&&i(t.update,e,"Expression"),i(t.body,e,"Statement")};g.ForInStatement=g.ForOfStatement=function(t,e,i){i(t.left,e,"ForInit"),i(t.right,e,"Expression"),i(t.body,e,"Statement")};g.ForInit=function(t,e,i){t.type==="VariableDeclaration"?i(t,e):i(t,e,"Expression")};g.DebuggerStatement=Fe;g.FunctionDeclaration=function(t,e,i){return i(t,e,"Function")};g.VariableDeclaration=function(t,e,i){for(var r=0,s=t.declarations;r<s.length;r+=1){var n=s[r];i(n,e)}};g.VariableDeclarator=function(t,e,i){i(t.id,e,"Pattern"),t.init&&i(t.init,e,"Expression")};g.Function=function(t,e,i){t.id&&i(t.id,e,"Pattern");for(var r=0,s=t.params;r<s.length;r+=1){var n=s[r];i(n,e,"Pattern")}i(t.body,e,t.expression?"Expression":"Statement")};g.Pattern=function(t,e,i){t.type==="Identifier"?i(t,e,"VariablePattern"):t.type==="MemberExpression"?i(t,e,"MemberPattern"):i(t,e)};g.VariablePattern=Fe;g.MemberPattern=Fi;g.RestElement=function(t,e,i){return i(t.argument,e,"Pattern")};g.ArrayPattern=function(t,e,i){for(var r=0,s=t.elements;r<s.length;r+=1){var n=s[r];n&&i(n,e,"Pattern")}};g.ObjectPattern=function(t,e,i){for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];n.type==="Property"?(n.computed&&i(n.key,e,"Expression"),i(n.value,e,"Pattern")):n.type==="RestElement"&&i(n.argument,e,"Pattern")}};g.Expression=Fi;g.ThisExpression=g.Super=g.MetaProperty=Fe;g.ArrayExpression=function(t,e,i){for(var r=0,s=t.elements;r<s.length;r+=1){var n=s[r];n&&i(n,e,"Expression")}};g.ObjectExpression=function(t,e,i){for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];i(n,e)}};g.FunctionExpression=g.ArrowFunctionExpression=g.FunctionDeclaration;g.SequenceExpression=function(t,e,i){for(var r=0,s=t.expressions;r<s.length;r+=1){var n=s[r];i(n,e,"Expression")}};g.TemplateLiteral=function(t,e,i){for(var r=0,s=t.quasis;r<s.length;r+=1){var n=s[r];i(n,e)}for(var a=0,u=t.expressions;a<u.length;a+=1){var h=u[a];i(h,e,"Expression")}};g.TemplateElement=Fe;g.UnaryExpression=g.UpdateExpression=function(t,e,i){i(t.argument,e,"Expression")};g.BinaryExpression=g.LogicalExpression=function(t,e,i){i(t.left,e,"Expression"),i(t.right,e,"Expression")};g.AssignmentExpression=g.AssignmentPattern=function(t,e,i){i(t.left,e,"Pattern"),i(t.right,e,"Expression")};g.ConditionalExpression=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Expression"),i(t.alternate,e,"Expression")};g.NewExpression=g.CallExpression=function(t,e,i){if(i(t.callee,e,"Expression"),t.arguments)for(var r=0,s=t.arguments;r<s.length;r+=1){var n=s[r];i(n,e,"Expression")}};g.MemberExpression=function(t,e,i){i(t.object,e,"Expression"),t.computed&&i(t.property,e,"Expression")};g.ExportNamedDeclaration=g.ExportDefaultDeclaration=function(t,e,i){t.declaration&&i(t.declaration,e,t.type==="ExportNamedDeclaration"||t.declaration.id?"Statement":"Expression"),t.source&&i(t.source,e,"Expression")};g.ExportAllDeclaration=function(t,e,i){t.exported&&i(t.exported,e),i(t.source,e,"Expression")};g.ImportDeclaration=function(t,e,i){for(var r=0,s=t.specifiers;r<s.length;r+=1){var n=s[r];i(n,e)}i(t.source,e,"Expression")};g.ImportExpression=function(t,e,i){i(t.source,e,"Expression")};g.ImportSpecifier=g.ImportDefaultSpecifier=g.ImportNamespaceSpecifier=g.Identifier=g.PrivateIdentifier=g.Literal=Fe;g.TaggedTemplateExpression=function(t,e,i){i(t.tag,e,"Expression"),i(t.quasi,e,"Expression")};g.ClassDeclaration=g.ClassExpression=function(t,e,i){return i(t,e,"Class")};g.Class=function(t,e,i){t.id&&i(t.id,e,"Pattern"),t.superClass&&i(t.superClass,e,"Expression"),i(t.body,e)};g.ClassBody=function(t,e,i){for(var r=0,s=t.body;r<s.length;r+=1){var n=s[r];i(n,e)}};g.MethodDefinition=g.PropertyDefinition=g.Property=function(t,e,i){t.computed&&i(t.key,e,"Expression"),t.value&&i(t.value,e,"Expression")};var Ou=me(ja());var eo=me(Za(),1),{program:to,createCommand:Xp,createArgument:Zp,createOption:ed,CommanderError:td,InvalidArgumentError:id,InvalidOptionArgumentError:rd,Command:sd,Argument:nd,Option:ad,Help:od}=eo.default;var Jo=require("child_process"),Yo=me(Ho(),1);var qe=[];qe.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&qe.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qe.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var ci=t=>!!t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function",Ur=Symbol.for("signal-exit emitter"),Gr=globalThis,ef=Object.defineProperty.bind(Object),Hr=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Gr[Ur])return Gr[Ur];ef(Gr,Ur,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,i){this.listeners[e].push(i)}removeListener(e,i){let r=this.listeners[e],s=r.indexOf(i);s!==-1&&(s===0&&r.length===1?r.length=0:r.splice(s,1))}emit(e,i,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let n of this.listeners[e])s=n(i,r)===!0||s;return e==="exit"&&(s=this.emit("afterExit",i,r)||s),s}},fi=class{},tf=t=>({onExit(e,i){return t.onExit(e,i)},load(){return t.load()},unload(){return t.unload()}}),Wr=class extends fi{onExit(){return()=>{}}load(){}unload(){}},$r=class extends fi{#s=zr.platform==="win32"?"SIGINT":"SIGHUP";#e=new Hr;#t;#i;#r;#n={};#a=!1;constructor(e){super(),this.#t=e,this.#n={};for(let i of qe)this.#n[i]=()=>{let r=this.#t.listeners(i),{count:s}=this.#e,n=e;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(s+=n.__signal_exit_emitter__.count),r.length===s){this.unload();let a=this.#e.emit("exit",null,i),u=i==="SIGHUP"?this.#s:i;a||e.kill(e.pid,u)}};this.#r=e.reallyExit,this.#i=e.emit}onExit(e,i){if(!ci(this.#t))return()=>{};this.#a===!1&&this.load();let r=i!=null&&i.alwaysLast?"afterExit":"exit";return this.#e.on(r,e),()=>{this.#e.removeListener(r,e),this.#e.listeners.exit.length===0&&this.#e.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#a){this.#a=!0,this.#e.count+=1;for(let e of qe)try{let i=this.#n[e];i&&this.#t.on(e,i)}catch{}this.#t.emit=(e,...i)=>this.#o(e,...i),this.#t.reallyExit=e=>this.#u(e)}}unload(){this.#a&&(this.#a=!1,qe.forEach(e=>{let i=this.#n[e];if(!i)throw new Error("Listener not defined for signal: "+e);try{this.#t.removeListener(e,i)}catch{}}),this.#t.emit=this.#i,this.#t.reallyExit=this.#r,this.#e.count-=1)}#u(e){return ci(this.#t)?(this.#t.exitCode=e||0,this.#e.emit("exit",this.#t.exitCode,null),this.#r.call(this.#t,this.#t.exitCode)):0}#o(e,...i){let r=this.#i;if(e==="exit"&&ci(this.#t)){typeof i[0]=="number"&&(this.#t.exitCode=i[0]);let s=r.call(this.#t,e,...i);return this.#e.emit("exit",this.#t.exitCode,null),s}else return r.call(this.#t,e,...i)}},zr=globalThis.process,{onExit:Wo,load:Ed,unload:kd}=tf(ci(zr)?new $r(zr):new Wr);var $o=me(require("node:constants"),1),zo=Object.keys($o.default).filter(t=>t.startsWith("SIG")&&t!=="SIGPROF"&&t!=="SIGKILL");var Qo=require("child_process"),rf=String.raw`
|
|
49
|
+
`)}),this}_outputHelpIfRequested(e){let i=this._getHelpOption();i&&e.find(s=>i.is(s))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function iu(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let i,r="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?i=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(i=n[1],/^\d+$/.test(n[3])?s=n[3]:r=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(i=n[1],r=n[3],s=n[4]),i&&s!=="0"?`${i}=${r}:${parseInt(s)+1}`:e})}ru.Command=ys});var uu=v(pe=>{var{Argument:nu}=Vi(),{Command:vs}=su(),{CommanderError:Bp,InvalidArgumentError:au}=Ht(),{Help:Dp}=ls(),{Option:ou}=ds();pe.program=new vs;pe.createCommand=t=>new vs(t);pe.createOption=(t,e)=>new ou(t,e);pe.createArgument=(t,e)=>new nu(t,e);pe.Command=vs;pe.Option=ou;pe.Argument=nu;pe.Help=Dp;pe.CommanderError=Bp;pe.InvalidArgumentError=au;pe.InvalidOptionArgumentError=au});var mu=v((V0,du)=>{du.exports=pu;pu.sync=qp;var cu=require("fs");function Up(t,e){var i=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var r=0;r<i.length;r++){var s=i[r].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}function fu(t,e,i){return!t.isSymbolicLink()&&!t.isFile()?!1:Up(e,i)}function pu(t,e,i){cu.stat(t,function(r,s){i(r,r?!1:fu(s,t,e))})}function qp(t,e){return fu(cu.statSync(t),t,e)}});var _u=v((B0,vu)=>{vu.exports=xu;xu.sync=jp;var gu=require("fs");function xu(t,e,i){gu.stat(t,function(r,s){i(r,r?!1:yu(s,e))})}function jp(t,e){return yu(gu.statSync(t),e)}function yu(t,e){return t.isFile()&&Gp(t,e)}function Gp(t,e){var i=t.mode,r=t.uid,s=t.gid,n=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),a=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),o=parseInt("100",8),h=parseInt("010",8),l=parseInt("001",8),c=o|h,f=i&l||i&h&&s===a||i&o&&r===n||i&c&&n===0;return f}});var Su=v((U0,bu)=>{var D0=require("fs"),Bi;process.platform==="win32"||global.TESTING_WINDOWS?Bi=mu():Bi=_u();bu.exports=_s;_s.sync=Wp;function _s(t,e,i){if(typeof e=="function"&&(i=e,e={}),!i){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,s){_s(t,e||{},function(n,a){n?s(n):r(a)})})}Bi(t,e||{},function(r,s){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,s=!1),i(r,s)})}function Wp(t,e){try{return Bi.sync(t,e||{})}catch(i){if(e&&e.ignoreErrors||i.code==="EACCES")return!1;throw i}}});var Nu=v((q0,Ou)=>{var yt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",wu=require("path"),$p=yt?";":":",Cu=Su(),Eu=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),ku=(t,e)=>{let i=e.colon||$p,r=t.match(/\//)||yt&&t.match(/\\/)?[""]:[...yt?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(i)],s=yt?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=yt?s.split(i):[""];return yt&&t.indexOf(".")!==-1&&n[0]!==""&&n.unshift(""),{pathEnv:r,pathExt:n,pathExtExe:s}},Au=(t,e,i)=>{typeof e=="function"&&(i=e,e={}),e||(e={});let{pathEnv:r,pathExt:s,pathExtExe:n}=ku(t,e),a=[],o=l=>new Promise((c,f)=>{if(l===r.length)return e.all&&a.length?c(a):f(Eu(t));let p=r[l],d=/^".*"$/.test(p)?p.slice(1,-1):p,m=wu.join(d,t),g=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;c(h(g,l,0))}),h=(l,c,f)=>new Promise((p,d)=>{if(f===s.length)return p(o(c+1));let m=s[f];Cu(l+m,{pathExt:n},(g,y)=>{if(!g&&y)if(e.all)a.push(l+m);else return p(l+m);return p(h(l,c,f+1))})});return i?o(0).then(l=>i(null,l),i):o(0)},Hp=(t,e)=>{e=e||{};let{pathEnv:i,pathExt:r,pathExtExe:s}=ku(t,e),n=[];for(let a=0;a<i.length;a++){let o=i[a],h=/^".*"$/.test(o)?o.slice(1,-1):o,l=wu.join(h,t),c=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let f=0;f<r.length;f++){let p=c+r[f];try{if(Cu.sync(p,{pathExt:s}))if(e.all)n.push(p);else return p}catch{}}}if(e.all&&n.length)return n;if(e.nothrow)return null;throw Eu(t)};Ou.exports=Au;Au.sync=Hp});var Lu=v((j0,bs)=>{"use strict";var Iu=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};bs.exports=Iu;bs.exports.default=Iu});var Mu=v((G0,Ru)=>{"use strict";var Pu=require("path"),zp=Nu(),Qp=Lu();function Tu(t,e){let i=t.options.env||process.env,r=process.cwd(),s=t.options.cwd!=null,n=s&&process.chdir!==void 0&&!process.chdir.disabled;if(n)try{process.chdir(t.options.cwd)}catch{}let a;try{a=zp.sync(t.command,{path:i[Qp({env:i})],pathExt:e?Pu.delimiter:void 0})}catch{}finally{n&&process.chdir(r)}return a&&(a=Pu.resolve(s?t.options.cwd:"",a)),a}function Kp(t){return Tu(t)||Tu(t,!0)}Ru.exports=Kp});var Fu=v((W0,ws)=>{"use strict";var Ss=/([()\][%!^"`<>&|;, *?])/g;function Yp(t){return t=t.replace(Ss,"^$1"),t}function Jp(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Ss,"^$1"),e&&(t=t.replace(Ss,"^$1")),t}ws.exports.command=Yp;ws.exports.argument=Jp});var Bu=v(($0,Vu)=>{"use strict";Vu.exports=/^#!(.*)/});var Uu=v((H0,Du)=>{"use strict";var Xp=Bu();Du.exports=(t="")=>{let e=t.match(Xp);if(!e)return null;let[i,r]=e[0].replace(/#! ?/,"").split(" "),s=i.split("/").pop();return s==="env"?r:r?`${s} ${r}`:s}});var ju=v((z0,qu)=>{"use strict";var Cs=require("fs"),Zp=Uu();function ed(t){let i=Buffer.alloc(150),r;try{r=Cs.openSync(t,"r"),Cs.readSync(r,i,0,150,0),Cs.closeSync(r)}catch{}return Zp(i.toString())}qu.exports=ed});var Hu=v((Q0,$u)=>{"use strict";var td=require("path"),Gu=Mu(),Wu=Fu(),id=ju(),rd=process.platform==="win32",sd=/\.(?:com|exe)$/i,nd=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ad(t){t.file=Gu(t);let e=t.file&&id(t.file);return e?(t.args.unshift(t.file),t.command=e,Gu(t)):t.file}function od(t){if(!rd)return t;let e=ad(t),i=!sd.test(e);if(t.options.forceShell||i){let r=nd.test(e);t.command=td.normalize(t.command),t.command=Wu.command(t.command),t.args=t.args.map(n=>Wu.argument(n,r));let s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function ud(t,e,i){e&&!Array.isArray(e)&&(i=e,e=null),e=e?e.slice(0):[],i=Object.assign({},i);let r={command:t,args:e,options:i,file:void 0,original:{command:t,args:e}};return i.shell?r:od(r)}$u.exports=ud});var Ku=v((K0,Qu)=>{"use strict";var Es=process.platform==="win32";function ks(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function hd(t,e){if(!Es)return;let i=t.emit;t.emit=function(r,s){if(r==="exit"){let n=zu(s,e,"spawn");if(n)return i.call(t,"error",n)}return i.apply(t,arguments)}}function zu(t,e){return Es&&t===1&&!e.file?ks(e.original,"spawn"):null}function ld(t,e){return Es&&t===1&&!e.file?ks(e.original,"spawnSync"):null}Qu.exports={hookChildProcess:hd,verifyENOENT:zu,verifyENOENTSync:ld,notFoundError:ks}});var Xu=v((Y0,vt)=>{"use strict";var Yu=require("child_process"),As=Hu(),Os=Ku();function Ju(t,e,i){let r=As(t,e,i),s=Yu.spawn(r.command,r.args,r.options);return Os.hookChildProcess(s,r),s}function cd(t,e,i){let r=As(t,e,i),s=Yu.spawnSync(r.command,r.args,r.options);return s.error=s.error||Os.verifyENOENTSync(s.status,r),s}vt.exports=Ju;vt.exports.spawn=Ju;vt.exports.sync=cd;vt.exports._parse=As;vt.exports._enoent=Os});var ch=v((ux,lh)=>{"use strict";lh.exports=uh;function uh(t,e,i){t instanceof RegExp&&(t=oh(t,i)),e instanceof RegExp&&(e=oh(e,i));var r=hh(t,e,i);return r&&{start:r[0],end:r[1],pre:i.slice(0,r[0]),body:i.slice(r[0]+t.length,r[1]),post:i.slice(r[1]+e.length)}}function oh(t,e){var i=e.match(t);return i?i[0]:null}uh.range=hh;function hh(t,e,i){var r,s,n,a,o,h=i.indexOf(t),l=i.indexOf(e,h+1),c=h;if(h>=0&&l>0){if(t===e)return[h,l];for(r=[],n=i.length;c>=0&&!o;)c==h?(r.push(c),h=i.indexOf(t,c+1)):r.length==1?o=[r.pop(),l]:(s=r.pop(),s<n&&(n=s,a=l),l=i.indexOf(e,c+1)),c=h<l&&h>=0?h:l;r.length&&(o=[n,a])}return o}});var vh=v((hx,yh)=>{var fh=ch();yh.exports=bd;var ph="\0SLASH"+Math.random()+"\0",dh="\0OPEN"+Math.random()+"\0",Fs="\0CLOSE"+Math.random()+"\0",mh="\0COMMA"+Math.random()+"\0",gh="\0PERIOD"+Math.random()+"\0";function Ms(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function vd(t){return t.split("\\\\").join(ph).split("\\{").join(dh).split("\\}").join(Fs).split("\\,").join(mh).split("\\.").join(gh)}function _d(t){return t.split(ph).join("\\").split(dh).join("{").split(Fs).join("}").split(mh).join(",").split(gh).join(".")}function xh(t){if(!t)return[""];var e=[],i=fh("{","}",t);if(!i)return t.split(",");var r=i.pre,s=i.body,n=i.post,a=r.split(",");a[a.length-1]+="{"+s+"}";var o=xh(n);return n.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),e.push.apply(e,a),e}function bd(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),zt(vd(t),!0).map(_d)):[]}function Sd(t){return"{"+t+"}"}function wd(t){return/^-?0\d/.test(t)}function Cd(t,e){return t<=e}function Ed(t,e){return t>=e}function zt(t,e){var i=[],r=fh("{","}",t);if(!r)return[t];var s=r.pre,n=r.post.length?zt(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<n.length;a++){var o=s+"{"+r.body+"}"+n[a];i.push(o)}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=h||l,f=r.body.indexOf(",")>=0;if(!c&&!f)return r.post.match(/,.*\}/)?(t=r.pre+"{"+r.body+Fs+r.post,zt(t)):[t];var p;if(c)p=r.body.split(/\.\./);else if(p=xh(r.body),p.length===1&&(p=zt(p[0],!1).map(Sd),p.length===1))return n.map(function(ai){return r.pre+p[0]+ai});var d;if(c){var m=Ms(p[0]),g=Ms(p[1]),y=Math.max(p[0].length,p[1].length),C=p.length==3?Math.abs(Ms(p[2])):1,L=Cd,q=g<m;q&&(C*=-1,L=Ed);var T=p.some(wd);d=[];for(var G=m;L(G,g);G+=C){var F;if(l)F=String.fromCharCode(G),F==="\\"&&(F="");else if(F=String(G),T){var He=y-F.length;if(He>0){var ie=new Array(He+1).join("0");G<0?F="-"+ie+F.slice(1):F=ie+F}}d.push(F)}}else{d=[];for(var re=0;re<p.length;re++)d.push.apply(d,zt(p[re],!1))}for(var re=0;re<d.length;re++)for(var a=0;a<n.length;a++){var o=s+d[re]+n[a];(!e||c||o)&&i.push(o)}}return i}});var Mh=v((Ax,Rh)=>{"use strict";var{Duplex:um}=require("stream");function Ph(t){t.emit("close")}function hm(){!this.destroyed&&this._writableState.finished&&this.destroy()}function Th(t){this.removeListener("error",Th),this.destroy(),this.listenerCount("error")===0&&this.emit("error",t)}function lm(t,e){let i=!0,r=new um({...e,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return t.on("message",function(n,a){let o=!a&&r._readableState.objectMode?n.toString():n;r.push(o)||t.pause()}),t.once("error",function(n){r.destroyed||(i=!1,r.destroy(n))}),t.once("close",function(){r.destroyed||r.push(null)}),r._destroy=function(s,n){if(t.readyState===t.CLOSED){n(s),process.nextTick(Ph,r);return}let a=!1;t.once("error",function(h){a=!0,n(h)}),t.once("close",function(){a||n(s),process.nextTick(Ph,r)}),i&&t.terminate()},r._final=function(s){if(t.readyState===t.CONNECTING){t.once("open",function(){r._final(s)});return}t._socket!==null&&(t._socket._writableState.finished?(s(),r._readableState.endEmitted&&r.destroy()):(t._socket.once("finish",function(){s()}),t.close()))},r._read=function(){t.isPaused&&t.resume()},r._write=function(s,n,a){if(t.readyState===t.CONNECTING){t.once("open",function(){r._write(s,n,a)});return}t.send(s,a)},r.on("end",hm),r.on("error",Th),r}Rh.exports=lm});var Ge=v((Ox,Fh)=>{"use strict";Fh.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Yt=v((Nx,ji)=>{"use strict";var{EMPTY_BUFFER:cm}=Ge(),Ds=Buffer[Symbol.species];function fm(t,e){if(t.length===0)return cm;if(t.length===1)return t[0];let i=Buffer.allocUnsafe(e),r=0;for(let s=0;s<t.length;s++){let n=t[s];i.set(n,r),r+=n.length}return r<e?new Ds(i.buffer,i.byteOffset,r):i}function Vh(t,e,i,r,s){for(let n=0;n<s;n++)i[r+n]=t[n]^e[n&3]}function Bh(t,e){for(let i=0;i<t.length;i++)t[i]^=e[i&3]}function pm(t){return t.length===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.length)}function Us(t){if(Us.readOnly=!0,Buffer.isBuffer(t))return t;let e;return t instanceof ArrayBuffer?e=new Ds(t):ArrayBuffer.isView(t)?e=new Ds(t.buffer,t.byteOffset,t.byteLength):(e=Buffer.from(t),Us.readOnly=!1),e}ji.exports={concat:fm,mask:Vh,toArrayBuffer:pm,toBuffer:Us,unmask:Bh};if(!process.env.WS_NO_BUFFER_UTIL)try{let t=require("bufferutil");ji.exports.mask=function(e,i,r,s,n){n<48?Vh(e,i,r,s,n):t.mask(e,i,r,s,n)},ji.exports.unmask=function(e,i){e.length<32?Bh(e,i):t.unmask(e,i)}}catch{}});var qh=v((Ix,Uh)=>{"use strict";var Dh=Symbol("kDone"),qs=Symbol("kRun"),js=class{constructor(e){this[Dh]=()=>{this.pending--,this[qs]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[qs]()}[qs](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[Dh])}}};Uh.exports=js});var Zt=v((Lx,$h)=>{"use strict";var Jt=require("zlib"),jh=Yt(),dm=qh(),{kStatusCode:Gh}=Ge(),mm=Buffer[Symbol.species],gm=Buffer.from([0,0,255,255]),$i=Symbol("permessage-deflate"),Te=Symbol("total-length"),Xt=Symbol("callback"),We=Symbol("buffers"),Wi=Symbol("error"),Gi,Gs=class{constructor(e,i,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!i,this._deflate=null,this._inflate=null,this.params=null,!Gi){let s=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Gi=new dm(s)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[Xt];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let i=this._options,r=e.find(s=>!(i.serverNoContextTakeover===!1&&s.server_no_context_takeover||s.server_max_window_bits&&(i.serverMaxWindowBits===!1||typeof i.serverMaxWindowBits=="number"&&i.serverMaxWindowBits>s.server_max_window_bits)||typeof i.clientMaxWindowBits=="number"&&!s.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return i.serverNoContextTakeover&&(r.server_no_context_takeover=!0),i.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof i.serverMaxWindowBits=="number"&&(r.server_max_window_bits=i.serverMaxWindowBits),typeof i.clientMaxWindowBits=="number"?r.client_max_window_bits=i.clientMaxWindowBits:(r.client_max_window_bits===!0||i.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let i=e[0];if(this._options.clientNoContextTakeover===!1&&i.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!i.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(i.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&i.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return i}normalizeParams(e){return e.forEach(i=>{Object.keys(i).forEach(r=>{let s=i[r];if(s.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(s=s[0],r==="client_max_window_bits"){if(s!==!0){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else if(r==="server_max_window_bits"){let n=+s;if(!Number.isInteger(n)||n<8||n>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=n}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(s!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else throw new Error(`Unknown parameter "${r}"`);i[r]=s})}),e}decompress(e,i,r){Gi.add(s=>{this._decompress(e,i,(n,a)=>{s(),r(n,a)})})}compress(e,i,r){Gi.add(s=>{this._compress(e,i,(n,a)=>{s(),r(n,a)})})}_decompress(e,i,r){let s=this._isServer?"client":"server";if(!this._inflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Jt.Z_DEFAULT_WINDOWBITS:this.params[n];this._inflate=Jt.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[$i]=this,this._inflate[Te]=0,this._inflate[We]=[],this._inflate.on("error",ym),this._inflate.on("data",Wh)}this._inflate[Xt]=r,this._inflate.write(e),i&&this._inflate.write(gm),this._inflate.flush(()=>{let n=this._inflate[Wi];if(n){this._inflate.close(),this._inflate=null,r(n);return}let a=jh.concat(this._inflate[We],this._inflate[Te]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Te]=0,this._inflate[We]=[],i&&this.params[`${s}_no_context_takeover`]&&this._inflate.reset()),r(null,a)})}_compress(e,i,r){let s=this._isServer?"server":"client";if(!this._deflate){let n=`${s}_max_window_bits`,a=typeof this.params[n]!="number"?Jt.Z_DEFAULT_WINDOWBITS:this.params[n];this._deflate=Jt.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[Te]=0,this._deflate[We]=[],this._deflate.on("data",xm)}this._deflate[Xt]=r,this._deflate.write(e),this._deflate.flush(Jt.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let n=jh.concat(this._deflate[We],this._deflate[Te]);i&&(n=new mm(n.buffer,n.byteOffset,n.length-4)),this._deflate[Xt]=null,this._deflate[Te]=0,this._deflate[We]=[],i&&this.params[`${s}_no_context_takeover`]&&this._deflate.reset(),r(null,n)})}};$h.exports=Gs;function xm(t){this[We].push(t),this[Te]+=t.length}function Wh(t){if(this[Te]+=t.length,this[$i]._maxPayload<1||this[Te]<=this[$i]._maxPayload){this[We].push(t);return}this[Wi]=new RangeError("Max payload size exceeded"),this[Wi].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[Wi][Gh]=1009,this.removeListener("data",Wh),this.reset()}function ym(t){this[$i]._inflate=null,t[Gh]=1007,this[Xt](t)}});var ei=v((Px,Hi)=>{"use strict";var{isUtf8:Hh}=require("buffer"),vm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function _m(t){return t>=1e3&&t<=1014&&t!==1004&&t!==1005&&t!==1006||t>=3e3&&t<=4999}function Ws(t){let e=t.length,i=0;for(;i<e;)if(!(t[i]&128))i++;else if((t[i]&224)===192){if(i+1===e||(t[i+1]&192)!==128||(t[i]&254)===192)return!1;i+=2}else if((t[i]&240)===224){if(i+2>=e||(t[i+1]&192)!==128||(t[i+2]&192)!==128||t[i]===224&&(t[i+1]&224)===128||t[i]===237&&(t[i+1]&224)===160)return!1;i+=3}else if((t[i]&248)===240){if(i+3>=e||(t[i+1]&192)!==128||(t[i+2]&192)!==128||(t[i+3]&192)!==128||t[i]===240&&(t[i+1]&240)===128||t[i]===244&&t[i+1]>143||t[i]>244)return!1;i+=4}else return!1;return!0}Hi.exports={isValidStatusCode:_m,isValidUTF8:Ws,tokenChars:vm};if(Hh)Hi.exports.isValidUTF8=function(t){return t.length<24?Ws(t):Hh(t)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=require("utf-8-validate");Hi.exports.isValidUTF8=function(e){return e.length<32?Ws(e):t(e)}}catch{}});var Ks=v((Tx,Zh)=>{"use strict";var{Writable:bm}=require("stream"),zh=Zt(),{BINARY_TYPES:Sm,EMPTY_BUFFER:Qh,kStatusCode:wm,kWebSocket:Cm}=Ge(),{concat:$s,toArrayBuffer:Em,unmask:km}=Yt(),{isValidStatusCode:Am,isValidUTF8:Kh}=ei(),zi=Buffer[Symbol.species],Om=Promise.resolve(),Hs=typeof queueMicrotask=="function"?queueMicrotask:Nm,ge=0,Yh=1,Jh=2,Xh=3,zs=4,Qi=5,Ki=6,Qs=class extends bm{constructor(e={}){super(),this._allowSynchronousEvents=!!e.allowSynchronousEvents,this._binaryType=e.binaryType||Sm[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[Cm]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=ge}_write(e,i,r){if(this._opcode===8&&this._state==ge)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new zi(r.buffer,r.byteOffset+e,r.length-e),new zi(r.buffer,r.byteOffset,e)}let i=Buffer.allocUnsafe(e);do{let r=this._buffers[0],s=i.length-e;e>=r.length?i.set(this._buffers.shift(),s):(i.set(new Uint8Array(r.buffer,r.byteOffset,e),s),this._buffers[0]=new zi(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length}while(e>0);return i}startLoop(e){this._loop=!0;do switch(this._state){case ge:this.getInfo(e);break;case Yh:this.getPayloadLength16(e);break;case Jh:this.getPayloadLength64(e);break;case Xh:this.getMask();break;case zs:this.getData(e);break;case Qi:case Ki:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let i=this.consume(2);if(i[0]&48){let s=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(s);return}let r=(i[0]&64)===64;if(r&&!this._extensions[zh.extensionName]){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(this._fin=(i[0]&128)===128,this._opcode=i[0]&15,this._payloadLength=i[1]&127,this._opcode===0){if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(!this._fragmented){let s=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let s=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(s);return}if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let s=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(s);return}}else{let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(i[1]&128)===128,this._isServer){if(!this._masked){let s=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(s);return}}else if(this._masked){let s=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(s);return}this._payloadLength===126?this._state=Yh:this._payloadLength===127?this._state=Jh:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let i=this.consume(8),r=i.readUInt32BE(0);if(r>Math.pow(2,21)-1){let s=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(s);return}this._payloadLength=r*Math.pow(2,32)+i.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let i=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(i);return}this._masked?this._state=Xh:this._state=zs}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=zs}getData(e){let i=Qh;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}i=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&km(i,this._mask)}if(this._opcode>7){this.controlMessage(i,e);return}if(this._compressed){this._state=Qi,this.decompress(i,e);return}i.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(i)),this.dataMessage(e)}decompress(e,i){this._extensions[zh.extensionName].decompress(e,this._fin,(s,n)=>{if(s)return i(s);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");i(a);return}this._fragments.push(n)}this.dataMessage(i),this._state===ge&&this.startLoop(i)})}dataMessage(e){if(!this._fin){this._state=ge;return}let i=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let s;this._binaryType==="nodebuffer"?s=$s(r,i):this._binaryType==="arraybuffer"?s=Em($s(r,i)):s=r,this._state===Qi||this._allowSynchronousEvents?(this.emit("message",s,!0),this._state=ge):(this._state=Ki,Hs(()=>{this.emit("message",s,!0),this._state=ge,this.startLoop(e)}))}else{let s=$s(r,i);if(!this._skipUTF8Validation&&!Kh(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(n);return}this._state===Qi||this._allowSynchronousEvents?(this.emit("message",s,!1),this._state=ge):(this._state=Ki,Hs(()=>{this.emit("message",s,!1),this._state=ge,this.startLoop(e)}))}}controlMessage(e,i){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,Qh),this.end();else{let r=e.readUInt16BE(0);if(!Am(r)){let n=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");i(n);return}let s=new zi(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!Kh(s)){let n=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");i(n);return}this._loop=!1,this.emit("conclude",r,s),this.end()}this._state=ge;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=ge):(this._state=Ki,Hs(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=ge,this.startLoop(i)}))}createError(e,i,r,s,n){this._loop=!1,this._errored=!0;let a=new e(r?`Invalid WebSocket frame: ${i}`:i);return Error.captureStackTrace(a,this.createError),a.code=n,a[wm]=s,a}};Zh.exports=Qs;function Nm(t){Om.then(t).catch(Lm)}function Im(t){throw t}function Lm(t){process.nextTick(Im,t)}});var Js=v((Mx,il)=>{"use strict";var{Duplex:Rx}=require("stream"),{randomFillSync:Pm}=require("crypto"),el=Zt(),{EMPTY_BUFFER:Tm}=Ge(),{isValidStatusCode:Rm}=ei(),{mask:tl,toBuffer:St}=Yt(),be=Symbol("kByteLength"),Mm=Buffer.alloc(4),Ys=class t{constructor(e,i,r){this._extensions=i||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,i){let r,s=!1,n=2,a=!1;i.mask&&(r=i.maskBuffer||Mm,i.generateMask?i.generateMask(r):Pm(r,0,4),a=(r[0]|r[1]|r[2]|r[3])===0,n=6);let o;typeof e=="string"?(!i.mask||a)&&i[be]!==void 0?o=i[be]:(e=Buffer.from(e),o=e.length):(o=e.length,s=i.mask&&i.readOnly&&!a);let h=o;o>=65536?(n+=8,h=127):o>125&&(n+=2,h=126);let l=Buffer.allocUnsafe(s?o+n:n);return l[0]=i.fin?i.opcode|128:i.opcode,i.rsv1&&(l[0]|=64),l[1]=h,h===126?l.writeUInt16BE(o,2):h===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),i.mask?(l[1]|=128,l[n-4]=r[0],l[n-3]=r[1],l[n-2]=r[2],l[n-1]=r[3],a?[l,e]:s?(tl(e,r,l,n,o),[l]):(tl(e,r,e,0,o),[l,e])):[l,e]}close(e,i,r,s){let n;if(e===void 0)n=Tm;else{if(typeof e!="number"||!Rm(e))throw new TypeError("First argument must be a valid error code number");if(i===void 0||!i.length)n=Buffer.allocUnsafe(2),n.writeUInt16BE(e,0);else{let o=Buffer.byteLength(i);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");n=Buffer.allocUnsafe(2+o),n.writeUInt16BE(e,0),typeof i=="string"?n.write(i,2):n.set(i,2)}}let a={[be]:n.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._deflating?this.enqueue([this.dispatch,n,!1,a,s]):this.sendFrame(t.frame(n,a),s)}ping(e,i,r){let s,n;if(typeof e=="string"?(s=Buffer.byteLength(e),n=!1):(e=St(e),s=e.length,n=St.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[be]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:9,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,a,r]):this.sendFrame(t.frame(e,a),r)}pong(e,i,r){let s,n;if(typeof e=="string"?(s=Buffer.byteLength(e),n=!1):(e=St(e),s=e.length,n=St.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[be]:s,fin:!0,generateMask:this._generateMask,mask:i,maskBuffer:this._maskBuffer,opcode:10,readOnly:n,rsv1:!1};this._deflating?this.enqueue([this.dispatch,e,!1,a,r]):this.sendFrame(t.frame(e,a),r)}send(e,i,r){let s=this._extensions[el.extensionName],n=i.binary?2:1,a=i.compress,o,h;if(typeof e=="string"?(o=Buffer.byteLength(e),h=!1):(e=St(e),o=e.length,h=St.readOnly),this._firstFragment?(this._firstFragment=!1,a&&s&&s.params[s._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=s._threshold),this._compress=a):(a=!1,n=0),i.fin&&(this._firstFragment=!0),s){let l={[be]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:a};this._deflating?this.enqueue([this.dispatch,e,this._compress,l,r]):this.dispatch(e,this._compress,l,r)}else this.sendFrame(t.frame(e,{[be]:o,fin:i.fin,generateMask:this._generateMask,mask:i.mask,maskBuffer:this._maskBuffer,opcode:n,readOnly:h,rsv1:!1}),r)}dispatch(e,i,r,s){if(!i){this.sendFrame(t.frame(e,r),s);return}let n=this._extensions[el.extensionName];this._bufferedBytes+=r[be],this._deflating=!0,n.compress(e,r.fin,(a,o)=>{if(this._socket.destroyed){let h=new Error("The socket was closed while data was being compressed");typeof s=="function"&&s(h);for(let l=0;l<this._queue.length;l++){let c=this._queue[l],f=c[c.length-1];typeof f=="function"&&f(h)}return}this._bufferedBytes-=r[be],this._deflating=!1,r.readOnly=!1,this.sendFrame(t.frame(o,r),s),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][be],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][be],this._queue.push(e)}sendFrame(e,i){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],i),this._socket.uncork()):this._socket.write(e[0],i)}};il.exports=Ys});var cl=v((Fx,ll)=>{"use strict";var{kForOnEventAttribute:ti,kListener:Xs}=Ge(),rl=Symbol("kCode"),sl=Symbol("kData"),nl=Symbol("kError"),al=Symbol("kMessage"),ol=Symbol("kReason"),wt=Symbol("kTarget"),ul=Symbol("kType"),hl=Symbol("kWasClean"),Re=class{constructor(e){this[wt]=null,this[ul]=e}get target(){return this[wt]}get type(){return this[ul]}};Object.defineProperty(Re.prototype,"target",{enumerable:!0});Object.defineProperty(Re.prototype,"type",{enumerable:!0});var et=class extends Re{constructor(e,i={}){super(e),this[rl]=i.code===void 0?0:i.code,this[ol]=i.reason===void 0?"":i.reason,this[hl]=i.wasClean===void 0?!1:i.wasClean}get code(){return this[rl]}get reason(){return this[ol]}get wasClean(){return this[hl]}};Object.defineProperty(et.prototype,"code",{enumerable:!0});Object.defineProperty(et.prototype,"reason",{enumerable:!0});Object.defineProperty(et.prototype,"wasClean",{enumerable:!0});var Ct=class extends Re{constructor(e,i={}){super(e),this[nl]=i.error===void 0?null:i.error,this[al]=i.message===void 0?"":i.message}get error(){return this[nl]}get message(){return this[al]}};Object.defineProperty(Ct.prototype,"error",{enumerable:!0});Object.defineProperty(Ct.prototype,"message",{enumerable:!0});var ii=class extends Re{constructor(e,i={}){super(e),this[sl]=i.data===void 0?null:i.data}get data(){return this[sl]}};Object.defineProperty(ii.prototype,"data",{enumerable:!0});var Fm={addEventListener(t,e,i={}){for(let s of this.listeners(t))if(!i[ti]&&s[Xs]===e&&!s[ti])return;let r;if(t==="message")r=function(n,a){let o=new ii("message",{data:a?n:n.toString()});o[wt]=this,Yi(e,this,o)};else if(t==="close")r=function(n,a){let o=new et("close",{code:n,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[wt]=this,Yi(e,this,o)};else if(t==="error")r=function(n){let a=new Ct("error",{error:n,message:n.message});a[wt]=this,Yi(e,this,a)};else if(t==="open")r=function(){let n=new Re("open");n[wt]=this,Yi(e,this,n)};else return;r[ti]=!!i[ti],r[Xs]=e,i.once?this.once(t,r):this.on(t,r)},removeEventListener(t,e){for(let i of this.listeners(t))if(i[Xs]===e&&!i[ti]){this.removeListener(t,i);break}}};ll.exports={CloseEvent:et,ErrorEvent:Ct,Event:Re,EventTarget:Fm,MessageEvent:ii};function Yi(t,e,i){typeof t=="object"&&t.handleEvent?t.handleEvent.call(t,i):t.call(e,i)}});var Zs=v((Vx,fl)=>{"use strict";var{tokenChars:ri}=ei();function ke(t,e,i){t[e]===void 0?t[e]=[i]:t[e].push(i)}function Vm(t){let e=Object.create(null),i=Object.create(null),r=!1,s=!1,n=!1,a,o,h=-1,l=-1,c=-1,f=0;for(;f<t.length;f++)if(l=t.charCodeAt(f),a===void 0)if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(f!==0&&(l===32||l===9))c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=t.slice(h,c);l===44?(ke(e,d,i),i=Object.create(null)):a=d,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(o===void 0)if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(l===32||l===9)c===-1&&h!==-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f),ke(i,t.slice(h,c),!0),l===44&&(ke(e,a,i),i=Object.create(null),a=void 0),h=c=-1}else if(l===61&&h!==-1&&c===-1)o=t.slice(h,f),h=c=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(s){if(ri[l]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);h===-1?h=f:r||(r=!0),s=!1}else if(n)if(ri[l]===1)h===-1&&(h=f);else if(l===34&&h!==-1)n=!1,c=f;else if(l===92)s=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(l===34&&t.charCodeAt(f-1)===61)n=!0;else if(c===-1&&ri[l]===1)h===-1&&(h=f);else if(h!==-1&&(l===32||l===9))c===-1&&(c=f);else if(l===59||l===44){if(h===-1)throw new SyntaxError(`Unexpected character at index ${f}`);c===-1&&(c=f);let d=t.slice(h,c);r&&(d=d.replace(/\\/g,""),r=!1),ke(i,o,d),l===44&&(ke(e,a,i),i=Object.create(null),a=void 0),o=void 0,h=c=-1}else throw new SyntaxError(`Unexpected character at index ${f}`);if(h===-1||n||l===32||l===9)throw new SyntaxError("Unexpected end of input");c===-1&&(c=f);let p=t.slice(h,c);return a===void 0?ke(e,p,i):(o===void 0?ke(i,p,!0):r?ke(i,o,p.replace(/\\/g,"")):ke(i,o,p),ke(e,a,i)),e}function Bm(t){return Object.keys(t).map(e=>{let i=t[e];return Array.isArray(i)||(i=[i]),i.map(r=>[e].concat(Object.keys(r).map(s=>{let n=r[s];return Array.isArray(n)||(n=[n]),n.map(a=>a===!0?s:`${s}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}fl.exports={format:Bm,parse:Vm}});var nn=v((Ux,wl)=>{"use strict";var Dm=require("events"),Um=require("https"),qm=require("http"),ml=require("net"),jm=require("tls"),{randomBytes:Gm,createHash:Wm}=require("crypto"),{Duplex:Bx,Readable:Dx}=require("stream"),{URL:en}=require("url"),$e=Zt(),$m=Ks(),Hm=Js(),{BINARY_TYPES:pl,EMPTY_BUFFER:Ji,GUID:zm,kForOnEventAttribute:tn,kListener:Qm,kStatusCode:Km,kWebSocket:Y,NOOP:gl}=Ge(),{EventTarget:{addEventListener:Ym,removeEventListener:Jm}}=cl(),{format:Xm,parse:Zm}=Zs(),{toBuffer:eg}=Yt(),tg=30*1e3,xl=Symbol("kAborted"),rn=[8,13],Me=["CONNECTING","OPEN","CLOSING","CLOSED"],ig=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,U=class t extends Dm{constructor(e,i,r){super(),this._binaryType=pl[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Ji,this._closeTimer=null,this._extensions={},this._paused=!1,this._protocol="",this._readyState=t.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,i===void 0?i=[]:Array.isArray(i)||(typeof i=="object"&&i!==null?(r=i,i=[]):i=[i]),yl(this,e,i,r)):(this._autoPong=r.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){pl.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,i,r){let s=new $m({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new Hm(e,this._extensions,r.generateMask),this._receiver=s,this._socket=e,s[Y]=this,e[Y]=this,s.on("conclude",ng),s.on("drain",ag),s.on("error",og),s.on("message",ug),s.on("ping",hg),s.on("pong",lg),e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),i.length>0&&e.unshift(i),e.on("close",_l),e.on("data",Zi),e.on("end",bl),e.on("error",Sl),this._readyState=t.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[$e.extensionName]&&this._extensions[$e.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=t.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,i){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===t.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=t.CLOSING,this._sender.close(e,i,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),tg)}}pause(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!0,this._socket.pause())}ping(e,i,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){sn(this,e,r);return}i===void 0&&(i=!this._isServer),this._sender.ping(e||Ji,i,r)}pong(e,i,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=i=void 0):typeof i=="function"&&(r=i,i=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){sn(this,e,r);return}i===void 0&&(i=!this._isServer),this._sender.pong(e||Ji,i,r)}resume(){this.readyState===t.CONNECTING||this.readyState===t.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,i,r){if(this.readyState===t.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof i=="function"&&(r=i,i={}),typeof e=="number"&&(e=e.toString()),this.readyState!==t.OPEN){sn(this,e,r);return}let s={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...i};this._extensions[$e.extensionName]||(s.compress=!1),this._sender.send(e||Ji,s,r)}terminate(){if(this.readyState!==t.CLOSED){if(this.readyState===t.CONNECTING){ne(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=t.CLOSING,this._socket.destroy())}}};Object.defineProperty(U,"CONNECTING",{enumerable:!0,value:Me.indexOf("CONNECTING")});Object.defineProperty(U.prototype,"CONNECTING",{enumerable:!0,value:Me.indexOf("CONNECTING")});Object.defineProperty(U,"OPEN",{enumerable:!0,value:Me.indexOf("OPEN")});Object.defineProperty(U.prototype,"OPEN",{enumerable:!0,value:Me.indexOf("OPEN")});Object.defineProperty(U,"CLOSING",{enumerable:!0,value:Me.indexOf("CLOSING")});Object.defineProperty(U.prototype,"CLOSING",{enumerable:!0,value:Me.indexOf("CLOSING")});Object.defineProperty(U,"CLOSED",{enumerable:!0,value:Me.indexOf("CLOSED")});Object.defineProperty(U.prototype,"CLOSED",{enumerable:!0,value:Me.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(t=>{Object.defineProperty(U.prototype,t,{enumerable:!0})});["open","error","close","message"].forEach(t=>{Object.defineProperty(U.prototype,`on${t}`,{enumerable:!0,get(){for(let e of this.listeners(t))if(e[tn])return e[Qm];return null},set(e){for(let i of this.listeners(t))if(i[tn]){this.removeListener(t,i);break}typeof e=="function"&&this.addEventListener(t,e,{[tn]:!0})}})});U.prototype.addEventListener=Ym;U.prototype.removeEventListener=Jm;wl.exports=U;function yl(t,e,i,r){let s={allowSynchronousEvents:!1,autoPong:!0,protocolVersion:rn[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(t._autoPong=s.autoPong,!rn.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${rn.join(", ")})`);let n;if(e instanceof en)n=e;else try{n=new en(e)}catch{throw new SyntaxError(`Invalid URL: ${e}`)}n.protocol==="http:"?n.protocol="ws:":n.protocol==="https:"&&(n.protocol="wss:"),t._url=n.href;let a=n.protocol==="wss:",o=n.protocol==="ws+unix:",h;if(n.protocol!=="ws:"&&!a&&!o?h=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:o&&!n.pathname?h="The URL's pathname is empty":n.hash&&(h="The URL contains a fragment identifier"),h){let g=new SyntaxError(h);if(t._redirects===0)throw g;Xi(t,g);return}let l=a?443:80,c=Gm(16).toString("base64"),f=a?Um.request:qm.request,p=new Set,d;if(s.createConnection=a?sg:rg,s.defaultPort=s.defaultPort||l,s.port=n.port||l,s.host=n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket"},s.path=n.pathname+n.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(d=new $e(s.perMessageDeflate!==!0?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=Xm({[$e.extensionName]:d.offer()})),i.length){for(let g of i){if(typeof g!="string"||!ig.test(g)||p.has(g))throw new SyntaxError("An invalid or duplicated subprotocol was specified");p.add(g)}s.headers["Sec-WebSocket-Protocol"]=i.join(",")}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(n.username||n.password)&&(s.auth=`${n.username}:${n.password}`),o){let g=s.path.split(":");s.socketPath=g[0],s.path=g[1]}let m;if(s.followRedirects){if(t._redirects===0){t._originalIpc=o,t._originalSecure=a,t._originalHostOrSocketPath=o?s.socketPath:n.host;let g=r&&r.headers;if(r={...r,headers:{}},g)for(let[y,C]of Object.entries(g))r.headers[y.toLowerCase()]=C}else if(t.listenerCount("redirect")===0){let g=o?t._originalIpc?s.socketPath===t._originalHostOrSocketPath:!1:t._originalIpc?!1:n.host===t._originalHostOrSocketPath;(!g||t._originalSecure&&!a)&&(delete s.headers.authorization,delete s.headers.cookie,g||delete s.headers.host,s.auth=void 0)}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")),m=t._req=f(s),t._redirects&&t.emit("redirect",t.url,m)}else m=t._req=f(s);s.timeout&&m.on("timeout",()=>{ne(t,m,"Opening handshake has timed out")}),m.on("error",g=>{m===null||m[xl]||(m=t._req=null,Xi(t,g))}),m.on("response",g=>{let y=g.headers.location,C=g.statusCode;if(y&&s.followRedirects&&C>=300&&C<400){if(++t._redirects>s.maxRedirects){ne(t,m,"Maximum redirects exceeded");return}m.abort();let L;try{L=new en(y,e)}catch{let T=new SyntaxError(`Invalid URL: ${y}`);Xi(t,T);return}yl(t,L,i,r)}else t.emit("unexpected-response",m,g)||ne(t,m,`Unexpected server response: ${g.statusCode}`)}),m.on("upgrade",(g,y,C)=>{if(t.emit("upgrade",g),t.readyState!==U.CONNECTING)return;if(m=t._req=null,g.headers.upgrade.toLowerCase()!=="websocket"){ne(t,y,"Invalid Upgrade header");return}let L=Wm("sha1").update(c+zm).digest("base64");if(g.headers["sec-websocket-accept"]!==L){ne(t,y,"Invalid Sec-WebSocket-Accept header");return}let q=g.headers["sec-websocket-protocol"],T;if(q!==void 0?p.size?p.has(q)||(T="Server sent an invalid subprotocol"):T="Server sent a subprotocol but none was requested":p.size&&(T="Server sent no subprotocol"),T){ne(t,y,T);return}q&&(t._protocol=q);let G=g.headers["sec-websocket-extensions"];if(G!==void 0){if(!d){ne(t,y,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let F;try{F=Zm(G)}catch{ne(t,y,"Invalid Sec-WebSocket-Extensions header");return}let He=Object.keys(F);if(He.length!==1||He[0]!==$e.extensionName){ne(t,y,"Server indicated an extension that was not requested");return}try{d.accept(F[$e.extensionName])}catch{ne(t,y,"Invalid Sec-WebSocket-Extensions header");return}t._extensions[$e.extensionName]=d}t.setSocket(y,C,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}),s.finishRequest?s.finishRequest(m,t):m.end()}function Xi(t,e){t._readyState=U.CLOSING,t.emit("error",e),t.emitClose()}function rg(t){return t.path=t.socketPath,ml.connect(t)}function sg(t){return t.path=void 0,!t.servername&&t.servername!==""&&(t.servername=ml.isIP(t.host)?"":t.host),jm.connect(t)}function ne(t,e,i){t._readyState=U.CLOSING;let r=new Error(i);Error.captureStackTrace(r,ne),e.setHeader?(e[xl]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(Xi,t,r)):(e.destroy(r),e.once("error",t.emit.bind(t,"error")),e.once("close",t.emitClose.bind(t)))}function sn(t,e,i){if(e){let r=eg(e).length;t._socket?t._sender._bufferedBytes+=r:t._bufferedAmount+=r}if(i){let r=new Error(`WebSocket is not open: readyState ${t.readyState} (${Me[t.readyState]})`);process.nextTick(i,r)}}function ng(t,e){let i=this[Y];i._closeFrameReceived=!0,i._closeMessage=e,i._closeCode=t,i._socket[Y]!==void 0&&(i._socket.removeListener("data",Zi),process.nextTick(vl,i._socket),t===1005?i.close():i.close(t,e))}function ag(){let t=this[Y];t.isPaused||t._socket.resume()}function og(t){let e=this[Y];e._socket[Y]!==void 0&&(e._socket.removeListener("data",Zi),process.nextTick(vl,e._socket),e.close(t[Km])),e.emit("error",t)}function dl(){this[Y].emitClose()}function ug(t,e){this[Y].emit("message",t,e)}function hg(t){let e=this[Y];e._autoPong&&e.pong(t,!this._isServer,gl),e.emit("ping",t)}function lg(t){this[Y].emit("pong",t)}function vl(t){t.resume()}function _l(){let t=this[Y];this.removeListener("close",_l),this.removeListener("data",Zi),this.removeListener("end",bl),t._readyState=U.CLOSING;let e;!this._readableState.endEmitted&&!t._closeFrameReceived&&!t._receiver._writableState.errorEmitted&&(e=t._socket.read())!==null&&t._receiver.write(e),t._receiver.end(),this[Y]=void 0,clearTimeout(t._closeTimer),t._receiver._writableState.finished||t._receiver._writableState.errorEmitted?t.emitClose():(t._receiver.on("error",dl),t._receiver.on("finish",dl))}function Zi(t){this[Y]._receiver.write(t)||this.pause()}function bl(){let t=this[Y];t._readyState=U.CLOSING,t._receiver.end(),this.end()}function Sl(){let t=this[Y];this.removeListener("error",Sl),this.on("error",gl),t&&(t._readyState=U.CLOSING,this.destroy())}});var El=v((qx,Cl)=>{"use strict";var{tokenChars:cg}=ei();function fg(t){let e=new Set,i=-1,r=-1,s=0;for(s;s<t.length;s++){let a=t.charCodeAt(s);if(r===-1&&cg[a]===1)i===-1&&(i=s);else if(s!==0&&(a===32||a===9))r===-1&&i!==-1&&(r=s);else if(a===44){if(i===-1)throw new SyntaxError(`Unexpected character at index ${s}`);r===-1&&(r=s);let o=t.slice(i,r);if(e.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);e.add(o),i=r=-1}else throw new SyntaxError(`Unexpected character at index ${s}`)}if(i===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let n=t.slice(i,s);if(e.has(n))throw new SyntaxError(`The "${n}" subprotocol is duplicated`);return e.add(n),e}Cl.exports={parse:fg}});var Pl=v((Gx,Ll)=>{"use strict";var pg=require("events"),er=require("http"),{Duplex:jx}=require("stream"),{createHash:dg}=require("crypto"),kl=Zs(),tt=Zt(),mg=El(),gg=nn(),{GUID:xg,kWebSocket:yg}=Ge(),vg=/^[+/0-9A-Za-z]{22}==$/,Al=0,Ol=1,Il=2,an=class extends pg{constructor(e,i){if(super(),e={allowSynchronousEvents:!1,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:gg,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=er.createServer((r,s)=>{let n=er.STATUS_CODES[426];s.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),s.end(n)}),this._server.listen(e.port,e.host,e.backlog,i)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=_g(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(s,n,a)=>{this.handleUpgrade(s,n,a,r)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=Al}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===Il){e&&this.once("close",()=>{e(new Error("The server is not running"))}),process.nextTick(si,this);return}if(e&&this.once("close",e),this._state!==Ol)if(this._state=Ol,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(si,this):process.nextTick(si,this);else{let i=this._server;this._removeListeners(),this._removeListeners=this._server=null,i.close(()=>{si(this)})}}shouldHandle(e){if(this.options.path){let i=e.url.indexOf("?");if((i!==-1?e.url.slice(0,i):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,i,r,s){i.on("error",Nl);let n=e.headers["sec-websocket-key"],a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){it(this,e,i,405,"Invalid HTTP method");return}if(e.headers.upgrade.toLowerCase()!=="websocket"){it(this,e,i,400,"Invalid Upgrade header");return}if(!n||!vg.test(n)){it(this,e,i,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==8&&a!==13){it(this,e,i,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){ni(i,400);return}let o=e.headers["sec-websocket-protocol"],h=new Set;if(o!==void 0)try{h=mg.parse(o)}catch{it(this,e,i,400,"Invalid Sec-WebSocket-Protocol header");return}let l=e.headers["sec-websocket-extensions"],c={};if(this.options.perMessageDeflate&&l!==void 0){let f=new tt(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let p=kl.parse(l);p[tt.extensionName]&&(f.accept(p[tt.extensionName]),c[tt.extensionName]=f)}catch{it(this,e,i,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(p,d,m,g)=>{if(!p)return ni(i,d||401,m,g);this.completeUpgrade(c,n,h,e,i,r,s)});return}if(!this.options.verifyClient(f))return ni(i,401)}this.completeUpgrade(c,n,h,e,i,r,s)}completeUpgrade(e,i,r,s,n,a,o){if(!n.readable||!n.writable)return n.destroy();if(n[yg])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>Al)return ni(n,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${dg("sha1").update(i+xg).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(r.size){let f=this.options.handleProtocols?this.options.handleProtocols(r,s):r.values().next().value;f&&(l.push(`Sec-WebSocket-Protocol: ${f}`),c._protocol=f)}if(e[tt.extensionName]){let f=e[tt.extensionName].params,p=kl.format({[tt.extensionName]:[f]});l.push(`Sec-WebSocket-Extensions: ${p}`),c._extensions=e}this.emit("headers",l,s),n.write(l.concat(`\r
|
|
50
|
+
`).join(`\r
|
|
51
|
+
`)),n.removeListener("error",Nl),c.setSocket(n,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(si,this)})),o(c,s)}};Ll.exports=an;function _g(t,e){for(let i of Object.keys(e))t.on(i,e[i]);return function(){for(let r of Object.keys(e))t.removeListener(r,e[r])}}function si(t){t._state=Il,t.emit("close")}function Nl(){this.destroy()}function ni(t,e,i,r){i=i||er.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(i),...r},t.once("finish",t.destroy),t.end(`HTTP/1.1 ${e} ${er.STATUS_CODES[e]}\r
|
|
52
|
+
`+Object.keys(r).map(s=>`${s}: ${r[s]}`).join(`\r
|
|
53
|
+
`)+`\r
|
|
54
|
+
\r
|
|
55
|
+
`+i)}function it(t,e,i,r,s){if(t.listenerCount("wsClientError")){let n=new Error(s);Error.captureStackTrace(n,it),t.emit("wsClientError",n,i,e)}else ni(i,r,s)}});var Ig={};ui(Ig,{WebSocket:()=>Rl,acorn:()=>Sr,acornLoose:()=>wr,acornWalk:()=>Er,convertSourceMap:()=>Ng,decode:()=>dn,foregroundChild:()=>ah,mergeScriptCovs:()=>Bl.mergeScriptCovs,minimatch:()=>Q,parseCss:()=>Dl.default,program:()=>lu,supportsColor:()=>Vl});module.exports=$l(Ig);var Ng=J(ln());var cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ec=new Uint8Array(64),pn=new Uint8Array(128);for(let t=0;t<cn.length;t++){let e=cn.charCodeAt(t);ec[t]=e,pn[e]=t}function dn(t){let e=new Int32Array(5),i=[],r=0;do{let s=tc(t,r),n=[],a=!0,o=0;e[0]=0;for(let h=r;h<s;h++){let l;h=Et(t,h,e,0);let c=e[0];c<o&&(a=!1),o=c,fn(t,h,s)?(h=Et(t,h,e,1),h=Et(t,h,e,2),h=Et(t,h,e,3),fn(t,h,s)?(h=Et(t,h,e,4),l=[c,e[1],e[2],e[3],e[4]]):l=[c,e[1],e[2],e[3]]):l=[c],n.push(l)}a||ic(n),i.push(n),r=s+1}while(r<=t.length);return i}function tc(t,e){let i=t.indexOf(";",e);return i===-1?t.length:i}function Et(t,e,i,r){let s=0,n=0,a=0;do{let h=t.charCodeAt(e++);a=pn[h],s|=(a&31)<<n,n+=5}while(a&32);let o=s&1;return s>>>=1,o&&(s=-2147483648|-s),i[r]+=s,e}function fn(t,e,i){return e>=i?!1:t.charCodeAt(e)!==44}function ic(t){t.sort(rc)}function rc(t,e){return t[0]-e[0]}var Bl=J(Rn());var Sr={};ui(Sr,{Node:()=>Ne,Parser:()=>R,Position:()=>at,SourceLocation:()=>De,TokContext:()=>ue,Token:()=>lt,TokenType:()=>A,defaultOptions:()=>ot,getLineInfo:()=>Qe,isIdentifierChar:()=>ze,isIdentifierStart:()=>Se,isNewLine:()=>ye,keywordTypes:()=>vi,lineBreak:()=>X,lineBreakG:()=>Lt,nonASCIIwhitespace:()=>mr,parse:()=>rf,parseExpressionAt:()=>sf,tokContexts:()=>I,tokTypes:()=>u,tokenizer:()=>nf,version:()=>_a});var wc=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Un=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Cc="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",qn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",lr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},cr="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ec={5:cr,"5module":cr+" export import",6:cr+" const class extends export import super"},kc=/^in(stanceof)?$/,Ac=new RegExp("["+qn+"]"),Oc=new RegExp("["+qn+Cc+"]");function pr(t,e){for(var i=65536,r=0;r<e.length;r+=2){if(i+=e[r],i>t)return!1;if(i+=e[r+1],i>=t)return!0}return!1}function Se(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ac.test(String.fromCharCode(t)):e===!1?!1:pr(t,Un)}function ze(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Oc.test(String.fromCharCode(t)):e===!1?!1:pr(t,Un)||pr(t,wc)}var A=function(e,i){i===void 0&&(i={}),this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function ae(t,e){return new A(t,{beforeExpr:!0,binop:e})}var oe={beforeExpr:!0},te={startsExpr:!0},vi={};function k(t,e){return e===void 0&&(e={}),e.keyword=t,vi[t]=new A(t,e)}var u={num:new A("num",te),regexp:new A("regexp",te),string:new A("string",te),name:new A("name",te),privateId:new A("privateId",te),eof:new A("eof"),bracketL:new A("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new A("]"),braceL:new A("{",{beforeExpr:!0,startsExpr:!0}),braceR:new A("}"),parenL:new A("(",{beforeExpr:!0,startsExpr:!0}),parenR:new A(")"),comma:new A(",",oe),semi:new A(";",oe),colon:new A(":",oe),dot:new A("."),question:new A("?",oe),questionDot:new A("?."),arrow:new A("=>",oe),template:new A("template"),invalidTemplate:new A("invalidTemplate"),ellipsis:new A("...",oe),backQuote:new A("`",te),dollarBraceL:new A("${",{beforeExpr:!0,startsExpr:!0}),eq:new A("=",{beforeExpr:!0,isAssign:!0}),assign:new A("_=",{beforeExpr:!0,isAssign:!0}),incDec:new A("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new A("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ae("||",1),logicalAND:ae("&&",2),bitwiseOR:ae("|",3),bitwiseXOR:ae("^",4),bitwiseAND:ae("&",5),equality:ae("==/!=/===/!==",6),relational:ae("</>/<=/>=",7),bitShift:ae("<</>>/>>>",8),plusMin:new A("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ae("%",10),star:ae("*",10),slash:ae("/",10),starstar:new A("**",{beforeExpr:!0}),coalesce:ae("??",1),_break:k("break"),_case:k("case",oe),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",oe),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",oe),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",te),_if:k("if"),_return:k("return",oe),_switch:k("switch"),_throw:k("throw",oe),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",te),_super:k("super",te),_class:k("class",te),_extends:k("extends",oe),_export:k("export"),_import:k("import",te),_null:k("null",te),_true:k("true",te),_false:k("false",te),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},X=/\r\n?|\n|\u2028|\u2029/,Lt=new RegExp(X.source,"g");function ye(t){return t===10||t===13||t===8232||t===8233}function jn(t,e,i){i===void 0&&(i=t.length);for(var r=e;r<i;r++){var s=t.charCodeAt(r);if(ye(s))return r<i-1&&s===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var mr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,he=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Gn=Object.prototype,Nc=Gn.hasOwnProperty,Ic=Gn.toString,Pt=Object.hasOwn||function(t,e){return Nc.call(t,e)},Mn=Array.isArray||function(t){return Ic.call(t)==="[object Array]"},Fn=Object.create(null);function Ve(t){return Fn[t]||(Fn[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function Be(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}var Lc=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,at=function(e,i){this.line=e,this.column=i};at.prototype.offset=function(e){return new at(this.line,this.column+e)};var De=function(e,i,r){this.start=i,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)};function Qe(t,e){for(var i=1,r=0;;){var s=jn(t,r,e);if(s<0)return new at(i,e-r);++i,r=s}}var ot={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Vn=!1;function Pc(t){var e={};for(var i in ot)e[i]=t&&Pt(t,i)?t[i]:ot[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!Vn&&typeof console=="object"&&console.warn&&(Vn=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
56
|
+
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),Mn(e.onToken)){var r=e.onToken;e.onToken=function(s){return r.push(s)}}return Mn(e.onComment)&&(e.onComment=Tc(e,e.onComment)),e}function Tc(t,e){return function(i,r,s,n,a,o){var h={type:i?"Block":"Line",value:r,start:s,end:n};t.locations&&(h.loc=new De(this,a,o)),t.ranges&&(h.range=[s,n]),e.push(h)}}var It=1,ut=2,gr=4,Wn=8,$n=16,Hn=32,xr=64,zn=128,Tt=256,yr=It|ut|Tt;function vr(t,e){return ut|(t?gr:0)|(e?Wn:0)}var gi=0,_r=1,Oe=2,Qn=3,Kn=4,Yn=5,R=function(e,i,r){this.options=e=Pc(e),this.sourceFile=e.sourceFile,this.keywords=Ve(Ec[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var s="";e.allowReserved!==!0&&(s=lr[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module"&&(s+=" await")),this.reservedWords=Ve(s);var n=(s?s+" ":"")+lr.strict;this.reservedWordsStrict=Ve(n),this.reservedWordsStrictBind=Ve(n+" "+lr.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
57
|
+
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(X).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(It),this.regexpState=null,this.privateNameStack=[]},we={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};R.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};we.inFunction.get=function(){return(this.currentVarScope().flags&ut)>0};we.inGenerator.get=function(){return(this.currentVarScope().flags&Wn)>0&&!this.currentVarScope().inClassFieldInit};we.inAsync.get=function(){return(this.currentVarScope().flags&gr)>0&&!this.currentVarScope().inClassFieldInit};we.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags&Tt)return!1;if(e.flags&ut)return(e.flags&gr)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};we.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&xr)>0||i||this.options.allowSuperOutsideMethod};we.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zn)>0};we.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};we.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(e&(ut|Tt))>0||i};we.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Tt)>0};R.extend=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var r=this,s=0;s<e.length;s++)r=e[s](r);return r};R.parse=function(e,i){return new this(i,e).parse()};R.parseExpressionAt=function(e,i,r){var s=new this(r,e,i);return s.nextToken(),s.parseExpression()};R.tokenizer=function(e,i){return new this(i,e)};Object.defineProperties(R.prototype,we);var Z=R.prototype,Rc=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Z.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){he.lastIndex=t,t+=he.exec(this.input)[0].length;var e=Rc.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){he.lastIndex=t+e[0].length;var i=he.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||X.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}t+=e[0].length,he.lastIndex=t,t+=he.exec(this.input)[0].length,this.input[t]===";"&&t++}};Z.eat=function(t){return this.type===t?(this.next(),!0):!1};Z.isContextual=function(t){return this.type===u.name&&this.value===t&&!this.containsEsc};Z.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};Z.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};Z.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||X.test(this.input.slice(this.lastTokEnd,this.start))};Z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Z.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};Z.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};Z.expect=function(t){this.eat(t)||this.unexpected()};Z.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var _i=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Z.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}};Z.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,r=t.doubleProto;if(!e)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")};Z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Z.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var S=R.prototype;S.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var n=s[r];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var br={kind:"loop"},Mc={kind:"switch"};S.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;he.lastIndex=this.pos;var e=he.exec(this.input),i=this.pos+e[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(t)return!1;if(r===123||r>55295&&r<56320)return!0;if(Se(r,!0)){for(var s=i+1;ze(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var n=this.input.slice(i,s);if(!kc.test(n))return!0}return!1};S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;he.lastIndex=this.pos;var t=he.exec(this.input),e=this.pos+t[0].length,i;return!X.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(ze(i=this.input.charCodeAt(e+8))||i>55295&&i<56320))};S.parseStatement=function(t,e,i){var r=this.type,s=this.startNode(),n;switch(this.isLet(t)&&(r=u._var,n="let"),r){case u._break:case u._continue:return this.parseBreakContinueStatement(s,r.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case u._class:return t&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return n=n||this.value,t&&n!=="var"&&this.unexpected(),this.parseVarStatement(s,n);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&r===u._import){he.lastIndex=this.pos;var a=he.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(h===40||h===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var l=this.value,c=this.parseExpression();return r===u.name&&c.type==="Identifier"&&this.eat(u.colon)?this.parseLabeledStatement(s,l,c,t):this.parseExpressionStatement(s,c)}};S.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(u.semi)||this.insertSemicolon()?t.label=null:this.type!==u.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||t.label&&i))break}return r===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")};S.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};S.parseDoStatement=function(t){return this.next(),this.labels.push(br),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};S.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(br),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===u._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,r)):(e>-1&&this.unexpected(e),this.parseFor(t,r))}var n=this.isContextual("let"),a=!1,o=new _i,h=this.parseExpression(e>-1?"await":!0,o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?e>-1&&this.unexpected(e):t.await=e>-1),n&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,o),this.checkLValPattern(h),this.parseForIn(t,h)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,h))};S.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Nt|(i?0:dr),!1,e)};S.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};S.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};S.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(u.braceL),this.labels.push(Mc),this.enterScope(0);for(var e,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(u.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};S.parseThrowStatement=function(t){return this.next(),X.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Fc=[];S.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?Hn:0),this.checkLValPattern(t,e?Kn:Oe),this.expect(u.parenR),t};S.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===u._catch){var e=this.startNode();this.next(),this.eat(u.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(u._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};S.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")};S.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(br),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};S.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};S.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};S.parseLabeledStatement=function(t,e,i,r){for(var s=0,n=this.labels;s<n.length;s+=1){var a=n[s];a.name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===u._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var l=this.labels[h];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=o;else break}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")};S.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};S.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(u.braceL),t&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);e.body.push(r)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};S.parseFor=function(t,e){return t.init=e,this.expect(u.semi),t.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),t.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};S.parseForIn=function(t,e){var i=this.type===u._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")};S.parseVar=function(t,e,i,r){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(u.eq)?s.init=this.parseMaybeAssign(e):!r&&i==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&s.id.type!=="Identifier"&&!(e&&(this.type===u._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(u.comma))break}return t};S.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?_r:Oe,!1)};var Nt=1,dr=2,Jn=4;S.parseFunction=function(t,e,i,r,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&e&dr&&this.unexpected(),t.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(t.async=!!r),e&Nt&&(t.id=e&Jn&&this.type!==u.name?null:this.parseIdent(),t.id&&!(e&dr)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?_r:Oe:Qn));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vr(t.async,t.generator)),e&Nt||(t.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Nt?"FunctionDeclaration":"FunctionExpression")};S.parseFunctionParams=function(t){this.expect(u.parenL),t.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};S.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),s=this.startNode(),n=!1;for(s.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(t.superClass!==null);a&&(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&Vc(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};S.parseClassElement=function(t){if(this.eat(u.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?n=!0:r="async"),!r&&(e>=9||!n)&&this.eat(u.star)&&(s=!0),!r&&!n&&!s){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:r=h)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===u.parenL||a!=="method"||s||n){var l=!i.static&&xi(i,"constructor"),c=l&&t;l&&a!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,s,n,c)}else this.parseClassField(i);return i};S.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};S.parseClassElementName=function(t){this.type===u.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};S.parseClassMethod=function(t,e,i,r){var s=t.key;t.kind==="constructor"?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&xi(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,i,r);return t.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),t.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),t.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")};S.parseClassField=function(t){if(xi(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&xi(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")};S.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(Tt|xr);this.type!==u.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};S.parseClassId=function(t,e){this.type===u.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,Oe,!1)):(e===!0&&this.unexpected(),t.id=null)};S.parseClassSuper=function(t){t.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};S.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};S.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],n=0;n<i.length;++n){var a=i[n];Pt(e,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function Vc(t,e){var i=e.key.name,r=t[i],s="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(s=(e.static?"s":"i")+e.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(t[i]="true",!1):r?!0:(t[i]=s,!1)}function xi(t,e){var i=t.computed,r=t.key;return!i&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}S.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};S.parseExport=function(t,e){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(t,e);if(this.eat(u._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,r=t.specifiers;i<r.length;i+=1){var s=r[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};S.parseExportDeclaration=function(t){return this.parseStatement(null)};S.parseExportDefaultDeclaration=function(){var t;if(this.type===u._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,Nt|Jn,!1,t)}else if(this.type===u._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};S.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Pt(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)};S.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var r=0,s=e.properties;r<s.length;r+=1){var n=s[r];this.checkPatternExport(t,n)}else if(i==="ArrayPattern")for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(t,h)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)};S.checkVariableExport=function(t,e){if(t)for(var i=0,r=e;i<r.length;i+=1){var s=r[i];this.checkPatternExport(t,s.id)}};S.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};S.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};S.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseExportSpecifier(t))}return e};S.parseImport=function(t){return this.next(),this.type===u.string?(t.specifiers=Fc,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};S.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,Oe),this.finishNode(t,"ImportSpecifier")};S.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,Oe),this.finishNode(t,"ImportDefaultSpecifier")};S.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,Oe),this.finishNode(t,"ImportNamespaceSpecifier")};S.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===u.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return t;if(this.type===u.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(u.braceL);!this.eat(u.braceR);){if(e)e=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseImportSpecifier())}return t};S.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var t=this.parseLiteral(this.value);return Lc.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)};S.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};S.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var ce=R.prototype;ce.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.toAssignable(n,e),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t};ce.toAssignableList=function(t,e){for(var i=t.length,r=0;r<i;r++){var s=t[r];s&&this.toAssignable(s,e)}if(i){var n=t[i-1];this.options.ecmaVersion===6&&e&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return t};ce.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};ce.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==u.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};ce.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};ce.parseBindingList=function(t,e,i,r){for(var s=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(u.comma),e&&this.type===u.comma)s.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else s.push(this.parseAssignableListItem(r))}return s};ce.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};ce.parseBindingListItem=function(t){return t};ce.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(t,e);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};ce.checkLValSimple=function(t,e,i){e===void 0&&(e=gi);var r=e!==gi;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(e===Oe&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(Pt(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==Yn&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}};ce.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=gi),t.type){case"ObjectPattern":for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,e,i)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,e,i)}break;default:this.checkLValSimple(t,e,i)}};ce.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=gi),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var ue=function(e,i,r,s,n){this.token=e,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!n},I={b_stat:new ue("{",!1),b_expr:new ue("{",!0),b_tmpl:new ue("${",!1),p_stat:new ue("(",!1),p_expr:new ue("(",!0),q_tmpl:new ue("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ue("function",!1),f_expr:new ue("function",!0),f_expr_gen:new ue("function",!0,!1,null,!0),f_gen:new ue("function",!1,!1,null,!0)},ht=R.prototype;ht.initialContext=function(){return[I.b_stat]};ht.curContext=function(){return this.context[this.context.length-1]};ht.braceIsBlock=function(t){var e=this.curContext();return e===I.f_expr||e===I.f_stat?!0:t===u.colon&&(e===I.b_stat||e===I.b_expr)?!e.isExpr:t===u._return||t===u.name&&this.exprAllowed?X.test(this.input.slice(this.lastTokEnd,this.start)):t===u._else||t===u.semi||t===u.eof||t===u.parenR||t===u.arrow?!0:t===u.braceL?e===I.b_stat:t===u._var||t===u._const||t===u.name?!1:!this.exprAllowed};ht.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};ht.updateContext=function(t){var e,i=this.type;i.keyword&&t===u.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr};ht.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();t===I.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr};u.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?I.b_stat:I.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(I.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(t){var e=t===u._if||t===u._for||t===u._with||t===u._while;this.context.push(e?I.p_stat:I.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(t){t.beforeExpr&&t!==u._else&&!(t===u.semi&&this.curContext()!==I.p_stat)&&!(t===u._return&&X.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===u.colon||t===u.braceL)&&this.curContext()===I.b_stat)?this.context.push(I.f_expr):this.context.push(I.f_stat),this.exprAllowed=!1};u.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};u.backQuote.updateContext=function(){this.curContext()===I.q_tmpl?this.context.pop():this.context.push(I.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(t){if(t===u._function){var e=this.context.length-1;this.context[e]===I.f_expr?this.context[e]=I.f_expr_gen:this.context[e]=I.f_gen}this.exprAllowed=!0};u.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==u.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var w=R.prototype;w.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var r=t.key,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&n==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);return}s="$"+s;var a=e[s];if(a){var o;n==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[n],o&&this.raiseRecoverable(r.start,"Redefinition of property")}else a=e[s]={init:!1,get:!1,set:!1};a[n]=!0}};w.parseExpression=function(t,e){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(t,e);if(this.type===u.comma){var n=this.startNodeAt(i,r);for(n.expressions=[s];this.eat(u.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return s};w.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var r=!1,s=-1,n=-1,a=-1;e?(s=e.parenthesizedAssign,n=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new _i,r=!0);var o=this.start,h=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var l=this.parseMaybeConditional(t,e);if(i&&(l=i.call(this,l,o,h)),this.type.isAssign){var c=this.startNodeAt(o,h);return c.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,e)),r||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=l.start&&(e.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),c.left=l,this.next(),c.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(c,"AssignmentExpression")}else r&&this.checkExpressionErrors(e,!0);return s>-1&&(e.parenthesizedAssign=s),n>-1&&(e.trailingComma=n),l};w.parseMaybeConditional=function(t,e){var i=this.start,r=this.startLoc,s=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return s;if(this.eat(u.question)){var n=this.startNodeAt(i,r);return n.test=s,n.consequent=this.parseMaybeAssign(),this.expect(u.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return s};w.parseExprOps=function(t,e){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,t)};w.parseExprOp=function(t,e,i,r,s){var n=this.type.binop;if(n!=null&&(!s||this.type!==u._in)&&n>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(n=u.logicalAND.binop);var h=this.value;this.next();var l=this.start,c=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),l,c,n,s),p=this.buildBinary(e,i,t,f,h,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,i,r,s)}return t};w.buildBinary=function(t,e,i,r,s,n){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=i,a.operator=s,a.right=r,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};w.parseMaybeUnary=function(t,e,i,r){var s=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(r),e=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,r),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&Xn(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,a=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===u.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();else{if(a=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,n);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}if(!i&&this.eat(u.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(s,n,a,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return a};function Xn(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Xn(t.expression)}w.parseExprSubscripts=function(t,e){var i=this.start,r=this.startLoc,s=this.parseExprAtom(t,e);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var n=this.parseSubscripts(s,i,r,!1,e);return t&&n.type==="MemberExpression"&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n};w.parseSubscripts=function(t,e,i,r,s){for(var n=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,i,r,n,a,s);if(o.optional&&(a=!0),o===t||o.type==="ArrowFunctionExpression"){if(a){var h=this.startNodeAt(e,i);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}t=o}};w.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};w.parseSubscriptAsyncArrow=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,r)};w.parseSubscript=function(t,e,i,r,s,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(u.questionDot);r&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||h&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var c=this.startNodeAt(e,i);c.object=t,l?(c.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&t.type!=="Super"?c.property=this.parsePrivateIdent():c.property=this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!l,o&&(c.optional=h),t=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var f=new _i,p=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,f);if(s&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(e,i,g,a);this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var y=this.startNodeAt(e,i);y.callee=t,y.arguments=g,o&&(y.optional=h),t=this.finishNode(y,"CallExpression")}else if(this.type===u.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var C=this.startNodeAt(e,i);C.tag=t,C.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(C,"TaggedTemplateExpression")}return t};w.parseExprAtom=function(t,e,i){this.type===u.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,e);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,e)}return h;case u.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return r=this.startNode(),r.value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var c=this.start,f=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),f;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,t);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};w.parseExprAtomDefault=function(){this.unexpected()};w.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===u.parenL&&!t)return this.parseDynamicImport(e);if(this.type===u.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};w.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var e=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};w.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};w.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};w.parseParenExpression=function(){this.expect(u.parenL);var t=this.parseExpression();return this.expect(u.parenR),t};w.shouldParseArrow=function(t){return!this.canInsertSemicolon()};w.parseParenAndDistinguishExpression=function(t,e){var i=this.start,r=this.startLoc,s,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,h=[],l=!0,c=!1,f=new _i,p=this.yieldPos,d=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(l?l=!1:this.expect(u.comma),n&&this.afterTrailingComma(u.parenR,!0)){c=!0;break}else if(this.type===u.ellipsis){m=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,f,this.parseParenItem));var g=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(u.parenR),t&&this.shouldParseArrow(h)&&this.eat(u.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(i,r,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(f,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?(s=this.startNodeAt(a,o),s.expressions=h,this.finishNodeAt(s,"SequenceExpression",g,y)):s=h[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var C=this.startNodeAt(i,r);return C.expression=s,this.finishNode(C,"ParenthesizedExpression")}else return s};w.parseParenItem=function(t){return t};w.parseParenArrowList=function(t,e,i,r){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,r)};var Bc=[];w.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===u.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var r=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(u.parenL)?t.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Bc,this.finishNode(t,"NewExpression")};w.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
58
|
+
`),cooked:this.value},this.next(),i.tail=this.type===u.backQuote,this.finishNode(i,"TemplateElement")};w.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:e});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")};w.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!X.test(this.input.slice(this.lastTokEnd,this.start))};w.parseObj=function(t,e){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,s,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")};w.parseProperty=function(t,e){var i=this.startNode(),r,s,n,a;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return t?(i.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,e),this.type===u.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(t||e)&&(n=this.start,a=this.startLoc),t||(r=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(i),!t&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,t,r,s,n,a,e,o),this.finishNode(i,"Property")};w.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e=t.kind==="get"?0:1;if(t.value.params.length!==e){var i=t.value.start;t.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};w.parsePropertyValue=function(t,e,i,r,s,n,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,r)):!e&&!o&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq?((i||r)&&this.unexpected(),this.parseGetterSetter(t)):this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,n,this.copyNode(t.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected()};w.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(u.bracketR),t.key;t.computed=!1}return t.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};w.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};w.parseMethod=function(t,e,i){var r=this.startNode(),s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=t),this.options.ecmaVersion>=8&&(r.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vr(e,r.generator)|xr|(i?zn:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")};w.parseArrowExpression=function(t,e,i,r){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(vr(i,!1)|$n),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")};w.parseFunctionBody=function(t,e,i,r){var s=e&&this.type!==u.braceL,n=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!n||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!n&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,Yn),t.body=this.parseBlock(!1,void 0,a&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()};w.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){var r=i[e];if(r.type!=="Identifier")return!1}return!0};w.checkParams=function(t,e){for(var i=Object.create(null),r=0,s=t.params;r<s.length;r+=1){var n=s[r];this.checkLValInnerPattern(n,_r,e?null:i)}};w.parseExprList=function(t,e,i,r){for(var s=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(u.comma),e&&this.afterTrailingComma(t))break;var a=void 0;i&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),s.push(a)}return s};w.checkUnreserved=function(t){var e=t.start,i=t.end,r=t.name;if(this.inGenerator&&r==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&r==="arguments"&&this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(r==="arguments"||r==="await")&&this.raise(e,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(e,"Unexpected keyword '"+r+"'"),!(this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(r)&&(!this.inAsync&&r==="await"&&this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+r+"' is reserved"))}};w.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=e.start)),e};w.parseIdentNode=function(){var t=this.startNode();return this.type===u.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=u.name):this.unexpected(),t};w.parsePrivateIdent=function(){var t=this.startNode();return this.type===u.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t};w.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(u.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")};w.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var yi=R.prototype;yi.raise=function(t,e){var i=Qe(this.input,t);e+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(e);throw r.pos=t,r.loc=i,r.raisedAt=this.pos,r};yi.raiseRecoverable=yi.raise;yi.curPosition=function(){if(this.options.locations)return new at(this.curLine,this.pos-this.lineStart)};var Ue=R.prototype,Dc=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Ue.enterScope=function(t){this.scopeStack.push(new Dc(t))};Ue.exitScope=function(){this.scopeStack.pop()};Ue.treatFunctionsAsVarInScope=function(t){return t.flags&ut||!this.inModule&&t.flags&It};Ue.declareName=function(t,e,i){var r=!1;if(e===Oe){var s=this.currentScope();r=s.lexical.indexOf(t)>-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&s.flags&It&&delete this.undefinedExports[t]}else if(e===Kn){var n=this.currentScope();n.lexical.push(t)}else if(e===Qn){var a=this.currentScope();this.treatFunctionsAsVar?r=a.lexical.indexOf(t)>-1:r=a.lexical.indexOf(t)>-1||a.var.indexOf(t)>-1,a.functions.push(t)}else for(var o=this.scopeStack.length-1;o>=0;--o){var h=this.scopeStack[o];if(h.lexical.indexOf(t)>-1&&!(h.flags&Hn&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){r=!0;break}if(h.var.push(t),this.inModule&&h.flags&It&&delete this.undefinedExports[t],h.flags&yr)break}r&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")};Ue.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)};Ue.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Ue.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&yr)return e}};Ue.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&yr&&!(e.flags&$n))return e}};var Ne=function(e,i,r){this.type="",this.start=i,this.end=0,e.options.locations&&(this.loc=new De(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[i,0])},Rt=R.prototype;Rt.startNode=function(){return new Ne(this,this.start,this.startLoc)};Rt.startNodeAt=function(t,e){return new Ne(this,t,e)};function Zn(t,e,i,r){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=r),this.options.ranges&&(t.range[1]=i),t}Rt.finishNode=function(t,e){return Zn.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};Rt.finishNodeAt=function(t,e,i,r){return Zn.call(this,t,e,i,r)};Rt.copyNode=function(t){var e=new Ne(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var ea="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ta=ea+" Extended_Pictographic",ia=ta,ra=ia+" EBase EComp EMod EPres ExtPict",sa=ra,Uc=sa,qc={9:ea,10:ta,11:ia,12:ra,13:sa,14:Uc},jc="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Gc={9:"",10:"",11:"",12:"",13:"",14:jc},Bn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",na="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",aa=na+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",oa=aa+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ua=oa+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ha=ua+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Wc=ha+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",$c={9:na,10:aa,11:oa,12:ua,13:ha,14:Wc},la={};function Hc(t){var e=la[t]={binary:Ve(qc[t]+" "+Bn),binaryOfStrings:Ve(Gc[t]),nonBinary:{General_Category:Ve(Bn),Script:Ve($c[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(mi=0,fr=[9,10,11,12,13,14];mi<fr.length;mi+=1)Dn=fr[mi],Hc(Dn);var Dn,mi,fr,_=R.prototype,Ce=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=la[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ce.prototype.reset=function(e,i,r){var s=r.indexOf("v")!==-1,n=r.indexOf("u")!==-1;this.start=e|0,this.source=i+"",this.flags=r,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};Ce.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};Ce.prototype.at=function(e,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(e>=s)return-1;var n=r.charCodeAt(e);if(!(i||this.switchU)||n<=55295||n>=57344||e+1>=s)return n;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(n<<10)+a-56613888:n};Ce.prototype.nextIndex=function(e,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(e>=s)return s;var n=r.charCodeAt(e),a;return!(i||this.switchU)||n<=55295||n>=57344||e+1>=s||(a=r.charCodeAt(e+1))<56320||a>57343?e+1:e+2};Ce.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)};Ce.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)};Ce.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)};Ce.prototype.eat=function(e,i){return i===void 0&&(i=!1),this.current(i)===e?(this.advance(i),!0):!1};Ce.prototype.eatChars=function(e,i){i===void 0&&(i=!1);for(var r=this.pos,s=0,n=e;s<n.length;s+=1){var a=n[s],o=this.at(r,i);if(o===-1||o!==a)return!1;r=this.nextIndex(r,i)}return this.pos=r,!0};_.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,r=!1,s=!1,n=0;n<i.length;n++){var a=i.charAt(n);e.indexOf(a)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(a,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),a==="u"&&(r=!0),a==="v"&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(t.start,"Invalid regular expression flag")};_.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))};_.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var r=i[e];t.groupNames.indexOf(r)===-1&&t.raise("Invalid named capture referenced")}};_.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")};_.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););};_.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))?(this.regexp_eatQuantifier(t),!0):!1};_.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1};_.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),this.regexp_eatQuantifierPrefix(t,e)?(t.eat(63),!0):!1};_.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)};_.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return s!==-1&&s<r&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1};_.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)};_.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1};_.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1};_.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1};_.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)};_.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1};_.regexp_eatSyntaxCharacter=function(t){var e=t.current();return ca(e)?(t.lastIntValue=e,t.advance(),!0):!1};function ca(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}_.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!ca(i);)t.advance();return t.pos!==e};_.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return e!==-1&&e!==36&&!(e>=40&&e<=43)&&e!==46&&e!==63&&e!==91&&e!==94&&e!==124?(t.advance(),!0):!1};_.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){t.groupNames.indexOf(t.lastStringValue)!==-1&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}};_.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1};_.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=Be(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=Be(t.lastIntValue);return!0}return!1};_.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),zc(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function zc(t){return Se(t,!0)||t===36||t===95}_.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,r=t.current(i);return t.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(r=t.lastIntValue),Qc(r)?(t.lastIntValue=r,!0):(t.pos=e,!1)};function Qc(t){return ze(t,!0)||t===36||t===95||t===8204||t===8205}_.regexp_eatAtomEscape=function(t){return this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t)?!0:(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)};_.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1};_.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1};_.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)};_.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1};_.regexp_eatZero=function(t){return t.current()===48&&!bi(t.lookahead())?(t.lastIntValue=0,t.advance(),!0):!1};_.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114?(t.lastIntValue=13,t.advance(),!0):!1};_.regexp_eatControlLetter=function(t){var e=t.current();return fa(e)?(t.lastIntValue=e%32,t.advance(),!0):!1};function fa(t){return t>=65&&t<=90||t>=97&&t<=122}_.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(r&&s>=55296&&s<=56319){var n=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}t.pos=n,t.lastIntValue=s}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&Kc(t.lastIntValue))return!0;r&&t.raise("Invalid unicode escape"),t.pos=i}return!1};function Kc(t){return t>=0&&t<=1114111}_.regexp_eatIdentityEscape=function(t){if(t.switchU)return this.regexp_eatSyntaxCharacter(t)?!0:t.eat(47)?(t.lastIntValue=47,!0):!1;var e=t.current();return e!==99&&(!t.switchN||e!==107)?(t.lastIntValue=e,t.advance(),!0):!1};_.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};var pa=0,Ae=1,le=2;_.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(Yc(e))return t.lastIntValue=-1,t.advance(),Ae;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){t.lastIntValue=-1,t.advance();var r;if(t.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&r===le&&t.raise("Invalid property name"),r;t.raise("Invalid property name")}return pa};function Yc(t){return t===100||t===68||t===115||t===83||t===119||t===87}_.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,r),Ae}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return pa};_.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){Pt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")};_.regexp_validateUnicodePropertyNameOrValue=function(t,e){if(t.unicodeProperties.binary.test(e))return Ae;if(t.switchV&&t.unicodeProperties.binaryOfStrings.test(e))return le;t.raise("Invalid property name")};_.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";da(e=t.current());)t.lastStringValue+=Be(e),t.advance();return t.lastStringValue!==""};function da(t){return fa(t)||t===95}_.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Jc(e=t.current());)t.lastStringValue+=Be(e),t.advance();return t.lastStringValue!==""};function Jc(t){return da(t)||bi(t)}_.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)};_.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===le&&t.raise("Negated character class may contain strings"),!0}return!1};_.regexp_classContents=function(t){return t.current()===93?Ae:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),Ae)};_.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(e===-1||i===-1)&&t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}};_.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||xa(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var r=t.current();return r!==93?(t.lastIntValue=r,t.advance(),!0):!1};_.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)};_.regexp_classSetExpression=function(t){var e=Ae,i;if(!this.regexp_eatClassSetRange(t))if(i=this.regexp_eatClassSetOperand(t)){i===le&&(e=le);for(var r=t.pos;t.eatChars([38,38]);){if(t.current()!==38&&(i=this.regexp_eatClassSetOperand(t))){i!==le&&(e=Ae);continue}t.raise("Invalid character in character class")}if(r!==t.pos)return e;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(r!==t.pos)return e}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(i=this.regexp_eatClassSetOperand(t),!i)return e;i===le&&(e=le)}};_.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var r=t.lastIntValue;return i!==-1&&r!==-1&&i>r&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1};_.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?Ae:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)};_.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),r=this.regexp_classContents(t);if(t.eat(93))return i&&r===le&&t.raise("Negated character class may contain strings"),r;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null};_.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null};_.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===le&&(e=le);return e};_.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?Ae:le};_.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t)?!0:t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1);var i=t.current();return i<0||i===t.lookahead()&&Xc(i)||Zc(i)?!1:(t.advance(),t.lastIntValue=i,!0)};function Xc(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Zc(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}_.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return ef(e)?(t.lastIntValue=e,t.advance(),!0):!1};function ef(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}_.regexp_eatClassControlLetter=function(t){var e=t.current();return bi(e)||e===95?(t.lastIntValue=e%32,t.advance(),!0):!1};_.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1};_.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;bi(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e};function bi(t){return t>=48&&t<=57}_.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;ma(i=t.current());)t.lastIntValue=16*t.lastIntValue+ga(i),t.advance();return t.pos!==e};function ma(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ga(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}_.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=e*64+i*8+t.lastIntValue:t.lastIntValue=e*8+i}else t.lastIntValue=e;return!0}return!1};_.regexp_eatOctalDigit=function(t){var e=t.current();return xa(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)};function xa(t){return t>=48&&t<=55}_.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var r=0;r<e;++r){var s=t.current();if(!ma(s))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+ga(s),t.advance()}return!0};var lt=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new De(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},E=R.prototype;E.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new lt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};E.getToken=function(){return this.next(),new lt(this)};typeof Symbol<"u"&&(E[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===u.eof,value:e}}}});E.nextToken=function(){var t=this.curContext();if((!t||!t.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(u.eof);if(t.override)return t.override(this);this.readToken(this.fullCharCodeAtPos())};E.readToken=function(t){return Se(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)};E.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888};E.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,s=e;(r=jn(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())};E.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ye(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())};E.skipSpace=function(){e:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(t>8&&t<14||t>=5760&&mr.test(String.fromCharCode(t)))++this.pos;else break e}}};E.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)};E.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))};E.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(u.assign,2):this.finishOp(u.slash,1)};E.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,r=t===42?u.star:u.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,r=u.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(u.assign,i+1):this.finishOp(r,i)};E.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(u.assign,3)}return this.finishOp(t===124?u.logicalOR:u.logicalAND,2)}return e===61?this.finishOp(u.assign,2):this.finishOp(t===124?u.bitwiseOR:u.bitwiseAND,1)};E.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)};E.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||X.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):e===61?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)};E.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):e===33&&t===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(e===61&&(i=2),this.finishOp(u.relational,i))};E.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(t===61?u.eq:u.prefix,1)};E.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(e===63){if(t>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};E.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,e=this.fullCharCodeAtPos(),Se(e,!0)||e===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Be(e)+"'")};E.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Be(t)+"'")};E.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)};E.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(X.test(r)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new Ce(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(s,a)}catch{}return this.finishToken(u.regexp,{pattern:s,flags:a,value:h})};E.readInt=function(t,e,i){for(var r=this.options.ecmaVersion>=12&&e===void 0,s=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,a=0,o=0,h=0,l=e??1/0;h<l;++h,++this.pos){var c=this.input.charCodeAt(this.pos),f=void 0;if(r&&c===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if(c>=97?f=c-97+10:c>=65?f=c-65+10:c>=48&&c<=57?f=c-48:f=1/0,f>=t)break;o=c,a=a*t+f}return r&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||e!=null&&this.pos-n!==e?null:a};function tf(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function ya(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}E.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ya(this.input.slice(e,this.pos)),++this.pos):Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)};E.readNumber=function(t){var e=this.pos;!t&&this.readInt(10,void 0,!0)===null&&this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&r===110){var s=ya(this.input.slice(e,this.pos));return++this.pos,Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,s)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=tf(this.input.slice(e,this.pos),i);return this.finishToken(u.num,n)};E.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else e=this.readHexChar(4);return e};E.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===t)break;r===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ye(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(u.string,e)};var va={};E.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===va)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};E.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw va;this.raise(t,e)};E.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(u.template,t));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ye(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
59
|
+
`;break;default:t+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}};E.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};E.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
60
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Be(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),(r!=="0"||e===56||e===57)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ye(e)?"":String.fromCharCode(e)}};E.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i};E.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(ze(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,t+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?Se:ze)(a,r)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=Be(a),i=this.pos}else break;e=!1}return t+this.input.slice(i,this.pos)};E.readWord=function(){var t=this.readWord1(),e=u.name;return this.keywords.test(t)&&(e=vi[t]),this.finishToken(e,t)};var _a="8.11.3";R.acorn={Parser:R,version:_a,defaultOptions:ot,Position:at,SourceLocation:De,getLineInfo:Qe,Node:Ne,TokenType:A,tokTypes:u,keywordTypes:vi,TokContext:ue,tokContexts:I,isIdentifierChar:ze,isIdentifierStart:Se,Token:lt,isNewLine:ye,lineBreak:X,lineBreakG:Lt,nonASCIIwhitespace:mr};function rf(t,e){return R.parse(t,e)}function sf(t,e,i){return R.parseExpressionAt(t,e,i)}function nf(t,e){return R.tokenizer(t,e)}var wr={};ui(wr,{LooseParser:()=>N,isDummy:()=>Ee,parse:()=>of});var Si="\u2716";function Ee(t){return t.name===Si}function ba(){}var N=function(e,i){if(i===void 0&&(i={}),this.toks=this.constructor.BaseParser.tokenizer(e,i),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:u.eof,start:0,end:0},this.tok.validateRegExpFlags=ba,this.tok.validateRegExpPattern=ba,this.options.locations){var r=this.toks.curPosition();this.tok.loc=new De(this.toks,r,r)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};N.prototype.startNode=function(){return new Ne(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)};N.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start};N.prototype.startNodeAt=function(e){return this.options.locations?new Ne(this.toks,e[0],e[1]):new Ne(this.toks,e)};N.prototype.finishNode=function(e,i){return e.type=i,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e};N.prototype.dummyNode=function(e){var i=this.startNode();return i.type=e,i.end=i.start,this.options.locations&&(i.loc.end=i.loc.start),this.options.ranges&&(i.range[1]=i.start),this.last={type:u.name,start:i.start,end:i.start,loc:i.loc},i};N.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=Si,e};N.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=Si,e};N.prototype.eat=function(e){return this.tok.type===e?(this.next(),!0):!1};N.prototype.isContextual=function(e){return this.tok.type===u.name&&this.tok.value===e};N.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(u.name)};N.prototype.canInsertSemicolon=function(){return this.tok.type===u.eof||this.tok.type===u.braceR||X.test(this.input.slice(this.last.end,this.tok.start))};N.prototype.semicolon=function(){return this.eat(u.semi)};N.prototype.expect=function(e){if(this.eat(e))return!0;for(var i=1;i<=2;i++)if(this.lookAhead(i).type===e){for(var r=0;r<i;r++)this.next();return!0}};N.prototype.pushCx=function(){this.context.push(this.curIndent)};N.prototype.popCx=function(){this.curIndent=this.context.pop()};N.prototype.lineEnd=function(e){for(;e<this.input.length&&!ye(this.input.charCodeAt(e));)++e;return e};N.prototype.indentationAfter=function(e){for(var i=0;;++e){var r=this.input.charCodeAt(e);if(r===32)++i;else if(r===9)i+=this.options.tabSize;else return i}};N.prototype.closes=function(e,i,r,s){return this.tok.type===e||this.tok.type===u.eof?!0:r!==this.curLineStart&&this.curIndent<i&&this.tokenStartsLine()&&(!s||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<i)};N.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=this.curLineStart;--e){var i=this.input.charCodeAt(e);if(i!==9&&i!==32)return!1}return!0};N.prototype.extend=function(e,i){this[e]=i(this[e])};N.prototype.parse=function(){return this.next(),this.parseTopLevel()};N.extend=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];for(var r=this,s=0;s<e.length;s++)r=e[s](r);return r};N.parse=function(e,i){return new this(e,i).parse()};N.BaseParser=R;var wi=N.prototype;function af(t){return t<14&&t>8||t===32||t===160||ye(t)}wi.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}};wi.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===u.dot&&this.input.substr(this.toks.end,1)==="."&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=u.ellipsis),new lt(this.toks)}catch(n){if(!(n instanceof SyntaxError))throw n;var t=n.message,e=n.raisedAt,i=!0;if(/unterminated/i.test(t))if(e=this.lineEnd(n.pos+1),/string/.test(t))i={start:n.pos,end:e,type:u.string,value:this.input.slice(n.pos+1,e)};else if(/regular expr/i.test(t)){var r=this.input.slice(n.pos,e);try{r=new RegExp(r)}catch{}i={start:n.pos,end:e,type:u.regexp,value:r}}else/template/.test(t)?i={start:n.pos,end:e,type:u.template,value:this.input.slice(n.pos,e)}:i=!1;else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(t))for(;e<this.input.length&&!af(this.input.charCodeAt(e));)++e;else if(/character escape|expected hexadecimal/i.test(t))for(;e<this.input.length;){var s=this.input.charCodeAt(e++);if(s===34||s===39||ye(s))break}else if(/unexpected character/i.test(t))e++,i=!1;else if(/regular expression/i.test(t))i=!0;else throw n;if(this.resetTo(e),i===!0&&(i={start:e,end:e,type:u.name,value:Si}),i)return this.options.locations&&(i.loc=new De(this.toks,Qe(this.input,i.start),Qe(this.input,i.end))),i}};wi.resetTo=function(t){this.toks.pos=t,this.toks.containsEsc=!1;var e=this.input.charAt(t-1);if(this.toks.exprAllowed=!e||/[[{(,;:?/*=+\-~!|&%^<>]/.test(e)||/[enwfd]/.test(e)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(t-10,t)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=Lt.lastIndex=0;for(var i;(i=Lt.exec(this.input))&&i.index<t;)++this.toks.curLine,this.toks.lineStart=i.index+i[0].length}};wi.lookAhead=function(t){for(;t>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[t-1]};var H=N.prototype;H.parseTopLevel=function(){var t=this.startNodeAt(this.options.locations?[0,Qe(this.input,0)]:0);for(t.body=[];this.tok.type!==u.eof;)t.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(t.body),this.last=this.tok,t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};H.parseStatement=function(){var t=this.tok.type,e=this.startNode(),i;switch(this.toks.isLet()&&(t=u._var,i="let"),t){case u._break:case u._continue:this.next();var r=t===u._break;return this.semicolon()||this.canInsertSemicolon()?e.label=null:(e.label=this.tok.type===u.name?this.parseIdent():null,this.semicolon()),this.finishNode(e,r?"BreakStatement":"ContinueStatement");case u._debugger:return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement");case u._do:return this.next(),e.body=this.parseStatement(),e.test=this.eat(u._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(e,"DoWhileStatement");case u._for:this.next();var s=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(u.parenL),this.tok.type===u.semi)return this.parseFor(e,null);var n=this.toks.isLet();if(n||this.tok.type===u._var||this.tok.type===u._const){var a=this.parseVar(this.startNode(),!0,n?"let":this.tok.value);return a.declarations.length===1&&(this.tok.type===u._in||this.isContextual("of"))?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(e.await=s),this.parseForIn(e,a)):this.parseFor(e,a)}var o=this.parseExpression(!0);return this.tok.type===u._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==u._in&&(e.await=s),this.parseForIn(e,this.toAssignable(o))):this.parseFor(e,o);case u._function:return this.next(),this.parseFunction(e,!0);case u._if:return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(),e.alternate=this.eat(u._else)?this.parseStatement():null,this.finishNode(e,"IfStatement");case u._return:return this.next(),this.eat(u.semi)||this.canInsertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement");case u._switch:var h=this.curIndent,l=this.curLineStart;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.pushCx(),this.expect(u.braceL);for(var c;!this.closes(u.braceR,h,l,!0);)if(this.tok.type===u._case||this.tok.type===u._default){var f=this.tok.type===u._case;c&&this.finishNode(c,"SwitchCase"),e.cases.push(c=this.startNode()),c.consequent=[],this.next(),f?c.test=this.parseExpression():c.test=null,this.expect(u.colon)}else c||(e.cases.push(c=this.startNode()),c.consequent=[],c.test=null),c.consequent.push(this.parseStatement());return c&&this.finishNode(c,"SwitchCase"),this.popCx(),this.eat(u.braceR),this.finishNode(e,"SwitchStatement");case u._throw:return this.next(),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement");case u._try:if(this.next(),e.block=this.parseBlock(),e.handler=null,this.tok.type===u._catch){var p=this.startNode();this.next(),this.eat(u.parenL)?(p.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(u.parenR)):p.param=null,p.body=this.parseBlock(),e.handler=this.finishNode(p,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer?e.block:this.finishNode(e,"TryStatement");case u._var:case u._const:return this.parseVar(e,!1,i||this.tok.value);case u._while:return this.next(),e.test=this.parseParenExpression(),e.body=this.parseStatement(),this.finishNode(e,"WhileStatement");case u._with:return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(),this.finishNode(e,"WithStatement");case u.braceL:return this.parseBlock();case u.semi:return this.next(),this.finishNode(e,"EmptyStatement");case u._class:return this.parseClass(!0);case u._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===u.parenL||d===u.dot)return e.expression=this.parseExpression(),this.semicolon(),this.finishNode(e,"ExpressionStatement")}return this.parseImport();case u._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,!0,!0);var m=this.parseExpression();return Ee(m)?(this.next(),this.tok.type===u.eof?this.finishNode(e,"EmptyStatement"):this.parseStatement()):t===u.name&&m.type==="Identifier"&&this.eat(u.colon)?(e.body=this.parseStatement(),e.label=m,this.finishNode(e,"LabeledStatement")):(e.expression=m,this.semicolon(),this.finishNode(e,"ExpressionStatement"))}};H.parseBlock=function(){var t=this.startNode();this.pushCx(),this.expect(u.braceL);var e=this.curIndent,i=this.curLineStart;for(t.body=[];!this.closes(u.braceR,e,i,!0);)t.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(t,"BlockStatement")};H.parseFor=function(t,e){return t.init=e,t.test=t.update=null,this.eat(u.semi)&&this.tok.type!==u.semi&&(t.test=this.parseExpression()),this.eat(u.semi)&&this.tok.type!==u.parenR&&(t.update=this.parseExpression()),this.popCx(),this.expect(u.parenR),t.body=this.parseStatement(),this.finishNode(t,"ForStatement")};H.parseForIn=function(t,e){var i=this.tok.type===u._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.popCx(),this.expect(u.parenR),t.body=this.parseStatement(),this.finishNode(t,i)};H.parseVar=function(t,e,i){t.kind=i,this.next(),t.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(u.eq)?this.parseMaybeAssign(e):null,t.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(u.comma));if(!t.declarations.length){var s=this.startNode();s.id=this.dummyIdent(),t.declarations.push(this.finishNode(s,"VariableDeclarator"))}return e||this.semicolon(),this.finishNode(t,"VariableDeclaration")};H.parseClass=function(t){var e=this.startNode();this.next(),this.tok.type===u.name?e.id=this.parseIdent():t===!0?e.id=this.dummyIdent():e.id=null,e.superClass=this.eat(u._extends)?this.parseExpression():null,e.body=this.startNode(),e.body.body=[],this.pushCx();var i=this.curIndent+1,r=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<i&&(i=this.curIndent,r=this.curLineStart);!this.closes(u.braceR,i,r);){var s=this.parseClassElement();s&&e.body.body.push(s)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(e.body,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};H.parseClassElement=function(){if(this.eat(u.semi))return null;var t=this.options,e=t.ecmaVersion,i=t.locations,r=this.curIndent,s=this.curLineStart,n=this.startNode(),a="",o=!1,h=!1,l="method",c=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.toks.type===u.star?c=!0:a="static"}if(n.static=c,!a&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.toks.type===u.star)&&!this.canInsertSemicolon()?h=!0:a="async"),!a){o=this.eat(u.star);var f=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=f:a=f)}if(a)n.computed=!1,n.key=this.startNodeAt(i?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),n.key.name=a,this.finishNode(n.key,"Identifier");else if(this.parseClassElementName(n),Ee(n.key))return Ee(this.parseMaybeAssign())&&this.next(),this.eat(u.comma),null;if(e<13||this.toks.type===u.parenL||l!=="method"||o||h){var p=!n.computed&&!n.static&&!o&&!h&&l==="method"&&(n.key.type==="Identifier"&&n.key.name==="constructor"||n.key.type==="Literal"&&n.key.value==="constructor");n.kind=p?"constructor":l,n.value=this.parseMethod(o,h),this.finishNode(n,"MethodDefinition")}else{if(this.eat(u.eq))if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())n.value=null;else{var d=this.inAsync,m=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,n.value=this.parseMaybeAssign(),this.inAsync=d,this.inGenerator=m}else n.value=null;this.semicolon(),this.finishNode(n,"PropertyDefinition")}return n};H.parseClassStaticBlock=function(t){var e=this.curIndent,i=this.curLineStart;for(t.body=[],this.pushCx();!this.closes(u.braceR,e,i,!0);)t.body.push(this.parseStatement());return this.popCx(),this.eat(u.braceR),this.finishNode(t,"StaticBlock")};H.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()};H.parseClassElementName=function(t){this.toks.type===u.privateId?(t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)};H.parseFunction=function(t,e,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(t.async=!!i),this.tok.type===u.name?t.id=this.parseIdent():e===!0&&(t.id=this.dummyIdent()),this.inAsync=t.async,this.inGenerator=t.generator,this.inFunction=!0,t.params=this.parseFunctionParams(),t.body=this.parseBlock(),this.toks.adaptDirectivePrologue(t.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")};H.parseExport=function(){var t=this.startNode();if(this.next(),this.eat(u.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?t.exported=this.parseExprAtom():t.exported=null),t.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(u._default)){var e;if(this.tok.type===u._function||(e=this.toks.isAsyncFunction())){var i=this.startNode();this.next(),e&&this.next(),t.declaration=this.parseFunction(i,"nullableID",e)}else this.tok.type===u._class?t.declaration=this.parseClass("nullableID"):(t.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(t,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(t.declaration=this.parseStatement(),t.specifiers=[],t.source=null):(t.declaration=null,t.specifiers=this.parseExportSpecifierList(),t.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(t,"ExportNamedDeclaration")};H.parseImport=function(){var t=this.startNode();if(this.next(),this.tok.type===u.string)t.specifiers=[],t.source=this.parseExprAtom();else{var e;this.tok.type===u.name&&this.tok.value!=="from"&&(e=this.startNode(),e.local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(u.comma)),t.specifiers=this.parseImportSpecifiers(),t.source=this.eatContextual("from")&&this.tok.type===u.string?this.parseExprAtom():this.dummyString(),e&&t.specifiers.unshift(e)}return this.semicolon(),this.finishNode(t,"ImportDeclaration")};H.parseImportSpecifiers=function(){var t=[];if(this.tok.type===u.star){var e=this.startNode();this.next(),e.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),t.push(this.finishNode(e,"ImportNamespaceSpecifier"))}else{var i=this.curIndent,r=this.curLineStart,s=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>s&&(s=this.curLineStart);!this.closes(u.braceR,i+(this.curLineStart<=s?1:0),r);){var n=this.startNode();if(this.eat(u.star))n.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(n,"ImportNamespaceSpecifier");else{if(this.isContextual("from")||(n.imported=this.parseModuleExportName(),Ee(n.imported)))break;n.local=this.eatContextual("as")?this.parseModuleExportName():n.imported,this.finishNode(n,"ImportSpecifier")}t.push(n),this.eat(u.comma)}this.eat(u.braceR),this.popCx()}return t};H.parseExportSpecifierList=function(){var t=[],e=this.curIndent,i=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(u.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(u.braceR,e+(this.curLineStart<=r?1:0),i)&&!this.isContextual("from");){var s=this.startNode();if(s.local=this.parseModuleExportName(),Ee(s.local))break;s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.finishNode(s,"ExportSpecifier"),t.push(s),this.eat(u.comma)}return this.eat(u.braceR),this.popCx(),t};H.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===u.string?this.parseExprAtom():this.parseIdent()};var O=N.prototype;O.checkLVal=function(t){if(!t)return t;switch(t.type){case"Identifier":case"MemberExpression":return t;case"ParenthesizedExpression":return t.expression=this.checkLVal(t.expression),t;default:return this.dummyIdent()}};O.parseExpression=function(t){var e=this.storeCurrentPos(),i=this.parseMaybeAssign(t);if(this.tok.type===u.comma){var r=this.startNodeAt(e);for(r.expressions=[i];this.eat(u.comma);)r.expressions.push(this.parseMaybeAssign(t));return this.finishNode(r,"SequenceExpression")}return i};O.parseParenExpression=function(){this.pushCx(),this.expect(u.parenL);var t=this.parseExpression();return this.popCx(),this.expect(u.parenR),t};O.parseMaybeAssign=function(t){if(this.inGenerator&&this.toks.isContextual("yield")){var e=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==u.star&&!this.tok.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(u.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")}var i=this.storeCurrentPos(),r=this.parseMaybeConditional(t);if(this.tok.type.isAssign){var s=this.startNodeAt(i);return s.operator=this.tok.value,s.left=this.tok.type===u.eq?this.toAssignable(r):this.checkLVal(r),this.next(),s.right=this.parseMaybeAssign(t),this.finishNode(s,"AssignmentExpression")}return r};O.parseMaybeConditional=function(t){var e=this.storeCurrentPos(),i=this.parseExprOps(t);if(this.eat(u.question)){var r=this.startNodeAt(e);return r.test=i,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(u.colon)?this.parseMaybeAssign(t):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return i};O.parseExprOps=function(t){var e=this.storeCurrentPos(),i=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),e,-1,t,i,r)};O.parseExprOp=function(t,e,i,r,s,n){if(this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())return t;var a=this.tok.type.binop;if(a!=null&&(!r||this.tok.type!==u._in)&&a>i){var o=this.startNodeAt(e);if(o.left=t,o.operator=this.tok.value,this.next(),this.curLineStart!==n&&this.curIndent<s&&this.tokenStartsLine())o.right=this.dummyIdent();else{var h=this.storeCurrentPos();o.right=this.parseExprOp(this.parseMaybeUnary(!1),h,a,r,s,n)}return this.finishNode(o,/&&|\|\||\?\?/.test(o.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,e,i,r,s,n)}return t};O.parseMaybeUnary=function(t){var e=this.storeCurrentPos(),i;if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.tok.type.prefix){var r=this.startNode(),s=this.tok.type===u.incDec;s||(t=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),s&&(r.argument=this.checkLVal(r.argument)),i=this.finishNode(r,s?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===u.ellipsis){var n=this.startNode();this.next(),n.argument=this.parseMaybeUnary(t),i=this.finishNode(n,"SpreadElement")}else if(!t&&this.tok.type===u.privateId)i=this.parsePrivateIdent();else for(i=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(e);a.operator=this.tok.value,a.prefix=!1,a.argument=this.checkLVal(i),this.next(),i=this.finishNode(a,"UpdateExpression")}if(!t&&this.eat(u.starstar)){var o=this.startNodeAt(e);return o.operator="**",o.left=i,o.right=this.parseMaybeUnary(!1),this.finishNode(o,"BinaryExpression")}return i};O.parseExprSubscripts=function(){var t=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),t,!1,this.curIndent,this.curLineStart)};O.parseSubscripts=function(t,e,i,r,s){for(var n=this.options.ecmaVersion>=11,a=!1;;){if(this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine())if(this.tok.type===u.dot&&this.curIndent===r)--r;else break;var o=t.type==="Identifier"&&t.name==="async"&&!this.canInsertSemicolon(),h=n&&this.eat(u.questionDot);if(h&&(a=!0),h&&this.tok.type!==u.parenL&&this.tok.type!==u.bracketL&&this.tok.type!==u.backQuote||this.eat(u.dot)){var l=this.startNodeAt(e);l.object=t,this.curLineStart!==s&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,n&&(l.optional=h),t=this.finishNode(l,"MemberExpression")}else if(this.tok.type===u.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(e);c.object=t,c.property=this.parseExpression(),c.computed=!0,n&&(c.optional=h),this.popCx(),this.expect(u.bracketR),t=this.finishNode(c,"MemberExpression")}else if(!i&&this.tok.type===u.parenL){var f=this.parseExprList(u.parenR);if(o&&this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(e),f,!0);var p=this.startNodeAt(e);p.callee=t,p.arguments=f,n&&(p.optional=h),t=this.finishNode(p,"CallExpression")}else if(this.tok.type===u.backQuote){var d=this.startNodeAt(e);d.tag=t,d.quasi=this.parseTemplate(),t=this.finishNode(d,"TaggedTemplateExpression")}else break}if(a){var m=this.startNodeAt(e);m.expression=t,t=this.finishNode(m,"ChainExpression")}return t};O.parseExprAtom=function(){var t;switch(this.tok.type){case u._this:case u._super:var e=this.tok.type===u._this?"ThisExpression":"Super";return t=this.startNode(),this.next(),this.finishNode(t,e);case u.name:var i=this.storeCurrentPos(),r=this.parseIdent(),s=!1;if(r.name==="async"&&!this.canInsertSemicolon()){if(this.eat(u._function))return this.toks.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(i),!1,!0);this.tok.type===u.name&&(r=this.parseIdent(),s=!0)}return this.eat(u.arrow)?this.parseArrowExpression(this.startNodeAt(i),[r],s):r;case u.regexp:t=this.startNode();var n=this.tok.value;return t.regex={pattern:n.pattern,flags:n.flags},t.value=n.value,t.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(t,"Literal");case u.num:case u.string:return t=this.startNode(),t.value=this.tok.value,t.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===u.num&&t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal");case u._null:case u._true:case u._false:return t=this.startNode(),t.value=this.tok.type===u._null?null:this.tok.type===u._true,t.raw=this.tok.type.keyword,this.next(),this.finishNode(t,"Literal");case u.parenL:var a=this.storeCurrentPos();this.next();var o=this.parseExpression();if(this.expect(u.parenR),this.eat(u.arrow)){var h=o.expressions||[o];return h.length&&Ee(h[h.length-1])&&h.pop(),this.parseArrowExpression(this.startNodeAt(a),h)}if(this.options.preserveParens){var l=this.startNodeAt(a);l.expression=o,o=this.finishNode(l,"ParenthesizedExpression")}return o;case u.bracketL:return t=this.startNode(),t.elements=this.parseExprList(u.bracketR,!0),this.finishNode(t,"ArrayExpression");case u.braceL:return this.toks.overrideContext(I.b_expr),this.parseObj();case u._class:return this.parseClass(!1);case u._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}};O.parseExprImport=function(){var t=this.startNode(),e=this.parseIdent(!0);switch(this.tok.type){case u.parenL:return this.parseDynamicImport(t);case u.dot:return t.meta=e,this.parseImportMeta(t);default:return t.name="import",this.finishNode(t,"Identifier")}};O.parseDynamicImport=function(t){return t.source=this.parseExprList(u.parenR)[0]||this.dummyString(),this.finishNode(t,"ImportExpression")};O.parseImportMeta=function(t){return this.next(),t.property=this.parseIdent(!0),this.finishNode(t,"MetaProperty")};O.parseNew=function(){var t=this.startNode(),e=this.curIndent,i=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot))return t.meta=r,t.property=this.parseIdent(!0),this.finishNode(t,"MetaProperty");var s=this.storeCurrentPos();return t.callee=this.parseSubscripts(this.parseExprAtom(),s,!0,e,i),this.tok.type===u.parenL?t.arguments=this.parseExprList(u.parenR):t.arguments=[],this.finishNode(t,"NewExpression")};O.parseTemplateElement=function(){var t=this.startNode();return this.tok.type===u.invalidTemplate?t.value={raw:this.tok.value,cooked:null}:t.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,`
|
|
61
|
+
`),cooked:this.tok.value},this.next(),t.tail=this.tok.type===u.backQuote,this.finishNode(t,"TemplateElement")};O.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.next(),t.expressions.push(this.parseExpression()),this.expect(u.braceR)?e=this.parseTemplateElement():(e=this.startNode(),e.value={cooked:"",raw:""},e.tail=!0,this.finishNode(e,"TemplateElement")),t.quasis.push(e);return this.expect(u.backQuote),this.finishNode(t,"TemplateLiteral")};O.parseObj=function(){var t=this.startNode();t.properties=[],this.pushCx();var e=this.curIndent+1,i=this.curLineStart;for(this.eat(u.braceL),this.curIndent+1<e&&(e=this.curIndent,i=this.curLineStart);!this.closes(u.braceR,e,i);){var r=this.startNode(),s=void 0,n=void 0,a=void 0;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis)){r.argument=this.parseMaybeAssign(),t.properties.push(this.finishNode(r,"SpreadElement")),this.eat(u.comma);continue}if(this.options.ecmaVersion>=6&&(a=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,s=this.eat(u.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(r)):n=!1,Ee(r.key)){Ee(this.parseMaybeAssign())&&this.next(),this.eat(u.comma);continue}if(this.eat(u.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===u.parenL||this.tok.type===u.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(s,n);else if(this.options.ecmaVersion>=5&&r.key.type==="Identifier"&&!r.computed&&(r.key.name==="get"||r.key.name==="set")&&this.tok.type!==u.comma&&this.tok.type!==u.braceR&&this.tok.type!==u.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(u.eq)){var o=this.startNodeAt(a);o.operator="=",o.left=r.key,o.right=this.parseMaybeAssign(),r.value=this.finishNode(o,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}t.properties.push(this.finishNode(r,"Property")),this.eat(u.comma)}return this.popCx(),this.eat(u.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(t,"ObjectExpression")};O.parsePropertyName=function(t){if(this.options.ecmaVersion>=6)if(this.eat(u.bracketL)){t.computed=!0,t.key=this.parseExpression(),this.expect(u.bracketR);return}else t.computed=!1;var e=this.tok.type===u.num||this.tok.type===u.string?this.parseExprAtom():this.parseIdent();t.key=e||this.dummyIdent()};O.parsePropertyAccessor=function(){if(this.tok.type===u.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===u.privateId)return this.parsePrivateIdent()};O.parseIdent=function(){var t=this.tok.type===u.name?this.tok.value:this.tok.type.keyword;if(!t)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=u.name);var e=this.startNode();return this.next(),e.name=t,this.finishNode(e,"Identifier")};O.parsePrivateIdent=function(){var t=this.startNode();return t.name=this.tok.value,this.next(),this.finishNode(t,"PrivateIdentifier")};O.initFunction=function(t){t.id=null,t.params=[],this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)};O.toAssignable=function(t,e){if(!(!t||t.type==="Identifier"||t.type==="MemberExpression"&&!e))if(t.type==="ParenthesizedExpression")this.toAssignable(t.expression,e);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(t.type==="ObjectExpression"){t.type="ObjectPattern";for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e)}}else if(t.type==="ArrayExpression")t.type="ArrayPattern",this.toAssignableList(t.elements,e);else if(t.type==="Property")this.toAssignable(t.value,e);else if(t.type==="SpreadElement")t.type="RestElement",this.toAssignable(t.argument,e);else if(t.type==="AssignmentExpression")t.type="AssignmentPattern",delete t.operator;else return this.dummyIdent()}return t};O.toAssignableList=function(t,e){for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e)}return t};O.parseFunctionParams=function(t){return t=this.parseExprList(u.parenR),this.toAssignableList(t,!0)};O.parseMethod=function(t,e){var i=this.startNode(),r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=!!t),this.options.ecmaVersion>=8&&(i.async=!!e),this.inAsync=i.async,this.inGenerator=i.generator,this.inFunction=!0,i.params=this.parseFunctionParams(),i.body=this.parseBlock(),this.toks.adaptDirectivePrologue(i.body.body),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(i,"FunctionExpression")};O.parseArrowExpression=function(t,e,i){var r=this.inAsync,s=this.inGenerator,n=this.inFunction;return this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.inAsync=t.async,this.inGenerator=!1,this.inFunction=!0,t.params=this.toAssignableList(e,!0),t.expression=this.tok.type!==u.braceL,t.expression?t.body=this.parseMaybeAssign():(t.body=this.parseBlock(),this.toks.adaptDirectivePrologue(t.body.body)),this.inAsync=r,this.inGenerator=s,this.inFunction=n,this.finishNode(t,"ArrowFunctionExpression")};O.parseExprList=function(t,e){this.pushCx();var i=this.curIndent,r=this.curLineStart,s=[];for(this.next();!this.closes(t,i+1,r);){if(this.eat(u.comma)){s.push(e?null:this.dummyIdent());continue}var n=this.parseMaybeAssign();if(Ee(n)){if(this.closes(t,i,r))break;this.next()}else s.push(n);this.eat(u.comma)}return this.popCx(),this.eat(t)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),s};O.parseAwait=function(){var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(),this.finishNode(t,"AwaitExpression")};ot.tabSize=4;function of(t,e){return N.parse(t,e)}var Er={};ui(Er,{ancestor:()=>hf,base:()=>x,findNodeAfter:()=>mf,findNodeAround:()=>df,findNodeAt:()=>pf,findNodeBefore:()=>gf,full:()=>cf,fullAncestor:()=>ff,make:()=>Sa,recursive:()=>lf,simple:()=>uf});function uf(t,e,i,r,s){i||(i=x),function n(a,o,h){var l=h||a.type;i[l](a,o,n),e[l]&&e[l](a,o)}(t,r,s)}function hf(t,e,i,r,s){var n=[];i||(i=x),function a(o,h,l){var c=l||o.type,f=o!==n[n.length-1];f&&n.push(o),i[c](o,h,a),e[c]&&e[c](o,h||n,n),f&&n.pop()}(t,r,s)}function lf(t,e,i,r,s){var n=i?Sa(i,r||void 0):r;(function a(o,h,l){n[l||o.type](o,h,a)})(t,e,s)}function Ci(t){return typeof t=="string"?function(e){return e===t}:t||function(){return!0}}var Ke=function(e,i){this.node=e,this.state=i};function cf(t,e,i,r,s){i||(i=x);var n;(function a(o,h,l){var c=l||o.type;i[c](o,h,a),n!==o&&(e(o,h,c),n=o)})(t,r,s)}function ff(t,e,i,r){i||(i=x);var s=[],n;(function a(o,h,l){var c=l||o.type,f=o!==s[s.length-1];f&&s.push(o),i[c](o,h,a),n!==o&&(e(o,h||s,s,c),n=o),f&&s.pop()})(t,r)}function pf(t,e,i,r,s,n){s||(s=x),r=Ci(r);try{(function a(o,h,l){var c=l||o.type;if((e==null||o.start<=e)&&(i==null||o.end>=i)&&s[c](o,h,a),(e==null||o.start===e)&&(i==null||o.end===i)&&r(c,o))throw new Ke(o,h)})(t,n)}catch(a){if(a instanceof Ke)return a;throw a}}function df(t,e,i,r,s){i=Ci(i),r||(r=x);try{(function n(a,o,h){var l=h||a.type;if(!(a.start>e||a.end<e)&&(r[l](a,o,n),i(l,a)))throw new Ke(a,o)})(t,s)}catch(n){if(n instanceof Ke)return n;throw n}}function mf(t,e,i,r,s){i=Ci(i),r||(r=x);try{(function n(a,o,h){if(!(a.end<e)){var l=h||a.type;if(a.start>=e&&i(l,a))throw new Ke(a,o);r[l](a,o,n)}})(t,s)}catch(n){if(n instanceof Ke)return n;throw n}}function gf(t,e,i,r,s){i=Ci(i),r||(r=x);var n;return function a(o,h,l){if(!(o.start>e)){var c=l||o.type;o.end<=e&&(!n||n.node.end<o.end)&&i(c,o)&&(n=new Ke(o,h)),r[c](o,h,a)}}(t,s),n}function Sa(t,e){var i=Object.create(e||x);for(var r in t)i[r]=t[r];return i}function Cr(t,e,i){i(t,e)}function Ye(t,e,i){}var x={};x.Program=x.BlockStatement=x.StaticBlock=function(t,e,i){for(var r=0,s=t.body;r<s.length;r+=1){var n=s[r];i(n,e,"Statement")}};x.Statement=Cr;x.EmptyStatement=Ye;x.ExpressionStatement=x.ParenthesizedExpression=x.ChainExpression=function(t,e,i){return i(t.expression,e,"Expression")};x.IfStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Statement"),t.alternate&&i(t.alternate,e,"Statement")};x.LabeledStatement=function(t,e,i){return i(t.body,e,"Statement")};x.BreakStatement=x.ContinueStatement=Ye;x.WithStatement=function(t,e,i){i(t.object,e,"Expression"),i(t.body,e,"Statement")};x.SwitchStatement=function(t,e,i){i(t.discriminant,e,"Expression");for(var r=0,s=t.cases;r<s.length;r+=1){var n=s[r];n.test&&i(n.test,e,"Expression");for(var a=0,o=n.consequent;a<o.length;a+=1){var h=o[a];i(h,e,"Statement")}}};x.SwitchCase=function(t,e,i){t.test&&i(t.test,e,"Expression");for(var r=0,s=t.consequent;r<s.length;r+=1){var n=s[r];i(n,e,"Statement")}};x.ReturnStatement=x.YieldExpression=x.AwaitExpression=function(t,e,i){t.argument&&i(t.argument,e,"Expression")};x.ThrowStatement=x.SpreadElement=function(t,e,i){return i(t.argument,e,"Expression")};x.TryStatement=function(t,e,i){i(t.block,e,"Statement"),t.handler&&i(t.handler,e),t.finalizer&&i(t.finalizer,e,"Statement")};x.CatchClause=function(t,e,i){t.param&&i(t.param,e,"Pattern"),i(t.body,e,"Statement")};x.WhileStatement=x.DoWhileStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.body,e,"Statement")};x.ForStatement=function(t,e,i){t.init&&i(t.init,e,"ForInit"),t.test&&i(t.test,e,"Expression"),t.update&&i(t.update,e,"Expression"),i(t.body,e,"Statement")};x.ForInStatement=x.ForOfStatement=function(t,e,i){i(t.left,e,"ForInit"),i(t.right,e,"Expression"),i(t.body,e,"Statement")};x.ForInit=function(t,e,i){t.type==="VariableDeclaration"?i(t,e):i(t,e,"Expression")};x.DebuggerStatement=Ye;x.FunctionDeclaration=function(t,e,i){return i(t,e,"Function")};x.VariableDeclaration=function(t,e,i){for(var r=0,s=t.declarations;r<s.length;r+=1){var n=s[r];i(n,e)}};x.VariableDeclarator=function(t,e,i){i(t.id,e,"Pattern"),t.init&&i(t.init,e,"Expression")};x.Function=function(t,e,i){t.id&&i(t.id,e,"Pattern");for(var r=0,s=t.params;r<s.length;r+=1){var n=s[r];i(n,e,"Pattern")}i(t.body,e,t.expression?"Expression":"Statement")};x.Pattern=function(t,e,i){t.type==="Identifier"?i(t,e,"VariablePattern"):t.type==="MemberExpression"?i(t,e,"MemberPattern"):i(t,e)};x.VariablePattern=Ye;x.MemberPattern=Cr;x.RestElement=function(t,e,i){return i(t.argument,e,"Pattern")};x.ArrayPattern=function(t,e,i){for(var r=0,s=t.elements;r<s.length;r+=1){var n=s[r];n&&i(n,e,"Pattern")}};x.ObjectPattern=function(t,e,i){for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];n.type==="Property"?(n.computed&&i(n.key,e,"Expression"),i(n.value,e,"Pattern")):n.type==="RestElement"&&i(n.argument,e,"Pattern")}};x.Expression=Cr;x.ThisExpression=x.Super=x.MetaProperty=Ye;x.ArrayExpression=function(t,e,i){for(var r=0,s=t.elements;r<s.length;r+=1){var n=s[r];n&&i(n,e,"Expression")}};x.ObjectExpression=function(t,e,i){for(var r=0,s=t.properties;r<s.length;r+=1){var n=s[r];i(n,e)}};x.FunctionExpression=x.ArrowFunctionExpression=x.FunctionDeclaration;x.SequenceExpression=function(t,e,i){for(var r=0,s=t.expressions;r<s.length;r+=1){var n=s[r];i(n,e,"Expression")}};x.TemplateLiteral=function(t,e,i){for(var r=0,s=t.quasis;r<s.length;r+=1){var n=s[r];i(n,e)}for(var a=0,o=t.expressions;a<o.length;a+=1){var h=o[a];i(h,e,"Expression")}};x.TemplateElement=Ye;x.UnaryExpression=x.UpdateExpression=function(t,e,i){i(t.argument,e,"Expression")};x.BinaryExpression=x.LogicalExpression=function(t,e,i){i(t.left,e,"Expression"),i(t.right,e,"Expression")};x.AssignmentExpression=x.AssignmentPattern=function(t,e,i){i(t.left,e,"Pattern"),i(t.right,e,"Expression")};x.ConditionalExpression=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Expression"),i(t.alternate,e,"Expression")};x.NewExpression=x.CallExpression=function(t,e,i){if(i(t.callee,e,"Expression"),t.arguments)for(var r=0,s=t.arguments;r<s.length;r+=1){var n=s[r];i(n,e,"Expression")}};x.MemberExpression=function(t,e,i){i(t.object,e,"Expression"),t.computed&&i(t.property,e,"Expression")};x.ExportNamedDeclaration=x.ExportDefaultDeclaration=function(t,e,i){t.declaration&&i(t.declaration,e,t.type==="ExportNamedDeclaration"||t.declaration.id?"Statement":"Expression"),t.source&&i(t.source,e,"Expression")};x.ExportAllDeclaration=function(t,e,i){t.exported&&i(t.exported,e),i(t.source,e,"Expression")};x.ImportDeclaration=function(t,e,i){for(var r=0,s=t.specifiers;r<s.length;r+=1){var n=s[r];i(n,e)}i(t.source,e,"Expression")};x.ImportExpression=function(t,e,i){i(t.source,e,"Expression")};x.ImportSpecifier=x.ImportDefaultSpecifier=x.ImportNamespaceSpecifier=x.Identifier=x.PrivateIdentifier=x.Literal=Ye;x.TaggedTemplateExpression=function(t,e,i){i(t.tag,e,"Expression"),i(t.quasi,e,"Expression")};x.ClassDeclaration=x.ClassExpression=function(t,e,i){return i(t,e,"Class")};x.Class=function(t,e,i){t.id&&i(t.id,e,"Pattern"),t.superClass&&i(t.superClass,e,"Expression"),i(t.body,e)};x.ClassBody=function(t,e,i){for(var r=0,s=t.body;r<s.length;r+=1){var n=s[r];i(n,e)}};x.MethodDefinition=x.PropertyDefinition=x.Property=function(t,e,i){t.computed&&i(t.key,e,"Expression"),t.value&&i(t.value,e,"Expression")};var Dl=J(Yo());var hu=J(uu(),1),{program:lu,createCommand:k0,createArgument:A0,createOption:O0,CommanderError:N0,InvalidArgumentError:I0,InvalidOptionArgumentError:L0,Command:P0,Argument:T0,Option:R0,Help:M0}=hu.default;var sh=require("child_process"),nh=J(Xu(),1);var Ze=[];Ze.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Ze.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ze.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Di=t=>!!t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function",Ns=Symbol.for("signal-exit emitter"),Is=globalThis,fd=Object.defineProperty.bind(Object),Ls=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Is[Ns])return Is[Ns];fd(Is,Ns,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,i){this.listeners[e].push(i)}removeListener(e,i){let r=this.listeners[e],s=r.indexOf(i);s!==-1&&(s===0&&r.length===1?r.length=0:r.splice(s,1))}emit(e,i,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(let n of this.listeners[e])s=n(i,r)===!0||s;return e==="exit"&&(s=this.emit("afterExit",i,r)||s),s}},Ui=class{},pd=t=>({onExit(e,i){return t.onExit(e,i)},load(){return t.load()},unload(){return t.unload()}}),Ps=class extends Ui{onExit(){return()=>{}}load(){}unload(){}},Ts=class extends Ui{#s=Rs.platform==="win32"?"SIGINT":"SIGHUP";#e=new Ls;#t;#i;#r;#n={};#a=!1;constructor(e){super(),this.#t=e,this.#n={};for(let i of Ze)this.#n[i]=()=>{let r=this.#t.listeners(i),{count:s}=this.#e,n=e;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(s+=n.__signal_exit_emitter__.count),r.length===s){this.unload();let a=this.#e.emit("exit",null,i),o=i==="SIGHUP"?this.#s:i;a||e.kill(e.pid,o)}};this.#r=e.reallyExit,this.#i=e.emit}onExit(e,i){if(!Di(this.#t))return()=>{};this.#a===!1&&this.load();let r=i!=null&&i.alwaysLast?"afterExit":"exit";return this.#e.on(r,e),()=>{this.#e.removeListener(r,e),this.#e.listeners.exit.length===0&&this.#e.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#a){this.#a=!0,this.#e.count+=1;for(let e of Ze)try{let i=this.#n[e];i&&this.#t.on(e,i)}catch{}this.#t.emit=(e,...i)=>this.#o(e,...i),this.#t.reallyExit=e=>this.#u(e)}}unload(){this.#a&&(this.#a=!1,Ze.forEach(e=>{let i=this.#n[e];if(!i)throw new Error("Listener not defined for signal: "+e);try{this.#t.removeListener(e,i)}catch{}}),this.#t.emit=this.#i,this.#t.reallyExit=this.#r,this.#e.count-=1)}#u(e){return Di(this.#t)?(this.#t.exitCode=e||0,this.#e.emit("exit",this.#t.exitCode,null),this.#r.call(this.#t,this.#t.exitCode)):0}#o(e,...i){let r=this.#i;if(e==="exit"&&Di(this.#t)){typeof i[0]=="number"&&(this.#t.exitCode=i[0]);let s=r.call(this.#t,e,...i);return this.#e.emit("exit",this.#t.exitCode,null),s}else return r.call(this.#t,e,...i)}},Rs=globalThis.process,{onExit:Zu,load:Z0,unload:ex}=pd(Di(Rs)?new Ts(Rs):new Ps);var eh=J(require("node:constants"),1),th=Object.keys(eh.default).filter(t=>t.startsWith("SIG")&&t!=="SIGPROF"&&t!=="SIGKILL");var ih=require("child_process"),dd=String.raw`
|
|
56
62
|
const pid = parseInt(process.argv[1], 10)
|
|
57
63
|
process.title = 'node (foreground-child watchdog pid=' + pid + ')'
|
|
58
64
|
if (!isNaN(pid)) {
|
|
@@ -73,6 +79,6 @@ if (!isNaN(pid)) {
|
|
|
73
79
|
})
|
|
74
80
|
process.on('SIGHUP', bark)
|
|
75
81
|
}
|
|
76
|
-
`,Ko=t=>{let e=!1,i=(0,Qo.spawn)(process.execPath,["-e",rf,String(t.pid)],{stdio:"ignore"});return i.on("exit",()=>e=!0),t.on("exit",()=>{e||i.kill("SIGTERM")}),i};var sf=(process==null?void 0:process.platform)==="win32"?Yo.default:Jo.spawn,nf=t=>{let[e,i=[],r={},s=()=>{}]=t;if(typeof i=="function"?(s=i,r={},i=[]):i&&typeof i=="object"&&!Array.isArray(i)?(typeof r=="function"&&(s=r),r=i,i=[]):typeof r=="function"&&(s=r,r={}),Array.isArray(e)){let[n,...a]=e;e=n,i=a}return[e,i,{...r},s]};function Xo(...t){let[e,i,r,s]=nf(t);r.stdio=[0,1,2],process.send&&r.stdio.push("ipc");let n=sf(e,i,r),a=af(n),h=Wo(()=>{try{n.kill("SIGHUP")}catch{n.kill("SIGTERM")}}),l=Ko(n),c=!1;return n.on("close",async(p,f)=>{if(l.kill("SIGKILL"),c)return;c=!0;let d=s(p,f),m=of(d)?await d:d;if(h(),a(),m!==!1)if(typeof m=="string"?(f=m,p=null):typeof m=="number"&&(p=m,f=null),f){setTimeout(()=>{},2e3);try{process.kill(process.pid,f)}catch{process.kill(process.pid,"SIGTERM")}}else process.exit(p||0)}),process.send&&(process.removeAllListeners("message"),n.on("message",(p,f)=>{var d;(d=process.send)==null||d.call(process,p,f)}),process.on("message",(p,f)=>{n.send(p,f)})),n}var af=t=>{let e=new Map;for(let i of zo){let r=()=>{try{t.kill(i)}catch{}};try{process.on(i,r),e.set(i,r)}catch{}}return()=>{for(let[i,r]of e)process.removeListener(i,r)}},of=t=>!!t&&typeof t=="object"&&typeof t.then=="function";var yu=me(cu(),1);var It=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var mf={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Nt=t=>t.replace(/[[\]\\-]/g,"\\$&"),gf=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fu=t=>t.join(""),pu=(t,e)=>{let i=e;if(t.charAt(i)!=="[")throw new Error("not in a brace expression");let r=[],s=[],n=i+1,a=!1,u=!1,h=!1,l=!1,c=i,p="";e:for(;n<t.length;){let x=t.charAt(n);if((x==="!"||x==="^")&&n===i+1){l=!0,n++;continue}if(x==="]"&&a&&!h){c=n+1;break}if(a=!0,x==="\\"&&!h){h=!0,n++;continue}if(x==="["&&!h){for(let[v,[S,F,Y]]of Object.entries(mf))if(t.startsWith(v,n)){if(p)return["$.",!1,t.length-i,!0];n+=v.length,Y?s.push(S):r.push(S),u=u||F;continue e}}if(h=!1,p){x>p?r.push(Nt(p)+"-"+Nt(x)):x===p&&r.push(Nt(x)),p="",n++;continue}if(t.startsWith("-]",n+1)){r.push(Nt(x+"-")),n+=2;continue}if(t.startsWith("-",n+1)){p=x,n+=2;continue}r.push(Nt(x)),n++}if(c<n)return["",!1,0,!1];if(!r.length&&!s.length)return["$.",!1,t.length-i,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let x=r[0].length===2?r[0].slice(-1):r[0];return[gf(x),!1,c-i,!1]}let f="["+(l?"^":"")+fu(r)+"]",d="["+(l?"":"^")+fu(s)+"]";return[r.length&&s.length?"("+f+"|"+d+")":r.length?f:d,u,c-i,!0]};var Te=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var xf=new Set(["!","?","+","*","@"]),du=t=>xf.has(t),vf="(?!(?:^|/)\\.\\.?(?:$|/))",pi="(?!\\.)",yf=new Set(["[","."]),bf=new Set(["..","."]),Cf=new Set("().*{}+?[]^$\\!"),_f=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jr="[^/]",mu=Jr+"*?",gu=Jr+"+?",st=class t{type;#s;#e;#t=!1;#i=[];#r;#n;#a;#u=!1;#o;#h;#c=!1;constructor(e,i,r={}){this.type=e,e&&(this.#e=!0),this.#r=i,this.#s=this.#r?this.#r.#s:this,this.#o=this.#s===this?r:this.#s.#o,this.#a=this.#s===this?[]:this.#s.#a,e==="!"&&!this.#s.#u&&this.#a.push(this),this.#n=this.#r?this.#r.#i.length:0}get hasMagic(){if(this.#e!==void 0)return this.#e;for(let e of this.#i)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#e=!0;return this.#e}toString(){return this.#h!==void 0?this.#h:this.type?this.#h=this.type+"("+this.#i.map(e=>String(e)).join("|")+")":this.#h=this.#i.map(e=>String(e)).join("")}#p(){if(this!==this.#s)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let i=e,r=i.#r;for(;r;){for(let s=i.#n+1;!r.type&&s<r.#i.length;s++)for(let n of e.#i){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(r.#i[s])}i=r,r=i.#r}}return this}push(...e){for(let i of e)if(i!==""){if(typeof i!="string"&&!(i instanceof t&&i.#r===this))throw new Error("invalid part: "+i);this.#i.push(i)}}toJSON(){var i;let e=this.type===null?this.#i.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#i.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#s||this.#s.#u&&((i=this.#r)==null?void 0:i.type)==="!")&&e.push({}),e}isStart(){var i;if(this.#s===this)return!0;if(!((i=this.#r)!=null&&i.isStart()))return!1;if(this.#n===0)return!0;let e=this.#r;for(let r=0;r<this.#n;r++){let s=e.#i[r];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){var i,r,s;if(this.#s===this||((i=this.#r)==null?void 0:i.type)==="!")return!0;if(!((r=this.#r)!=null&&r.isEnd()))return!1;if(!this.type)return(s=this.#r)==null?void 0:s.isEnd();let e=this.#r?this.#r.#i.length:0;return this.#n===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let i=new t(this.type,e);for(let r of this.#i)i.copyIn(r);return i}static#l(e,i,r,s){let n=!1,a=!1,u=-1,h=!1;if(i.type===null){let d=r,m="";for(;d<e.length;){let x=e.charAt(d++);if(n||x==="\\"){n=!n,m+=x;continue}if(a){d===u+1?(x==="^"||x==="!")&&(h=!0):x==="]"&&!(d===u+2&&h)&&(a=!1),m+=x;continue}else if(x==="["){a=!0,u=d,h=!1,m+=x;continue}if(!s.noext&&du(x)&&e.charAt(d)==="("){i.push(m),m="";let v=new t(x,i);d=t.#l(e,v,d,s),i.push(v);continue}m+=x}return i.push(m),d}let l=r+1,c=new t(null,i),p=[],f="";for(;l<e.length;){let d=e.charAt(l++);if(n||d==="\\"){n=!n,f+=d;continue}if(a){l===u+1?(d==="^"||d==="!")&&(h=!0):d==="]"&&!(l===u+2&&h)&&(a=!1),f+=d;continue}else if(d==="["){a=!0,u=l,h=!1,f+=d;continue}if(du(d)&&e.charAt(l)==="("){c.push(f),f="";let m=new t(d,c);c.push(m),l=t.#l(e,m,l,s);continue}if(d==="|"){c.push(f),f="",p.push(c),c=new t(null,i);continue}if(d===")")return f===""&&i.#i.length===0&&(i.#c=!0),c.push(f),f="",i.push(...p,c),l;f+=d}return i.type=null,i.#e=void 0,i.#i=[e.substring(r-1)],l}static fromGlob(e,i={}){let r=new t(null,void 0,i);return t.#l(e,r,0,i),r}toMMPattern(){if(this!==this.#s)return this.#s.toMMPattern();let e=this.toString(),[i,r,s,n]=this.toRegExpSource();if(!(s||this.#e||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let u=(this.#o.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${i}$`,u),{_src:i,_glob:e})}toRegExpSource(e){var h;let i=e??!!this.#o.dot;if(this.#s===this&&this.#p(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#i.map(m=>{let[x,v,S,F]=typeof m=="string"?t.#d(m,this.#e,l):m.toRegExpSource(e);return this.#e=this.#e||S,this.#t=this.#t||F,x}).join(""),p="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&bf.has(this.#i[0]))){let x=yf,v=i&&x.has(c.charAt(0))||c.startsWith("\\.")&&x.has(c.charAt(2))||c.startsWith("\\.\\.")&&x.has(c.charAt(4)),S=!i&&!e&&x.has(c.charAt(0));p=v?vf:S?pi:""}let f="";return this.isEnd()&&this.#s.#u&&((h=this.#r)==null?void 0:h.type)==="!"&&(f="(?:$|\\/)"),[p+c+f,Te(c),this.#e=!!this.#e,this.#t]}let r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#f(i);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let l=this.toString();return this.#i=[l],this.type=null,this.#e=void 0,[l,Te(this.toString()),!1,!1]}let a=!r||e||i||!pi?"":this.#f(!0);a===n&&(a=""),a&&(n=`(?:${n})(?:${a})*?`);let u="";if(this.type==="!"&&this.#c)u=(this.isStart()&&!i?pi:"")+gu;else{let l=this.type==="!"?"))"+(this.isStart()&&!i&&!e?pi:"")+mu+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;u=s+n+l}return[u,Te(n),this.#e=!!this.#e,this.#t]}#f(e){return this.#i.map(i=>{if(typeof i=="string")throw new Error("string type in extglob ast??");let[r,s,n,a]=i.toRegExpSource(e);return this.#t=this.#t||a,r}).filter(i=>!(this.isStart()&&this.isEnd())||!!i).join("|")}static#d(e,i,r=!1){let s=!1,n="",a=!1;for(let u=0;u<e.length;u++){let h=e.charAt(u);if(s){s=!1,n+=(Cf.has(h)?"\\":"")+h;continue}if(h==="\\"){u===e.length-1?n+="\\\\":s=!0;continue}if(h==="["){let[l,c,p,f]=pu(e,u);if(p){n+=l,a=a||c,u+=p-1,i=i||f;continue}}if(h==="*"){r&&e==="*"?n+=gu:n+=mu,i=!0;continue}if(h==="?"){n+=Jr,i=!0;continue}n+=_f(h)}return[n,Te(e),!!i,a]}};var Yr=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var H=(t,e,i={})=>(It(e),!i.nocomment&&e.charAt(0)==="#"?!1:new nt(e,i).match(t)),wf=/^\*+([^+@!?\*\[\(]*)$/,Sf=t=>e=>!e.startsWith(".")&&e.endsWith(t),Ef=t=>e=>e.endsWith(t),kf=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Af=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Of=/^\*+\.\*+$/,If=t=>!t.startsWith(".")&&t.includes("."),Nf=t=>t!=="."&&t!==".."&&t.includes("."),Pf=/^\.\*+$/,Lf=t=>t!=="."&&t!==".."&&t.startsWith("."),Tf=/^\*+$/,Rf=t=>t.length!==0&&!t.startsWith("."),Mf=t=>t.length!==0&&t!=="."&&t!=="..",Vf=/^\?+([^+@!?\*\[\(]*)?$/,Ff=([t,e=""])=>{let i=bu([t]);return e?(e=e.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(e)):i},Df=([t,e=""])=>{let i=Cu([t]);return e?(e=e.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(e)):i},Bf=([t,e=""])=>{let i=Cu([t]);return e?r=>i(r)&&r.endsWith(e):i},qf=([t,e=""])=>{let i=bu([t]);return e?r=>i(r)&&r.endsWith(e):i},bu=([t])=>{let e=t.length;return i=>i.length===e&&!i.startsWith(".")},Cu=([t])=>{let e=t.length;return i=>i.length===e&&i!=="."&&i!==".."},_u=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",xu={win32:{sep:"\\"},posix:{sep:"/"}},jf=_u==="win32"?xu.win32.sep:xu.posix.sep;H.sep=jf;var he=Symbol("globstar **");H.GLOBSTAR=he;var Uf="[^/]",Gf=Uf+"*?",Hf="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Wf="(?:(?!(?:\\/|^)\\.).)*?",$f=(t,e={})=>i=>H(i,t,e);H.filter=$f;var ue=(t,e={})=>Object.assign({},t,e),zf=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return H;let e=H;return Object.assign((r,s,n={})=>e(r,s,ue(t,n)),{Minimatch:class extends e.Minimatch{constructor(s,n={}){super(s,ue(t,n))}static defaults(s){return e.defaults(ue(t,s)).Minimatch}},AST:class extends e.AST{constructor(s,n,a={}){super(s,n,ue(t,a))}static fromGlob(s,n={}){return e.AST.fromGlob(s,ue(t,n))}},unescape:(r,s={})=>e.unescape(r,ue(t,s)),escape:(r,s={})=>e.escape(r,ue(t,s)),filter:(r,s={})=>e.filter(r,ue(t,s)),defaults:r=>e.defaults(ue(t,r)),makeRe:(r,s={})=>e.makeRe(r,ue(t,s)),braceExpand:(r,s={})=>e.braceExpand(r,ue(t,s)),match:(r,s,n={})=>e.match(r,s,ue(t,n)),sep:e.sep,GLOBSTAR:he})};H.defaults=zf;var wu=(t,e={})=>(It(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,yu.default)(t));H.braceExpand=wu;var Qf=(t,e={})=>new nt(t,e).makeRe();H.makeRe=Qf;var Kf=(t,e,i={})=>{let r=new nt(e,i);return t=t.filter(s=>r.match(s)),r.options.nonull&&!t.length&&t.push(e),t};H.match=Kf;var vu=/[?*]|[+@!]\(.*?\)|\[|\]/,Jf=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),nt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,i={}){It(e),i=i||{},this.options=i,this.pattern=e,this.platform=i.platform||_u,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!i.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!i.nonegate,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=i.windowsNoMagicRoot!==void 0?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let i of e)if(typeof i!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,i=this.options;if(!i.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],i.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((n,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){let h=n[0]===""&&n[1]===""&&(n[2]==="?"||!vu.test(n[2]))&&!vu.test(n[3]),l=/^[a-z]:/i.test(n[0]);if(h)return[...n.slice(0,4),...n.slice(4).map(c=>this.parse(c))];if(l)return[n[0],...n.slice(1).map(c=>this.parse(c))]}return n.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let a=this.set[n];a[0]===""&&a[1]===""&&this.globParts[n][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let s=0;s<e[r].length;s++)e[r][s]==="**"&&(e[r][s]="*");let{optimizationLevel:i=1}=this.options;return i>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):i>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(i=>{let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let s=r;for(;i[s+1]==="**";)s++;s!==r&&i.splice(r,s-r)}return i})}levelOneOptimize(e){return e.map(i=>(i=i.reduce((r,s)=>{let n=r[r.length-1];return s==="**"&&n==="**"?r:s===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(r.pop(),r):(r.push(s),r)},[]),i.length===0?[""]:i))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let n=e[s];s===1&&n===""&&e[0]===""||(n==="."||n==="")&&(i=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(i=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let s=e[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(i=!0,e.splice(r-1,2),r-=2)}}while(i);return e.length===0?[""]:e}firstPhasePreProcess(e){let i=!1;do{i=!1;for(let r of e){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let a=s;for(;r[a+1]==="**";)a++;a>s&&r.splice(s+1,a-s);let u=r[s+1],h=r[s+2],l=r[s+3];if(u!==".."||!h||h==="."||h===".."||!l||l==="."||l==="..")continue;i=!0,r.splice(s,1);let c=r.slice(0);c[s]="**",e.push(c),s--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let u=r[a];a===1&&u===""&&r[0]===""||(u==="."||u==="")&&(i=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(i=!0,r.pop())}let n=0;for(;(n=r.indexOf("..",n+1))!==-1;){let a=r[n-1];if(a&&a!=="."&&a!==".."&&a!=="**"){i=!0;let h=n===1&&r[n+1]==="**"?["."]:[];r.splice(n-1,2,...h),r.length===0&&r.push(""),n-=2}}}}while(i);return e}secondPhasePreProcess(e){for(let i=0;i<e.length-1;i++)for(let r=i+1;r<e.length;r++){let s=this.partsMatch(e[i],e[r],!this.preserveMultipleSlashes);s&&(e[i]=s,e[r]=[])}return e.filter(i=>i.length)}partsMatch(e,i,r=!1){let s=0,n=0,a=[],u="";for(;s<e.length&&n<i.length;)if(e[s]===i[n])a.push(u==="b"?i[n]:e[s]),s++,n++;else if(r&&e[s]==="**"&&i[n]===e[s+1])a.push(e[s]),s++;else if(r&&i[n]==="**"&&e[s]===i[n+1])a.push(i[n]),n++;else if(e[s]==="*"&&i[n]&&(this.options.dot||!i[n].startsWith("."))&&i[n]!=="**"){if(u==="b")return!1;u="a",a.push(e[s]),s++,n++}else if(i[n]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(u==="a")return!1;u="b",a.push(i[n]),s++,n++}else return!1;return e.length===i.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,i=!1,r=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)i=!i,r++;r&&(this.pattern=e.slice(r)),this.negate=i}matchOne(e,i,r=!1){let s=this.options;if(this.isWindows){let x=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),v=!x&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),S=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),F=!S&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3]),Y=v?3:x?0:void 0,W=F?3:S?0:void 0;if(typeof Y=="number"&&typeof W=="number"){let[z,B]=[e[Y],i[W]];z.toLowerCase()===B.toLowerCase()&&(i[W]=z,W>Y?i=i.slice(W):Y>W&&(e=e.slice(Y)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:i}),this.debug("matchOne",e.length,i.length);for(var a=0,u=0,h=e.length,l=i.length;a<h&&u<l;a++,u++){this.debug("matchOne loop");var c=i[u],p=e[a];if(this.debug(i,c,p),c===!1)return!1;if(c===he){this.debug("GLOBSTAR",[i,c,p]);var f=a,d=u+1;if(d===l){for(this.debug("** at the end");a<h;a++)if(e[a]==="."||e[a]===".."||!s.dot&&e[a].charAt(0)===".")return!1;return!0}for(;f<h;){var m=e[f];if(this.debug(`
|
|
77
|
-
globstar while`,e,
|
|
78
|
-
>>> no match, partial?`,e,
|
|
82
|
+
`,rh=t=>{let e=!1,i=(0,ih.spawn)(process.execPath,["-e",dd,String(t.pid)],{stdio:"ignore"});return i.on("exit",()=>e=!0),t.on("exit",()=>{e||i.kill("SIGTERM")}),i};var md=(process==null?void 0:process.platform)==="win32"?nh.default:sh.spawn,gd=t=>{let[e,i=[],r={},s=()=>{}]=t;if(typeof i=="function"?(s=i,r={},i=[]):i&&typeof i=="object"&&!Array.isArray(i)?(typeof r=="function"&&(s=r),r=i,i=[]):typeof r=="function"&&(s=r,r={}),Array.isArray(e)){let[n,...a]=e;e=n,i=a}return[e,i,{...r},s]};function ah(...t){let[e,i,r,s]=gd(t);r.stdio=[0,1,2],process.send&&r.stdio.push("ipc");let n=md(e,i,r),a=xd(n),h=Zu(()=>{try{n.kill("SIGHUP")}catch{n.kill("SIGTERM")}}),l=rh(n),c=!1;return n.on("close",async(f,p)=>{if(l.kill("SIGKILL"),c)return;c=!0;let d=s(f,p),m=yd(d)?await d:d;if(h(),a(),m!==!1)if(typeof m=="string"?(p=m,f=null):typeof m=="number"&&(f=m,p=null),p){setTimeout(()=>{},2e3);try{process.kill(process.pid,p)}catch{process.kill(process.pid,"SIGTERM")}}else process.exit(f||0)}),process.send&&(process.removeAllListeners("message"),n.on("message",(f,p)=>{var d;(d=process.send)==null||d.call(process,f,p)}),process.on("message",(f,p)=>{n.send(f,p)})),n}var xd=t=>{let e=new Map;for(let i of th){let r=()=>{try{t.kill(i)}catch{}};try{process.on(i,r),e.set(i,r)}catch{}}return()=>{for(let[i,r]of e)process.removeListener(i,r)}},yd=t=>!!t&&typeof t=="object"&&typeof t.then=="function";var Ah=J(vh(),1);var Qt=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var kd={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Kt=t=>t.replace(/[[\]\\-]/g,"\\$&"),Ad=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),_h=t=>t.join(""),bh=(t,e)=>{let i=e;if(t.charAt(i)!=="[")throw new Error("not in a brace expression");let r=[],s=[],n=i+1,a=!1,o=!1,h=!1,l=!1,c=i,f="";e:for(;n<t.length;){let g=t.charAt(n);if((g==="!"||g==="^")&&n===i+1){l=!0,n++;continue}if(g==="]"&&a&&!h){c=n+1;break}if(a=!0,g==="\\"&&!h){h=!0,n++;continue}if(g==="["&&!h){for(let[y,[C,L,q]]of Object.entries(kd))if(t.startsWith(y,n)){if(f)return["$.",!1,t.length-i,!0];n+=y.length,q?s.push(C):r.push(C),o=o||L;continue e}}if(h=!1,f){g>f?r.push(Kt(f)+"-"+Kt(g)):g===f&&r.push(Kt(g)),f="",n++;continue}if(t.startsWith("-]",n+1)){r.push(Kt(g+"-")),n+=2;continue}if(t.startsWith("-",n+1)){f=g,n+=2;continue}r.push(Kt(g)),n++}if(c<n)return["",!1,0,!1];if(!r.length&&!s.length)return["$.",!1,t.length-i,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l){let g=r[0].length===2?r[0].slice(-1):r[0];return[Ad(g),!1,c-i,!1]}let p="["+(l?"^":"")+_h(r)+"]",d="["+(l?"":"^")+_h(s)+"]";return[r.length&&s.length?"("+p+"|"+d+")":r.length?p:d,o,c-i,!0]};var je=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Od=new Set(["!","?","+","*","@"]),Sh=t=>Od.has(t),Nd="(?!(?:^|/)\\.\\.?(?:$|/))",qi="(?!\\.)",Id=new Set(["[","."]),Ld=new Set(["..","."]),Pd=new Set("().*{}+?[]^$\\!"),Td=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Vs="[^/]",wh=Vs+"*?",Ch=Vs+"+?",_t=class t{type;#s;#e;#t=!1;#i=[];#r;#n;#a;#u=!1;#o;#h;#c=!1;constructor(e,i,r={}){this.type=e,e&&(this.#e=!0),this.#r=i,this.#s=this.#r?this.#r.#s:this,this.#o=this.#s===this?r:this.#s.#o,this.#a=this.#s===this?[]:this.#s.#a,e==="!"&&!this.#s.#u&&this.#a.push(this),this.#n=this.#r?this.#r.#i.length:0}get hasMagic(){if(this.#e!==void 0)return this.#e;for(let e of this.#i)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#e=!0;return this.#e}toString(){return this.#h!==void 0?this.#h:this.type?this.#h=this.type+"("+this.#i.map(e=>String(e)).join("|")+")":this.#h=this.#i.map(e=>String(e)).join("")}#p(){if(this!==this.#s)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#a.pop();){if(e.type!=="!")continue;let i=e,r=i.#r;for(;r;){for(let s=i.#n+1;!r.type&&s<r.#i.length;s++)for(let n of e.#i){if(typeof n=="string")throw new Error("string part in extglob AST??");n.copyIn(r.#i[s])}i=r,r=i.#r}}return this}push(...e){for(let i of e)if(i!==""){if(typeof i!="string"&&!(i instanceof t&&i.#r===this))throw new Error("invalid part: "+i);this.#i.push(i)}}toJSON(){var i;let e=this.type===null?this.#i.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#i.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#s||this.#s.#u&&((i=this.#r)==null?void 0:i.type)==="!")&&e.push({}),e}isStart(){var i;if(this.#s===this)return!0;if(!((i=this.#r)!=null&&i.isStart()))return!1;if(this.#n===0)return!0;let e=this.#r;for(let r=0;r<this.#n;r++){let s=e.#i[r];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){var i,r,s;if(this.#s===this||((i=this.#r)==null?void 0:i.type)==="!")return!0;if(!((r=this.#r)!=null&&r.isEnd()))return!1;if(!this.type)return(s=this.#r)==null?void 0:s.isEnd();let e=this.#r?this.#r.#i.length:0;return this.#n===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let i=new t(this.type,e);for(let r of this.#i)i.copyIn(r);return i}static#l(e,i,r,s){let n=!1,a=!1,o=-1,h=!1;if(i.type===null){let d=r,m="";for(;d<e.length;){let g=e.charAt(d++);if(n||g==="\\"){n=!n,m+=g;continue}if(a){d===o+1?(g==="^"||g==="!")&&(h=!0):g==="]"&&!(d===o+2&&h)&&(a=!1),m+=g;continue}else if(g==="["){a=!0,o=d,h=!1,m+=g;continue}if(!s.noext&&Sh(g)&&e.charAt(d)==="("){i.push(m),m="";let y=new t(g,i);d=t.#l(e,y,d,s),i.push(y);continue}m+=g}return i.push(m),d}let l=r+1,c=new t(null,i),f=[],p="";for(;l<e.length;){let d=e.charAt(l++);if(n||d==="\\"){n=!n,p+=d;continue}if(a){l===o+1?(d==="^"||d==="!")&&(h=!0):d==="]"&&!(l===o+2&&h)&&(a=!1),p+=d;continue}else if(d==="["){a=!0,o=l,h=!1,p+=d;continue}if(Sh(d)&&e.charAt(l)==="("){c.push(p),p="";let m=new t(d,c);c.push(m),l=t.#l(e,m,l,s);continue}if(d==="|"){c.push(p),p="",f.push(c),c=new t(null,i);continue}if(d===")")return p===""&&i.#i.length===0&&(i.#c=!0),c.push(p),p="",i.push(...f,c),l;p+=d}return i.type=null,i.#e=void 0,i.#i=[e.substring(r-1)],l}static fromGlob(e,i={}){let r=new t(null,void 0,i);return t.#l(e,r,0,i),r}toMMPattern(){if(this!==this.#s)return this.#s.toMMPattern();let e=this.toString(),[i,r,s,n]=this.toRegExpSource();if(!(s||this.#e||this.#o.nocase&&!this.#o.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let o=(this.#o.nocase?"i":"")+(n?"u":"");return Object.assign(new RegExp(`^${i}$`,o),{_src:i,_glob:e})}toRegExpSource(e){var h;let i=e??!!this.#o.dot;if(this.#s===this&&this.#p(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#i.map(m=>{let[g,y,C,L]=typeof m=="string"?t.#d(m,this.#e,l):m.toRegExpSource(e);return this.#e=this.#e||C,this.#t=this.#t||L,g}).join(""),f="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&Ld.has(this.#i[0]))){let g=Id,y=i&&g.has(c.charAt(0))||c.startsWith("\\.")&&g.has(c.charAt(2))||c.startsWith("\\.\\.")&&g.has(c.charAt(4)),C=!i&&!e&&g.has(c.charAt(0));f=y?Nd:C?qi:""}let p="";return this.isEnd()&&this.#s.#u&&((h=this.#r)==null?void 0:h.type)==="!"&&(p="(?:$|\\/)"),[f+c+p,je(c),this.#e=!!this.#e,this.#t]}let r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",n=this.#f(i);if(this.isStart()&&this.isEnd()&&!n&&this.type!=="!"){let l=this.toString();return this.#i=[l],this.type=null,this.#e=void 0,[l,je(this.toString()),!1,!1]}let a=!r||e||i||!qi?"":this.#f(!0);a===n&&(a=""),a&&(n=`(?:${n})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!i?qi:"")+Ch;else{let l=this.type==="!"?"))"+(this.isStart()&&!i&&!e?qi:"")+wh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=s+n+l}return[o,je(n),this.#e=!!this.#e,this.#t]}#f(e){return this.#i.map(i=>{if(typeof i=="string")throw new Error("string type in extglob ast??");let[r,s,n,a]=i.toRegExpSource(e);return this.#t=this.#t||a,r}).filter(i=>!(this.isStart()&&this.isEnd())||!!i).join("|")}static#d(e,i,r=!1){let s=!1,n="",a=!1;for(let o=0;o<e.length;o++){let h=e.charAt(o);if(s){s=!1,n+=(Pd.has(h)?"\\":"")+h;continue}if(h==="\\"){o===e.length-1?n+="\\\\":s=!0;continue}if(h==="["){let[l,c,f,p]=bh(e,o);if(f){n+=l,a=a||c,o+=f-1,i=i||p;continue}}if(h==="*"){r&&e==="*"?n+=Ch:n+=wh,i=!0;continue}if(h==="?"){n+=Vs,i=!0;continue}n+=Td(h)}return[n,je(e),!!i,a]}};var Bs=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var Q=(t,e,i={})=>(Qt(e),!i.nocomment&&e.charAt(0)==="#"?!1:new bt(e,i).match(t)),Rd=/^\*+([^+@!?\*\[\(]*)$/,Md=t=>e=>!e.startsWith(".")&&e.endsWith(t),Fd=t=>e=>e.endsWith(t),Vd=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Bd=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Dd=/^\*+\.\*+$/,Ud=t=>!t.startsWith(".")&&t.includes("."),qd=t=>t!=="."&&t!==".."&&t.includes("."),jd=/^\.\*+$/,Gd=t=>t!=="."&&t!==".."&&t.startsWith("."),Wd=/^\*+$/,$d=t=>t.length!==0&&!t.startsWith("."),Hd=t=>t.length!==0&&t!=="."&&t!=="..",zd=/^\?+([^+@!?\*\[\(]*)?$/,Qd=([t,e=""])=>{let i=Oh([t]);return e?(e=e.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(e)):i},Kd=([t,e=""])=>{let i=Nh([t]);return e?(e=e.toLowerCase(),r=>i(r)&&r.toLowerCase().endsWith(e)):i},Yd=([t,e=""])=>{let i=Nh([t]);return e?r=>i(r)&&r.endsWith(e):i},Jd=([t,e=""])=>{let i=Oh([t]);return e?r=>i(r)&&r.endsWith(e):i},Oh=([t])=>{let e=t.length;return i=>i.length===e&&!i.startsWith(".")},Nh=([t])=>{let e=t.length;return i=>i.length===e&&i!=="."&&i!==".."},Ih=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Eh={win32:{sep:"\\"},posix:{sep:"/"}},Xd=Ih==="win32"?Eh.win32.sep:Eh.posix.sep;Q.sep=Xd;var me=Symbol("globstar **");Q.GLOBSTAR=me;var Zd="[^/]",em=Zd+"*?",tm="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",im="(?:(?!(?:\\/|^)\\.).)*?",rm=(t,e={})=>i=>Q(i,t,e);Q.filter=rm;var de=(t,e={})=>Object.assign({},t,e),sm=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Q;let e=Q;return Object.assign((r,s,n={})=>e(r,s,de(t,n)),{Minimatch:class extends e.Minimatch{constructor(s,n={}){super(s,de(t,n))}static defaults(s){return e.defaults(de(t,s)).Minimatch}},AST:class extends e.AST{constructor(s,n,a={}){super(s,n,de(t,a))}static fromGlob(s,n={}){return e.AST.fromGlob(s,de(t,n))}},unescape:(r,s={})=>e.unescape(r,de(t,s)),escape:(r,s={})=>e.escape(r,de(t,s)),filter:(r,s={})=>e.filter(r,de(t,s)),defaults:r=>e.defaults(de(t,r)),makeRe:(r,s={})=>e.makeRe(r,de(t,s)),braceExpand:(r,s={})=>e.braceExpand(r,de(t,s)),match:(r,s,n={})=>e.match(r,s,de(t,n)),sep:e.sep,GLOBSTAR:me})};Q.defaults=sm;var Lh=(t,e={})=>(Qt(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Ah.default)(t));Q.braceExpand=Lh;var nm=(t,e={})=>new bt(t,e).makeRe();Q.makeRe=nm;var am=(t,e,i={})=>{let r=new bt(e,i);return t=t.filter(s=>r.match(s)),r.options.nonull&&!t.length&&t.push(e),t};Q.match=am;var kh=/[?*]|[+@!]\(.*?\)|\[|\]/,om=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),bt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,i={}){Qt(e),i=i||{},this.options=i,this.pattern=e,this.platform=i.platform||Ih,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!i.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!i.nonegate,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=i.windowsNoMagicRoot!==void 0?i.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let i of e)if(typeof i!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,i=this.options;if(!i.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],i.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(n=>this.slashSplit(n));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((n,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let h=n[0]===""&&n[1]===""&&(n[2]==="?"||!kh.test(n[2]))&&!kh.test(n[3]),l=/^[a-z]:/i.test(n[0]);if(h)return[...n.slice(0,4),...n.slice(4).map(c=>this.parse(c))];if(l)return[n[0],...n.slice(1).map(c=>this.parse(c))]}return n.map(h=>this.parse(h))});if(this.debug(this.pattern,s),this.set=s.filter(n=>n.indexOf(!1)===-1),this.isWindows)for(let n=0;n<this.set.length;n++){let a=this.set[n];a[0]===""&&a[1]===""&&this.globParts[n][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let s=0;s<e[r].length;s++)e[r][s]==="**"&&(e[r][s]="*");let{optimizationLevel:i=1}=this.options;return i>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):i>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(i=>{let r=-1;for(;(r=i.indexOf("**",r+1))!==-1;){let s=r;for(;i[s+1]==="**";)s++;s!==r&&i.splice(r,s-r)}return i})}levelOneOptimize(e){return e.map(i=>(i=i.reduce((r,s)=>{let n=r[r.length-1];return s==="**"&&n==="**"?r:s===".."&&n&&n!==".."&&n!=="."&&n!=="**"?(r.pop(),r):(r.push(s),r)},[]),i.length===0?[""]:i))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let n=e[s];s===1&&n===""&&e[0]===""||(n==="."||n==="")&&(i=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(i=!0,e.pop())}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let s=e[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(i=!0,e.splice(r-1,2),r-=2)}}while(i);return e.length===0?[""]:e}firstPhasePreProcess(e){let i=!1;do{i=!1;for(let r of e){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let a=s;for(;r[a+1]==="**";)a++;a>s&&r.splice(s+1,a-s);let o=r[s+1],h=r[s+2],l=r[s+3];if(o!==".."||!h||h==="."||h===".."||!l||l==="."||l==="..")continue;i=!0,r.splice(s,1);let c=r.slice(0);c[s]="**",e.push(c),s--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let o=r[a];a===1&&o===""&&r[0]===""||(o==="."||o==="")&&(i=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(i=!0,r.pop())}let n=0;for(;(n=r.indexOf("..",n+1))!==-1;){let a=r[n-1];if(a&&a!=="."&&a!==".."&&a!=="**"){i=!0;let h=n===1&&r[n+1]==="**"?["."]:[];r.splice(n-1,2,...h),r.length===0&&r.push(""),n-=2}}}}while(i);return e}secondPhasePreProcess(e){for(let i=0;i<e.length-1;i++)for(let r=i+1;r<e.length;r++){let s=this.partsMatch(e[i],e[r],!this.preserveMultipleSlashes);s&&(e[i]=s,e[r]=[])}return e.filter(i=>i.length)}partsMatch(e,i,r=!1){let s=0,n=0,a=[],o="";for(;s<e.length&&n<i.length;)if(e[s]===i[n])a.push(o==="b"?i[n]:e[s]),s++,n++;else if(r&&e[s]==="**"&&i[n]===e[s+1])a.push(e[s]),s++;else if(r&&i[n]==="**"&&e[s]===i[n+1])a.push(i[n]),n++;else if(e[s]==="*"&&i[n]&&(this.options.dot||!i[n].startsWith("."))&&i[n]!=="**"){if(o==="b")return!1;o="a",a.push(e[s]),s++,n++}else if(i[n]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(o==="a")return!1;o="b",a.push(i[n]),s++,n++}else return!1;return e.length===i.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,i=!1,r=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)i=!i,r++;r&&(this.pattern=e.slice(r)),this.negate=i}matchOne(e,i,r=!1){let s=this.options;if(this.isWindows){let g=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),y=!g&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),C=typeof i[0]=="string"&&/^[a-z]:$/i.test(i[0]),L=!C&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3]),q=y?3:g?0:void 0,T=L?3:C?0:void 0;if(typeof q=="number"&&typeof T=="number"){let[G,F]=[e[q],i[T]];G.toLowerCase()===F.toLowerCase()&&(i[T]=G,T>q?i=i.slice(T):q>T&&(e=e.slice(q)))}}let{optimizationLevel:n=1}=this.options;n>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:i}),this.debug("matchOne",e.length,i.length);for(var a=0,o=0,h=e.length,l=i.length;a<h&&o<l;a++,o++){this.debug("matchOne loop");var c=i[o],f=e[a];if(this.debug(i,c,f),c===!1)return!1;if(c===me){this.debug("GLOBSTAR",[i,c,f]);var p=a,d=o+1;if(d===l){for(this.debug("** at the end");a<h;a++)if(e[a]==="."||e[a]===".."||!s.dot&&e[a].charAt(0)===".")return!1;return!0}for(;p<h;){var m=e[p];if(this.debug(`
|
|
83
|
+
globstar while`,e,p,i,d,m),this.matchOne(e.slice(p),i.slice(d),r))return this.debug("globstar found match!",p,h,m),!0;if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,p,i,d);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(r&&(this.debug(`
|
|
84
|
+
>>> no match, partial?`,e,p,i,d),p===h))}let g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=c.test(f),this.debug("pattern match",c,f,g)),!g)return!1}if(a===h&&o===l)return!0;if(a===h)return r;if(o===l)return a===h-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return Lh(this.pattern,this.options)}parse(e){Qt(e);let i=this.options;if(e==="**")return me;if(e==="")return"";let r,s=null;(r=e.match(Wd))?s=i.dot?Hd:$d:(r=e.match(Rd))?s=(i.nocase?i.dot?Bd:Vd:i.dot?Fd:Md)(r[1]):(r=e.match(zd))?s=(i.nocase?i.dot?Kd:Qd:i.dot?Yd:Jd)(r):(r=e.match(Dd))?s=i.dot?qd:Ud:(r=e.match(jd))&&(s=Gd);let n=_t.fromGlob(e,this.options).toMMPattern();return s?Object.assign(n,{test:s}):n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let i=this.options,r=i.noglobstar?em:i.dot?tm:im,s=new Set(i.nocase?["i"]:[]),n=e.map(h=>{let l=h.map(c=>{if(c instanceof RegExp)for(let f of c.flags.split(""))s.add(f);return typeof c=="string"?om(c):c===me?me:c._src});return l.forEach((c,f)=>{let p=l[f+1],d=l[f-1];c!==me||d===me||(d===void 0?p!==void 0&&p!==me?l[f+1]="(?:\\/|"+r+"\\/)?"+p:l[f]=r:p===void 0?l[f-1]=d+"(?:\\/|"+r+")?":p!==me&&(l[f-1]=d+"(?:\\/|\\/"+r+"\\/)"+p,l[f+1]=me))}),l.filter(c=>c!==me).join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];n="^"+a+n+o+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,i=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&i)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let a=s[s.length-1];if(!a)for(let o=s.length-2;!a&&o>=0;o--)a=s[o];for(let o=0;o<n.length;o++){let h=n[o],l=s;if(r.matchBase&&h.length===1&&(l=[a]),this.matchOne(l,h,i))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return Q.defaults(e).Minimatch}};Q.AST=_t;Q.Minimatch=bt;Q.escape=Bs;Q.unescape=je;var bg=J(Mh(),1),Sg=J(Ks(),1),wg=J(Js(),1),Tl=J(nn(),1),Cg=J(Pl(),1);var Rl=Tl.default;var ir=J(require("node:process"),1),Fl=J(require("node:os"),1),on=J(require("node:tty"),1);function xe(t,e=globalThis.Deno?globalThis.Deno.args:ir.default.argv){let i=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(i+t),s=e.indexOf("--");return r!==-1&&(s===-1||r<s)}var{env:V}=ir.default,tr;xe("no-color")||xe("no-colors")||xe("color=false")||xe("color=never")?tr=0:(xe("color")||xe("colors")||xe("color=true")||xe("color=always"))&&(tr=1);function Eg(){if("FORCE_COLOR"in V)return V.FORCE_COLOR==="true"?1:V.FORCE_COLOR==="false"?0:V.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(V.FORCE_COLOR,10),3)}function kg(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Ag(t,{streamIsTTY:e,sniffFlags:i=!0}={}){let r=Eg();r!==void 0&&(tr=r);let s=i?tr:r;if(s===0)return 0;if(i){if(xe("color=16m")||xe("color=full")||xe("color=truecolor"))return 3;if(xe("color=256"))return 2}if("TF_BUILD"in V&&"AGENT_NAME"in V)return 1;if(t&&!e&&s===void 0)return 0;let n=s||0;if(V.TERM==="dumb")return n;if(ir.default.platform==="win32"){let a=Fl.default.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in V)return"GITHUB_ACTIONS"in V||"GITEA_ACTIONS"in V?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in V)||V.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor"||V.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in V){let a=Number.parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:n}function Ml(t,e={}){let i=Ag(t,{streamIsTTY:t&&t.isTTY,...e});return kg(i)}var Og={stdout:Ml({isTTY:on.default.isatty(1)}),stderr:Ml({isTTY:on.default.isatty(2)})},Vl=Og;0&&(module.exports={WebSocket,acorn,acornLoose,acornWalk,convertSourceMap,decode,foregroundChild,mergeScriptCovs,minimatch,parseCss,program,supportsColor});
|