28 lines
297 KiB
JavaScript
28 lines
297 KiB
JavaScript
|
"use strict";var C=(u,l)=>()=>(l||u((l={exports:{}}).exports,l),l.exports);var X=C((Up,Rr)=>{var xt=function(u){return u&&u.Math==Math&&u};Rr.exports=xt(typeof globalThis=="object"&&globalThis)||xt(typeof window=="object"&&window)||xt(typeof self=="object"&&self)||xt(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Pe=C((Kp,jr)=>{jr.exports=function(u){try{return!!u()}catch{return!0}}});var De=C((Vp,qr)=>{var wh=Pe();qr.exports=!wh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var gt=C((Hp,Ur)=>{var Nh=Pe();Ur.exports=!Nh(function(){var u=function(){}.bind();return typeof u!="function"||u.hasOwnProperty("prototype")})});var Pt=C((zp,Kr)=>{var Ih=gt(),At=Function.prototype.call;Kr.exports=Ih?At.bind(At):function(){return At.apply(At,arguments)}});var Wr=C(zr=>{"use strict";var Vr={}.propertyIsEnumerable,Hr=Object.getOwnPropertyDescriptor,kh=Hr&&!Vr.call({1:2},1);zr.f=kh?function(l){var f=Hr(this,l);return!!f&&f.enumerable}:Vr});var ns=C((Gp,Gr)=>{Gr.exports=function(u,l){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:l}}});var he=C((Xp,Yr)=>{var Xr=gt(),Jr=Function.prototype,Dh=Jr.bind,os=Jr.call,Fh=Xr&&Dh.bind(os,os);Yr.exports=Xr?function(u){return u&&Fh(u)}:function(u){return u&&function(){return os.apply(u,arguments)}}});var Tt=C((Jp,Qr)=>{var $r=he(),Lh=$r({}.toString),Oh=$r("".slice);Qr.exports=function(u){return Oh(Lh(u),8,-1)}});var ei=C((Yp,Zr)=>{var Bh=X(),Mh=he(),_h=Pe(),Rh=Tt(),hs=Bh.Object,jh=Mh("".split);Zr.exports=_h(function(){return!hs("z").propertyIsEnumerable(0)})?function(u){return Rh(u)=="String"?jh(u,""):hs(u)}:hs});var us=C(($p,ti)=>{var qh=X(),Uh=qh.TypeError;ti.exports=function(u){if(u==null)throw Uh("Can't call method on "+u);return u}});var Et=C((Qp,si)=>{var Kh=ei(),Vh=us();si.exports=function(u){return Kh(Vh(u))}});var ue=C((Zp,ri)=>{ri.exports=function(u){return typeof u=="function"}});var Fe=C((ef,ii)=>{var Hh=ue();ii.exports=function(u){return typeof u=="object"?u!==null:Hh(u)}});var Je=C((tf,ai)=>{var ls=X(),zh=ue(),Wh=function(u){return zh(u)?u:void 0};ai.exports=function(u,l){return arguments.length<2?Wh(ls[u]):ls[u]&&ls[u][l]}});var oi=C((sf,ni)=>{var Gh=he();ni.exports=Gh({}.isPrototypeOf)});var ui=C((rf,hi)=>{var Xh=Je();hi.exports=Xh("navigator","userAgent")||""});var yi=C((af,mi)=>{var di=X(),cs=ui(),li=di.process,ci=di.Deno,pi=li&&li.versions||ci&&ci.version,fi=pi&&pi.v8,fe,bt;fi&&(fe=fi.split("."),bt=fe[0]>0&&fe[0]<4?1:+(fe[0]+fe[1]));!bt&&cs&&(fe=cs.match(/Edge\/(\d+)/),(!fe||fe[1]>=74)&&(fe=cs.match(/Chrome\/(\d+)/),fe&&(bt=+fe[1])));mi.exports=bt});var ps=C((nf,gi)=>{var xi=yi(),Jh=Pe();gi.exports=!!Object.getOwnPropertySymbols&&!Jh(function(){var u=Symbol();return!String(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&xi&&xi<41})});var fs=C((of,Ai)=>{var Yh=ps();Ai.exports=Yh&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ds=C((hf,Pi)=>{var $h=X(),Qh=Je(),Zh=ue(),eu=oi(),tu=fs(),su=$h.Object;Pi.exports=tu?function(u){return typeof u=="symbol"}:function(u){var l=Qh("Symbol");return Zh(l)&&eu(l.prototype,su(u))}});var Ei=C((uf,Ti)=>{var ru=X(),iu=ru.String;Ti.exports=function(u){try{return iu(u)}catch{return"Object"}}});var vt=C((lf,bi)=>{var au=X(),nu=ue(),ou=Ei(),hu=au.TypeError;bi.exports=function(u){if(nu(u))return u;throw hu(ou(u)+" is not a function")}});var Ci=C((cf,vi)=>{var uu=vt();vi.exports=function(u,l){var f=u[l];return f==null?void 0:uu(f)}});var wi=C((pf,Si)=>{var lu=X(),ms=Pt(),ys=ue(),xs=Fe(),cu=lu.TypeError;Si.exports=function(u,l){var f,d;if(l==="string"&&ys(f=u.toString)&&!xs(d=ms(f,u))||ys(f=u.valueOf)&&!xs(d=ms(f,u))||l!=="string"&&ys(f=u.toString)&&!xs(d=ms(f,u)))return d;throw cu("Can't convert object to primitive value")}});var Ii=C((ff,Ni)=>{Ni.exports=!1});var Ct=C((df,Di)=>{var ki=X(),pu=Object.defineProperty;Di.exports=function(u,l){try{pu(ki,u,{value:l,configurable:!0,writable:!0})}catch{ki[u]=l}return l}});var St=C((mf,Li)=>{var fu=X(),du=Ct(),Fi="__core-js_shared__",mu=fu[Fi]||du(Fi,{});Li.exports=mu});var gs=C((yf,Bi)=>{var yu=Ii(),Oi=St(
|
||
|
`);return m===-1?d:d.slice(0,m)}l.exports=f}}),Pp=H({"src/utils/text/skip-inline-comment.js"(u,l){"use strict";V();function f(d,m){if(m===!1)return!1;if(d.charAt(m)==="/"&&d.charAt(m+1)==="*"){for(let g=m+2;g<d.length;++g)if(d.charAt(g)==="*"&&d.charAt(g+1)==="/")return g+2}return m}l.exports=f}}),Tp=H({"src/utils/text/skip-newline.js"(u,l){"use strict";V();function f(d,m,g){let T=g&&g.backwards;if(m===!1)return!1;let A=d.charAt(m);if(T){if(d.charAt(m-1)==="\r"&&A===`
|
||
|
`)return m-2;if(A===`
|
||
|
`||A==="\r"||A==="\u2028"||A==="\u2029")return m-1}else{if(A==="\r"&&d.charAt(m+1)===`
|
||
|
`)return m+2;if(A===`
|
||
|
`||A==="\r"||A==="\u2028"||A==="\u2029")return m+1}return m}l.exports=f}}),kn=H({"src/utils/text/skip.js"(u,l){"use strict";V();function f(A){return(h,N,D)=>{let b=D&&D.backwards;if(N===!1)return!1;let{length:L}=h,P=N;for(;P>=0&&P<L;){let j=h.charAt(P);if(A instanceof RegExp){if(!A.test(j))return P}else if(!A.includes(j))return P;b?P--:P++}return P===-1||P===L?P:!1}}var d=f(/\s/),m=f(" "),g=f(",; "),T=f(/[^\n\r]/);l.exports={skipWhitespace:d,skipSpaces:m,skipToLineEnd:g,skipEverythingButNewLine:T}}}),Ep=H({"src/utils/text/skip-trailing-comment.js"(u,l){"use strict";V();var{skipEverythingButNewLine:f}=kn();function d(m,g){return g===!1?!1:m.charAt(g)==="/"&&m.charAt(g+1)==="/"?f(m,g):g}l.exports=d}}),bp=H({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(u,l){"use strict";V();var f=Pp(),d=Tp(),m=Ep(),{skipSpaces:g}=kn();function T(A,h){let N=null,D=h;for(;D!==N;)N=D,D=g(A,D),D=f(A,D),D=m(A,D),D=d(A,D);return D}l.exports=T}}),Dn={};yp(Dn,{EOL:()=>Xs,arch:()=>vp,cpus:()=>Rn,default:()=>Vn,endianness:()=>Fn,freemem:()=>Mn,getNetworkInterfaces:()=>Kn,hostname:()=>Ln,loadavg:()=>On,networkInterfaces:()=>Un,platform:()=>Cp,release:()=>qn,tmpDir:()=>Ws,tmpdir:()=>Gs,totalmem:()=>_n,type:()=>jn,uptime:()=>Bn});function Fn(){if(typeof Ot>"u"){var u=new ArrayBuffer(2),l=new Uint8Array(u),f=new Uint16Array(u);if(l[0]=1,l[1]=2,f[0]===258)Ot="BE";else if(f[0]===513)Ot="LE";else throw new Error("unable to figure out endianess")}return Ot}function Ln(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function On(){return[]}function Bn(){return 0}function Mn(){return Number.MAX_VALUE}function _n(){return Number.MAX_VALUE}function Rn(){return[]}function jn(){return"Browser"}function qn(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Un(){}function Kn(){}function vp(){return"javascript"}function Cp(){return"browser"}function Ws(){return"/tmp"}var Ot,Gs,Xs,Vn,Sp=Nn({"node-modules-polyfills:os"(){V(),Gs=Ws,Xs=`
|
||
|
`,Vn={EOL:Xs,tmpdir:Gs,tmpDir:Ws,networkInterfaces:Un,getNetworkInterfaces:Kn,release:qn,type:jn,cpus:Rn,totalmem:_n,freemem:Mn,uptime:Bn,loadavg:On,hostname:Ln,endianness:Fn}}}),wp=H({"node-modules-polyfills-commonjs:os"(u,l){V();var f=(Sp(),gp(Dn));if(f&&f.default){l.exports=f.default;for(let d in f)l.exports[d]=f[d]}else f&&(l.exports=f)}}),Np=H({"node_modules/detect-newline/index.js"(u,l){"use strict";V();var f=d=>{if(typeof d!="string")throw new TypeError("Expected a string");let m=d.match(/(?:\r?\n)/g)||[];if(m.length===0)return;let g=m.filter(A=>A===`\r
|
||
|
`).length,T=m.length-g;return g>T?`\r
|
||
|
`:`
|
||
|
`};l.exports=f,l.exports.graceful=d=>typeof d=="string"&&f(d)||`
|
||
|
`}}),Ip=H({"node_modules/jest-docblock/build/index.js"(u){"use strict";V(),Object.defineProperty(u,"__esModule",{value:!0}),u.extract=P,u.parse=$,u.parseWithComments=O,u.print=M,u.strip=j;function l(){let E=wp();return l=function(){return E},E}function f(){let E=d(Np());return f=function(){return E},E}function d(E){return E&&E.__esModule?E:{default:E}}var m=/\*\/$/,g=/^\/\*\*/,T=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,A=/(^|\s+)\/\/([^\r\n]*)/g,h=/^(\r?\n)+/,N=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,D=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,b=/(\r?\n|^) *\* ?/g,L=[];function P(E){let x=E.match(T);return x?x[0].trimLeft():""}function j(E){let x=E.match(T);return x&&x[0]?E.substring(x[0].length):E}function $(E){return O(E).pragmas}function O(E){let x=(0,f().default)(E)||l().EOL;E=E.replace(g,"").replace(m,"").replace(b,"$1");let se="";for(;se!==E;)se=E,E=E.replace(N,"".concat(x,"$1 $2").concat(x));E=E.replace(h,"").trimRight();let Y=Object.create(null),re=E.replace(D,"").replace(h,"").trimRight(),Z;for(;Z=D.exec(E);){let le=Z[2].replace(A,"");typeof Y[Z[1]]=="string"||Array.isArray(Y[Z[1]])?Y[Z[1]]=L.concat(Y[Z[1]],le):Y[Z[1]]=le}return{comments:re,pragmas:Y}}function M(E){let{comments:x="",pragmas:se={}}=E,Y=(0,f().default)(x)||l().EOL,re="/**",Z=" *",le=" */",z=Object.keys(se),B=z.map(G=>_(G,se[G])).reduce((G,J)=>G.concat(J),[]).map(G=>Z+" "+G+Y).join("");if(!x){if(z.length===0)return"";if(z.length===1&&!Array.isArray(se[z[0]])){let G=se[z[0]];return"".concat(re," ").concat(_(z[0],G)[0]).concat(le)}}let W=x.split(Y).map(G=>"".concat(Z," ").concat(G)).join(Y)+Y;return re+Y+(x?W:"")+(x&&z.length?Z+Y:"")+B+le}function _(E,x){return L.concat(x).map(se=>"@".concat(E," ").concat(se).trim())}}}),kp=H({"src/common/end-of-line.js"(u,l){"use strict";V();function f(T){let A=T.indexOf("\r");return A>=0?T.charAt(A+1)===`
|
||
|
`?"crlf":"cr":"lf"}function d(T){switch(T){case"cr":return"\r";case"crlf":return`\r
|
||
|
`;default:return`
|
||
|
`}}function m(T,A){let h;switch(A){case`
|
||
|
`:h=/\n/g;break;case"\r":h=/\r/g;break;case`\r
|
||
|
`:h=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(A),"."))}let N=T.match(h);return N?N.length:0}function g(T){return T.replace(/\r\n?/g,`
|
||
|
`)}l.exports={guessEndOfLine:f,convertEndOfLineToChars:d,countEndOfLineChars:m,normalizeEndOfLine:g}}}),Dp=H({"src/language-js/pragma.js"(u,l){"use strict";V();var{parseWithComments:f,strip:d,extract:m,print:g}=Ip(),{normalizeEndOfLine:T}=kp(),A=In();function h(b){let L=A(b);L&&(b=b.slice(L.length+1));let P=m(b),{pragmas:j,comments:$}=f(P);return{shebang:L,text:b,pragmas:j,comments:$}}function N(b){let L=Object.keys(h(b).pragmas);return L.includes("prettier")||L.includes("format")}function D(b){let{shebang:L,text:P,pragmas:j,comments:$}=h(b),O=d(P),M=g({pragmas:Object.assign({format:""},j),comments:$.trimStart()});return(L?"".concat(L,`
|
||
|
`):"")+T(M)+(O.startsWith(`
|
||
|
`)?`
|
||
|
`:`
|
||
|
|
||
|
`)+O}l.exports={hasPragma:N,insertPragma:D}}}),Hn=H({"src/utils/is-non-empty-array.js"(u,l){"use strict";V();function f(d){return Array.isArray(d)&&d.length>0}l.exports=f}}),zn=H({"src/language-js/loc.js"(u,l){"use strict";V();var f=Hn();function d(h,N){let{ignoreDecorators:D}=N||{};if(!D){let b=h.declaration&&h.declaration.decorators||h.decorators;if(f(b))return d(b[0])}return h.range?h.range[0]:h.start}function m(h){return h.range?h.range[1]:h.end}function g(h,N){let D=d(h);return Number.isInteger(D)&&D===d(N)}function T(h,N){let D=m(h);return Number.isInteger(D)&&D===m(N)}function A(h,N){return g(h,N)&&T(h,N)}l.exports={locStart:d,locEnd:m,hasSameLocStart:g,hasSameLoc:A}}}),Wn=H({"src/language-js/parse/utils/create-parser.js"(u,l){"use strict";V();var{hasPragma:f}=Dp(),{locStart:d,locEnd:m}=zn();function g(T){return T=typeof T=="function"?{parse:T}:T,Object.assign({astFormat:"estree",hasPragma:f,locStart:d,locEnd:m},T)}l.exports=g}}),$s=H({"src/common/parser-create-error.js"(u,l){"use strict";V();function f(d,m){let g=new SyntaxError(d+" ("+m.start.line+":"+m.start.column+")");return g.loc=m,g}l.exports=f}}),Gn=H({"src/language-js/parse/utils/create-babel-parse-error.js"(u,l){"use strict";V();var f=$s();function d(m){let{message:g,loc:T}=m;return f(g.replace(/ \(.*\)/,""),{start:{line:T?T.line:0,column:T?T.column+1:0}})}l.exports=d}}),Fp=H({"src/language-js/utils/is-ts-keyword-type.js"(u,l){"use strict";V();function f(d){let{type:m}=d;return m.startsWith("TS")&&m.endsWith("Keyword")}l.exports=f}}),Lp=H({"src/language-js/utils/is-block-comment.js"(u,l){"use strict";V();function f(d){return d.type==="Block"||d.type==="CommentBlock"||d.type==="MultiLine"}l.exports=f}}),Op=H({"src/language-js/utils/is-type-cast-comment.js"(u,l){"use strict";V();var f=Lp();function d(m){return f(m)&&m.value[0]==="*"&&/@type\b/.test(m.value)}l.exports=d}}),Bp=H({"src/utils/get-last.js"(u,l){"use strict";V();var f=d=>d[d.length-1];l.exports=f}}),Xn=H({"src/language-js/parse/postprocess/visit-node.js"(u,l){"use strict";V();function f(d,m){if(Array.isArray(d)){for(let g=0;g<d.length;g++)d[g]=f(d[g],m);return d}if(d&&typeof d=="object"&&typeof d.type=="string"){let g=Object.keys(d);for(let T=0;T<g.length;T++)d[g[T]]=f(d[g[T]],m);return m(d)||d}return d}l.exports=f}}),Mp=H({"src/language-js/parse/postprocess/typescript.js"(u,l){"use strict";V();var f=$s(),d=Xn();function m(h,N){let{start:D,end:b}=h.loc;throw f(N,{start:{line:D.line,column:D.column+1},end:{line:b.line,column:b.column+1}})}function g(h,N,D){let b=h.decorators;if(!Array.isArray(b))return;let L=N.decorators;(!Array.isArray(L)||L.length!==b.length||b.some(P=>{let j=D.get(P);return!j||!L.includes(j)}))&&m(N,"Leading decorators must be attached to a class declaration")}function T(h,N){h.kind!==166||h.modifiers&&!h.modifiers.some(L=>L.kind===126)||h.initializer&&N.value===null&&m(N,"Abstract property cannot have an initializer")}function A(h,N){let{esTreeNodeToTSNodeMap:D,tsNodeToESTreeNodeMap:b}=N.tsParseResult;d(h,L=>{let P=D.get(L);if(!P)return;let j=b.get(P);j===L&&(g(P,j,b),T(P,j))})}l.exports={throwErrorForInvalidNodes:A}}}),_p=H({"src/language-js/parse/postprocess/index.js"(u,l){"use strict";V();var{locStart:f,locEnd:d}=zn(),m=Fp(),g=Op(),T=Bp(),A=Xn(),{throwErrorForInvalidNodes:h}=Mp();function N(P,j){if(j.parser==="typescript"&&/@|abstract/.test(j.originalText)&&h(P,j),j.parser!=="typescript"&&j.parser!=="flow"&&j.parser!=="acorn"&&j.parser!=="espree"&&j.parser!=="meriyah"){let O=new Set;P=A(P,M=>{M.leadingComments&&M.leadingComments.some(g)&&O.add(f(M))}),P=A(P,M=>{if(M.type==="ParenthesizedExpression"){let{expression:_}=M;if(_.type==="TypeCastExpression")return _.range=M.range,_;let E=f(M);if(!O.has(E))return _.extra=Object.assign(Object.assign({},_.extra),{},{parenthesized:!0}),_}})}return P=A(P,O=>{switch(O.type){case"ChainExpression":return D(O.expression);case"LogicalExpression":{if(b(O))return L(O);break}case"VariableDeclaration":{let M=T(O.declarations);M&&M.init&&$(O,M);break}case"TSParenthesizedType":return m(O.typeAnnotation)||O.typeAnnotation.type==="TSThisType"||(
|
||
|
`;break;default:t+=String.fromCharCode(r);break}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}}recordStrictModeErrors(t,e){this.state.strict&&!this.state.strictErrors.has(e.index)?this.raise(t,{at:e}):this.state.strictErrors.set(e.index,{loc:e,message:t})}readEscapedChar(t){let e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return`
|
||
|
`;case 114:return"\r";case 120:{let r=this.readHexChar(2,!1,e);return r===null?null:String.fromCharCode(r)}case 117:{let r=this.readCodePoint(e);return r===null?null:String.fromCodePoint(r)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(t)return null;this.recordStrictModeErrors(h.StrictNumericEscape,ee(this.state.curPosition(),-1));default:if(s>=48&&s<=55){let r=ee(this.state.curPosition(),-1),a=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(a,8);n>255&&(a=a.slice(0,-1),n=parseInt(a,8)),this.state.pos+=a.length-1;let o=this.input.charCodeAt(this.state.pos);if(a!=="0"||o===56||o===57){if(t)return null;this.recordStrictModeErrors(h.StrictNumericEscape,r)}return String.fromCharCode(n)}return String.fromCharCode(s)}}readHexChar(t,e,s){let r=this.state.curPosition(),i=this.readInt(16,t,e,!1);return i===null&&(s?this.raise(h.InvalidEscapeSequence,{at:r}):this.state.pos=r.index-1),i}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,r=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let i=this.codePointAtPos(this.state.pos);if(_e(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);let a=this.state.curPosition(),n=this.state.pos===s?ye:_e;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(h.MissingUnicodeEscape,{at:this.state.curPosition()}),r=this.state.pos-1;continue}++this.state.pos;let o=this.readCodePoint(!0);o!==null&&(n(o)||this.raise(h.EscapedCharNotAnIdentifier,{at:a}),e+=String.fromCodePoint(o)),r=this.state.pos}else break}return e+this.input.slice(r,this.state.pos)}readWord(t){let e=this.readWord1(t),s=z.get(e);s!==void 0?this.finishToken(s,Ee(s)):this.finishToken(128,e)}checkKeywordEscapes(){let{type:t}=this.state;Mt(t)&&this.state.containsEsc&&this.raise(h.InvalidEscapedReservedWord,{at:this.state.startLoc},Ee(t))}updateContext(t){}},Oo=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Bo=class{constructor(t){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Oo)}exit(){let t=this.stack.pop(),e=this.current();for(let[s,r]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(s)||e.undefinedPrivateNames.set(s,r):this.raise(h.InvalidPrivateFieldResolution,{at:r},s)}declarePrivateName(t,e,s){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),n=r.has(t);if(e&Gt){let o=n&&i.get(t);if(o){let c=o<,p=e<,y=o&Gt,v=e≫n=y===v||c!==p,n||i.delete(t)}else n||i.set(t,e)}n&&this.raise(h.PrivateNameRedeclaration,{at:s},t),r.add(t),a.delete(t)}usePrivateName(t,e){let s;for(s of this.stack)if(s.privateNames.has(t))return;s?s.undefinedPrivateNames.set(t,e):this.raise(h.InvalidPrivateFieldResolution,{at:e},t)}},Mo=0,Ar=1,Zt=2,Pr=3,pt=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mo;this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return this.type===Zt||this.type===Ar}isCertainlyParameterDeclaration(){return this.type===Pr}},Tr=class extends pt{constructor(t){super(t);this.errors=new Map}recordDeclarationError(t,e){this.errors.set(e.index,{message:t,loc:e})}clearDeclarationError(t){this.errors.delete(t.index)}iterateErrors(t){this.errors.forEach(t)}},_o=class{constructor(t){this.stack=[new pt],this.raise=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){let{stack:s}=this,r=s.length-1,i=s[r];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(e,t);else return;i=s[--r]}this.raise(e,{at:t})}recordParenthesizedIdentifierError(t,e){let{stack:s}=this,r=s[s.length-1];if(r.isCertainlyParameterDeclaration())this.raise(t,{at:e});else if(r.canBeArrowParameterDecla
|
||
|
`:`\r
|
||
|
`):r=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let s="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(h.UnterminatedString,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);if(i===e)break;i===38?(s+=this.input.slice(r,this.state.pos),s+=this.jsxReadEntity(),r=this.state.pos):Ie(i)?(s+=this.input.slice(r,this.state.pos),s+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return s+=this.input.slice(r,this.state.pos++),this.finishToken(129,s)}jsxReadEntity(){let e="",s=0,r,i=this.input[this.state.pos],a=++this.state.pos;for(;this.state.pos<this.length&&s++<10;){if(i=this.input[this.state.pos++],i===";"){e[0]==="#"?e[1]==="x"?(e=e.substr(2),Zo.test(e)&&(r=String.fromCodePoint(parseInt(e,16)))):(e=e.substr(1),eh.test(e)&&(r=String.fromCodePoint(parseInt(e,10)))):r=Qo[e];break}e+=i}return r||(this.state.pos=a,"&")}jsxReadWord(){let e,s=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(_e(e)||e===45);return this.finishToken(136,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(136)?e.name=this.state.value:Mt(this.state.type)?e.name=Ee(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.start,s=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let i=this.startNodeAt(e,s);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.start,s=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let i=this.startNodeAt(e,s);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(_.brace),this.next(),e=this.jsxParseExpressionContainer(e,_.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(ke.AttributeIsEmpty,{node:e}),e;case 138:case 129:return this.parseExprAtom();default:throw this.raise(ke.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(_.j_oTag),this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,s){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let r=this.parseExpression();e.expression=r}return this.setContext(s),this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(_.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(_.j_oTag),this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,s){let r=this.startNodeAt(e,s);return this.match(139)?(this.expect(139),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){let s=[];for(;!this.match(56)&&!this.match(139);)s.push(this.jsxParseAttribute());return e.attributes=s,e.selfClosing=this.eat(56),this.expect(139),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,s){let r=this.startNodeAt(e,s);return this.match(139)?(this.expect(139),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(139),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,s){let r=this.startNodeAt(e,s),i=[],a=this.jsxParseOpeningElementAt(e,s),n=null;if(!a.selfClosing){e:for(;;)switch(this.state.type){case 138:if(e=this.state.start,s=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e,s);break e}i.p
|
||
|
`),cooked:i===null?null:i.slice(1,c)},n.tail=o,this.next(),this.finishNode(n,"TemplateElement"),this.resetEndLocation(n,ee(this.state.lastTokEndLoc,c)),n}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),n=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let p;e?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(r),this.checkProto(p,s,a,r)),s&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(h.InvalidRecordProperty,{node:p}),p.shorthand&&this.addExtra(p,"shorthand",!0),o.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(h.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),r=!1,i=!1,a,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(a=this.state.start,n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let c=this.state.containsEsc,p=this.parsePropertyName(s,t);if(!o&&!c&&this.maybeAsyncOrAccessorProp(s)){let y=p.name;y==="async"&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(p),o=this.eat(55),this.parsePropertyName(s)),(y==="get"||y==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(p),s.kind=y,this.match(55)&&(o=!0,this.raise(h.AccessorIsGenerator,{at:this.state.curPosition()},y),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,a,n,o,r,!1,i,t),s}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t);r.length!==s&&this.raise(t.kind==="get"?h.BadGetterArity:h.BadSetterArity,{node:t}),t.kind==="set"&&((e=r[r.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(h.BadSetterRestParameter,{node:t})}parseObjectMethod(t,e,s,r,i){if(i)return this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t;if(s||e||this.match(10))return r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,r,i){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,s,Ae(t.key));else if(this.match(29)){let a=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=a):this.raise(h.InvalidCoverInitializedName,{at:a}),t.value=this.parseMaybeDefault(e,s,Ae(t.key))}else t.value=Ae(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,r,i,a,n,o){let c=this.parseObjectMethod(t,r,i,a,n)||this.parseObjectProperty(t,e,s,a,o);return c||this.unexpected(),c}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);
|