amis-rpc-design/node_modules/prettier/plugins/acorn.mjs

14 lines
146 KiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
var $i=Object.create;var Ze=Object.defineProperty;var Zi=Object.getOwnPropertyDescriptor;var es=Object.getOwnPropertyNames;var ts=Object.getPrototypeOf,is=Object.prototype.hasOwnProperty;var be=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports),ss=(a,u)=>{for(var c in u)Ze(a,c,{get:u[c],enumerable:!0})},rs=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of es(u))!is.call(a,l)&&l!==c&&Ze(a,l,{get:()=>u[l],enumerable:!(h=Zi(u,l))||h.enumerable});return a};var as=(a,u,c)=>(c=a!=null?$i(ts(a)):{},rs(u||!a||!a.__esModule?Ze(c,"default",{value:a,enumerable:!0}):c,a));var ii=be(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.extract=fs;se.parse=ms;se.parseWithComments=ti;se.print=xs;se.strip=ds;var us=/\*\/$/,hs=/^\/\*\*?/,Zt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ps=/(^|\s+)\/\/([^\r\n]*)/g,Qt=/^(\r?\n)+/,cs=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Yt=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,ls=/(\r?\n|^) *\* ?/g,ei=[];function fs(a){let u=a.match(Zt);return u?u[0].trimLeft():""}function ds(a){let u=a.match(Zt);return u&&u[0]?a.substring(u[0].length):a}function ms(a){return ti(a).pragmas}function ti(a){let u=`
`;a=a.replace(hs,"").replace(us,"").replace(ls,"$1");let c="";for(;c!==a;)c=a,a=a.replace(cs,`${u}$1 $2${u}`);a=a.replace(Qt,"").trimRight();let h=Object.create(null),l=a.replace(Yt,"").replace(Qt,"").trimRight(),f;for(;f=Yt.exec(a);){let y=f[2].replace(ps,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ei.concat(h[f[1]],y):h[f[1]]=y}return{comments:l,pragmas:h}}function xs({comments:a="",pragmas:u={}}){let c=`
`,h="/**",l=" *",f=" */",y=Object.keys(u),_=y.map(P=>$t(P,u[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(y.length===0)return"";if(y.length===1&&!Array.isArray(u[y[0]])){let P=u[y[0]];return`${h} ${$t(y[0],P)[0]}${f}`}}let L=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?L:"")+(a&&y.length?l+c:"")+_+f}function $t(a,u){return ei.concat(u).map(c=>`@${a} ${c}`.trim())}});var ke=be((Ue,ci)=>{(function(a,u){typeof Ue=="object"&&typeof ci<"u"?u(Ue):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(Ue,function(a){"use strict";var u=[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],c=[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,3104,541,1507,4938,6,4191],h="\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-\
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),mt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return mt(t.onComment)&&(t.onComment=Ti(t,t.onComment)),t}function Ti(e,t){return function(i,s,n,o,p,m){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new fe(this,p,m)),e.ranges&&(g.range=[n,o]),t.push(g)}}var de=1,ne=2,Ge=4,yt=8,gt=16,vt=32,We=64,bt=128,me=256,Xe=de|ne|me;function ze(e,t){return ne|(e?Ge:0)|(t?yt:0)}var Ee=0,He=1,Q=2,St=3,_t=4,Ct=5,V=function(t,i,s){this.options=t=ki(t),this.sourceFile=t.sourceFile,this.keywords=$(_[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(de),this.regexpState=null,this.privateNameStack=[]},W={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}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},W.inFunction.get=function(){return(this.currentVarScope().flags&ne)>0},W.inGenerator.get=function(){return(this.currentVarScope().flags&yt)>0&&!this.currentVarScope().inClassFieldInit},W.inAsync.get=function(){return(this.currentVarScope().flags&Ge)>0&&!this.currentVarScope().inClassFieldInit},W.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&me)return!1;if(t.flags&ne)return(t.flags&Ge)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},W.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&We)>0||i||this.options.allowSuperOutsideMethod},W.allowDirectSuper.get=function(){return(this.currentThisScope().flags&bt)>0},W.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},W.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ne|me))>0||i},W.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&me)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n<t.length;n++)s=t[n](s);return s},V.parse=function(t,i){return new this(i,t).parse()},V.parseExpressionAt=function(t,i,s){var n=new this(s,t,i);return n.nextToken(),n.parseExpression()},V.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(V.prototype,W);var O=V.prototype,wi=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;O.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){U.lastIndex=e,e+=U.exec(this.input)[0].length;var t=wi.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){U.lastIndex=e+t[0].length;var i=U.exec(this.input),s=i.index+i[0].length,n=this.input.charAt(s);return n===";"||n==="}"||j.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!
`),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var m=this.containsEsc;return this.parsePropertyName(i),!e&&!m&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,m),this.finishNode(i,"Property")},C.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},C.parsePropertyValue=function(e,t,i,s,n,o,p,m){(i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===r.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!m&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var s=this.startNode(),n=this.
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.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(r.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},A.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Z(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"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return te(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(d(n,s))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var p=this.readCodePoint();(t?F:d)(p,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Z(p),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},A.readWord=function(){var e=this.readWord1(),t=r.name;return this.keywords.test(e)&&(t=H[e]),this.finishToken(t,e)};var Ht="8.10.0";V.acorn={Parser:V,version:Ht,defaultOptions:we,Position:ae,SourceLocation:fe,getLineInfo:Je,Node:ye,TokenType:x,tokTypes:r,keywordTypes:H,TokContext:K,tokContexts:I,isIdentifierChar:d,isIdentifierStart:F,Token:Ve,isNewLine:te,lineBreak:j,lineBreakG:lt,nonASCIIwhitespace:Ke};function Hi(e,t){return V.parse(e,t)}function Qi(e,t,i){return V.parseExpressionAt(e,t,i)}function Yi(e,t){return V.tokenizer(e,t)}a.Node=ye,a.Parser=V,a.Position=ae,a.SourceLocation=fe,a.TokContext=K,a.Token=Ve,a.TokenType=x,a.defaultOptions=we,a.getLineInfo=Je,a.isIdentifierChar=d,a.isIdentifierStart=F,a.isNewLine=te,a.keywordTypes=H,a.lineBreak=j,a.lineBreakG=lt,a.nonASCIIwhitespace=Ke,a.parse=Hi,a.parseExpressionAt=Qi,a.tokContexts=I,a.tokTypes=r,a.tokenizer=Yi,a.version=Ht})});var fi=be((zr,li)=>{li.exports={}});var nt=be((Hr,at)=>{"use strict";var Ns=fi(),Vs=/^[\da-fA-F]+$/,Ls=/^\d+$/,di=new WeakMap;function mi(a){a=a.Parser.acorn||a;let u=di.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("<tag",!1),y=new h("</tag",!1),_=new h("<tag>...</tag>",!0,!0),L={tc_oTag:f,tc_cTag:y,tc_expr:_},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(_),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let G=this.context.pop();G===f&&D===c.slash||G===y?(this.context.pop(),this.exprAllowed=this.curContext()===_):this.exprAllowed=!0},u={tokContexts:L,tokTypes:P},di.set(a,u)}return u}function Te(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return Te(a.object)+"."+Te(a.property)}at.exports=function(a){return a=a||{},function(u){return Rs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(at.exports,"tokTypes",{get:function(){return mi(ke()).tokTypes},configurable:!0,enumerable:!0});function Rs(a,u){let c=u.acorn||ke(),h=mi(c),l=c.tokTypes,f=h.tokTypes,y=c.tokContexts,_=h.tokContexts.tc_oTag,L=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=c.isNewLine,G=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{sta
`:`\r
`):b=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(d){let x="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let k=this.input.charCodeAt(this.pos);if(k===d)break;k===38?(x+=this.input.slice(b,this.pos),x+=this.jsx_readEntity(),b=this.pos):D(k)?(x+=this.input.slice(b,this.pos),x+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return x+=this.input.slice(b,this.pos++),this.finishToken(l.string,x)}jsx_readEntity(){let d="",x=0,b,k=this.input[this.pos];k!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos<this.input.length&&x++<10;){if(k=this.input[this.pos++],k===";"){d[0]==="#"?d[1]==="x"?(d=d.substr(2),Vs.test(d)&&(b=String.fromCharCode(parseInt(d,16)))):(d=d.substr(1),Ls.test(d)&&(b=String.fromCharCode(parseInt(d,10)))):b=Ns[d];break}d+=k}return b||(this.pos=N,"&")}jsx_readWord(){let d,x=this.pos;do d=this.input.charCodeAt(++this.pos);while(F(d)||d===45);return this.finishToken(f.jsxName,this.input.slice(x,this.pos))}jsx_parseIdentifier(){let d=this.startNode();return this.type===f.jsxName?d.name=this.value:this.type.keyword?d.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(d,"JSXIdentifier")}jsx_parseNamespacedName(){let d=this.start,x=this.startLoc,b=this.jsx_parseIdentifier();if(!a.allowNamespaces||!this.eat(l.colon))return b;var k=this.startNodeAt(d,x);return k.namespace=b,k.name=this.jsx_parseIdentifier(),this.finishNode(k,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let d=this.start,x=this.startLoc,b=this.jsx_parseNamespacedName();for(this.type===l.dot&&b.type==="JSXNamespacedName"&&!a.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let k=this.startNodeAt(d,x);k.object=b,k.property=this.jsx_parseIdentifier(),b=this.finishNode(k,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let d=this.jsx_parseExpressionContainer();return d.expression.type==="JSXEmptyExpression"&&this.raise(d.start,"JSX attributes must only be assigned a non-empty expression"),d;case f.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let d=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(d,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let d=this.startNode();return this.next(),d.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(d,"JSXExpressionContainer")}jsx_parseAttribute(){let d=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),d.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(d,"JSXSpreadAttribute")):(d.name=this.jsx_parseNamespacedName(),d.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(d,"JSXAttribute"))}jsx_parseOpeningElementAt(d,x){let b=this.startNodeAt(d,x);b.attributes=[];let k=this.jsx_parseElementName();for(k&&(b.name=k);this.type!==l.slash&&this.type!==f.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(l.slash),this.expect(f.jsxTagEnd),this.finishNode(b,k?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(d,x){let b=this.startNodeAt(d,x),k=this.jsx_parseElementName();return k&&(b.name=k),this.expect(f.jsxTagEnd),this.finishNode(b,k?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(d,x){let b=this.startNodeAt(d,x),k=[],N=this.jsx_parseOpeningElementAt(d,x),H=null;if(!N.selfClosing){e:for(;;)switch(this.type){case f.jsxTagStart:if(d=this.start,x=this.startLoc,this.next(),this.eat(l.slash)){H=this.jsx_parseClosingElementAt(d,x);break e}k.push(this.jsx_parseElementAt(d,x));break;case f.jsxText:k.push(this.parseExprAtom());break;case l.braceL:k.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Te(H.name)!==Te(N.name)&&this.raise(H.start,"Expected corresponding
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ut](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Ys={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=yi.Parser.extend(gi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=yi.Parser.extend(Js.default(),gi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function $s(a,u){let c=Ys.get(u);return new c(u,a).parse()}var Zs="espree";qe.name=Zs;qe.parse=$s});var ct={};ss(ct,{parsers:()=>sr});function ns(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var Re=ns;function os(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Oe=os;var ce=as(ii(),1);function ys(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(`
`);return u===-1?a:a.slice(0,u)}var si=ys;function gs(a){let u=si(a);u&&(a=a.slice(u.length+1));let c=(0,ce.extract)(a),{pragmas:h,comments:l}=(0,ce.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ri(a){let{pragmas:u}=gs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function vs(a){return Array.isArray(a)&&a.length>0}var Be=vs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return Be(c)?Math.min(M(c[0]),u):u}function z(a){return a.range?a.range[1]:a.end}function bs(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ri,locStart:M,locEnd:z,...a}}var De=bs;var Ss=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},et=Ss;function _s(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ai=_s;var Cs=ai(["Block","CommentBlock","MultiLine"]),Se=Cs;function ks(a){return Se(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var ni=ks;function Ts(a){let u=`*${a.value}*`.split(`
`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var tt=Ts;var _e=null;function Ce(a){if(_e!==null&&typeof _e.property){let u=_e;return _e=Ce.prototype=null,u}return _e=Ce.prototype=a??Object.create(null),new Ce}var ws=10;for(let a=0;a<=ws;a++)Ce();function it(a){return Ce(a)}function Es(a,u="type"){it(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var oi=Es;var ui={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","param