vzcode 2.10.0 → 2.11.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/dist/assets/index-BK1qsxog.js +457 -0
- package/dist/assets/{index-Bjj9VRMn.css → index-C5d5win4.css} +1 -1
- package/dist/assets/{worker-DHxSPM7N.js → worker-CHvi_bXc.js} +13 -13
- package/dist/index.html +2 -2
- package/package.json +26 -24
- package/src/client/VZSidebar/AIChat/Message.tsx +4 -1
- package/src/client/VZSidebar/AIChat/MessageList.tsx +13 -1
- package/src/client/VZSidebar/VisualEditor.tsx +264 -0
- package/src/client/VZSidebar/index.tsx +0 -23
- package/src/client/VZSidebar/styles.scss +235 -0
- package/src/types.ts +2 -1
- package/dist/assets/index-CsDf6ybm.js +0 -457
|
@@ -9,7 +9,7 @@ Defaulting to 2020, but this will stop working in the future.`)),D.ecmaVersion=1
|
|
|
9
9
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return B(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"),y){var U=this.pos-1;this.invalidStringToken(U,"Invalid escape sequence in template string")}default:if(D>=48&&D<=55){var K=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ge=parseInt(K,8);return ge>255&&(K=K.slice(0,-1),ge=parseInt(K,8)),this.pos+=K.length-1,D=this.input.charCodeAt(this.pos),(K!=="0"||D===56||D===57)&&(this.strict||y)&&this.invalidStringToken(this.pos-1-K.length,y?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ge)}return w(D)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(D)}},bt.readHexChar=function(y){var D=this.pos,U=this.readInt(16,y);return U===null&&this.invalidStringToken(D,"Bad character escape sequence"),U},bt.readWord1=function(){this.containsEsc=!1;for(var y="",D=!0,U=this.pos,K=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ge=this.fullCharCodeAtPos();if(g(ge,K))this.pos+=ge<=65535?1:2;else if(ge===92){this.containsEsc=!0,y+=this.input.slice(U,this.pos);var Ve=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var $e=this.readCodePoint();(D?f:g)($e,K)||this.invalidStringToken(Ve,"Invalid Unicode escape"),y+=B($e),U=this.pos}else break;D=!1}return y+this.input.slice(U,this.pos)},bt.readWord=function(){var y=this.readWord1(),D=v.name;return this.keywords.test(y)&&(D=T[y]),this.finishToken(D,y)};var M="8.15.0";rt.acorn={Parser:rt,version:M,defaultOptions:Fe,Position:H,SourceLocation:ce,getLineInfo:re,Node:Ke,TokenType:d,tokTypes:v,keywordTypes:T,TokContext:fe,tokContexts:De,isIdentifierChar:g,isIdentifierStart:f,Token:pr,isNewLine:w,lineBreak:A,lineBreakG:b,nonASCIIwhitespace:R};function Y(y,D){return rt.parse(y,D)}function he(y,D,U){return rt.parseExpressionAt(y,D,U)}function je(y,D){return rt.tokenizer(y,D)}n.Node=Ke,n.Parser=rt,n.Position=H,n.SourceLocation=ce,n.TokContext=fe,n.Token=pr,n.TokenType=d,n.defaultOptions=Fe,n.getLineInfo=re,n.isIdentifierChar=g,n.isIdentifierStart=f,n.isNewLine=w,n.keywordTypes=T,n.lineBreak=A,n.lineBreakG=b,n.nonASCIIwhitespace=R,n.parse=Y,n.parseExpressionAt=he,n.tokContexts=De,n.tokTypes=v,n.tokenizer=je,n.version=M})}(mn,mn.exports)),mn.exports}var $n={exports:{}},Wn,Wp;function Y0(){return Wp||(Wp=1,Wn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Wn}var Gp;function Q0(){return Gp||(Gp=1,function(a){const e=Y0(),n=/^[\da-fA-F]+$/,o=/^\d+$/,t=new WeakMap;function l(r){r=r.Parser.acorn||r;let m=t.get(r);if(!m){const i=r.tokTypes,c=r.TokContext,h=r.TokenType,s=new c("<tag",!1),f=new c("</tag",!1),g=new c("<tag>...</tag>",!0,!0),d={tc_oTag:s,tc_cTag:f,tc_expr:g},E={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};E.jsxTagStart.updateContext=function(){this.context.push(g),this.context.push(s),this.exprAllowed=!1},E.jsxTagEnd.updateContext=function(S){let x=this.context.pop();x===s&&S===i.slash||x===f?(this.context.pop(),this.exprAllowed=this.curContext()===g):this.exprAllowed=!0},m={tokContexts:d,tokTypes:E},t.set(r,m)}return m}function p(r){if(!r)return r;if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return p(r.object)+"."+p(r.property)}a.exports=function(r){return r=r||{},function(m){return u({allowNamespaces:r.allowNamespaces!==!1,allowNamespacedObjects:!!r.allowNamespacedObjects},m)}},Object.defineProperty(a.exports,"tokTypes",{get:function(){return l(Vn()).tokTypes},configurable:!0,enumerable:!0});function u(r,m){const i=m.acorn||Vn(),c=l(i),h=i.tokTypes,s=c.tokTypes,f=i.tokContexts,g=c.tokContexts.tc_oTag,d=c.tokContexts.tc_cTag,E=c.tokContexts.tc_expr,S=i.isNewLine,x=i.isIdentifierStart,T=i.isIdentifierChar;return class extends m{static get acornJsx(){return c}jsx_readToken(){let C="",v=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let A=this.input.charCodeAt(this.pos);switch(A){case 60:case 123:return this.pos===this.start?A===60&&this.exprAllowed?(++this.pos,this.finishToken(s.jsxTagStart)):this.getTokenFromCode(A):(C+=this.input.slice(v,this.pos),this.finishToken(s.jsxText,C));case 38:C+=this.input.slice(v,this.pos),C+=this.jsx_readEntity(),v=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(A===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:S(A)?(C+=this.input.slice(v,this.pos),C+=this.jsx_readNewLine(!0),v=this.pos):++this.pos}}}jsx_readNewLine(C){let v=this.input.charCodeAt(this.pos),A;return++this.pos,v===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,A=C?`
|
|
10
10
|
`:`\r
|
|
11
11
|
`):A=String.fromCharCode(v),this.options.locations&&(++this.curLine,this.lineStart=this.pos),A}jsx_readString(C){let v="",A=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let b=this.input.charCodeAt(this.pos);if(b===C)break;b===38?(v+=this.input.slice(A,this.pos),v+=this.jsx_readEntity(),A=this.pos):S(b)?(v+=this.input.slice(A,this.pos),v+=this.jsx_readNewLine(!1),A=this.pos):++this.pos}return v+=this.input.slice(A,this.pos++),this.finishToken(h.string,v)}jsx_readEntity(){let C="",v=0,A,b=this.input[this.pos];b!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos<this.input.length&&v++<10;){if(b=this.input[this.pos++],b===";"){C[0]==="#"?C[1]==="x"?(C=C.substr(2),n.test(C)&&(A=String.fromCharCode(parseInt(C,16)))):(C=C.substr(1),o.test(C)&&(A=String.fromCharCode(parseInt(C,10)))):A=e[C];break}C+=b}return A||(this.pos=w,"&")}jsx_readWord(){let C,v=this.pos;do C=this.input.charCodeAt(++this.pos);while(T(C)||C===45);return this.finishToken(s.jsxName,this.input.slice(v,this.pos))}jsx_parseIdentifier(){let C=this.startNode();return this.type===s.jsxName?C.name=this.value:this.type.keyword?C.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(C,"JSXIdentifier")}jsx_parseNamespacedName(){let C=this.start,v=this.startLoc,A=this.jsx_parseIdentifier();if(!r.allowNamespaces||!this.eat(h.colon))return A;var b=this.startNodeAt(C,v);return b.namespace=A,b.name=this.jsx_parseIdentifier(),this.finishNode(b,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===s.jsxTagEnd)return"";let C=this.start,v=this.startLoc,A=this.jsx_parseNamespacedName();for(this.type===h.dot&&A.type==="JSXNamespacedName"&&!r.allowNamespacedObjects&&this.unexpected();this.eat(h.dot);){let b=this.startNodeAt(C,v);b.object=A,b.property=this.jsx_parseIdentifier(),A=this.finishNode(b,"JSXMemberExpression")}return A}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let C=this.jsx_parseExpressionContainer();return C.expression.type==="JSXEmptyExpression"&&this.raise(C.start,"JSX attributes must only be assigned a non-empty expression"),C;case s.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let C=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(C,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let C=this.startNode();return this.next(),C.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(C,"JSXExpressionContainer")}jsx_parseAttribute(){let C=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),C.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(C,"JSXSpreadAttribute")):(C.name=this.jsx_parseNamespacedName(),C.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(C,"JSXAttribute"))}jsx_parseOpeningElementAt(C,v){let A=this.startNodeAt(C,v);A.attributes=[];let b=this.jsx_parseElementName();for(b&&(A.name=b);this.type!==h.slash&&this.type!==s.jsxTagEnd;)A.attributes.push(this.jsx_parseAttribute());return A.selfClosing=this.eat(h.slash),this.expect(s.jsxTagEnd),this.finishNode(A,b?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(C,v){let A=this.startNodeAt(C,v),b=this.jsx_parseElementName();return b&&(A.name=b),this.expect(s.jsxTagEnd),this.finishNode(A,b?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(C,v){let A=this.startNodeAt(C,v),b=[],w=this.jsx_parseOpeningElementAt(C,v),k=null;if(!w.selfClosing){e:for(;;)switch(this.type){case s.jsxTagStart:if(C=this.start,v=this.startLoc,this.next(),this.eat(h.slash)){k=this.jsx_parseClosingElementAt(C,v);break e}b.push(this.jsx_parseElementAt(C,v));break;case s.jsxText:b.push(this.parseExprAtom());break;case h.braceL:b.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}p(k.name)!==p(w.name)&&this.raise(k.start,"Expected corresponding JSX closing tag for <"+p(w.name)+">")}let R=w.name?"Element":"Fragment";return A["opening"+R]=w,A["closing"+R]=k,A.children=b,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(A,"JSX"+R)}jsx_parseText(){let C=this.parseLiteral(this.value);return C.type="JSXText",C}jsx_parseElement(){let C=this.start,v=this.startLoc;return this.next(),this.jsx_parseElementAt(C,v)}parseExprAtom(C){return this.type===s.jsxText?this.jsx_parseText():this.type===s.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(C)}readToken(C){let v=this.curContext();if(v===E)return this.jsx_readToken();if(v===g||v===d){if(x(C))return this.jsx_readWord();if(C==62)return++this.pos,this.finishToken(s.jsxTagEnd);if((C===34||C===39)&&v==g)return this.jsx_readString(C)}return C===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(s.jsxTagStart)):super.readToken(C)}updateContext(C){if(this.type==h.braceL){var v=this.curContext();v==g?this.context.push(f.b_expr):v==E?this.context.push(f.b_tmpl):super.updateContext(C),this.exprAllowed=!0}else if(this.type===h.slash&&C===s.jsxTagStart)this.context.length-=2,this.context.push(d),this.exprAllowed=!1;else return super.updateContext(C)}}}}($n)),$n.exports}var Gr={},zp;function Z0(){if(zp)return Gr;zp=1;const a={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},e=Object.keys(a);for(const p of e)Object.freeze(a[p]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(p){return!n.has(p)&&p[0]!=="_"}function t(p){return Object.keys(p).filter(o)}function l(p){const u=Object.assign({},a);for(const r of Object.keys(p))if(Object.hasOwn(u,r)){const m=new Set(p[r]);for(const i of u[r])m.add(i);u[r]=Object.freeze(Array.from(m))}else u[r]=Object.freeze(Array.from(p[r]));return Object.freeze(u)}return Gr.KEYS=a,Gr.getKeys=t,Gr.unionWith=l,Gr}var Hp;function hn(){if(Hp)return er;Hp=1,Object.defineProperty(er,"__esModule",{value:!0});var a=Vn(),e=Q0(),n=Z0();function o(O){return O&&typeof O=="object"&&"default"in O?O:{default:O}}function t(O){if(O&&O.__esModule)return O;var q=Object.create(null);return O&&Object.keys(O).forEach(function(N){if(N!=="default"){var _=Object.getOwnPropertyDescriptor(O,N);Object.defineProperty(q,N,_.get?_:{enumerable:!0,get:function(){return O[N]}})}}),q.default=O,Object.freeze(q)}var l=t(a),p=o(e),u=t(n);const r={Boolean:"Boolean",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function m(O,q){const N=O[0],_=O.at(-1),G={type:r.Template,value:q.slice(N.start,_.end)};return N.loc&&(G.loc={start:N.loc.start,end:_.loc.end}),N.range&&(G.start=N.range[0],G.end=_.range[1],G.range=[G.start,G.end]),G}function i(O,q){this._acornTokTypes=O,this._tokens=[],this._curlyBrace=null,this._code=q}i.prototype={constructor:i,translate(O,q){const N=O.type,_=this._acornTokTypes;if(N===_.name)O.type=r.Identifier,O.value==="static"&&(O.type=r.Keyword),q.ecmaVersion>5&&(O.value==="yield"||O.value==="let")&&(O.type=r.Keyword);else if(N===_.privateId)O.type=r.PrivateIdentifier;else if(N===_.semi||N===_.comma||N===_.parenL||N===_.parenR||N===_.braceL||N===_.braceR||N===_.dot||N===_.bracketL||N===_.colon||N===_.question||N===_.bracketR||N===_.ellipsis||N===_.arrow||N===_.jsxTagStart||N===_.incDec||N===_.starstar||N===_.jsxTagEnd||N===_.prefix||N===_.questionDot||N.binop&&!N.keyword||N.isAssign)O.type=r.Punctuator,O.value=this._code.slice(O.start,O.end);else if(N===_.jsxName)O.type=r.JSXIdentifier;else if(N.label==="jsxText"||N===_.jsxAttrValueToken)O.type=r.JSXText;else if(N.keyword)N.keyword==="true"||N.keyword==="false"?O.type=r.Boolean:N.keyword==="null"?O.type=r.Null:O.type=r.Keyword;else if(N===_.num)O.type=r.Numeric,O.value=this._code.slice(O.start,O.end);else if(N===_.string)q.jsxAttrValueToken?(q.jsxAttrValueToken=!1,O.type=r.JSXText):O.type=r.String,O.value=this._code.slice(O.start,O.end);else if(N===_.regexp){O.type=r.RegularExpression;const G=O.value;O.regex={flags:G.flags,pattern:G.pattern},O.value=`/${G.pattern}/${G.flags}`}return O},onToken(O,q){const N=this._acornTokTypes,_=q.tokens,G=this._tokens,B=()=>{_.push(m(this._tokens,this._code)),this._tokens=[]};if(O.type===N.eof){this._curlyBrace&&_.push(this.translate(this._curlyBrace,q));return}if(O.type===N.backQuote){this._curlyBrace&&(_.push(this.translate(this._curlyBrace,q)),this._curlyBrace=null),G.push(O),G.length>1&&B();return}if(O.type===N.dollarBraceL){G.push(O),B();return}if(O.type===N.braceR){this._curlyBrace&&_.push(this.translate(this._curlyBrace,q)),this._curlyBrace=O;return}if(O.type===N.template||O.type===N.invalidTemplate){this._curlyBrace&&(G.push(this._curlyBrace),this._curlyBrace=null),G.push(O);return}this._curlyBrace&&(_.push(this.translate(this._curlyBrace,q)),this._curlyBrace=null),_.push(this.translate(O,q))}};const c=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function h(){return c.at(-1)}function s(){return[...c]}function f(O=5){let q=O==="latest"?h():O;if(typeof q!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof O} instead.`);if(q>=2015&&(q-=2009),!c.includes(q))throw new Error("Invalid ecmaVersion.");return q}function g(O="script"){if(O==="script"||O==="module")return O;if(O==="commonjs")return"script";throw new Error("Invalid sourceType.")}function d(O){const q=f(O.ecmaVersion),N=g(O.sourceType),_=O.range===!0,G=O.loc===!0;if(q!==3&&O.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof O.allowReserved<"u"&&typeof O.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");const B=q===3?O.allowReserved||"never":!1,z=O.ecmaFeatures||{},H=O.sourceType==="commonjs"||!!z.globalReturn;if(N==="module"&&q<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},O,{ecmaVersion:q,sourceType:N,ranges:_,locations:G,allowReserved:B,allowReturnOutsideFunction:H})}const E=Symbol("espree's internal state"),S=Symbol("espree's esprimaFinishNode");function x(O,q,N,_,G,B,z){let H;O?H="Block":z.slice(N,N+2)==="#!"?H="Hashbang":H="Line";const ce={type:H,value:q};return typeof N=="number"&&(ce.start=N,ce.end=_,ce.range=[N,_]),typeof G=="object"&&(ce.loc={start:G,end:B}),ce}var T=()=>O=>{const q=Object.assign({},O.acorn.tokTypes);return O.acornJsx&&Object.assign(q,O.acornJsx.tokTypes),class extends O{constructor(_,G){(typeof _!="object"||_===null)&&(_={}),typeof G!="string"&&!(G instanceof String)&&(G=String(G));const B=_.sourceType,z=d(_),H=z.ecmaFeatures||{},ce=z.tokens===!0?new i(q,G):null,re={originalSourceType:B||z.sourceType,tokens:ce?[]:null,comments:z.comment===!0?[]:null,impliedStrict:H.impliedStrict===!0&&z.ecmaVersion>=5,ecmaVersion:z.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:z.ecmaVersion,sourceType:z.sourceType,ranges:z.ranges,locations:z.locations,allowReserved:z.allowReserved,allowReturnOutsideFunction:z.allowReturnOutsideFunction,onToken(Fe){ce&&ce.onToken(Fe,re),Fe.type!==q.eof&&(re.lastToken=Fe)},onComment(Fe,X,I,W,oe,ie){if(re.comments){const se=x(Fe,X,I,W,oe,ie,G);re.comments.push(se)}}},G),this[E]=re}tokenize(){do this.next();while(this.type!==q.eof);this.next();const _=this[E],G=_.tokens;return _.comments&&(G.comments=_.comments),G}finishNode(..._){const G=super.finishNode(..._);return this[S](G)}finishNodeAt(..._){const G=super.finishNodeAt(..._);return this[S](G)}parse(){const _=this[E],G=super.parse();if(G.sourceType=_.originalSourceType,_.comments&&(G.comments=_.comments),_.tokens&&(G.tokens=_.tokens),G.body.length){const[B]=G.body;G.range&&(G.range[0]=B.range[0]),G.loc&&(G.loc.start=B.loc.start),G.start=B.start}return _.lastToken&&(G.range&&(G.range[1]=_.lastToken.range[1]),G.loc&&(G.loc.end=_.lastToken.loc.end),G.end=_.lastToken.end),this[E].templateElements.forEach(B=>{const H=B.tail?1:2;B.start+=-1,B.end+=H,B.range&&(B.range[0]+=-1,B.range[1]+=H),B.loc&&(B.loc.start.column+=-1,B.loc.end.column+=H)}),G}parseTopLevel(_){return this[E].impliedStrict&&(this.strict=!0),super.parseTopLevel(_)}raise(_,G){const B=O.acorn.getLineInfo(this.input,_),z=new SyntaxError(G);throw z.index=_,z.lineNumber=B.line,z.column=B.column+1,z}raiseRecoverable(_,G){this.raise(_,G)}unexpected(_){let G="Unexpected token";if(_!=null){if(this.pos=_,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
|
|
12
|
-
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(G+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,G)}jsx_readString(_){const G=super.jsx_readString(_);return this.type===q.string&&(this[E].jsxAttrValueToken=!0),G}[S](_){return _.type==="TemplateElement"&&this[E].templateElements.push(_),_.type.includes("Function")&&!_.generator&&(_.generator=!1),_}}};const C="10.4.0",v={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=l.Parser.extend(T())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=l.Parser.extend(p.default(),T())),this._jsx},get(O){return!!(O&&O.ecmaFeatures&&O.ecmaFeatures.jsx)?this.jsx:this.regular}};function A(O,q){const N=v.get(q);return(!q||q.tokens!==!0)&&(q=Object.assign({},q,{tokens:!0})),new N(q,O).tokenize()}function b(O,q){const N=v.get(q);return new N(q,O).parse()}const w=C,k="espree",R=function(){return u.KEYS}(),F=function(){let O,q={};typeof Object.create=="function"&&(q=Object.create(null));for(O in R)Object.hasOwn(R,O)&&(q[O]=O);return typeof Object.freeze=="function"&&Object.freeze(q),q}(),L=h(),P=s();return er.Syntax=F,er.VisitorKeys=R,er.latestEcmaVersion=L,er.name=k,er.parse=b,er.supportedEcmaVersions=P,er.tokenize=A,er.version=w,er}var zr={exports:{}};zr.exports;var Kp;function ex(){return Kp||(Kp=1,function(a,e){var n=200,o="__lodash_hash_undefined__",t=800,l=16,p=9007199254740991,u="[object Arguments]",r="[object Array]",m="[object AsyncFunction]",i="[object Boolean]",c="[object Date]",h="[object Error]",s="[object Function]",f="[object GeneratorFunction]",g="[object Map]",d="[object Number]",E="[object Null]",S="[object Object]",x="[object Proxy]",T="[object RegExp]",C="[object Set]",v="[object String]",A="[object Undefined]",b="[object WeakMap]",w="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",q="[object Uint8Array]",N="[object Uint8ClampedArray]",_="[object Uint16Array]",G="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ce={};ce[R]=ce[F]=ce[L]=ce[P]=ce[O]=ce[q]=ce[N]=ce[_]=ce[G]=!0,ce[u]=ce[r]=ce[w]=ce[i]=ce[k]=ce[c]=ce[h]=ce[s]=ce[g]=ce[d]=ce[S]=ce[T]=ce[C]=ce[v]=ce[b]=!1;var re=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,Fe=typeof self=="object"&&self&&self.Object===Object&&self,X=re||Fe||Function("return this")(),I=e&&!e.nodeType&&e,W=I&&!0&&a&&!a.nodeType&&a,oe=W&&W.exports===I,ie=oe&&re.process,se=function(){try{var Ae=W&&W.require&&W.require("util").types;return Ae||ie&&ie.binding&&ie.binding("util")}catch{}}(),de=se&&se.isTypedArray;function be(Ae,Me,He){switch(He.length){case 0:return Ae.call(Me);case 1:return Ae.call(Me,He[0]);case 2:return Ae.call(Me,He[0],He[1]);case 3:return Ae.call(Me,He[0],He[1],He[2])}return Ae.apply(Me,He)}function xe(Ae,Me){for(var He=-1,ft=Array(Ae);++He<Ae;)ft[He]=Me(He);return ft}function Te(Ae){return function(Me){return Ae(Me)}}function J(Ae,Me){return Ae?.[Me]}function Q(Ae,Me){return function(He){return Ae(Me(He))}}var ke=Array.prototype,$=Function.prototype,ae=Object.prototype,Ie=X["__core-js_shared__"],Ne=$.toString,Be=ae.hasOwnProperty,j=function(){var Ae=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return Ae?"Symbol(src)_1."+Ae:""}(),Qe=ae.toString,ut=Ne.call(Object),rt=RegExp("^"+Ne.call(Be).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=oe?X.Buffer:void 0,Xe=X.Symbol,ht=X.Uint8Array;ze&&ze.allocUnsafe;var dt=Q(Object.getPrototypeOf,Object),at=Object.create,tt=ae.propertyIsEnumerable,we=ke.splice,Ee=Xe?Xe.toStringTag:void 0,Se=function(){try{var Ae=jt(Object,"defineProperty");return Ae({},"",{}),Ae}catch{}}(),ve=ze?ze.isBuffer:void 0,Pe=Math.max,ee=Date.now,te=jt(X,"Map"),Z=jt(Object,"create"),fe=function(){function Ae(){}return function(Me){if(!K(Me))return{};if(at)return at(Me);Ae.prototype=Me;var He=new Ae;return Ae.prototype=void 0,He}}();function De(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function Le(){this.__data__=Z?Z(null):{},this.size=0}function me(Ae){var Me=this.has(Ae)&&delete this.__data__[Ae];return this.size-=Me?1:0,Me}function V(Ae){var Me=this.__data__;if(Z){var He=Me[Ae];return He===o?void 0:He}return Be.call(Me,Ae)?Me[Ae]:void 0}function ne(Ae){var Me=this.__data__;return Z?Me[Ae]!==void 0:Be.call(Me,Ae)}function ue(Ae,Me){var He=this.__data__;return this.size+=this.has(Ae)?0:1,He[Ae]=Z&&Me===void 0?o:Me,this}De.prototype.clear=Le,De.prototype.delete=me,De.prototype.get=V,De.prototype.has=ne,De.prototype.set=ue;function Ce(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function qe(){this.__data__=[],this.size=0}function _e(Ae){var Me=this.__data__,He=xt(Me,Ae);if(He<0)return!1;var ft=Me.length-1;return He==ft?Me.pop():we.call(Me,He,1),--this.size,!0}function Ke(Ae){var Me=this.__data__,He=xt(Me,Ae);return He<0?void 0:Me[He][1]}function Je(Ae){return xt(this.__data__,Ae)>-1}function pe(Ae,Me){var He=this.__data__,ft=xt(He,Ae);return ft<0?(++this.size,He.push([Ae,Me])):He[ft][1]=Me,this}Ce.prototype.clear=qe,Ce.prototype.delete=_e,Ce.prototype.get=Ke,Ce.prototype.has=Je,Ce.prototype.set=pe;function le(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function ye(){this.size=0,this.__data__={hash:new De,map:new(te||Ce),string:new De}}function Re(Ae){var Me=Wt(this,Ae).delete(Ae);return this.size-=Me?1:0,Me}function Oe(Ae){return Wt(this,Ae).get(Ae)}function it(Ae){return Wt(this,Ae).has(Ae)}function Ge(Ae,Me){var He=Wt(this,Ae),ft=He.size;return He.set(Ae,Me),this.size+=He.size==ft?0:1,this}le.prototype.clear=ye,le.prototype.delete=Re,le.prototype.get=Oe,le.prototype.has=it,le.prototype.set=Ge;function Ze(Ae){var Me=this.__data__=new Ce(Ae);this.size=Me.size}function lt(){this.__data__=new Ce,this.size=0}function Ye(Ae){var Me=this.__data__,He=Me.delete(Ae);return this.size=Me.size,He}function st(Ae){return this.__data__.get(Ae)}function mt(Ae){return this.__data__.has(Ae)}function yt(Ae,Me){var He=this.__data__;if(He instanceof Ce){var ft=He.__data__;if(!te||ft.length<n-1)return ft.push([Ae,Me]),this.size=++He.size,this;He=this.__data__=new le(ft)}return He.set(Ae,Me),this.size=He.size,this}Ze.prototype.clear=lt,Ze.prototype.delete=Ye,Ze.prototype.get=st,Ze.prototype.has=mt,Ze.prototype.set=yt;function pt(Ae,Me){var He=Y(Ae),ft=!He&&M(Ae),St=!He&&!ft&&y(Ae),Tt=!He&&!ft&&!St&&$e(Ae),kt=He||ft||St||Tt,wt=kt?xe(Ae.length,String):[],Dt=wt.length;for(var nr in Ae)kt&&(nr=="length"||St&&(nr=="offset"||nr=="parent")||Tt&&(nr=="buffer"||nr=="byteLength"||nr=="byteOffset")||jr(nr,Dt))||wt.push(nr);return wt}function vt(Ae,Me,He){(He!==void 0&&!We(Ae[Me],He)||He===void 0&&!(Me in Ae))&&Rt(Ae,Me,He)}function Ct(Ae,Me,He){var ft=Ae[Me];(!(Be.call(Ae,Me)&&We(ft,He))||He===void 0&&!(Me in Ae))&&Rt(Ae,Me,He)}function xt(Ae,Me){for(var He=Ae.length;He--;)if(We(Ae[He][0],Me))return He;return-1}function Rt(Ae,Me,He){Me=="__proto__"&&Se?Se(Ae,Me,{configurable:!0,enumerable:!0,value:He,writable:!0}):Ae[Me]=He}var _t=Zt();function Bt(Ae){return Ae==null?Ae===void 0?A:E:Ee&&Ee in Object(Ae)?Nr(Ae):Ur(Ae)}function Ht(Ae){return ge(Ae)&&Bt(Ae)==u}function Gt(Ae){if(!K(Ae)||on(Ae))return!1;var Me=D(Ae)?rt:z;return Me.test(qr(Ae))}function Ot(Ae){return ge(Ae)&&U(Ae.length)&&!!ce[Bt(Ae)]}function $t(Ae){if(!K(Ae))return gr(Ae);var Me=dr(Ae),He=[];for(var ft in Ae)ft=="constructor"&&(Me||!Be.call(Ae,ft))||He.push(ft);return He}function ct(Ae,Me,He,ft,St){Ae!==Me&&_t(Me,function(Tt,kt){if(St||(St=new Ze),K(Tt))Mt(Ae,Me,kt,He,ct,ft,St);else{var wt=ft?ft(pr(Ae,kt),Tt,kt+"",Ae,Me,St):void 0;wt===void 0&&(wt=Tt),vt(Ae,kt,wt)}},ot)}function Mt(Ae,Me,He,ft,St,Tt,kt){var wt=pr(Ae,He),Dt=pr(Me,He),nr=kt.get(Dt);if(nr){vt(Ae,He,nr);return}var Kt=Tt?Tt(wt,Dt,He+"",Ae,Me,kt):void 0,un=Kt===void 0;if(un){var xp=Y(Dt),Cp=!xp&&y(Dt),g0=!xp&&!Cp&&$e(Dt);Kt=Dt,xp||Cp||g0?Y(wt)?Kt=wt:je(wt)?Kt=rr(wt):Cp?(un=!1,Kt=Sr(Dt)):g0?(un=!1,Kt=cr(Dt)):Kt=[]:Ve(Dt)||M(Dt)?(Kt=wt,M(wt)?Kt=nt(wt):(!K(wt)||D(wt))&&(Kt=Mr(Dt))):un=!1}un&&(kt.set(Dt,Kt),St(Kt,Dt,ft,Tt,kt),kt.delete(Dt)),vt(Ae,He,Kt)}function Lt(Ae,Me){return bt(Rr(Ae,Me,At),Ae+"")}var Er=Se?function(Ae,Me){return Se(Ae,"toString",{configurable:!0,enumerable:!1,value:Et(Me),writable:!0})}:At;function Sr(Ae,Me){return Ae.slice()}function Qt(Ae){var Me=new Ae.constructor(Ae.byteLength);return new ht(Me).set(new ht(Ae)),Me}function cr(Ae,Me){var He=Qt(Ae.buffer);return new Ae.constructor(He,Ae.byteOffset,Ae.length)}function rr(Ae,Me){var He=-1,ft=Ae.length;for(Me||(Me=Array(ft));++He<ft;)Me[He]=Ae[He];return Me}function fr(Ae,Me,He,ft){var St=!He;He||(He={});for(var Tt=-1,kt=Me.length;++Tt<kt;){var wt=Me[Tt],Dt=void 0;Dt===void 0&&(Dt=Ae[wt]),St?Rt(He,wt,Dt):Ct(He,wt,Dt)}return He}function br(Ae){return Lt(function(Me,He){var ft=-1,St=He.length,Tt=St>1?He[St-1]:void 0,kt=St>2?He[2]:void 0;for(Tt=Ae.length>3&&typeof Tt=="function"?(St--,Tt):void 0,kt&&Fr(He[0],He[1],kt)&&(Tt=St<3?void 0:Tt,St=1),Me=Object(Me);++ft<St;){var wt=He[ft];wt&&Ae(Me,wt,ft,Tt)}return Me})}function Zt(Ae){return function(Me,He,ft){for(var St=-1,Tt=Object(Me),kt=ft(Me),wt=kt.length;wt--;){var Dt=kt[++St];if(He(Tt[Dt],Dt,Tt)===!1)break}return Me}}function Wt(Ae,Me){var He=Ae.__data__;return an(Me)?He[typeof Me=="string"?"string":"hash"]:He.map}function jt(Ae,Me){var He=J(Ae,Me);return Gt(He)?He:void 0}function Nr(Ae){var Me=Be.call(Ae,Ee),He=Ae[Ee];try{Ae[Ee]=void 0;var ft=!0}catch{}var St=Qe.call(Ae);return ft&&(Me?Ae[Ee]=He:delete Ae[Ee]),St}function Mr(Ae){return typeof Ae.constructor=="function"&&!dr(Ae)?fe(dt(Ae)):{}}function jr(Ae,Me){var He=typeof Ae;return Me=Me??p,!!Me&&(He=="number"||He!="symbol"&&H.test(Ae))&&Ae>-1&&Ae%1==0&&Ae<Me}function Fr(Ae,Me,He){if(!K(He))return!1;var ft=typeof Me;return(ft=="number"?he(He)&&jr(Me,He.length):ft=="string"&&Me in He)?We(He[Me],Ae):!1}function an(Ae){var Me=typeof Ae;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?Ae!=="__proto__":Ae===null}function on(Ae){return!!j&&j in Ae}function dr(Ae){var Me=Ae&&Ae.constructor,He=typeof Me=="function"&&Me.prototype||ae;return Ae===He}function gr(Ae){var Me=[];if(Ae!=null)for(var He in Object(Ae))Me.push(He);return Me}function Ur(Ae){return Qe.call(Ae)}function Rr(Ae,Me,He){return Me=Pe(Me===void 0?Ae.length-1:Me,0),function(){for(var ft=arguments,St=-1,Tt=Pe(ft.length-Me,0),kt=Array(Tt);++St<Tt;)kt[St]=ft[Me+St];St=-1;for(var wt=Array(Me+1);++St<Me;)wt[St]=ft[St];return wt[Me]=He(kt),be(Ae,this,wt)}}function pr(Ae,Me){if(!(Me==="constructor"&&typeof Ae[Me]=="function")&&Me!="__proto__")return Ae[Me]}var bt=ln(Er);function ln(Ae){var Me=0,He=0;return function(){var ft=ee(),St=l-(ft-He);if(He=ft,St>0){if(++Me>=t)return arguments[0]}else Me=0;return Ae.apply(void 0,arguments)}}function qr(Ae){if(Ae!=null){try{return Ne.call(Ae)}catch{}try{return Ae+""}catch{}}return""}function We(Ae,Me){return Ae===Me||Ae!==Ae&&Me!==Me}var M=Ht(function(){return arguments}())?Ht:function(Ae){return ge(Ae)&&Be.call(Ae,"callee")&&!tt.call(Ae,"callee")},Y=Array.isArray;function he(Ae){return Ae!=null&&U(Ae.length)&&!D(Ae)}function je(Ae){return ge(Ae)&&he(Ae)}var y=ve||Ut;function D(Ae){if(!K(Ae))return!1;var Me=Bt(Ae);return Me==s||Me==f||Me==m||Me==x}function U(Ae){return typeof Ae=="number"&&Ae>-1&&Ae%1==0&&Ae<=p}function K(Ae){var Me=typeof Ae;return Ae!=null&&(Me=="object"||Me=="function")}function ge(Ae){return Ae!=null&&typeof Ae=="object"}function Ve(Ae){if(!ge(Ae)||Bt(Ae)!=S)return!1;var Me=dt(Ae);if(Me===null)return!0;var He=Be.call(Me,"constructor")&&Me.constructor;return typeof He=="function"&&He instanceof He&&Ne.call(He)==ut}var $e=de?Te(de):Ot;function nt(Ae){return fr(Ae,ot(Ae))}function ot(Ae){return he(Ae)?pt(Ae):$t(Ae)}var gt=br(function(Ae,Me,He){ct(Ae,Me,He)});function Et(Ae){return function(){return Ae}}function At(Ae){return Ae}function Ut(){return!1}a.exports=gt}(zr,zr.exports)),zr.exports}var tx="9.33.0",rx={version:tx},dn={},sr=[],Yt=[],nx=typeof Uint8Array<"u"?Uint8Array:Array,Gn=!1;function Xp(){Gn=!0;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=a.length;e<n;++e)sr[e]=a[e],Yt[a.charCodeAt(e)]=e;Yt[45]=62,Yt[95]=63}function sx(a){Gn||Xp();var e,n,o,t,l,p,u=a.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=a[u-2]==="="?2:a[u-1]==="="?1:0,p=new nx(u*3/4-l),o=l>0?u-4:u;var r=0;for(e=0,n=0;e<o;e+=4,n+=3)t=Yt[a.charCodeAt(e)]<<18|Yt[a.charCodeAt(e+1)]<<12|Yt[a.charCodeAt(e+2)]<<6|Yt[a.charCodeAt(e+3)],p[r++]=t>>16&255,p[r++]=t>>8&255,p[r++]=t&255;return l===2?(t=Yt[a.charCodeAt(e)]<<2|Yt[a.charCodeAt(e+1)]>>4,p[r++]=t&255):l===1&&(t=Yt[a.charCodeAt(e)]<<10|Yt[a.charCodeAt(e+1)]<<4|Yt[a.charCodeAt(e+2)]>>2,p[r++]=t>>8&255,p[r++]=t&255),p}function ax(a){return sr[a>>18&63]+sr[a>>12&63]+sr[a>>6&63]+sr[a&63]}function ix(a,e,n){for(var o,t=[],l=e;l<n;l+=3)o=(a[l]<<16)+(a[l+1]<<8)+a[l+2],t.push(ax(o));return t.join("")}function Jp(a){Gn||Xp();for(var e,n=a.length,o=n%3,t="",l=[],p=16383,u=0,r=n-o;u<r;u+=p)l.push(ix(a,u,u+p>r?r:u+p));return o===1?(e=a[n-1],t+=sr[e>>2],t+=sr[e<<4&63],t+="=="):o===2&&(e=(a[n-2]<<8)+a[n-1],t+=sr[e>>10],t+=sr[e>>4&63],t+=sr[e<<2&63],t+="="),l.push(t),l.join("")}function gn(a,e,n,o,t){var l,p,u=t*8-o-1,r=(1<<u)-1,m=r>>1,i=-7,c=n?t-1:0,h=n?-1:1,s=a[e+c];for(c+=h,l=s&(1<<-i)-1,s>>=-i,i+=u;i>0;l=l*256+a[e+c],c+=h,i-=8);for(p=l&(1<<-i)-1,l>>=-i,i+=o;i>0;p=p*256+a[e+c],c+=h,i-=8);if(l===0)l=1-m;else{if(l===r)return p?NaN:(s?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-m}return(s?-1:1)*p*Math.pow(2,l-o)}function Yp(a,e,n,o,t,l){var p,u,r,m=l*8-t-1,i=(1<<m)-1,c=i>>1,h=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=o?0:l-1,f=o?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,p=i):(p=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-p))<1&&(p--,r*=2),p+c>=1?e+=h/r:e+=h*Math.pow(2,1-c),e*r>=2&&(p++,r/=2),p+c>=i?(u=0,p=i):p+c>=1?(u=(e*r-1)*Math.pow(2,t),p=p+c):(u=e*Math.pow(2,c-1)*Math.pow(2,t),p=0));t>=8;a[n+s]=u&255,s+=f,u/=256,t-=8);for(p=p<<t|u,m+=t;m>0;a[n+s]=p&255,s+=f,p/=256,m-=8);a[n+s-f]|=g*128}var ox={}.toString,Qp=Array.isArray||function(a){return ox.call(a)=="[object Array]"};/*!
|
|
12
|
+
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(G+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,G)}jsx_readString(_){const G=super.jsx_readString(_);return this.type===q.string&&(this[E].jsxAttrValueToken=!0),G}[S](_){return _.type==="TemplateElement"&&this[E].templateElements.push(_),_.type.includes("Function")&&!_.generator&&(_.generator=!1),_}}};const C="10.4.0",v={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=l.Parser.extend(T())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=l.Parser.extend(p.default(),T())),this._jsx},get(O){return!!(O&&O.ecmaFeatures&&O.ecmaFeatures.jsx)?this.jsx:this.regular}};function A(O,q){const N=v.get(q);return(!q||q.tokens!==!0)&&(q=Object.assign({},q,{tokens:!0})),new N(q,O).tokenize()}function b(O,q){const N=v.get(q);return new N(q,O).parse()}const w=C,k="espree",R=function(){return u.KEYS}(),F=function(){let O,q={};typeof Object.create=="function"&&(q=Object.create(null));for(O in R)Object.hasOwn(R,O)&&(q[O]=O);return typeof Object.freeze=="function"&&Object.freeze(q),q}(),L=h(),P=s();return er.Syntax=F,er.VisitorKeys=R,er.latestEcmaVersion=L,er.name=k,er.parse=b,er.supportedEcmaVersions=P,er.tokenize=A,er.version=w,er}var zr={exports:{}};zr.exports;var Kp;function ex(){return Kp||(Kp=1,function(a,e){var n=200,o="__lodash_hash_undefined__",t=800,l=16,p=9007199254740991,u="[object Arguments]",r="[object Array]",m="[object AsyncFunction]",i="[object Boolean]",c="[object Date]",h="[object Error]",s="[object Function]",f="[object GeneratorFunction]",g="[object Map]",d="[object Number]",E="[object Null]",S="[object Object]",x="[object Proxy]",T="[object RegExp]",C="[object Set]",v="[object String]",A="[object Undefined]",b="[object WeakMap]",w="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",q="[object Uint8Array]",N="[object Uint8ClampedArray]",_="[object Uint16Array]",G="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ce={};ce[R]=ce[F]=ce[L]=ce[P]=ce[O]=ce[q]=ce[N]=ce[_]=ce[G]=!0,ce[u]=ce[r]=ce[w]=ce[i]=ce[k]=ce[c]=ce[h]=ce[s]=ce[g]=ce[d]=ce[S]=ce[T]=ce[C]=ce[v]=ce[b]=!1;var re=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,Fe=typeof self=="object"&&self&&self.Object===Object&&self,X=re||Fe||Function("return this")(),I=e&&!e.nodeType&&e,W=I&&!0&&a&&!a.nodeType&&a,oe=W&&W.exports===I,ie=oe&&re.process,se=function(){try{var Ae=W&&W.require&&W.require("util").types;return Ae||ie&&ie.binding&&ie.binding("util")}catch{}}(),de=se&&se.isTypedArray;function be(Ae,Me,He){switch(He.length){case 0:return Ae.call(Me);case 1:return Ae.call(Me,He[0]);case 2:return Ae.call(Me,He[0],He[1]);case 3:return Ae.call(Me,He[0],He[1],He[2])}return Ae.apply(Me,He)}function xe(Ae,Me){for(var He=-1,ft=Array(Ae);++He<Ae;)ft[He]=Me(He);return ft}function Te(Ae){return function(Me){return Ae(Me)}}function J(Ae,Me){return Ae?.[Me]}function Q(Ae,Me){return function(He){return Ae(Me(He))}}var ke=Array.prototype,$=Function.prototype,ae=Object.prototype,Ie=X["__core-js_shared__"],Ne=$.toString,Be=ae.hasOwnProperty,j=function(){var Ae=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||"");return Ae?"Symbol(src)_1."+Ae:""}(),Qe=ae.toString,ut=Ne.call(Object),rt=RegExp("^"+Ne.call(Be).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=oe?X.Buffer:void 0,Xe=X.Symbol,ht=X.Uint8Array;ze&&ze.allocUnsafe;var dt=Q(Object.getPrototypeOf,Object),at=Object.create,tt=ae.propertyIsEnumerable,we=ke.splice,Ee=Xe?Xe.toStringTag:void 0,Se=function(){try{var Ae=jt(Object,"defineProperty");return Ae({},"",{}),Ae}catch{}}(),ve=ze?ze.isBuffer:void 0,Pe=Math.max,ee=Date.now,te=jt(X,"Map"),Z=jt(Object,"create"),fe=function(){function Ae(){}return function(Me){if(!K(Me))return{};if(at)return at(Me);Ae.prototype=Me;var He=new Ae;return Ae.prototype=void 0,He}}();function De(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function Le(){this.__data__=Z?Z(null):{},this.size=0}function me(Ae){var Me=this.has(Ae)&&delete this.__data__[Ae];return this.size-=Me?1:0,Me}function V(Ae){var Me=this.__data__;if(Z){var He=Me[Ae];return He===o?void 0:He}return Be.call(Me,Ae)?Me[Ae]:void 0}function ne(Ae){var Me=this.__data__;return Z?Me[Ae]!==void 0:Be.call(Me,Ae)}function ue(Ae,Me){var He=this.__data__;return this.size+=this.has(Ae)?0:1,He[Ae]=Z&&Me===void 0?o:Me,this}De.prototype.clear=Le,De.prototype.delete=me,De.prototype.get=V,De.prototype.has=ne,De.prototype.set=ue;function Ce(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function qe(){this.__data__=[],this.size=0}function _e(Ae){var Me=this.__data__,He=xt(Me,Ae);if(He<0)return!1;var ft=Me.length-1;return He==ft?Me.pop():we.call(Me,He,1),--this.size,!0}function Ke(Ae){var Me=this.__data__,He=xt(Me,Ae);return He<0?void 0:Me[He][1]}function Je(Ae){return xt(this.__data__,Ae)>-1}function pe(Ae,Me){var He=this.__data__,ft=xt(He,Ae);return ft<0?(++this.size,He.push([Ae,Me])):He[ft][1]=Me,this}Ce.prototype.clear=qe,Ce.prototype.delete=_e,Ce.prototype.get=Ke,Ce.prototype.has=Je,Ce.prototype.set=pe;function le(Ae){var Me=-1,He=Ae==null?0:Ae.length;for(this.clear();++Me<He;){var ft=Ae[Me];this.set(ft[0],ft[1])}}function ye(){this.size=0,this.__data__={hash:new De,map:new(te||Ce),string:new De}}function Re(Ae){var Me=Wt(this,Ae).delete(Ae);return this.size-=Me?1:0,Me}function Oe(Ae){return Wt(this,Ae).get(Ae)}function it(Ae){return Wt(this,Ae).has(Ae)}function Ge(Ae,Me){var He=Wt(this,Ae),ft=He.size;return He.set(Ae,Me),this.size+=He.size==ft?0:1,this}le.prototype.clear=ye,le.prototype.delete=Re,le.prototype.get=Oe,le.prototype.has=it,le.prototype.set=Ge;function Ze(Ae){var Me=this.__data__=new Ce(Ae);this.size=Me.size}function lt(){this.__data__=new Ce,this.size=0}function Ye(Ae){var Me=this.__data__,He=Me.delete(Ae);return this.size=Me.size,He}function st(Ae){return this.__data__.get(Ae)}function mt(Ae){return this.__data__.has(Ae)}function yt(Ae,Me){var He=this.__data__;if(He instanceof Ce){var ft=He.__data__;if(!te||ft.length<n-1)return ft.push([Ae,Me]),this.size=++He.size,this;He=this.__data__=new le(ft)}return He.set(Ae,Me),this.size=He.size,this}Ze.prototype.clear=lt,Ze.prototype.delete=Ye,Ze.prototype.get=st,Ze.prototype.has=mt,Ze.prototype.set=yt;function pt(Ae,Me){var He=Y(Ae),ft=!He&&M(Ae),St=!He&&!ft&&y(Ae),Tt=!He&&!ft&&!St&&$e(Ae),kt=He||ft||St||Tt,wt=kt?xe(Ae.length,String):[],Dt=wt.length;for(var nr in Ae)kt&&(nr=="length"||St&&(nr=="offset"||nr=="parent")||Tt&&(nr=="buffer"||nr=="byteLength"||nr=="byteOffset")||jr(nr,Dt))||wt.push(nr);return wt}function vt(Ae,Me,He){(He!==void 0&&!We(Ae[Me],He)||He===void 0&&!(Me in Ae))&&Rt(Ae,Me,He)}function Ct(Ae,Me,He){var ft=Ae[Me];(!(Be.call(Ae,Me)&&We(ft,He))||He===void 0&&!(Me in Ae))&&Rt(Ae,Me,He)}function xt(Ae,Me){for(var He=Ae.length;He--;)if(We(Ae[He][0],Me))return He;return-1}function Rt(Ae,Me,He){Me=="__proto__"&&Se?Se(Ae,Me,{configurable:!0,enumerable:!0,value:He,writable:!0}):Ae[Me]=He}var _t=Zt();function Bt(Ae){return Ae==null?Ae===void 0?A:E:Ee&&Ee in Object(Ae)?Nr(Ae):Ur(Ae)}function Ht(Ae){return ge(Ae)&&Bt(Ae)==u}function Gt(Ae){if(!K(Ae)||on(Ae))return!1;var Me=D(Ae)?rt:z;return Me.test(qr(Ae))}function Ot(Ae){return ge(Ae)&&U(Ae.length)&&!!ce[Bt(Ae)]}function $t(Ae){if(!K(Ae))return gr(Ae);var Me=dr(Ae),He=[];for(var ft in Ae)ft=="constructor"&&(Me||!Be.call(Ae,ft))||He.push(ft);return He}function ct(Ae,Me,He,ft,St){Ae!==Me&&_t(Me,function(Tt,kt){if(St||(St=new Ze),K(Tt))Mt(Ae,Me,kt,He,ct,ft,St);else{var wt=ft?ft(pr(Ae,kt),Tt,kt+"",Ae,Me,St):void 0;wt===void 0&&(wt=Tt),vt(Ae,kt,wt)}},ot)}function Mt(Ae,Me,He,ft,St,Tt,kt){var wt=pr(Ae,He),Dt=pr(Me,He),nr=kt.get(Dt);if(nr){vt(Ae,He,nr);return}var Kt=Tt?Tt(wt,Dt,He+"",Ae,Me,kt):void 0,un=Kt===void 0;if(un){var xp=Y(Dt),Cp=!xp&&y(Dt),g0=!xp&&!Cp&&$e(Dt);Kt=Dt,xp||Cp||g0?Y(wt)?Kt=wt:je(wt)?Kt=rr(wt):Cp?(un=!1,Kt=Sr(Dt)):g0?(un=!1,Kt=cr(Dt)):Kt=[]:Ve(Dt)||M(Dt)?(Kt=wt,M(wt)?Kt=nt(wt):(!K(wt)||D(wt))&&(Kt=Mr(Dt))):un=!1}un&&(kt.set(Dt,Kt),St(Kt,Dt,ft,Tt,kt),kt.delete(Dt)),vt(Ae,He,Kt)}function Lt(Ae,Me){return bt(Rr(Ae,Me,At),Ae+"")}var Er=Se?function(Ae,Me){return Se(Ae,"toString",{configurable:!0,enumerable:!1,value:Et(Me),writable:!0})}:At;function Sr(Ae,Me){return Ae.slice()}function Qt(Ae){var Me=new Ae.constructor(Ae.byteLength);return new ht(Me).set(new ht(Ae)),Me}function cr(Ae,Me){var He=Qt(Ae.buffer);return new Ae.constructor(He,Ae.byteOffset,Ae.length)}function rr(Ae,Me){var He=-1,ft=Ae.length;for(Me||(Me=Array(ft));++He<ft;)Me[He]=Ae[He];return Me}function fr(Ae,Me,He,ft){var St=!He;He||(He={});for(var Tt=-1,kt=Me.length;++Tt<kt;){var wt=Me[Tt],Dt=void 0;Dt===void 0&&(Dt=Ae[wt]),St?Rt(He,wt,Dt):Ct(He,wt,Dt)}return He}function br(Ae){return Lt(function(Me,He){var ft=-1,St=He.length,Tt=St>1?He[St-1]:void 0,kt=St>2?He[2]:void 0;for(Tt=Ae.length>3&&typeof Tt=="function"?(St--,Tt):void 0,kt&&Fr(He[0],He[1],kt)&&(Tt=St<3?void 0:Tt,St=1),Me=Object(Me);++ft<St;){var wt=He[ft];wt&&Ae(Me,wt,ft,Tt)}return Me})}function Zt(Ae){return function(Me,He,ft){for(var St=-1,Tt=Object(Me),kt=ft(Me),wt=kt.length;wt--;){var Dt=kt[++St];if(He(Tt[Dt],Dt,Tt)===!1)break}return Me}}function Wt(Ae,Me){var He=Ae.__data__;return an(Me)?He[typeof Me=="string"?"string":"hash"]:He.map}function jt(Ae,Me){var He=J(Ae,Me);return Gt(He)?He:void 0}function Nr(Ae){var Me=Be.call(Ae,Ee),He=Ae[Ee];try{Ae[Ee]=void 0;var ft=!0}catch{}var St=Qe.call(Ae);return ft&&(Me?Ae[Ee]=He:delete Ae[Ee]),St}function Mr(Ae){return typeof Ae.constructor=="function"&&!dr(Ae)?fe(dt(Ae)):{}}function jr(Ae,Me){var He=typeof Ae;return Me=Me??p,!!Me&&(He=="number"||He!="symbol"&&H.test(Ae))&&Ae>-1&&Ae%1==0&&Ae<Me}function Fr(Ae,Me,He){if(!K(He))return!1;var ft=typeof Me;return(ft=="number"?he(He)&&jr(Me,He.length):ft=="string"&&Me in He)?We(He[Me],Ae):!1}function an(Ae){var Me=typeof Ae;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?Ae!=="__proto__":Ae===null}function on(Ae){return!!j&&j in Ae}function dr(Ae){var Me=Ae&&Ae.constructor,He=typeof Me=="function"&&Me.prototype||ae;return Ae===He}function gr(Ae){var Me=[];if(Ae!=null)for(var He in Object(Ae))Me.push(He);return Me}function Ur(Ae){return Qe.call(Ae)}function Rr(Ae,Me,He){return Me=Pe(Me===void 0?Ae.length-1:Me,0),function(){for(var ft=arguments,St=-1,Tt=Pe(ft.length-Me,0),kt=Array(Tt);++St<Tt;)kt[St]=ft[Me+St];St=-1;for(var wt=Array(Me+1);++St<Me;)wt[St]=ft[St];return wt[Me]=He(kt),be(Ae,this,wt)}}function pr(Ae,Me){if(!(Me==="constructor"&&typeof Ae[Me]=="function")&&Me!="__proto__")return Ae[Me]}var bt=ln(Er);function ln(Ae){var Me=0,He=0;return function(){var ft=ee(),St=l-(ft-He);if(He=ft,St>0){if(++Me>=t)return arguments[0]}else Me=0;return Ae.apply(void 0,arguments)}}function qr(Ae){if(Ae!=null){try{return Ne.call(Ae)}catch{}try{return Ae+""}catch{}}return""}function We(Ae,Me){return Ae===Me||Ae!==Ae&&Me!==Me}var M=Ht(function(){return arguments}())?Ht:function(Ae){return ge(Ae)&&Be.call(Ae,"callee")&&!tt.call(Ae,"callee")},Y=Array.isArray;function he(Ae){return Ae!=null&&U(Ae.length)&&!D(Ae)}function je(Ae){return ge(Ae)&&he(Ae)}var y=ve||Ut;function D(Ae){if(!K(Ae))return!1;var Me=Bt(Ae);return Me==s||Me==f||Me==m||Me==x}function U(Ae){return typeof Ae=="number"&&Ae>-1&&Ae%1==0&&Ae<=p}function K(Ae){var Me=typeof Ae;return Ae!=null&&(Me=="object"||Me=="function")}function ge(Ae){return Ae!=null&&typeof Ae=="object"}function Ve(Ae){if(!ge(Ae)||Bt(Ae)!=S)return!1;var Me=dt(Ae);if(Me===null)return!0;var He=Be.call(Me,"constructor")&&Me.constructor;return typeof He=="function"&&He instanceof He&&Ne.call(He)==ut}var $e=de?Te(de):Ot;function nt(Ae){return fr(Ae,ot(Ae))}function ot(Ae){return he(Ae)?pt(Ae):$t(Ae)}var gt=br(function(Ae,Me,He){ct(Ae,Me,He)});function Et(Ae){return function(){return Ae}}function At(Ae){return Ae}function Ut(){return!1}a.exports=gt}(zr,zr.exports)),zr.exports}var tx="9.34.0",rx={version:tx},dn={},sr=[],Yt=[],nx=typeof Uint8Array<"u"?Uint8Array:Array,Gn=!1;function Xp(){Gn=!0;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=a.length;e<n;++e)sr[e]=a[e],Yt[a.charCodeAt(e)]=e;Yt[45]=62,Yt[95]=63}function sx(a){Gn||Xp();var e,n,o,t,l,p,u=a.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=a[u-2]==="="?2:a[u-1]==="="?1:0,p=new nx(u*3/4-l),o=l>0?u-4:u;var r=0;for(e=0,n=0;e<o;e+=4,n+=3)t=Yt[a.charCodeAt(e)]<<18|Yt[a.charCodeAt(e+1)]<<12|Yt[a.charCodeAt(e+2)]<<6|Yt[a.charCodeAt(e+3)],p[r++]=t>>16&255,p[r++]=t>>8&255,p[r++]=t&255;return l===2?(t=Yt[a.charCodeAt(e)]<<2|Yt[a.charCodeAt(e+1)]>>4,p[r++]=t&255):l===1&&(t=Yt[a.charCodeAt(e)]<<10|Yt[a.charCodeAt(e+1)]<<4|Yt[a.charCodeAt(e+2)]>>2,p[r++]=t>>8&255,p[r++]=t&255),p}function ax(a){return sr[a>>18&63]+sr[a>>12&63]+sr[a>>6&63]+sr[a&63]}function ix(a,e,n){for(var o,t=[],l=e;l<n;l+=3)o=(a[l]<<16)+(a[l+1]<<8)+a[l+2],t.push(ax(o));return t.join("")}function Jp(a){Gn||Xp();for(var e,n=a.length,o=n%3,t="",l=[],p=16383,u=0,r=n-o;u<r;u+=p)l.push(ix(a,u,u+p>r?r:u+p));return o===1?(e=a[n-1],t+=sr[e>>2],t+=sr[e<<4&63],t+="=="):o===2&&(e=(a[n-2]<<8)+a[n-1],t+=sr[e>>10],t+=sr[e>>4&63],t+=sr[e<<2&63],t+="="),l.push(t),l.join("")}function gn(a,e,n,o,t){var l,p,u=t*8-o-1,r=(1<<u)-1,m=r>>1,i=-7,c=n?t-1:0,h=n?-1:1,s=a[e+c];for(c+=h,l=s&(1<<-i)-1,s>>=-i,i+=u;i>0;l=l*256+a[e+c],c+=h,i-=8);for(p=l&(1<<-i)-1,l>>=-i,i+=o;i>0;p=p*256+a[e+c],c+=h,i-=8);if(l===0)l=1-m;else{if(l===r)return p?NaN:(s?-1:1)*(1/0);p=p+Math.pow(2,o),l=l-m}return(s?-1:1)*p*Math.pow(2,l-o)}function Yp(a,e,n,o,t,l){var p,u,r,m=l*8-t-1,i=(1<<m)-1,c=i>>1,h=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=o?0:l-1,f=o?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,p=i):(p=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-p))<1&&(p--,r*=2),p+c>=1?e+=h/r:e+=h*Math.pow(2,1-c),e*r>=2&&(p++,r/=2),p+c>=i?(u=0,p=i):p+c>=1?(u=(e*r-1)*Math.pow(2,t),p=p+c):(u=e*Math.pow(2,c-1)*Math.pow(2,t),p=0));t>=8;a[n+s]=u&255,s+=f,u/=256,t-=8);for(p=p<<t|u,m+=t;m>0;a[n+s]=p&255,s+=f,p/=256,m-=8);a[n+s-f]|=g*128}var ox={}.toString,Qp=Array.isArray||function(a){return ox.call(a)=="[object Array]"};/*!
|
|
13
13
|
* The buffer module from node.js, for the browser.
|
|
14
14
|
*
|
|
15
15
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
@@ -47,7 +47,7 @@ ${m.id}->final`,u=null}),o.thrownSegments.forEach(m=>{u===m.id?r+="->thrown":r+=
|
|
|
47
47
|
${m.id}->thrown`,u=null}),`${r};`}},xa}var Ca,Jh;function wa(){if(Jh)return Ca;Jh=1;const a=Xh();function e(o){return o.reachable}class n{constructor(t,l,p){this.id=t,this.nextSegments=[],this.prevSegments=l.filter(e),this.allNextSegments=[],this.allPrevSegments=l,this.reachable=p,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),a.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(t){return this.internal.loopedPrevSegments.includes(t)}static newRoot(t){return new n(t,[],!0)}static newNext(t,l){return new n(t,n.flattenUnusedSegments(l),l.some(e))}static newUnreachable(t,l){const p=new n(t,n.flattenUnusedSegments(l),!1);return n.markUsed(p),p}static newDisconnected(t,l){return new n(t,[],l.some(e))}static markUsed(t){if(t.internal.used)return;t.internal.used=!0;let l;if(t.reachable)for(l=0;l<t.allPrevSegments.length;++l){const p=t.allPrevSegments[l];p.allNextSegments.push(t),p.nextSegments.push(t)}else for(l=0;l<t.allPrevSegments.length;++l)t.allPrevSegments[l].allNextSegments.push(t)}static markPrevSegmentAsLooped(t,l){t.internal.loopedPrevSegments.push(l)}static flattenUnusedSegments(t){const l=new Set;for(let p=0;p<t.length;++p){const u=t[p];if(!l.has(u))if(u.internal.used)l.add(u);else for(let r=0;r<u.allPrevSegments.length;++r){const m=u.allPrevSegments[r];l.has(m)||l.add(m)}}return[...l]}}return Ca=n,Ca}var Aa,Yh;function O1(){if(Yh)return Aa;Yh=1;const a=Pn(),e=wa();function n(p){return p.reachable}function o(p,u,r,m){const i=p.segmentsList,c=u>=0?u:i.length+u,h=r>=0?r:i.length+r,s=[];for(let f=0;f<p.count;++f){const g=[];for(let d=c;d<=h;++d)g.push(i[d][f]);s.push(m(p.idGenerator.next(),g))}return s}function t(p,u){let r=u;for(;r.length>p.count;){const m=[];for(let i=0,c=Math.floor(r.length/2);i<c;++i)m.push(e.newNext(p.idGenerator.next(),[r[i],r[i+c]]));r=m}return r}class l{constructor(u,r,m){this.idGenerator=u,this.upper=r,this.count=m,this.segmentsList=[]}get head(){const u=this.segmentsList;return u.length===0?[]:u.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){const u=this.head;return u.length>0&&u.some(n)}makeNext(u,r){return o(this,u,r,e.newNext)}makeUnreachable(u,r){return o(this,u,r,e.newUnreachable)}makeDisconnected(u,r){return o(this,u,r,e.newDisconnected)}add(u){a(u.length>=this.count,`${u.length} >= ${this.count}`),this.segmentsList.push(t(this,u))}replaceHead(u){a(u.length>=this.count,`${u.length} >= ${this.count}`),this.segmentsList.splice(-1,1,t(this,u))}addAll(u){a(u.count===this.count),this.segmentsList.push(...u.segmentsList)}clear(){this.segmentsList=[]}static newRoot(u){const r=new l(u,null,1);return r.add([e.newRoot(u.next())]),r}static newEmpty(u,r){return new l(u.idGenerator,u,(r?2:1)*u.count)}}return Aa=l,Aa}var Ta,Qh;function N1(){if(Qh)return Ta;Qh=1;const a=wa(),e=O1();class n{constructor(b,w,k,R){this.upper=b,this.breakable=w,this.label=k,this.brokenForkContext=e.newEmpty(R)}}class o{constructor(b){this.upper=b,this.choiceContextCount=0}}class t{constructor(b,w,k,R){this.upper=b,this.kind=w,this.isForkingAsResult=k,this.trueForkContext=e.newEmpty(R),this.falseForkContext=e.newEmpty(R),this.nullishForkContext=e.newEmpty(R),this.processed=!1}}class l{constructor(b,w,k,R){this.upper=b,this.type=w,this.label=k,this.brokenForkContext=R.brokenForkContext}}class p extends l{constructor(b,w,k){super(b,"WhileStatement",w,k),this.test=void 0,this.continueDestSegments=null}}class u extends l{constructor(b,w,k,R){super(b,"DoWhileStatement",w,k),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(R)}}class r extends l{constructor(b,w,k){super(b,"ForStatement",w,k),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class m extends l{constructor(b,w,k){super(b,"ForInStatement",w,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class i extends l{constructor(b,w,k){super(b,"ForOfStatement",w,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c{constructor(b,w){this.upper=b,this.hasCase=w,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(b,w,k){this.upper=b,this.hasFinalizer=w,this.position="try",this.returnedForkContext=w?e.newEmpty(k):null,this.thrownForkContext=e.newEmpty(k),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function s(A,b,w,k){for(let R=0;R<k.length;++R){const F=k[R];A.push(F),b.includes(F)||w.push(F)}}function f(A,b){if(!b)return A.loopContext;let w=A.loopContext;for(;w;){if(w.label===b)return w;w=w.upper}return null}function g(A,b){let w=A.breakContext;for(;w;){if(b?w.label===b:w.breakable)return w;w=w.upper}return null}function d(A){let b=A.tryContext;for(;b;){if(b.hasFinalizer&&b.position!=="finally")return b;b=b.upper}return A}function E(A){let b=A.tryContext;for(;b;){if(b.position==="try"||b.hasFinalizer&&b.position==="catch")return b;b=b.upper}return A}function S(A,b){A.splice(A.indexOf(b),1)}function x(A,b){for(let w=0;w<A.length;++w){const k=A[w],R=b[w];S(k.nextSegments,R),S(k.allNextSegments,R),S(R.prevSegments,k),S(R.allPrevSegments,k)}}function T(A,b,w){const k=a.flattenUnusedSegments(b),R=a.flattenUnusedSegments(w),F=Math.min(k.length,R.length);for(let L=0;L<F;++L){const P=k[L],O=R[L];O.reachable&&P.nextSegments.push(O),P.reachable&&O.prevSegments.push(P),P.allNextSegments.push(O),O.allPrevSegments.push(P),O.allPrevSegments.length>=2&&a.markPrevSegmentAsLooped(O,P),A.notifyLooped(P,O)}}function C(A,b,w){b.processed||(b.trueForkContext.add(w),b.falseForkContext.add(w),b.nullishForkContext.add(w)),A.test!==!0&&A.brokenForkContext.addAll(b.falseForkContext),A.endOfTestSegments=b.trueForkContext.makeNext(0,-1)}class v{constructor(b,w){this.idGenerator=b,this.notifyLooped=w,this.forkContext=e.newRoot(b),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];const k=this.finalSegments,R=this.returnedForkContext,F=this.thrownForkContext;R.add=s.bind(null,R,F,k),F.add=s.bind(null,F,R,k)}get headSegments(){return this.forkContext.head}get parentForkContext(){const b=this.forkContext;return b&&b.upper}pushForkContext(b){return this.forkContext=e.newEmpty(this.forkContext,b),this.forkContext}popForkContext(){const b=this.forkContext;return this.forkContext=b.upper,this.forkContext.replaceHead(b.makeNext(0,-1)),b}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(b,w){this.choiceContext=new t(this.choiceContext,b,w,this.forkContext)}popChoiceContext(){const b=this.choiceContext,w=this.forkContext,k=w.head;switch(this.choiceContext=b.upper,b.kind){case"&&":case"||":case"??":if(b.processed||(b.trueForkContext.add(k),b.falseForkContext.add(k),b.nullishForkContext.add(k)),b.isForkingAsResult){const F=this.choiceContext;return F.trueForkContext.addAll(b.trueForkContext),F.falseForkContext.addAll(b.falseForkContext),F.nullishForkContext.addAll(b.nullishForkContext),F.processed=!0,b}break;case"test":b.processed?(b.falseForkContext.clear(),b.falseForkContext.add(k)):(b.trueForkContext.clear(),b.trueForkContext.add(k));break;case"loop":return b;default:throw new Error("unreachable")}const R=b.trueForkContext;return R.addAll(b.falseForkContext),w.replaceHead(R.makeNext(0,-1)),b}makeLogicalRight(){const b=this.choiceContext,w=this.forkContext;if(b.processed){let k;switch(b.kind){case"&&":k=b.trueForkContext;break;case"||":k=b.falseForkContext;break;case"??":k=b.nullishForkContext;break;default:throw new Error("unreachable")}w.replaceHead(k.makeNext(0,-1)),k.clear(),b.processed=!1}else{switch(b.kind){case"&&":b.falseForkContext.add(w.head),b.nullishForkContext.add(w.head);break;case"||":b.trueForkContext.add(w.head);break;case"??":b.trueForkContext.add(w.head),b.falseForkContext.add(w.head);break;default:throw new Error("unreachable")}w.replaceHead(w.makeNext(-1,-1))}}makeIfConsequent(){const b=this.choiceContext,w=this.forkContext;b.processed||(b.trueForkContext.add(w.head),b.falseForkContext.add(w.head),b.nullishForkContext.add(w.head)),b.processed=!1,w.replaceHead(b.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const b=this.choiceContext,w=this.forkContext;b.trueForkContext.clear(),b.trueForkContext.add(w.head),b.processed=!0,w.replaceHead(b.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new o(this.chainContext)}popChainContext(){const b=this.chainContext;this.chainContext=b.upper;for(let w=b.choiceContextCount;w>0;--w)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(b,w){this.switchContext=new c(this.switchContext,b),this.pushBreakContext(!0,w)}popSwitchContext(){const b=this.switchContext;this.switchContext=b.upper;const w=this.forkContext,k=this.popBreakContext().brokenForkContext;if(b.forkCount===0){k.empty||(k.add(w.makeNext(-1,-1)),w.replaceHead(k.makeNext(0,-1)));return}const R=w.head;this.forkBypassPath();const F=w.head;k.add(R),b.lastIsDefault||(b.defaultBodySegments?(x(b.defaultSegments,b.defaultBodySegments),T(this,F,b.defaultBodySegments)):k.add(F));for(let L=0;L<b.forkCount;++L)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(k.makeNext(0,-1))}makeSwitchCaseBody(b,w){const k=this.switchContext;if(!k.hasCase)return;const R=this.forkContext,F=this.pushForkContext();F.add(R.makeNext(0,-1)),w?(k.defaultSegments=R.head,b?k.foundEmptyDefault=!0:k.defaultBodySegments=F.head):!b&&k.foundEmptyDefault&&(k.foundEmptyDefault=!1,k.defaultBodySegments=F.head),k.lastIsDefault=w,k.forkCount+=1}pushTryContext(b){this.tryContext=new h(this.tryContext,b,this.forkContext)}popTryContext(){const b=this.tryContext;if(this.tryContext=b.upper,b.position==="catch"){this.popForkContext();return}const w=b.returnedForkContext,k=b.thrownForkContext;if(w.empty&&k.empty)return;const R=this.forkContext.head;this.forkContext=this.forkContext.upper;const F=R.slice(0,R.length/2|0),L=R.slice(R.length/2|0);w.empty||d(this).returnedForkContext.add(L),k.empty||E(this).thrownForkContext.add(L),this.forkContext.replaceHead(F),!b.lastOfTryIsReachable&&!b.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){const b=this.tryContext,w=this.forkContext,k=b.thrownForkContext;b.position="catch",b.thrownForkContext=e.newEmpty(w),b.lastOfTryIsReachable=w.reachable,k.add(w.head);const R=k.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(R)}makeFinallyBlock(){const b=this.tryContext;let w=this.forkContext;const k=b.returnedForkContext,R=b.thrownForkContext,F=w.head;if(b.position==="catch"?(this.popForkContext(),w=this.forkContext,b.lastOfCatchIsReachable=w.reachable):b.lastOfTryIsReachable=w.reachable,b.position="finally",k.empty&&R.empty)return;const L=w.makeNext(-1,-1);for(let P=0;P<w.count;++P){const O=[F[P]];for(let q=0;q<k.segmentsList.length;++q)O.push(k.segmentsList[q][P]);for(let q=0;q<R.segmentsList.length;++q)O.push(R.segmentsList[q][P]);L.push(a.newNext(this.idGenerator.next(),O))}this.pushForkContext(!0),this.forkContext.add(L)}makeFirstThrowablePathInTryBlock(){const b=this.forkContext;if(!b.reachable)return;const w=E(this);w===this||w.position!=="try"||!w.thrownForkContext.empty||(w.thrownForkContext.add(b.head),b.replaceHead(b.makeNext(-1,-1)))}pushLoopContext(b,w){const k=this.forkContext,R=this.pushBreakContext(!0,w);switch(b){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new p(this.loopContext,w,R);break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new u(this.loopContext,w,R,k);break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext=new r(this.loopContext,w,R);break;case"ForInStatement":this.loopContext=new m(this.loopContext,w,R);break;case"ForOfStatement":this.loopContext=new i(this.loopContext,w,R);break;default:throw new Error(`unknown type: "${b}"`)}}popLoopContext(){const b=this.loopContext;this.loopContext=b.upper;const w=this.forkContext,k=this.popBreakContext().brokenForkContext;switch(b.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),T(this,w.head,b.continueDestSegments);break;case"DoWhileStatement":{const R=this.popChoiceContext();R.processed||(R.trueForkContext.add(w.head),R.falseForkContext.add(w.head)),b.test!==!0&&k.addAll(R.falseForkContext);const F=R.trueForkContext.segmentsList;for(let L=0;L<F.length;++L)T(this,F[L],b.entrySegments);break}case"ForInStatement":case"ForOfStatement":k.add(w.head),T(this,w.head,b.leftSegments);break;default:throw new Error("unreachable")}k.empty?w.replaceHead(w.makeUnreachable(-1,-1)):w.replaceHead(k.makeNext(0,-1))}makeWhileTest(b){const w=this.loopContext,k=this.forkContext,R=k.makeNext(0,-1);w.test=b,w.continueDestSegments=R,k.replaceHead(R)}makeWhileBody(){const b=this.loopContext,w=this.choiceContext,k=this.forkContext;w.processed||(w.trueForkContext.add(k.head),w.falseForkContext.add(k.head)),b.test!==!0&&b.brokenForkContext.addAll(w.falseForkContext),k.replaceHead(w.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){const b=this.loopContext,w=this.forkContext,k=w.makeNext(-1,-1);b.entrySegments=k,w.replaceHead(k)}makeDoWhileTest(b){const w=this.loopContext,k=this.forkContext;if(w.test=b,!w.continueForkContext.empty){w.continueForkContext.add(k.head);const R=w.continueForkContext.makeNext(0,-1);k.replaceHead(R)}}makeForTest(b){const w=this.loopContext,k=this.forkContext,R=k.head,F=k.makeNext(-1,-1);w.test=b,w.endOfInitSegments=R,w.continueDestSegments=w.testSegments=F,k.replaceHead(F)}makeForUpdate(){const b=this.loopContext,w=this.choiceContext,k=this.forkContext;b.testSegments?C(b,w,k.head):b.endOfInitSegments=k.head;const R=k.makeDisconnected(-1,-1);b.continueDestSegments=b.updateSegments=R,k.replaceHead(R)}makeForBody(){const b=this.loopContext,w=this.choiceContext,k=this.forkContext;b.updateSegments?(b.endOfUpdateSegments=k.head,b.testSegments&&T(this,b.endOfUpdateSegments,b.testSegments)):b.testSegments?C(b,w,k.head):b.endOfInitSegments=k.head;let R=b.endOfTestSegments;if(!R){const F=e.newEmpty(k);F.add(b.endOfInitSegments),b.endOfUpdateSegments&&F.add(b.endOfUpdateSegments),R=F.makeNext(0,-1)}b.continueDestSegments=b.continueDestSegments||R,k.replaceHead(R)}makeForInOfLeft(){const b=this.loopContext,w=this.forkContext,k=w.makeDisconnected(-1,-1);b.prevSegments=w.head,b.leftSegments=b.continueDestSegments=k,w.replaceHead(k)}makeForInOfRight(){const b=this.loopContext,w=this.forkContext,k=e.newEmpty(w);k.add(b.prevSegments);const R=k.makeNext(-1,-1);b.endOfLeftSegments=w.head,w.replaceHead(R)}makeForInOfBody(){const b=this.loopContext,w=this.forkContext,k=e.newEmpty(w);k.add(b.endOfLeftSegments);const R=k.makeNext(-1,-1);T(this,w.head,b.leftSegments),b.brokenForkContext.add(w.head),w.replaceHead(R)}pushBreakContext(b,w){return this.breakContext=new n(this.breakContext,b,w,this.forkContext),this.breakContext}popBreakContext(){const b=this.breakContext,w=this.forkContext;if(this.breakContext=b.upper,!b.breakable){const k=b.brokenForkContext;k.empty||(k.add(w.head),w.replaceHead(k.makeNext(0,-1)))}return b}makeBreak(b){const w=this.forkContext;if(!w.reachable)return;const k=g(this,b);k&&k.brokenForkContext.add(w.head),w.replaceHead(w.makeUnreachable(-1,-1))}makeContinue(b){const w=this.forkContext;if(!w.reachable)return;const k=f(this,b);k&&(k.continueDestSegments?(T(this,w.head,k.continueDestSegments),(k.type==="ForInStatement"||k.type==="ForOfStatement")&&k.brokenForkContext.add(w.head)):k.continueForkContext.add(w.head)),w.replaceHead(w.makeUnreachable(-1,-1))}makeReturn(){const b=this.forkContext;b.reachable&&(d(this).returnedForkContext.add(b.head),b.replaceHead(b.makeUnreachable(-1,-1)))}makeThrow(){const b=this.forkContext;b.reachable&&(E(this).thrownForkContext.add(b.head),b.replaceHead(b.makeUnreachable(-1,-1)))}makeFinal(){const b=this.currentSegments;b.length>0&&b[0].reachable&&this.returnedForkContext.add(b)}}return Ta=v,Ta}var ka,Zh;function ed(){if(Zh)return ka;Zh=1;class a{constructor(n){this.prefix=String(n),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return ka=a,ka}var Da,td;function M1(){if(td)return Da;td=1;const a=N1(),e=ed();class n{constructor({id:t,origin:l,upper:p,onLooped:u}){this.id=t,this.origin=l,this.upper=p,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new a(new e(`${t}_`),u)}),p&&p.childCodePaths.push(this)}static getState(t){return t.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(t,l){let p,u;typeof t=="function"?(u=t,p={}):(p=t||{},u=l);const r=p.first||this.internal.initialSegment,m=p.last;let i,c,h,s=null;const f=new Set,g=[[r,0]],d=new Set;let E=!1;const S={skip(){d.add(s)},break(){E=!0}};function x(C){return f.has(C)||s.isLoopedPrevSegment(C)}function T(C){return d.has(C)||s.isLoopedPrevSegment(C)}for(;g.length>0;){if(i=g.at(-1),s=i[0],c=i[1],c===0){if(f.has(s)){g.pop();continue}if(s!==r&&s.prevSegments.length>0&&!s.prevSegments.every(x)){g.pop();continue}if(f.add(s),d.size>0&&s.prevSegments.length>0&&s.prevSegments.every(T))d.add(s);else if(u.call(this,s,S),s===m&&S.skip(),E)break}h=s.nextSegments.length-1,c<h?(i[1]+=1,g.push([s.nextSegments[c],0])):c===h?(i[0]=s.nextSegments[c],i[1]=0):g.pop()}}}return Da=n,Da}var Ia,rd;function j1(){if(rd)return Ia;rd=1;const a=Pn(),{breakableTypePattern:e}=Fn(),n=M1(),o=wa(),t=ed(),l=Xh();function p(C){return!!C.test}function u(C){const v=C.parent;return v&&v.type==="PropertyDefinition"&&v.value===C}function r(C){return C==="&&"||C==="||"||C==="??"}function m(C){return C==="&&="||C==="||="||C==="??="}function i(C){return C.parent.type==="LabeledStatement"?C.parent.label.name:null}function c(C){const v=C.parent;switch(v.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return v.test===C;case"LogicalExpression":return r(v.operator);case"AssignmentExpression":return m(v.operator);default:return!1}}function h(C){if(C.type==="Literal")return!!C.value}function s(C){const v=C.parent;switch(v.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return v.id!==C;case"Property":case"PropertyDefinition":case"MethodDefinition":return v.key!==C||v.computed||v.shorthand;case"AssignmentPattern":return v.key!==C;default:return!0}}function f(C,v){const A=C.codePath,b=n.getState(A),w=b.currentSegments,k=b.headSegments,R=Math.max(w.length,k.length);let F,L,P;for(F=0;F<R;++F)if(L=w[F],P=k[F],L!==P&&L){const O=L.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";l.dump(`${O} ${L.id}`),C.emit(O,[L,v])}for(b.currentSegments=k,F=0;F<R;++F)if(L=w[F],P=k[F],L!==P&&P){const O=P.reachable?"onCodePathSegmentStart":"onUnreachableCodePathSegmentStart";l.dump(`${O} ${P.id}`),o.markUsed(P),C.emit(O,[P,v])}}function g(C,v){const A=n.getState(C.codePath),b=A.currentSegments;for(let w=0;w<b.length;++w){const k=b[w],R=k.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";l.dump(`${R} ${k.id}`),C.emit(R,[k,v])}A.currentSegments=[]}function d(C,v){const A=C.codePath,b=n.getState(A),w=v.parent;switch(w.type){case"CallExpression":w.optional===!0&&w.arguments.length>=1&&w.arguments[0]===v&&b.makeOptionalRight();break;case"MemberExpression":w.optional===!0&&w.property===v&&b.makeOptionalRight();break;case"LogicalExpression":w.right===v&&r(w.operator)&&b.makeLogicalRight();break;case"AssignmentExpression":w.right===v&&m(w.operator)&&b.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":w.consequent===v?b.makeIfConsequent():w.alternate===v&&b.makeIfAlternate();break;case"SwitchCase":w.consequent[0]===v&&b.makeSwitchCaseBody(!1,!w.test);break;case"TryStatement":w.handler===v?b.makeCatchBlock():w.finalizer===v&&b.makeFinallyBlock();break;case"WhileStatement":w.test===v?b.makeWhileTest(h(v)):(a(w.body===v),b.makeWhileBody());break;case"DoWhileStatement":w.body===v?b.makeDoWhileBody():(a(w.test===v),b.makeDoWhileTest(h(v)));break;case"ForStatement":w.test===v?b.makeForTest(h(v)):w.update===v?b.makeForUpdate():w.body===v&&b.makeForBody();break;case"ForInStatement":case"ForOfStatement":w.left===v?b.makeForInOfLeft():w.right===v?b.makeForInOfRight():(a(w.body===v),b.makeForInOfBody());break;case"AssignmentPattern":w.right===v&&(b.pushForkContext(),b.forkBypassPath(),b.forkPath());break}}function E(C,v){let A=C.codePath,b=A&&n.getState(A);const w=v.parent;function k(R){A&&(f(C,v),l.dumpState(v,b,!1)),A=C.codePath=new n({id:C.idGenerator.next(),origin:R,upper:A,onLooped:C.onLooped}),b=n.getState(A),l.dump(`onCodePathStart ${A.id}`),C.emit("onCodePathStart",[A,v])}switch(u(v)&&k("class-field-initializer"),v.type){case"Program":k("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":k("function");break;case"StaticBlock":k("class-static-block");break;case"ChainExpression":b.pushChainContext();break;case"CallExpression":v.optional===!0&&b.makeOptionalNode();break;case"MemberExpression":v.optional===!0&&b.makeOptionalNode();break;case"LogicalExpression":r(v.operator)&&b.pushChoiceContext(v.operator,c(v));break;case"AssignmentExpression":m(v.operator)&&b.pushChoiceContext(v.operator.slice(0,-1),c(v));break;case"ConditionalExpression":case"IfStatement":b.pushChoiceContext("test",!1);break;case"SwitchStatement":b.pushSwitchContext(v.cases.some(p),i(v));break;case"TryStatement":b.pushTryContext(!!v.finalizer);break;case"SwitchCase":w.discriminant!==v&&w.cases[0]!==v&&b.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":b.pushLoopContext(v.type,i(v));break;case"LabeledStatement":e.test(v.body.type)||b.pushBreakContext(!1,v.label.name);break}f(C,v),l.dumpState(v,b,!1)}function S(C,v){const A=C.codePath,b=n.getState(A);let w=!1;switch(v.type){case"ChainExpression":b.popChainContext();break;case"IfStatement":case"ConditionalExpression":b.popChoiceContext();break;case"LogicalExpression":r(v.operator)&&b.popChoiceContext();break;case"AssignmentExpression":m(v.operator)&&b.popChoiceContext();break;case"SwitchStatement":b.popSwitchContext();break;case"SwitchCase":v.consequent.length===0&&b.makeSwitchCaseBody(!0,!v.test),b.forkContext.reachable&&(w=!0);break;case"TryStatement":b.popTryContext();break;case"BreakStatement":f(C,v),b.makeBreak(v.label&&v.label.name),w=!0;break;case"ContinueStatement":f(C,v),b.makeContinue(v.label&&v.label.name),w=!0;break;case"ReturnStatement":f(C,v),b.makeReturn(),w=!0;break;case"ThrowStatement":f(C,v),b.makeThrow(),w=!0;break;case"Identifier":s(v)&&(b.makeFirstThrowablePathInTryBlock(),w=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":b.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":b.popLoopContext();break;case"AssignmentPattern":b.popForkContext();break;case"LabeledStatement":e.test(v.body.type)||b.popBreakContext();break}w||f(C,v),l.dumpState(v,b,!0)}function x(C,v){function A(){let b=C.codePath;n.getState(b).makeFinal(),g(C,v),l.dump(`onCodePathEnd ${b.id}`),C.emit("onCodePathEnd",[b,v]),l.dumpDot(b),b=C.codePath=C.codePath.upper,b&&l.dumpState(v,n.getState(b),!0)}switch(v.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{A();break}case"CallExpression":v.optional===!0&&v.arguments.length===0&&n.getState(C.codePath).makeOptionalRight();break}u(v)&&A()}class T{constructor(v){this.original=v,this.emit=v.emit,this.codePath=null,this.idGenerator=new t("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(v){this.currentNode=v,v.parent&&d(this,v),E(this,v),this.original.enterNode(v),this.currentNode=null}leaveNode(v){this.currentNode=v,S(this,v),this.original.leaveNode(v),x(this,v),this.currentNode=null}onLooped(v,A){v.reachable&&A.reachable&&(l.dump(`onCodePathSegmentLoop ${v.id} -> ${A.id}`),this.emit("onCodePathSegmentLoop",[v,A,this.currentNode]))}}return Ia=T,Ia}var Dr={},Pa={exports:{}},Fa={exports:{}},Ra,nd;function U1(){if(nd)return Ra;nd=1;var a,e,n,o,t,l,p={}.toString;a=u(function(r,m){return r.apply(null,m)}),e=function(r){return u(r)},n=u(function(r,m,i){return r(i,m)}),o=function(r){return function(m){return function(){return r(m(m)).apply(null,arguments)}}(function(m){return function(){return r(m(m)).apply(null,arguments)}})},t=u(function(r,m,i,c){return r(m(i),m(c))}),l=function(r){var m;return m={},function(){var i,c,h,s,f,g;for(c=[],h=0,s=arguments.length;h<s;++h)c.push(arguments[h]);return i=c,f=function(){var d,E,S,x=[];for(d=0,S=(E=i).length;d<S;++d)g=E[d],x.push(g+p.call(g).slice(8,-1));return x}().join(""),m[f]=f in m?m[f]:r.apply(null,i)}},Ra={curry:e,flip:n,fix:o,apply:a,over:t,memoize:l};function u(r,m){var i,c=function(h){return r.length>1?function(){var s=h?h.concat():[];return i=this,s.push.apply(s,arguments)<r.length&&arguments.length?c.call(i,s):r.apply(i,s)}:r};return c()}return Ra}var _a,sd;function q1(){if(sd)return _a;sd=1;var a,e,n,o,t,l,p,u,r,m,i,c,h,s,f,g,d,E,S,x,T,C,v,A,b,w,k,R,F,L,P,O,q,N,_,G,B,z,H,ce,re,Fe,X,I,W,oe,ie,se,de,be,xe,Te,J,Q,ke,$,ae,Ie,Ne,Be,j,Qe,ut,rt,ze,Xe,ht,dt,at,tt,we={}.toString;a=Ee(function(ee,te){var Z,fe,De;for(Z=0,fe=te.length;Z<fe;++Z)De=te[Z],ee(De);return te}),e=Ee(function(ee,te){var Z,fe,De,Le=[];for(Z=0,fe=te.length;Z<fe;++Z)De=te[Z],Le.push(ee(De));return Le}),n=function(ee){var te,Z,fe,De=[];for(te=0,Z=ee.length;te<Z;++te)fe=ee[te],fe&&De.push(fe);return De},o=Ee(function(ee,te){var Z,fe,De,Le=[];for(Z=0,fe=te.length;Z<fe;++Z)De=te[Z],ee(De)&&Le.push(De);return Le}),t=Ee(function(ee,te){var Z,fe,De,Le=[];for(Z=0,fe=te.length;Z<fe;++Z)De=te[Z],ee(De)||Le.push(De);return Le}),l=Ee(function(ee,te){var Z,fe;return Z=ht(ee,te),fe=te.slice(),Z!=null&&fe.splice(Z,1),fe}),p=Ee(function(ee,te){var Z,fe,De,Le,me;for(Z=[],fe=[],De=0,Le=te.length;De<Le;++De)me=te[De],(ee(me)?Z:fe).push(me);return[Z,fe]}),u=Ee(function(ee,te){var Z,fe,De;for(Z=0,fe=te.length;Z<fe;++Z)if(De=te[Z],ee(De))return De}),r=m=function(ee){return ee[0]},i=function(ee){if(ee.length)return ee.slice(1)},c=function(ee){return ee[ee.length-1]},h=function(ee){if(ee.length)return ee.slice(0,-1)},s=function(ee){return!ee.length},f=function(ee){return ee.concat().reverse()},g=function(ee){var te,Z,fe,De;for(te=[],Z=0,fe=ee.length;Z<fe;++Z)De=ee[Z],Se(De,te)||te.push(De);return te},d=Ee(function(ee,te){var Z,fe,De,Le,me,V=[];for(Z=[],fe=0,De=te.length;fe<De;++fe)Le=te[fe],me=ee(Le),!Se(me,Z)&&(Z.push(me),V.push(Le));return V}),E=S=Ee(function(ee,te,Z){var fe,De,Le;for(fe=0,De=Z.length;fe<De;++fe)Le=Z[fe],te=ee(te,Le);return te}),x=T=Ee(function(ee,te){return E(ee,te[0],te.slice(1))}),C=Ee(function(ee,te,Z){var fe,De;for(fe=Z.length-1;fe>=0;--fe)De=Z[fe],te=ee(De,te);return te}),v=Ee(function(ee,te){return C(ee,te[te.length-1],te.slice(0,-1))}),A=Ee(function(ee,te){var Z,fe,De;for(Z=[],fe=te;(De=ee(fe))!=null;)Z.push(De[0]),fe=De[1];return Z}),b=function(ee){return[].concat.apply([],ee)},w=Ee(function(ee,te){var Z;return[].concat.apply([],function(){var fe,De,Le,me=[];for(fe=0,Le=(De=te).length;fe<Le;++fe)Z=De[fe],me.push(ee(Z));return me}())}),k=function(ee){var te;return[].concat.apply([],function(){var Z,fe,De,Le=[];for(Z=0,De=(fe=ee).length;Z<De;++Z)te=fe[Z],we.call(te).slice(8,-1)==="Array"?Le.push(k(te)):Le.push(te);return Le}())},R=function(ee){var te,Z,fe,De,Le,me,V,ne,ue,Ce;for(Z=[],fe=1,De=arguments.length;fe<De;++fe)Z.push(arguments[fe]);te=Z,Le=[];e:for(fe=0,me=ee.length;fe<me;++fe){for(V=ee[fe],ne=0,ue=te.length;ne<ue;++ne)if(Ce=te[ne],Se(V,Ce))continue e;Le.push(V)}return Le},F=function(ee){var te,Z,fe,De,Le,me,V,ne,ue,Ce;for(Z=[],fe=1,De=arguments.length;fe<De;++fe)Z.push(arguments[fe]);te=Z,Le=[];e:for(fe=0,me=ee.length;fe<me;++fe){for(V=ee[fe],ne=0,ue=te.length;ne<ue;++ne)if(Ce=te[ne],!Se(V,Ce))continue e;Le.push(V)}return Le},L=function(){var ee,te,Z,fe,De,Le,me,V,ne,ue;for(te=[],Z=0,fe=arguments.length;Z<fe;++Z)te.push(arguments[Z]);for(ee=te,De=[],Z=0,Le=ee.length;Z<Le;++Z)for(me=ee[Z],V=0,ne=me.length;V<ne;++V)ue=me[V],Se(ue,De)||De.push(ue);return De},P=Ee(function(ee,te){var Z,fe,De,Le,me;for(Z={},fe=0,De=te.length;fe<De;++fe)Le=te[fe],me=ee(Le),me in Z?Z[me]+=1:Z[me]=1;return Z}),O=Ee(function(ee,te){var Z,fe,De,Le,me;for(Z={},fe=0,De=te.length;fe<De;++fe)Le=te[fe],me=ee(Le),me in Z?Z[me].push(Le):Z[me]=[Le];return Z}),q=function(ee){var te,Z,fe;for(te=0,Z=ee.length;te<Z;++te)if(fe=ee[te],!fe)return!1;return!0},N=function(ee){var te,Z,fe;for(te=0,Z=ee.length;te<Z;++te)if(fe=ee[te],fe)return!0;return!1},_=Ee(function(ee,te){var Z,fe,De;for(Z=0,fe=te.length;Z<fe;++Z)if(De=te[Z],ee(De))return!0;return!1}),G=Ee(function(ee,te){var Z,fe,De;for(Z=0,fe=te.length;Z<fe;++Z)if(De=te[Z],!ee(De))return!1;return!0}),B=function(ee){return ee.concat().sort(function(te,Z){return te>Z?1:te<Z?-1:0})},z=Ee(function(ee,te){return te.concat().sort(ee)}),H=Ee(function(ee,te){return te.concat().sort(function(Z,fe){return ee(Z)>ee(fe)?1:ee(Z)<ee(fe)?-1:0})}),ce=function(ee){var te,Z,fe,De;for(te=0,Z=0,fe=ee.length;Z<fe;++Z)De=ee[Z],te+=De;return te},re=function(ee){var te,Z,fe,De;for(te=1,Z=0,fe=ee.length;Z<fe;++Z)De=ee[Z],te*=De;return te},Fe=X=function(ee){var te,Z,fe,De;for(te=0,Z=0,fe=ee.length;Z<fe;++Z)De=ee[Z],te+=De;return te/ee.length},I=function(ee){var te,Z,fe,De,Le;for(te=ee[0],Z=0,De=(fe=ee.slice(1)).length;Z<De;++Z)Le=fe[Z],Le>te&&(te=Le);return te},W=function(ee){var te,Z,fe,De,Le;for(te=ee[0],Z=0,De=(fe=ee.slice(1)).length;Z<De;++Z)Le=fe[Z],Le<te&&(te=Le);return te},oe=Ee(function(ee,te){var Z,fe,De,Le,me;for(Z=te[0],fe=0,Le=(De=te.slice(1)).length;fe<Le;++fe)me=De[fe],ee(me)>ee(Z)&&(Z=me);return Z}),ie=Ee(function(ee,te){var Z,fe,De,Le,me;for(Z=te[0],fe=0,Le=(De=te.slice(1)).length;fe<Le;++fe)me=De[fe],ee(me)<ee(Z)&&(Z=me);return Z}),se=de=Ee(function(ee,te,Z){var fe,De;return fe=te,[te].concat(function(){var Le,me,V,ne=[];for(Le=0,V=(me=Z).length;Le<V;++Le)De=me[Le],ne.push(fe=ee(fe,De));return ne}())}),be=xe=Ee(function(ee,te){if(te.length)return se(ee,te[0],te.slice(1))}),Te=Ee(function(ee,te,Z){return Z=Z.concat().reverse(),se(ee,te,Z).reverse()}),J=Ee(function(ee,te){if(te.length)return te=te.concat().reverse(),se(ee,te[0],te.slice(1)).reverse()}),Q=Ee(function(ee,te,Z){return Z.slice(ee,te)}),ke=Ee(function(ee,te){return ee<=0?te.slice(0,0):te.slice(0,ee)}),$=Ee(function(ee,te){return ee<=0?te:te.slice(ee)}),ae=Ee(function(ee,te){return[ke(ee,te),$(ee,te)]}),Ie=Ee(function(ee,te){var Z,fe;if(Z=te.length,!Z)return te;for(fe=0;fe<Z&&ee(te[fe]);)fe+=1;return te.slice(0,fe)}),Ne=Ee(function(ee,te){var Z,fe;if(Z=te.length,!Z)return te;for(fe=0;fe<Z&&ee(te[fe]);)fe+=1;return te.slice(fe)}),Be=Ee(function(ee,te){return[Ie(ee,te),Ne(ee,te)]}),j=Ee(function(ee,te){return Be(ve(ee,Pe),te)}),Qe=Ee(function(ee,te){var Z,fe,De,Le,me,V;for(Z=[],fe=te.length,De=0,Le=ee.length;De<Le&&(me=De,V=ee[De],me!==fe);++De)Z.push([V,te[me]]);return Z}),ut=Ee(function(ee,te,Z){var fe,De,Le,me,V,ne;for(fe=[],De=Z.length,Le=0,me=te.length;Le<me&&(V=Le,ne=te[Le],V!==De);++Le)fe.push(ee(ne,Z[V]));return fe}),rt=function(){var ee,te,Z,fe,De,Le,me,V,ne,ue,Ce,qe=[];for(te=[],Z=0,fe=arguments.length;Z<fe;++Z)te.push(arguments[Z]);for(ee=te,De=void 0,Z=0,Le=ee.length;Z<Le;++Z)me=ee[Z],De<=(V=me.length)||(De=V);for(Z=0;Z<De;++Z){for(ne=Z,ue=[],Ce=0,Le=ee.length;Ce<Le;++Ce)me=ee[Ce],ue.push(me[ne]);qe.push(ue)}return qe},ze=function(ee){var te,Z,fe,De,Le,me,V,ne,ue,Ce=[];for(Z=[],fe=1,De=arguments.length;fe<De;++fe)Z.push(arguments[fe]);for(te=Z,Le=void 0,fe=0,me=te.length;fe<me;++fe)V=te[fe],Le<=(ne=V.length)||(Le=ne);for(fe=0;fe<Le;++fe)ue=fe,Ce.push(ee.apply(null,qe()));return Ce;function qe(){var _e,Ke,Je,pe=[];for(_e=0,Je=(Ke=te).length;_e<Je;++_e)V=Ke[_e],pe.push(V[ue]);return pe}},Xe=Ee(function(ee,te){return ee<0?te[te.length+ee]:te[ee]}),ht=Ee(function(ee,te){var Z,fe,De,Le;for(Z=0,fe=te.length;Z<fe;++Z)if(De=Z,Le=te[Z],Le===ee)return De}),dt=Ee(function(ee,te){var Z,fe,De,Le,me=[];for(Z=0,fe=te.length;Z<fe;++Z)De=Z,Le=te[Z],Le===ee&&me.push(De);return me}),at=Ee(function(ee,te){var Z,fe,De,Le;for(Z=0,fe=te.length;Z<fe;++Z)if(De=Z,Le=te[Z],ee(Le))return De}),tt=Ee(function(ee,te){var Z,fe,De,Le,me=[];for(Z=0,fe=te.length;Z<fe;++Z)De=Z,Le=te[Z],ee(Le)&&me.push(De);return me}),_a={each:a,map:e,filter:o,compact:n,reject:t,remove:l,partition:p,find:u,head:r,first:m,tail:i,last:c,initial:h,empty:s,reverse:f,difference:R,intersection:F,union:L,countBy:P,groupBy:O,fold:E,fold1:x,foldl:S,foldl1:T,foldr:C,foldr1:v,unfoldr:A,andList:q,orList:N,any:_,all:G,unique:g,uniqueBy:d,sort:B,sortWith:z,sortBy:H,sum:ce,product:re,mean:Fe,average:X,concat:b,concatMap:w,flatten:k,maximum:I,minimum:W,maximumBy:oe,minimumBy:ie,scan:se,scan1:be,scanl:de,scanl1:xe,scanr:Te,scanr1:J,slice:Q,take:ke,drop:$,splitAt:ae,takeWhile:Ie,dropWhile:Ne,span:Be,breakList:j,zip:Qe,zipWith:ut,zipAll:rt,zipAllWith:ze,at:Xe,elemIndex:ht,elemIndices:dt,findIndex:at,findIndices:tt};function Ee(ee,te){var Z,fe=function(De){return ee.length>1?function(){var Le=De?De.concat():[];return Z=this,Le.push.apply(Le,arguments)<ee.length&&arguments.length?fe.call(Z,Le):ee.apply(Z,Le)}:ee};return fe()}function Se(ee,te){for(var Z=-1,fe=te.length>>>0;++Z<fe;)if(ee===te[Z])return!0;return!1}function ve(){var ee=arguments;return function(){var te,Z;for(Z=ee[0].apply(this,arguments),te=1;te<ee.length;++te)Z=ee[te](Z);return Z}}function Pe(ee){return!ee}return _a}var Ba,ad;function V1(){if(ad)return Ba;ad=1;var a,e,n,o,t,l,p,u,r,m,i,c,h,s;a=function(g){var d,E,S=[];for(d in g)E=g[d],S.push(E);return S},e=function(g){var d,E=[];for(d in g)E.push(d);return E},n=function(g){var d,E,S,x={};for(d=0,E=g.length;d<E;++d)S=g[d],x[S[0]]=S[1];return x},o=function(g){var d,E,S=[];for(d in g)E=g[d],S.push([d,E]);return S},t=f(function(g,d){var E,S,x,T,C={};for(E=0,S=g.length;E<S;++E)x=E,T=g[E],C[T]=d[x];return C}),l=function(g){var d,E,S,x;d=[],E=[];for(S in g)x=g[S],d.push(S),E.push(x);return[d,E]},p=function(g){var d;for(d in g)return!1;return!0},u=f(function(g,d){var E,S;for(E in d)S=d[E],g(S);return d}),r=f(function(g,d){var E,S,x={};for(E in d)S=d[E],x[E]=g(S);return x}),m=function(g){var d,E,S={};for(d in g)E=g[d],E&&(S[d]=E);return S},i=f(function(g,d){var E,S,x={};for(E in d)S=d[E],g(S)&&(x[E]=S);return x}),c=f(function(g,d){var E,S,x={};for(E in d)S=d[E],g(S)||(x[E]=S);return x}),h=f(function(g,d){var E,S,x,T;E={},S={};for(x in d)T=d[x],(g(T)?E:S)[x]=T;return[E,S]}),s=f(function(g,d){var E,S;for(E in d)if(S=d[E],g(S))return S}),Ba={values:a,keys:e,pairsToObj:n,objToPairs:o,listsToObj:t,objToLists:l,empty:p,each:u,map:r,filter:i,compact:m,reject:c,partition:h,find:s};function f(g,d){var E,S=function(x){return g.length>1?function(){var T=x?x.concat():[];return E=this,T.push.apply(T,arguments)<g.length&&arguments.length?S.call(E,T):g.apply(E,T)}:g};return S()}return Ba}var La,id;function $1(){if(id)return La;id=1;var a,e,n,o,t,l,p,u,r,m,i,c,h;a=s(function(f,g){return g.split(f)}),e=s(function(f,g){return g.join(f)}),n=function(f){return f.length?f.split(`
|
|
48
48
|
`):[]},o=function(f){return f.join(`
|
|
49
49
|
`)},t=function(f){return f.length?f.split(/[ ]+/):[]},l=function(f){return f.join(" ")},p=function(f){return f.split("")},u=function(f){return f.join("")},r=function(f){return f.split("").reverse().join("")},m=s(function(f,g){var d,E;for(d="",E=0;E<f;++E)d+=g;return d}),i=function(f){return f.charAt(0).toUpperCase()+f.slice(1)},c=function(f){return f.replace(/[-_]+(.)?/g,function(g,d){return(d??"").toUpperCase()})},h=function(f){return f.replace(/([^-A-Z])([A-Z]+)/g,function(g,d,E){return d+"-"+(E.length>1?E:E.toLowerCase())}).replace(/^([A-Z]+)/,function(g,d){return d.length>1?d+"-":d.toLowerCase()})},La={split:a,join:e,lines:n,unlines:o,words:t,unwords:l,chars:p,unchars:u,reverse:r,repeat:m,capitalize:i,camelize:c,dasherize:h};function s(f,g){var d,E=function(S){return f.length>1?function(){var x=S?S.concat():[];return d=this,x.push.apply(x,arguments)<f.length&&arguments.length?E.call(d,x):f.apply(d,x)}:f};return E()}return La}var Oa,od;function W1(){if(od)return Oa;od=1;var a,e,n,o,t,l,p,u,r,m,i,c,h,s,f,g,d,E,S,x,T,C,v,A,b,w,k,R,F,L,P,O;a=q(function(N,_){return N>_?N:_}),e=q(function(N,_){return N<_?N:_}),n=function(N){return-N},o=Math.abs,t=function(N){return N<0?-1:N>0?1:0},l=q(function(N,_){return~~(N/_)}),p=q(function(N,_){return N%_}),u=q(function(N,_){return Math.floor(N/_)}),r=q(function(N,_){var G;return(N%(G=_)+G)%G}),m=function(N){return 1/N},i=Math.PI,c=i*2,h=Math.exp,s=Math.sqrt,f=Math.log,g=q(function(N,_){return Math.pow(N,_)}),d=Math.sin,E=Math.tan,S=Math.cos,x=Math.asin,T=Math.acos,C=Math.atan,v=q(function(N,_){return Math.atan2(N,_)}),A=function(N){return~~N},b=Math.round,w=Math.ceil,k=Math.floor,R=function(N){return N!==N},F=function(N){return N%2===0},L=function(N){return N%2!==0},P=q(function(N,_){var G;for(N=Math.abs(N),_=Math.abs(_);_!==0;)G=N%_,N=_,_=G;return N}),O=q(function(N,_){return Math.abs(Math.floor(N/P(N,_)*_))}),Oa={max:a,min:e,negate:n,abs:o,signum:t,quot:l,rem:p,div:u,mod:r,recip:m,pi:i,tau:c,exp:h,sqrt:s,ln:f,pow:g,sin:d,tan:E,cos:S,acos:T,asin:x,atan:C,atan2:v,truncate:A,round:b,ceiling:w,floor:k,isItNaN:R,even:F,odd:L,gcd:P,lcm:O};function q(N,_){var G,B=function(z){return N.length>1?function(){var H=z?z.concat():[];return G=this,H.push.apply(H,arguments)<N.length&&arguments.length?B.call(G,H):N.apply(G,H)}:N};return B()}return Oa}var Na,ld;function ud(){if(ld)return Na;ld=1;var a,e,n,o,t,l,p,u,r,m={}.toString;a=U1(),e=q1(),n=V1(),o=$1(),t=W1(),l=function(c){return c},p=i(function(c,h){return m.call(h).slice(8,-1)===c}),u=i(function(c,h){var s,f=[];for(s=0;s<c;++s)f.push(h);return f}),o.empty=e.empty,o.slice=e.slice,o.take=e.take,o.drop=e.drop,o.splitAt=e.splitAt,o.takeWhile=e.takeWhile,o.dropWhile=e.dropWhile,o.span=e.span,o.breakStr=e.breakList,r={Func:a,List:e,Obj:n,Str:o,Num:t,id:l,isType:p,replicate:u},r.each=e.each,r.map=e.map,r.filter=e.filter,r.compact=e.compact,r.reject=e.reject,r.partition=e.partition,r.find=e.find,r.head=e.head,r.first=e.first,r.tail=e.tail,r.last=e.last,r.initial=e.initial,r.empty=e.empty,r.reverse=e.reverse,r.difference=e.difference,r.intersection=e.intersection,r.union=e.union,r.countBy=e.countBy,r.groupBy=e.groupBy,r.fold=e.fold,r.foldl=e.foldl,r.fold1=e.fold1,r.foldl1=e.foldl1,r.foldr=e.foldr,r.foldr1=e.foldr1,r.unfoldr=e.unfoldr,r.andList=e.andList,r.orList=e.orList,r.any=e.any,r.all=e.all,r.unique=e.unique,r.uniqueBy=e.uniqueBy,r.sort=e.sort,r.sortWith=e.sortWith,r.sortBy=e.sortBy,r.sum=e.sum,r.product=e.product,r.mean=e.mean,r.average=e.average,r.concat=e.concat,r.concatMap=e.concatMap,r.flatten=e.flatten,r.maximum=e.maximum,r.minimum=e.minimum,r.maximumBy=e.maximumBy,r.minimumBy=e.minimumBy,r.scan=e.scan,r.scanl=e.scanl,r.scan1=e.scan1,r.scanl1=e.scanl1,r.scanr=e.scanr,r.scanr1=e.scanr1,r.slice=e.slice,r.take=e.take,r.drop=e.drop,r.splitAt=e.splitAt,r.takeWhile=e.takeWhile,r.dropWhile=e.dropWhile,r.span=e.span,r.breakList=e.breakList,r.zip=e.zip,r.zipWith=e.zipWith,r.zipAll=e.zipAll,r.zipAllWith=e.zipAllWith,r.at=e.at,r.elemIndex=e.elemIndex,r.elemIndices=e.elemIndices,r.findIndex=e.findIndex,r.findIndices=e.findIndices,r.apply=a.apply,r.curry=a.curry,r.flip=a.flip,r.fix=a.fix,r.over=a.over,r.split=o.split,r.join=o.join,r.lines=o.lines,r.unlines=o.unlines,r.words=o.words,r.unwords=o.unwords,r.chars=o.chars,r.unchars=o.unchars,r.repeat=o.repeat,r.capitalize=o.capitalize,r.camelize=o.camelize,r.dasherize=o.dasherize,r.values=n.values,r.keys=n.keys,r.pairsToObj=n.pairsToObj,r.objToPairs=n.objToPairs,r.listsToObj=n.listsToObj,r.objToLists=n.objToLists,r.max=t.max,r.min=t.min,r.negate=t.negate,r.abs=t.abs,r.signum=t.signum,r.quot=t.quot,r.rem=t.rem,r.div=t.div,r.mod=t.mod,r.recip=t.recip,r.pi=t.pi,r.tau=t.tau,r.exp=t.exp,r.sqrt=t.sqrt,r.ln=t.ln,r.pow=t.pow,r.sin=t.sin,r.tan=t.tan,r.cos=t.cos,r.acos=t.acos,r.asin=t.asin,r.atan=t.atan,r.atan2=t.atan2,r.truncate=t.truncate,r.round=t.round,r.ceiling=t.ceiling,r.floor=t.floor,r.isItNaN=t.isItNaN,r.even=t.even,r.odd=t.odd,r.gcd=t.gcd,r.lcm=t.lcm,r.VERSION="1.2.1",Na=r;function i(c,h){var s,f=function(g){return c.length>1?function(){var d=g?g.concat():[];return s=this,d.push.apply(d,arguments)<c.length&&arguments.length?f.call(s,d):c.apply(s,d)}:c};return f()}return Na}var cd;function G1(){return cd||(cd=1,(function(){var a,e,n;a=ud().reject;function o(s,f){if(s[0]===f)return s.shift();throw new Error("Expected '"+f+"', but got '"+s[0]+"' instead in "+JSON.stringify(s)+".")}function t(s,f){if(s[0]===f)return s.shift()}function l(s,f,g){var d,E,S,x;for(d=f[0],E=f[1],g&&o(s,d),S=[],x=","+(g?E:"");s.length&&g&&s[0]!==E;)S.push(i(s,x)),t(s,",");return g&&o(s,E),S}function p(s,f){return l(s,["[","]"],f)}function u(s,f){return l(s,["(",")"],f)}function r(s,f){var g,d,E;for(f&&o(s,"{"),g={},d=","+(f?"}":"");s.length&&(!f||s[0]!=="}");)E=m(s,":"),o(s,":"),g[E]=i(s,d),t(s,",");return f&&o(s,"}"),g}function m(s,f){var g;for(f==null&&(f=""),g="";s.length&&f.indexOf(s[0])===-1;)g+=s.shift();return g}function i(s,f){switch(s[0]){case"[":return p(s,!0);case"(":return u(s,!0);case"{":return r(s,!0);default:return m(s,f)}}function c(s,f,g){var d,E,S,x,T,C,v,A;return d=f[0],E=d.type,S=d.structure,x=s.concat(),!g.explicit&&f.length===1&&(!E&&S||E==="Array"||E==="Object")?(T=S==="array"||E==="Array"?p(s,s[0]==="["):S==="tuple"?u(s,s[0]==="("):r(s,s[0]==="{"),C=s.length?i(S==="array"||E==="Array"?(v=x,v.unshift("["),v.push("]"),v):(A=x,A.unshift("("),A.push(")"),A)):T):C=i(s),C}e=/\[\]\(\)}{:,/.source,n=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+e+"])|([^\\s"+e+"](?:\\s*[^\\s"+e+"]+)*)|\\s*"),Fa.exports=function(s,f,g){var d,E;if(g==null&&(g={}),!g.explicit&&s.length===1&&s[0].type==="String")return f;if(d=a(h,f.split(n)),E=c(d,s,g),!E)throw new Error("Error parsing '"+f+"'.");return E};function h(s){return!s}}).call(this)),Fa.exports}var Ma={exports:{}},ja={exports:{}},Ua={exports:{}},fd;function z1(){return fd||(fd=1,(function(){var a,e;a=/[\$\w]+/;function n(f){var g;if(g=f[0],g==null)throw new Error("Unexpected end of input.");return g}function o(f){var g;if(g=n(f),!a.test(g))throw new Error("Expected text, got '"+g+"' instead.");return f.shift()}function t(f,g){var d;if(d=n(f),d!==g)throw new Error("Expected '"+g+"', got '"+d+"' instead.");return f.shift()}function l(f,g){var d;return d=f[0],d===g?f.shift():null}function p(f){var g;if(t(f,"["),n(f)==="]")throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return g=h(f),t(f,"]"),{structure:"array",of:g}}function u(f){var g;if(g=[],t(f,"("),n(f)===")")throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;g.push(h(f)),l(f,","),n(f)!==")";);return t(f,")"),{structure:"tuple",of:g}}function r(f){var g,d,E,S,x;for(g={},t(f,"{"),d=!1;;){if(l(f,"...")){d=!0;break}if(E=m(f),S=E[0],x=E[1],g[S]=x,l(f,","),n(f)==="}")break}return t(f,"}"),{structure:"fields",of:g,subset:d}}function m(f){var g,d;return g=o(f),t(f,":"),d=h(f),[g,d]}function i(f){switch(f[0]){case"[":return p(f);case"(":return u(f);case"{":return r(f)}}function c(f){var g,d,E,S;if(g=n(f),d=g==="*",d||a.test(g))return E=d?t(f,"*"):o(f),S=i(f),S?(S.type=E,S):{type:E};if(S=i(f),!S)throw new Error("Unexpected character: "+g);return S}function h(f){var g,d,E,S,x,T;if(n(f)==="::")throw new Error("No comment before comment separator '::' found.");for(g=f[1],g!=null&&g==="::"&&(f.shift(),f.shift()),d=[],E={},n(f)==="Maybe"&&(f.shift(),d=[{type:"Undefined"},{type:"Null"}],E={Undefined:!0,Null:!0});S=c(f),x=S.type,T=S.structure,E[x]||d.push(S),T==null&&(E[x]=!0),!!l(f,"|"););return d}e=RegExp("\\.\\.\\.|::|->|"+a.source+"|\\S","g"),Ua.exports=function(f){var g,d;if(!f.length)throw new Error("No type specified.");if(g=f.match(e)||[],s("->",g))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(g)}catch(E){throw d=E,new Error(d.message+" - Remaining tokens: "+JSON.stringify(g)+" - Initial input: '"+f+"'")}};function s(f,g){for(var d=-1,E=g.length>>>0;++d<E;)if(f===g[d])return!0;return!1}}).call(this)),Ua.exports}var qa={exports:{}},pd;function H1(){return pd||(pd=1,(function(){var a,e,n,o,t,l,p={}.toString;a=ud(),e=a.any,n=a.all,o=a.isItNaN,t={Number:{typeOf:"Number",validate:function(s){return!o(s)}},NaN:{typeOf:"Number",validate:o},Int:{typeOf:"Number",validate:function(s){return!o(s)&&s%1===0}},Float:{typeOf:"Number",validate:function(s){return!o(s)}},Date:{typeOf:"Date",validate:function(s){return!o(s.getTime())}}},l={array:"Array",tuple:"Array"};function u(s,f,g){return n(function(d){return h(d,f.of,g)},s)}function r(s,f,g){var d,E,S,x,T;for(d=0,E=0,x=(S=f.of).length;E<x;++E){if(T=S[E],!h(s[d],T,g))return!1;d++}return s.length<=d}function m(s,f,g){var d,E,S,x,T,C,v;d={},E=0;for(S in s)d[S]=!0,E++;x=0;for(T in C=f.of){if(v=C[T],!h(s[T],v,g))return!1;d[T]&&x++}return f.subset||E===x}function i(s,f,g){if(!(s instanceof Object))return!1;switch(f.structure){case"fields":return m(s,f,g);case"array":return u(s,f,g);case"tuple":return r(s,f,g)}}function c(s,f,g){var d,E,S,x;if(d=f.type,E=f.structure,d)return d==="*"?!0:(S=g.customTypes[d]||t[d],S?(S.typeOf===void 0||S.typeOf===p.call(s).slice(8,-1))&&S.validate(s):d===p.call(s).slice(8,-1)&&(!E||i(s,f,g)));if(E)return(x=l[E])&&x!==p.call(s).slice(8,-1)?!1:i(s,f,g);throw new Error("No type defined. Input: "+s+".")}function h(s,f,g){if(p.call(f).slice(8,-1)!=="Array")throw new Error("Types must be in an array. Input: "+s+".");return e(function(d){return c(s,d,g)},f)}qa.exports=function(s,f,g){return g==null&&(g={}),g.customTypes==null&&(g.customTypes={}),h(f,s,g)}}).call(this)),qa.exports}var md;function hd(){return md||(md=1,(function(){var a,e,n,o;a="0.4.0",e=z1(),n=H1(),o=function(t,l,p){return n(e(t),l,p)},ja.exports={VERSION:a,typeCheck:o,parsedTypeCheck:n,parseType:e}}).call(this)),ja.exports}var dd;function K1(){return dd||(dd=1,(function(){var a,e,n={}.toString;a=hd().parsedTypeCheck,e={"*":function(r,m){switch(n.call(r).slice(8,-1)){case"Array":return p(r,{type:"Array"},m);case"Object":return p(r,{type:"Object"},m);default:return{type:"Just",value:u(r,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(m.explicit=!0,m))}}},Undefined:function(r){return r==="undefined"||r===void 0?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(r){return r==="null"?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(r){return r==="NaN"?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(r){return r==="true"?{type:"Just",value:!0}:r==="false"?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(r){return{type:"Just",value:+r}},Int:function(r){return{type:"Just",value:+r}},Float:function(r){return{type:"Just",value:+r}},Date:function(r,m){var i;return(i=/^\#([\s\S]*)\#$/.exec(r))?{type:"Just",value:new Date(+i[1]||i[1])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+r||r)}},RegExp:function(r,m){var i;return(i=/^\/([\s\S]*)\/([gimy]*)$/.exec(r))?{type:"Just",value:new RegExp(i[1],i[2])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(r)}},Array:function(r,m){return o(r,{of:[{type:"*"}]},m)},Object:function(r,m){return l(r,{of:{}},m)},String:function(r){var m,i;return n.call(r).slice(8,-1)!=="String"?{type:"Nothing"}:(m=function(c,h){return c.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(s,f){switch(f[0]){case h:return h;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
50
|
-
`;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+s+'"');default:return f}})},(i=r.match(/^'([\s\S]*)'$/))?{type:"Just",value:m(i[1],"'")}:(i=r.match(/^"([\s\S]*)"$/))?{type:"Just",value:m(i[1],'"')}:{type:"Just",value:r})}};function o(r,m,i){var c,h;return n.call(r).slice(8,-1)!=="Array"?{type:"Nothing"}:(c=m.of,{type:"Just",value:function(){var s,f,g,d=[];for(s=0,g=(f=r).length;s<g;++s)h=f[s],d.push(u(h,c,i));return d}()})}function t(r,m,i){var c,h,s,f,g,d,E;if(n.call(r).slice(8,-1)!=="Array")return{type:"Nothing"};for(c=[],h=0,s=0,g=(f=m.of).length;s<g;++s)d=f[s],E=u(r[h],d,i),n.call(E).slice(8,-1)!=="Undefined"&&c.push(E),h++;return r.length<=h?{type:"Just",value:c}:{type:"Nothing"}}function l(r,m,i){var c,h,s;return n.call(r).slice(8,-1)!=="Object"?{type:"Nothing"}:(c=m.of,{type:"Just",value:function(){var f,g={};for(h in f=r)s=f[h],g[u(h,[{type:"String"}],i)]=u(s,c[h]||[{type:"*"}],i);return g}()})}function p(r,m,i){var c,h,s,f;if(c=m.type,h=m.structure,c){if(s=((f=i.customTypes[c])!=null?f.cast:void 0)||e[c],!s)throw new Error("Type not defined: "+c+".");return s(r,i,u)}else switch(h){case"array":return o(r,m,i);case"tuple":return t(r,m,i);case"fields":return l(r,m,i)}}function u(r,m,i){var c,h,s,f,g,d;for(c=0,h=m.length;c<h;++c)if(s=m[c],f=p(r,s,i),g=f.type,d=f.value,g!=="Nothing"&&a([s],d,{customTypes:i.customTypes}))return d;throw new Error("Value "+JSON.stringify(r)+" does not type check against "+JSON.stringify(m)+".")}Ma.exports=function(r,m,i){return!i.explicit&&m.length===1&&m[0].type==="String"?r:u(r,m,i)}}).call(this)),Ma.exports}var gd;function X1(){return gd||(gd=1,(function(){var a,e,n,o,t,l;a=G1(),e=K1(),n=hd().parseType,o="0.4.1",t=function(p,u,r){return r==null&&(r={}),r.explicit==null&&(r.explicit=!1),r.customTypes==null&&(r.customTypes={}),e(a(p,u,r),p,r)},l=function(p,u,r){return t(n(p),u,r)},Pa.exports={VERSION:o,parse:l,parsedTypeParse:t}}).call(this)),Pa.exports}var yd;function vd(){if(yd)return Dr;yd=1;var a=X1();const e=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function o(g){const d=Array.isArray(g)?g[0]:g;return n.has(d)}function t(g){return Object.values(g).every(o)}class l{label="";value="";justification="";constructor(d,E,S){this.label=d,this.value=E,this.justification=S}}class p{parseStringConfig(d){const E={};return d.trim().replace(new RegExp("(?<!\\s)\\s*([:,])\\s*","gu"),"$1").split(/\s|,+/u).forEach(x=>{if(!x)return;const[T,C=null]=x.split(":");E[T]=C}),E}parseJSONLikeConfig(d){try{const S=a.parse("Object",d)||{};if(t(S))return{ok:!0,config:S}}catch{}const E=d.replace(new RegExp("(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):","gu"),'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{ok:!0,config:JSON.parse(`{${E}}`)}}catch(S){const x=S instanceof Error?S.message:String(S);return{ok:!1,error:{message:`Failed to parse JSON from '${E}': ${x}`}}}}parseListConfig(d){const E={};return d.split(",").forEach(S=>{const x=S.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");x&&(E[x]=!0)}),E}#e(d){const E=/\s-{2,}\s/u.exec(d);if(!E)return{directivePart:d.trim(),justificationPart:""};const S=d.slice(0,E.index).trim(),x=d.slice(E.index+E[0].length).trim();return{directivePart:S,justificationPart:x}}parseDirective(d){const{directivePart:E,justificationPart:S}=this.#e(d),x=e.exec(E);if(!x)return;const T=x[1],C=E.slice(x.index+T.length);return new l(T,C.trim(),S)}}function u(g){return"loc"in g}function r(g){return"position"in g}function m(g){return"range"in g}function i(g){return"position"in g}class c{type="visit";kind=1;target;phase;args;constructor({target:d,phase:E,args:S}){this.target=d,this.phase=E,this.args=S}}class h{type="call";kind=2;target;args;constructor({target:d,args:E}){this.target=d,this.args=E}}class s{type;node;value;justification;constructor({type:d,node:E,value:S,justification:x}){this.type=d,this.node=E,this.value=S,this.justification=x}}class f{#e;ast;text;constructor({text:d,ast:E,lineEndingPattern:S=/\r?\n/u}){this.ast=E,this.text=d,this.#e=d.split(S)}getLoc(d){if(u(d))return d.loc;if(r(d))return d.position;throw new Error("Custom getLoc() method must be implemented in the subclass.")}getRange(d){if(m(d))return d.range;if(i(d))return[d.position.start.offset,d.position.end.offset];throw new Error("Custom getRange() method must be implemented in the subclass.")}getParent(d){throw new Error("Not implemented.")}getAncestors(d){if(!d)throw new TypeError("Missing required argument: node.");const E=[];for(let S=this.getParent(d);S;S=this.getParent(S))E.push(S);return E.reverse()}getText(d,E,S){if(d){const x=this.getRange(d);return this.text.slice(Math.max(x[0]-(E||0),0),x[1]+(S||0))}return this.text}get lines(){return this.#e}traverse(){throw new Error("Not implemented.")}}return Dr.CallMethodStep=h,Dr.ConfigCommentParser=p,Dr.Directive=s,Dr.TextSourceCodeBase=f,Dr.VisitNodeStep=c,Dr}var Va,Ed;function J1(){if(Ed)return Va;Ed=1;const{isCommentToken:a}=qt(),e=L1(),n=Fn(),o=ra(),t=Gh(),{directivesPattern:l}=Hh(),p=j1(),{ConfigCommentParser:u,VisitNodeStep:r,CallMethodStep:m,Directive:i}=vd(),c=qn(),h=new u;function s(w){if(!w)throw new TypeError(`Unexpected empty AST. (${w})`);if(!w.tokens)throw new TypeError("AST is missing the tokens array.");if(!w.comments)throw new TypeError("AST is missing the comments array.");if(!w.loc)throw new TypeError("AST is missing location information.");if(!w.range)throw new TypeError("AST is missing range information")}function f(w){switch(w){case 3:return t.es3;case 5:return t.es5;default:return w<2015?t[`es${w+2009}`]:t[`es${w}`]}}function g(w){return w.type==="ExportDefaultDeclaration"||w.type==="ExportNamedDeclaration"||w.type==="ExportAllDeclaration"||w.type==="ExportSpecifier"}function d(w,k){const R=[];let F=0,L=0;for(;F<w.length||L<k.length;)L>=k.length||F<w.length&&w[F].range[0]<k[L].range[0]?R.push(w[F++]):R.push(k[L++]);return R}function E(w){switch(w){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${w}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function S(w,k){return w.range[0]<=k.range[0]&&w.range[1]>=k.range[0]||k.range[0]<=w.range[0]&&k.range[1]>=w.range[0]}function x(w,k,R,F){if(S(k,R))return!1;const[L,P]=k.range[1]<=R.range[0]?[k,R]:[R,k],O=w.getLastToken(L)||L,q=w.getFirstToken(P)||P;let N=O;for(;N!==q;){const _=w.getTokenAfter(N,{includeComments:!0});if(N.range[1]!==_.range[0]||F&&_!==q&&_.type==="JSXText"&&/\s/u.test(_.value))return!0;N=_}return!1}function T(w,k){let R=0,F=w.length;for(;R<F;){const L=(R+F)/2|0;k<w[L]?F=L:R=L+1}return R}function C(w,k={},R={}){for(const L of new Set([...Object.keys(k),...Object.keys(R)])){const P=k[L]===void 0?void 0:E(k[L]),q=R[L]&&R[L].value||P,N=R[L]&&R[L].comments;if(q==="off")continue;let _=w.set.get(L);_||(_=new c.Variable(L,w),w.variables.push(_),w.set.set(L,_)),_.eslintImplicitGlobalSetting=P,_.eslintExplicitGlobal=N!==void 0,_.eslintExplicitGlobalComments=N,_.writeable=q==="writable"}w.through=w.through.filter(L=>{const P=L.identifier.name,O=w.set.get(P);return O?(L.resolved=O,O.references.push(L),!1):!0});const{implicit:F}=w;typeof F=="object"&&F!==null&&(F.variables=F.variables.filter(L=>{const P=L.name;return w.set.has(P)?(F.set.delete(P),!1):!0}),F.left&&(F.left=F.left.filter(L=>!w.set.has(L.identifier.name))))}function v(w,k){Object.keys(k).forEach(R=>{const F=w.set.get(R);F&&(F.eslintUsed=!0,F.eslintExported=!0)})}const A=Symbol("caches");class b extends e{#e;constructor(k,R){let F,L,P,O,q,N;typeof k=="string"?(F=k,P=R,L=!1):typeof k=="object"&&k!==null&&(F=k.text,P=k.ast,L=k.hasBOM,O=k.parserServices,q=k.scopeManager,N=k.visitorKeys),s(P),super(P.tokens,P.comments),this[A]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0],["isGlobalReference",new WeakMap]]),this.isESTree=P.type==="Program";const _=F.charCodeAt(0)===65279;this.hasBOM=_||!!L,this.text=_?F.slice(1):F,this.ast=P,this.parserServices=O||{},this.scopeManager=q||null,this.visitorKeys=N||o.DEFAULT_VISITOR_KEYS;const G=this.text.match(n.shebangPattern);G&&P.comments.length&&P.comments[0].value===G[1]&&(P.comments[0].type="Shebang"),this.tokensAndComments=d(P.tokens,P.comments),this.lines=[],this.lineStartIndices=[0];const z=n.createGlobalLinebreakMatcher();let H;for(;H=z.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),H.index)),this.lineStartIndices.push(H.index+H[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(k){return k.split(n.createGlobalLinebreakMatcher())}getText(k,R,F){return k?this.text.slice(Math.max(k.range[0]-(R||0),0),k.range[1]+(F||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(k){const R=L=>{const P=this.getTokenBefore(L,{includeComments:!0});return P&&a(P)&&P.type==="Block"&&P.value.charAt(0)==="*"&&L.loc.start.line-P.loc.end.line<=1?P:null};let F=k.parent;switch(k.type){case"ClassDeclaration":case"FunctionDeclaration":return R(g(F)?F:k);case"ClassExpression":return R(F.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(F.type!=="CallExpression"&&F.type!=="NewExpression"){for(;!this.getCommentsBefore(F).length&&!/Function/u.test(F.type)&&F.type!=="MethodDefinition"&&F.type!=="Property"&&(F=F.parent,!!F););if(F&&F.type!=="FunctionDeclaration"&&F.type!=="Program")return R(F)}return R(k);default:return null}}getNodeByRangeIndex(k){let R=null;return o.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(F){F.range[0]<=k&&k<F.range[1]?R=F:this.skip()},leave(F){F===R&&this.break()}}),R}isSpaceBetween(k,R){return x(this,k,R,!1)}isSpaceBetweenTokens(k,R){return x(this,k,R,!0)}getLocFromIndex(k){if(typeof k!="number")throw new TypeError("Expected `index` to be a number.");if(k<0||k>this.text.length)throw new RangeError(`Index out of range (requested index ${k}, but source text has length ${this.text.length}).`);if(k===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};const R=k>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:T(this.lineStartIndices,k);return{line:R,column:k-this.lineStartIndices[R-1]}}getIndexFromLoc(k){if(k===null||typeof k!="object"||typeof k.line!="number"||typeof k.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(k.line<=0)throw new RangeError(`Line number out of range (line ${k.line} requested). Line numbers should be 1-based.`);if(k.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${k.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(k.column<0)throw new RangeError(`Invalid column number (column ${k.column} requested).`);const R=this.lineStartIndices[k.line-1],F=k.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[k.line],L=R+k.column;if(k.line===this.lineStartIndices.length&&L>F||k.line<this.lineStartIndices.length&&L>=F)throw new RangeError(`Column number out of range (column ${k.column} requested, but the length of line ${k.line} is ${F-R}).`);return L}getScope(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[A].get("scopes"),F=R.get(k);if(F)return F;const L=k.type!=="Program";for(let P=k;P;P=P.parent){const O=this.scopeManager.acquire(P,L);if(O)return O.type==="function-expression-name"?(R.set(k,O.childScopes[0]),O.childScopes[0]):(R.set(k,O),O)}return R.set(k,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(k){return this.scopeManager.getDeclaredVariables(k)}getAncestors(k){if(!k)throw new TypeError("Missing required argument: node.");const R=[];for(let F=k.parent;F;F=F.parent)R.push(F);return R.reverse()}isGlobalReference(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[A].get("isGlobalReference");if(R.has(k))return R.get(k);if(k.type!=="Identifier")return R.set(k,!1),!1;const F=this.scopeManager.scopes[0].set.get(k.name);if(!F||F.defs.length>0)return R.set(k,!1),!1;const L=F.references.some(({identifier:P})=>P===k);return R.set(k,L),L}getLoc(k){return k.loc}getRange(k){return k.range}markVariableAsUsed(k,R=this.ast){const F=this.getScope(R);let L=F;F.type==="global"&&F.childScopes.length>0&&F.childScopes[0].block===this.ast&&(L=F.childScopes[0]);for(let P=L;P;P=P.upper){const O=P.variables.find(q=>q.name===k);if(O)return O.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let k=this[A].get("configNodes");return k||(k=this.ast.comments.filter(R=>{if(R.type==="Shebang")return!1;const F=h.parseDirective(R.value);return!F||!l.test(F.label)?!1:R.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(F.label)}),this[A].set("configNodes",k),k)}getDisableDirectives(){const k=this[A].get("disableDirectives");if(k)return k;const R=[],F=[];this.getInlineConfigNodes().forEach(P=>{const{label:O,value:q,justification:N}=h.parseDirective(P.value),_=/^eslint-disable-(next-)?line$/u.test(O);if(!(P.type==="Line"&&!_)){if(O==="eslint-disable-line"&&P.loc.start.line!==P.loc.end.line){const G=`${O} comment should not span multiple lines.`;R.push({ruleId:null,message:G,loc:P.loc});return}switch(O){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const G=O.slice(7);F.push(new i({type:G,node:P,value:q,justification:N}))}}}});const L={problems:R,directives:F};return this[A].set("disableDirectives",L),L}applyLanguageOptions(k){const R=Object.assign(Object.create(null),f(k.ecmaVersion),k.sourceType==="commonjs"?t.commonjs:void 0,k.globals);this[A].get("vars").set("configGlobals",R)}applyInlineConfig(){const k=[],R=[],F={},L=Object.create(null);this.getInlineConfigNodes().forEach(O=>{const{label:q,value:N}=h.parseDirective(O.value);switch(q){case"exported":Object.assign(F,h.parseListConfig(N));break;case"globals":case"global":for(const[_,G]of Object.entries(h.parseStringConfig(N))){let B;try{B=E(G)}catch(z){k.push({ruleId:null,loc:O.loc,message:z.message});continue}L[_]?(L[_].comments.push(O),L[_].value=B):L[_]={comments:[O],value:B}}break;case"eslint":{const _=h.parseJSONLikeConfig(N);_.ok?R.push({config:{rules:_.config},loc:O.loc}):k.push({ruleId:null,loc:O.loc,message:_.error.message});break}}});const P=this[A].get("vars");return P.set("inlineGlobals",L),P.set("exportedVariables",F),{configs:R,problems:k}}finalize(){const k=this[A].get("vars"),R=k.get("configGlobals"),F=k.get("inlineGlobals"),L=k.get("exportedVariables"),P=this.scopeManager.scopes[0];C(P,R,F),L&&v(P,L)}traverse(){if(this.#e)return this.#e;const k=this.#e=[];let R={enterNode(F){k.push(new r({target:F,phase:1,args:[F,F.parent]}))},leaveNode(F){k.push(new r({target:F,phase:2,args:[F,F.parent]}))},emit(F,L){k.push(new m({target:F,args:L}))}};return this.isESTree&&(R=new p(R)),o.traverse(this.ast,{enter(F,L){F.parent=L,R.enterNode(F)},leave(F){R.leaveNode(F)},visitorKeys:this.visitorKeys}),k}}return Va=b,Va}var $a,Sd;function bd(){return Sd||(Sd=1,$a={SourceCode:J1()}),$a}var Wa,xd;function Rn(){return xd||(xd=1,Wa=a=>{if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Wa}var Ga,Cd;function wd(){if(Cd)return Ga;Cd=1;function a(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function e(o,t){if(t===void 0)return o;if(!a(o)||!a(t))return t;const l={...o,...t};for(const p of Object.keys(t))Object.prototype.propertyIsEnumerable.call(o,p)&&(l[p]=e(o[p],t[p]));return l}function n(o,t){return!o||!t?t||o||[]:[...o.map((l,p)=>e(l,p<t.length?t[p]:void 0)),...t.slice(o.length)]}return Ga={deepMergeArrays:n},Ga}var za,Ad;function Td(){if(Ad)return za;Ad=1;function a(n){if([2,"2","error"].includes(n))return"error";if([1,"1","warn"].includes(n))return"warn";if([0,"0","off"].includes(n))return"off";throw new Error(`Invalid severity value: ${n}`)}function e(n){if([2,"2","error"].includes(n))return 2;if([1,"1","warn"].includes(n))return 1;if([0,"0","off"].includes(n))return 0;throw new Error(`Invalid severity value: ${n}`)}return za={normalizeSeverityToString:a,normalizeSeverityToNumber:e},za}var Ha,kd;function Ka(){if(kd)return Ha;kd=1;const{normalizeSeverityToNumber:a}=Td(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]);function n(L){return typeof L=="object"&&L!==null}function o(L){return n(L)&&!Array.isArray(L)}function t(L){return typeof L>"u"}function l(L,P,O=new Map){let q=O.get(L);if(q){const _=q.get(P);if(_)return _}else q=new Map,O.set(L,q);const N={...L,...P};delete N.__proto__,q.set(P,N);for(const _ of Object.keys(P)){if(_==="__proto__"||!Object.prototype.propertyIsEnumerable.call(L,_))continue;const G=L[_],B=P[_];o(G)&&o(B)?N[_]=l(G,B,O):t(B)&&(N[_]=G)}return N}function p(L){const P=Array.isArray(L)?L.slice(0):[L];return P[0]=e.get(P[0]),structuredClone(P)}function u(L){for(const P of Object.keys(L))if(typeof L[P]=="function")return!0;return!1}class r extends Error{constructor(P,O){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:P,value:O}}}function m(L,P){if(typeof P!="string"&&typeof P!="number"&&!Array.isArray(P))throw new r(L,P)}class i extends Error{constructor(P,O){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:P,value:O}}}function c(L,P){if(typeof e.get(P)>"u")throw new i(L,P)}function h(L){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(L))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${L}".`)}function s(L){if(!n(L))throw new TypeError("Expected an object.")}class f extends Error{constructor(P){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:P}}}class g extends Error{constructor(P){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:P}}}const d={merge:"replace",validate:"boolean"},E=new Set(["error","warn","off",2,1,0]),S={merge(L,P){const O=P===void 0?L:P;return typeof O=="boolean"?O?"warn":"off":a(O)},validate(L){if(!(E.has(L)||typeof L=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},x={merge(L,P){return a(P===void 0?L:P)},validate(L){if(!E.has(L))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, or 2.')}},T={merge(L={},P={}){return l(L,P)},validate:"object"},C={merge(L={},P={}){const O=l(L,P);for(const[q,N]of Object.entries(O))if(o(N)){if(u(N)){O[q]=P[q]??L[q];continue}O[q]={...O[q]};continue}return O},validate:"object"},v={merge:"replace",validate:h},A={merge(L={},P={}){const O=new Set([...Object.keys(L),...Object.keys(P)]),q={};for(const N of O)if(N!=="__proto__"){if(N in L&&N in P&&L[N]!==P[N])throw new TypeError(`Cannot redefine plugin "${N}".`);q[N]=P[N]||L[N]}return q},validate(L){if(L===null||typeof L!="object")throw new TypeError("Expected an object.");if(Array.isArray(L))throw new g(L);for(const P of Object.keys(L))if(P!=="__proto__"&&(L[P]===null||typeof L[P]!="object"))throw new TypeError(`Key "${P}": Expected an object.`)}},b={merge:"replace",validate(L){if(typeof L=="string")h(L);else if(L&&typeof L=="object"){if(typeof L.preprocess!="function"||typeof L.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},w={merge(L={},P={}){const O={...L,...P};for(const q of Object.keys(O))try{if(q==="__proto__"){delete O.__proto__;continue}if(O[q]=p(O[q]),!(q in L)||!(q in P))continue;const N=p(L[q]),_=p(P[q]);if(_.length===1){O[q]=[_[0],...N.slice(1)];continue}}catch(N){throw new Error(`Key "${q}": ${N.message}`,{cause:N})}return O},validate(L){s(L);for(const P of Object.keys(L)){if(P==="__proto__")continue;const O=L[P];m(P,O),Array.isArray(O)?c(P,O[0]):c(P,O)}}};function k(L){return{merge:"replace",validate(){throw new f(L)}}}return Ha={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(L=>[L,k(L)])),settings:T,linterOptions:{schema:{noInlineConfig:d,reportUnusedDisableDirectives:S,reportUnusedInlineConfigs:x}},language:v,languageOptions:C,processor:b,plugins:A,rules:w},hasMethod:u,assertIsRuleSeverity:c},Ha}var Xa={},It={},Dd;function Y1(){if(Dd)return It;Dd=1;function a(I){if(typeof I!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(I)}"`)}function e(I,W){if(W.length>=I.length)return I;const oe=I.length-W.length;for(let ie=W.length-1;ie>=0;--ie)if(I.charCodeAt(oe+ie)!==W.charCodeAt(ie))return I;return I.slice(0,-W.length)}function n(I,W,oe=0){let ie=!1,se=I.length;for(let de=I.length-1;de>=oe;--de)if(W(I.charCodeAt(de))){if(ie){oe=de+1;break}}else ie||(ie=!0,se=de+1);return I.slice(oe,se)}function o(I,W){if(a(I),I.length===0)return I;if(typeof W!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(W)}"`)}function t(I){if(I=I instanceof URL?I:new URL(I),I.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${I.protocol}"`);return I}function l(I){return I=t(I),decodeURIComponent(I.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function p(I,W){if(I.length<=1)return I;let oe=I.length;for(let ie=I.length-1;ie>0&&W(I.charCodeAt(ie));ie--)oe=ie;return I.slice(0,oe)}const u=46,r=47;function m(I){return I===r}function i(I,W=""){I instanceof URL&&(I=l(I)),o(I,W);const oe=n(I,m),ie=p(oe,m);return W?e(ie,W):ie}const c=":",h="/",s=/\/+/;function f(I){if(a(I),I.length===0)return"."}function g(I){I instanceof URL&&(I=l(I)),f(I);let W=-1,oe=!1;for(let ie=I.length-1;ie>=1;--ie)if(m(I.charCodeAt(ie))){if(oe){W=ie;break}}else oe=!0;return W===-1?m(I.charCodeAt(0))?"/":".":p(I.slice(0,W),m)}function d(I){I instanceof URL&&(I=l(I)),a(I);let W=-1,oe=0,ie=-1,se=!0,de=0;for(let be=I.length-1;be>=0;--be){const xe=I.charCodeAt(be);if(m(xe)){if(!se){oe=be+1;break}continue}ie===-1&&(se=!1,ie=be+1),xe===u?W===-1?W=be:de!==1&&(de=1):W!==-1&&(de=-1)}return W===-1||ie===-1||de===0||de===1&&W===ie-1&&W===oe+1?"":I.slice(W,ie)}function E(I,W){const oe=W.dir||W.root,ie=W.base||(W.name??"")+(W.ext??"");return oe?ie===I?oe:oe===W.root?oe+ie:oe+I+ie:ie}function S(I){if(I===null||typeof I!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof I}"`)}function x(I){return S(I),E("/",I)}function T(I){return a(I),I.length>0&&m(I.charCodeAt(0))}function C(I){if(a(I),I.length===0)return"."}function v(I,W,oe,ie){let se="",de=0,be=-1,xe=0,Te;for(let J=0;J<=I.length;++J){if(J<I.length)Te=I.charCodeAt(J);else{if(ie(Te))break;Te=r}if(ie(Te)){if(!(be===J-1||xe===1))if(be!==J-1&&xe===2){if(se.length<2||de!==2||se.charCodeAt(se.length-1)!==u||se.charCodeAt(se.length-2)!==u){if(se.length>2){const Q=se.lastIndexOf(oe);Q===-1?(se="",de=0):(se=se.slice(0,Q),de=se.length-1-se.lastIndexOf(oe)),be=J,xe=0;continue}else if(se.length===2||se.length===1){se="",de=0,be=J,xe=0;continue}}W&&(se.length>0?se+=`${oe}..`:se="..",de=2)}else se.length>0?se+=oe+I.slice(be+1,J):se=I.slice(be+1,J),de=J-be-1;be=J,xe=0}else Te===u&&xe!==-1?++xe:xe=-1}return se}function A(I){I instanceof URL&&(I=l(I)),C(I);const W=m(I.charCodeAt(0)),oe=m(I.charCodeAt(I.length-1));return I=v(I,!W,"/",m),I.length===0&&!W&&(I="."),I.length>0&&oe&&(I+="/"),W?`/${I}`:I}function b(I,...W){if(I===void 0)return".";I instanceof URL&&(I=l(I)),W=I?[I,...W]:W,W.forEach(ie=>a(ie));const oe=W.filter(ie=>ie.length>0).join("/");return oe===""?".":A(oe)}function w(I){a(I);const W={root:"",dir:"",base:"",ext:"",name:""};if(I.length===0)return W;const oe=m(I.charCodeAt(0));let ie;oe?(W.root="/",ie=1):ie=0;let se=-1,de=0,be=-1,xe=!0,Te=I.length-1,J=0;for(;Te>=ie;--Te){const Q=I.charCodeAt(Te);if(m(Q)){if(!xe){de=Te+1;break}continue}be===-1&&(xe=!1,be=Te+1),Q===u?se===-1?se=Te:J!==1&&(J=1):se!==-1&&(J=-1)}return se===-1||be===-1||J===0||J===1&&se===be-1&&se===de+1?(be!==-1&&(de===0&&oe?W.base=W.name=I.slice(1,be):W.base=W.name=I.slice(de,be)),W.base=W.base||"/"):(de===0&&oe?(W.name=I.slice(1,se),W.base=I.slice(1,be)):(W.name=I.slice(de,se),W.base=I.slice(de,be)),W.ext=I.slice(se,be)),de>0?W.dir=p(I.slice(0,de-1),m):oe&&(W.dir="/"),W}function k(...I){let W="",oe=!1;for(let ie=I.length-1;ie>=-1&&!oe;ie--){let se;if(ie>=0)se=I[ie];else{const{Deno:de}=globalThis;if(typeof de?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");se=de.cwd()}a(se),se.length!==0&&(W=`${se}/${W}`,oe=m(se.charCodeAt(0)))}return W=v(W,!oe,"/",m),oe?W.length>0?`/${W}`:"/":W.length>0?W:"."}function R(I,W){if(a(I),a(W),I===W)return""}function F(I,W){if(R(I,W),I=k(I),W=k(W),I===W)return"";let oe=1;const ie=I.length;for(;oe<ie&&m(I.charCodeAt(oe));++oe);const se=ie-oe;let de=1;const be=W.length;for(;de<be&&m(W.charCodeAt(de));++de);const xe=be-de,Te=se<xe?se:xe;let J=-1,Q=0;for(;Q<=Te;++Q){if(Q===Te){if(xe>Te){if(m(W.charCodeAt(de+Q)))return W.slice(de+Q+1);if(Q===0)return W.slice(de+Q)}else se>Te&&(m(I.charCodeAt(oe+Q))?J=Q:Q===0&&(J=0));break}const $=I.charCodeAt(oe+Q),ae=W.charCodeAt(de+Q);if($!==ae)break;m($)&&(J=Q)}let ke="";for(Q=oe+J+1;Q<=ie;++Q)(Q===ie||m(I.charCodeAt(Q)))&&(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+W.slice(de+J):(de+=J,m(W.charCodeAt(de))&&++de,W.slice(de))}const L={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function P(I){return I.replaceAll(/[\s]/g,W=>L[W]??W)}function O(I){if(!T(I))throw new TypeError(`Path must be absolute: received "${I}"`);const W=new URL("file:///");return W.pathname=P(I.replace(/%/g,"%25").replace(/\\/g,"%5C")),W}function q(I){return I}function N(I,W){const[oe="",...ie]=I,se=oe.split(W);let de=se.length,be="";for(const xe of ie){const Te=xe.split(W);Te.length<=de&&(de=Te.length,be="");for(let J=0;J<de;J++)if(Te[J]!==se[J]){de=J,be=J===0?"":W;break}}return se.slice(0,de).join(W)+be}function _(I){return N(I,h)}const G=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],B=["-","\\","]"];function z(I,W,{extended:oe=!0,globstar:ie=!0,caseInsensitive:se=!1}={}){if(W==="")return/(?!)/;let de=W.length;for(;de>1&&I.seps.includes(W[de-1]);de--);W=W.slice(0,de);let be="";for(let xe=0;xe<W.length;){let Te="";const J=[];let Q=!1,ke=!1,$=!1,ae=xe;for(;ae<W.length&&!I.seps.includes(W[ae]);ae++){if(ke){ke=!1,Te+=(Q?B:G).includes(W[ae])?`\\${W[ae]}`:W[ae];continue}if(W[ae]===I.escapePrefix){ke=!0;continue}if(W[ae]==="[")if(Q){if(W[ae+1]===":"){let Ie=ae+1,Ne="";for(;W[Ie+1]!==void 0&&W[Ie+1]!==":";)Ne+=W[Ie+1],Ie++;if(W[Ie+1]===":"&&W[Ie+2]==="]"){ae=Ie+2,Ne==="alnum"?Te+="\\dA-Za-z":Ne==="alpha"?Te+="A-Za-z":Ne==="ascii"?Te+="\0-":Ne==="blank"?Te+=" ":Ne==="cntrl"?Te+="\0-":Ne==="digit"?Te+="\\d":Ne==="graph"?Te+="!-~":Ne==="lower"?Te+="a-z":Ne==="print"?Te+=" -~":Ne==="punct"?Te+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:Ne==="space"?Te+="\\s\v":Ne==="upper"?Te+="A-Z":Ne==="word"?Te+="\\w":Ne==="xdigit"&&(Te+="\\dA-Fa-f");continue}}}else{Q=!0,Te+="[",W[ae+1]==="!"?(ae++,Te+="^"):W[ae+1]==="^"&&(ae++,Te+="\\^");continue}if(W[ae]==="]"&&Q){Q=!1,Te+="]";continue}if(Q){Te+=W[ae];continue}if(W[ae]===")"&&J.length>0&&J[J.length-1]!=="BRACE"){Te+=")";const Ie=J.pop();Ie==="!"?Te+=I.wildcard:Ie!=="@"&&(Te+=Ie);continue}if(W[ae]==="|"&&J.length>0&&J[J.length-1]!=="BRACE"){Te+="|";continue}if(W[ae]==="+"&&oe&&W[ae+1]==="("){ae++,J.push("+"),Te+="(?:";continue}if(W[ae]==="@"&&oe&&W[ae+1]==="("){ae++,J.push("@"),Te+="(?:";continue}if(W[ae]==="?"){oe&&W[ae+1]==="("?(ae++,J.push("?"),Te+="(?:"):Te+=".";continue}if(W[ae]==="!"&&oe&&W[ae+1]==="("){ae++,J.push("!"),Te+="(?!";continue}if(W[ae]==="{"){J.push("BRACE"),Te+="(?:";continue}if(W[ae]==="}"&&J[J.length-1]==="BRACE"){J.pop(),Te+=")";continue}if(W[ae]===","&&J[J.length-1]==="BRACE"){Te+="|";continue}if(W[ae]==="*"){if(oe&&W[ae+1]==="(")ae++,J.push("*"),Te+="(?:";else{const Ie=W[ae-1];let Ne=1;for(;W[ae+1]==="*";)ae++,Ne++;const Be=W[ae+1];ie&&Ne===2&&[...I.seps,void 0].includes(Ie)&&[...I.seps,void 0].includes(Be)?(Te+=I.globstar,$=!0):Te+=I.wildcard}continue}Te+=G.includes(W[ae])?`\\${W[ae]}`:W[ae]}if(J.length>0||Q||ke){Te="";for(const Ie of W.slice(xe,ae))Te+=G.includes(Ie)?`\\${Ie}`:Ie,$=!1}for(be+=Te,$||(be+=ae<W.length?I.sep:I.sepMaybe,$=!0);I.seps.includes(W[ae]);)ae++;xe=ae}return be=`^${be}$`,new RegExp(be,se?"i":"")}const H={sep:"/+",sepMaybe:"/*",seps:["/"],globstar:"(?:[^/]*(?:/|$)+)*",wildcard:"[^/]*",escapePrefix:"\\"};function ce(I,W={}){return z(H,I,W)}function re(I){const W={"{":"}","(":")","[":"]"},oe=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(I==="")return!1;let ie;for(;ie=oe.exec(I);){if(ie[2])return!0;let se=ie.index+ie[0].length;const de=ie[1],be=de?W[de]:null;if(de&&be){const xe=I.indexOf(be,se);xe!==-1&&(se=xe+1)}I=I.slice(se)}return!1}function Fe(I,W={}){const{globstar:oe=!1}=W;if(I.match(/\0/g))throw new Error(`Glob contains invalid characters: "${I}"`);if(!oe)return A(I);const ie=s.source,se=new RegExp(`(?<=(${ie}|^)\\*\\*${ie})\\.\\.(?=${ie}|$)`,"g");return A(I.replace(se,"\0")).replace(/\0/g,"..")}function X(I,W={}){const{globstar:oe=!1}=W;if(!oe||I.length===0)return b(...I);let ie;for(const se of I){const de=se;de.length>0&&(ie?ie+=`${h}${de}`:ie=de)}return ie?Fe(ie,{globstar:oe}):"."}return It.DELIMITER=c,It.SEPARATOR=h,It.SEPARATOR_PATTERN=s,It.basename=i,It.common=_,It.dirname=g,It.extname=d,It.format=x,It.fromFileUrl=l,It.globToRegExp=ce,It.isAbsolute=T,It.isGlob=re,It.join=b,It.joinGlobs=X,It.normalize=A,It.normalizeGlob=Fe,It.parse=w,It.relative=F,It.resolve=k,It.toFileUrl=O,It.toNamespacedPath=q,It}var Pt={},Id;function Q1(){if(Id)return Pt;Id=1;function a(J){if(typeof J!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(J)}"`)}function e(J,Q){if(Q.length>=J.length)return J;const ke=J.length-Q.length;for(let $=Q.length-1;$>=0;--$)if(J.charCodeAt(ke+$)!==Q.charCodeAt($))return J;return J.slice(0,-Q.length)}function n(J,Q,ke=0){let $=!1,ae=J.length;for(let Ie=J.length-1;Ie>=ke;--Ie)if(Q(J.charCodeAt(Ie))){if($){ke=Ie+1;break}}else $||($=!0,ae=Ie+1);return J.slice(ke,ae)}function o(J,Q){if(a(J),J.length===0)return J;if(typeof Q!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(Q)}"`)}const t=65,l=97,p=90,u=122,r=46,m=47,i=92,c=58,h=63;function s(J,Q){if(J.length<=1)return J;let ke=J.length;for(let $=J.length-1;$>0&&Q(J.charCodeAt($));$--)ke=$;return J.slice(0,ke)}function f(J){return J===m}function g(J){return J===m||J===i}function d(J){return J>=l&&J<=u||J>=t&&J<=p}function E(J){if(J=J instanceof URL?J:new URL(J),J.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${J.protocol}"`);return J}function S(J){J=E(J);let Q=decodeURIComponent(J.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return J.hostname!==""&&(Q=`\\\\${J.hostname}${Q}`),Q}function x(J,Q=""){J instanceof URL&&(J=S(J)),o(J,Q);let ke=0;if(J.length>=2){const Ie=J.charCodeAt(0);d(Ie)&&J.charCodeAt(1)===c&&(ke=2)}const $=n(J,g,ke),ae=s($,g);return Q?e(ae,Q):ae}const T=";",C="\\",v=/[\\/]+/;function A(J){if(a(J),J.length===0)return"."}function b(J){J instanceof URL&&(J=S(J)),A(J);const Q=J.length;let ke=-1,$=-1,ae=!0,Ie=0;const Ne=J.charCodeAt(0);if(Q>1)if(g(Ne)){if(ke=Ie=1,g(J.charCodeAt(1))){let Be=2,j=Be;for(;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be===Q)return J;Be!==j&&(ke=Ie=Be+1)}}}}else d(Ne)&&J.charCodeAt(1)===c&&(ke=Ie=2,Q>2&&g(J.charCodeAt(2))&&(ke=Ie=3));else if(g(Ne))return J;for(let Be=Q-1;Be>=Ie;--Be)if(g(J.charCodeAt(Be))){if(!ae){$=Be;break}}else ae=!1;if($===-1){if(ke===-1)return".";$=ke}return s(J.slice(0,$),f)}function w(J){J instanceof URL&&(J=S(J)),a(J);let Q=0,ke=-1,$=0,ae=-1,Ie=!0,Ne=0;J.length>=2&&J.charCodeAt(1)===c&&d(J.charCodeAt(0))&&(Q=$=2);for(let Be=J.length-1;Be>=Q;--Be){const j=J.charCodeAt(Be);if(g(j)){if(!Ie){$=Be+1;break}continue}ae===-1&&(Ie=!1,ae=Be+1),j===r?ke===-1?ke=Be:Ne!==1&&(Ne=1):ke!==-1&&(Ne=-1)}return ke===-1||ae===-1||Ne===0||Ne===1&&ke===ae-1&&ke===$+1?"":J.slice(ke,ae)}function k(J,Q){const ke=Q.dir||Q.root,$=Q.base||(Q.name??"")+(Q.ext??"");return ke?$===J?ke:ke===Q.root?ke+$:ke+J+$:$}function R(J){if(J===null||typeof J!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof J}"`)}function F(J){return R(J),k("\\",J)}function L(J){a(J);const Q=J.length;if(Q===0)return!1;const ke=J.charCodeAt(0);return g(ke)?!0:!!(d(ke)&&Q>2&&J.charCodeAt(1)===c&&g(J.charCodeAt(2)))}function P(J){if(a(J),J.length===0)return"."}function O(J,Q,ke,$){let ae="",Ie=0,Ne=-1,Be=0,j;for(let Qe=0;Qe<=J.length;++Qe){if(Qe<J.length)j=J.charCodeAt(Qe);else{if($(j))break;j=m}if($(j)){if(!(Ne===Qe-1||Be===1))if(Ne!==Qe-1&&Be===2){if(ae.length<2||Ie!==2||ae.charCodeAt(ae.length-1)!==r||ae.charCodeAt(ae.length-2)!==r){if(ae.length>2){const ut=ae.lastIndexOf(ke);ut===-1?(ae="",Ie=0):(ae=ae.slice(0,ut),Ie=ae.length-1-ae.lastIndexOf(ke)),Ne=Qe,Be=0;continue}else if(ae.length===2||ae.length===1){ae="",Ie=0,Ne=Qe,Be=0;continue}}Q&&(ae.length>0?ae+=`${ke}..`:ae="..",Ie=2)}else ae.length>0?ae+=ke+J.slice(Ne+1,Qe):ae=J.slice(Ne+1,Qe),Ie=Qe-Ne-1;Ne=Qe,Be=0}else j===r&&Be!==-1?++Be:Be=-1}return ae}function q(J){J instanceof URL&&(J=S(J)),P(J);const Q=J.length;let ke=0,$,ae=!1;const Ie=J.charCodeAt(0);if(Q>1)if(g(Ie))if(ae=!0,g(J.charCodeAt(1))){let Be=2,j=Be;for(;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){const Qe=J.slice(j,Be);for(j=Be;Be<Q&&g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be===Q)return`\\\\${Qe}\\${J.slice(j)}\\`;Be!==j&&($=`\\\\${Qe}\\${J.slice(j,Be)}`,ke=Be)}}}else ke=1;else d(Ie)&&J.charCodeAt(1)===c&&($=J.slice(0,2),ke=2,Q>2&&g(J.charCodeAt(2))&&(ae=!0,ke=3));else if(g(Ie))return"\\";let Ne;return ke<Q?Ne=O(J.slice(ke),!ae,"\\",g):Ne="",Ne.length===0&&!ae&&(Ne="."),Ne.length>0&&g(J.charCodeAt(Q-1))&&(Ne+="\\"),$===void 0?ae?Ne.length>0?`\\${Ne}`:"\\":Ne:ae?Ne.length>0?`${$}\\${Ne}`:`${$}\\`:$+Ne}function N(J,...Q){if(J instanceof URL&&(J=S(J)),Q=J?[J,...Q]:Q,Q.forEach(Ne=>a(Ne)),Q=Q.filter(Ne=>Ne.length>0),Q.length===0)return".";let ke=!0,$=0;const ae=Q[0];if(g(ae.charCodeAt(0))){++$;const Ne=ae.length;Ne>1&&g(ae.charCodeAt(1))&&(++$,Ne>2&&(g(ae.charCodeAt(2))?++$:ke=!1))}let Ie=Q.join("\\");if(ke){for(;$<Ie.length&&g(Ie.charCodeAt($));++$);$>=2&&(Ie=`\\${Ie.slice($)}`)}return q(Ie)}function _(J){a(J);const Q={root:"",dir:"",base:"",ext:"",name:""},ke=J.length;if(ke===0)return Q;let $=0,ae=J.charCodeAt(0);if(ke>1){if(g(ae)){if($=1,g(J.charCodeAt(1))){let rt=2,ze=rt;for(;rt<ke&&!g(J.charCodeAt(rt));++rt);if(rt<ke&&rt!==ze){for(ze=rt;rt<ke&&g(J.charCodeAt(rt));++rt);if(rt<ke&&rt!==ze){for(ze=rt;rt<ke&&!g(J.charCodeAt(rt));++rt);rt===ke?$=rt:rt!==ze&&($=rt+1)}}}}else if(d(ae)&&J.charCodeAt(1)===c)if($=2,ke>2){if(g(J.charCodeAt(2))){if(ke===3)return Q.root=Q.dir=J,Q.base="\\",Q;$=3}}else return Q.root=Q.dir=J,Q}else if(g(ae))return Q.root=Q.dir=J,Q.base="\\",Q;$>0&&(Q.root=J.slice(0,$));let Ie=-1,Ne=$,Be=-1,j=!0,Qe=J.length-1,ut=0;for(;Qe>=$;--Qe){if(ae=J.charCodeAt(Qe),g(ae)){if(!j){Ne=Qe+1;break}continue}Be===-1&&(j=!1,Be=Qe+1),ae===r?Ie===-1?Ie=Qe:ut!==1&&(ut=1):Ie!==-1&&(ut=-1)}return Ie===-1||Be===-1||ut===0||ut===1&&Ie===Be-1&&Ie===Ne+1?Be!==-1&&(Q.base=Q.name=J.slice(Ne,Be)):(Q.name=J.slice(Ne,Ie),Q.base=J.slice(Ne,Be),Q.ext=J.slice(Ie,Be)),Q.base=Q.base||"\\",Ne>0&&Ne!==$?Q.dir=J.slice(0,Ne-1):Q.dir=Q.root,Q}function G(...J){let Q="",ke="",$=!1;for(let ae=J.length-1;ae>=-1;ae--){let Ie;const{Deno:Ne}=globalThis;if(ae>=0)Ie=J[ae];else if(Q){if(typeof Ne?.env?.get!="function"||typeof Ne?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");Ie=Ne.cwd(),(Ie===void 0||Ie.slice(0,3).toLowerCase()!==`${Q.toLowerCase()}\\`)&&(Ie=`${Q}\\`)}else{if(typeof Ne?.cwd!="function")throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");Ie=Ne.cwd()}a(Ie);const Be=Ie.length;if(Be===0)continue;let j=0,Qe="",ut=!1;const rt=Ie.charCodeAt(0);if(Be>1)if(g(rt))if(ut=!0,g(Ie.charCodeAt(1))){let ze=2,Xe=ze;for(;ze<Be&&!g(Ie.charCodeAt(ze));++ze);if(ze<Be&&ze!==Xe){const ht=Ie.slice(Xe,ze);for(Xe=ze;ze<Be&&g(Ie.charCodeAt(ze));++ze);if(ze<Be&&ze!==Xe){for(Xe=ze;ze<Be&&!g(Ie.charCodeAt(ze));++ze);ze===Be?(Qe=`\\\\${ht}\\${Ie.slice(Xe)}`,j=ze):ze!==Xe&&(Qe=`\\\\${ht}\\${Ie.slice(Xe,ze)}`,j=ze)}}}else j=1;else d(rt)&&Ie.charCodeAt(1)===c&&(Qe=Ie.slice(0,2),j=2,Be>2&&g(Ie.charCodeAt(2))&&(ut=!0,j=3));else g(rt)&&(j=1,ut=!0);if(!(Qe.length>0&&Q.length>0&&Qe.toLowerCase()!==Q.toLowerCase())&&(Q.length===0&&Qe.length>0&&(Q=Qe),$||(ke=`${Ie.slice(j)}\\${ke}`,$=ut),$&&Q.length>0))break}return ke=O(ke,!$,"\\",g),Q+($?"\\":"")+ke||"."}function B(J,Q){if(a(J),a(Q),J===Q)return""}function z(J,Q){B(J,Q);const ke=G(J),$=G(Q);if(ke===$||(J=ke.toLowerCase(),Q=$.toLowerCase(),J===Q))return"";let ae=0,Ie=J.length;for(;ae<Ie&&J.charCodeAt(ae)===i;++ae);for(;Ie-1>ae&&J.charCodeAt(Ie-1)===i;--Ie);const Ne=Ie-ae;let Be=0,j=Q.length;for(;Be<j&&Q.charCodeAt(Be)===i;++Be);for(;j-1>Be&&Q.charCodeAt(j-1)===i;--j);const Qe=j-Be,ut=Ne<Qe?Ne:Qe;let rt=-1,ze=0;for(;ze<=ut;++ze){if(ze===ut){if(Qe>ut){if(Q.charCodeAt(Be+ze)===i)return $.slice(Be+ze+1);if(ze===2)return $.slice(Be+ze)}Ne>ut&&(J.charCodeAt(ae+ze)===i?rt=ze:ze===2&&(rt=3));break}const ht=J.charCodeAt(ae+ze),dt=Q.charCodeAt(Be+ze);if(ht!==dt)break;ht===i&&(rt=ze)}if(ze!==ut&&rt===-1)return $;let Xe="";for(rt===-1&&(rt=0),ze=ae+rt+1;ze<=Ie;++ze)(ze===Ie||J.charCodeAt(ze)===i)&&(Xe.length===0?Xe+="..":Xe+="\\..");return Xe.length>0?Xe+$.slice(Be+rt,j):(Be+=rt,$.charCodeAt(Be)===i&&++Be,$.slice(Be,j))}const H={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function ce(J){return J.replaceAll(/[\s]/g,Q=>H[Q]??Q)}function re(J){if(!L(J))throw new TypeError(`Path must be absolute: received "${J}"`);const[,Q,ke]=J.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),$=new URL("file:///");if($.pathname=ce(ke.replace(/%/g,"%25")),Q!==void 0&&Q!=="localhost"&&($.hostname=Q,!$.hostname))throw new TypeError(`Invalid hostname: "${$.hostname}"`);return $}function Fe(J){if(typeof J!="string")return J;if(J.length===0)return"";const Q=G(J);if(Q.length>=3){if(Q.charCodeAt(0)===i){if(Q.charCodeAt(1)===i){const ke=Q.charCodeAt(2);if(ke!==h&&ke!==r)return`\\\\?\\UNC\\${Q.slice(2)}`}}else if(d(Q.charCodeAt(0))&&Q.charCodeAt(1)===c&&Q.charCodeAt(2)===i)return`\\\\?\\${Q}`}return J}function X(J,Q){const[ke="",...$]=J,ae=ke.split(Q);let Ie=ae.length,Ne="";for(const Be of $){const j=Be.split(Q);j.length<=Ie&&(Ie=j.length,Ne="");for(let Qe=0;Qe<Ie;Qe++)if(j[Qe]!==ae[Qe]){Ie=Qe,Ne=Qe===0?"":Q;break}}return ae.slice(0,Ie).join(Q)+Ne}function I(J){return X(J,C)}const W=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],oe=["-","\\","]"];function ie(J,Q,{extended:ke=!0,globstar:$=!0,caseInsensitive:ae=!1}={}){if(Q==="")return/(?!)/;let Ie=Q.length;for(;Ie>1&&J.seps.includes(Q[Ie-1]);Ie--);Q=Q.slice(0,Ie);let Ne="";for(let Be=0;Be<Q.length;){let j="";const Qe=[];let ut=!1,rt=!1,ze=!1,Xe=Be;for(;Xe<Q.length&&!J.seps.includes(Q[Xe]);Xe++){if(rt){rt=!1,j+=(ut?oe:W).includes(Q[Xe])?`\\${Q[Xe]}`:Q[Xe];continue}if(Q[Xe]===J.escapePrefix){rt=!0;continue}if(Q[Xe]==="[")if(ut){if(Q[Xe+1]===":"){let ht=Xe+1,dt="";for(;Q[ht+1]!==void 0&&Q[ht+1]!==":";)dt+=Q[ht+1],ht++;if(Q[ht+1]===":"&&Q[ht+2]==="]"){Xe=ht+2,dt==="alnum"?j+="\\dA-Za-z":dt==="alpha"?j+="A-Za-z":dt==="ascii"?j+="\0-":dt==="blank"?j+=" ":dt==="cntrl"?j+="\0-":dt==="digit"?j+="\\d":dt==="graph"?j+="!-~":dt==="lower"?j+="a-z":dt==="print"?j+=" -~":dt==="punct"?j+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:dt==="space"?j+="\\s\v":dt==="upper"?j+="A-Z":dt==="word"?j+="\\w":dt==="xdigit"&&(j+="\\dA-Fa-f");continue}}}else{ut=!0,j+="[",Q[Xe+1]==="!"?(Xe++,j+="^"):Q[Xe+1]==="^"&&(Xe++,j+="\\^");continue}if(Q[Xe]==="]"&&ut){ut=!1,j+="]";continue}if(ut){j+=Q[Xe];continue}if(Q[Xe]===")"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){j+=")";const ht=Qe.pop();ht==="!"?j+=J.wildcard:ht!=="@"&&(j+=ht);continue}if(Q[Xe]==="|"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){j+="|";continue}if(Q[Xe]==="+"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("+"),j+="(?:";continue}if(Q[Xe]==="@"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("@"),j+="(?:";continue}if(Q[Xe]==="?"){ke&&Q[Xe+1]==="("?(Xe++,Qe.push("?"),j+="(?:"):j+=".";continue}if(Q[Xe]==="!"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("!"),j+="(?!";continue}if(Q[Xe]==="{"){Qe.push("BRACE"),j+="(?:";continue}if(Q[Xe]==="}"&&Qe[Qe.length-1]==="BRACE"){Qe.pop(),j+=")";continue}if(Q[Xe]===","&&Qe[Qe.length-1]==="BRACE"){j+="|";continue}if(Q[Xe]==="*"){if(ke&&Q[Xe+1]==="(")Xe++,Qe.push("*"),j+="(?:";else{const ht=Q[Xe-1];let dt=1;for(;Q[Xe+1]==="*";)Xe++,dt++;const at=Q[Xe+1];$&&dt===2&&[...J.seps,void 0].includes(ht)&&[...J.seps,void 0].includes(at)?(j+=J.globstar,ze=!0):j+=J.wildcard}continue}j+=W.includes(Q[Xe])?`\\${Q[Xe]}`:Q[Xe]}if(Qe.length>0||ut||rt){j="";for(const ht of Q.slice(Be,Xe))j+=W.includes(ht)?`\\${ht}`:ht,ze=!1}for(Ne+=j,ze||(Ne+=Xe<Q.length?J.sep:J.sepMaybe,ze=!0);J.seps.includes(Q[Xe]);)Xe++;Be=Xe}return Ne=`^${Ne}$`,new RegExp(Ne,ae?"i":"")}const se={sep:"(?:\\\\|/)+",sepMaybe:"(?:\\\\|/)*",seps:["\\","/"],globstar:"(?:[^\\\\/]*(?:\\\\|/|$)+)*",wildcard:"[^\\\\/]*",escapePrefix:"`"};function de(J,Q={}){return ie(se,J,Q)}function be(J){const Q={"{":"}","(":")","[":"]"},ke=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(J==="")return!1;let $;for(;$=ke.exec(J);){if($[2])return!0;let ae=$.index+$[0].length;const Ie=$[1],Ne=Ie?Q[Ie]:null;if(Ie&&Ne){const Be=J.indexOf(Ne,ae);Be!==-1&&(ae=Be+1)}J=J.slice(ae)}return!1}function xe(J,Q={}){const{globstar:ke=!1}=Q;if(J.match(/\0/g))throw new Error(`Glob contains invalid characters: "${J}"`);if(!ke)return q(J);const $=v.source,ae=new RegExp(`(?<=(${$}|^)\\*\\*${$})\\.\\.(?=${$}|$)`,"g");return q(J.replace(ae,"\0")).replace(/\0/g,"..")}function Te(J,Q={}){const{globstar:ke=!1}=Q;if(!ke||J.length===0)return N(...J);let $;for(const ae of J){const Ie=ae;Ie.length>0&&($?$+=`${C}${Ie}`:$=Ie)}return $?xe($,{globstar:ke}):"."}return Pt.DELIMITER=T,Pt.SEPARATOR=C,Pt.SEPARATOR_PATTERN=v,Pt.basename=x,Pt.common=I,Pt.dirname=b,Pt.extname=w,Pt.format=F,Pt.fromFileUrl=S,Pt.globToRegExp=de,Pt.isAbsolute=L,Pt.isGlob=be,Pt.join=N,Pt.joinGlobs=Te,Pt.normalize=q,Pt.normalizeGlob=xe,Pt.parse=_,Pt.relative=z,Pt.resolve=G,Pt.toFileUrl=re,Pt.toNamespacedPath=Fe,Pt}var Ja,Pd;function Z1(){if(Pd)return Ja;Pd=1,Ja=function(e,n){for(var o=[],t=0;t<e.length;t++){var l=n(e[t],t);a(l)?o.push.apply(o,l):o.push(l)}return o};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};return Ja}var Ya,Fd;function ew(){if(Fd)return Ya;Fd=1,Ya=a;function a(o,t,l){o instanceof RegExp&&(o=e(o,l)),t instanceof RegExp&&(t=e(t,l));var p=n(o,t,l);return p&&{start:p[0],end:p[1],pre:l.slice(0,p[0]),body:l.slice(p[0]+o.length,p[1]),post:l.slice(p[1]+t.length)}}function e(o,t){var l=t.match(o);return l?l[0]:null}a.range=n;function n(o,t,l){var p,u,r,m,i,c=l.indexOf(o),h=l.indexOf(t,c+1),s=c;if(c>=0&&h>0){if(o===t)return[c,h];for(p=[],r=l.length;s>=0&&!i;)s==c?(p.push(s),c=l.indexOf(o,s+1)):p.length==1?i=[p.pop(),h]:(u=p.pop(),u<r&&(r=u,m=h),h=l.indexOf(t,s+1)),s=c<h&&c>=0?c:h;p.length&&(i=[r,m])}return i}return Ya}var Qa,Rd;function tw(){if(Rd)return Qa;Rd=1;var a=Z1(),e=ew();Qa=c;var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",t="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function u(E){return parseInt(E,10)==E?parseInt(E,10):E.charCodeAt(0)}function r(E){return E.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(t).split("\\,").join(l).split("\\.").join(p)}function m(E){return E.split(n).join("\\").split(o).join("{").split(t).join("}").split(l).join(",").split(p).join(".")}function i(E){if(!E)return[""];var S=[],x=e("{","}",E);if(!x)return E.split(",");var T=x.pre,C=x.body,v=x.post,A=T.split(",");A[A.length-1]+="{"+C+"}";var b=i(v);return v.length&&(A[A.length-1]+=b.shift(),A.push.apply(A,b)),S.push.apply(S,A),S}function c(E){return E?(E.substr(0,2)==="{}"&&(E="\\{\\}"+E.substr(2)),d(r(E),!0).map(m)):[]}function h(E){return"{"+E+"}"}function s(E){return/^-?0\d/.test(E)}function f(E,S){return E<=S}function g(E,S){return E>=S}function d(E,S){var x=[],T=e("{","}",E);if(!T||/\$$/.test(T.pre))return[E];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(T.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(T.body),A=C||v,b=T.body.indexOf(",")>=0;if(!A&&!b)return T.post.match(/,.*\}/)?(E=T.pre+"{"+T.body+t+T.post,d(E)):[E];var w;if(A)w=T.body.split(/\.\./);else if(w=i(T.body),w.length===1&&(w=d(w[0],!1).map(h),w.length===1)){var R=T.post.length?d(T.post,!1):[""];return R.map(function(W){return T.pre+w[0]+W})}var k=T.pre,R=T.post.length?d(T.post,!1):[""],F;if(A){var L=u(w[0]),P=u(w[1]),O=Math.max(w[0].length,w[1].length),q=w.length==3?Math.abs(u(w[2])):1,N=f,_=P<L;_&&(q*=-1,N=g);var G=w.some(s);F=[];for(var B=L;N(B,P);B+=q){var z;if(v)z=String.fromCharCode(B),z==="\\"&&(z="");else if(z=String(B),G){var H=O-z.length;if(H>0){var ce=new Array(H+1).join("0");B<0?z="-"+ce+z.slice(1):z=ce+z}}F.push(z)}}else F=a(w,function(I){return d(I,!1)});for(var re=0;re<F.length;re++)for(var Fe=0;Fe<R.length;Fe++){var X=k+F[re]+R[Fe];(!S||A||X)&&x.push(X)}return x}return Qa}var Za,_d;function rw(){if(_d)return Za;_d=1,Za=s,s.Minimatch=f;var a=function(){try{return pn}catch{}}()||{sep:"/"};s.sep=a.sep;var e=s.GLOBSTAR=f.GLOBSTAR={},n=tw(),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},t="[^/]",l=t+"*?",p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",r=m("().*{}+?[]^$\\!");function m(w){return w.split("").reduce(function(k,R){return k[R]=!0,k},{})}var i=/\/+/;s.filter=c;function c(w,k){return k=k||{},function(R,F,L){return s(R,w,k)}}function h(w,k){k=k||{};var R={};return Object.keys(w).forEach(function(F){R[F]=w[F]}),Object.keys(k).forEach(function(F){R[F]=k[F]}),R}s.defaults=function(w){if(!w||typeof w!="object"||!Object.keys(w).length)return s;var k=s,R=function(L,P,O){return k(L,P,h(w,O))};return R.Minimatch=function(L,P){return new k.Minimatch(L,h(w,P))},R.Minimatch.defaults=function(L){return k.defaults(h(w,L)).Minimatch},R.filter=function(L,P){return k.filter(L,h(w,P))},R.defaults=function(L){return k.defaults(h(w,L))},R.makeRe=function(L,P){return k.makeRe(L,h(w,P))},R.braceExpand=function(L,P){return k.braceExpand(L,h(w,P))},R.match=function(F,L,P){return k.match(F,L,h(w,P))},R},f.defaults=function(w){return s.defaults(w).Minimatch};function s(w,k,R){return x(k),R||(R={}),!R.nocomment&&k.charAt(0)==="#"?!1:new f(k,R).match(w)}function f(w,k){if(!(this instanceof f))return new f(w,k);x(w),k||(k={}),w=w.trim(),!k.allowWindowsEscape&&a.sep!=="/"&&(w=w.split(a.sep).join("/")),this.options=k,this.set=[],this.pattern=w,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!k.partial,this.make()}f.prototype.debug=function(){},f.prototype.make=g;function g(){var w=this.pattern,k=this.options;if(!k.nocomment&&w.charAt(0)==="#"){this.comment=!0;return}if(!w){this.empty=!0;return}this.parseNegate();var R=this.globSet=this.braceExpand();k.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,R),R=this.globParts=R.map(function(F){return F.split(i)}),this.debug(this.pattern,R),R=R.map(function(F,L,P){return F.map(this.parse,this)},this),this.debug(this.pattern,R),R=R.filter(function(F){return F.indexOf(!1)===-1}),this.debug(this.pattern,R),this.set=R}f.prototype.parseNegate=d;function d(){var w=this.pattern,k=!1,R=this.options,F=0;if(!R.nonegate){for(var L=0,P=w.length;L<P&&w.charAt(L)==="!";L++)k=!k,F++;F&&(this.pattern=w.substr(F)),this.negate=k}}s.braceExpand=function(w,k){return E(w,k)},f.prototype.braceExpand=E;function E(w,k){return k||(this instanceof f?k=this.options:k={}),w=typeof w>"u"?this.pattern:w,x(w),k.nobrace||!/\{(?:(?!\{).)*\}/.test(w)?[w]:n(w)}var S=1024*64,x=function(w){if(typeof w!="string")throw new TypeError("invalid pattern");if(w.length>S)throw new TypeError("pattern is too long")};f.prototype.parse=C;var T={};function C(w,k){x(w);var R=this.options;if(w==="**")if(R.noglobstar)w="*";else return e;if(w==="")return"";var F="",L=!!R.nocase,P=!1,O=[],q=[],N,_=!1,G=-1,B=-1,z=w.charAt(0)==="."?"":R.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function ce(){if(N){switch(N){case"*":F+=l,L=!0;break;case"?":F+=t,L=!0;break;default:F+="\\"+N;break}H.debug("clearStateChar %j %j",N,F),N=!1}}for(var re=0,Fe=w.length,X;re<Fe&&(X=w.charAt(re));re++){if(this.debug("%s %s %s %j",w,re,F,X),P&&r[X]){F+="\\"+X,P=!1;continue}switch(X){case"/":return!1;case"\\":ce(),P=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",w,re,F,X),_){this.debug(" in class"),X==="!"&&re===B+1&&(X="^"),F+=X;continue}H.debug("call clearStateChar %j",N),ce(),N=X,R.noext&&ce();continue;case"(":if(_){F+="(";continue}if(!N){F+="\\(";continue}O.push({type:N,start:re-1,reStart:F.length,open:o[N].open,close:o[N].close}),F+=N==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",N,F),N=!1;continue;case")":if(_||!O.length){F+="\\)";continue}ce(),L=!0;var I=O.pop();F+=I.close,I.type==="!"&&q.push(I),I.reEnd=F.length;continue;case"|":if(_||!O.length||P){F+="\\|",P=!1;continue}ce(),F+="|";continue;case"[":if(ce(),_){F+="\\"+X;continue}_=!0,B=re,G=F.length,F+=X;continue;case"]":if(re===B+1||!_){F+="\\"+X,P=!1;continue}var W=w.substring(B+1,re);try{RegExp("["+W+"]")}catch{var oe=this.parse(W,T);F=F.substr(0,G)+"\\["+oe[0]+"\\]",L=L||oe[1],_=!1;continue}L=!0,_=!1,F+=X;continue;default:ce(),P?P=!1:r[X]&&!(X==="^"&&_)&&(F+="\\"),F+=X}}for(_&&(W=w.substr(B+1),oe=this.parse(W,T),F=F.substr(0,G)+"\\["+oe[0],L=L||oe[1]),I=O.pop();I;I=O.pop()){var ie=F.slice(I.reStart+I.open.length);this.debug("setting tail",F,I),ie=ie.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Qe,ut,rt){return rt||(rt="\\"),ut+ut+rt+"|"}),this.debug(`tail=%j
|
|
50
|
+
`;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+s+'"');default:return f}})},(i=r.match(/^'([\s\S]*)'$/))?{type:"Just",value:m(i[1],"'")}:(i=r.match(/^"([\s\S]*)"$/))?{type:"Just",value:m(i[1],'"')}:{type:"Just",value:r})}};function o(r,m,i){var c,h;return n.call(r).slice(8,-1)!=="Array"?{type:"Nothing"}:(c=m.of,{type:"Just",value:function(){var s,f,g,d=[];for(s=0,g=(f=r).length;s<g;++s)h=f[s],d.push(u(h,c,i));return d}()})}function t(r,m,i){var c,h,s,f,g,d,E;if(n.call(r).slice(8,-1)!=="Array")return{type:"Nothing"};for(c=[],h=0,s=0,g=(f=m.of).length;s<g;++s)d=f[s],E=u(r[h],d,i),n.call(E).slice(8,-1)!=="Undefined"&&c.push(E),h++;return r.length<=h?{type:"Just",value:c}:{type:"Nothing"}}function l(r,m,i){var c,h,s;return n.call(r).slice(8,-1)!=="Object"?{type:"Nothing"}:(c=m.of,{type:"Just",value:function(){var f,g={};for(h in f=r)s=f[h],g[u(h,[{type:"String"}],i)]=u(s,c[h]||[{type:"*"}],i);return g}()})}function p(r,m,i){var c,h,s,f;if(c=m.type,h=m.structure,c){if(s=((f=i.customTypes[c])!=null?f.cast:void 0)||e[c],!s)throw new Error("Type not defined: "+c+".");return s(r,i,u)}else switch(h){case"array":return o(r,m,i);case"tuple":return t(r,m,i);case"fields":return l(r,m,i)}}function u(r,m,i){var c,h,s,f,g,d;for(c=0,h=m.length;c<h;++c)if(s=m[c],f=p(r,s,i),g=f.type,d=f.value,g!=="Nothing"&&a([s],d,{customTypes:i.customTypes}))return d;throw new Error("Value "+JSON.stringify(r)+" does not type check against "+JSON.stringify(m)+".")}Ma.exports=function(r,m,i){return!i.explicit&&m.length===1&&m[0].type==="String"?r:u(r,m,i)}}).call(this)),Ma.exports}var gd;function X1(){return gd||(gd=1,(function(){var a,e,n,o,t,l;a=G1(),e=K1(),n=hd().parseType,o="0.4.1",t=function(p,u,r){return r==null&&(r={}),r.explicit==null&&(r.explicit=!1),r.customTypes==null&&(r.customTypes={}),e(a(p,u,r),p,r)},l=function(p,u,r){return t(n(p),u,r)},Pa.exports={VERSION:o,parse:l,parsedTypeParse:t}}).call(this)),Pa.exports}var yd;function vd(){if(yd)return Dr;yd=1;var a=X1();const e=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function o(g){const d=Array.isArray(g)?g[0]:g;return n.has(d)}function t(g){return Object.values(g).every(o)}class l{label="";value="";justification="";constructor(d,E,S){this.label=d,this.value=E,this.justification=S}}class p{parseStringConfig(d){const E={};return d.trim().replace(new RegExp("(?<!\\s)\\s*([:,])\\s*","gu"),"$1").split(/\s|,+/u).forEach(x=>{if(!x)return;const[T,C=null]=x.split(":");E[T]=C}),E}parseJSONLikeConfig(d){try{const S=a.parse("Object",d)||{};if(t(S))return{ok:!0,config:S}}catch{}const E=d.replace(new RegExp("(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):","gu"),'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{ok:!0,config:JSON.parse(`{${E}}`)}}catch(S){const x=S instanceof Error?S.message:String(S);return{ok:!1,error:{message:`Failed to parse JSON from '${E}': ${x}`}}}}parseListConfig(d){const E={};return d.split(",").forEach(S=>{const x=S.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");x&&(E[x]=!0)}),E}#e(d){const E=/\s-{2,}\s/u.exec(d);if(!E)return{directivePart:d.trim(),justificationPart:""};const S=d.slice(0,E.index).trim(),x=d.slice(E.index+E[0].length).trim();return{directivePart:S,justificationPart:x}}parseDirective(d){const{directivePart:E,justificationPart:S}=this.#e(d),x=e.exec(E);if(!x)return;const T=x[1],C=E.slice(x.index+T.length);return new l(T,C.trim(),S)}}function u(g){return"loc"in g}function r(g){return"position"in g}function m(g){return"range"in g}function i(g){return"position"in g}class c{type="visit";kind=1;target;phase;args;constructor({target:d,phase:E,args:S}){this.target=d,this.phase=E,this.args=S}}class h{type="call";kind=2;target;args;constructor({target:d,args:E}){this.target=d,this.args=E}}class s{type;node;value;justification;constructor({type:d,node:E,value:S,justification:x}){this.type=d,this.node=E,this.value=S,this.justification=x}}class f{#e;ast;text;constructor({text:d,ast:E,lineEndingPattern:S=/\r?\n/u}){this.ast=E,this.text=d,this.#e=d.split(S)}getLoc(d){if(u(d))return d.loc;if(r(d))return d.position;throw new Error("Custom getLoc() method must be implemented in the subclass.")}getRange(d){if(m(d))return d.range;if(i(d))return[d.position.start.offset,d.position.end.offset];throw new Error("Custom getRange() method must be implemented in the subclass.")}getParent(d){throw new Error("Not implemented.")}getAncestors(d){if(!d)throw new TypeError("Missing required argument: node.");const E=[];for(let S=this.getParent(d);S;S=this.getParent(S))E.push(S);return E.reverse()}getText(d,E,S){if(d){const x=this.getRange(d);return this.text.slice(Math.max(x[0]-(E||0),0),x[1]+(S||0))}return this.text}get lines(){return this.#e}traverse(){throw new Error("Not implemented.")}}return Dr.CallMethodStep=h,Dr.ConfigCommentParser=p,Dr.Directive=s,Dr.TextSourceCodeBase=f,Dr.VisitNodeStep=c,Dr}var Va,Ed;function J1(){if(Ed)return Va;Ed=1;const{isCommentToken:a}=qt(),e=L1(),n=Fn(),o=ra(),t=Gh(),{directivesPattern:l}=Hh(),p=j1(),{ConfigCommentParser:u,VisitNodeStep:r,CallMethodStep:m,Directive:i}=vd(),c=qn(),h=new u;function s(w){if(!w)throw new TypeError(`Unexpected empty AST. (${w})`);if(!w.tokens)throw new TypeError("AST is missing the tokens array.");if(!w.comments)throw new TypeError("AST is missing the comments array.");if(!w.loc)throw new TypeError("AST is missing location information.");if(!w.range)throw new TypeError("AST is missing range information")}function f(w){switch(w){case 3:return t.es3;case 5:return t.es5;default:return w<2015?t[`es${w+2009}`]:t[`es${w}`]}}function g(w){return w.type==="ExportDefaultDeclaration"||w.type==="ExportNamedDeclaration"||w.type==="ExportAllDeclaration"||w.type==="ExportSpecifier"}function d(w,k){const R=[];let F=0,L=0;for(;F<w.length||L<k.length;)L>=k.length||F<w.length&&w[F].range[0]<k[L].range[0]?R.push(w[F++]):R.push(k[L++]);return R}function E(w){switch(w){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${w}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function S(w,k){return w.range[0]<=k.range[0]&&w.range[1]>=k.range[0]||k.range[0]<=w.range[0]&&k.range[1]>=w.range[0]}function x(w,k,R,F){if(S(k,R))return!1;const[L,P]=k.range[1]<=R.range[0]?[k,R]:[R,k],O=w.getLastToken(L)||L,q=w.getFirstToken(P)||P;let N=O;for(;N!==q;){const _=w.getTokenAfter(N,{includeComments:!0});if(N.range[1]!==_.range[0]||F&&_!==q&&_.type==="JSXText"&&/\s/u.test(_.value))return!0;N=_}return!1}function T(w,k){let R=0,F=w.length;for(;R<F;){const L=(R+F)/2|0;k<w[L]?F=L:R=L+1}return R}function C(w,k={},R={}){for(const L of new Set([...Object.keys(k),...Object.keys(R)])){const P=k[L]===void 0?void 0:E(k[L]),q=R[L]&&R[L].value||P,N=R[L]&&R[L].comments;if(q==="off")continue;let _=w.set.get(L);_||(_=new c.Variable(L,w),w.variables.push(_),w.set.set(L,_)),_.eslintImplicitGlobalSetting=P,_.eslintExplicitGlobal=N!==void 0,_.eslintExplicitGlobalComments=N,_.writeable=q==="writable"}w.through=w.through.filter(L=>{const P=L.identifier.name,O=w.set.get(P);return O?(L.resolved=O,O.references.push(L),!1):!0});const{implicit:F}=w;typeof F=="object"&&F!==null&&(F.variables=F.variables.filter(L=>{const P=L.name;return w.set.has(P)?(F.set.delete(P),!1):!0}),F.left&&(F.left=F.left.filter(L=>!w.set.has(L.identifier.name))))}function v(w,k){Object.keys(k).forEach(R=>{const F=w.set.get(R);F&&(F.eslintUsed=!0,F.eslintExported=!0)})}const A=Symbol("caches");class b extends e{#e;constructor(k,R){let F,L,P,O,q,N;typeof k=="string"?(F=k,P=R,L=!1):typeof k=="object"&&k!==null&&(F=k.text,P=k.ast,L=k.hasBOM,O=k.parserServices,q=k.scopeManager,N=k.visitorKeys),s(P),super(P.tokens,P.comments),this[A]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0],["isGlobalReference",new WeakMap]]),this.isESTree=P.type==="Program";const _=F.charCodeAt(0)===65279;this.hasBOM=_||!!L,this.text=_?F.slice(1):F,this.ast=P,this.parserServices=O||{},this.scopeManager=q||null,this.visitorKeys=N||o.DEFAULT_VISITOR_KEYS;const G=this.text.match(n.shebangPattern);G&&P.comments.length&&P.comments[0].value===G[1]&&(P.comments[0].type="Shebang"),this.tokensAndComments=d(P.tokens,P.comments),this.lines=[],this.lineStartIndices=[0];const z=n.createGlobalLinebreakMatcher();let H;for(;H=z.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),H.index)),this.lineStartIndices.push(H.index+H[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(k){return k.split(n.createGlobalLinebreakMatcher())}getText(k,R,F){return k?this.text.slice(Math.max(k.range[0]-(R||0),0),k.range[1]+(F||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(k){const R=L=>{const P=this.getTokenBefore(L,{includeComments:!0});return P&&a(P)&&P.type==="Block"&&P.value.charAt(0)==="*"&&L.loc.start.line-P.loc.end.line<=1?P:null};let F=k.parent;switch(k.type){case"ClassDeclaration":case"FunctionDeclaration":return R(g(F)?F:k);case"ClassExpression":return R(F.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(F.type!=="CallExpression"&&F.type!=="NewExpression"){for(;!this.getCommentsBefore(F).length&&!/Function/u.test(F.type)&&F.type!=="MethodDefinition"&&F.type!=="Property"&&(F=F.parent,!!F););if(F&&F.type!=="FunctionDeclaration"&&F.type!=="Program")return R(F)}return R(k);default:return null}}getNodeByRangeIndex(k){let R=null;return o.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(F){F.range[0]<=k&&k<F.range[1]?R=F:this.skip()},leave(F){F===R&&this.break()}}),R}isSpaceBetween(k,R){return x(this,k,R,!1)}isSpaceBetweenTokens(k,R){return x(this,k,R,!0)}getLocFromIndex(k){if(typeof k!="number")throw new TypeError("Expected `index` to be a number.");if(k<0||k>this.text.length)throw new RangeError(`Index out of range (requested index ${k}, but source text has length ${this.text.length}).`);if(k===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};const R=k>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:T(this.lineStartIndices,k);return{line:R,column:k-this.lineStartIndices[R-1]}}getIndexFromLoc(k){if(k===null||typeof k!="object"||typeof k.line!="number"||typeof k.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(k.line<=0)throw new RangeError(`Line number out of range (line ${k.line} requested). Line numbers should be 1-based.`);if(k.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${k.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(k.column<0)throw new RangeError(`Invalid column number (column ${k.column} requested).`);const R=this.lineStartIndices[k.line-1],F=k.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[k.line],L=R+k.column;if(k.line===this.lineStartIndices.length&&L>F||k.line<this.lineStartIndices.length&&L>=F)throw new RangeError(`Column number out of range (column ${k.column} requested, but the length of line ${k.line} is ${F-R}).`);return L}getScope(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[A].get("scopes"),F=R.get(k);if(F)return F;const L=k.type!=="Program";for(let P=k;P;P=P.parent){const O=this.scopeManager.acquire(P,L);if(O)return O.type==="function-expression-name"?(R.set(k,O.childScopes[0]),O.childScopes[0]):(R.set(k,O),O)}return R.set(k,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(k){return this.scopeManager.getDeclaredVariables(k)}getAncestors(k){if(!k)throw new TypeError("Missing required argument: node.");const R=[];for(let F=k.parent;F;F=F.parent)R.push(F);return R.reverse()}isGlobalReference(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[A].get("isGlobalReference");if(R.has(k))return R.get(k);if(k.type!=="Identifier")return R.set(k,!1),!1;const F=this.scopeManager.scopes[0].set.get(k.name);if(!F||F.defs.length>0)return R.set(k,!1),!1;const L=F.references.some(({identifier:P})=>P===k);return R.set(k,L),L}getLoc(k){return k.loc}getRange(k){return k.range}markVariableAsUsed(k,R=this.ast){const F=this.getScope(R);let L=F;F.type==="global"&&F.childScopes.length>0&&F.childScopes[0].block===this.ast&&(L=F.childScopes[0]);for(let P=L;P;P=P.upper){const O=P.variables.find(q=>q.name===k);if(O)return O.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let k=this[A].get("configNodes");return k||(k=this.ast.comments.filter(R=>{if(R.type==="Shebang")return!1;const F=h.parseDirective(R.value);return!F||!l.test(F.label)?!1:R.type!=="Line"||!!/^eslint-disable-(?:next-)?line$/u.test(F.label)}),this[A].set("configNodes",k),k)}getDisableDirectives(){const k=this[A].get("disableDirectives");if(k)return k;const R=[],F=[];this.getInlineConfigNodes().forEach(P=>{const{label:O,value:q,justification:N}=h.parseDirective(P.value),_=/^eslint-disable-(?:next-)?line$/u.test(O);if(!(P.type==="Line"&&!_)){if(O==="eslint-disable-line"&&P.loc.start.line!==P.loc.end.line){const G=`${O} comment should not span multiple lines.`;R.push({ruleId:null,message:G,loc:P.loc});return}switch(O){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const G=O.slice(7);F.push(new i({type:G,node:P,value:q,justification:N}))}}}});const L={problems:R,directives:F};return this[A].set("disableDirectives",L),L}applyLanguageOptions(k){const R=Object.assign(Object.create(null),f(k.ecmaVersion),k.sourceType==="commonjs"?t.commonjs:void 0,k.globals);this[A].get("vars").set("configGlobals",R)}applyInlineConfig(){const k=[],R=[],F={},L=Object.create(null);this.getInlineConfigNodes().forEach(O=>{const{label:q,value:N}=h.parseDirective(O.value);switch(q){case"exported":Object.assign(F,h.parseListConfig(N));break;case"globals":case"global":for(const[_,G]of Object.entries(h.parseStringConfig(N))){let B;try{B=E(G)}catch(z){k.push({ruleId:null,loc:O.loc,message:z.message});continue}L[_]?(L[_].comments.push(O),L[_].value=B):L[_]={comments:[O],value:B}}break;case"eslint":{const _=h.parseJSONLikeConfig(N);_.ok?R.push({config:{rules:_.config},loc:O.loc}):k.push({ruleId:null,loc:O.loc,message:_.error.message});break}}});const P=this[A].get("vars");return P.set("inlineGlobals",L),P.set("exportedVariables",F),{configs:R,problems:k}}finalize(){const k=this[A].get("vars"),R=k.get("configGlobals"),F=k.get("inlineGlobals"),L=k.get("exportedVariables"),P=this.scopeManager.scopes[0];C(P,R,F),L&&v(P,L)}traverse(){if(this.#e)return this.#e;const k=this.#e=[];let R={enterNode(F){k.push(new r({target:F,phase:1,args:[F,F.parent]}))},leaveNode(F){k.push(new r({target:F,phase:2,args:[F,F.parent]}))},emit(F,L){k.push(new m({target:F,args:L}))}};return this.isESTree&&(R=new p(R)),o.traverse(this.ast,{enter(F,L){F.parent=L,R.enterNode(F)},leave(F){R.leaveNode(F)},visitorKeys:this.visitorKeys}),k}}return Va=b,Va}var $a,Sd;function bd(){return Sd||(Sd=1,$a={SourceCode:J1()}),$a}var Wa,xd;function Rn(){return xd||(xd=1,Wa=a=>{if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Wa}var Ga,Cd;function wd(){if(Cd)return Ga;Cd=1;function a(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function e(o,t){if(t===void 0)return o;if(!a(o)||!a(t))return t;const l={...o,...t};for(const p of Object.keys(t))Object.prototype.propertyIsEnumerable.call(o,p)&&(l[p]=e(o[p],t[p]));return l}function n(o,t){return!o||!t?t||o||[]:[...o.map((l,p)=>e(l,p<t.length?t[p]:void 0)),...t.slice(o.length)]}return Ga={deepMergeArrays:n},Ga}var za,Ad;function Td(){if(Ad)return za;Ad=1;function a(n){if([2,"2","error"].includes(n))return"error";if([1,"1","warn"].includes(n))return"warn";if([0,"0","off"].includes(n))return"off";throw new Error(`Invalid severity value: ${n}`)}function e(n){if([2,"2","error"].includes(n))return 2;if([1,"1","warn"].includes(n))return 1;if([0,"0","off"].includes(n))return 0;throw new Error(`Invalid severity value: ${n}`)}return za={normalizeSeverityToString:a,normalizeSeverityToNumber:e},za}var Ha,kd;function Ka(){if(kd)return Ha;kd=1;const{normalizeSeverityToNumber:a}=Td(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]);function n(L){return typeof L=="object"&&L!==null}function o(L){return n(L)&&!Array.isArray(L)}function t(L){return typeof L>"u"}function l(L,P,O=new Map){let q=O.get(L);if(q){const _=q.get(P);if(_)return _}else q=new Map,O.set(L,q);const N={...L,...P};delete N.__proto__,q.set(P,N);for(const _ of Object.keys(P)){if(_==="__proto__"||!Object.prototype.propertyIsEnumerable.call(L,_))continue;const G=L[_],B=P[_];o(G)&&o(B)?N[_]=l(G,B,O):t(B)&&(N[_]=G)}return N}function p(L){const P=Array.isArray(L)?L.slice(0):[L];return P[0]=e.get(P[0]),structuredClone(P)}function u(L){for(const P of Object.keys(L))if(typeof L[P]=="function")return!0;return!1}class r extends Error{constructor(P,O){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:P,value:O}}}function m(L,P){if(typeof P!="string"&&typeof P!="number"&&!Array.isArray(P))throw new r(L,P)}class i extends Error{constructor(P,O){super(`Key "${P}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:P,value:O}}}function c(L,P){if(typeof e.get(P)>"u")throw new i(L,P)}function h(L){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(L))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${L}".`)}function s(L){if(!n(L))throw new TypeError("Expected an object.")}class f extends Error{constructor(P){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:P}}}class g extends Error{constructor(P){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:P}}}const d={merge:"replace",validate:"boolean"},E=new Set(["error","warn","off",2,1,0]),S={merge(L,P){const O=P===void 0?L:P;return typeof O=="boolean"?O?"warn":"off":a(O)},validate(L){if(!(E.has(L)||typeof L=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},x={merge(L,P){return a(P===void 0?L:P)},validate(L){if(!E.has(L))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, or 2.')}},T={merge(L={},P={}){return l(L,P)},validate:"object"},C={merge(L={},P={}){const O=l(L,P);for(const[q,N]of Object.entries(O))if(o(N)){if(u(N)){O[q]=P[q]??L[q];continue}O[q]={...O[q]};continue}return O},validate:"object"},v={merge:"replace",validate:h},A={merge(L={},P={}){const O=new Set([...Object.keys(L),...Object.keys(P)]),q={};for(const N of O)if(N!=="__proto__"){if(N in L&&N in P&&L[N]!==P[N])throw new TypeError(`Cannot redefine plugin "${N}".`);q[N]=P[N]||L[N]}return q},validate(L){if(L===null||typeof L!="object")throw new TypeError("Expected an object.");if(Array.isArray(L))throw new g(L);for(const P of Object.keys(L))if(P!=="__proto__"&&(L[P]===null||typeof L[P]!="object"))throw new TypeError(`Key "${P}": Expected an object.`)}},b={merge:"replace",validate(L){if(typeof L=="string")h(L);else if(L&&typeof L=="object"){if(typeof L.preprocess!="function"||typeof L.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},w={merge(L={},P={}){const O={...L,...P};for(const q of Object.keys(O))try{if(q==="__proto__"){delete O.__proto__;continue}if(O[q]=p(O[q]),!(q in L)||!(q in P))continue;const N=p(L[q]),_=p(P[q]);if(_.length===1){O[q]=[_[0],...N.slice(1)];continue}}catch(N){throw new Error(`Key "${q}": ${N.message}`,{cause:N})}return O},validate(L){s(L);for(const P of Object.keys(L)){if(P==="__proto__")continue;const O=L[P];m(P,O),Array.isArray(O)?c(P,O[0]):c(P,O)}}};function k(L){return{merge:"replace",validate(){throw new f(L)}}}return Ha={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(L=>[L,k(L)])),settings:T,linterOptions:{schema:{noInlineConfig:d,reportUnusedDisableDirectives:S,reportUnusedInlineConfigs:x}},language:v,languageOptions:C,processor:b,plugins:A,rules:w},hasMethod:u,assertIsRuleSeverity:c},Ha}var Xa={},It={},Dd;function Y1(){if(Dd)return It;Dd=1;function a(I){if(typeof I!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(I)}"`)}function e(I,W){if(W.length>=I.length)return I;const oe=I.length-W.length;for(let ie=W.length-1;ie>=0;--ie)if(I.charCodeAt(oe+ie)!==W.charCodeAt(ie))return I;return I.slice(0,-W.length)}function n(I,W,oe=0){let ie=!1,se=I.length;for(let de=I.length-1;de>=oe;--de)if(W(I.charCodeAt(de))){if(ie){oe=de+1;break}}else ie||(ie=!0,se=de+1);return I.slice(oe,se)}function o(I,W){if(a(I),I.length===0)return I;if(typeof W!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(W)}"`)}function t(I){if(I=I instanceof URL?I:new URL(I),I.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${I.protocol}"`);return I}function l(I){return I=t(I),decodeURIComponent(I.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function p(I,W){if(I.length<=1)return I;let oe=I.length;for(let ie=I.length-1;ie>0&&W(I.charCodeAt(ie));ie--)oe=ie;return I.slice(0,oe)}const u=46,r=47;function m(I){return I===r}function i(I,W=""){I instanceof URL&&(I=l(I)),o(I,W);const oe=n(I,m),ie=p(oe,m);return W?e(ie,W):ie}const c=":",h="/",s=/\/+/;function f(I){if(a(I),I.length===0)return"."}function g(I){I instanceof URL&&(I=l(I)),f(I);let W=-1,oe=!1;for(let ie=I.length-1;ie>=1;--ie)if(m(I.charCodeAt(ie))){if(oe){W=ie;break}}else oe=!0;return W===-1?m(I.charCodeAt(0))?"/":".":p(I.slice(0,W),m)}function d(I){I instanceof URL&&(I=l(I)),a(I);let W=-1,oe=0,ie=-1,se=!0,de=0;for(let be=I.length-1;be>=0;--be){const xe=I.charCodeAt(be);if(m(xe)){if(!se){oe=be+1;break}continue}ie===-1&&(se=!1,ie=be+1),xe===u?W===-1?W=be:de!==1&&(de=1):W!==-1&&(de=-1)}return W===-1||ie===-1||de===0||de===1&&W===ie-1&&W===oe+1?"":I.slice(W,ie)}function E(I,W){const oe=W.dir||W.root,ie=W.base||(W.name??"")+(W.ext??"");return oe?ie===I?oe:oe===W.root?oe+ie:oe+I+ie:ie}function S(I){if(I===null||typeof I!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof I}"`)}function x(I){return S(I),E("/",I)}function T(I){return a(I),I.length>0&&m(I.charCodeAt(0))}function C(I){if(a(I),I.length===0)return"."}function v(I,W,oe,ie){let se="",de=0,be=-1,xe=0,Te;for(let J=0;J<=I.length;++J){if(J<I.length)Te=I.charCodeAt(J);else{if(ie(Te))break;Te=r}if(ie(Te)){if(!(be===J-1||xe===1))if(be!==J-1&&xe===2){if(se.length<2||de!==2||se.charCodeAt(se.length-1)!==u||se.charCodeAt(se.length-2)!==u){if(se.length>2){const Q=se.lastIndexOf(oe);Q===-1?(se="",de=0):(se=se.slice(0,Q),de=se.length-1-se.lastIndexOf(oe)),be=J,xe=0;continue}else if(se.length===2||se.length===1){se="",de=0,be=J,xe=0;continue}}W&&(se.length>0?se+=`${oe}..`:se="..",de=2)}else se.length>0?se+=oe+I.slice(be+1,J):se=I.slice(be+1,J),de=J-be-1;be=J,xe=0}else Te===u&&xe!==-1?++xe:xe=-1}return se}function A(I){I instanceof URL&&(I=l(I)),C(I);const W=m(I.charCodeAt(0)),oe=m(I.charCodeAt(I.length-1));return I=v(I,!W,"/",m),I.length===0&&!W&&(I="."),I.length>0&&oe&&(I+="/"),W?`/${I}`:I}function b(I,...W){if(I===void 0)return".";I instanceof URL&&(I=l(I)),W=I?[I,...W]:W,W.forEach(ie=>a(ie));const oe=W.filter(ie=>ie.length>0).join("/");return oe===""?".":A(oe)}function w(I){a(I);const W={root:"",dir:"",base:"",ext:"",name:""};if(I.length===0)return W;const oe=m(I.charCodeAt(0));let ie;oe?(W.root="/",ie=1):ie=0;let se=-1,de=0,be=-1,xe=!0,Te=I.length-1,J=0;for(;Te>=ie;--Te){const Q=I.charCodeAt(Te);if(m(Q)){if(!xe){de=Te+1;break}continue}be===-1&&(xe=!1,be=Te+1),Q===u?se===-1?se=Te:J!==1&&(J=1):se!==-1&&(J=-1)}return se===-1||be===-1||J===0||J===1&&se===be-1&&se===de+1?(be!==-1&&(de===0&&oe?W.base=W.name=I.slice(1,be):W.base=W.name=I.slice(de,be)),W.base=W.base||"/"):(de===0&&oe?(W.name=I.slice(1,se),W.base=I.slice(1,be)):(W.name=I.slice(de,se),W.base=I.slice(de,be)),W.ext=I.slice(se,be)),de>0?W.dir=p(I.slice(0,de-1),m):oe&&(W.dir="/"),W}function k(...I){let W="",oe=!1;for(let ie=I.length-1;ie>=-1&&!oe;ie--){let se;if(ie>=0)se=I[ie];else{const{Deno:de}=globalThis;if(typeof de?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");se=de.cwd()}a(se),se.length!==0&&(W=`${se}/${W}`,oe=m(se.charCodeAt(0)))}return W=v(W,!oe,"/",m),oe?W.length>0?`/${W}`:"/":W.length>0?W:"."}function R(I,W){if(a(I),a(W),I===W)return""}function F(I,W){if(R(I,W),I=k(I),W=k(W),I===W)return"";let oe=1;const ie=I.length;for(;oe<ie&&m(I.charCodeAt(oe));++oe);const se=ie-oe;let de=1;const be=W.length;for(;de<be&&m(W.charCodeAt(de));++de);const xe=be-de,Te=se<xe?se:xe;let J=-1,Q=0;for(;Q<=Te;++Q){if(Q===Te){if(xe>Te){if(m(W.charCodeAt(de+Q)))return W.slice(de+Q+1);if(Q===0)return W.slice(de+Q)}else se>Te&&(m(I.charCodeAt(oe+Q))?J=Q:Q===0&&(J=0));break}const $=I.charCodeAt(oe+Q),ae=W.charCodeAt(de+Q);if($!==ae)break;m($)&&(J=Q)}let ke="";for(Q=oe+J+1;Q<=ie;++Q)(Q===ie||m(I.charCodeAt(Q)))&&(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+W.slice(de+J):(de+=J,m(W.charCodeAt(de))&&++de,W.slice(de))}const L={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function P(I){return I.replaceAll(/[\s]/g,W=>L[W]??W)}function O(I){if(!T(I))throw new TypeError(`Path must be absolute: received "${I}"`);const W=new URL("file:///");return W.pathname=P(I.replace(/%/g,"%25").replace(/\\/g,"%5C")),W}function q(I){return I}function N(I,W){const[oe="",...ie]=I,se=oe.split(W);let de=se.length,be="";for(const xe of ie){const Te=xe.split(W);Te.length<=de&&(de=Te.length,be="");for(let J=0;J<de;J++)if(Te[J]!==se[J]){de=J,be=J===0?"":W;break}}return se.slice(0,de).join(W)+be}function _(I){return N(I,h)}const G=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],B=["-","\\","]"];function z(I,W,{extended:oe=!0,globstar:ie=!0,caseInsensitive:se=!1}={}){if(W==="")return/(?!)/;let de=W.length;for(;de>1&&I.seps.includes(W[de-1]);de--);W=W.slice(0,de);let be="";for(let xe=0;xe<W.length;){let Te="";const J=[];let Q=!1,ke=!1,$=!1,ae=xe;for(;ae<W.length&&!I.seps.includes(W[ae]);ae++){if(ke){ke=!1,Te+=(Q?B:G).includes(W[ae])?`\\${W[ae]}`:W[ae];continue}if(W[ae]===I.escapePrefix){ke=!0;continue}if(W[ae]==="[")if(Q){if(W[ae+1]===":"){let Ie=ae+1,Ne="";for(;W[Ie+1]!==void 0&&W[Ie+1]!==":";)Ne+=W[Ie+1],Ie++;if(W[Ie+1]===":"&&W[Ie+2]==="]"){ae=Ie+2,Ne==="alnum"?Te+="\\dA-Za-z":Ne==="alpha"?Te+="A-Za-z":Ne==="ascii"?Te+="\0-":Ne==="blank"?Te+=" ":Ne==="cntrl"?Te+="\0-":Ne==="digit"?Te+="\\d":Ne==="graph"?Te+="!-~":Ne==="lower"?Te+="a-z":Ne==="print"?Te+=" -~":Ne==="punct"?Te+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:Ne==="space"?Te+="\\s\v":Ne==="upper"?Te+="A-Z":Ne==="word"?Te+="\\w":Ne==="xdigit"&&(Te+="\\dA-Fa-f");continue}}}else{Q=!0,Te+="[",W[ae+1]==="!"?(ae++,Te+="^"):W[ae+1]==="^"&&(ae++,Te+="\\^");continue}if(W[ae]==="]"&&Q){Q=!1,Te+="]";continue}if(Q){Te+=W[ae];continue}if(W[ae]===")"&&J.length>0&&J[J.length-1]!=="BRACE"){Te+=")";const Ie=J.pop();Ie==="!"?Te+=I.wildcard:Ie!=="@"&&(Te+=Ie);continue}if(W[ae]==="|"&&J.length>0&&J[J.length-1]!=="BRACE"){Te+="|";continue}if(W[ae]==="+"&&oe&&W[ae+1]==="("){ae++,J.push("+"),Te+="(?:";continue}if(W[ae]==="@"&&oe&&W[ae+1]==="("){ae++,J.push("@"),Te+="(?:";continue}if(W[ae]==="?"){oe&&W[ae+1]==="("?(ae++,J.push("?"),Te+="(?:"):Te+=".";continue}if(W[ae]==="!"&&oe&&W[ae+1]==="("){ae++,J.push("!"),Te+="(?!";continue}if(W[ae]==="{"){J.push("BRACE"),Te+="(?:";continue}if(W[ae]==="}"&&J[J.length-1]==="BRACE"){J.pop(),Te+=")";continue}if(W[ae]===","&&J[J.length-1]==="BRACE"){Te+="|";continue}if(W[ae]==="*"){if(oe&&W[ae+1]==="(")ae++,J.push("*"),Te+="(?:";else{const Ie=W[ae-1];let Ne=1;for(;W[ae+1]==="*";)ae++,Ne++;const Be=W[ae+1];ie&&Ne===2&&[...I.seps,void 0].includes(Ie)&&[...I.seps,void 0].includes(Be)?(Te+=I.globstar,$=!0):Te+=I.wildcard}continue}Te+=G.includes(W[ae])?`\\${W[ae]}`:W[ae]}if(J.length>0||Q||ke){Te="";for(const Ie of W.slice(xe,ae))Te+=G.includes(Ie)?`\\${Ie}`:Ie,$=!1}for(be+=Te,$||(be+=ae<W.length?I.sep:I.sepMaybe,$=!0);I.seps.includes(W[ae]);)ae++;xe=ae}return be=`^${be}$`,new RegExp(be,se?"i":"")}const H={sep:"/+",sepMaybe:"/*",seps:["/"],globstar:"(?:[^/]*(?:/|$)+)*",wildcard:"[^/]*",escapePrefix:"\\"};function ce(I,W={}){return z(H,I,W)}function re(I){const W={"{":"}","(":")","[":"]"},oe=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(I==="")return!1;let ie;for(;ie=oe.exec(I);){if(ie[2])return!0;let se=ie.index+ie[0].length;const de=ie[1],be=de?W[de]:null;if(de&&be){const xe=I.indexOf(be,se);xe!==-1&&(se=xe+1)}I=I.slice(se)}return!1}function Fe(I,W={}){const{globstar:oe=!1}=W;if(I.match(/\0/g))throw new Error(`Glob contains invalid characters: "${I}"`);if(!oe)return A(I);const ie=s.source,se=new RegExp(`(?<=(${ie}|^)\\*\\*${ie})\\.\\.(?=${ie}|$)`,"g");return A(I.replace(se,"\0")).replace(/\0/g,"..")}function X(I,W={}){const{globstar:oe=!1}=W;if(!oe||I.length===0)return b(...I);let ie;for(const se of I){const de=se;de.length>0&&(ie?ie+=`${h}${de}`:ie=de)}return ie?Fe(ie,{globstar:oe}):"."}return It.DELIMITER=c,It.SEPARATOR=h,It.SEPARATOR_PATTERN=s,It.basename=i,It.common=_,It.dirname=g,It.extname=d,It.format=x,It.fromFileUrl=l,It.globToRegExp=ce,It.isAbsolute=T,It.isGlob=re,It.join=b,It.joinGlobs=X,It.normalize=A,It.normalizeGlob=Fe,It.parse=w,It.relative=F,It.resolve=k,It.toFileUrl=O,It.toNamespacedPath=q,It}var Pt={},Id;function Q1(){if(Id)return Pt;Id=1;function a(J){if(typeof J!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(J)}"`)}function e(J,Q){if(Q.length>=J.length)return J;const ke=J.length-Q.length;for(let $=Q.length-1;$>=0;--$)if(J.charCodeAt(ke+$)!==Q.charCodeAt($))return J;return J.slice(0,-Q.length)}function n(J,Q,ke=0){let $=!1,ae=J.length;for(let Ie=J.length-1;Ie>=ke;--Ie)if(Q(J.charCodeAt(Ie))){if($){ke=Ie+1;break}}else $||($=!0,ae=Ie+1);return J.slice(ke,ae)}function o(J,Q){if(a(J),J.length===0)return J;if(typeof Q!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(Q)}"`)}const t=65,l=97,p=90,u=122,r=46,m=47,i=92,c=58,h=63;function s(J,Q){if(J.length<=1)return J;let ke=J.length;for(let $=J.length-1;$>0&&Q(J.charCodeAt($));$--)ke=$;return J.slice(0,ke)}function f(J){return J===m}function g(J){return J===m||J===i}function d(J){return J>=l&&J<=u||J>=t&&J<=p}function E(J){if(J=J instanceof URL?J:new URL(J),J.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${J.protocol}"`);return J}function S(J){J=E(J);let Q=decodeURIComponent(J.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return J.hostname!==""&&(Q=`\\\\${J.hostname}${Q}`),Q}function x(J,Q=""){J instanceof URL&&(J=S(J)),o(J,Q);let ke=0;if(J.length>=2){const Ie=J.charCodeAt(0);d(Ie)&&J.charCodeAt(1)===c&&(ke=2)}const $=n(J,g,ke),ae=s($,g);return Q?e(ae,Q):ae}const T=";",C="\\",v=/[\\/]+/;function A(J){if(a(J),J.length===0)return"."}function b(J){J instanceof URL&&(J=S(J)),A(J);const Q=J.length;let ke=-1,$=-1,ae=!0,Ie=0;const Ne=J.charCodeAt(0);if(Q>1)if(g(Ne)){if(ke=Ie=1,g(J.charCodeAt(1))){let Be=2,j=Be;for(;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be===Q)return J;Be!==j&&(ke=Ie=Be+1)}}}}else d(Ne)&&J.charCodeAt(1)===c&&(ke=Ie=2,Q>2&&g(J.charCodeAt(2))&&(ke=Ie=3));else if(g(Ne))return J;for(let Be=Q-1;Be>=Ie;--Be)if(g(J.charCodeAt(Be))){if(!ae){$=Be;break}}else ae=!1;if($===-1){if(ke===-1)return".";$=ke}return s(J.slice(0,$),f)}function w(J){J instanceof URL&&(J=S(J)),a(J);let Q=0,ke=-1,$=0,ae=-1,Ie=!0,Ne=0;J.length>=2&&J.charCodeAt(1)===c&&d(J.charCodeAt(0))&&(Q=$=2);for(let Be=J.length-1;Be>=Q;--Be){const j=J.charCodeAt(Be);if(g(j)){if(!Ie){$=Be+1;break}continue}ae===-1&&(Ie=!1,ae=Be+1),j===r?ke===-1?ke=Be:Ne!==1&&(Ne=1):ke!==-1&&(Ne=-1)}return ke===-1||ae===-1||Ne===0||Ne===1&&ke===ae-1&&ke===$+1?"":J.slice(ke,ae)}function k(J,Q){const ke=Q.dir||Q.root,$=Q.base||(Q.name??"")+(Q.ext??"");return ke?$===J?ke:ke===Q.root?ke+$:ke+J+$:$}function R(J){if(J===null||typeof J!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof J}"`)}function F(J){return R(J),k("\\",J)}function L(J){a(J);const Q=J.length;if(Q===0)return!1;const ke=J.charCodeAt(0);return g(ke)?!0:!!(d(ke)&&Q>2&&J.charCodeAt(1)===c&&g(J.charCodeAt(2)))}function P(J){if(a(J),J.length===0)return"."}function O(J,Q,ke,$){let ae="",Ie=0,Ne=-1,Be=0,j;for(let Qe=0;Qe<=J.length;++Qe){if(Qe<J.length)j=J.charCodeAt(Qe);else{if($(j))break;j=m}if($(j)){if(!(Ne===Qe-1||Be===1))if(Ne!==Qe-1&&Be===2){if(ae.length<2||Ie!==2||ae.charCodeAt(ae.length-1)!==r||ae.charCodeAt(ae.length-2)!==r){if(ae.length>2){const ut=ae.lastIndexOf(ke);ut===-1?(ae="",Ie=0):(ae=ae.slice(0,ut),Ie=ae.length-1-ae.lastIndexOf(ke)),Ne=Qe,Be=0;continue}else if(ae.length===2||ae.length===1){ae="",Ie=0,Ne=Qe,Be=0;continue}}Q&&(ae.length>0?ae+=`${ke}..`:ae="..",Ie=2)}else ae.length>0?ae+=ke+J.slice(Ne+1,Qe):ae=J.slice(Ne+1,Qe),Ie=Qe-Ne-1;Ne=Qe,Be=0}else j===r&&Be!==-1?++Be:Be=-1}return ae}function q(J){J instanceof URL&&(J=S(J)),P(J);const Q=J.length;let ke=0,$,ae=!1;const Ie=J.charCodeAt(0);if(Q>1)if(g(Ie))if(ae=!0,g(J.charCodeAt(1))){let Be=2,j=Be;for(;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){const Qe=J.slice(j,Be);for(j=Be;Be<Q&&g(J.charCodeAt(Be));++Be);if(Be<Q&&Be!==j){for(j=Be;Be<Q&&!g(J.charCodeAt(Be));++Be);if(Be===Q)return`\\\\${Qe}\\${J.slice(j)}\\`;Be!==j&&($=`\\\\${Qe}\\${J.slice(j,Be)}`,ke=Be)}}}else ke=1;else d(Ie)&&J.charCodeAt(1)===c&&($=J.slice(0,2),ke=2,Q>2&&g(J.charCodeAt(2))&&(ae=!0,ke=3));else if(g(Ie))return"\\";let Ne;return ke<Q?Ne=O(J.slice(ke),!ae,"\\",g):Ne="",Ne.length===0&&!ae&&(Ne="."),Ne.length>0&&g(J.charCodeAt(Q-1))&&(Ne+="\\"),$===void 0?ae?Ne.length>0?`\\${Ne}`:"\\":Ne:ae?Ne.length>0?`${$}\\${Ne}`:`${$}\\`:$+Ne}function N(J,...Q){if(J instanceof URL&&(J=S(J)),Q=J?[J,...Q]:Q,Q.forEach(Ne=>a(Ne)),Q=Q.filter(Ne=>Ne.length>0),Q.length===0)return".";let ke=!0,$=0;const ae=Q[0];if(g(ae.charCodeAt(0))){++$;const Ne=ae.length;Ne>1&&g(ae.charCodeAt(1))&&(++$,Ne>2&&(g(ae.charCodeAt(2))?++$:ke=!1))}let Ie=Q.join("\\");if(ke){for(;$<Ie.length&&g(Ie.charCodeAt($));++$);$>=2&&(Ie=`\\${Ie.slice($)}`)}return q(Ie)}function _(J){a(J);const Q={root:"",dir:"",base:"",ext:"",name:""},ke=J.length;if(ke===0)return Q;let $=0,ae=J.charCodeAt(0);if(ke>1){if(g(ae)){if($=1,g(J.charCodeAt(1))){let rt=2,ze=rt;for(;rt<ke&&!g(J.charCodeAt(rt));++rt);if(rt<ke&&rt!==ze){for(ze=rt;rt<ke&&g(J.charCodeAt(rt));++rt);if(rt<ke&&rt!==ze){for(ze=rt;rt<ke&&!g(J.charCodeAt(rt));++rt);rt===ke?$=rt:rt!==ze&&($=rt+1)}}}}else if(d(ae)&&J.charCodeAt(1)===c)if($=2,ke>2){if(g(J.charCodeAt(2))){if(ke===3)return Q.root=Q.dir=J,Q.base="\\",Q;$=3}}else return Q.root=Q.dir=J,Q}else if(g(ae))return Q.root=Q.dir=J,Q.base="\\",Q;$>0&&(Q.root=J.slice(0,$));let Ie=-1,Ne=$,Be=-1,j=!0,Qe=J.length-1,ut=0;for(;Qe>=$;--Qe){if(ae=J.charCodeAt(Qe),g(ae)){if(!j){Ne=Qe+1;break}continue}Be===-1&&(j=!1,Be=Qe+1),ae===r?Ie===-1?Ie=Qe:ut!==1&&(ut=1):Ie!==-1&&(ut=-1)}return Ie===-1||Be===-1||ut===0||ut===1&&Ie===Be-1&&Ie===Ne+1?Be!==-1&&(Q.base=Q.name=J.slice(Ne,Be)):(Q.name=J.slice(Ne,Ie),Q.base=J.slice(Ne,Be),Q.ext=J.slice(Ie,Be)),Q.base=Q.base||"\\",Ne>0&&Ne!==$?Q.dir=J.slice(0,Ne-1):Q.dir=Q.root,Q}function G(...J){let Q="",ke="",$=!1;for(let ae=J.length-1;ae>=-1;ae--){let Ie;const{Deno:Ne}=globalThis;if(ae>=0)Ie=J[ae];else if(Q){if(typeof Ne?.env?.get!="function"||typeof Ne?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");Ie=Ne.cwd(),(Ie===void 0||Ie.slice(0,3).toLowerCase()!==`${Q.toLowerCase()}\\`)&&(Ie=`${Q}\\`)}else{if(typeof Ne?.cwd!="function")throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");Ie=Ne.cwd()}a(Ie);const Be=Ie.length;if(Be===0)continue;let j=0,Qe="",ut=!1;const rt=Ie.charCodeAt(0);if(Be>1)if(g(rt))if(ut=!0,g(Ie.charCodeAt(1))){let ze=2,Xe=ze;for(;ze<Be&&!g(Ie.charCodeAt(ze));++ze);if(ze<Be&&ze!==Xe){const ht=Ie.slice(Xe,ze);for(Xe=ze;ze<Be&&g(Ie.charCodeAt(ze));++ze);if(ze<Be&&ze!==Xe){for(Xe=ze;ze<Be&&!g(Ie.charCodeAt(ze));++ze);ze===Be?(Qe=`\\\\${ht}\\${Ie.slice(Xe)}`,j=ze):ze!==Xe&&(Qe=`\\\\${ht}\\${Ie.slice(Xe,ze)}`,j=ze)}}}else j=1;else d(rt)&&Ie.charCodeAt(1)===c&&(Qe=Ie.slice(0,2),j=2,Be>2&&g(Ie.charCodeAt(2))&&(ut=!0,j=3));else g(rt)&&(j=1,ut=!0);if(!(Qe.length>0&&Q.length>0&&Qe.toLowerCase()!==Q.toLowerCase())&&(Q.length===0&&Qe.length>0&&(Q=Qe),$||(ke=`${Ie.slice(j)}\\${ke}`,$=ut),$&&Q.length>0))break}return ke=O(ke,!$,"\\",g),Q+($?"\\":"")+ke||"."}function B(J,Q){if(a(J),a(Q),J===Q)return""}function z(J,Q){B(J,Q);const ke=G(J),$=G(Q);if(ke===$||(J=ke.toLowerCase(),Q=$.toLowerCase(),J===Q))return"";let ae=0,Ie=J.length;for(;ae<Ie&&J.charCodeAt(ae)===i;++ae);for(;Ie-1>ae&&J.charCodeAt(Ie-1)===i;--Ie);const Ne=Ie-ae;let Be=0,j=Q.length;for(;Be<j&&Q.charCodeAt(Be)===i;++Be);for(;j-1>Be&&Q.charCodeAt(j-1)===i;--j);const Qe=j-Be,ut=Ne<Qe?Ne:Qe;let rt=-1,ze=0;for(;ze<=ut;++ze){if(ze===ut){if(Qe>ut){if(Q.charCodeAt(Be+ze)===i)return $.slice(Be+ze+1);if(ze===2)return $.slice(Be+ze)}Ne>ut&&(J.charCodeAt(ae+ze)===i?rt=ze:ze===2&&(rt=3));break}const ht=J.charCodeAt(ae+ze),dt=Q.charCodeAt(Be+ze);if(ht!==dt)break;ht===i&&(rt=ze)}if(ze!==ut&&rt===-1)return $;let Xe="";for(rt===-1&&(rt=0),ze=ae+rt+1;ze<=Ie;++ze)(ze===Ie||J.charCodeAt(ze)===i)&&(Xe.length===0?Xe+="..":Xe+="\\..");return Xe.length>0?Xe+$.slice(Be+rt,j):(Be+=rt,$.charCodeAt(Be)===i&&++Be,$.slice(Be,j))}const H={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function ce(J){return J.replaceAll(/[\s]/g,Q=>H[Q]??Q)}function re(J){if(!L(J))throw new TypeError(`Path must be absolute: received "${J}"`);const[,Q,ke]=J.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),$=new URL("file:///");if($.pathname=ce(ke.replace(/%/g,"%25")),Q!==void 0&&Q!=="localhost"&&($.hostname=Q,!$.hostname))throw new TypeError(`Invalid hostname: "${$.hostname}"`);return $}function Fe(J){if(typeof J!="string")return J;if(J.length===0)return"";const Q=G(J);if(Q.length>=3){if(Q.charCodeAt(0)===i){if(Q.charCodeAt(1)===i){const ke=Q.charCodeAt(2);if(ke!==h&&ke!==r)return`\\\\?\\UNC\\${Q.slice(2)}`}}else if(d(Q.charCodeAt(0))&&Q.charCodeAt(1)===c&&Q.charCodeAt(2)===i)return`\\\\?\\${Q}`}return J}function X(J,Q){const[ke="",...$]=J,ae=ke.split(Q);let Ie=ae.length,Ne="";for(const Be of $){const j=Be.split(Q);j.length<=Ie&&(Ie=j.length,Ne="");for(let Qe=0;Qe<Ie;Qe++)if(j[Qe]!==ae[Qe]){Ie=Qe,Ne=Qe===0?"":Q;break}}return ae.slice(0,Ie).join(Q)+Ne}function I(J){return X(J,C)}const W=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],oe=["-","\\","]"];function ie(J,Q,{extended:ke=!0,globstar:$=!0,caseInsensitive:ae=!1}={}){if(Q==="")return/(?!)/;let Ie=Q.length;for(;Ie>1&&J.seps.includes(Q[Ie-1]);Ie--);Q=Q.slice(0,Ie);let Ne="";for(let Be=0;Be<Q.length;){let j="";const Qe=[];let ut=!1,rt=!1,ze=!1,Xe=Be;for(;Xe<Q.length&&!J.seps.includes(Q[Xe]);Xe++){if(rt){rt=!1,j+=(ut?oe:W).includes(Q[Xe])?`\\${Q[Xe]}`:Q[Xe];continue}if(Q[Xe]===J.escapePrefix){rt=!0;continue}if(Q[Xe]==="[")if(ut){if(Q[Xe+1]===":"){let ht=Xe+1,dt="";for(;Q[ht+1]!==void 0&&Q[ht+1]!==":";)dt+=Q[ht+1],ht++;if(Q[ht+1]===":"&&Q[ht+2]==="]"){Xe=ht+2,dt==="alnum"?j+="\\dA-Za-z":dt==="alpha"?j+="A-Za-z":dt==="ascii"?j+="\0-":dt==="blank"?j+=" ":dt==="cntrl"?j+="\0-":dt==="digit"?j+="\\d":dt==="graph"?j+="!-~":dt==="lower"?j+="a-z":dt==="print"?j+=" -~":dt==="punct"?j+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:dt==="space"?j+="\\s\v":dt==="upper"?j+="A-Z":dt==="word"?j+="\\w":dt==="xdigit"&&(j+="\\dA-Fa-f");continue}}}else{ut=!0,j+="[",Q[Xe+1]==="!"?(Xe++,j+="^"):Q[Xe+1]==="^"&&(Xe++,j+="\\^");continue}if(Q[Xe]==="]"&&ut){ut=!1,j+="]";continue}if(ut){j+=Q[Xe];continue}if(Q[Xe]===")"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){j+=")";const ht=Qe.pop();ht==="!"?j+=J.wildcard:ht!=="@"&&(j+=ht);continue}if(Q[Xe]==="|"&&Qe.length>0&&Qe[Qe.length-1]!=="BRACE"){j+="|";continue}if(Q[Xe]==="+"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("+"),j+="(?:";continue}if(Q[Xe]==="@"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("@"),j+="(?:";continue}if(Q[Xe]==="?"){ke&&Q[Xe+1]==="("?(Xe++,Qe.push("?"),j+="(?:"):j+=".";continue}if(Q[Xe]==="!"&&ke&&Q[Xe+1]==="("){Xe++,Qe.push("!"),j+="(?!";continue}if(Q[Xe]==="{"){Qe.push("BRACE"),j+="(?:";continue}if(Q[Xe]==="}"&&Qe[Qe.length-1]==="BRACE"){Qe.pop(),j+=")";continue}if(Q[Xe]===","&&Qe[Qe.length-1]==="BRACE"){j+="|";continue}if(Q[Xe]==="*"){if(ke&&Q[Xe+1]==="(")Xe++,Qe.push("*"),j+="(?:";else{const ht=Q[Xe-1];let dt=1;for(;Q[Xe+1]==="*";)Xe++,dt++;const at=Q[Xe+1];$&&dt===2&&[...J.seps,void 0].includes(ht)&&[...J.seps,void 0].includes(at)?(j+=J.globstar,ze=!0):j+=J.wildcard}continue}j+=W.includes(Q[Xe])?`\\${Q[Xe]}`:Q[Xe]}if(Qe.length>0||ut||rt){j="";for(const ht of Q.slice(Be,Xe))j+=W.includes(ht)?`\\${ht}`:ht,ze=!1}for(Ne+=j,ze||(Ne+=Xe<Q.length?J.sep:J.sepMaybe,ze=!0);J.seps.includes(Q[Xe]);)Xe++;Be=Xe}return Ne=`^${Ne}$`,new RegExp(Ne,ae?"i":"")}const se={sep:"(?:\\\\|/)+",sepMaybe:"(?:\\\\|/)*",seps:["\\","/"],globstar:"(?:[^\\\\/]*(?:\\\\|/|$)+)*",wildcard:"[^\\\\/]*",escapePrefix:"`"};function de(J,Q={}){return ie(se,J,Q)}function be(J){const Q={"{":"}","(":")","[":"]"},ke=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(J==="")return!1;let $;for(;$=ke.exec(J);){if($[2])return!0;let ae=$.index+$[0].length;const Ie=$[1],Ne=Ie?Q[Ie]:null;if(Ie&&Ne){const Be=J.indexOf(Ne,ae);Be!==-1&&(ae=Be+1)}J=J.slice(ae)}return!1}function xe(J,Q={}){const{globstar:ke=!1}=Q;if(J.match(/\0/g))throw new Error(`Glob contains invalid characters: "${J}"`);if(!ke)return q(J);const $=v.source,ae=new RegExp(`(?<=(${$}|^)\\*\\*${$})\\.\\.(?=${$}|$)`,"g");return q(J.replace(ae,"\0")).replace(/\0/g,"..")}function Te(J,Q={}){const{globstar:ke=!1}=Q;if(!ke||J.length===0)return N(...J);let $;for(const ae of J){const Ie=ae;Ie.length>0&&($?$+=`${C}${Ie}`:$=Ie)}return $?xe($,{globstar:ke}):"."}return Pt.DELIMITER=T,Pt.SEPARATOR=C,Pt.SEPARATOR_PATTERN=v,Pt.basename=x,Pt.common=I,Pt.dirname=b,Pt.extname=w,Pt.format=F,Pt.fromFileUrl=S,Pt.globToRegExp=de,Pt.isAbsolute=L,Pt.isGlob=be,Pt.join=N,Pt.joinGlobs=Te,Pt.normalize=q,Pt.normalizeGlob=xe,Pt.parse=_,Pt.relative=z,Pt.resolve=G,Pt.toFileUrl=re,Pt.toNamespacedPath=Fe,Pt}var Ja,Pd;function Z1(){if(Pd)return Ja;Pd=1,Ja=function(e,n){for(var o=[],t=0;t<e.length;t++){var l=n(e[t],t);a(l)?o.push.apply(o,l):o.push(l)}return o};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};return Ja}var Ya,Fd;function ew(){if(Fd)return Ya;Fd=1,Ya=a;function a(o,t,l){o instanceof RegExp&&(o=e(o,l)),t instanceof RegExp&&(t=e(t,l));var p=n(o,t,l);return p&&{start:p[0],end:p[1],pre:l.slice(0,p[0]),body:l.slice(p[0]+o.length,p[1]),post:l.slice(p[1]+t.length)}}function e(o,t){var l=t.match(o);return l?l[0]:null}a.range=n;function n(o,t,l){var p,u,r,m,i,c=l.indexOf(o),h=l.indexOf(t,c+1),s=c;if(c>=0&&h>0){if(o===t)return[c,h];for(p=[],r=l.length;s>=0&&!i;)s==c?(p.push(s),c=l.indexOf(o,s+1)):p.length==1?i=[p.pop(),h]:(u=p.pop(),u<r&&(r=u,m=h),h=l.indexOf(t,s+1)),s=c<h&&c>=0?c:h;p.length&&(i=[r,m])}return i}return Ya}var Qa,Rd;function tw(){if(Rd)return Qa;Rd=1;var a=Z1(),e=ew();Qa=c;var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",t="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function u(E){return parseInt(E,10)==E?parseInt(E,10):E.charCodeAt(0)}function r(E){return E.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(t).split("\\,").join(l).split("\\.").join(p)}function m(E){return E.split(n).join("\\").split(o).join("{").split(t).join("}").split(l).join(",").split(p).join(".")}function i(E){if(!E)return[""];var S=[],x=e("{","}",E);if(!x)return E.split(",");var T=x.pre,C=x.body,v=x.post,A=T.split(",");A[A.length-1]+="{"+C+"}";var b=i(v);return v.length&&(A[A.length-1]+=b.shift(),A.push.apply(A,b)),S.push.apply(S,A),S}function c(E){return E?(E.substr(0,2)==="{}"&&(E="\\{\\}"+E.substr(2)),d(r(E),!0).map(m)):[]}function h(E){return"{"+E+"}"}function s(E){return/^-?0\d/.test(E)}function f(E,S){return E<=S}function g(E,S){return E>=S}function d(E,S){var x=[],T=e("{","}",E);if(!T||/\$$/.test(T.pre))return[E];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(T.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(T.body),A=C||v,b=T.body.indexOf(",")>=0;if(!A&&!b)return T.post.match(/,.*\}/)?(E=T.pre+"{"+T.body+t+T.post,d(E)):[E];var w;if(A)w=T.body.split(/\.\./);else if(w=i(T.body),w.length===1&&(w=d(w[0],!1).map(h),w.length===1)){var R=T.post.length?d(T.post,!1):[""];return R.map(function(W){return T.pre+w[0]+W})}var k=T.pre,R=T.post.length?d(T.post,!1):[""],F;if(A){var L=u(w[0]),P=u(w[1]),O=Math.max(w[0].length,w[1].length),q=w.length==3?Math.abs(u(w[2])):1,N=f,_=P<L;_&&(q*=-1,N=g);var G=w.some(s);F=[];for(var B=L;N(B,P);B+=q){var z;if(v)z=String.fromCharCode(B),z==="\\"&&(z="");else if(z=String(B),G){var H=O-z.length;if(H>0){var ce=new Array(H+1).join("0");B<0?z="-"+ce+z.slice(1):z=ce+z}}F.push(z)}}else F=a(w,function(I){return d(I,!1)});for(var re=0;re<F.length;re++)for(var Fe=0;Fe<R.length;Fe++){var X=k+F[re]+R[Fe];(!S||A||X)&&x.push(X)}return x}return Qa}var Za,_d;function rw(){if(_d)return Za;_d=1,Za=s,s.Minimatch=f;var a=function(){try{return pn}catch{}}()||{sep:"/"};s.sep=a.sep;var e=s.GLOBSTAR=f.GLOBSTAR={},n=tw(),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},t="[^/]",l=t+"*?",p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",r=m("().*{}+?[]^$\\!");function m(w){return w.split("").reduce(function(k,R){return k[R]=!0,k},{})}var i=/\/+/;s.filter=c;function c(w,k){return k=k||{},function(R,F,L){return s(R,w,k)}}function h(w,k){k=k||{};var R={};return Object.keys(w).forEach(function(F){R[F]=w[F]}),Object.keys(k).forEach(function(F){R[F]=k[F]}),R}s.defaults=function(w){if(!w||typeof w!="object"||!Object.keys(w).length)return s;var k=s,R=function(L,P,O){return k(L,P,h(w,O))};return R.Minimatch=function(L,P){return new k.Minimatch(L,h(w,P))},R.Minimatch.defaults=function(L){return k.defaults(h(w,L)).Minimatch},R.filter=function(L,P){return k.filter(L,h(w,P))},R.defaults=function(L){return k.defaults(h(w,L))},R.makeRe=function(L,P){return k.makeRe(L,h(w,P))},R.braceExpand=function(L,P){return k.braceExpand(L,h(w,P))},R.match=function(F,L,P){return k.match(F,L,h(w,P))},R},f.defaults=function(w){return s.defaults(w).Minimatch};function s(w,k,R){return x(k),R||(R={}),!R.nocomment&&k.charAt(0)==="#"?!1:new f(k,R).match(w)}function f(w,k){if(!(this instanceof f))return new f(w,k);x(w),k||(k={}),w=w.trim(),!k.allowWindowsEscape&&a.sep!=="/"&&(w=w.split(a.sep).join("/")),this.options=k,this.set=[],this.pattern=w,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!k.partial,this.make()}f.prototype.debug=function(){},f.prototype.make=g;function g(){var w=this.pattern,k=this.options;if(!k.nocomment&&w.charAt(0)==="#"){this.comment=!0;return}if(!w){this.empty=!0;return}this.parseNegate();var R=this.globSet=this.braceExpand();k.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,R),R=this.globParts=R.map(function(F){return F.split(i)}),this.debug(this.pattern,R),R=R.map(function(F,L,P){return F.map(this.parse,this)},this),this.debug(this.pattern,R),R=R.filter(function(F){return F.indexOf(!1)===-1}),this.debug(this.pattern,R),this.set=R}f.prototype.parseNegate=d;function d(){var w=this.pattern,k=!1,R=this.options,F=0;if(!R.nonegate){for(var L=0,P=w.length;L<P&&w.charAt(L)==="!";L++)k=!k,F++;F&&(this.pattern=w.substr(F)),this.negate=k}}s.braceExpand=function(w,k){return E(w,k)},f.prototype.braceExpand=E;function E(w,k){return k||(this instanceof f?k=this.options:k={}),w=typeof w>"u"?this.pattern:w,x(w),k.nobrace||!/\{(?:(?!\{).)*\}/.test(w)?[w]:n(w)}var S=1024*64,x=function(w){if(typeof w!="string")throw new TypeError("invalid pattern");if(w.length>S)throw new TypeError("pattern is too long")};f.prototype.parse=C;var T={};function C(w,k){x(w);var R=this.options;if(w==="**")if(R.noglobstar)w="*";else return e;if(w==="")return"";var F="",L=!!R.nocase,P=!1,O=[],q=[],N,_=!1,G=-1,B=-1,z=w.charAt(0)==="."?"":R.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function ce(){if(N){switch(N){case"*":F+=l,L=!0;break;case"?":F+=t,L=!0;break;default:F+="\\"+N;break}H.debug("clearStateChar %j %j",N,F),N=!1}}for(var re=0,Fe=w.length,X;re<Fe&&(X=w.charAt(re));re++){if(this.debug("%s %s %s %j",w,re,F,X),P&&r[X]){F+="\\"+X,P=!1;continue}switch(X){case"/":return!1;case"\\":ce(),P=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",w,re,F,X),_){this.debug(" in class"),X==="!"&&re===B+1&&(X="^"),F+=X;continue}H.debug("call clearStateChar %j",N),ce(),N=X,R.noext&&ce();continue;case"(":if(_){F+="(";continue}if(!N){F+="\\(";continue}O.push({type:N,start:re-1,reStart:F.length,open:o[N].open,close:o[N].close}),F+=N==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",N,F),N=!1;continue;case")":if(_||!O.length){F+="\\)";continue}ce(),L=!0;var I=O.pop();F+=I.close,I.type==="!"&&q.push(I),I.reEnd=F.length;continue;case"|":if(_||!O.length||P){F+="\\|",P=!1;continue}ce(),F+="|";continue;case"[":if(ce(),_){F+="\\"+X;continue}_=!0,B=re,G=F.length,F+=X;continue;case"]":if(re===B+1||!_){F+="\\"+X,P=!1;continue}var W=w.substring(B+1,re);try{RegExp("["+W+"]")}catch{var oe=this.parse(W,T);F=F.substr(0,G)+"\\["+oe[0]+"\\]",L=L||oe[1],_=!1;continue}L=!0,_=!1,F+=X;continue;default:ce(),P?P=!1:r[X]&&!(X==="^"&&_)&&(F+="\\"),F+=X}}for(_&&(W=w.substr(B+1),oe=this.parse(W,T),F=F.substr(0,G)+"\\["+oe[0],L=L||oe[1]),I=O.pop();I;I=O.pop()){var ie=F.slice(I.reStart+I.open.length);this.debug("setting tail",F,I),ie=ie.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Qe,ut,rt){return rt||(rt="\\"),ut+ut+rt+"|"}),this.debug(`tail=%j
|
|
51
51
|
%s`,ie,ie,I,F);var se=I.type==="*"?l:I.type==="?"?t:"\\"+I.type;L=!0,F=F.slice(0,I.reStart)+se+"\\("+ie}ce(),P&&(F+="\\\\");var de=!1;switch(F.charAt(0)){case"[":case".":case"(":de=!0}for(var be=q.length-1;be>-1;be--){var xe=q[be],Te=F.slice(0,xe.reStart),J=F.slice(xe.reStart,xe.reEnd-8),Q=F.slice(xe.reEnd-8,xe.reEnd),ke=F.slice(xe.reEnd);Q+=ke;var $=Te.split("(").length-1,ae=ke;for(re=0;re<$;re++)ae=ae.replace(/\)[+*?]?/,"");ke=ae;var Ie="";ke===""&&k!==T&&(Ie="$");var Ne=Te+J+ke+Ie+Q;F=Ne}if(F!==""&&L&&(F="(?=.)"+F),de&&(F=z+F),k===T)return[F,L];if(!L)return A(w);var Be=R.nocase?"i":"";try{var j=new RegExp("^"+F+"$",Be)}catch{return new RegExp("$.")}return j._glob=w,j._src=F,j}s.makeRe=function(w,k){return new f(w,k||{}).makeRe()},f.prototype.makeRe=v;function v(){if(this.regexp||this.regexp===!1)return this.regexp;var w=this.set;if(!w.length)return this.regexp=!1,this.regexp;var k=this.options,R=k.noglobstar?l:k.dot?p:u,F=k.nocase?"i":"",L=w.map(function(P){return P.map(function(O){return O===e?R:typeof O=="string"?b(O):O._src}).join("\\/")}).join("|");L="^(?:"+L+")$",this.negate&&(L="^(?!"+L+").*$");try{this.regexp=new RegExp(L,F)}catch{this.regexp=!1}return this.regexp}s.match=function(w,k,R){R=R||{};var F=new f(k,R);return w=w.filter(function(L){return F.match(L)}),F.options.nonull&&!w.length&&w.push(k),w},f.prototype.match=function(k,R){if(typeof R>"u"&&(R=this.partial),this.debug("match",k,this.pattern),this.comment)return!1;if(this.empty)return k==="";if(k==="/"&&R)return!0;var F=this.options;a.sep!=="/"&&(k=k.split(a.sep).join("/")),k=k.split(i),this.debug(this.pattern,"split",k);var L=this.set;this.debug(this.pattern,"set",L);var P,O;for(O=k.length-1;O>=0&&(P=k[O],!P);O--);for(O=0;O<L.length;O++){var q=L[O],N=k;F.matchBase&&q.length===1&&(N=[P]);var _=this.matchOne(N,q,R);if(_)return F.flipNegate?!0:!this.negate}return F.flipNegate?!1:this.negate},f.prototype.matchOne=function(w,k,R){var F=this.options;this.debug("matchOne",{this:this,file:w,pattern:k}),this.debug("matchOne",w.length,k.length);for(var L=0,P=0,O=w.length,q=k.length;L<O&&P<q;L++,P++){this.debug("matchOne loop");var N=k[P],_=w[L];if(this.debug(k,N,_),N===!1)return!1;if(N===e){this.debug("GLOBSTAR",[k,N,_]);var G=L,B=P+1;if(B===q){for(this.debug("** at the end");L<O;L++)if(w[L]==="."||w[L]===".."||!F.dot&&w[L].charAt(0)===".")return!1;return!0}for(;G<O;){var z=w[G];if(this.debug(`
|
|
52
52
|
globstar while`,w,G,k,B,z),this.matchOne(w.slice(G),k.slice(B),R))return this.debug("globstar found match!",G,O,z),!0;if(z==="."||z===".."||!F.dot&&z.charAt(0)==="."){this.debug("dot detected!",w,G,k,B);break}this.debug("globstar swallow a segment, and continue"),G++}return!!(R&&(this.debug(`
|
|
53
53
|
>>> no match, partial?`,w,G,k,B),G===O))}var H;if(typeof N=="string"?(H=_===N,this.debug("string match",N,_,H)):(H=_.match(N),this.debug("pattern match",N,_,H)),!H)return!1}if(L===O&&P===q)return!0;if(L===O)return R;if(P===q)return L===O-1&&w[L]==="";throw new Error("wtf?")};function A(w){return w.replace(/\\(.)/g,"$1")}function b(w){return w.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return Za}var tn={},Bd;function nw(){if(Bd)return tn;Bd=1;class a{static overwrite(m,i){return i}static replace(m,i){return typeof i<"u"?i:m}static assign(m,i){return Object.assign({},m,i)}}class e{static array(m){if(!Array.isArray(m))throw new TypeError("Expected an array.")}static boolean(m){if(typeof m!="boolean")throw new TypeError("Expected a Boolean.")}static number(m){if(typeof m!="number")throw new TypeError("Expected a number.")}static object(m){if(!m||typeof m!="object")throw new TypeError("Expected an object.")}static"object?"(m){if(typeof m!="object")throw new TypeError("Expected an object or null.")}static string(m){if(typeof m!="string")throw new TypeError("Expected a string.")}static"string!"(m){if(typeof m!="string"||m.length===0)throw new TypeError("Expected a non-empty string.")}}function n(r,m){let i=!1;if(m.schema)if(typeof m.schema=="object")i=!0;else throw new TypeError("Schema must be an object.");if(typeof m.merge=="string"){if(!(m.merge in a))throw new TypeError(`Definition for key "${r}" missing valid merge strategy.`)}else if(!i&&typeof m.merge!="function")throw new TypeError(`Definition for key "${r}" must have a merge property.`);if(typeof m.validate=="string"){if(!(m.validate in e))throw new TypeError(`Definition for key "${r}" missing valid validation strategy.`)}else if(!i&&typeof m.validate!="function")throw new TypeError(`Definition for key "${r}" must have a validate() method.`)}class o extends Error{constructor(m){super(`Unexpected key "${m}" found.`)}}class t extends Error{constructor(m){super(`Missing required key "${m}".`)}}class l extends Error{constructor(m,i){super(`Key "${m}" requires keys "${i.join('", "')}".`)}}class p extends Error{constructor(m,i){super(`Key "${m}": ${i.message}`,{cause:i});for(const c of Object.keys(i))c in this||(this[c]=i[c])}}class u{#e=new Map;#t=new Map;constructor(m){if(!m)throw new Error("Schema definitions missing.");for(const i of Object.keys(m)){if(n(i,m[i]),typeof m[i].schema=="object"){const c=new u(m[i].schema);m[i]={...m[i],merge(h={},s={}){return c.merge(h,s)},validate(h){e.object(h),c.validate(h)}}}typeof m[i].merge=="string"&&(m[i]={...m[i],merge:a[m[i].merge]}),typeof m[i].validate=="string"&&(m[i]={...m[i],validate:e[m[i].validate]}),this.#e.set(i,m[i]),m[i].required&&this.#t.set(i,m[i])}}hasKey(m){return this.#e.has(m)}merge(...m){if(m.length<2)throw new TypeError("merge() requires at least two arguments.");if(m.some(i=>i===null||typeof i!="object"))throw new TypeError("All arguments must be objects.");return m.reduce((i,c)=>{this.validate(c);for(const[h,s]of this.#e)try{if(h in i||h in c){const g=s.merge.call(this,i[h],c[h]);g!==void 0&&(i[h]=g)}}catch(f){throw new p(h,f)}return i},{})}validate(m){for(const i of Object.keys(m)){if(!this.hasKey(i))throw new o(i);const c=this.#e.get(i);if(Array.isArray(c.requires)&&!c.requires.every(h=>h in m))throw new l(i,c.requires);try{c.validate.call(c,m[i])}catch(h){throw new p(i,h)}}for(const[i]of this.#t)if(!(i in m))throw new t(i)}}return tn.MergeStrategy=a,tn.ObjectSchema=u,tn.ValidationStrategy=e,tn}var Ld;function Od(){return Ld||(Ld=1,function(a){var e=Y1(),n=Q1(),o=rw(),t=kr(),l=nw();function p(se){var de=Object.create(null);return se&&Object.keys(se).forEach(function(be){if(be!=="default"){var xe=Object.getOwnPropertyDescriptor(se,be);Object.defineProperty(de,be,xe.get?xe:{enumerable:!0,get:function(){return se[be]}})}}),de.default=se,Object.freeze(de)}var u=p(e),r=p(n);const m={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(se){if(typeof se!="string")throw new TypeError("Property must be a string.")}},basePath:m,files:m,ignores:m});function c(se){if(!Array.isArray(se))throw new TypeError("Expected value to be an array.")}function h(se){if(c(se),se.some(de=>typeof de!="string"&&typeof de!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function s(se){if(!Array.isArray(se)||se.length===0)throw new TypeError("Expected value to be a non-empty array.")}const f=Object.freeze({basePath:{required:!1,merge(){},validate(se){if(typeof se!="string")throw new TypeError("Expected value to be a string.")}},files:{required:!1,merge(){},validate(se){s(se),se.forEach(de=>{if(Array.isArray(de))h(de);else if(typeof de!="string"&&typeof de!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:h}}),g=o.Minimatch,d=t("@eslint/config-array"),E=new Map,S=new Map,x={dot:!0,allowWindowsEscape:!0},T=new Set(["array","function"]),C=new Set(["name","basePath"]),v=new l.ObjectSchema(f),A=Object.freeze({status:"external"}),b=Object.freeze({status:"ignored"}),w=Object.freeze({status:"unconfigured"}),k=/^\.\.(?:\/|$)/u;class R extends Error{constructor(de,be,{cause:xe,message:Te}){const J=Te||xe.message;if(super(`Config ${de}: ${J}`,{cause:xe}),xe)for(const Q of Object.keys(xe))Q in this||(this[Q]=xe[Q]);this.name="ConfigError",this.index=be}}function F(se){return se&&typeof se.name=="string"&&se.name?`"${se.name}"`:"(unnamed)"}function L(se,de,be){const xe=F(se);throw new R(xe,de,{cause:be})}function P(se){return typeof se=="string"}function O(se,de){if(se===null)throw new R(F(se),de,{message:"Unexpected null config."});if(se===void 0)throw new R(F(se),de,{message:"Unexpected undefined config."});if(typeof se!="object")throw new R(F(se),de,{message:"Unexpected non-object config."});const be={};"basePath"in se&&(be.basePath=se.basePath),"files"in se&&(be.files=se.files),"ignores"in se&&(be.ignores=se.ignores);try{v.validate(be)}catch(xe){L(se,de,xe)}}function q(se,de,be={}){let xe=E;be.flipNegate&&(xe=S);let Te=xe.get(de);return Te||(Te=new g(de,Object.assign({},x,be)),xe.set(de,Te)),Te.match(se)}function N(se){if(P(se)){if(se.startsWith("./"))return se.slice(2);if(se.startsWith("!./"))return`!${se.slice(3)}`}return se}function _(se){return P(se)&&(se.startsWith("./")||se.startsWith("!./"))}function G(se,de,be){if(!se)return se;const xe=typeof se.basePath=="string";let Te=!1;if(xe&&(Te=!0),!Te&&Array.isArray(se.files)&&(Te=se.files.some(Q=>Array.isArray(Q)?Q.some(_):_(Q))),!Te&&Array.isArray(se.ignores)&&(Te=se.ignores.some(_)),!Te)return se;const J={...se};return xe&&(be.isAbsolute(se.basePath)?J.basePath=be.toNamespacedPath(se.basePath):J.basePath=be.resolve(de,se.basePath)),Array.isArray(J.files)&&(J.files=J.files.map(Q=>Array.isArray(Q)?Q.map(N):N(Q))),Array.isArray(J.ignores)&&(J.ignores=J.ignores.map(N)),J}async function B(se,de,be,xe,Te){const J=be.includes("function"),Q=be.includes("array");async function*ke(Ie){for(let Ne of Ie){if(typeof Ne=="function"){if(!J)throw new TypeError("Unexpected function.");Ne=Ne(de),Ne.then&&(Ne=await Ne)}if(Array.isArray(Ne)){if(!Q)throw new TypeError("Unexpected array.");yield*ke(Ne)}else{if(typeof Ne=="function")throw new TypeError("A config function can only return an object or array.");yield Ne}}}const $=await ke(se),ae=[];for await(const Ie of $)ae.push(G(Ie,xe,Te));return ae}function z(se,de,be,xe,Te){const J=be.includes("function"),Q=be.includes("array");function*ke(ae){for(let Ie of ae){if(typeof Ie=="function"){if(!J)throw new TypeError("Unexpected function.");if(Ie=Ie(de),Ie.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(Ie)){if(!Q)throw new TypeError("Unexpected array.");yield*ke(Ie)}else{if(typeof Ie=="function")throw new TypeError("A config function can only return an object or array.");yield Ie}}}const $=[];for(const ae of ke(se))$.push(G(ae,xe,Te));return $}function H(se,de,be){const xe=be.resolve(de,se),Te=be.toNamespacedPath(xe);return be.relative(de,Te).replaceAll(be.SEPARATOR,"/")}function ce(se,de,be,{basePath:xe,path:Te}={}){let J=!1;for(const Q of se){let ke=be;if(Q.basePath){if(ke=H(Te.resolve(xe,be),Q.basePath,Te),ke===""||k.test(ke))continue;be.endsWith("/")&&(ke+="/")}J=Q.ignores.reduce(($,ae)=>$?typeof ae=="string"&&ae.startsWith("!")?!q(ke,ae,{flipNegate:!0}):$:typeof ae=="function"?ae(de):ae.startsWith("!")?!1:q(ke,ae),J)}return J}function re(se,de,be){function xe(J){if(P(J))return q(de,J);if(typeof J=="function")return J(se);throw new TypeError(`Unexpected matcher type ${J}.`)}let Te=be.files.some(J=>Array.isArray(J)?J.every(xe):xe(J));return Te&&be.ignores&&(Te=!ce([{ignores:be.ignores}],se,de)),Te}function Fe(se){if(!se.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function X(se){if(se.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(const de of se)if(!T.has(de))throw new TypeError(`Unexpected config type "${de}" found. Expected one of: "object", "array", "function".`)}function I(se){if(se.startsWith("/"))return u;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(se))return r;throw new Error(`Expected an absolute path but received "${se}"`)}const W={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},oe=new WeakMap;class ie extends Array{#e;#t;constructor(de,{basePath:be="/",normalized:xe=!1,schema:Te,extraConfigTypes:J=[]}={}){if(super(),this[W.isNormalized]=xe,this[W.schema]=new l.ObjectSchema(Object.assign({},Te,i)),!P(be)||!be)throw new TypeError("basePath must be a non-empty string");this.basePath=be,X(J),this.extraConfigTypes=[...J],Object.freeze(this.extraConfigTypes),this[W.configCache]=new Map,oe.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(de)?this.push(...de):this.push(de),this.#t=I(be),this.#e=this.#t.toNamespacedPath(be)}static get[Symbol.species](){return Array}get files(){Fe(this);const de=oe.get(this);if(de.files)return de.files;const be=[];for(const xe of this)xe.files&&xe.files.forEach(Te=>{be.push(Te)});return de.files=be,oe.set(this,de),be}get ignores(){Fe(this);const de=oe.get(this);if(de.ignores)return de.ignores;const be=[];for(const xe of this)xe.ignores&&Object.keys(xe).filter(Te=>!C.has(Te)).length===1&&be.push(xe);return de.ignores=be,oe.set(this,de),be}isNormalized(){return this[W.isNormalized]}async normalize(de={}){if(!this.isNormalized()){const be=await B(this,de,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...be.map(this[W.preprocessConfig].bind(this))),this.forEach(O),this[W.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(de={}){if(!this.isNormalized()){const be=z(this,de,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...be.map(this[W.preprocessConfig].bind(this))),this.forEach(O),this[W.isNormalized]=!0,Object.freeze(this)}return this}[W.finalizeConfig](de){return de}[W.preprocessConfig](de){return de}getConfigWithStatus(de){Fe(this);const be=this[W.configCache];if(be.has(de))return be.get(de);const xe=H(de,this.#e,this.#t);if(k.test(xe))return d(`No config for file ${de} outside of base path`),be.set(de,A),A;if(this.isDirectoryIgnored(this.#t.dirname(de)))return d(`Ignoring ${de} based on directory pattern`),be.set(de,b),b;if(ce(this.ignores,de,xe,{basePath:this.#e,path:this.#t}))return d(`Ignoring ${de} based on file pattern`),be.set(de,b),b;const Te=[];let J=!1;const Q=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((Ie,Ne)=>{const Be=Ie.basePath?H(this.#t.resolve(this.#e,de),Ie.basePath,this.#t):xe;if(Ie.basePath&&k.test(Be)){d(`Skipped config found for ${de} (based on config's base path: ${Ie.basePath}`);return}if(!Ie.files){if(!Ie.ignores){d(`Universal config found for ${de}`),Te.push(Ne);return}if(Object.keys(Ie).filter(ut=>!C.has(ut)).length===1){d(`Skipped config found for ${de} (global ignores)`);return}if(ce([{ignores:Ie.ignores}],de,Be)){d(`Skipped config found for ${de} (based on ignores: ${Ie.ignores})`);return}d(`Matching config found for ${de} (based on ignores: ${Ie.ignores})`),Te.push(Ne);return}const j=[],Qe=Ie.files.filter(ut=>Array.isArray(ut)?ut.every(rt=>Q.test(rt))?!0:(j.push(ut),!1):Q.test(ut)?!0:(j.push(ut),!1));if(Qe.length){if(d("Universal files patterns found. Checking carefully."),j.length&&re(de,Be,{files:j,ignores:Ie.ignores})){d(`Matching config found for ${de}`),Te.push(Ne),J=!0;return}if(Qe.length&&re(de,Be,{files:Qe,ignores:Ie.ignores})){d(`Matching config found for ${de}`),Te.push(Ne);return}return}re(de,Be,Ie)&&(d(`Matching config found for ${de}`),Te.push(Ne),J=!0)}),!J)return d(`No matching configs found for ${de}`),be.set(de,w),w;const ke=Te.toString();let $=be.get(ke);if($)return be.set(de,$),$;let ae=Te.reduce((Ie,Ne)=>{try{return this[W.schema].merge(Ie,this[Ne])}catch(Be){L(this[Ne],Ne,Be)}},{});return ae=this[W.finalizeConfig](ae),$=Object.freeze({config:ae,status:"matched"}),be.set(de,$),be.set(ke,$),$}getConfig(de){return this.getConfigWithStatus(de).config}getConfigStatus(de){return this.getConfigWithStatus(de).status}isIgnored(de){return this.isFileIgnored(de)}isFileIgnored(de){return this.getConfigStatus(de)==="ignored"}isDirectoryIgnored(de){Fe(this);const be=H(de,this.#e,this.#t);if(be==="")return!1;if(k.test(be))return!0;const xe=oe.get(this).directoryMatches;if(xe.has(be))return xe.get(be);const Te=be.split("/");let J="",Q;do J+=`${Te.shift()}/`,Q=ce(this.ignores,this.#t.join(this.basePath,J),J,{basePath:this.#e,path:this.#t}),xe.set(J,Q);while(!Q&&Te.length);return xe.set(be,Q),Q}}Object.defineProperty(a,"ObjectSchema",{enumerable:!0,get:function(){return l.ObjectSchema}}),a.ConfigArray=ie,a.ConfigArraySymbol=W}(Xa)),Xa}var sw="http://json-schema.org/draft-04/schema#",aw="http://json-schema.org/draft-04/schema#",iw="Core schema meta-schema",ow={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},lw="object",uw={id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},cw={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},fw={id:sw,$schema:aw,description:iw,definitions:ow,type:lw,properties:uw,dependencies:cw,default:{}},ei,Nd;function pw(){if(Nd)return ei;Nd=1;const a=Eh(),e=fw;return ei=(n={})=>{const o=new a({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...n});return o.addMetaSchema(e),o._opts.defaultMeta=e.id,o},ei}var mw={"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]},Md={rules:mw},ti,jd;function ri(){if(jd)return ti;jd=1;const{deepMergeArrays:a}=wd(),{flatConfigSchema:e,hasMethod:n}=Ka(),{ObjectSchema:o}=Od(),l=pw()(),p=Md,u=Object.freeze({type:"array",minItems:0,maxItems:0}),r=new Map([[0,0],[1,1],[2,2],["off",0],["warn",1],["error",2]]),m=new WeakMap;function i({pluginName:C,ruleName:v},A){const b=C==="@"?v:`${C}/${v}`,w=`Key "rules": Key "${b}"`;let k=`${w}: Could not find plugin "${C}" in configuration.`;const R=k;if(A.plugins&&A.plugins[C]){const L=p.rules[v];if(C==="@"&&L)k=`${w}: Rule "${v}" was removed and replaced by "${L}".`;else{k=`${w}: Could not find "${v}" in plugin "${C}".`;for(const[P,O]of Object.entries(A.plugins))if(O.rules&&O.rules[v]){k+=` Did you mean "${P}/${v}"?`;break}}}const F=new TypeError(k);throw k===R&&(F.messageTemplate="config-plugin-missing",F.messageData={pluginName:C,ruleId:b}),F}class c extends Error{constructor(v,A){super(`Error while processing options validation schema of rule '${v}': ${A.message}`,{cause:A}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}function h(C){let v,A;return C.includes("/")?(C.startsWith("@")?v=C.slice(0,C.lastIndexOf("/")):v=C.slice(0,C.indexOf("/")),A=C.slice(v.length+1)):(v="@",A=C),{pluginName:v,ruleName:A}}function s(C,v){const{pluginName:A,ruleName:b}=h(C);return v.plugins?.[A]?.rules?.[b]}function f(C){if(!C.meta)return{...u};const v=C.meta.schema;if(typeof v>"u")return{...u};if(v===!1)return null;if(typeof v!="object"||v===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(v)?v.length?{type:"array",items:v,minItems:0,maxItems:v.length}:{...u}:v}function g(C){const v=C.split("/");return{objectName:v.pop(),pluginName:v.join("/")}}function d(C){let v=C.name;if(!v&&(!C.meta||(v=C.meta.name,!v)))return null;let A=C.version;return A||(A=C.meta&&C.meta.version),A?`${v}@${A}`:v}function E(C,v,A){if(typeof C=="function"){const b=new TypeError(`Cannot serialize key "${v}" in "${A}": Function values are not supported.`);throw b.messageTemplate="config-serialize-function",b.messageData={key:v,objectKey:A},b}}function S(C,v="languageOptions"){if(typeof C.toJSON=="function"){const b=C.toJSON();return E(b,"toJSON",v),b}const A={};for(const[b,w]of Object.entries(C)){if(w){if(typeof w=="object"){const k=d(w);typeof w.toJSON=="function"?(A[b]=w.toJSON(),E(A[b],b,v)):k&&n(w)?A[b]=k:A[b]=S(w,b);continue}E(w,b,v)}A[b]=w}return A}function x(C,v){if(!m.has(C))try{const A=f(C);A&&m.set(C,l.compile(A))}catch(A){throw new c(v,A)}return m.get(C)}class T{#e;#t;constructor(v){const{plugins:A,language:b,languageOptions:w,processor:k,...R}=v;if(new o(e).validate(v),Object.assign(this,R),!b)throw new TypeError("Key 'language' is required.");this.plugins=A,this.language=b;const{pluginName:L,objectName:P}=g(b);if(this.#e=b,!A||!A[L]||!A[L].languages||!A[L].languages[P])throw new TypeError(`Key "language": Could not find "${P}" in plugin "${L}".`);this.language=A[L].languages[P],this.language.defaultLanguageOptions??w?this.languageOptions=e.languageOptions.merge(this.language.defaultLanguageOptions,w):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(O){throw new TypeError(`Key "languageOptions": ${O.message}`,{cause:O})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),k)if(this.processor=k,typeof k=="string"){const{pluginName:O,objectName:q}=g(k);if(this.#t=k,!A||!A[O]||!A[O].processors||!A[O].processors[q])throw new TypeError(`Key "processor": Could not find "${q}" in plugin "${O}".`);this.processor=A[O].processors[q]}else if(typeof k=="object")this.#t=d(k),this.processor=k;else throw new TypeError("Key 'processor' must be a string or an object.");this.rules&&(this.#r(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw new Error("Could not serialize processor object (missing 'meta' object).");if(!this.#e)throw new Error("Could not serialize language object (missing 'meta' object).");return{...this,plugins:Object.entries(this.plugins).map(([v,A])=>{const b=d(A);return b?`${v}:${b}`:v}),language:this.#e,languageOptions:S(this.languageOptions),processor:this.#t}}getRuleDefinition(v){return s(v,this)}#r(){for(const[v,A]of Object.entries(this.rules)){let b=Array.isArray(A)?A:[A];b[0]=r.get(b[0]);const w=s(v,this),k=b.slice(1),R=a(w?.meta?.defaultOptions,k);R.length&&(b=[b[0],...R]),this.rules[v]=b}}validateRulesConfig(v){if(!v)throw new TypeError("Config is required for validation.");for(const[A,b]of Object.entries(v)){if(A==="__proto__"||b[0]===0)continue;const w=s(A,this);w||i(h(A),this);const k=x(w,A);if(k&&(k(b.slice(1)),k.errors))throw new Error(`Key "rules": Key "${A}":
|
|
@@ -56,20 +56,20 @@ ${k.errors.map(R=>{if(R.keyword==="additionalProperties"&&R.schema===!1&&typeof
|
|
|
56
56
|
`}return` Value ${JSON.stringify(R.data)} ${R.message}.
|
|
57
57
|
`}).join("")}`)}}static getRuleOptionsSchema(v){return f(v)}static getRuleNumericSeverity(v){const A=Array.isArray(v)?v[0]:v;return r.has(A)?r.get(A):typeof A=="string"?r.get(A.toLowerCase())??0:0}}return ti={Config:T},ti}var ni,Ud;function hw(){if(Ud)return ni;Ud=1;const a=Rn(),{Config:e}=ri();function n(m,i){return m.line-i.line||m.column-i.column}function o(m){const i=new Map;for(const c of m){const{unprocessedDirective:{parentDirective:h}}=c;i.has(h)?i.get(h).push(c):i.set(h,[c])}return[...i.values()]}function t(m,i,c){const h=i.value.trim(),s=c.text.indexOf(h,c.getRange(i.node)[0]);return m.map(f=>{const{ruleId:g}=f,E=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${a(g)}\k<quote>(?:\s*,\s*|$)`,"u").exec(h),S=E[0],x=s+E.index,T=x+S.length,C=S.indexOf(","),v=S.lastIndexOf(",");let A,b;return C!==v?(A=x+C,b=x+v):(A=x,b=T),{description:`'${g}'`,fix:{range:[A,b],text:""},unprocessedDirective:f.unprocessedDirective}})}function l(m,i,c){const h=c.getRange(i),s=m.filter(f=>f.ruleId).map(f=>`'${f.ruleId}'`);return{description:s.length<=2?s.join(" or "):`${s.slice(0,s.length-1).join(", ")}, or ${s.at(-1)}`,fix:{range:h,text:" "},unprocessedDirective:m[0].unprocessedDirective}}function p(m,i){return o(m).flatMap(h=>{const{parentDirective:s}=h[0].unprocessedDirective,f=new Set(s.ruleIds);for(const g of h)f.delete(g.ruleId);return f.size?t(h,s,i):[l(h,s.node,i)]})}function u(m){const i=new Map,c=new Set;for(let h=m.length-1;h>=0;h--){const s=m[h];if(s.type==="disable"){if(i.size===0)continue;if(s.ruleId===null){for(const f of i.values())c.add(f);i.clear()}else{const f=i.get(s.ruleId);if(f)c.add(f);else{const g=i.get(null);g&&c.add(g)}}}else s.type==="enable"&&(s.ruleId===null?(i.clear(),i.set(null,s)):i.set(s.ruleId,s))}return c}function r(m){const i=[],c=new Set,{sourceCode:h}=m;for(const x of m.problems){let T=[],C=0;for(;C<m.directives.length&&n(m.directives[C],x)<=0;){const v=m.directives[C++];if(v.ruleId===null||v.ruleId===x.ruleId)switch(v.type){case"disable":T.push(v);break;case"enable":T=[];break}}if(T.length>0){const v=T.map(A=>({kind:"directive",justification:A.unprocessedDirective.justification}));x.suppressions?x.suppressions=x.suppressions.concat(v):(x.suppressions=v,c.add(T.at(-1)))}i.push(x)}const s=m.directives.filter(x=>x.type==="disable"&&!c.has(x)&&!m.rulesToIgnore.has(x.ruleId)),f=new Set(m.directives.filter(x=>x.unprocessedDirective.type==="enable"&&!m.rulesToIgnore.has(x.ruleId)));if(f.size>0)for(const x of u(m.directives))f.delete(x);const g=p(s,h).concat(p(f,h)),d=m.language.columnStart===1?0:1,E=m.language.lineStart===1?0:1,S=g.map(({description:x,fix:T,unprocessedDirective:C})=>{const{parentDirective:v,type:A,line:b,column:w}=C;let k;A==="enable"?k=x?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${x}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":k=x?`Unused eslint-disable directive (no problems were reported from ${x}).`:"Unused eslint-disable directive (no problems were reported).";const R=h.getLoc(v.node);return{ruleId:null,message:k,line:A==="disable-next-line"?R.start.line+E:b,column:A==="disable-next-line"?R.start.column+d:w,severity:m.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...m.disableFixes?{}:{fix:T}}});return{problems:i,unusedDirectives:S}}return ni=({language:m,sourceCode:i,directives:c,disableFixes:h,problems:s,configuredRules:f,ruleFilter:g,reportUnusedDisableDirectives:d="off"})=>{const E=c.filter(v=>v.type==="disable"||v.type==="enable").map(v=>Object.assign({},v,{unprocessedDirective:v})).sort(n),S=c.flatMap(v=>{switch(v.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:v.line,column:1,ruleId:v.ruleId,unprocessedDirective:v},{type:"enable",line:v.line+1,column:0,ruleId:v.ruleId,unprocessedDirective:v}];case"disable-next-line":return[{type:"disable",line:v.line+1,column:1,ruleId:v.ruleId,unprocessedDirective:v},{type:"enable",line:v.line+2,column:0,ruleId:v.ruleId,unprocessedDirective:v}];default:throw new TypeError(`Unrecognized directive type '${v.type}'`)}}).sort(n),x=f&&g?new Set(Object.keys(f).filter(v=>{const A=e.getRuleNumericSeverity(f[v]);return A===0?!1:!g({severity:A,ruleId:v})})):new Set;x.size>0&&x.add(null);const T=r({language:m,sourceCode:i,problems:s,directives:E,disableFixes:h,reportUnusedDisableDirectives:d,rulesToIgnore:x}),C=r({language:m,sourceCode:i,problems:T.problems,directives:S,disableFixes:h,reportUnusedDisableDirectives:d,rulesToIgnore:x});return d!=="off"?C.problems.concat(T.unusedDirectives).concat(C.unusedDirectives).sort(n):C.problems},ni}function dw(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var si,qd;function gw(){if(qd)return si;qd=1;const a=kr()("eslint:rules");class e extends Map{constructor(o){let t=o.length;super(a.enabled?o.map(([l,p])=>{let u=null;return[l,()=>(u||(a("Loading rule %o (remaining=%d)",l,--t),u=p()),u)]}):o),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(o){const t=super.get(o);return t&&t()}*values(){for(const o of super.values())yield o()}*entries(){for(const[o,t]of super.entries())yield[o,t()]}forEach(o,t){for(const[l,p]of super.entries())o.call(t,p(),l,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),si={LazyLoadingRuleMap:e},si}var ai={exports:{}},rn={},ii={exports:{}},Vd;function yw(){return Vd||(Vd=1,function(){function a(p){if(p==null)return!1;switch(p.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(p){if(p==null)return!1;switch(p.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(p){if(p==null)return!1;switch(p.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function o(p){return n(p)||p!=null&&p.type==="FunctionDeclaration"}function t(p){switch(p.type){case"IfStatement":return p.alternate!=null?p.alternate:p.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return p.body}return null}function l(p){var u;if(p.type!=="IfStatement"||p.alternate==null)return!1;u=p.consequent;do{if(u.type==="IfStatement"&&u.alternate==null)return!0;u=t(u)}while(u);return!1}ii.exports={isExpression:a,isStatement:n,isIterationStatement:e,isSourceElement:o,isProblematicIfStatement:l,trailingStatement:t}}()),ii.exports}var oi={exports:{}},$d;function Wd(){return $d||($d=1,function(){var a,e,n,o,t,l;e={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},a={NonAsciiIdentifierStart:/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function p(d){return 48<=d&&d<=57}function u(d){return 48<=d&&d<=57||97<=d&&d<=102||65<=d&&d<=70}function r(d){return d>=48&&d<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function m(d){return d===32||d===9||d===11||d===12||d===160||d>=5760&&n.indexOf(d)>=0}function i(d){return d===10||d===13||d===8232||d===8233}function c(d){if(d<=65535)return String.fromCharCode(d);var E=String.fromCharCode(Math.floor((d-65536)/1024)+55296),S=String.fromCharCode((d-65536)%1024+56320);return E+S}for(o=new Array(128),l=0;l<128;++l)o[l]=l>=97&&l<=122||l>=65&&l<=90||l===36||l===95;for(t=new Array(128),l=0;l<128;++l)t[l]=l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===36||l===95;function h(d){return d<128?o[d]:e.NonAsciiIdentifierStart.test(c(d))}function s(d){return d<128?t[d]:e.NonAsciiIdentifierPart.test(c(d))}function f(d){return d<128?o[d]:a.NonAsciiIdentifierStart.test(c(d))}function g(d){return d<128?t[d]:a.NonAsciiIdentifierPart.test(c(d))}oi.exports={isDecimalDigit:p,isHexDigit:u,isOctalDigit:r,isWhiteSpace:m,isLineTerminator:i,isIdentifierStartES5:h,isIdentifierPartES5:s,isIdentifierStartES6:f,isIdentifierPartES6:g}}()),oi.exports}var li={exports:{}},Gd;function vw(){return Gd||(Gd=1,function(){var a=Wd();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function n(h,s){return!s&&h==="yield"?!1:o(h,s)}function o(h,s){if(s&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function t(h,s){return h==="null"||h==="true"||h==="false"||n(h,s)}function l(h,s){return h==="null"||h==="true"||h==="false"||o(h,s)}function p(h){return h==="eval"||h==="arguments"}function u(h){var s,f,g;if(h.length===0||(g=h.charCodeAt(0),!a.isIdentifierStartES5(g)))return!1;for(s=1,f=h.length;s<f;++s)if(g=h.charCodeAt(s),!a.isIdentifierPartES5(g))return!1;return!0}function r(h,s){return(h-55296)*1024+(s-56320)+65536}function m(h){var s,f,g,d,E;if(h.length===0)return!1;for(E=a.isIdentifierStartES6,s=0,f=h.length;s<f;++s){if(g=h.charCodeAt(s),55296<=g&&g<=56319){if(++s,s>=f||(d=h.charCodeAt(s),!(56320<=d&&d<=57343)))return!1;g=r(g,d)}if(!E(g))return!1;E=a.isIdentifierPartES6}return!0}function i(h,s){return u(h)&&!t(h,s)}function c(h,s){return m(h)&&!l(h,s)}li.exports={isKeywordES5:n,isKeywordES6:o,isReservedWordES5:t,isReservedWordES6:l,isRestrictedWord:p,isIdentifierNameES5:u,isIdentifierNameES6:m,isIdentifierES5:i,isIdentifierES6:c}}()),li.exports}var zd;function Hd(){return zd||(zd=1,function(){rn.ast=yw(),rn.code=Wd(),rn.keyword=vw()}()),rn}var ui,Kd;function ci(){return Kd||(Kd=1,ui={LATEST_ECMA_VERSION:2026}),ui}var Xd;function Ue(){return Xd||(Xd=1,function(a){const{KEYS:e}=Wr(),n=Hd(),o=hn(),t=Rn(),{breakableTypePattern:l,createGlobalLinebreakMatcher:p,lineBreakPattern:u,shebangPattern:r}=Fn(),m=Gh(),{LATEST_ECMA_VERSION:i}=ci(),c=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,s=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,f=/Array$/u,g=/^(?:bind|call|apply)$/u,d=/^[\s*]*@this/mu,E=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,S=/^(?:eslint[- ]|(?:globals?|exported) )/u,x=new Set([`\r
|
|
58
58
|
`,"\r",`
|
|
59
|
-
`,"\u2028","\u2029"]),T=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=new Set(["let","const","using","await using"]),v=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,A=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,b=new Set(["&&=","||=","??="]),w=m[`es${i}`];function k(V,ne,ue){const Ce=V.identifier,qe=ne===0||ue[ne-1].identifier!==Ce;return Ce&&V.init===!1&&V.isWrite()&&qe}function R(V){return V[0]!==V[0].toLocaleLowerCase()}function F(V){return V.id&&R(V.id.name)}function L(V){for(let ne=V;ne;ne=ne.parent)if(c.test(ne.type))return ne;return null}function P(V){return!!(V&&c.test(V.type))}function O(V){return!!(V&&h.test(V.type))}function q(V){for(let ne=V;ne&&!P(ne);ne=ne.parent)if(O(ne))return!0;return!1}function N(V){return V.type==="Literal"&&V.value===null&&!V.regex&&!V.bigint}function _(V){return N(V)||V.type==="Identifier"&&V.name==="undefined"||V.type==="UnaryExpression"&&V.operator==="void"}function G(V){return V.parent.type==="CallExpression"&&V.parent.callee===V}function B(V){switch(V.type){case"Literal":if(V.value===null){if(N(V))return String(V.value);if(V.regex)return`/${V.regex.pattern}/${V.regex.flags}`;if(V.bigint)return V.bigint}else return String(V.value);break;case"TemplateLiteral":if(V.expressions.length===0&&V.quasis.length===1)return V.quasis[0].value.cooked;break}return null}function z(V){let ne;switch(V&&V.type){case"ChainExpression":return z(V.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"TSPropertySignature":case"TSMethodSignature":ne=V.key;break;case"MemberExpression":ne=V.property;break}return ne?ne.type==="Identifier"&&!V.computed?ne.name:B(ne):null}function H(V){return V&&V.type==="ChainExpression"?V.expression:V}function ce(V,ne){return typeof ne=="string"?V===ne:ne.test(V)}function re(V,ne){return V.type==="Identifier"&&ce(V.name,ne)}function Fe(V,ne,ue){const Ce=H(V);if(Ce.type!=="MemberExpression"||ne&&!re(Ce.object,ne))return!1;if(ue){const qe=z(Ce);if(typeof qe!="string"||!ce(qe,ue))return!1}return!0}function X(V,ne){return V.regex||ne.regex?!!(V.regex&&ne.regex&&V.regex.pattern===ne.regex.pattern&&V.regex.flags===ne.regex.flags):V.bigint||ne.bigint?V.bigint===ne.bigint:V.value===ne.value}function I(V,ne,ue=!1){if(V.type!==ne.type)return V.type==="ChainExpression"?I(V.expression,ne,ue):ne.type==="ChainExpression"?I(V,ne.expression,ue):!1;switch(V.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return V.name===ne.name;case"Literal":return X(V,ne);case"ChainExpression":return I(V.expression,ne.expression,ue);case"MemberExpression":{if(!ue){const Ce=z(V);if(Ce!==null)return I(V.object,ne.object,ue)&&Ce===z(ne)}return V.computed===ne.computed&&I(V.object,ne.object,ue)&&I(V.property,ne.property,ue)}default:return!1}}function W(V){return Fe(V,"Reflect","apply")}function oe(V){return Fe(V,f,"from")}function ie(V){return Fe(V,null,s)}function se(V){return ne=>!V(ne)}function de(V,ne){const ue=ne.getJSDocComment(V);return ue&&d.test(ue.value)?!0:ne.getCommentsBefore(V).some(Ce=>d.test(Ce.value))}function be(V,ne){const ue=V.getTokenBefore(ne),Ce=V.getTokenAfter(ne);return!!(ue&&Ce)&&ue.value==="("&&ue.range[1]<=ne.range[0]&&Ce.value===")"&&Ce.range[0]>=ne.range[1]}function xe(V){return V.value==="="&&V.type==="Punctuator"}function Te(V){return V.value==="=>"&&V.type==="Punctuator"}function J(V){return V.value===","&&V.type==="Punctuator"}function Q(V){return V.value==="."&&V.type==="Punctuator"}function ke(V){return V.value==="?."&&V.type==="Punctuator"}function $(V){return V.value===";"&&V.type==="Punctuator"}function ae(V){return V.value===":"&&V.type==="Punctuator"}function Ie(V){return V.value==="("&&V.type==="Punctuator"}function Ne(V){return V.value===")"&&V.type==="Punctuator"}function Be(V){return V.value==="["&&V.type==="Punctuator"}function j(V){return V.value==="]"&&V.type==="Punctuator"}function Qe(V){return V.value==="{"&&V.type==="Punctuator"}function ut(V){return V.value==="}"&&V.type==="Punctuator"}function rt(V){return V.type==="Line"||V.type==="Block"||V.type==="Shebang"}function ze(V){return V.type==="Keyword"}function Xe(V,ne){if(V.type==="ArrowFunctionExpression"&&V.params.length===1){const ue=ne.getFirstToken(V.params[0]),Ce=ne.getTokenBefore(ue);return Ie(Ce)?Ce:ue}return V.id?ne.getTokenAfter(V.id,Ie):ne.getFirstToken(V,Ie)}function ht(V,ne,ue){const Ce=ue.getTokens(V),qe=ue.getTokens(ne);if(Ce.length!==qe.length)return!1;for(let _e=0;_e<Ce.length;++_e)if(Ce[_e].type!==qe[_e].type||Ce[_e].value!==qe[_e].value)return!1;return!0}function dt(V){return V.type==="LogicalExpression"&&(V.operator==="&&"||V.operator==="||")}function at(V){return V.type==="LogicalExpression"&&V.operator==="??"}function tt(V,ne){return dt(V)&&at(ne)||at(V)&&dt(ne)}function we(V){return b.has(V)}function Ee(V,ne){return V.test?ne.getTokenAfter(V.test,ae):ne.getFirstToken(V,1)}function Se(V){return V.type==="Identifier"?V.name:V.value}function ve(V){return V.value===null?V.raw==="null"?!1:typeof V.regex=="object"?!0:null:!!V.value}function Pe(V,ne){switch(V.type){case"Literal":return ne==="||"&&ve(V)===!0||ne==="&&"&&ve(V)===!1;case"UnaryExpression":return ne==="&&"&&V.operator==="void";case"LogicalExpression":return ne===V.operator&&(Pe(V.left,ne)||Pe(V.right,ne));case"AssignmentExpression":return["||=","&&="].includes(V.operator)&&ne===V.operator.slice(0,-1)&&Pe(V.right,ne)}return!1}function ee(V,ne){const ue=V.references.find(Ce=>Ce.identifier===ne);return!!(ue&&ue.resolved&&ue.resolved.scope.type==="global"&&ue.resolved.defs.length===0)}function te(V,ne,ue){if(!ne)return!0;switch(ne.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return ue&&ne.quasis.some(Ce=>Ce.value.cooked.length)||ne.expressions.every(Ce=>te(V,Ce,!1));case"ArrayExpression":return ue?!0:ne.elements.every(Ce=>te(V,Ce,!1));case"UnaryExpression":return ne.operator==="void"||ne.operator==="typeof"&&ue?!0:ne.operator==="!"?te(V,ne.argument,!0):te(V,ne.argument,!1);case"BinaryExpression":return te(V,ne.left,!1)&&te(V,ne.right,!1)&&ne.operator!=="in";case"LogicalExpression":{const Ce=te(V,ne.left,ue),qe=te(V,ne.right,ue),_e=Ce&&Pe(ne.left,ne.operator),Ke=ue&&qe&&Pe(ne.right,ne.operator);return Ce&&qe||_e||Ke}case"NewExpression":return ue;case"AssignmentExpression":return ne.operator==="="?te(V,ne.right,ue):["||=","&&="].includes(ne.operator)&&ue?Pe(ne.right,ne.operator.slice(0,-1)):!1;case"SequenceExpression":return te(V,ne.expressions.at(-1),ue);case"SpreadElement":return te(V,ne.argument,ue);case"CallExpression":return ne.callee.type==="Identifier"&&ne.callee.name==="Boolean"&&(ne.arguments.length===0||te(V,ne.arguments[0],!0))?ee(V,ne.callee):!1;case"Identifier":return ne.name==="undefined"&&ee(V,ne)}return!1}function Z(V){if(V.type!=="ExpressionStatement")return!1;const ne=V.parent;return ne.type==="Program"||ne.type==="TSModuleBlock"||ne.type==="BlockStatement"&&P(ne.parent)}function fe(V){return V.type==="ExpressionStatement"&&typeof V.directive=="string"}function De(V){const ne=V.range[0];let ue=V;for(;(ue=ue.parent)&&ue.range[0]===ne;)if(ue.type==="ExpressionStatement")return!0;return!1}let Le;{let V=function(pe){for(let le=pe;;){const{parent:ye}=le;if(!ye)break;if(Je.has(ye.type)&&le===ye.typeAnnotation)return!0;le=ye}return!1};const ne=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),Ce=new Set(["Identifier","Keyword"]),qe={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},_e=new Set([":",";","{","=>","++","--"]),Ke=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]),Je=new Set(["TSAsExpression","TSSatisfiesExpression","TSTypeAliasDeclaration","TSTypeAnnotation"]);Le=function(pe,le){const ye=pe.getTokenBefore(le);if(!ye||ye.type==="Punctuator"&&_e.has(ye.value))return!1;const Re=pe.getNodeByRangeIndex(ye.range[0]);if(Re.type==="TSDeclareFunction"||Re.parent.type==="TSImportEqualsDeclaration"||Re.parent.parent?.type==="TSImportEqualsDeclaration"||Je.has(Re.type)||V(Re))return!1;if(Ne(ye))return!Ke.has(Re.type);if(ut(ye))return Re.type==="BlockStatement"&&Re.parent.type==="FunctionExpression"&&Re.parent.parent.type!=="MethodDefinition"||Re.type==="ClassBody"&&Re.parent.type==="ClassExpression"||Re.type==="ObjectExpression";if(Ce.has(ye.type)){if(Re.parent.type==="VariableDeclarator"&&!Re.parent.init||ne.has(Re.parent.type))return!1;const Oe=ye.value,it=qe[Oe];return Re.type!==it}return ye.type==="String"?!ue.has(Re.parent.type):!0}}function me(V){const{parent:ne}=V;if(ne.type==="ImportAttribute"&&ne.key===V)return!0;if(ne.type==="Property"&&!ne.computed&&(ne.key===V||ne.value===V&&ne.shorthand&&!ne.method)&&ne.parent.type==="ObjectExpression"){const ue=ne.parent,Ce=ue.parent;if(Ce.type==="ImportExpression"&&Ce.options===ue)return!0;if(Ce.type==="Property"&&Ce.value===ue)return me(Ce.key)}return!1}a.exports={COMMENTS_IGNORE_PATTERN:E,LINEBREAKS:x,LINEBREAK_MATCHER:u,SHEBANG_MATCHER:r,STATEMENT_LIST_PARENTS:T,ECMASCRIPT_GLOBALS:w,isTokenOnSameLine(V,ne){return V.loc.end.line===ne.loc.start.line},isNullOrUndefined:_,isCallee:G,isES5Constructor:F,getUpperFunction:L,isFunction:P,isLoop:O,isInLoop:q,isArrayFromMethod:oe,isParenthesised:be,createGlobalLinebreakMatcher:p,equalTokens:ht,isArrowToken:Te,isClosingBraceToken:ut,isClosingBracketToken:j,isClosingParenToken:Ne,isColonToken:ae,isCommaToken:J,isCommentToken:rt,isDotToken:Q,isQuestionDotToken:ke,isKeywordToken:ze,isNotClosingBraceToken:se(ut),isNotClosingBracketToken:se(j),isNotClosingParenToken:se(Ne),isNotColonToken:se(ae),isNotCommaToken:se(J),isNotDotToken:se(Q),isNotQuestionDotToken:se(ke),isNotOpeningBraceToken:se(Qe),isNotOpeningBracketToken:se(Be),isNotOpeningParenToken:se(Ie),isNotSemicolonToken:se($),isOpeningBraceToken:Qe,isOpeningBracketToken:Be,isOpeningParenToken:Ie,isSemicolonToken:$,isEqToken:xe,isStringLiteral(V){return V.type==="Literal"&&typeof V.value=="string"||V.type==="TemplateLiteral"},isBreakableStatement(V){return l.test(V.type)},getModifyingReferences(V){return V.filter(k)},isSurroundedBy(V,ne){return V[0]===ne&&V.at(-1)===ne},isDirectiveComment(V){const ne=V.value.trim();return V.type==="Line"&&ne.startsWith("eslint-")||V.type==="Block"&&S.test(ne)},getTrailingStatement:n.ast.trailingStatement,getVariableByName(V,ne){let ue=V;for(;ue;){const Ce=ue.set.get(ne);if(Ce)return Ce;ue=ue.upper}return null},isDefaultThisBinding(V,ne,{capIsConstructor:ue=!0}={}){if(V.parent.type==="PropertyDefinition"&&V.parent.value===V||V.type==="StaticBlock"||(V.type==="FunctionDeclaration"||V.type==="FunctionExpression")&&V.params.some(_e=>_e.type==="Identifier"&&_e.name==="this")||ue&&F(V)||de(V,ne))return!1;const Ce=V.id===null;let qe=V;for(;qe;){const _e=qe.parent;switch(_e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":qe=_e;break;case"ReturnStatement":{const Ke=L(_e);if(Ke===null||!G(Ke))return!0;qe=Ke.parent;break}case"ArrowFunctionExpression":if(qe!==_e.body||!G(_e))return!0;qe=_e.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return _e.value!==qe;case"AssignmentExpression":case"AssignmentPattern":return!(_e.left.type==="MemberExpression"||ue&&Ce&&_e.left.type==="Identifier"&&R(_e.left.name));case"VariableDeclarator":return!(ue&&Ce&&_e.init===qe&&_e.id.type==="Identifier"&&R(_e.id.name));case"MemberExpression":if(_e.object===qe&&Fe(_e,null,g)){const Ke=_e.parent.type==="ChainExpression"?_e.parent:_e;return!(G(Ke)&&Ke.parent.arguments.length>=1&&!_(Ke.parent.arguments[0]))}return!0;case"CallExpression":return W(_e.callee)?_e.arguments.length!==3||_e.arguments[0]!==qe||_(_e.arguments[1]):oe(_e.callee)?_e.arguments.length!==3||_e.arguments[1]!==qe||_(_e.arguments[2]):ie(_e.callee)?_e.arguments.length!==2||_e.arguments[0]!==qe||_(_e.arguments[1]):!0;default:return!0}}return!0},getPrecedence(V){switch(V.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(V.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(V.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return V.type in e?20:-1}},isEmptyBlock(V){return!!(V&&V.type==="BlockStatement"&&V.body.length===0)},isEmptyFunction(V){return P(V)&&a.exports.isEmptyBlock(V.body)},getDirectivePrologue(V){const ne=[];if(V.type==="Program"||V.type==="FunctionDeclaration"||V.type==="FunctionExpression"||V.type==="ArrowFunctionExpression"&&V.body.type==="BlockStatement"){const ue=V.type==="Program"?V.body:V.body.body;for(const Ce of ue)if(Ce.type==="ExpressionStatement"&&Ce.expression.type==="Literal")ne.push(Ce);else break}return ne},isDecimalInteger(V){return V.type==="Literal"&&typeof V.value=="number"&&v.test(V.raw)},isDecimalIntegerNumericToken(V){return V.type==="Numeric"&&v.test(V.value)},getFunctionNameWithKind(V){const ne=V.parent,ue=[];if((ne.type==="MethodDefinition"||ne.type==="PropertyDefinition"||V.type==="TSPropertySignature"||V.type==="TSMethodSignature")&&(ne.static&&ue.push("static"),!ne.computed&&ne.key?.type==="PrivateIdentifier"&&ue.push("private")),V.async&&ue.push("async"),V.generator&&ue.push("generator"),ne.type==="Property"||ne.type==="MethodDefinition"){if(ne.kind==="constructor")return"constructor";ne.kind==="get"?ue.push("getter"):ne.kind==="set"?ue.push("setter"):ue.push("method")}else V.type==="TSMethodSignature"?V.kind==="get"?ue.push("getter"):V.kind==="set"?ue.push("setter"):ue.push("method"):ne.type==="PropertyDefinition"?ue.push("method"):(V.type==="ArrowFunctionExpression"&&ue.push("arrow"),ue.push("function"));if(ne.type==="Property"||ne.type==="MethodDefinition"||ne.type==="PropertyDefinition")if(!ne.computed&&ne.key.type==="PrivateIdentifier")ue.push(`#${ne.key.name}`);else{const Ce=z(ne);Ce!==null?ue.push(`'${Ce}'`):V.id&&ue.push(`'${V.id.name}'`)}else V.type==="TSMethodSignature"?ue.push(`'${z(V)}'`):V.id&&ue.push(`'${V.id.name}'`);return ue.join(" ")},getFunctionHeadLoc(V,ne){const ue=V.parent;let Ce,qe;if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition"||ue.type==="TSPropertySignature"||ue.type==="TSMethodSignature")Ce=ue.loc.start,qe=Xe(V,ne).loc.start;else if(V.type==="ArrowFunctionExpression"){const _e=ne.getTokenBefore(V.body,Te);Ce=_e.loc.start,qe=_e.loc.end}else Ce=V.loc.start,qe=Xe(V,ne).loc.start;return{start:Object.assign({},Ce),end:Object.assign({},qe)}},getNextLocation(V,{line:ne,column:ue}){return ue<V.lines[ne-1].length?{line:ne,column:ue+1}:ne<V.lines.length?{line:ne+1,column:0}:null},getParenthesisedText(V,ne){let ue=V.getFirstToken(ne),Ce=V.getLastToken(ne);for(;V.getTokenBefore(ue)&&V.getTokenBefore(ue).type==="Punctuator"&&V.getTokenBefore(ue).value==="("&&V.getTokenAfter(Ce)&&V.getTokenAfter(Ce).type==="Punctuator"&&V.getTokenAfter(Ce).value===")";)ue=V.getTokenBefore(ue),Ce=V.getTokenAfter(Ce);return V.getText().slice(ue.range[0],Ce.range[1])},couldBeError(V){switch(V.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(V.operator)?a.exports.couldBeError(V.right):["||=","??="].includes(V.operator)?a.exports.couldBeError(V.left)||a.exports.couldBeError(V.right):!1;case"SequenceExpression":{const ne=V.expressions;return ne.length!==0&&a.exports.couldBeError(ne.at(-1))}case"LogicalExpression":return V.operator==="&&"?a.exports.couldBeError(V.right):a.exports.couldBeError(V.left)||a.exports.couldBeError(V.right);case"ConditionalExpression":return a.exports.couldBeError(V.consequent)||a.exports.couldBeError(V.alternate);default:return!1}},isNumericLiteral(V){return V.type==="Literal"&&(typeof V.value=="number"||!!V.bigint)},canTokensBeAdjacent(V,ne){const ue={ecmaVersion:o.latestEcmaVersion,comment:!0,range:!0};let Ce;if(typeof V=="string"){let _e;try{_e=o.tokenize(V,ue)}catch{return!1}const Ke=_e.comments;if(Ce=_e.at(-1),Ke.length){const Je=Ke.at(-1);(!Ce||Je.range[0]>Ce.range[0])&&(Ce=Je)}}else Ce=V;if(Ce.type==="Shebang"||Ce.type==="Hashbang")return!1;let qe;if(typeof ne=="string"){let _e;try{_e=o.tokenize(ne,ue)}catch{return!1}const Ke=_e.comments;if(qe=_e[0],Ke.length){const Je=Ke[0];(!qe||Je.range[0]<qe.range[0])&&(qe=Je)}}else qe=ne;if(Ce.type==="Punctuator"||qe.type==="Punctuator"){if(Ce.type==="Punctuator"&&qe.type==="Punctuator"){const _e=new Set(["+","++"]),Ke=new Set(["-","--"]);return!(_e.has(Ce.value)&&_e.has(qe.value)||Ke.has(Ce.value)&&Ke.has(qe.value))}return Ce.type==="Punctuator"&&Ce.value==="/"?!["Block","Line","RegularExpression"].includes(qe.type):!0}return!!(Ce.type==="String"||qe.type==="String"||Ce.type==="Template"||qe.type==="Template"||Ce.type!=="Numeric"&&qe.type==="Numeric"&&qe.value.startsWith(".")||Ce.type==="Block"||qe.type==="Block"||qe.type==="Line"||qe.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(V,ne,ue){const Ce=new RegExp(`[\\s,]${t(ue)}(?:$|[\\s,:])`,"gu");Ce.lastIndex=ne.value.indexOf("global")+6;const qe=Ce.exec(ne.value),_e=V.getLocFromIndex(ne.range[0]+2+(qe?qe.index+1:0)),Ke={line:_e.line,column:_e.column+(qe?ue.length:1)};return{start:_e,end:Ke}},hasOctalOrNonOctalDecimalEscapeSequence(V){return A.test(V)},isStaticTemplateLiteral(V){return V.type==="TemplateLiteral"&&V.expressions.length===0},areBracesNecessary(V,ne){function ue(Je){return Je.type==="VariableDeclaration"?C.has(Je.kind):Je.type==="FunctionDeclaration"||Je.type==="ClassDeclaration"}function Ce(Je){return Je.value==="else"&&Je.type==="Keyword"}function qe(Je){const pe=ne.getTokenAfter(Je);return!!pe&&Ce(pe)}function _e(Je){switch(Je.type){case"IfStatement":return Je.alternate?_e(Je.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return _e(Je.body);default:return!1}}const Ke=V.body[0];return ue(Ke)||_e(Ke)&&qe(V)},isReferenceToGlobalVariable:ee,isLogicalExpression:dt,isCoalesceExpression:at,isMixedLogicalAndCoalesceExpressions:tt,isNullLiteral:N,getStaticStringValue:B,getStaticPropertyName:z,skipChainExpression:H,isSpecificId:re,isSpecificMemberAccess:Fe,equalLiteralValue:X,isSameReference:I,isLogicalAssignmentOperator:we,getSwitchCaseColonToken:Ee,getModuleExportName:Se,isConstant:te,isTopLevelExpressionStatement:Z,isDirective:fe,isStartOfExpressionStatement:De,needsPrecedingSemicolon:Le,isImportAttributeKey:me}}(ai)),ai.exports}var fi,Jd;function Ew(){if(Jd)return fi;Jd=1;const a=Ue();function e(p,u){if(p.length!==u.length)return!1;for(let r=0;r<p.length;r++){const m=p[r],i=u[r];if(m.type!==i.type||m.value!==i.value)return!1}return!0}function n(p,u){return typeof p=="string"&&typeof u=="string"?p===u:Array.isArray(p)&&Array.isArray(u)?e(p,u):!1}function o(p){return p.kind==="get"||p.kind==="set"}function t(p,u,r,m){const i=p.parent;return i.type==="CallExpression"&&a.isSpecificMemberAccess(i.callee,r,m)&&i.arguments[u]===p}function l(p){if(t(p,2,"Object","defineProperty")||t(p,2,"Reflect","defineProperty"))return!0;const u=p.parent.parent;return u.type==="ObjectExpression"&&(t(u,1,"Object","create")||t(u,1,"Object","defineProperties"))}return fi={meta:{type:"suggestion",defaultOptions:[{enforceForTSTypes:!1,enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:"Enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean"},setWithoutGet:{type:"boolean"},enforceForClassMembers:{type:"boolean"},enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}.",missingGetterInType:"Getter is not present for type {{ name }}.",missingSetterInType:"Setter is not present for type {{ name }}."}},create(p){const[{getWithoutSet:u,setWithoutGet:r,enforceForClassMembers:m,enforceForTSTypes:i}]=p.options,c=p.sourceCode;function h(C,v){C.type==="Property"?p.report({node:C,messageId:`${v}InObjectLiteral`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="MethodDefinition"?p.report({node:C,messageId:`${v}InClass`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="TSMethodSignature"?p.report({node:C,messageId:`${v}InType`,loc:a.getFunctionHeadLoc(C,c),data:{name:a.getFunctionNameWithKind(C)}}):p.report({node:C,messageId:`${v}InPropertyDescriptor`})}function s(C,v){for(const A of C)h(A,v)}function f(C){const v=[];let A=!1;for(let b=0;b<C.length;b++){const w=C[b];if(o(w)){const k=a.getStaticPropertyName(w),R=k!==null?k:c.getTokens(w.key);for(let F=0;F<v.length;F++){const L=v[F];if(n(L.key,R)){L.getters.push(...w.kind==="get"?[w]:[]),L.setters.push(...w.kind==="set"?[w]:[]),A=!0;break}}A||v.push({key:R,getters:w.kind==="get"?[w]:[],setters:w.kind==="set"?[w]:[]}),A=!1}}for(const{getters:b,setters:w}of v)r&&w.length&&!b.length&&s(w,"missingGetter"),u&&b.length&&!w.length&&s(b,"missingSetter")}function g(C){f(C.properties.filter(v=>v.type==="Property"))}function d(C){const v=new Set(C.properties.filter(w=>w.type==="Property"&&w.kind==="init"&&!w.computed).map(({key:w})=>w.name)),A=v.has("get"),b=v.has("set");r&&b&&!A&&h(C,"missingGetter"),u&&A&&!b&&h(C,"missingSetter")}function E(C){g(C),l(C)&&d(C)}function S(C){const v=C.body.filter(A=>A.type==="MethodDefinition");f(v.filter(A=>A.static)),f(v.filter(A=>!A.static))}function x(C){const A=(C.type==="TSTypeLiteral"?C.members:C.body).filter(b=>b.type==="TSMethodSignature");f(A)}const T={};return(r||u)&&(T.ObjectExpression=E,m&&(T.ClassBody=S),i&&(T["TSTypeLiteral, TSInterfaceBody"]=x)),T}},fi}var pi,Yd;function Sw(){if(Yd)return pi;Yd=1;const a=Ue();return pi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-newline",url:"https://eslint.style/rules/array-bracket-newline"}}]},type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const n=e.sourceCode;function o(i){let c=!1,h=!1,s;return i?i==="consistent"?(c=!0,s=Number.POSITIVE_INFINITY):i==="always"||i.minItems===0?s=0:i==="never"?s=Number.POSITIVE_INFINITY:(h=!!i.multiline,s=i.minItems||Number.POSITIVE_INFINITY):(c=!1,h=!0,s=Number.POSITIVE_INFINITY),{consistent:c,multiline:h,minItems:s}}function t(i){const c=o(i);return{ArrayExpression:c,ArrayPattern:c}}function l(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(h){const s=n.getTokenAfter(c,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([c.range[1],s.range[0]])}})}function p(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedClosingLinebreak",fix(h){const s=n.getTokenBefore(c,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([s.range[1],c.range[0]])}})}function u(i,c){e.report({node:i,loc:c.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(c,`
|
|
59
|
+
`,"\u2028","\u2029"]),T=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=new Set(["let","const","using","await using"]),v=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,A=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,b=new Set(["&&=","||=","??="]),w=m[`es${i}`];function k(V,ne,ue){const Ce=V.identifier,qe=ne===0||ue[ne-1].identifier!==Ce;return Ce&&V.init===!1&&V.isWrite()&&qe}function R(V){return V[0]!==V[0].toLocaleLowerCase()}function F(V){return V.id&&R(V.id.name)}function L(V){for(let ne=V;ne;ne=ne.parent)if(c.test(ne.type))return ne;return null}function P(V){return!!(V&&c.test(V.type))}function O(V){return!!(V&&h.test(V.type))}function q(V){for(let ne=V;ne&&!P(ne);ne=ne.parent)if(O(ne))return!0;return!1}function N(V){return V.type==="Literal"&&V.value===null&&!V.regex&&!V.bigint}function _(V){return N(V)||V.type==="Identifier"&&V.name==="undefined"||V.type==="UnaryExpression"&&V.operator==="void"}function G(V){return V.parent.type==="CallExpression"&&V.parent.callee===V}function B(V){switch(V.type){case"Literal":if(V.value===null){if(N(V))return String(V.value);if(V.regex)return`/${V.regex.pattern}/${V.regex.flags}`;if(V.bigint)return V.bigint}else return String(V.value);break;case"TemplateLiteral":if(V.expressions.length===0&&V.quasis.length===1)return V.quasis[0].value.cooked;break}return null}function z(V){let ne;switch(V&&V.type){case"ChainExpression":return z(V.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"TSPropertySignature":case"TSMethodSignature":ne=V.key;break;case"MemberExpression":ne=V.property;break}return ne?ne.type==="Identifier"&&!V.computed?ne.name:B(ne):null}function H(V){return V&&V.type==="ChainExpression"?V.expression:V}function ce(V,ne){return typeof ne=="string"?V===ne:ne.test(V)}function re(V,ne){return V.type==="Identifier"&&ce(V.name,ne)}function Fe(V,ne,ue){const Ce=H(V);if(Ce.type!=="MemberExpression"||ne&&!re(Ce.object,ne))return!1;if(ue){const qe=z(Ce);if(typeof qe!="string"||!ce(qe,ue))return!1}return!0}function X(V,ne){return V.regex||ne.regex?!!(V.regex&&ne.regex&&V.regex.pattern===ne.regex.pattern&&V.regex.flags===ne.regex.flags):V.bigint||ne.bigint?V.bigint===ne.bigint:V.value===ne.value}function I(V,ne,ue=!1){if(V.type!==ne.type)return V.type==="ChainExpression"?I(V.expression,ne,ue):ne.type==="ChainExpression"?I(V,ne.expression,ue):!1;switch(V.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return V.name===ne.name;case"Literal":return X(V,ne);case"ChainExpression":return I(V.expression,ne.expression,ue);case"MemberExpression":{if(!ue){const Ce=z(V);if(Ce!==null)return I(V.object,ne.object,ue)&&Ce===z(ne)}return V.computed===ne.computed&&I(V.object,ne.object,ue)&&I(V.property,ne.property,ue)}default:return!1}}function W(V){return Fe(V,"Reflect","apply")}function oe(V){return Fe(V,f,"from")}function ie(V){return Fe(V,null,s)}function se(V){return ne=>!V(ne)}function de(V,ne){const ue=ne.getJSDocComment(V);return ue&&d.test(ue.value)?!0:ne.getCommentsBefore(V).some(Ce=>d.test(Ce.value))}function be(V,ne){const ue=V.getTokenBefore(ne),Ce=V.getTokenAfter(ne);return!!(ue&&Ce)&&ue.value==="("&&ue.range[1]<=ne.range[0]&&Ce.value===")"&&Ce.range[0]>=ne.range[1]}function xe(V){return V.value==="="&&V.type==="Punctuator"}function Te(V){return V.value==="=>"&&V.type==="Punctuator"}function J(V){return V.value===","&&V.type==="Punctuator"}function Q(V){return V.value==="."&&V.type==="Punctuator"}function ke(V){return V.value==="?."&&V.type==="Punctuator"}function $(V){return V.value===";"&&V.type==="Punctuator"}function ae(V){return V.value===":"&&V.type==="Punctuator"}function Ie(V){return V.value==="("&&V.type==="Punctuator"}function Ne(V){return V.value===")"&&V.type==="Punctuator"}function Be(V){return V.value==="["&&V.type==="Punctuator"}function j(V){return V.value==="]"&&V.type==="Punctuator"}function Qe(V){return V.value==="{"&&V.type==="Punctuator"}function ut(V){return V.value==="}"&&V.type==="Punctuator"}function rt(V){return V.type==="Line"||V.type==="Block"||V.type==="Shebang"}function ze(V){return V.type==="Keyword"}function Xe(V,ne){if(V.type==="ArrowFunctionExpression"&&V.params.length===1){const ue=ne.getFirstToken(V.params[0]),Ce=ne.getTokenBefore(ue);return Ie(Ce)?Ce:ue}return V.id?ne.getTokenAfter(V.id,Ie):ne.getFirstToken(V,Ie)}function ht(V,ne,ue){const Ce=ue.getTokens(V),qe=ue.getTokens(ne);if(Ce.length!==qe.length)return!1;for(let _e=0;_e<Ce.length;++_e)if(Ce[_e].type!==qe[_e].type||Ce[_e].value!==qe[_e].value)return!1;return!0}function dt(V){return V.type==="LogicalExpression"&&(V.operator==="&&"||V.operator==="||")}function at(V){return V.type==="LogicalExpression"&&V.operator==="??"}function tt(V,ne){return dt(V)&&at(ne)||at(V)&&dt(ne)}function we(V){return b.has(V)}function Ee(V,ne){return V.test?ne.getTokenAfter(V.test,ae):ne.getFirstToken(V,1)}function Se(V){return V.type==="Identifier"?V.name:V.value}function ve(V){return V.value===null?V.raw==="null"?!1:typeof V.regex=="object"?!0:null:!!V.value}function Pe(V,ne){switch(V.type){case"Literal":return ne==="||"&&ve(V)===!0||ne==="&&"&&ve(V)===!1;case"UnaryExpression":return ne==="&&"&&V.operator==="void";case"LogicalExpression":return ne===V.operator&&(Pe(V.left,ne)||Pe(V.right,ne));case"AssignmentExpression":return["||=","&&="].includes(V.operator)&&ne===V.operator.slice(0,-1)&&Pe(V.right,ne)}return!1}function ee(V,ne){const ue=V.references.find(Ce=>Ce.identifier===ne);return!!(ue&&ue.resolved&&ue.resolved.scope.type==="global"&&ue.resolved.defs.length===0)}function te(V,ne,ue){if(!ne)return!0;switch(ne.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return ue&&ne.quasis.some(Ce=>Ce.value.cooked.length)||ne.expressions.every(Ce=>te(V,Ce,!1));case"ArrayExpression":return ue?!0:ne.elements.every(Ce=>te(V,Ce,!1));case"UnaryExpression":return ne.operator==="void"||ne.operator==="typeof"&&ue?!0:ne.operator==="!"?te(V,ne.argument,!0):te(V,ne.argument,!1);case"BinaryExpression":return te(V,ne.left,!1)&&te(V,ne.right,!1)&&ne.operator!=="in";case"LogicalExpression":{const Ce=te(V,ne.left,ue),qe=te(V,ne.right,ue),_e=Ce&&Pe(ne.left,ne.operator),Ke=ue&&qe&&Pe(ne.right,ne.operator);return Ce&&qe||_e||Ke}case"NewExpression":return ue;case"AssignmentExpression":return ne.operator==="="?te(V,ne.right,ue):["||=","&&="].includes(ne.operator)&&ue?Pe(ne.right,ne.operator.slice(0,-1)):!1;case"SequenceExpression":return te(V,ne.expressions.at(-1),ue);case"SpreadElement":return te(V,ne.argument,ue);case"CallExpression":return ne.callee.type==="Identifier"&&ne.callee.name==="Boolean"&&(ne.arguments.length===0||te(V,ne.arguments[0],!0))?ee(V,ne.callee):!1;case"Identifier":return ne.name==="undefined"&&ee(V,ne)}return!1}function Z(V){if(V.type!=="ExpressionStatement")return!1;const ne=V.parent;return ne.type==="Program"||ne.type==="TSModuleBlock"||ne.type==="BlockStatement"&&P(ne.parent)}function fe(V){return V.type==="ExpressionStatement"&&typeof V.directive=="string"}function De(V){const ne=V.range[0];let ue=V;for(;(ue=ue.parent)&&ue.range[0]===ne;)if(ue.type==="ExpressionStatement")return!0;return!1}let Le;{let V=function(pe){for(let le=pe;;){const{parent:ye}=le;if(!ye)break;if(Je.has(ye.type)&&le===ye.typeAnnotation)return!0;le=ye}return!1};const ne=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),Ce=new Set(["Identifier","Keyword"]),qe={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},_e=new Set([":",";","{","=>","++","--"]),Ke=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]),Je=new Set(["TSAsExpression","TSSatisfiesExpression","TSTypeAliasDeclaration","TSTypeAnnotation"]);Le=function(pe,le){const ye=pe.getTokenBefore(le);if(!ye||ye.type==="Punctuator"&&_e.has(ye.value))return!1;const Re=pe.getNodeByRangeIndex(ye.range[0]);if(Re.type==="TSDeclareFunction"||Re.parent.type==="TSImportEqualsDeclaration"||Re.parent.parent?.type==="TSImportEqualsDeclaration"||Je.has(Re.type)||V(Re))return!1;if(Ne(ye))return!Ke.has(Re.type);if(ut(ye))return Re.type==="BlockStatement"&&Re.parent.type==="FunctionExpression"&&Re.parent.parent.type!=="MethodDefinition"||Re.type==="ClassBody"&&Re.parent.type==="ClassExpression"||Re.type==="ObjectExpression";if(Ce.has(ye.type)){if(Re.parent.type==="VariableDeclarator"&&!Re.parent.init||ne.has(Re.parent.type))return!1;const Oe=ye.value,it=qe[Oe];return Re.type!==it}return ye.type==="String"?!ue.has(Re.parent.type):!0}}function me(V){const{parent:ne}=V;if(ne.type==="ImportAttribute"&&ne.key===V)return!0;if(ne.type==="Property"&&!ne.computed&&(ne.key===V||ne.value===V&&ne.shorthand&&!ne.method)&&ne.parent.type==="ObjectExpression"){const ue=ne.parent,Ce=ue.parent;if(Ce.type==="ImportExpression"&&Ce.options===ue)return!0;if(Ce.type==="Property"&&Ce.value===ue)return me(Ce.key)}return!1}a.exports={COMMENTS_IGNORE_PATTERN:E,LINEBREAKS:x,LINEBREAK_MATCHER:u,SHEBANG_MATCHER:r,STATEMENT_LIST_PARENTS:T,ECMASCRIPT_GLOBALS:w,isTokenOnSameLine(V,ne){return V.loc.end.line===ne.loc.start.line},isNullOrUndefined:_,isCallee:G,isES5Constructor:F,getUpperFunction:L,isFunction:P,isLoop:O,isInLoop:q,isArrayFromMethod:oe,isParenthesised:be,createGlobalLinebreakMatcher:p,equalTokens:ht,isArrowToken:Te,isClosingBraceToken:ut,isClosingBracketToken:j,isClosingParenToken:Ne,isColonToken:ae,isCommaToken:J,isCommentToken:rt,isDotToken:Q,isQuestionDotToken:ke,isKeywordToken:ze,isNotClosingBraceToken:se(ut),isNotClosingBracketToken:se(j),isNotClosingParenToken:se(Ne),isNotColonToken:se(ae),isNotCommaToken:se(J),isNotDotToken:se(Q),isNotQuestionDotToken:se(ke),isNotOpeningBraceToken:se(Qe),isNotOpeningBracketToken:se(Be),isNotOpeningParenToken:se(Ie),isNotSemicolonToken:se($),isOpeningBraceToken:Qe,isOpeningBracketToken:Be,isOpeningParenToken:Ie,isSemicolonToken:$,isEqToken:xe,isStringLiteral(V){return V.type==="Literal"&&typeof V.value=="string"||V.type==="TemplateLiteral"},isBreakableStatement(V){return l.test(V.type)},getModifyingReferences(V){return V.filter(k)},isSurroundedBy(V,ne){return V[0]===ne&&V.at(-1)===ne},isDirectiveComment(V){const ne=V.value.trim();return V.type==="Line"&&ne.startsWith("eslint-")||V.type==="Block"&&S.test(ne)},getTrailingStatement:n.ast.trailingStatement,getVariableByName(V,ne){let ue=V;for(;ue;){const Ce=ue.set.get(ne);if(Ce)return Ce;ue=ue.upper}return null},isDefaultThisBinding(V,ne,{capIsConstructor:ue=!0}={}){if(V.parent.type==="PropertyDefinition"&&V.parent.value===V||V.type==="StaticBlock"||(V.type==="FunctionDeclaration"||V.type==="FunctionExpression")&&V.params.some(_e=>_e.type==="Identifier"&&_e.name==="this")||ue&&F(V)||de(V,ne))return!1;const Ce=V.id===null;let qe=V;for(;qe;){const _e=qe.parent;switch(_e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":qe=_e;break;case"ReturnStatement":{const Ke=L(_e);if(Ke===null||!G(Ke))return!0;qe=Ke.parent;break}case"ArrowFunctionExpression":if(qe!==_e.body||!G(_e))return!0;qe=_e.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return _e.value!==qe;case"AssignmentExpression":case"AssignmentPattern":return!(_e.left.type==="MemberExpression"||ue&&Ce&&_e.left.type==="Identifier"&&R(_e.left.name));case"VariableDeclarator":return!(ue&&Ce&&_e.init===qe&&_e.id.type==="Identifier"&&R(_e.id.name));case"MemberExpression":if(_e.object===qe&&Fe(_e,null,g)){const Ke=_e.parent.type==="ChainExpression"?_e.parent:_e;return!(G(Ke)&&Ke.parent.arguments.length>=1&&!_(Ke.parent.arguments[0]))}return!0;case"CallExpression":return W(_e.callee)?_e.arguments.length!==3||_e.arguments[0]!==qe||_(_e.arguments[1]):oe(_e.callee)?_e.arguments.length!==3||_e.arguments[1]!==qe||_(_e.arguments[2]):ie(_e.callee)?_e.arguments.length!==2||_e.arguments[0]!==qe||_(_e.arguments[1]):!0;default:return!0}}return!0},getPrecedence(V){switch(V.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(V.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(V.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return V.type in e?20:-1}},isEmptyBlock(V){return!!(V&&V.type==="BlockStatement"&&V.body.length===0)},isEmptyFunction(V){return P(V)&&a.exports.isEmptyBlock(V.body)},getDirectivePrologue(V){const ne=[];if(V.type==="Program"||V.type==="FunctionDeclaration"||V.type==="FunctionExpression"||V.type==="ArrowFunctionExpression"&&V.body.type==="BlockStatement"){const ue=V.type==="Program"?V.body:V.body.body;for(const Ce of ue)if(Ce.type==="ExpressionStatement"&&Ce.expression.type==="Literal")ne.push(Ce);else break}return ne},isDecimalInteger(V){return V.type==="Literal"&&typeof V.value=="number"&&v.test(V.raw)},isDecimalIntegerNumericToken(V){return V.type==="Numeric"&&v.test(V.value)},getFunctionNameWithKind(V){const ne=V.parent,ue=[];if((ne.type==="MethodDefinition"||ne.type==="PropertyDefinition"||V.type==="TSPropertySignature"||V.type==="TSMethodSignature")&&(ne.static&&ue.push("static"),!ne.computed&&ne.key?.type==="PrivateIdentifier"&&ue.push("private")),V.async&&ue.push("async"),V.generator&&ue.push("generator"),ne.type==="Property"||ne.type==="MethodDefinition"){if(ne.kind==="constructor")return"constructor";ne.kind==="get"?ue.push("getter"):ne.kind==="set"?ue.push("setter"):ue.push("method")}else V.type==="TSMethodSignature"?V.kind==="get"?ue.push("getter"):V.kind==="set"?ue.push("setter"):ue.push("method"):ne.type==="PropertyDefinition"?ue.push("method"):(V.type==="ArrowFunctionExpression"&&ue.push("arrow"),ue.push("function"));if(ne.type==="Property"||ne.type==="MethodDefinition"||ne.type==="PropertyDefinition")if(!ne.computed&&ne.key.type==="PrivateIdentifier")ue.push(`#${ne.key.name}`);else{const Ce=z(ne);Ce!==null?ue.push(`'${Ce}'`):V.id&&ue.push(`'${V.id.name}'`)}else V.type==="TSMethodSignature"?ue.push(`'${z(V)}'`):V.id&&ue.push(`'${V.id.name}'`);return ue.join(" ")},getFunctionHeadLoc(V,ne){const ue=V.parent;let Ce,qe;if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition"||ue.type==="TSPropertySignature"||ue.type==="TSMethodSignature")Ce=ue.loc.start,qe=Xe(V,ne).loc.start;else if(V.type==="ArrowFunctionExpression"){const _e=ne.getTokenBefore(V.body,Te);Ce=_e.loc.start,qe=_e.loc.end}else Ce=V.loc.start,qe=Xe(V,ne).loc.start;return{start:Object.assign({},Ce),end:Object.assign({},qe)}},getNextLocation(V,{line:ne,column:ue}){return ue<V.lines[ne-1].length?{line:ne,column:ue+1}:ne<V.lines.length?{line:ne+1,column:0}:null},getParenthesisedText(V,ne){let ue=V.getFirstToken(ne),Ce=V.getLastToken(ne);for(;V.getTokenBefore(ue)&&V.getTokenBefore(ue).type==="Punctuator"&&V.getTokenBefore(ue).value==="("&&V.getTokenAfter(Ce)&&V.getTokenAfter(Ce).type==="Punctuator"&&V.getTokenAfter(Ce).value===")";)ue=V.getTokenBefore(ue),Ce=V.getTokenAfter(Ce);return V.getText().slice(ue.range[0],Ce.range[1])},couldBeError(V){switch(V.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(V.operator)?a.exports.couldBeError(V.right):["||=","??="].includes(V.operator)?a.exports.couldBeError(V.left)||a.exports.couldBeError(V.right):!1;case"SequenceExpression":{const ne=V.expressions;return ne.length!==0&&a.exports.couldBeError(ne.at(-1))}case"LogicalExpression":return V.operator==="&&"?a.exports.couldBeError(V.right):a.exports.couldBeError(V.left)||a.exports.couldBeError(V.right);case"ConditionalExpression":return a.exports.couldBeError(V.consequent)||a.exports.couldBeError(V.alternate);default:return!1}},isNumericLiteral(V){return V.type==="Literal"&&(typeof V.value=="number"||!!V.bigint)},canTokensBeAdjacent(V,ne){const ue={ecmaVersion:o.latestEcmaVersion,comment:!0,range:!0};let Ce;if(typeof V=="string"){let _e;try{_e=o.tokenize(V,ue)}catch{return!1}const Ke=_e.comments;if(Ce=_e.at(-1),Ke.length){const Je=Ke.at(-1);(!Ce||Je.range[0]>Ce.range[0])&&(Ce=Je)}}else Ce=V;if(Ce.type==="Shebang"||Ce.type==="Hashbang")return!1;let qe;if(typeof ne=="string"){let _e;try{_e=o.tokenize(ne,ue)}catch{return!1}const Ke=_e.comments;if(qe=_e[0],Ke.length){const Je=Ke[0];(!qe||Je.range[0]<qe.range[0])&&(qe=Je)}}else qe=ne;if(Ce.type==="Punctuator"||qe.type==="Punctuator"){if(Ce.type==="Punctuator"&&qe.type==="Punctuator"){const _e=new Set(["+","++"]),Ke=new Set(["-","--"]);return!(_e.has(Ce.value)&&_e.has(qe.value)||Ke.has(Ce.value)&&Ke.has(qe.value))}return Ce.type==="Punctuator"&&Ce.value==="/"?!["Block","Line","RegularExpression"].includes(qe.type):!0}return!!(Ce.type==="String"||qe.type==="String"||Ce.type==="Template"||qe.type==="Template"||Ce.type!=="Numeric"&&qe.type==="Numeric"&&qe.value.startsWith(".")||Ce.type==="Block"||qe.type==="Block"||qe.type==="Line"||qe.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(V,ne,ue){const Ce=new RegExp(`[\\s,]${t(ue)}(?:$|[\\s,:])`,"gu");Ce.lastIndex=ne.value.indexOf("global")+6;const qe=Ce.exec(ne.value),_e=V.getLocFromIndex(ne.range[0]+2+(qe?qe.index+1:0)),Ke={line:_e.line,column:_e.column+(qe?ue.length:1)};return{start:_e,end:Ke}},hasOctalOrNonOctalDecimalEscapeSequence(V){return A.test(V)},isStaticTemplateLiteral(V){return V.type==="TemplateLiteral"&&V.expressions.length===0},areBracesNecessary(V,ne){function ue(Je){return Je.type==="VariableDeclaration"?C.has(Je.kind):Je.type==="FunctionDeclaration"||Je.type==="ClassDeclaration"}function Ce(Je){return Je.value==="else"&&Je.type==="Keyword"}function qe(Je){const pe=ne.getTokenAfter(Je);return!!pe&&Ce(pe)}function _e(Je){switch(Je.type){case"IfStatement":return Je.alternate?_e(Je.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return _e(Je.body);default:return!1}}const Ke=V.body[0];return ue(Ke)||_e(Ke)&&qe(V)},isReferenceToGlobalVariable:ee,isLogicalExpression:dt,isCoalesceExpression:at,isMixedLogicalAndCoalesceExpressions:tt,isNullLiteral:N,getStaticStringValue:B,getStaticPropertyName:z,skipChainExpression:H,isSpecificId:re,isSpecificMemberAccess:Fe,equalLiteralValue:X,isSameReference:I,isLogicalAssignmentOperator:we,getSwitchCaseColonToken:Ee,getModuleExportName:Se,isConstant:te,isTopLevelExpressionStatement:Z,isDirective:fe,isStartOfExpressionStatement:De,needsPrecedingSemicolon:Le,isImportAttributeKey:me}}(ai)),ai.exports}var fi,Jd;function Ew(){if(Jd)return fi;Jd=1;const a=Ue();function e(p,u){if(p.length!==u.length)return!1;for(let r=0;r<p.length;r++){const m=p[r],i=u[r];if(m.type!==i.type||m.value!==i.value)return!1}return!0}function n(p,u){return typeof p=="string"&&typeof u=="string"?p===u:Array.isArray(p)&&Array.isArray(u)?e(p,u):!1}function o(p){return p.kind==="get"||p.kind==="set"}function t(p,u,r,m){const i=p.parent;return i.type==="CallExpression"&&a.isSpecificMemberAccess(i.callee,r,m)&&i.arguments[u]===p}function l(p){if(t(p,2,"Object","defineProperty")||t(p,2,"Reflect","defineProperty"))return!0;const u=p.parent.parent;return u.type==="ObjectExpression"&&(t(u,1,"Object","create")||t(u,1,"Object","defineProperties"))}return fi={meta:{type:"suggestion",defaultOptions:[{enforceForTSTypes:!1,enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:"Enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean"},setWithoutGet:{type:"boolean"},enforceForClassMembers:{type:"boolean"},enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}.",missingGetterInType:"Getter is not present for type {{ name }}.",missingSetterInType:"Setter is not present for type {{ name }}."}},create(p){const[{getWithoutSet:u,setWithoutGet:r,enforceForClassMembers:m,enforceForTSTypes:i}]=p.options,c=p.sourceCode;function h(C,v){C.type==="Property"?p.report({node:C,messageId:`${v}InObjectLiteral`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="MethodDefinition"?p.report({node:C,messageId:`${v}InClass`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="TSMethodSignature"?p.report({node:C,messageId:`${v}InType`,loc:a.getFunctionHeadLoc(C,c),data:{name:a.getFunctionNameWithKind(C)}}):p.report({node:C,messageId:`${v}InPropertyDescriptor`})}function s(C,v){for(const A of C)h(A,v)}function f(C){const v=[];let A=!1;for(let b=0;b<C.length;b++){const w=C[b];if(o(w)){const k=a.getStaticPropertyName(w),R=k!==null?k:c.getTokens(w.key);for(let F=0;F<v.length;F++){const L=v[F];if(n(L.key,R)){L.getters.push(...w.kind==="get"?[w]:[]),L.setters.push(...w.kind==="set"?[w]:[]),A=!0;break}}A||v.push({key:R,getters:w.kind==="get"?[w]:[],setters:w.kind==="set"?[w]:[]}),A=!1}}for(const{getters:b,setters:w}of v)r&&w.length&&!b.length&&s(w,"missingGetter"),u&&b.length&&!w.length&&s(b,"missingSetter")}function g(C){f(C.properties.filter(v=>v.type==="Property"))}function d(C){const v=new Set(C.properties.filter(w=>w.type==="Property"&&w.kind==="init"&&!w.computed).map(({key:w})=>w.name)),A=v.has("get"),b=v.has("set");r&&b&&!A&&h(C,"missingGetter"),u&&A&&!b&&h(C,"missingSetter")}function E(C){g(C),l(C)&&d(C)}function S(C){const v=C.body.filter(A=>A.type==="MethodDefinition");f(v.filter(A=>A.static)),f(v.filter(A=>!A.static))}function x(C){const A=(C.type==="TSTypeLiteral"?C.members:C.body).filter(b=>b.type==="TSMethodSignature");f(A)}const T={};return(r||u)&&(T.ObjectExpression=E,m&&(T.ClassBody=S),i&&(T["TSTypeLiteral, TSInterfaceBody"]=x)),T}},fi}var pi,Yd;function Sw(){if(Yd)return pi;Yd=1;const a=Ue();return pi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-newline",url:"https://eslint.style/rules/array-bracket-newline"}}]},type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const n=e.sourceCode;function o(i){let c=!1,h=!1,s;return i?i==="consistent"?(c=!0,s=Number.POSITIVE_INFINITY):i==="always"||i.minItems===0?s=0:i==="never"?s=Number.POSITIVE_INFINITY:(h=!!i.multiline,s=i.minItems||Number.POSITIVE_INFINITY):(c=!1,h=!0,s=Number.POSITIVE_INFINITY),{consistent:c,multiline:h,minItems:s}}function t(i){const c=o(i);return{ArrayExpression:c,ArrayPattern:c}}function l(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(h){const s=n.getTokenAfter(c,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([c.range[1],s.range[0]])}})}function p(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedClosingLinebreak",fix(h){const s=n.getTokenBefore(c,{includeComments:!0});return a.isCommentToken(s)?null:h.removeRange([s.range[1],c.range[0]])}})}function u(i,c){e.report({node:i,loc:c.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(c,`
|
|
60
60
|
`)}})}function r(i,c){e.report({node:i,loc:c.loc,messageId:"missingClosingLinebreak",fix(h){return h.insertTextBefore(c,`
|
|
61
61
|
`)}})}function m(i){const c=i.elements,s=t(e.options[0])[i.type],f=n.getFirstToken(i),g=n.getLastToken(i),d=n.getTokenAfter(f,{includeComments:!0}),E=n.getTokenBefore(g,{includeComments:!0}),S=n.getTokenAfter(f),x=n.getTokenBefore(g);c.length>=s.minItems||s.multiline&&c.length>0&&d.loc.start.line!==E.loc.end.line||c.length===0&&d.type==="Block"&&d.loc.start.line!==E.loc.end.line&&d===E||s.consistent&&f.loc.end.line!==S.loc.start.line?(a.isTokenOnSameLine(f,S)&&u(i,f),a.isTokenOnSameLine(x,g)&&r(i,g)):(a.isTokenOnSameLine(f,S)||l(i,f),a.isTokenOnSameLine(x,g)||p(i,g))}return{ArrayPattern:m,ArrayExpression:m}}},pi}var mi,Qd;function bw(){if(Qd)return mi;Qd=1;const a=Ue();return mi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-spacing",url:"https://eslint.style/rules/array-bracket-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){const n=e.options[0]==="always",o=e.sourceCode;function t(s){return e.options[1]?e.options[1][s]===!n:!1}const l={spaced:n,singleElementException:t("singleValue"),objectsInArraysException:t("objectsInArrays"),arraysInArraysException:t("arraysInArrays")};function p(s,f){const g=o.getTokenAfter(f);e.report({node:s,loc:{start:f.loc.end,end:g.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:f.value},fix(d){return d.removeRange([f.range[1],g.range[0]])}})}function u(s,f){const g=o.getTokenBefore(f);e.report({node:s,loc:{start:g.loc.end,end:f.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:f.value},fix(d){return d.removeRange([g.range[1],f.range[0]])}})}function r(s,f){e.report({node:s,loc:f.loc,messageId:"missingSpaceAfter",data:{tokenValue:f.value},fix(g){return g.insertTextAfter(f," ")}})}function m(s,f){e.report({node:s,loc:f.loc,messageId:"missingSpaceBefore",data:{tokenValue:f.value},fix(g){return g.insertTextBefore(f," ")}})}function i(s){return s&&(s.type==="ObjectExpression"||s.type==="ObjectPattern")}function c(s){return s&&(s.type==="ArrayExpression"||s.type==="ArrayPattern")}function h(s){if(l.spaced&&s.elements.length===0)return;const f=o.getFirstToken(s),g=o.getFirstToken(s,1),d=s.typeAnnotation?o.getTokenBefore(s.typeAnnotation):o.getLastToken(s),E=o.getTokenBefore(d),S=s.elements[0],x=s.elements.at(-1),T=l.objectsInArraysException&&i(S)||l.arraysInArraysException&&c(S)||l.singleElementException&&s.elements.length===1?!l.spaced:l.spaced,C=l.objectsInArraysException&&i(x)||l.arraysInArraysException&&c(x)||l.singleElementException&&s.elements.length===1?!l.spaced:l.spaced;a.isTokenOnSameLine(f,g)&&(T&&!o.isSpaceBetweenTokens(f,g)&&r(s,f),!T&&o.isSpaceBetweenTokens(f,g)&&p(s,f)),f!==E&&a.isTokenOnSameLine(E,d)&&(C&&!o.isSpaceBetweenTokens(E,d)&&m(s,d),!C&&o.isSpaceBetweenTokens(E,d)&&u(s,d))}return{ArrayPattern:h,ArrayExpression:h}}},mi}var hi,Zd;function xw(){if(Zd)return hi;Zd=1;const a=Ue(),e=/^(?:Arrow)?FunctionExpression$/u,n=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function o(i){return a.isSpecificMemberAccess(i,null,n)}function t(i){for(const c of i)if(c.reachable)return!0;return!1}function l(i){return["from","of","isArray"].includes(i)?"Array.".concat(i):"Array.prototype.".concat(i)}function p(i){let c=i;for(;c;){const h=c.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":c=h;break;case"ReturnStatement":{const s=a.getUpperFunction(h);if(s===null||!a.isCallee(s))return null;c=s.parent;break}case"CallExpression":return a.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===c?"from":o(h.callee)&&h.arguments.length>=1&&h.arguments[0]===c?a.getStaticPropertyName(h.callee):null;default:return null}}return null}function u(i){return i.type==="UnaryExpression"&&i.operator==="void"}function r(i,c,h){const s=a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(i,c),f=i.getTokenBefore(c,c.parent.type==="ArrowFunctionExpression"?a.isArrowToken:E=>E.type==="Keyword"&&E.value==="return"),g=i.getTokenAfter(f),d=f.value==="return"&&f.range[1]===g.range[0];return[h.insertTextBefore(g,`${d?" ":""}void ${s?"(":""}`),h.insertTextAfter(c,s?")":"")]}function m(i,c,h){const s=i.getTokenBefore(c.body,a.isArrowToken),f=i.getTokenAfter(s),g=i.getLastToken(c);return[h.insertTextBefore(f,"{"),h.insertTextAfter(g,"}")]}return hi={meta:{type:"problem",defaultOptions:[{allowImplicit:!1,checkForEach:!1,allowVoid:!1}],docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"},checkForEach:{type:"boolean"},allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(i){const[c]=i.options,h=i.sourceCode;let s={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function f(g){if(!s.shouldCheck)return;const d={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(c.checkForEach&&g.type==="ArrowFunctionExpression"&&g.expression)if(c.allowVoid){if(u(g.body))return;d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"wrapBraces",fix(E){return m(h,g,E)}},{messageId:"prependVoid",fix(E){return r(h,g.body,E)}}]}else d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"wrapBraces",fix(E){return m(h,g,E)}}]}else g.body.type==="BlockStatement"&&t(s.currentSegments)&&(d.messageId=s.hasReturn?"expectedAtEnd":"expectedInside");if(d.messageId){const E=a.getFunctionNameWithKind(g);i.report({node:g,loc:a.getFunctionHeadLoc(g,h),messageId:d.messageId,data:{name:E,arrayMethodName:l(s.arrayMethodName)},suggest:d.suggest.length!==0?d.suggest:null})}}return{onCodePathStart(g,d){let E=null;e.test(d.type)&&(E=p(d)),s={arrayMethodName:E,upper:s,codePath:g,hasReturn:!1,shouldCheck:E&&!d.async&&!d.generator,node:d,currentSegments:new Set}},onCodePathEnd(){s=s.upper},onUnreachableCodePathSegmentStart(g){s.currentSegments.add(g)},onUnreachableCodePathSegmentEnd(g){s.currentSegments.delete(g)},onCodePathSegmentStart(g){s.currentSegments.add(g)},onCodePathSegmentEnd(g){s.currentSegments.delete(g)},ReturnStatement(g){if(!s.shouldCheck)return;s.hasReturn=!0;const d={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(c.checkForEach&&g.argument)if(c.allowVoid){if(u(g.argument))return;d.messageId="expectedNoReturnValue",d.suggest=[{messageId:"prependVoid",fix(E){return r(h,g.argument,E)}}]}else d.messageId="expectedNoReturnValue"}else!c.allowImplicit&&!g.argument&&(d.messageId="expectedReturnValue");d.messageId&&i.report({node:g,messageId:d.messageId,data:{name:a.getFunctionNameWithKind(s.node),arrayMethodName:l(s.arrayMethodName)},suggest:d.suggest.length!==0?d.suggest:null})},"FunctionExpression:exit":f,"ArrowFunctionExpression:exit":f}}},hi}var di,eg;function Cw(){if(eg)return di;eg=1;const a=Ue();return di={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-element-newline",url:"https://eslint.style/rules/array-element-newline"}}]},type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){const n=e.sourceCode;function o(r){let m=!1,i=!1,c;const h=r||"always";return h==="always"||h.minItems===0?c=0:h==="never"?c=Number.POSITIVE_INFINITY:h==="consistent"?(m=!0,c=Number.POSITIVE_INFINITY):(i=!!h.multiline,c=h.minItems||Number.POSITIVE_INFINITY),{consistent:m,multiline:i,minItems:c}}function t(r){if(r&&(r.ArrayExpression||r.ArrayPattern)){let i,c;return r.ArrayExpression&&(i=o(r.ArrayExpression)),r.ArrayPattern&&(c=o(r.ArrayPattern)),{ArrayExpression:i,ArrayPattern:c}}const m=o(r);return{ArrayExpression:m,ArrayPattern:m}}function l(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(i){if(a.isCommentToken(m))return null;if(!a.isTokenOnSameLine(m,r))return i.replaceTextRange([m.range[1],r.range[0]]," ");const c=n.getTokenBefore(m,{includeComments:!0});return a.isCommentToken(c)?null:i.replaceTextRange([c.range[1],m.range[0]],"")}})}function p(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix(i){return i.replaceTextRange([m.range[1],r.range[0]],`
|
|
62
62
|
`)}})}function u(r){const m=r.elements,c=t(e.options[0])[r.type];if(!c)return;let h=!1;c.multiline&&(h=m.filter(g=>g!==null).some(g=>g.loc.start.line!==g.loc.end.line));let s=0;for(let g=0;g<r.elements.length;g++){const d=r.elements[g],E=m[g-1];if(g===0||d===null||E===null)continue;const S=n.getFirstTokenBetween(E,d,a.isCommaToken),x=n.getTokenBefore(S),T=n.getTokenAfter(S);a.isTokenOnSameLine(x,T)||s++}const f=m.length>=c.minItems||c.multiline&&h||c.consistent&&s>0&&s<r.elements.length;m.forEach((g,d)=>{const E=m[d-1];if(d===0||g===null||E===null)return;const S=n.getFirstTokenBetween(E,g,a.isCommaToken),x=n.getTokenBefore(S),T=n.getTokenAfter(S);f?a.isTokenOnSameLine(x,T)&&p(T):a.isTokenOnSameLine(x,T)||l(T)})}return{ArrayPattern:u,ArrayExpression:u}}},di}var gi,tg;function ww(){if(tg)return gi;tg=1;const a=Ue();return gi={meta:{type:"suggestion",defaultOptions:["as-needed"],docs:{description:"Require braces around arrow function bodies",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){const n=e.options,o=n[0]==="always",t=n[0]==="as-needed",l=n[0]==="never",p=n[1]&&n[1].requireReturnForObjectLiteral,u=e.sourceCode;let r=null;function m(s){return s&&s.type==="Punctuator"&&/^[([/`+-]/u.test(s.value)}function i(s){let f=s;for(;!a.isParenthesised(u,f);)f=f.parent;return u.getTokenAfter(f)}function c(s){return s&&s.parent?s.parent.type==="ForStatement"&&s.parent.init===s?!0:c(s.parent):!1}function h(s){const f=s.body;if(f.type==="BlockStatement"){const g=f.body;if(g.length!==1&&!l||t&&p&&g[0].type==="ReturnStatement"&&g[0].argument&&g[0].argument.type==="ObjectExpression")return;if(l||t&&g[0].type==="ReturnStatement"){let d;g.length===0?d="unexpectedEmptyBlock":g.length>1||g[0].type!=="ReturnStatement"?d="unexpectedOtherBlock":g[0].argument===null?d="unexpectedSingleBlock":a.isOpeningBraceToken(u.getFirstToken(g[0],{skip:1}))?d="unexpectedObjectBlock":d="unexpectedSingleBlock",e.report({node:s,loc:f.loc,messageId:d,fix(E){const S=[];if(g.length!==1||g[0].type!=="ReturnStatement"||!g[0].argument||m(u.getTokenAfter(f)))return S;const x=u.getFirstToken(f),T=u.getLastToken(f),C=u.getFirstToken(g[0],1),v=u.getLastToken(g[0]);return u.commentsExistBetween(x,C)||u.commentsExistBetween(v,T)?S.push(E.remove(x),E.remove(T),E.remove(u.getTokenAfter(x))):S.push(E.removeRange([x.range[0],C.range[0]]),E.removeRange([v.range[1],T.range[1]])),(a.isOpeningBraceToken(C)||g[0].argument.type==="SequenceExpression"||r.hasInOperator&&c(s))&&(a.isParenthesised(u,g[0].argument)||S.push(E.insertTextBefore(C,"("),E.insertTextAfter(v,")"))),a.isSemicolonToken(v)&&S.push(E.remove(v)),S}})}}else(o||t&&p&&f.type==="ObjectExpression")&&e.report({node:s,loc:f.loc,messageId:"expectedBlock",fix(g){const d=[],E=u.getTokenBefore(f,a.isArrowToken),[S,x]=u.getTokensAfter(E,{count:2}),T=u.getLastToken(s);let C=null;if(a.isOpeningParenToken(S)&&a.isOpeningBraceToken(x)){const v=u.getNodeByRangeIndex(x.range[0]);v.type==="ObjectExpression"&&(C=v)}if(C){const v=S,A=x;a.isTokenOnSameLine(v,A)?d.push(g.replaceText(v,"{return ")):d.push(g.replaceText(v,"{"),g.insertTextBefore(A,"return ")),d.push(g.remove(i(C))),d.push(g.insertTextAfter(T,"}"))}else d.push(g.insertTextBefore(S,"{return ")),d.push(g.insertTextAfter(T,"}"));return d}})}return{"BinaryExpression[operator='in']"(){let s=r;for(;s;)s.hasInOperator=!0,s=s.upper},ArrowFunctionExpression(){r={upper:r,hasInOperator:!1}},"ArrowFunctionExpression:exit"(s){h(s),r=r.upper}}}},gi}var yi,rg;function Aw(){if(rg)return yi;rg=1;const a=Ue();function e(n){return n.body.type==="BlockStatement"}return yi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-parens",url:"https://eslint.style/rules/arrow-parens"}}]},type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(n){const o=n.options[0]==="as-needed",t=o&&n.options[1]&&n.options[1].requireForBlockBody===!0,l=n.sourceCode;function p(i){const c=l.getTokenBefore(i.params[0]);return c&&a.isOpeningParenToken(c)&&i.range[0]<=c.range[0]?c:null}function u(i){return l.getTokenAfter(i.params[0],a.isClosingParenToken)}function r(i,c){return l.commentsExistBetween(c,u(i))}function m(i,c){const h=i.async?1:0;return l.getFirstToken(i,{skip:h})!==c}return{"ArrowFunctionExpression[params.length=1]"(i){const c=!o||t&&e(i),h=p(i),s=h!==null,[f]=i.params;c&&!s&&n.report({node:i,messageId:t?"expectedParensBlock":"expectedParens",loc:f.loc,*fix(g){yield g.insertTextBefore(f,"("),yield g.insertTextAfter(f,")")}}),!c&&s&&f.type==="Identifier"&&!f.typeAnnotation&&!i.returnType&&!r(i,h)&&!m(i,h)&&n.report({node:i,messageId:t?"unexpectedParensInline":"unexpectedParens",loc:f.loc,*fix(g){const d=l.getTokenBefore(h),E=u(i);d&&d.range[1]===h.range[0]&&!a.canTokensBeAdjacent(d,l.getFirstToken(f))&&(yield g.insertTextBefore(h," ")),yield g.removeRange([h.range[0],f.range[0]]),yield g.removeRange([f.range[1],E.range[1]])}})}}}},yi}var vi,ng;function Tw(){if(ng)return vi;ng=1;const a=Ue();return vi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-spacing",url:"https://eslint.style/rules/arrow-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){const n=Object.assign({},e.options[0]);n.before=n.before!==!1,n.after=n.after!==!1;const o=e.sourceCode;function t(u){const r=o.getTokenBefore(u.body,a.isArrowToken);return{before:o.getTokenBefore(r),arrow:r,after:o.getTokenAfter(r)}}function l(u){const r=u.arrow.range[0]-u.before.range[1],m=u.after.range[0]-u.arrow.range[1];return{before:r,after:m}}function p(u){const r=t(u),m=l(r);n.before?m.before===0&&e.report({node:r.before,messageId:"expectedBefore",fix(i){return i.insertTextBefore(r.arrow," ")}}):m.before>0&&e.report({node:r.before,messageId:"unexpectedBefore",fix(i){return i.removeRange([r.before.range[1],r.arrow.range[0]])}}),n.after?m.after===0&&e.report({node:r.after,messageId:"expectedAfter",fix(i){return i.insertTextAfter(r.arrow," ")}}):m.after>0&&e.report({node:r.after,messageId:"unexpectedAfter",fix(i){return i.removeRange([r.arrow.range[1],r.after.range[0]])}})}return{ArrowFunctionExpression:p}}},vi}var Ei,sg;function kw(){return sg||(sg=1,Ei={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(a){let e=[];const n=a.sourceCode;function o(u){e.push(u.range)}function t(){e.pop()}function l(u,r){const m=u.identifier,i=r.name.loc.start;a.report({node:m,messageId:"outOfScope",data:{name:m.name,definitionLine:i.line,definitionColumn:i.column+1}})}function p(u){if(u.kind!=="var")return;const r=e.at(-1);function m(c){const h=c.identifier.range;return h[0]<r[0]||h[1]>r[1]}const i=n.getDeclaredVariables(u);for(let c=0;c<i.length;++c)i[c].references.filter(m).forEach(h=>l(h,i[c].defs.find(s=>s.parent===u)))}return{Program(u){e=[u.range]},BlockStatement:o,"BlockStatement:exit":t,ForStatement:o,"ForStatement:exit":t,ForInStatement:o,"ForInStatement:exit":t,ForOfStatement:o,"ForOfStatement:exit":t,SwitchStatement:o,"SwitchStatement:exit":t,CatchClause:o,"CatchClause:exit":t,StaticBlock:o,"StaticBlock:exit":t,VariableDeclaration:p}}}),Ei}var Si,ag;function Dw(){if(ag)return Si;ag=1;const a=Ue();return Si={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"block-spacing",url:"https://eslint.style/rules/block-spacing"}}]},type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){const n=e.options[0]!=="never",o=n?"missing":"extra",t=e.sourceCode;function l(r){return r.type==="SwitchStatement"?r.cases.length>0?t.getTokenBefore(r.cases[0]):t.getLastToken(r,1):r.type==="StaticBlock"?t.getFirstToken(r,{skip:1}):t.getFirstToken(r)}function p(r,m){return!a.isTokenOnSameLine(r,m)||t.isSpaceBetweenTokens(r,m)===n}function u(r){const m=l(r),i=t.getLastToken(r),c=t.getTokenAfter(m,{includeComments:!0}),h=t.getTokenBefore(i,{includeComments:!0});if(!(m.type!=="Punctuator"||m.value!=="{"||i.type!=="Punctuator"||i.value!=="}"||c===i)&&!(!n&&c.type==="Line")){if(!p(m,c)){let s=m.loc;o==="extra"&&(s={start:m.loc.end,end:c.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"after",token:m.value},fix(f){return n?f.insertTextBefore(c," "):f.removeRange([m.range[1],c.range[0]])}})}if(!p(h,i)){let s=i.loc;o==="extra"&&(s={start:h.loc.end,end:i.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"before",token:i.value},fix(f){return n?f.insertTextAfter(h," "):f.removeRange([h.range[1],i.range[0]])}})}}}return{BlockStatement:u,StaticBlock:u,SwitchStatement:u}}},Si}var bi,ig;function Iw(){if(ig)return bi;ig=1;const a=Ue();return bi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"brace-style",url:"https://eslint.style/rules/brace-style"}}]},type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){const n=e.options[0]||"1tbs",o=e.options[1]||{},t=e.sourceCode;function l(r,m){const i=[r.range[1],m.range[0]];return t.text.slice(i[0],i[1]).trim()?null:h=>h.replaceTextRange(i," ")}function p(r,m){const i=t.getTokenBefore(r),c=t.getTokenAfter(r),h=t.getTokenBefore(m),s=o.allowSingleLine&&a.isTokenOnSameLine(r,m);n!=="allman"&&!a.isTokenOnSameLine(i,r)&&e.report({node:r,messageId:"nextLineOpen",fix:l(i,r)}),n==="allman"&&a.isTokenOnSameLine(i,r)&&!s&&e.report({node:r,messageId:"sameLineOpen",fix:f=>f.insertTextBefore(r,`
|
|
63
63
|
`)}),a.isTokenOnSameLine(r,c)&&c!==m&&!s&&e.report({node:r,messageId:"blockSameLine",fix:f=>f.insertTextAfter(r,`
|
|
64
64
|
`)}),h!==r&&!s&&a.isTokenOnSameLine(h,m)&&e.report({node:m,messageId:"singleLineClose",fix:f=>f.insertTextBefore(m,`
|
|
65
65
|
`)})}function u(r){const m=t.getTokenAfter(r);n==="1tbs"&&!a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"nextLineClose",fix:l(r,m)}),n!=="1tbs"&&a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"sameLineClose",fix:i=>i.insertTextAfter(r,`
|
|
66
|
-
`)})}return{BlockStatement(r){a.STATEMENT_LIST_PARENTS.has(r.parent.type)||p(t.getFirstToken(r),t.getLastToken(r))},StaticBlock(r){p(t.getFirstToken(r,{skip:1}),t.getLastToken(r))},ClassBody(r){p(t.getFirstToken(r),t.getLastToken(r))},SwitchStatement(r){const m=t.getLastToken(r),i=t.getTokenBefore(r.cases.length?r.cases[0]:m);p(i,m)},IfStatement(r){r.consequent.type==="BlockStatement"&&r.alternate&&u(t.getLastToken(r.consequent))},TryStatement(r){u(t.getLastToken(r.block)),r.handler&&r.finalizer&&u(t.getLastToken(r.handler.body))}}}},bi}var xi,og;function Pw(){return og||(og=1,xi={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"callback-return",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md"}}]},type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(a){const e=a.options[0]||["callback","cb","next"],n=a.sourceCode;function o(u,r){return u.parent?r.includes(u.parent.type)?u.parent:o(u.parent,r):null}function t(u){if(u.type==="Identifier")return!0;if(u.type==="MemberExpression"){if(u.object.type==="Identifier")return!0;if(u.object.type==="MemberExpression")return t(u.object)}return!1}function l(u){return t(u.callee)&&e.includes(n.getText(u.callee))}function p(u,r){return!r||r.type!=="ExpressionStatement"?!1:r.expression===u||(r.expression.type==="BinaryExpression"||r.expression.type==="LogicalExpression")&&r.expression.right===u}return{CallExpression(u){if(!l(u))return;const r=o(u,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(r.type!=="ReturnStatement"&&r.type!=="ArrowFunctionExpression"){if(r.type==="BlockStatement"){const m=r.body.at(-1);if(p(u,m)){const i=r.parent.type;if(i==="FunctionExpression"||i==="FunctionDeclaration"||i==="ArrowFunctionExpression")return}if(m.type==="ReturnStatement"&&p(u,r.body.at(-2)))return}o(u,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&a.report({node:u,messageId:"missingReturn"})}}}}}),xi}var Ci,lg;function Fw(){if(lg)return Ci;lg=1;const a=Ue();return Ci={meta:{type:"suggestion",defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:"always"}],docs:{description:"Enforce camelcase naming convention",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImports:{type:"boolean"},ignoreGlobals:{type:"boolean"},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){const[{allow:n,ignoreDestructuring:o,ignoreGlobals:t,ignoreImports:l,properties:p}]=e.options,u=e.sourceCode,r=new Set;function m(d){const E=d.replace(/^_+|_+$/gu,"");return E.includes("_")&&E!==E.toUpperCase()}function i(d){return n.some(E=>d===E||d.match(new RegExp(E,"u")))}function c(d){return!m(d)||i(d)}function h(d){const E=d.parent;switch(E.type){case"AssignmentExpression":case"AssignmentPattern":return E.left===d;case"Property":return E.parent.type==="ObjectPattern"&&E.value===d;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function s(d){const E=d.name,S=d.parent.type==="AssignmentPattern"?d.parent:d,x=S.parent;switch(x.type){case"Property":return(x.parent.type==="ObjectPattern"||x.parent.type==="ObjectExpression")&&x.value===S&&!x.computed&&x.key.type==="Identifier"&&x.key.name===E;case"ImportSpecifier":return x.local===d&&a.getModuleExportName(x.imported)===E;default:return!1}}function f(d){r.has(d.range[0])||(r.add(d.range[0]),e.report({node:d,messageId:d.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:d.name}}))}function g(d){d.parent.type==="CallExpression"||d.parent.type==="NewExpression"||d.parent.type==="AssignmentPattern"&&d.parent.right===d||o&&s(d)||a.isImportAttributeKey(d)||f(d)}return{Program(d){const E=u.getScope(d);if(!t){for(const S of E.variables)if(!(S.identifiers.length>0||c(S.name)))for(const x of S.references)g(x.identifier)}for(const S of E.through){const x=S.identifier;c(x.name)||a.isImportAttributeKey(x)||g(x)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](d){for(const E of u.getDeclaredVariables(d)){if(c(E.name))continue;const S=E.identifiers[0];o&&s(S)||f(S);for(const x of E.references)x.init||g(x.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](d){p==="never"||a.isImportAttributeKey(d)||c(d.name)||f(d)},"MemberExpression[computed!=true] > Identifier.property"(d){p==="never"||!h(d.parent)||c(d.name)||f(d)},ImportDeclaration(d){for(const E of u.getDeclaredVariables(d)){if(c(E.name))continue;const S=E.identifiers[0];l&&s(S)||f(S);for(const x of E.references)g(x.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](d){c(d.name)||f(d)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](d){c(d.name)||f(d)}}}},Ci}var wi,ug;function Rw(){if(ug)return wi;ug=1;const e=Ue().COMMENTS_IGNORE_PATTERN,n=/\s/gu,o=/^\s*[^:/?#\s]+:\/\/[^?#]/u,t=new RegExp("\\p{L}","u"),l={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},p={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function u(i,c){return Object.assign({},p,i[c]||i)}function r(i={}){return{Line:u(i,"line"),Block:u(i,"block")}}function m(i){Object.keys(i).forEach(c=>{const h=i[c].ignorePattern;if(h){const s=RegExp(`^\\s*(?:${h})`,"u");i[c].ignorePatternRegExp=s}})}return wi={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[l,{type:"object",properties:{line:l,block:l},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(i){const c=i.options[0]||"always",h=r(i.options[1]),s=i.sourceCode;m(h);function f(S){const x=s.getTokenBefore(S,{includeComments:!0}),T=s.getTokenAfter(S,{includeComments:!0});return!!(x&&T&&S.loc.start.line===x.loc.end.line&&S.loc.end.line===T.loc.start.line)}function g(S){const x=s.getTokenBefore(S,{includeComments:!0});return!!(x&&["Block","Line"].includes(x.type))}function d(S,x){if(e.test(S.value))return!0;const T=S.value.replace(/\*/gu,"");if(x.ignorePatternRegExp&&x.ignorePatternRegExp.test(T)||x.ignoreInlineComments&&f(S)||x.ignoreConsecutiveComments&&g(S)||o.test(T))return!0;const C=T.replace(n,"");if(C.length===0)return!0;const[v]=C;if(!t.test(v))return!0;const A=v!==v.toLocaleLowerCase(),b=v!==v.toLocaleUpperCase();return!(c==="always"&&b||c==="never"&&A)}function E(S){const x=h[S.type];if(!d(S,x)){const C=c==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";i.report({node:null,loc:S.loc,messageId:C,fix(v){const A=S.value.match(t),b=A[0],w=S.range[0]+A.index+2;return v.replaceTextRange([w,w+b.length],c==="always"?b.toLocaleUpperCase():b.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(x=>x.type!=="Shebang").forEach(E)}}}},wi}var Ai,cg;function _w(){if(cg)return Ai;cg=1;const a=Ue();return Ai={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean"},ignoreOverrideMethods:{type:"boolean"},ignoreClassesWithImplements:{enum:["all","public-fields"]}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const[n]=e.options,{enforceForClassFields:o,ignoreOverrideMethods:t,ignoreClassesWithImplements:l}=n,p=new Set(n.exceptMethods),u=[];function r(){u.push(!1)}function m(){return u.pop()}function i(){r()}function c(d){switch(d.type){case"MethodDefinition":return!d.static&&d.kind!=="constructor";case"AccessorProperty":case"PropertyDefinition":return!d.static&&o;default:return!1}}function h(d){const E=d.parent.parent;return E?.type==="ClassDeclaration"&&E.implements?.length>0}function s(d){if(c(d)){if(d.computed)return!0;if(t&&d.override||l&&h(d)&&(l==="all"||l==="public-fields"&&d.key.type!=="PrivateIdentifier"&&(!d.accessibility||d.accessibility==="public")))return!1;const E=d.key.type==="PrivateIdentifier"?"#":"",S=d.key.type==="Literal"?a.getStaticStringValue(d.key):d.key.name||"";return!p.has(E+S)}return!1}function f(d){const E=m();s(d.parent)&&!E&&e.report({node:d,loc:a.getFunctionHeadLoc(d,e.sourceCode),messageId:"missingThis",data:{name:a.getFunctionNameWithKind(d)}})}function g(){u.length&&(u[u.length-1]=!0)}return{FunctionDeclaration:i,"FunctionDeclaration:exit":f,FunctionExpression:i,"FunctionExpression:exit":f,"AccessorProperty > *.key:exit":r,"AccessorProperty:exit":m,"PropertyDefinition > *.key:exit":r,"PropertyDefinition:exit":m,StaticBlock:r,"StaticBlock:exit":m,ThisExpression:g,Super:g,...o&&{"AccessorProperty > ArrowFunctionExpression.value":i,"AccessorProperty > ArrowFunctionExpression.value:exit":f,"PropertyDefinition > ArrowFunctionExpression.value":i,"PropertyDefinition > ArrowFunctionExpression.value:exit":f}}}},Ai}var Ti,fg;function Bw(){if(fg)return Ti;fg=1;const a=Ue(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function n(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function o(t,l){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:l<2017?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||e.arrays,objects:t.objects||e.objects,imports:t.imports||e.imports,exports:t.exports||e.exports,functions:t.functions||e.functions}:e}return Ti={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-dangle",url:"https://eslint.style/rules/comma-dangle"}}]},type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(t){const l=o(t.options[0],t.languageOptions.ecmaVersion),p=t.sourceCode;function u(g){function d(E){return E.at(-1)}switch(g.type){case"ObjectExpression":case"ObjectPattern":return d(g.properties);case"ArrayExpression":case"ArrayPattern":return d(g.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return d(g.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return d(g.params);case"CallExpression":case"NewExpression":return d(g.arguments);default:return null}}function r(g,d){switch(g.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return p.getLastToken(g,1);default:{const E=p.getTokenAfter(d);return a.isCommaToken(E)?E:p.getLastToken(d)}}}function m(g){const d=u(g);if(!d)return!1;const E=r(g,d);return p.getTokenAfter(E).loc.end.line!==E.loc.end.line}function i(g){const d=u(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;const E=r(g,d);a.isCommaToken(E)&&t.report({node:d,loc:E.loc,messageId:"unexpected",*fix(S){yield S.remove(E),yield S.insertTextBefore(p.getTokenBefore(E),""),yield S.insertTextAfter(p.getTokenAfter(E),"")}})}function c(g){const d=u(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;if(!n(d)){i(g);return}const E=r(g,d);E.value!==","&&t.report({node:d,loc:{start:E.loc.end,end:a.getNextLocation(p,E.loc.end)},messageId:"missing",*fix(S){yield S.insertTextAfter(E,","),yield S.insertTextBefore(E,""),yield S.insertTextAfter(p.getTokenAfter(E),"")}})}function h(g){m(g)?c(g):i(g)}function s(g){m(g)||i(g)}const f={always:c,"always-multiline":h,"only-multiline":s,never:i,ignore(){}};return{ObjectExpression:f[l.objects],ObjectPattern:f[l.objects],ArrayExpression:f[l.arrays],ArrayPattern:f[l.arrays],ImportDeclaration:f[l.imports],ExportNamedDeclaration:f[l.exports],FunctionDeclaration:f[l.functions],FunctionExpression:f[l.functions],ArrowFunctionExpression:f[l.functions],CallExpression:f[l.functions],NewExpression:f[l.functions]}}},Ti}var ki,pg;function Lw(){if(pg)return ki;pg=1;const a=Ue();return ki={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-spacing",url:"https://eslint.style/rules/comma-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const n=e.sourceCode,o=n.tokensAndComments,t={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},l=[];function p(r,m,i){e.report({node:r,fix(c){if(t[m])return m==="before"?c.insertTextBefore(r," "):c.insertTextAfter(r," ");let h,s;const f="";return m==="before"?(h=i.range[1],s=r.range[0]):(h=r.range[1],s=i.range[0]),c.replaceTextRange([h,s],f)},messageId:t[m]?"missing":"unexpected",data:{loc:m}})}function u(r){let m=n.getFirstToken(r);r.elements.forEach(i=>{let c;i===null?(c=n.getTokenAfter(m),a.isCommaToken(c)&&l.push(c)):c=n.getTokenAfter(i),m=c})}return{"Program:exit"(){o.forEach((r,m)=>{if(!a.isCommaToken(r))return;const i=o[m-1],c=o[m+1];i&&!a.isCommaToken(i)&&!l.includes(r)&&a.isTokenOnSameLine(i,r)&&t.before!==n.isSpaceBetweenTokens(i,r)&&p(r,"before",i),c&&!a.isCommaToken(c)&&!a.isClosingParenToken(c)&&!a.isClosingBracketToken(c)&&!a.isClosingBraceToken(c)&&!(!t.after&&c.type==="Line")&&a.isTokenOnSameLine(r,c)&&t.after!==n.isSpaceBetweenTokens(r,c)&&p(r,"after",c)})},ArrayExpression:u,ArrayPattern:u}}},ki}var Di,mg;function Ow(){if(mg)return Di;mg=1;const a=Ue();return Di={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-style",url:"https://eslint.style/rules/comma-style"}}]},type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const n=e.options[0]||"last",o=e.sourceCode,t={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){const i=Object.keys(e.options[1].exceptions);for(let c=0;c<i.length;c++)t[i[c]]=e.options[1].exceptions[i[c]]}function l(i,c){switch(i){case"between":return`,${c.replace(a.LINEBREAK_MATCHER,"")}`;case"first":return`${c},`;case"last":return`,${c}`;default:return""}}function p(i,c,h,s){const f=o.text.slice(c.range[1],h.range[0])+o.text.slice(h.range[1],s.range[0]),g=[c.range[1],s.range[0]];return function(d){return d.replaceTextRange(g,l(i,f))}}function u(i,c,h,s){if(!(a.isTokenOnSameLine(c,h)&&a.isTokenOnSameLine(i,c)))if(!a.isTokenOnSameLine(c,h)&&!a.isTokenOnSameLine(i,c)){const f=o.getCommentsAfter(c)[0],g=f&&f.type==="Block"&&a.isTokenOnSameLine(c,f)?n:"between";e.report({node:s,loc:c.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:p(g,i,c,h)})}else n==="first"&&!a.isTokenOnSameLine(c,h)?e.report({node:s,loc:c.loc,messageId:"expectedCommaFirst",fix:p(n,i,c,h)}):n==="last"&&a.isTokenOnSameLine(c,h)&&e.report({node:s,loc:c.loc,messageId:"expectedCommaLast",fix:p(n,i,c,h)})}function r(i,c){const h=i[c],s=i.type==="ArrayExpression"||i.type==="ArrayPattern";if(h.length>1||s){let f=o.getFirstToken(i);if(h.forEach(g=>{const d=g?o.getTokenBefore(g):f,E=g?o.getFirstToken(g):o.getTokenAfter(d),S=g||E;if(a.isCommaToken(d)&&u(f,d,E,S),g){const x=o.getTokenAfter(g,a.isNotClosingParenToken);f=x?o.getTokenBefore(x):o.ast.tokens.at(-1)}else f=E}),s){const g=o.getLastToken(i),d=o.getTokenBefore(g);a.isCommaToken(d)&&u(o.getTokenBefore(d),d,g,g)}}}const m={};return t.VariableDeclaration||(m.VariableDeclaration=function(i){r(i,"declarations")}),t.ObjectExpression||(m.ObjectExpression=function(i){r(i,"properties")}),t.ObjectPattern||(m.ObjectPattern=function(i){r(i,"properties")}),t.ArrayExpression||(m.ArrayExpression=function(i){r(i,"elements")}),t.ArrayPattern||(m.ArrayPattern=function(i){r(i,"elements")}),t.FunctionDeclaration||(m.FunctionDeclaration=function(i){r(i,"params")}),t.FunctionExpression||(m.FunctionExpression=function(i){r(i,"params")}),t.ArrowFunctionExpression||(m.ArrowFunctionExpression=function(i){r(i,"params")}),t.CallExpression||(m.CallExpression=function(i){r(i,"arguments")}),t.ImportDeclaration||(m.ImportDeclaration=function(i){r(i,"specifiers")}),t.NewExpression||(m.NewExpression=function(i){r(i,"arguments")}),m}},Di}var Ii,hg;function Ir(){if(hg)return Ii;hg=1;const a=/^[\u0000-\u007f]*$/u;let e;function n(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}function o(t){if(a.test(t))return t.length;e??=new Intl.Segmenter("en-US");let l=0;for(const p of e.segment(t))l++;return l}return Ii={upperCaseFirst:n,getGraphemeCount:o},Ii}var Pi,dg;function Nw(){if(dg)return Pi;dg=1;const a=Ue(),{upperCaseFirst:e}=Ir(),n=20;return Pi={meta:{type:"suggestion",defaultOptions:[n],docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},variant:{enum:["classic","modified"]}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(o){const t=o.options[0];let l=n,p="classic";typeof t=="object"?((Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(l=t.maximum||t.max),Object.hasOwn(t,"variant")&&(p=t.variant)):typeof t=="number"&&(l=t);const u=p==="modified",r=[];function m(){r[r.length-1]++}return{onCodePathStart(){r.push(1)},CatchClause:m,ConditionalExpression:m,LogicalExpression:m,ForStatement:m,ForInStatement:m,ForOfStatement:m,IfStatement:m,WhileStatement:m,DoWhileStatement:m,AssignmentPattern:m,"SwitchCase[test]":()=>u||m(),SwitchStatement:()=>u&&m(),AssignmentExpression(i){a.isLogicalAssignmentOperator(i.operator)&&m()},MemberExpression(i){i.optional===!0&&m()},CallExpression(i){i.optional===!0&&m()},onCodePathEnd(i,c){const h=r.pop();if(!(i.origin!=="function"&&i.origin!=="class-field-initializer"&&i.origin!=="class-static-block")&&h>l){let s;i.origin==="class-field-initializer"?s="class field initializer":i.origin==="class-static-block"?s="class static block":s=a.getFunctionNameWithKind(c),o.report({node:c,messageId:"complex",data:{name:e(s),complexity:h,max:l}})}}}}},Pi}var Fi,gg;function Mw(){if(gg)return Fi;gg=1;const a=Ue();return Fi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"computed-property-spacing",url:"https://eslint.style/rules/computed-property-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always",t=!e.options[1]||e.options[1].enforceForClassMembers;function l(c,h,s){e.report({node:c,loc:{start:h.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(f){return f.removeRange([h.range[1],s.range[0]])}})}function p(c,h,s){e.report({node:c,loc:{start:s.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(f){return f.removeRange([s.range[1],h.range[0]])}})}function u(c,h){e.report({node:c,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(s){return s.insertTextAfter(h," ")}})}function r(c,h){e.report({node:c,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(s){return s.insertTextBefore(h," ")}})}function m(c){return function(h){if(!h.computed)return;const s=h[c],f=n.getTokenBefore(s,a.isOpeningBracketToken),g=n.getTokenAfter(f,{includeComments:!0}),d=n.getTokenAfter(s,a.isClosingBracketToken),E=n.getTokenBefore(d,{includeComments:!0});a.isTokenOnSameLine(f,g)&&(o?!n.isSpaceBetweenTokens(f,g)&&a.isTokenOnSameLine(f,g)&&u(h,f):n.isSpaceBetweenTokens(f,g)&&l(h,f,g)),a.isTokenOnSameLine(E,d)&&(o?!n.isSpaceBetweenTokens(E,d)&&a.isTokenOnSameLine(E,d)&&r(h,d):n.isSpaceBetweenTokens(E,d)&&p(h,d,E))}}const i={Property:m("key"),MemberExpression:m("property")};return t&&(i.MethodDefinition=i.PropertyDefinition=i.Property),i}},Fi}var Ri,yg;function jw(){if(yg)return Ri;yg=1;const a=Ue(),{upperCaseFirst:e}=Ir();function n(t){for(const l of t)if(l.reachable)return!1;return!0}function o(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}return Ri={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(t){const[{treatUndefinedAsUnspecified:l}]=t.options;let p=null;function u(r){let m,i;!p.hasReturnValue||n(p.currentSegments)||a.isES5Constructor(r)||o(r)||(r.type==="Program"?(m={line:1,column:0},i="program"):r.type==="ArrowFunctionExpression"?m=t.sourceCode.getTokenBefore(r.body,a.isArrowToken).loc:r.parent.type==="MethodDefinition"||r.parent.type==="Property"&&r.parent.method?m=r.parent.key.loc:m=(r.id||t.sourceCode.getFirstToken(r)).loc,i||(i=a.getFunctionNameWithKind(r)),t.report({node:r,loc:m,messageId:"missingReturn",data:{name:i}}))}return{onCodePathStart(r,m){p={upper:p,codePath:r,hasReturn:!1,hasReturnValue:!1,messageId:"",node:m,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(r){p.currentSegments.add(r)},onUnreachableCodePathSegmentEnd(r){p.currentSegments.delete(r)},onCodePathSegmentStart(r){p.currentSegments.add(r)},onCodePathSegmentEnd(r){p.currentSegments.delete(r)},ReturnStatement(r){const m=r.argument;let i=!!m;l&&i&&(i=!a.isSpecificId(m,"undefined")&&m.operator!=="void"),p.hasReturn?p.hasReturnValue!==i&&t.report({node:r,messageId:p.messageId,data:p.data}):(p.hasReturn=!0,p.hasReturnValue=i,p.messageId=i?"missingReturnValue":"unexpectedReturnValue",p.data={name:p.node.type==="Program"?"Program":e(a.getFunctionNameWithKind(p.node))})},"Program:exit":u,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Ri}var _i,vg;function Uw(){return vg||(vg=1,_i={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},defaultOptions:["that"],messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(a){const e=a.options,n=a.sourceCode;function o(u,r){a.report({node:u,messageId:"aliasNotAssignedToThis",data:{name:r}})}function t(u,r,m){const i=m.type==="ThisExpression";e.includes(r)?(!i||u.operator&&u.operator!=="=")&&o(u,r):i&&a.report({node:u,messageId:"unexpectedAlias",data:{name:r}})}function l(u,r){const m=r.set.get(u);m&&(m.defs.some(i=>i.node.type==="VariableDeclarator"&&i.node.init!==null)||m.references.some(i=>{const c=i.writeExpr;return i.from===r&&c&&c.type==="ThisExpression"&&c.parent.operator==="="})||m.defs.map(i=>i.node).forEach(i=>{o(i,u)}))}function p(u){const r=n.getScope(u),m=u.type==="Program"&&u.sourceType==="module"?r.childScopes[0]:null;e.forEach(i=>{l(i,r),m&&l(i,m)})}return{"Program:exit":p,"FunctionExpression:exit":p,"FunctionDeclaration:exit":p,VariableDeclarator(u){const r=u.id,m=r.type==="ArrayPattern"||r.type==="ObjectPattern";u.init!==null&&!m&&t(u,r.name,u.init)},AssignmentExpression(u){u.left.type==="Identifier"&&t(u,u.left.name,u.right)}}}}),_i}var Bi,Eg;function qw(){if(Eg)return Bi;Eg=1;function a(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}function e(o){if(!o)return!1;switch(o.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return o.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(o.operator)?e(o.right):["||=","??="].includes(o.operator)?e(o.left)||e(o.right):!1;case"LogicalExpression":return o.operator==="&&"?e(o.right):e(o.left)||e(o.right);case"ConditionalExpression":return e(o.alternate)||e(o.consequent);case"SequenceExpression":{const t=o.expressions.at(-1);return e(t)}default:return!1}}class n{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Bi={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(o){let t=null;const l=Object.create(null);function p(m){return m.reachable&&l[m.id].calledInSomePaths}function u(m){return!!l[m.id]}function r(m){return m.reachable&&l[m.id].calledInEveryPaths}return{onCodePathStart(m,i){if(a(i)){const h=i.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:m,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:m,currentSegments:new Set}},onCodePathEnd(m,i){const c=t.hasExtends;if(t=t.upper,!c)return;const h=m.returnedSegments,s=h.every(r),f=h.some(p);s||o.report({messageId:f?"missingSome":"missingAll",node:i.parent})},onCodePathSegmentStart(m,i){if(t.currentSegments.add(m),!(t.isConstructor&&t.hasExtends))return;const c=l[m.id]=new n,h=m.prevSegments.filter(u);h.length>0&&(c.calledInSomePaths=h.some(p),c.calledInEveryPaths=h.every(r)),i.parent&&i.parent.type==="ForStatement"&&i.parent.update===i&&(c.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(m){t.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentLoop(m,i){t.isConstructor&&t.hasExtends&&t.codePath.traverseSegments({first:i,last:m},(c,h)=>{const s=l[c.id];if(!s){h.skip();return}const f=c.prevSegments.filter(u),g=f.some(p),d=f.every(r);if(s.calledInSomePaths||=g,s.calledInEveryPaths||=d,g){const E=s.validNodes;s.validNodes=[];for(let S=0;S<E.length;++S){const x=E[S];o.report({messageId:"duplicate",node:x})}}})},"CallExpression:exit"(m){if(!(t.isConstructor&&t.hasExtends)||m.callee.type!=="Super")return;const i=t.currentSegments;let c=!1,h=null;for(const s of i)s.reachable&&(h=l[s.id],c=c||h.calledInSomePaths,h.calledInSomePaths=h.calledInEveryPaths=!0);h&&(c?o.report({messageId:"duplicate",node:m}):t.superIsConstructor?h.validNodes.push(m):o.report({messageId:"badSuper",node:m}))},ReturnStatement(m){if(!(t.isConstructor&&t.hasExtends)||!m.argument)return;const i=t.currentSegments;for(const c of i)if(c.reachable){const h=l[c.id];h.calledInSomePaths=h.calledInEveryPaths=!0}}}}},Bi}var Li,Sg;function Vw(){if(Sg)return Li;Sg=1;const a=Ue();return Li={meta:{type:"suggestion",docs:{description:"Enforce consistent brace style for all control statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},defaultOptions:["all"],fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const n=e.options[0]==="multi",o=e.options[0]==="multi-line",t=e.options[0]==="multi-or-nest",l=e.options[1]==="consistent",p=e.sourceCode;function u(h){const s=p.getTokenBefore(h),f=p.getLastToken(h),g=a.isSemicolonToken(f)?p.getTokenBefore(f):f;return s.loc.start.line===g.loc.end.line}function r(h){if(h.type==="EmptyStatement")return!0;const s=p.getFirstToken(h),f=p.getLastToken(h),g=a.isSemicolonToken(f)?p.getTokenBefore(f):f;return s.loc.start.line===g.loc.end.line}function m(h){const s=p.getTokenBefore(h),f=p.getTokenAfter(h),g=p.getNodeByRangeIndex(s.range[0]);return a.isSemicolonToken(s)||!f||g.type==="BlockStatement"&&g.parent.type!=="FunctionExpression"&&g.parent.type!=="ArrowFunctionExpression"?!1:!!(s.loc.end.line===f.loc.start.line||/^[([/`+-]/u.test(f.value)||s.type==="Punctuator"&&(s.value==="++"||s.value==="--"))}function i(h,s,f,g){const d=s.type==="BlockStatement";let E=null;if(d&&(s.body.length!==1||a.areBracesNecessary(s,p)))E=!0;else if(n)E=!1;else if(o)u(s)||(E=!0);else if(t)if(d){const S=s.body[0],x=p.getCommentsBefore(S);E=!r(S)||x.length>0}else E=!r(s);else E=!0;return{actual:d,expected:E,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:h,loc:s.loc,messageId:g&&g.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:f},fix:S=>S.replaceText(s,`{${p.getText(s)}}`)}):e.report({node:h,loc:s.loc,messageId:g&&g.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:f},fix(S){const x=h.type==="DoWhileStatement"&&p.getTokenBefore(s).range[1]===s.range[0]&&!a.canTokensBeAdjacent("do",p.getFirstToken(s,{skip:1})),T=p.getFirstToken(s),C=p.getLastToken(s),v=p.getTokenBefore(C);if(m(C))return null;const A=p.getText().slice(T.range[1],v.range[0])+p.getText(v)+p.getText().slice(v.range[1],C.range[0]);return S.replaceText(s,(x?" ":"")+A)}}))}}}function c(h){const s=[];for(let f=h;f;f=f.alternate)if(s.push(i(f,f.consequent,"if",{condition:!0})),f.alternate&&f.alternate.type!=="IfStatement"){s.push(i(f,f.alternate,"else"));break}if(l){const f=s.some(g=>g.expected!==null?g.expected:g.actual);s.forEach(g=>{g.expected=f})}return s}return{IfStatement(h){const s=h.parent;s.type==="IfStatement"&&s.alternate===h||c(h).forEach(g=>{g.check()})},WhileStatement(h){i(h,h.body,"while",{condition:!0}).check()},DoWhileStatement(h){i(h,h.body,"do").check()},ForStatement(h){i(h,h.body,"for",{condition:!0}).check()},ForInStatement(h){i(h,h.body,"for-in").check()},ForOfStatement(h){i(h,h.body,"for-of").check()}}}},Li}var Oi,bg;function $w(){if(bg)return Oi;bg=1;const a=/^no default$/iu;return Oi={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const[n]=e.options,o=n.commentPattern?new RegExp(n.commentPattern,"u"):a,t=e.sourceCode;function l(p){return p.at(-1)}return{SwitchStatement(p){if(!p.cases.length)return;if(!p.cases.some(r=>r.test===null)){let r;const m=l(p.cases),i=t.getCommentsAfter(m);i.length&&(r=l(i)),(!r||!o.test(r.value.trim()))&&e.report({node:p,messageId:"missingDefaultCase"})}}}}},Oi}var Ni,xg;function Ww(){return xg||(xg=1,Ni={meta:{type:"suggestion",docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(a){return{SwitchStatement(e){const n=e.cases,o=n.findIndex(t=>t.test===null);if(o!==-1&&o!==n.length-1){const t=n[o];a.report({node:t,messageId:"notLast"})}}}}}),Ni}var Mi,Cg;function Gw(){if(Cg)return Mi;Cg=1;function a(e){return!(e.type==="AssignmentPattern"||e.type==="RestElement"||e.optional)}return Mi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function n(o){let t=!1;for(let l=o.params.length-1;l>=0;l-=1){const p=o.params[l],u=p.type==="TSParameterProperty"?p.parameter:p;if(a(u)){t=!0;continue}t&&e.report({node:p,messageId:"shouldBeLast"})}}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n}}},Mi}var ji,wg;function zw(){if(wg)return ji;wg=1;const a=Ue();return ji={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"dot-location",url:"https://eslint.style/rules/dot-location"}}]},type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const n=e.options[0],o=n==="object"||!n,t=e.sourceCode;function l(u){const r=u.property,m=t.getTokenBefore(r);if(o){const i=t.getTokenBefore(m);a.isTokenOnSameLine(i,m)||e.report({node:u,loc:m.loc,messageId:"expectedDotAfterObject",*fix(c){m.value.startsWith(".")&&a.isDecimalIntegerNumericToken(i)?yield c.insertTextAfter(i,` ${m.value}`):yield c.insertTextAfter(i,m.value),yield c.remove(m)}})}else a.isTokenOnSameLine(m,r)||e.report({node:u,loc:m.loc,messageId:"expectedDotBeforeProperty",*fix(i){yield i.remove(m),yield i.insertTextBefore(r,m.value)}})}function p(u){u.computed||l(u)}return{MemberExpression:p}}},ji}var Ui,Ag;function qi(){return Ag||(Ag=1,Ui=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]),Ui}var Vi,Tg;function Hw(){if(Tg)return Vi;Tg=1;const a=Ue(),e=qi(),n=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,o=new Set(["string","boolean"]);return Vi={meta:{type:"suggestion",defaultOptions:[{allowKeywords:!0,allowPattern:""}],docs:{description:"Enforce dot notation whenever possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(t){const[l]=t.options,p=l.allowKeywords,u=t.sourceCode;let r;l.allowPattern&&(r=new RegExp(l.allowPattern,"u"));function m(i,c){if(n.test(c)&&(p||!e.includes(String(c)))&&!(r&&r.test(c))){const h=i.property.type==="Literal"?JSON.stringify(c):`\`${c}\``;t.report({node:i.property,messageId:"useDot",data:{key:h},*fix(s){const f=u.getTokenAfter(i.object,a.isOpeningBracketToken),g=u.getLastToken(i),d=u.getTokenAfter(i);u.commentsExistBetween(f,g)||(i.optional||(yield s.insertTextBefore(f,a.isDecimalInteger(i.object)?" .":".")),yield s.replaceTextRange([f.range[0],g.range[1]],c),d&&g.range[1]===d.range[0]&&!a.canTokensBeAdjacent(String(c),d)&&(yield s.insertTextAfter(i," ")))}})}}return{MemberExpression(i){i.computed&&i.property.type==="Literal"&&(o.has(typeof i.property.value)||a.isNullLiteral(i.property))&&m(i,i.property.value),i.computed&&a.isStaticTemplateLiteral(i.property)&&m(i,i.property.quasis[0].value.cooked),!p&&!i.computed&&i.property.type==="Identifier"&&e.includes(String(i.property.name))&&t.report({node:i.property,messageId:"useBrackets",data:{key:i.property.name},*fix(c){const h=u.getTokenBefore(i.property);i.object.type==="Identifier"&&i.object.name==="let"&&!i.optional||u.commentsExistBetween(h,i.property)||(i.optional||(yield c.remove(h)),yield c.replaceText(i.property,`["${i.property.name}"]`))}})}}}},Vi}var $i,kg;function Kw(){return kg||(kg=1,$i={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"eol-last",url:"https://eslint.style/rules/eol-last"}}]},type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(a){return{Program:function(n){const o=a.sourceCode,t=o.getText(),l=o.lines.at(-1),p={column:l.length,line:o.lines.length},u=`
|
|
66
|
+
`)})}return{BlockStatement(r){a.STATEMENT_LIST_PARENTS.has(r.parent.type)||p(t.getFirstToken(r),t.getLastToken(r))},StaticBlock(r){p(t.getFirstToken(r,{skip:1}),t.getLastToken(r))},ClassBody(r){p(t.getFirstToken(r),t.getLastToken(r))},SwitchStatement(r){const m=t.getLastToken(r),i=t.getTokenBefore(r.cases.length?r.cases[0]:m);p(i,m)},IfStatement(r){r.consequent.type==="BlockStatement"&&r.alternate&&u(t.getLastToken(r.consequent))},TryStatement(r){u(t.getLastToken(r.block)),r.handler&&r.finalizer&&u(t.getLastToken(r.handler.body))}}}},bi}var xi,og;function Pw(){return og||(og=1,xi={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"callback-return",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md"}}]},type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(a){const e=a.options[0]||["callback","cb","next"],n=a.sourceCode;function o(u,r){return u.parent?r.includes(u.parent.type)?u.parent:o(u.parent,r):null}function t(u){if(u.type==="Identifier")return!0;if(u.type==="MemberExpression"){if(u.object.type==="Identifier")return!0;if(u.object.type==="MemberExpression")return t(u.object)}return!1}function l(u){return t(u.callee)&&e.includes(n.getText(u.callee))}function p(u,r){return!r||r.type!=="ExpressionStatement"?!1:r.expression===u||(r.expression.type==="BinaryExpression"||r.expression.type==="LogicalExpression")&&r.expression.right===u}return{CallExpression(u){if(!l(u))return;const r=o(u,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(r.type!=="ReturnStatement"&&r.type!=="ArrowFunctionExpression"){if(r.type==="BlockStatement"){const m=r.body.at(-1);if(p(u,m)){const i=r.parent.type;if(i==="FunctionExpression"||i==="FunctionDeclaration"||i==="ArrowFunctionExpression")return}if(m.type==="ReturnStatement"&&p(u,r.body.at(-2)))return}o(u,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&a.report({node:u,messageId:"missingReturn"})}}}}}),xi}var Ci,lg;function Fw(){if(lg)return Ci;lg=1;const a=Ue();return Ci={meta:{type:"suggestion",defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:"always"}],docs:{description:"Enforce camelcase naming convention",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImports:{type:"boolean"},ignoreGlobals:{type:"boolean"},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(e){const[{allow:n,ignoreDestructuring:o,ignoreGlobals:t,ignoreImports:l,properties:p}]=e.options,u=e.sourceCode,r=new Set;function m(d){const E=d.replace(/^_+|_+$/gu,"");return E.includes("_")&&E!==E.toUpperCase()}function i(d){return n.some(E=>d===E||d.match(new RegExp(E,"u")))}function c(d){return!m(d)||i(d)}function h(d){const E=d.parent;switch(E.type){case"AssignmentExpression":case"AssignmentPattern":return E.left===d;case"Property":return E.parent.type==="ObjectPattern"&&E.value===d;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function s(d){const E=d.name,S=d.parent.type==="AssignmentPattern"?d.parent:d,x=S.parent;switch(x.type){case"Property":return(x.parent.type==="ObjectPattern"||x.parent.type==="ObjectExpression")&&x.value===S&&!x.computed&&x.key.type==="Identifier"&&x.key.name===E;case"ImportSpecifier":return x.local===d&&a.getModuleExportName(x.imported)===E;default:return!1}}function f(d){r.has(d.range[0])||(r.add(d.range[0]),e.report({node:d,messageId:d.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:d.name}}))}function g(d){d.parent.type==="CallExpression"||d.parent.type==="NewExpression"||d.parent.type==="AssignmentPattern"&&d.parent.right===d||o&&s(d)||a.isImportAttributeKey(d)||f(d)}return{Program(d){const E=u.getScope(d);if(!t){for(const S of E.variables)if(!(S.identifiers.length>0||c(S.name)))for(const x of S.references)g(x.identifier)}for(const S of E.through){const x=S.identifier;c(x.name)||a.isImportAttributeKey(x)||g(x)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](d){for(const E of u.getDeclaredVariables(d)){if(c(E.name))continue;const S=E.identifiers[0];o&&s(S)||f(S);for(const x of E.references)x.init||g(x.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](d){p==="never"||a.isImportAttributeKey(d)||c(d.name)||f(d)},"MemberExpression[computed!=true] > Identifier.property"(d){p==="never"||!h(d.parent)||c(d.name)||f(d)},ImportDeclaration(d){for(const E of u.getDeclaredVariables(d)){if(c(E.name))continue;const S=E.identifiers[0];l&&s(S)||f(S);for(const x of E.references)g(x.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](d){c(d.name)||f(d)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](d){c(d.name)||f(d)}}}},Ci}var wi,ug;function Rw(){if(ug)return wi;ug=1;const e=Ue().COMMENTS_IGNORE_PATTERN,n=/\s/gu,o=/^\s*[^:/?#\s]+:\/\/[^?#]/u,t=new RegExp("\\p{L}","u"),l={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},p={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function u(i,c){return Object.assign({},p,i[c]||i)}function r(i={}){return{Line:u(i,"line"),Block:u(i,"block")}}function m(i){Object.keys(i).forEach(c=>{const h=i[c].ignorePattern;if(h){const s=RegExp(`^\\s*(?:${h})`,"u");i[c].ignorePatternRegExp=s}})}return wi={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[l,{type:"object",properties:{line:l,block:l},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(i){const c=i.options[0]||"always",h=r(i.options[1]),s=i.sourceCode;m(h);function f(S){const x=s.getTokenBefore(S,{includeComments:!0}),T=s.getTokenAfter(S,{includeComments:!0});return!!(x&&T&&S.loc.start.line===x.loc.end.line&&S.loc.end.line===T.loc.start.line)}function g(S){const x=s.getTokenBefore(S,{includeComments:!0});return!!(x&&["Block","Line"].includes(x.type))}function d(S,x){if(e.test(S.value))return!0;const T=S.value.replace(/\*/gu,"");if(x.ignorePatternRegExp&&x.ignorePatternRegExp.test(T)||x.ignoreInlineComments&&f(S)||x.ignoreConsecutiveComments&&g(S)||o.test(T))return!0;const C=T.replace(n,"");if(C.length===0)return!0;const[v]=C;if(!t.test(v))return!0;const A=v!==v.toLocaleLowerCase(),b=v!==v.toLocaleUpperCase();return!(c==="always"&&b||c==="never"&&A)}function E(S){const x=h[S.type];if(!d(S,x)){const C=c==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";i.report({node:null,loc:S.loc,messageId:C,fix(v){const A=S.value.match(t),b=A[0],w=S.range[0]+A.index+2;return v.replaceTextRange([w,w+b.length],c==="always"?b.toLocaleUpperCase():b.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(x=>x.type!=="Shebang").forEach(E)}}}},wi}var Ai,cg;function _w(){if(cg)return Ai;cg=1;const a=Ue();return Ai={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean"},ignoreOverrideMethods:{type:"boolean"},ignoreClassesWithImplements:{enum:["all","public-fields"]}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const[n]=e.options,{enforceForClassFields:o,ignoreOverrideMethods:t,ignoreClassesWithImplements:l}=n,p=new Set(n.exceptMethods),u=[];function r(){u.push(!1)}function m(){return u.pop()}function i(){r()}function c(d){switch(d.type){case"MethodDefinition":return!d.static&&d.kind!=="constructor";case"AccessorProperty":case"PropertyDefinition":return!d.static&&o;default:return!1}}function h(d){const E=d.parent.parent;return E?.type==="ClassDeclaration"&&E.implements?.length>0}function s(d){if(c(d)){if(d.computed)return!0;if(t&&d.override||l&&h(d)&&(l==="all"||l==="public-fields"&&d.key.type!=="PrivateIdentifier"&&(!d.accessibility||d.accessibility==="public")))return!1;const E=d.key.type==="PrivateIdentifier"?"#":"",S=d.key.type==="Literal"?a.getStaticStringValue(d.key):d.key.name||"";return!p.has(E+S)}return!1}function f(d){const E=m();s(d.parent)&&!E&&e.report({node:d,loc:a.getFunctionHeadLoc(d,e.sourceCode),messageId:"missingThis",data:{name:a.getFunctionNameWithKind(d)}})}function g(){u.length&&(u[u.length-1]=!0)}return{FunctionDeclaration:i,"FunctionDeclaration:exit":f,FunctionExpression:i,"FunctionExpression:exit":f,"AccessorProperty > *.key:exit":r,"AccessorProperty:exit":m,"PropertyDefinition > *.key:exit":r,"PropertyDefinition:exit":m,StaticBlock:r,"StaticBlock:exit":m,ThisExpression:g,Super:g,...o&&{"AccessorProperty > ArrowFunctionExpression.value":i,"AccessorProperty > ArrowFunctionExpression.value:exit":f,"PropertyDefinition > ArrowFunctionExpression.value":i,"PropertyDefinition > ArrowFunctionExpression.value:exit":f}}}},Ai}var Ti,fg;function Bw(){if(fg)return Ti;fg=1;const a=Ue(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function n(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function o(t,l){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:l<2017?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||e.arrays,objects:t.objects||e.objects,imports:t.imports||e.imports,exports:t.exports||e.exports,functions:t.functions||e.functions}:e}return Ti={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-dangle",url:"https://eslint.style/rules/comma-dangle"}}]},type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(t){const l=o(t.options[0],t.languageOptions.ecmaVersion),p=t.sourceCode;function u(g){function d(E){return E.at(-1)}switch(g.type){case"ObjectExpression":case"ObjectPattern":return d(g.properties);case"ArrayExpression":case"ArrayPattern":return d(g.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return d(g.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return d(g.params);case"CallExpression":case"NewExpression":return d(g.arguments);default:return null}}function r(g,d){switch(g.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return p.getLastToken(g,1);default:{const E=p.getTokenAfter(d);return a.isCommaToken(E)?E:p.getLastToken(d)}}}function m(g){const d=u(g);if(!d)return!1;const E=r(g,d);return p.getTokenAfter(E).loc.end.line!==E.loc.end.line}function i(g){const d=u(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;const E=r(g,d);a.isCommaToken(E)&&t.report({node:d,loc:E.loc,messageId:"unexpected",*fix(S){yield S.remove(E),yield S.insertTextBefore(p.getTokenBefore(E),""),yield S.insertTextAfter(p.getTokenAfter(E),"")}})}function c(g){const d=u(g);if(!d||g.type==="ImportDeclaration"&&d.type!=="ImportSpecifier")return;if(!n(d)){i(g);return}const E=r(g,d);E.value!==","&&t.report({node:d,loc:{start:E.loc.end,end:a.getNextLocation(p,E.loc.end)},messageId:"missing",*fix(S){yield S.insertTextAfter(E,","),yield S.insertTextBefore(E,""),yield S.insertTextAfter(p.getTokenAfter(E),"")}})}function h(g){m(g)?c(g):i(g)}function s(g){m(g)||i(g)}const f={always:c,"always-multiline":h,"only-multiline":s,never:i,ignore(){}};return{ObjectExpression:f[l.objects],ObjectPattern:f[l.objects],ArrayExpression:f[l.arrays],ArrayPattern:f[l.arrays],ImportDeclaration:f[l.imports],ExportNamedDeclaration:f[l.exports],FunctionDeclaration:f[l.functions],FunctionExpression:f[l.functions],ArrowFunctionExpression:f[l.functions],CallExpression:f[l.functions],NewExpression:f[l.functions]}}},Ti}var ki,pg;function Lw(){if(pg)return ki;pg=1;const a=Ue();return ki={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-spacing",url:"https://eslint.style/rules/comma-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const n=e.sourceCode,o=n.tokensAndComments,t={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},l=[];function p(r,m,i){e.report({node:r,fix(c){if(t[m])return m==="before"?c.insertTextBefore(r," "):c.insertTextAfter(r," ");let h,s;const f="";return m==="before"?(h=i.range[1],s=r.range[0]):(h=r.range[1],s=i.range[0]),c.replaceTextRange([h,s],f)},messageId:t[m]?"missing":"unexpected",data:{loc:m}})}function u(r){let m=n.getFirstToken(r);r.elements.forEach(i=>{let c;i===null?(c=n.getTokenAfter(m),a.isCommaToken(c)&&l.push(c)):c=n.getTokenAfter(i),m=c})}return{"Program:exit"(){o.forEach((r,m)=>{if(!a.isCommaToken(r))return;const i=o[m-1],c=o[m+1];i&&!a.isCommaToken(i)&&!l.includes(r)&&a.isTokenOnSameLine(i,r)&&t.before!==n.isSpaceBetweenTokens(i,r)&&p(r,"before",i),c&&!a.isCommaToken(c)&&!a.isClosingParenToken(c)&&!a.isClosingBracketToken(c)&&!a.isClosingBraceToken(c)&&!(!t.after&&c.type==="Line")&&a.isTokenOnSameLine(r,c)&&t.after!==n.isSpaceBetweenTokens(r,c)&&p(r,"after",c)})},ArrayExpression:u,ArrayPattern:u}}},ki}var Di,mg;function Ow(){if(mg)return Di;mg=1;const a=Ue();return Di={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-style",url:"https://eslint.style/rules/comma-style"}}]},type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const n=e.options[0]||"last",o=e.sourceCode,t={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){const i=Object.keys(e.options[1].exceptions);for(let c=0;c<i.length;c++)t[i[c]]=e.options[1].exceptions[i[c]]}function l(i,c){switch(i){case"between":return`,${c.replace(a.LINEBREAK_MATCHER,"")}`;case"first":return`${c},`;case"last":return`,${c}`;default:return""}}function p(i,c,h,s){const f=o.text.slice(c.range[1],h.range[0])+o.text.slice(h.range[1],s.range[0]),g=[c.range[1],s.range[0]];return function(d){return d.replaceTextRange(g,l(i,f))}}function u(i,c,h,s){if(!(a.isTokenOnSameLine(c,h)&&a.isTokenOnSameLine(i,c)))if(!a.isTokenOnSameLine(c,h)&&!a.isTokenOnSameLine(i,c)){const f=o.getCommentsAfter(c)[0],g=f&&f.type==="Block"&&a.isTokenOnSameLine(c,f)?n:"between";e.report({node:s,loc:c.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:p(g,i,c,h)})}else n==="first"&&!a.isTokenOnSameLine(c,h)?e.report({node:s,loc:c.loc,messageId:"expectedCommaFirst",fix:p(n,i,c,h)}):n==="last"&&a.isTokenOnSameLine(c,h)&&e.report({node:s,loc:c.loc,messageId:"expectedCommaLast",fix:p(n,i,c,h)})}function r(i,c){const h=i[c],s=i.type==="ArrayExpression"||i.type==="ArrayPattern";if(h.length>1||s){let f=o.getFirstToken(i);if(h.forEach(g=>{const d=g?o.getTokenBefore(g):f,E=g?o.getFirstToken(g):o.getTokenAfter(d),S=g||E;if(a.isCommaToken(d)&&u(f,d,E,S),g){const x=o.getTokenAfter(g,a.isNotClosingParenToken);f=x?o.getTokenBefore(x):o.ast.tokens.at(-1)}else f=E}),s){const g=o.getLastToken(i),d=o.getTokenBefore(g);a.isCommaToken(d)&&u(o.getTokenBefore(d),d,g,g)}}}const m={};return t.VariableDeclaration||(m.VariableDeclaration=function(i){r(i,"declarations")}),t.ObjectExpression||(m.ObjectExpression=function(i){r(i,"properties")}),t.ObjectPattern||(m.ObjectPattern=function(i){r(i,"properties")}),t.ArrayExpression||(m.ArrayExpression=function(i){r(i,"elements")}),t.ArrayPattern||(m.ArrayPattern=function(i){r(i,"elements")}),t.FunctionDeclaration||(m.FunctionDeclaration=function(i){r(i,"params")}),t.FunctionExpression||(m.FunctionExpression=function(i){r(i,"params")}),t.ArrowFunctionExpression||(m.ArrowFunctionExpression=function(i){r(i,"params")}),t.CallExpression||(m.CallExpression=function(i){r(i,"arguments")}),t.ImportDeclaration||(m.ImportDeclaration=function(i){r(i,"specifiers")}),t.NewExpression||(m.NewExpression=function(i){r(i,"arguments")}),m}},Di}var Ii,hg;function Ir(){if(hg)return Ii;hg=1;const a=/^[\u0000-\u007f]*$/u;let e;function n(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}function o(t){if(a.test(t))return t.length;e??=new Intl.Segmenter("en-US");let l=0;for(const p of e.segment(t))l++;return l}return Ii={upperCaseFirst:n,getGraphemeCount:o},Ii}var Pi,dg;function Nw(){if(dg)return Pi;dg=1;const a=Ue(),{upperCaseFirst:e}=Ir(),n=20;return Pi={meta:{type:"suggestion",defaultOptions:[n],docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},variant:{enum:["classic","modified"]}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(o){const t=o.options[0];let l=n,p="classic";typeof t=="object"?((Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(l=t.maximum||t.max),Object.hasOwn(t,"variant")&&(p=t.variant)):typeof t=="number"&&(l=t);const u=p==="modified",r=[];function m(){r[r.length-1]++}return{onCodePathStart(){r.push(1)},CatchClause:m,ConditionalExpression:m,LogicalExpression:m,ForStatement:m,ForInStatement:m,ForOfStatement:m,IfStatement:m,WhileStatement:m,DoWhileStatement:m,AssignmentPattern:m,"SwitchCase[test]":()=>u||m(),SwitchStatement:()=>u&&m(),AssignmentExpression(i){a.isLogicalAssignmentOperator(i.operator)&&m()},MemberExpression(i){i.optional===!0&&m()},CallExpression(i){i.optional===!0&&m()},onCodePathEnd(i,c){const h=r.pop();if(!(i.origin!=="function"&&i.origin!=="class-field-initializer"&&i.origin!=="class-static-block")&&h>l){let s;i.origin==="class-field-initializer"?s="class field initializer":i.origin==="class-static-block"?s="class static block":s=a.getFunctionNameWithKind(c),o.report({node:c,messageId:"complex",data:{name:e(s),complexity:h,max:l}})}}}}},Pi}var Fi,gg;function Mw(){if(gg)return Fi;gg=1;const a=Ue();return Fi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"computed-property-spacing",url:"https://eslint.style/rules/computed-property-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always",t=!e.options[1]||e.options[1].enforceForClassMembers;function l(c,h,s){e.report({node:c,loc:{start:h.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(f){return f.removeRange([h.range[1],s.range[0]])}})}function p(c,h,s){e.report({node:c,loc:{start:s.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(f){return f.removeRange([s.range[1],h.range[0]])}})}function u(c,h){e.report({node:c,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(s){return s.insertTextAfter(h," ")}})}function r(c,h){e.report({node:c,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(s){return s.insertTextBefore(h," ")}})}function m(c){return function(h){if(!h.computed)return;const s=h[c],f=n.getTokenBefore(s,a.isOpeningBracketToken),g=n.getTokenAfter(f,{includeComments:!0}),d=n.getTokenAfter(s,a.isClosingBracketToken),E=n.getTokenBefore(d,{includeComments:!0});a.isTokenOnSameLine(f,g)&&(o?!n.isSpaceBetweenTokens(f,g)&&a.isTokenOnSameLine(f,g)&&u(h,f):n.isSpaceBetweenTokens(f,g)&&l(h,f,g)),a.isTokenOnSameLine(E,d)&&(o?!n.isSpaceBetweenTokens(E,d)&&a.isTokenOnSameLine(E,d)&&r(h,d):n.isSpaceBetweenTokens(E,d)&&p(h,d,E))}}const i={Property:m("key"),MemberExpression:m("property")};return t&&(i.MethodDefinition=i.PropertyDefinition=i.Property),i}},Fi}var Ri,yg;function jw(){if(yg)return Ri;yg=1;const a=Ue(),{upperCaseFirst:e}=Ir();function n(t){for(const l of t)if(l.reachable)return!1;return!0}function o(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}return Ri={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(t){const[{treatUndefinedAsUnspecified:l}]=t.options;let p=null;function u(r){let m,i;!p.hasReturnValue||n(p.currentSegments)||a.isES5Constructor(r)||o(r)||(r.type==="Program"?(m={line:1,column:0},i="program"):r.type==="ArrowFunctionExpression"?m=t.sourceCode.getTokenBefore(r.body,a.isArrowToken).loc:r.parent.type==="MethodDefinition"||r.parent.type==="Property"&&r.parent.method?m=r.parent.key.loc:m=(r.id||t.sourceCode.getFirstToken(r)).loc,i||(i=a.getFunctionNameWithKind(r)),t.report({node:r,loc:m,messageId:"missingReturn",data:{name:i}}))}return{onCodePathStart(r,m){p={upper:p,codePath:r,hasReturn:!1,hasReturnValue:!1,messageId:"",node:m,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(r){p.currentSegments.add(r)},onUnreachableCodePathSegmentEnd(r){p.currentSegments.delete(r)},onCodePathSegmentStart(r){p.currentSegments.add(r)},onCodePathSegmentEnd(r){p.currentSegments.delete(r)},ReturnStatement(r){const m=r.argument;let i=!!m;l&&i&&(i=!a.isSpecificId(m,"undefined")&&m.operator!=="void"),p.hasReturn?p.hasReturnValue!==i&&t.report({node:r,messageId:p.messageId,data:p.data}):(p.hasReturn=!0,p.hasReturnValue=i,p.messageId=i?"missingReturnValue":"unexpectedReturnValue",p.data={name:p.node.type==="Program"?"Program":e(a.getFunctionNameWithKind(p.node))})},"Program:exit":u,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Ri}var _i,vg;function Uw(){return vg||(vg=1,_i={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},defaultOptions:["that"],messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(a){const e=a.options,n=a.sourceCode;function o(u,r){a.report({node:u,messageId:"aliasNotAssignedToThis",data:{name:r}})}function t(u,r,m){const i=m.type==="ThisExpression";e.includes(r)?(!i||u.operator&&u.operator!=="=")&&o(u,r):i&&a.report({node:u,messageId:"unexpectedAlias",data:{name:r}})}function l(u,r){const m=r.set.get(u);m&&(m.defs.some(i=>i.node.type==="VariableDeclarator"&&i.node.init!==null)||m.references.some(i=>{const c=i.writeExpr;return i.from===r&&c&&c.type==="ThisExpression"&&c.parent.operator==="="})||m.defs.map(i=>i.node).forEach(i=>{o(i,u)}))}function p(u){const r=n.getScope(u),m=u.type==="Program"&&u.sourceType==="module"?r.childScopes[0]:null;e.forEach(i=>{l(i,r),m&&l(i,m)})}return{"Program:exit":p,"FunctionExpression:exit":p,"FunctionDeclaration:exit":p,VariableDeclarator(u){const r=u.id,m=r.type==="ArrayPattern"||r.type==="ObjectPattern";u.init!==null&&!m&&t(u,r.name,u.init)},AssignmentExpression(u){u.left.type==="Identifier"&&t(u,u.left.name,u.right)}}}}),_i}var Bi,Eg;function qw(){if(Eg)return Bi;Eg=1;function a(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}function e(o){if(!o)return!1;switch(o.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return o.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(o.operator)?e(o.right):["||=","??="].includes(o.operator)?e(o.left)||e(o.right):!1;case"LogicalExpression":return o.operator==="&&"?e(o.right):e(o.left)||e(o.right);case"ConditionalExpression":return e(o.alternate)||e(o.consequent);case"SequenceExpression":{const t=o.expressions.at(-1);return e(t)}default:return!1}}class n{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Bi={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(o){let t=null;const l=Object.create(null);function p(m){return m.reachable&&l[m.id].calledInSomePaths}function u(m){return!!l[m.id]}function r(m){return m.reachable&&l[m.id].calledInEveryPaths}return{onCodePathStart(m,i){if(a(i)){const h=i.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:m,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:m,currentSegments:new Set}},onCodePathEnd(m,i){const c=t.hasExtends;if(t=t.upper,!c)return;const h=m.returnedSegments,s=h.every(r),f=h.some(p);s||o.report({messageId:f?"missingSome":"missingAll",node:i.parent})},onCodePathSegmentStart(m,i){if(t.currentSegments.add(m),!(t.isConstructor&&t.hasExtends))return;const c=l[m.id]=new n,h=m.prevSegments.filter(u);h.length>0&&(c.calledInSomePaths=h.some(p),c.calledInEveryPaths=h.every(r)),i.parent&&i.parent.type==="ForStatement"&&i.parent.update===i&&(c.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(m){t.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentLoop(m,i){t.isConstructor&&t.hasExtends&&t.codePath.traverseSegments({first:i,last:m},(c,h)=>{const s=l[c.id];if(!s){h.skip();return}const f=c.prevSegments.filter(u),g=f.some(p),d=f.every(r);if(s.calledInSomePaths||=g,s.calledInEveryPaths||=d,g){const E=s.validNodes;s.validNodes=[];for(let S=0;S<E.length;++S){const x=E[S];o.report({messageId:"duplicate",node:x})}}})},"CallExpression:exit"(m){if(!(t.isConstructor&&t.hasExtends)||m.callee.type!=="Super")return;const i=t.currentSegments;let c=!1,h=null;for(const s of i)s.reachable&&(h=l[s.id],c=c||h.calledInSomePaths,h.calledInSomePaths=h.calledInEveryPaths=!0);h&&(c?o.report({messageId:"duplicate",node:m}):t.superIsConstructor?h.validNodes.push(m):o.report({messageId:"badSuper",node:m}))},ReturnStatement(m){if(!(t.isConstructor&&t.hasExtends)||!m.argument)return;const i=t.currentSegments;for(const c of i)if(c.reachable){const h=l[c.id];h.calledInSomePaths=h.calledInEveryPaths=!0}}}}},Bi}var Li,Sg;function Vw(){if(Sg)return Li;Sg=1;const a=Ue();return Li={meta:{type:"suggestion",docs:{description:"Enforce consistent brace style for all control statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},defaultOptions:["all"],fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const n=e.options[0]==="multi",o=e.options[0]==="multi-line",t=e.options[0]==="multi-or-nest",l=e.options[1]==="consistent",p=e.sourceCode;function u(h){const s=p.getTokenBefore(h),f=p.getLastToken(h),g=a.isSemicolonToken(f)?p.getTokenBefore(f):f;return s.loc.start.line===g.loc.end.line}function r(h){if(h.type==="EmptyStatement")return!0;const s=p.getFirstToken(h),f=p.getLastToken(h),g=a.isSemicolonToken(f)?p.getTokenBefore(f):f;return s.loc.start.line===g.loc.end.line}function m(h){const s=p.getTokenBefore(h),f=p.getTokenAfter(h),g=p.getNodeByRangeIndex(s.range[0]);return a.isSemicolonToken(s)||!f||g.type==="BlockStatement"&&g.parent.type!=="FunctionExpression"&&g.parent.type!=="ArrowFunctionExpression"?!1:!!(s.loc.end.line===f.loc.start.line||/^[([/`+-]/u.test(f.value)||s.type==="Punctuator"&&(s.value==="++"||s.value==="--"))}function i(h,s,f,g){const d=s.type==="BlockStatement";let E=null;if(d&&(s.body.length!==1||a.areBracesNecessary(s,p)))E=!0;else if(n)E=!1;else if(o)u(s)||(E=!0);else if(t)if(d){const S=s.body[0],x=p.getCommentsBefore(S);E=!r(S)||x.length>0}else E=!r(s);else E=!0;return{actual:d,expected:E,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:h,loc:s.loc,messageId:g&&g.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:f},fix:S=>S.replaceText(s,`{${p.getText(s)}}`)}):e.report({node:h,loc:s.loc,messageId:g&&g.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:f},fix(S){const x=h.type==="DoWhileStatement"&&p.getTokenBefore(s).range[1]===s.range[0]&&!a.canTokensBeAdjacent("do",p.getFirstToken(s,{skip:1})),T=p.getFirstToken(s),C=p.getLastToken(s),v=p.getTokenBefore(C);if(m(C))return null;const A=p.getText().slice(T.range[1],v.range[0])+p.getText(v)+p.getText().slice(v.range[1],C.range[0]);return S.replaceText(s,(x?" ":"")+A)}}))}}}function c(h){const s=[];for(let f=h;f;f=f.alternate)if(s.push(i(f,f.consequent,"if",{condition:!0})),f.alternate&&f.alternate.type!=="IfStatement"){s.push(i(f,f.alternate,"else"));break}if(l){const f=s.some(g=>g.expected!==null?g.expected:g.actual);s.forEach(g=>{g.expected=f})}return s}return{IfStatement(h){const s=h.parent;s.type==="IfStatement"&&s.alternate===h||c(h).forEach(g=>{g.check()})},WhileStatement(h){i(h,h.body,"while",{condition:!0}).check()},DoWhileStatement(h){i(h,h.body,"do").check()},ForStatement(h){i(h,h.body,"for",{condition:!0}).check()},ForInStatement(h){i(h,h.body,"for-in").check()},ForOfStatement(h){i(h,h.body,"for-of").check()}}}},Li}var Oi,bg;function $w(){if(bg)return Oi;bg=1;const a=/^no default$/iu;return Oi={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const[n]=e.options,o=n.commentPattern?new RegExp(n.commentPattern,"u"):a,t=e.sourceCode;function l(p){return p.at(-1)}return{SwitchStatement(p){if(!p.cases.length)return;if(!p.cases.some(r=>r.test===null)){let r;const m=l(p.cases),i=t.getCommentsAfter(m);i.length&&(r=l(i)),(!r||!o.test(r.value.trim()))&&e.report({node:p,messageId:"missingDefaultCase"})}}}}},Oi}var Ni,xg;function Ww(){return xg||(xg=1,Ni={meta:{type:"suggestion",docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(a){return{SwitchStatement(e){const n=e.cases,o=n.findIndex(t=>t.test===null);if(o!==-1&&o!==n.length-1){const t=n[o];a.report({node:t,messageId:"notLast"})}}}}}),Ni}var Mi,Cg;function Gw(){if(Cg)return Mi;Cg=1;function a(e){return!(e.type==="AssignmentPattern"||e.type==="RestElement"||e.optional)}return Mi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function n(o){let t=!1;for(let l=o.params.length-1;l>=0;l-=1){const p=o.params[l],u=p.type==="TSParameterProperty"?p.parameter:p;if(a(u)){t=!0;continue}t&&e.report({node:p,messageId:"shouldBeLast"})}}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n}}},Mi}var ji,wg;function zw(){if(wg)return ji;wg=1;const a=Ue();return ji={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"dot-location",url:"https://eslint.style/rules/dot-location"}}]},type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const n=e.options[0],o=n==="object"||!n,t=e.sourceCode;function l(u){const r=u.property,m=t.getTokenBefore(r);if(o){const i=t.getTokenBefore(m);a.isTokenOnSameLine(i,m)||e.report({node:u,loc:m.loc,messageId:"expectedDotAfterObject",*fix(c){m.value.startsWith(".")&&a.isDecimalIntegerNumericToken(i)?yield c.insertTextAfter(i,` ${m.value}`):yield c.insertTextAfter(i,m.value),yield c.remove(m)}})}else a.isTokenOnSameLine(m,r)||e.report({node:u,loc:m.loc,messageId:"expectedDotBeforeProperty",*fix(i){yield i.remove(m),yield i.insertTextBefore(r,m.value)}})}function p(u){u.computed||l(u)}return{MemberExpression:p}}},ji}var Ui,Ag;function qi(){return Ag||(Ag=1,Ui=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]),Ui}var Vi,Tg;function Hw(){if(Tg)return Vi;Tg=1;const a=Ue(),e=qi(),n=/^[a-zA-Z_$][\w$]*$/u,o=new Set(["string","boolean"]);return Vi={meta:{type:"suggestion",defaultOptions:[{allowKeywords:!0,allowPattern:""}],docs:{description:"Enforce dot notation whenever possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(t){const[l]=t.options,p=l.allowKeywords,u=t.sourceCode;let r;l.allowPattern&&(r=new RegExp(l.allowPattern,"u"));function m(i,c){if(n.test(c)&&(p||!e.includes(String(c)))&&!(r&&r.test(c))){const h=i.property.type==="Literal"?JSON.stringify(c):`\`${c}\``;t.report({node:i.property,messageId:"useDot",data:{key:h},*fix(s){const f=u.getTokenAfter(i.object,a.isOpeningBracketToken),g=u.getLastToken(i),d=u.getTokenAfter(i);u.commentsExistBetween(f,g)||(i.optional||(yield s.insertTextBefore(f,a.isDecimalInteger(i.object)?" .":".")),yield s.replaceTextRange([f.range[0],g.range[1]],c),d&&g.range[1]===d.range[0]&&!a.canTokensBeAdjacent(String(c),d)&&(yield s.insertTextAfter(i," ")))}})}}return{MemberExpression(i){i.computed&&i.property.type==="Literal"&&(o.has(typeof i.property.value)||a.isNullLiteral(i.property))&&m(i,i.property.value),i.computed&&a.isStaticTemplateLiteral(i.property)&&m(i,i.property.quasis[0].value.cooked),!p&&!i.computed&&i.property.type==="Identifier"&&e.includes(String(i.property.name))&&t.report({node:i.property,messageId:"useBrackets",data:{key:i.property.name},*fix(c){const h=u.getTokenBefore(i.property);i.object.type==="Identifier"&&i.object.name==="let"&&!i.optional||u.commentsExistBetween(h,i.property)||(i.optional||(yield c.remove(h)),yield c.replaceText(i.property,`["${i.property.name}"]`))}})}}}},Vi}var $i,kg;function Kw(){return kg||(kg=1,$i={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"eol-last",url:"https://eslint.style/rules/eol-last"}}]},type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(a){return{Program:function(n){const o=a.sourceCode,t=o.getText(),l=o.lines.at(-1),p={column:l.length,line:o.lines.length},u=`
|
|
67
67
|
`,r=`\r${u}`,m=t.endsWith(u);if(!t.length)return;let i=a.options[0]||"always",c=!1;if(i==="unix"&&(i="always"),i==="windows"&&(i="always",c=!0),i==="always"&&!m)a.report({node:n,loc:p,messageId:"missing",fix(h){return h.insertTextAfterRange([0,t.length],c?r:u)}});else if(i==="never"&&m){const h=o.lines.at(-2);a.report({node:n,loc:{start:{line:o.lines.length-1,column:h.length},end:{line:o.lines.length,column:0}},messageId:"unexpected",fix(s){const f=/(?:\r?\n)+$/u,g=f.exec(o.text),d=g.index,E=o.text.length;return s.replaceTextRange([d,E],"")}})}}}}}),$i}var Wi,Dg;function Xw(){if(Dg)return Wi;Dg=1;const a=Ue();return Wi={meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.",replaceOperator:"Use '{{expectedOperator}}' instead of '{{actualOperator}}'."}},create(e){const n=e.options[0]||"always",o=e.options[1]||{},t=e.sourceCode,l=n==="always"?o.null||"always":"ignore",p=l==="always",u=l==="never";function r(s){return s.type==="UnaryExpression"&&s.operator==="typeof"}function m(s){return r(s.left)||r(s.right)}function i(s){return s.left.type==="Literal"&&s.right.type==="Literal"&&typeof s.left.value==typeof s.right.value}function c(s){return a.isNullLiteral(s.right)||a.isNullLiteral(s.left)}function h(s,f){const g=t.getFirstTokenBetween(s.left,s.right,E=>E.value===s.operator),d={node:s,loc:g.loc,messageId:"unexpected",data:{expectedOperator:f,actualOperator:s.operator}};m(s)||i(s)?e.report({...d,fix(E){return E.replaceText(g,f)}}):e.report({...d,suggest:[{messageId:"replaceOperator",data:{expectedOperator:f,actualOperator:s.operator},fix:E=>E.replaceText(g,f)}]})}return{BinaryExpression(s){const f=c(s);if(s.operator!=="=="&&s.operator!=="!="){u&&f&&h(s,s.operator.slice(0,-1));return}n==="smart"&&(m(s)||i(s)||f)||!p&&f||h(s,`${s.operator}=`)}}}},Wi}var Gi,Ig;function Jw(){if(Ig)return Gi;Ig=1;const{getStaticValue:a}=qt();return Gi={meta:{type:"problem",docs:{description:"Enforce `for` loop update clause moving the counter in the right direction",recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){const{sourceCode:n}=e;function o(u){e.report({node:u,messageId:"incorrectDirection"})}function t(u,r){const m=a(u.right,n.getScope(u));if(m&&["bigint","boolean","number"].includes(typeof m.value)){const i=Math.sign(Number(m.value))||0;return r*i}return 0}function l(u,r){if(u.argument.type==="Identifier"&&u.argument.name===r){if(u.operator==="++")return 1;if(u.operator==="--")return-1}return 0}function p(u,r){if(u.left.name===r){if(u.operator==="+=")return t(u,1);if(u.operator==="-=")return t(u,-1)}return 0}return{ForStatement(u){if(u.test&&u.test.type==="BinaryExpression"&&u.update)for(const r of["left","right"]){if(u.test[r].type!=="Identifier")continue;const m=u.test[r].name,i=u.test.operator,c=u.update;let h;if(i==="<"||i==="<=")h=r==="left"?-1:1;else if(i===">"||i===">=")h=r==="left"?1:-1;else return;c.type==="UpdateExpression"?l(c,m)===h&&o(u):c.type==="AssignmentExpression"&&p(c,m)===h&&o(u)}}}}},Gi}var zi,Pg;function Yw(){if(Pg)return zi;Pg=1;const a=Ue();return zi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){const n=e.options[0]!=="always",o=!n&&e.options[1]&&e.options[1].allowNewlines,t=e.sourceCode,l=t.getText();function p(u,r,m){const i=l.slice(r.range[1],m.range[0]).replace(/\/\*.*?\*\//gu,""),c=/\s/u.test(i),h=c&&a.LINEBREAK_MATCHER.test(i);n&&c?e.report({node:u,loc:{start:r.loc.end,end:{line:m.loc.start.line,column:m.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(s){return t.commentsExistBetween(r,m)?null:u.optional?s.replaceTextRange([r.range[1],m.range[0]],"?."):h?null:s.removeRange([r.range[1],m.range[0]])}}):!n&&!c?e.report({node:u,loc:{start:{line:r.loc.end.line,column:r.loc.end.column-1},end:m.loc.start},messageId:"missing",fix(s){return u.optional?null:s.insertTextBefore(m," ")}}):!n&&!o&&h&&e.report({node:u,loc:{start:r.loc.end,end:m.loc.start},messageId:"unexpectedNewline",fix(s){if(!u.optional||t.commentsExistBetween(r,m))return null;const f=[r.range[1],m.range[0]],g=t.getTokenAfter(r);return g.range[0]===r.range[1]?s.replaceTextRange(f,"?. "):g.range[1]===m.range[0]?s.replaceTextRange(f," ?."):s.replaceTextRange(f," ?. ")}})}return{"CallExpression, NewExpression"(u){const r=t.getLastToken(u),m=t.getLastToken(u.callee),i=t.getFirstTokenBetween(m,r,a.isOpeningParenToken),c=i&&t.getTokenBefore(i,a.isNotQuestionDotToken);i&&i.range[1]<u.range[1]&&p(u,c,i)},ImportExpression(u){const r=t.getFirstToken(u),m=t.getTokenAfter(r);p(u,r,m)}}}},zi}var Hi,Fg;function Qw(){if(Fg)return Hi;Fg=1;const a=Ue(),e=Hd();function n(p){return p.type==="MemberExpression"&&p.object.type==="Identifier"&&p.object.name==="module"&&(p.property.type==="Identifier"&&p.property.name==="exports"||p.property.type==="Literal"&&p.property.value==="exports")}function o(p,u){return u>=2015?e.keyword.isIdentifierES6(p):e.keyword.isIdentifierES5(p)}const t={enum:["always","never"]},l={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Hi={meta:{type:"suggestion",docs:{description:"Require function names to match the name of the variable or property to which they are assigned",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[t,l]},{type:"array",additionalItems:!1,items:[l]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(p){const u=(typeof p.options[0]=="object"?p.options[0]:p.options[1])||{},r=typeof p.options[0]=="string"?p.options[0]:"always",m=u.considerPropertyDescriptor,i=u.includeCommonJSModuleExports,c=p.languageOptions.ecmaVersion;function h(d,E,S){return S?S.type==="CallExpression"&&a.isSpecificMemberAccess(S.callee,d,E):!1}function s(d,E){return r==="always"&&d!==E||r==="never"&&d===E}function f(d,E,S,x){let T;r==="always"&&x?T="matchProperty":r==="always"?T="matchVariable":x?T="notMatchProperty":T="notMatchVariable",p.report({node:d,messageId:T,data:{name:E,funcName:S}})}function g(d){return d.type==="Literal"&&typeof d.value=="string"}return{VariableDeclarator(d){!d.init||d.init.type!=="FunctionExpression"||d.id.type!=="Identifier"||d.init.id&&s(d.id.name,d.init.id.name)&&f(d,d.id.name,d.init.id.name,!1)},AssignmentExpression(d){if(d.right.type!=="FunctionExpression"||d.left.computed&&d.left.property.type!=="Literal"||!i&&n(d.left)||d.left.type!=="Identifier"&&d.left.type!=="MemberExpression")return;const E=d.left.type==="MemberExpression",S=E?a.getStaticPropertyName(d.left):d.left.name;d.right.id&&S&&o(S)&&s(S,d.right.id.name)&&f(d,S,d.right.id.name,E)},"Property, PropertyDefinition[value]"(d){if(d.value.type==="FunctionExpression"&&d.value.id){if(d.key.type==="Identifier"&&!d.computed){const E=d.value.id.name;let S=d.key.name;if(m&&S==="value"&&d.parent.type==="ObjectExpression")if(h("Object","defineProperty",d.parent.parent)||h("Reflect","defineProperty",d.parent.parent)){const x=d.parent.parent.arguments[1];g(x)&&s(x.value,E)&&f(d,x.value,E,!0)}else h("Object","defineProperties",d.parent.parent.parent.parent)||h("Object","create",d.parent.parent.parent.parent)?(S=d.parent.parent.key.name,!d.parent.parent.computed&&s(S,E)&&f(d,S,E,!0)):s(S,E)&&f(d,S,E,!0);else s(S,E)&&f(d,S,E,!0);return}g(d.key)&&o(d.key.value,c)&&s(d.key.value,d.value.id.name)&&f(d,d.key.value,d.value.id.name,!0)}}}}},Hi}var Ki,Rg;function Zw(){if(Rg)return Ki;Rg=1;const a=Ue();function e(n){return n&&n.defs[0].type==="FunctionName"}return Ki={meta:{type:"suggestion",defaultOptions:["always",{}],docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(n){const o=n.sourceCode;function t(i){return i.generator&&n.options[1].generators?n.options[1].generators:n.options[0]}function l(i){const c=i.parent;return c.type==="MethodDefinition"||c.type==="Property"&&(c.method||c.kind==="get"||c.kind==="set")}function p(i){const c=i.parent;return l(i)||c.type==="VariableDeclarator"&&c.id.type==="Identifier"&&c.init===i||c.type==="Property"&&c.value===i||c.type==="PropertyDefinition"&&c.value===i||c.type==="AssignmentExpression"&&c.left.type==="Identifier"&&c.right===i||c.type==="AssignmentPattern"&&c.left.type==="Identifier"&&c.right===i}function u(i){n.report({node:i,messageId:"unnamed",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function r(i){n.report({node:i,messageId:"named",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function m(i){const c=o.getDeclaredVariables(i)[0];if(e(c)&&c.references.length>0)return;const h=!!(i.id&&i.id.name),s=t(i);s==="never"?h&&i.type!=="FunctionDeclaration"&&r(i):s==="as-needed"?!h&&!p(i)&&u(i):!h&&!l(i)&&u(i)}return{"FunctionExpression:exit":m,"ExportDefaultDeclaration > FunctionDeclaration":m}}},Ki}var Xi,_g;function eA(){return _g||(_g=1,Xi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:["expression",{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean"},allowTypeAnnotation:{type:"boolean"},overrides:{type:"object",properties:{namedExports:{enum:["declaration","expression","ignore"]}},additionalProperties:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(a){const[e,{allowArrowFunctions:n,allowTypeAnnotation:o,overrides:t}]=a.options,l=e==="declaration",{namedExports:p}=t,u=[];function r(i){const c=i.id.name;return i.parent.type==="ExportNamedDeclaration"?i.parent.parent.body.some(h=>h.type==="ExportNamedDeclaration"&&h.declaration?.type==="TSDeclareFunction"&&h.declaration.id.name===c):i.parent.type==="SwitchCase"?i.parent.parent.cases.some(h=>h.consequent.some(s=>s.type==="TSDeclareFunction"&&s.id.name===c)):Array.isArray(i.parent.body)&&i.parent.body.some(h=>h.type==="TSDeclareFunction"&&h.id.name===c)}const m={FunctionDeclaration(i){u.push(!1),!l&&i.parent.type!=="ExportDefaultDeclaration"&&(typeof p>"u"||i.parent.type!=="ExportNamedDeclaration")&&!r(i)&&a.report({node:i,messageId:"expression"}),i.parent.type==="ExportNamedDeclaration"&&p==="expression"&&!r(i)&&a.report({node:i,messageId:"expression"})},"FunctionDeclaration:exit"(){u.pop()},FunctionExpression(i){u.push(!1),l&&i.parent.type==="VariableDeclarator"&&(typeof p>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.type==="VariableDeclarator"&&i.parent.parent.parent.type==="ExportNamedDeclaration"&&p==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"})},"FunctionExpression:exit"(){u.pop()},"ThisExpression, Super"(){u.length>0&&(u[u.length-1]=!0)}};return n||(m.ArrowFunctionExpression=function(){u.push(!1)},m["ArrowFunctionExpression:exit"]=function(i){!u.pop()&&i.parent.type==="VariableDeclarator"&&(l&&(typeof p>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.parent.parent.type==="ExportNamedDeclaration"&&p==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}))}),m}}),Xi}var Ji,Bg;function tA(){return Bg||(Bg=1,Ji={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-argument-newline",url:"https://eslint.style/rules/function-call-argument-newline"}}]},type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(a){const e=a.sourceCode,n={unexpected:{messageId:"unexpectedLineBreak",check:(l,p)=>l.loc.end.line!==p.loc.start.line,createFix:(l,p)=>u=>u.replaceTextRange([p.range[1],l.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(l,p)=>l.loc.end.line===p.loc.start.line,createFix:(l,p)=>u=>u.replaceTextRange([p.range[1],l.range[0]],`
|
|
68
68
|
`)}};function o(l,p){for(let u=1;u<l.arguments.length;u++){const r=e.getLastToken(l.arguments[u-1]),m=e.getFirstToken(l.arguments[u]);if(p.check(r,m)){const i=e.getTokenBefore(m,{includeComments:!0}),c=i.type==="Line";a.report({node:l,loc:{start:i.loc.end,end:m.loc.start},messageId:p.messageId,fix:c?null:p.createFix(m,i)})}}}function t(l){if(l.arguments.length<2)return;const p=a.options[0]||"always";if(p==="never")o(l,n.unexpected);else if(p==="always")o(l,n.missing);else if(p==="consistent"){const u=e.getLastToken(l.arguments[0]),r=e.getFirstToken(l.arguments[1]);u.loc.end.line===r.loc.start.line?o(l,n.unexpected):o(l,n.missing)}}return{CallExpression:t,NewExpression:t}}}),Ji}var Yi,Lg;function rA(){if(Lg)return Yi;Lg=1;const a=Ue();return Yi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-paren-newline",url:"https://eslint.style/rules/function-paren-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){const n=e.sourceCode,o=e.options[0]||"multiline",t=o==="multiline",l=o==="multiline-arguments",p=o==="consistent";let u;typeof o=="object"?u=o.minItems:o==="always"?u=0:o==="never"?u=1/0:u=null;function r(h,s){return l&&h.length===1?s:t||l?h.some((f,g)=>g!==h.length-1&&f.loc.end.line!==h[g+1].loc.start.line):p?s:h.length>=u}function m(h,s){const f=h.leftParen,g=h.rightParen,d=n.getTokenAfter(f),E=n.getTokenBefore(g),S=!a.isTokenOnSameLine(f,d),x=!a.isTokenOnSameLine(E,g),T=r(s,S);S&&!T?e.report({node:f,messageId:"unexpectedAfter",fix(C){return n.getText().slice(f.range[1],d.range[0]).trim()?null:C.removeRange([f.range[1],d.range[0]])}}):!S&&T&&e.report({node:f,messageId:"expectedAfter",fix:C=>C.insertTextAfter(f,`
|
|
69
69
|
`)}),x&&!T?e.report({node:g,messageId:"unexpectedBefore",fix(C){return n.getText().slice(E.range[1],g.range[0]).trim()?null:C.removeRange([E.range[1],g.range[0]])}}):!x&&T&&e.report({node:g,messageId:"expectedBefore",fix:C=>C.insertTextBefore(g,`
|
|
70
70
|
`)})}function i(h,s){const f=h.leftParen,g=n.getTokenAfter(f),d=!a.isTokenOnSameLine(f,g),E=r(s,d);for(let S=0;S<=s.length-2;S++){const x=s[S],T=s[S+1];!(x.loc.end.line!==T.loc.start.line)&&E&&e.report({node:x,messageId:"expectedBetween",fix:v=>v.insertTextBefore(T,`
|
|
71
|
-
`)})}}function c(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(a.isOpeningParenToken(n.getLastToken(h,{skip:1}))&&a.isClosingParenToken(n.getLastToken(h))&&h.callee.range[1]<h.range[1]))return null;case"CallExpression":return{leftParen:n.getTokenAfter(h.callee,a.isOpeningParenToken),rightParen:n.getLastToken(h)};case"FunctionDeclaration":case"FunctionExpression":{const s=n.getFirstToken(h,a.isOpeningParenToken),f=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:f}}case"ArrowFunctionExpression":{const s=n.getFirstToken(h,{skip:h.async?1:0});if(!a.isOpeningParenToken(s))return null;const f=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:f}}case"ImportExpression":{const s=n.getFirstToken(h,1),f=n.getLastToken(h);return{leftParen:s,rightParen:f}}default:throw new TypeError(`unexpected node with type ${h.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](h){const s=c(h);let f;h.type==="ImportExpression"?f=[h.source]:a.isFunction(h)?f=h.params:f=h.arguments,s&&(m(s,f),l&&i(s,f))}}}},Yi}var Qi,Og;function nA(){if(Og)return Qi;Og=1;const a={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};return Qi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"generator-star-spacing",url:"https://eslint.style/rules/generator-star-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:a,anonymous:a,method:a},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const n={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function o(c,h){return c?typeof c=="string"?n[c]:Object.assign({},h,c):h}const t=function(c){const h=o(c,n.before);return{named:o(c.named,h),anonymous:o(c.anonymous,h),method:o(c.method,h)}}(e.options[0]||{}),l=e.sourceCode;function p(c){return c.value==="*"&&c.type==="Punctuator"}function u(c){return l.getFirstToken(c.parent.method||c.parent.type==="MethodDefinition"?c.parent:c,p)}function r(c){return c[0].toUpperCase()+c.slice(1)}function m(c,h,s,f){if(!!(f.range[0]-s.range[1])!==t[c][h]){const g=s.value==="*",d=t[c][h],E=g?s:f,S=`${d?"missing":"unexpected"}${r(h)}`;e.report({node:E,messageId:S,fix(x){return d?g?x.insertTextAfter(E," "):x.insertTextBefore(E," "):x.removeRange([s.range[1],f.range[0]])}})}}function i(c){if(!c.generator)return;const h=u(c),s=l.getTokenBefore(h),f=l.getTokenAfter(h);let g="named";c.parent.type==="MethodDefinition"||c.parent.type==="Property"&&c.parent.method?g="method":c.id||(g="anonymous"),g==="method"&&h===l.getFirstToken(c.parent)||m(g,"before",s,h),m(g,"after",h,f)}return{FunctionDeclaration:i,FunctionExpression:i}}},Qi}var Zi,Ng;function sA(){if(Ng)return Zi;Ng=1;const a=Ue(),e=/^(?:Arrow)?FunctionExpression$/u;function n(o){for(const t of o)if(t.reachable)return!0;return!1}return Zi={meta:{type:"problem",defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/latest/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(o){const[{allowImplicit:t}]=o.options,l=o.sourceCode;let p={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function u(m){p.shouldCheck&&n(p.currentSegments)&&o.report({node:m,loc:a.getFunctionHeadLoc(m,l),messageId:p.hasReturn?"expectedAlways":"expected",data:{name:a.getFunctionNameWithKind(p.node)}})}function r(m){const i=m.parent;if(e.test(m.type)&&m.body.type==="BlockStatement"){if(i.kind==="get")return!0;if(i.type==="Property"&&a.getStaticPropertyName(i)==="get"&&i.parent.type==="ObjectExpression"){if(i.parent.parent.type==="CallExpression"){const c=i.parent.parent.callee;if(a.isSpecificMemberAccess(c,"Object","defineProperty")||a.isSpecificMemberAccess(c,"Reflect","defineProperty"))return!0}if(i.parent.parent.type==="Property"&&i.parent.parent.parent.type==="ObjectExpression"&&i.parent.parent.parent.parent.type==="CallExpression"){const c=i.parent.parent.parent.parent.callee;return a.isSpecificMemberAccess(c,"Object","defineProperties")||a.isSpecificMemberAccess(c,"Object","create")}}}return!1}return{onCodePathStart(m,i){p={upper:p,codePath:m,hasReturn:!1,shouldCheck:r(i),node:i,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(m){p.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){p.currentSegments.delete(m)},onCodePathSegmentStart(m){p.currentSegments.add(m)},onCodePathSegmentEnd(m){p.currentSegments.delete(m)},ReturnStatement(m){p.shouldCheck&&(p.hasReturn=!0,!t&&!m.argument&&o.report({node:m,messageId:"expected",data:{name:a.getFunctionNameWithKind(p.node)}}))},"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Zi}var eo,Mg;function aA(){if(Mg)return eo;Mg=1;const a=new Set(["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"]);function e(o,t){const l=o.references.filter(p=>p.identifier.range[0]===t.range[0]&&p.identifier.range[1]===t.range[1]);return l.length===1?l[0]:null}function n(o,t){const l=e(o,t);return l&&l.resolved&&l.resolved.defs.length>0}return eo={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"global-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md"}}]},type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(o){const t=o.sourceCode;return{CallExpression(l){const p=t.getScope(l);l.callee.name==="require"&&!n(p,l.callee)&&(t.getAncestors(l).every(r=>a.has(r.type))||o.report({node:l,messageId:"unexpected"}))}}}},eo}var to,jg;function iA(){if(jg)return to;jg=1;const a=Ue();function e(l,p){if(l.length!==p.length)return!1;for(let u=0;u<l.length;u++){const r=l[u],m=p[u];if(r.type!==m.type||r.value!==m.value)return!1}return!0}function n(l,p){return typeof l=="string"&&typeof p=="string"?l===p:Array.isArray(l)&&Array.isArray(p)?e(l,p):!1}function o(l){return l.kind==="get"||l.kind==="set"}const t="anyOrder";return to={meta:{type:"suggestion",defaultOptions:[t],docs:{description:"Require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]},{type:"object",properties:{enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(l){const p=l.options[0]??t,u=l.options[1]?.enforceForTSTypes??!1,r=l.sourceCode;function m(c,h,s){l.report({node:s,messageId:c,loc:a.getFunctionHeadLoc(s.type!=="TSMethodSignature"?s.value:s,r),data:{formerName:a.getFunctionNameWithKind(h.type!=="TSMethodSignature"?h.value:h),latterName:a.getFunctionNameWithKind(s.type!=="TSMethodSignature"?s.value:s)}})}function i(c,h){const s=[];let f=!1;for(let g=0;g<c.length;g++){const d=c[g];if(h(d)&&o(d)){const E=a.getStaticPropertyName(d),S=E!==null?E:r.getTokens(d.key);for(let x=0;x<s.length;x++){const T=s[x];if(n(T.key,S)){T.getters.push(...d.kind==="get"?[d]:[]),T.setters.push(...d.kind==="set"?[d]:[]),f=!0;break}}f||s.push({key:S,getters:d.kind==="get"?[d]:[],setters:d.kind==="set"?[d]:[]}),f=!1}}for(const{getters:g,setters:d}of s)if(g.length===1&&d.length===1){const[E]=g,[S]=d,x=c.indexOf(E),T=c.indexOf(S),C=x<T?E:S,v=x<T?S:E;Math.abs(x-T)>1?m("notGrouped",C,v):(p==="getBeforeSet"&&x>T||p==="setBeforeGet"&&x<T)&&m("invalidOrder",C,v)}}return{ObjectExpression(c){i(c.properties,h=>h.type==="Property")},ClassBody(c){i(c.body,h=>h.type==="MethodDefinition"&&!h.static),i(c.body,h=>h.type==="MethodDefinition"&&h.static)},"TSTypeLiteral, TSInterfaceBody"(c){u&&i(c.type==="TSTypeLiteral"?c.members:c.body,h=>h.type==="TSMethodSignature")}}}},to}var ro,Ug;function oA(){return Ug||(Ug=1,ro={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(a){return{ForInStatement(e){const n=e.body;if(n.type!=="EmptyStatement"&&n.type!=="IfStatement"&&!(n.type==="BlockStatement"&&n.body.length===0)&&!(n.type==="BlockStatement"&&n.body.length===1&&n.body[0].type==="IfStatement")){if(n.type==="BlockStatement"&&n.body.length>=1&&n.body[0].type==="IfStatement"){const o=n.body[0];if(o.consequent.type==="ContinueStatement"||o.consequent.type==="BlockStatement"&&o.consequent.body.length===1&&o.consequent.body[0].type==="ContinueStatement")return}a.report({node:e,messageId:"wrap"})}}}}}),ro}var no,qg;function lA(){return qg||(qg=1,no={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"handle-callback-err",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md"}}]},type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(a){const e=a.options[0]||"err",n=a.sourceCode;function o(u){return u[0]==="^"}function t(u){return o(e)?new RegExp(e,"u").test(u):u===e}function l(u){return u.variables.filter(r=>r.defs[0]&&r.defs[0].type==="Parameter")}function p(u){const r=n.getScope(u),m=l(r),i=m[0];i&&t(i.name)&&i.references.length===0&&a.report({node:u,messageId:"expected"})}return{FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p}}}),no}var so,Vg;function uA(){if(Vg)return so;Vg=1;function a(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function e(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function n(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.value!==t&&l.key===t}function o(t){const l=t.parent;return l.type==="Property"&&l.parent.type==="ObjectExpression"&&l.shorthand}return so={meta:{deprecated:{message:"The rule was renamed.",url:"https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist",deprecatedSince:"7.5.0",availableUntil:null,replacedBy:[{rule:{name:"id-denylist",url:"https://eslint.org/docs/rules/id-denylist"}}]},type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(t){const l=new Set(t.options),p=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const f=r.set.get(s.name);return f&&f.defs.length===0&&f.references.some(g=>g.identifier===s)}function c(s){const f=s.parent;return f.type==="MemberExpression"&&f.property===s&&!f.computed?a(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(s)&&!n(s)&&!(i(s)&&!o(s))}function h(s){p.has(s.range.toString())||(t.report({node:s,messageId:"restricted",data:{name:s.name}}),p.add(s.range.toString()))}return{Program(s){r=u.getScope(s)},Identifier(s){m(s.name)&&c(s)&&h(s)}}}},so}var ao,$g;function cA(){if($g)return ao;$g=1;const a=Ue();function e(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function n(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function o(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.key===t}return ao={meta:{type:"suggestion",defaultOptions:[],docs:{description:"Disallow specified identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(t){const l=new Set(t.options),p=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const f=r.set.get(s.name);return f&&f.defs.length===0&&f.references.some(g=>g.identifier===s)}function c(s){if(a.isImportAttributeKey(s))return!1;const f=s.parent;return f.type==="MemberExpression"&&f.property===s&&!f.computed?e(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!n(s)&&!o(s)&&!i(s)}function h(s){if(!p.has(s.range.toString())){const f=s.type==="PrivateIdentifier";t.report({node:s,messageId:f?"restrictedPrivate":"restricted",data:{name:s.name}}),p.add(s.range.toString())}}return{Program(s){r=u.getScope(s)},[["Identifier","PrivateIdentifier"]](s){m(s.name)&&c(s)&&h(s)}}}},ao}var io,Wg;function fA(){if(Wg)return io;Wg=1;const{getGraphemeCount:a}=Ir(),{getModuleExportName:e,isImportAttributeKey:n}=Ue();return io={meta:{type:"suggestion",defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:"always"}],docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer"},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(o){const[t]=o.options,{max:l=1/0,min:p}=t,u=t.properties!=="never",r=new Set(t.exceptions),m=t.exceptionPatterns.map(s=>new RegExp(s,"u")),i=new Set;function c(s){return m.some(f=>f.test(s))}const h={MemberExpression:u&&function(s){return!s.computed&&(s.parent.left===s&&s.parent.type==="AssignmentExpression"||s.parent.type==="Property"&&s.parent.value===s&&s.parent.parent.type==="ObjectPattern"&&s.parent.parent.parent.left===s.parent.parent)},AssignmentPattern(s,f){return s.left===f},VariableDeclarator(s,f){return s.id===f},Property(s,f){if(s.parent.type==="ObjectPattern"){const g=s.value.name===s.key.name;return!g&&s.value===f||g&&s.key===f&&u}return u&&!n(f)&&!s.computed&&s.key.name===f.name},ImportSpecifier(s,f){return s.local===f&&e(s.imported)!==e(s.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](s){const f=s.name,g=s.parent,d=a(f),E=d<p,S=d>l;if(!(E||S)||r.has(f)||c(f))return;const x=h[g.type];if(x&&!i.has(s.range.toString())&&(x===!0||x(g,s))){i.add(s.range.toString());let T=E?"tooShort":"tooLong";s.type==="PrivateIdentifier"&&(T+="Private"),o.report({node:s,messageId:T,data:{name:f,min:p,max:l}})}}}}},io}var oo,Gg;function pA(){if(Gg)return oo;Gg=1;const a=Ue();return oo={meta:{type:"suggestion",defaultOptions:["^.+$",{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean"},classFields:{type:"boolean"},onlyDeclarations:{type:"boolean"},ignoreDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const[n,{classFields:o,ignoreDestructuring:t,onlyDeclarations:l,properties:p}]=e.options,u=new RegExp(n,"u"),r=e.sourceCode;let m;const i=new Set,c=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),s=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function f(x){const T=m.set.get(x.name);return T&&T.defs.length===0&&T.references.some(C=>C.identifier===x)}function g(x){return!u.test(x)}function d(x){let{parent:T}=x;for(;T;){if(T.type==="ObjectPattern")return!0;T=T.parent}return!1}function E(x,T){return(!l||h.has(x.type))&&!c.has(x.type)&&g(T)}function S(x){if(!i.has(x.range.toString())){const T=x.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";e.report({node:x,messageId:T,data:{name:x.name,pattern:n}}),i.add(x.range.toString())}}return{Program(x){m=r.getScope(x)},Identifier(x){const T=x.name,C=x.parent,v=C.type==="MemberExpression"?C.parent:C;if(!(f(x)||a.isImportAttributeKey(x)))if(C.type==="MemberExpression"){if(!p)return;C.object.type==="Identifier"&&C.object.name===T||v.type==="AssignmentExpression"&&v.left.type==="MemberExpression"&&v.left.property.name===x.name?g(T)&&S(x):v.type==="AssignmentExpression"&&v.right.type!=="MemberExpression"&&g(T)&&S(x)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===x&&!C.computed)p&&g(T)&&S(x);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!t&&C.shorthand&&C.value.left&&g(T)&&S(x);const A=C.key.name===C.value.name;if(!A&&C.key===x)return;C.value.name&&g(T)&&!(A&&t)&&S(x)}if(!p&&!C.computed||t&&d(x))return;C.right!==x&&E(v,T)&&S(x)}else s.has(C.type)?C.local&&C.local.name===x.name&&g(T)&&S(x):C.type==="PropertyDefinition"?o&&g(T)&&S(x):E(v,T)&&S(x)},PrivateIdentifier(x){x.parent.type==="PropertyDefinition"&&!o||g(x.name)&&S(x)}}}},oo}var lo,zg;function mA(){if(zg)return lo;zg=1;const{isCommentToken:a,isNotOpeningParenToken:e}=Ue();return lo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"implicit-arrow-linebreak",url:"https://eslint.style/rules/implicit-arrow-linebreak"}}]},type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(n){const o=n.sourceCode,t=n.options[0]||"beside";function l(p){if(p.body.type==="BlockStatement")return;const u=o.getTokenBefore(p.body,e),r=o.getTokenAfter(u);u.loc.end.line===r.loc.start.line&&t==="below"?n.report({node:r,messageId:"expected",fix:m=>m.insertTextBefore(r,`
|
|
72
|
-
`)}):u.loc.end.line!==r.loc.start.line&&t==="beside"&&n.report({node:r,messageId:"unexpected",fix(m){return o.getFirstTokenBetween(u,r,{includeComments:!0,filter:a})?null:m.replaceTextRange([u.range[1],r.range[0]]," ")}})}return{ArrowFunctionExpression:p=>l(p)}}},lo}var uo,Hg;function hA(){if(Hg)return uo;Hg=1;const a=Ue(),e=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class n{constructor(u){this._values=Array(u+1)}insert(u,r){this._values[u]=r}findLastNotAfter(u){const r=this._values;for(let m=u;m>=0;m--){const i=r[m];if(i)return i}}deleteRange(u,r){this._values.fill(void 0,u,r)}}class o{constructor(u){this.sourceCode=u,this.firstTokensByLineNumber=new Map;const r=u.tokensAndComments;for(let m=0;m<r.length;m++){const i=r[m];this.firstTokensByLineNumber.has(i.loc.start.line)||this.firstTokensByLineNumber.set(i.loc.start.line,i),!this.firstTokensByLineNumber.has(i.loc.end.line)&&u.text.slice(i.range[1]-i.loc.end.column,i.range[1]).trim()&&this.firstTokensByLineNumber.set(i.loc.end.line,i)}}getFirstTokenOfLine(u){return this.firstTokensByLineNumber.get(u.loc.start.line)}isFirstTokenOfLine(u){return this.getFirstTokenOfLine(u)===u}getTokenIndent(u){return this.sourceCode.text.slice(u.range[0]-u.loc.start.column,u.range[0])}}class t{constructor(u,r,m,i){this._tokenInfo=u,this._indentSize=r,this._indentType=m,this._indexMap=new n(i),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(u){return this._indexMap.findLastNotAfter(u.range[0])}matchOffsetOf(u,r){this._lockedFirstTokens.set(r,u)}setDesiredOffset(u,r,m){return this.setDesiredOffsets(u.range,r,m)}setDesiredOffsets(u,r,m,i){const c={offset:m,from:r,force:i},h=this._indexMap.findLastNotAfter(u[1]),s=r&&r.range[0]>=u[0]&&r.range[1]<=u[1],f=s&&this._getOffsetDescriptor(r);this._indexMap.deleteRange(u[0]+1,u[1]),this._indexMap.insert(u[0],c),s&&(this._indexMap.insert(r.range[0],f),this._indexMap.insert(r.range[1],c)),this._indexMap.insert(u[1],h)}getDesiredIndent(u){if(!this._desiredIndentCache.has(u))if(this._ignoredTokens.has(u))this._desiredIndentCache.set(u,this._tokenInfo.getTokenIndent(u));else if(this._lockedFirstTokens.has(u)){const r=this._lockedFirstTokens.get(u);this._desiredIndentCache.set(u,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{const r=this._getOffsetDescriptor(u),m=r.from&&r.from.loc.start.line===u.loc.start.line&&!/^\s*?\n/u.test(u.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(u,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(m))}return this._desiredIndentCache.get(u)}ignoreToken(u){this._tokenInfo.isFirstTokenOfLine(u)&&this._ignoredTokens.add(u)}getFirstDependency(u){return this._getOffsetDescriptor(u).from}}const l={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return uo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[l,{type:"object",properties:{var:l,let:l,const:l},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:l},additionalProperties:!1},ArrayExpression:l,ObjectExpression:l,ImportDeclaration:l,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(p){let i="space",c=4;const h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};p.options.length&&(p.options[0]==="tab"?(c=1,i="tab"):(c=p.options[0],i="space"),p.options[1]&&(Object.assign(h,p.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));const s=p.sourceCode,f=new o(s),g=new t(f,c,i==="space"?" ":" ",s.text.length),d=new WeakSet;function E(B,z,H){const ce=`${B} ${i}${B===1?"":"s"}`,re=`space${z===1?"":"s"}`,Fe=`tab${H===1?"":"s"}`;let X;return z>0?X=i==="space"?z:`${z} ${re}`:H>0?X=i==="tab"?H:`${H} ${Fe}`:X="0",{expected:ce,actual:X}}function S(B,z){const H=Array.from(f.getTokenIndent(B)),ce=H.filter(Fe=>Fe===" ").length,re=H.filter(Fe=>Fe===" ").length;p.report({node:B,messageId:"wrongIndentation",data:E(z.length,ce,re),loc:{start:{line:B.loc.start.line,column:0},end:{line:B.loc.start.line,column:B.loc.start.column}},fix(Fe){const X=[B.range[0]-B.loc.start.column,B.range[0]],I=z;return Fe.replaceTextRange(X,I)}})}function x(B,z){const H=f.getTokenIndent(B);return H===z||H.includes(" ")&&H.includes(" ")}function T(B){if(!B.parent||B.parent.type!=="CallExpression"||B.parent.callee!==B)return!1;let z=B.parent&&B.parent.parent;for(;z.type==="UnaryExpression"&&["!","~","+","-"].includes(z.operator)||z.type==="AssignmentExpression"||z.type==="LogicalExpression"||z.type==="SequenceExpression"||z.type==="VariableDeclarator";)z=z.parent;return(z.type==="ExpressionStatement"||z.type==="VariableDeclaration")&&z.parent.type==="Program"}function C(B){const H=B.match(/\s*$/u)[0].match(a.createGlobalLinebreakMatcher());return H===null?0:H.length}function v(B,z,H,ce){function re(Fe){let X=s.getTokenBefore(Fe);for(;a.isOpeningParenToken(X)&&X!==z;)X=s.getTokenBefore(X);return s.getTokenAfter(X)}g.setDesiredOffsets([z.range[1],H.range[0]],z,typeof ce=="number"?ce:1),g.setDesiredOffset(H,z,0),!(ce==="first"&&B.length&&!B[0])&&B.forEach((Fe,X)=>{if(Fe&&(ce==="off"&&g.ignoreToken(re(Fe)),X!==0))if(ce==="first"&&f.isFirstTokenOfLine(re(Fe)))g.matchOffsetOf(re(B[0]),re(Fe));else{const I=B[X-1],W=I&&re(I),oe=I&&s.getLastToken(I);I&&oe.loc.end.line-C(oe.value)>z.loc.end.line&&g.setDesiredOffsets([I.range[1],Fe.range[1]],W,0)}})}function A(B){if(B.type!=="BlockStatement"){const z=s.getTokenBefore(B,a.isNotOpeningParenToken);let H=s.getFirstToken(B),ce=s.getLastToken(B);for(;a.isOpeningParenToken(s.getTokenBefore(H))&&a.isClosingParenToken(s.getTokenAfter(ce));)H=s.getTokenBefore(H),ce=s.getTokenAfter(ce);g.setDesiredOffsets([H.range[0],ce.range[1]],z,1)}}function b(B){let z;B.arguments.length?z=s.getFirstTokenBetween(B.callee,B.arguments[0],a.isOpeningParenToken):z=s.getLastToken(B,1);const H=s.getLastToken(B);if(d.add(z),d.add(H),B.optional){const Fe=s.getTokenAfter(B.callee,a.isQuestionDotToken),X=s.getTokensBetween(B.callee,Fe,{filter:a.isClosingParenToken}).length,I=X?s.getTokenBefore(B.callee,{skip:X-1}):s.getFirstToken(B.callee),W=s.getTokenBefore(Fe),oe=W.loc.end.line===z.loc.start.line?W:I;g.setDesiredOffset(Fe,oe,1)}const ce=B.callee.type==="TaggedTemplateExpression"?s.getFirstToken(B.callee.quasi):z,re=s.getTokenBefore(ce);g.setDesiredOffset(z,re,0),v(B.arguments,z,H,h.CallExpression.arguments)}function w(B){const z=[],H=[];for(let ce=0;ce<B.length;ce++){const re=B[ce];a.isOpeningParenToken(re)?z.push(re):a.isClosingParenToken(re)&&H.push({left:z.pop(),right:re})}for(let ce=H.length-1;ce>=0;ce--){const re=H[ce].left,Fe=H[ce].right;if(!d.has(re)&&!d.has(Fe)){const X=new Set(s.getTokensBetween(re,Fe));X.forEach(I=>{X.has(g.getFirstDependency(I))||g.setDesiredOffset(I,re,1)})}g.setDesiredOffset(Fe,re,0)}}function k(B){const z=new Set(s.getTokens(B,{includeComments:!0}));z.forEach(H=>{if(!z.has(g.getFirstDependency(H))){const ce=f.getFirstTokenOfLine(H);H===ce?g.ignoreToken(H):g.setDesiredOffset(H,ce,0)}})}function R(B,z){let H=z;for(;H.parent&&!H.parent.type.endsWith("Statement")&&!H.parent.type.endsWith("Declaration");)H=H.parent;return H=H.parent,!H||H.loc.start.line===B.loc.start.line}function F(B,z){const H=B.loc.end.line,ce=z.loc.start.line;if(H===ce||H===ce-1)return!1;for(let re=H+1;re<ce;++re)if(!f.firstTokensByLineNumber.has(re))return!0;return!1}const L=new Set,P={"ArrayExpression, ArrayPattern"(B){const z=s.getFirstToken(B),H=s.getTokenAfter([...B.elements].reverse().find(ce=>ce)||z,a.isClosingBracketToken);v(B.elements,z,H,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(B){const z=s.getFirstToken(B),H=s.getTokenAfter(B.properties.length?B.properties.at(-1):z,a.isClosingBraceToken);v(B.properties,z,H,h.ObjectExpression)},ArrowFunctionExpression(B){const z=s.getFirstToken(B,{skip:B.async?1:0});if(a.isOpeningParenToken(z)){const H=z,ce=s.getTokenBefore(B.body,a.isClosingParenToken);d.add(H),d.add(ce),v(B.params,H,ce,h.FunctionExpression.parameters)}A(B.body)},AssignmentExpression(B){const z=s.getFirstTokenBetween(B.left,B.right,H=>H.value===B.operator);g.setDesiredOffsets([z.range[0],B.range[1]],s.getLastToken(B.left),1),g.ignoreToken(z),g.ignoreToken(s.getTokenAfter(z))},"BinaryExpression, LogicalExpression"(B){const z=s.getFirstTokenBetween(B.left,B.right,ce=>ce.value===B.operator),H=s.getTokenAfter(z);g.ignoreToken(z),g.ignoreToken(H),g.setDesiredOffset(H,z,0)},"BlockStatement, ClassBody"(B){let z;B.parent&&T(B.parent)?z=h.outerIIFEBody:B.parent&&(B.parent.type==="FunctionExpression"||B.parent.type==="ArrowFunctionExpression")?z=h.FunctionExpression.body:B.parent&&B.parent.type==="FunctionDeclaration"?z=h.FunctionDeclaration.body:z=1,a.STATEMENT_LIST_PARENTS.has(B.parent.type)||g.setDesiredOffset(s.getFirstToken(B),s.getFirstToken(B.parent),0),v(B.body,s.getFirstToken(B),s.getLastToken(B),z)},CallExpression:b,"ClassDeclaration[superClass], ClassExpression[superClass]"(B){const z=s.getFirstToken(B),H=s.getTokenBefore(B.superClass,a.isNotOpeningParenToken);g.setDesiredOffsets([H.range[0],B.body.range[0]],z,1)},ConditionalExpression(B){const z=s.getFirstToken(B);if(!h.flatTernaryExpressions||!a.isTokenOnSameLine(B.test,B.consequent)||R(z,B)){const H=s.getFirstTokenBetween(B.test,B.consequent,I=>I.type==="Punctuator"&&I.value==="?"),ce=s.getFirstTokenBetween(B.consequent,B.alternate,I=>I.type==="Punctuator"&&I.value===":"),re=s.getTokenAfter(H),Fe=s.getTokenBefore(ce),X=s.getTokenAfter(ce);g.setDesiredOffset(H,z,1),g.setDesiredOffset(ce,z,1),g.setDesiredOffset(re,z,re.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),Fe.loc.end.line===X.loc.start.line?g.setDesiredOffset(X,re,0):g.setDesiredOffset(X,z,X.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":B=>A(B.body),ExportNamedDeclaration(B){if(B.declaration===null){const z=s.getLastToken(B,a.isClosingBraceToken);v(B.specifiers,s.getFirstToken(B,{skip:1}),z,1),B.source&&g.setDesiredOffsets([z.range[1],B.range[1]],s.getFirstToken(B),1)}},ForStatement(B){const z=s.getFirstToken(B,1);B.init&&g.setDesiredOffsets(B.init.range,z,1),B.test&&g.setDesiredOffsets(B.test.range,z,1),B.update&&g.setDesiredOffsets(B.update.range,z,1),A(B.body)},"FunctionDeclaration, FunctionExpression"(B){const z=s.getTokenBefore(B.body),H=s.getTokenBefore(B.params.length?B.params[0]:z);d.add(H),d.add(z),v(B.params,H,z,h[B.type].parameters)},IfStatement(B){A(B.consequent),B.alternate&&A(B.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(B){let z;B.type==="IfStatement"?(z=[B.consequent],B.alternate&&z.push(B.alternate)):z=[B.body];for(const H of z){const ce=s.getLastToken(H);if(a.isSemicolonToken(ce)){const re=s.getTokenBefore(ce),Fe=s.getTokenAfter(ce);!a.isTokenOnSameLine(re,ce)&&Fe&&a.isTokenOnSameLine(ce,Fe)&&g.setDesiredOffset(ce,s.getFirstToken(B),0)}}},ImportDeclaration(B){if(B.specifiers.some(re=>re.type==="ImportSpecifier")){const re=s.getFirstToken(B,a.isOpeningBraceToken),Fe=s.getLastToken(B,a.isClosingBraceToken);v(B.specifiers.filter(X=>X.type==="ImportSpecifier"),re,Fe,h.ImportDeclaration)}const z=s.getLastToken(B,re=>re.type==="Identifier"&&re.value==="from"),H=s.getLastToken(B,re=>re.type==="String"),ce=s.getLastToken(B,re=>re.type==="Punctuator"&&re.value===";");if(z){const re=ce&&ce.range[1]===H.range[1]?B.range[1]:H.range[1];g.setDesiredOffsets([z.range[0],re],s.getFirstToken(B),1)}},ImportExpression(B){const z=s.getFirstToken(B,1),H=s.getLastToken(B);d.add(z),d.add(H),g.setDesiredOffset(z,s.getTokenBefore(z),0),v([B.source],z,H,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(B){const z=B.type==="MetaProperty"?B.meta:B.object,H=s.getFirstTokenBetween(z,B.property,a.isNotClosingParenToken),ce=s.getTokenAfter(H),re=s.getTokensBetween(z,B.property,{filter:a.isClosingParenToken}).length,Fe=re?s.getTokenBefore(z,{skip:re-1}):s.getFirstToken(z),X=s.getTokenBefore(H),I=B.computed?H:ce;B.computed&&(g.setDesiredOffset(s.getLastToken(B),H,0),g.setDesiredOffsets(B.property.range,H,1));const W=X.loc.end.line===I.loc.start.line?X:Fe;typeof h.MemberExpression=="number"?(g.setDesiredOffset(H,W,h.MemberExpression),g.setDesiredOffset(ce,B.computed?H:W,h.MemberExpression)):(g.ignoreToken(H),g.ignoreToken(ce),g.setDesiredOffset(H,W,0),g.setDesiredOffset(ce,H,0))},NewExpression(B){(B.arguments.length>0||a.isClosingParenToken(s.getLastToken(B))&&a.isOpeningParenToken(s.getLastToken(B,1)))&&b(B)},Property(B){if(!B.shorthand&&!B.method&&B.kind==="init"){const z=s.getFirstTokenBetween(B.key,B.value,a.isColonToken);g.ignoreToken(s.getTokenAfter(z))}},PropertyDefinition(B){const z=s.getFirstToken(B),H=s.getLastToken(B);let ce;if(B.computed){const re=s.getTokenBefore(B.key,a.isOpeningBracketToken),Fe=ce=s.getTokenAfter(B.key,a.isClosingBracketToken),X=[re.range[1],Fe.range[0]];re!==z&&g.setDesiredOffset(re,z,0),g.setDesiredOffsets(X,re,1),g.setDesiredOffset(Fe,re,0)}else{const re=ce=s.getFirstToken(B.key);re!==z&&g.setDesiredOffset(re,z,1)}if(B.value){const re=s.getTokenBefore(B.value,a.isEqToken),Fe=s.getTokenAfter(re);g.setDesiredOffset(re,ce,1),g.setDesiredOffset(Fe,re,1),a.isSemicolonToken(H)&&g.setDesiredOffset(H,re,1)}else a.isSemicolonToken(H)&&g.setDesiredOffset(H,ce,1)},StaticBlock(B){const z=s.getFirstToken(B,{skip:1}),H=s.getLastToken(B);v(B.body,z,H,h.StaticBlock.body)},SwitchStatement(B){const z=s.getTokenAfter(B.discriminant,a.isOpeningBraceToken),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,h.SwitchCase),B.cases.length&&s.getTokensBetween(B.cases.at(-1),H,{includeComments:!0,filter:a.isCommentToken}).forEach(ce=>g.ignoreToken(ce))},SwitchCase(B){if(!(B.consequent.length===1&&B.consequent[0].type==="BlockStatement")){const z=s.getFirstToken(B),H=s.getTokenAfter(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)}},TemplateLiteral(B){B.expressions.forEach((z,H)=>{const ce=B.quasis[H],re=B.quasis[H+1],Fe=ce.loc.start.line===ce.loc.end.line?s.getFirstToken(ce):null;g.setDesiredOffsets([ce.range[1],re.range[0]],Fe,1),g.setDesiredOffset(s.getFirstToken(re),Fe,0)})},VariableDeclaration(B){let z=Object.hasOwn(h.VariableDeclarator,B.kind)?h.VariableDeclarator[B.kind]:1;const H=s.getFirstToken(B),ce=s.getLastToken(B);if(h.VariableDeclarator[B.kind]==="first"){if(B.declarations.length>1){v(B.declarations,H,ce,"first");return}z=1}B.declarations.at(-1).loc.start.line>B.loc.start.line?g.setDesiredOffsets(B.range,H,z,!0):g.setDesiredOffsets(B.range,H,z),a.isSemicolonToken(ce)&&g.ignoreToken(ce)},VariableDeclarator(B){if(B.init){const z=s.getTokenBefore(B.init,a.isNotOpeningParenToken),H=s.getTokenAfter(z);g.ignoreToken(z),g.ignoreToken(H),g.setDesiredOffsets([H.range[0],B.range[1]],z,1),g.setDesiredOffset(z,s.getLastToken(B.id),0)}},"JSXAttribute[value]"(B){const z=s.getFirstTokenBetween(B.name,B.value,H=>H.type==="Punctuator"&&H.value==="=");g.setDesiredOffsets([z.range[0],B.value.range[1]],s.getFirstToken(B.name),1)},JSXElement(B){B.closingElement&&v(B.children,s.getFirstToken(B.openingElement),s.getFirstToken(B.closingElement),1)},JSXOpeningElement(B){const z=s.getFirstToken(B);let H;B.selfClosing?(H=s.getLastToken(B,{skip:1}),g.setDesiredOffset(s.getLastToken(B),H,0)):H=s.getLastToken(B),g.setDesiredOffsets(B.name.range,s.getFirstToken(B)),v(B.attributes,z,H,1)},JSXClosingElement(B){const z=s.getFirstToken(B);g.setDesiredOffsets(B.name.range,z,1)},JSXFragment(B){const z=s.getFirstToken(B.openingFragment),H=s.getFirstToken(B.closingFragment);v(B.children,z,H,1)},JSXOpeningFragment(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets(B.range,z,1),g.matchOffsetOf(z,H)},JSXClosingFragment(B){const z=s.getFirstToken(B),H=s.getLastToken(B,{skip:1}),ce=s.getLastToken(B),re=a.isTokenOnSameLine(H,ce)?H:ce;g.setDesiredOffsets(B.range,z,1),g.matchOffsetOf(z,re)},JSXExpressionContainer(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)},JSXSpreadAttribute(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)},"*"(B){const z=s.getFirstToken(B);z&&!L.has(z)&&g.setDesiredOffsets(B.range,z,0)}},O=[],q={};for(const[B,z]of Object.entries(P))q[B]=H=>O.push({listener:z,node:H});const N=new Set;function _(B){N.add(B),L.add(s.getFirstToken(B))}const G=h.ignoredNodes.reduce((B,z)=>Object.assign(B,{[z]:_}),{});return Object.assign(q,G,{"*:exit"(B){e.has(B.type)||_(B)},"Program:exit"(){h.ignoreComments&&s.getAllComments().forEach(z=>g.ignoreToken(z));for(let z=0;z<O.length;z++){const H=O[z];N.has(H.node)||H.listener(H.node)}N.forEach(k),w(s.ast.tokens);const B=new WeakMap;for(let z=0;z<s.ast.comments.length;z++){const H=s.ast.comments[z],ce=s.getTokenBefore(H,{includeComments:!0}),re=B.has(ce)?B.get(ce):ce;B.set(H,re)}for(let z=1;z<s.lines.length+1;z++){if(!f.firstTokensByLineNumber.has(z))continue;const H=f.firstTokensByLineNumber.get(z);if(H.loc.start.line===z){if(a.isCommentToken(H)){const ce=B.get(H),re=ce?s.getTokenAfter(ce):s.ast.tokens[0],Fe=ce&&!F(ce,H),X=re&&!F(H,re);if(re&&a.isSemicolonToken(re)&&!a.isTokenOnSameLine(H,re)&&g.setDesiredOffset(H,re,0),Fe&&x(H,g.getDesiredIndent(ce))||X&&x(H,g.getDesiredIndent(re)))continue}x(H,g.getDesiredIndent(H))||S(H,g.getDesiredIndent(H))}}}})}},uo}var co,Kg;function dA(){if(Kg)return co;Kg=1;const a=Ue();return co={meta:{type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent-legacy"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"4.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let l="space",p=4;const u={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},r=e.sourceCode;if(e.options.length&&(e.options[0]==="tab"?(p=1,l="tab"):typeof e.options[0]=="number"&&(p=e.options[0],l="space"),e.options[1])){const _=e.options[1];u.SwitchCase=_.SwitchCase||0;const G=_.VariableDeclarator;typeof G=="number"?u.VariableDeclarator={var:G,let:G,const:G}:typeof G=="object"&&Object.assign(u.VariableDeclarator,G),typeof _.outerIIFEBody=="number"&&(u.outerIIFEBody=_.outerIIFEBody),typeof _.MemberExpression=="number"&&(u.MemberExpression=_.MemberExpression),typeof _.FunctionDeclaration=="object"&&Object.assign(u.FunctionDeclaration,_.FunctionDeclaration),typeof _.FunctionExpression=="object"&&Object.assign(u.FunctionExpression,_.FunctionExpression),typeof _.CallExpression=="object"&&Object.assign(u.CallExpression,_.CallExpression),(typeof _.ArrayExpression=="number"||typeof _.ArrayExpression=="string")&&(u.ArrayExpression=_.ArrayExpression),(typeof _.ObjectExpression=="number"||typeof _.ObjectExpression=="string")&&(u.ObjectExpression=_.ObjectExpression)}const m={};function i(_,G,B){const z=`${_} ${l}${_===1?"":"s"}`,H=`space${G===1?"":"s"}`,ce=`tab${B===1?"":"s"}`;let re;return G>0&&B>0?re=`${G} ${H} and ${B} ${ce}`:G>0?re=l==="space"?G:`${G} ${H}`:B>0?re=l==="tab"?B:`${B} ${ce}`:re="0",{expected:z,actual:re}}function c(_,G,B,z,H,ce){if(B&&z)return;const re=(l==="space"?" ":" ").repeat(G),Fe=ce?[_.range[1]-_.loc.end.column,_.range[1]-_.loc.end.column+B+z]:[_.range[0]-_.loc.start.column,_.range[0]-_.loc.start.column+B+z];e.report({node:_,loc:H,messageId:"expected",data:i(G,B,z),fix:X=>X.replaceTextRange(Fe,re)})}function h(_,G){const B=G?r.getLastToken(_):r.getFirstToken(_),z=r.getText(B,B.loc.start.column).split(""),H=z.slice(0,z.findIndex(Fe=>Fe!==" "&&Fe!==" ")),ce=H.filter(Fe=>Fe===" ").length,re=H.filter(Fe=>Fe===" ").length;return{space:ce,tab:re,goodChar:l==="space"?ce:re,badChar:l==="space"?re:ce}}function s(_,G){const B=G===!0?r.getLastToken(_,1):r.getTokenBefore(_),z=G===!0?_.loc.end.line:_.loc.start.line,H=B?B.loc.end.line:-1;return z!==H}function f(_,G){const B=h(_,!1);if(_.type!=="ArrayExpression"&&_.type!=="ObjectExpression"&&(B.goodChar!==G||B.badChar!==0)&&s(_)&&c(_,G,B.space,B.tab),_.type==="IfStatement"&&_.alternate){const z=r.getTokenBefore(_.alternate);f(z,G),s(_.alternate)||f(_.alternate,G)}if(_.type==="TryStatement"&&_.handler){const z=r.getFirstToken(_.handler);f(z,G)}if(_.type==="TryStatement"&&_.finalizer){const z=r.getTokenBefore(_.finalizer);f(z,G)}if(_.type==="DoWhileStatement"){const z=r.getTokenAfter(_.body);f(z,G)}}function g(_,G){_.forEach(B=>f(B,G))}function d(_,G){const B=r.getLastToken(_),z=h(B,!0);(z.goodChar!==G||z.badChar!==0)&&s(_,!0)&&c(_,G,z.space,z.tab,{line:B.loc.start.line,column:B.loc.start.column},!0)}function E(_,G){const B=r.getLastToken(_,a.isClosingParenToken);if(r.getText(B,B.loc.start.column).slice(0,-1).trim())return;const H=h(B,!0);H.goodChar!==G&&c(_,G,H.space,H.tab,{line:B.loc.start.line,column:B.loc.start.column},!0)}function S(_,G){const B=h(_,!1);(B.goodChar!==G||B.badChar!==0)&&s(_)&&c(_,G,B.space,B.tab,{line:_.loc.start.line,column:_.loc.start.column})}function x(_,G,B){let z=_.parent;const H=new Set(B||["Program"]);for(;z.type!==G&&!H.has(z.type)&&z.type!=="Program";)z=z.parent;return z.type===G?z:null}function T(_){return x(_,"VariableDeclarator")}function C(_,G){return G&&G.parent.loc.start.line===_.loc.start.line&&G.parent.declarations.length>1}function v(_){const G=_.parent;return G.arguments.length>=2&&G.arguments[1]===_?G.arguments[0].loc.end.line>G.arguments[0].loc.start.line:!1}function A(_){const G=_.parent;let B=G.parent;if(G.type!=="CallExpression"||G.callee!==_)return!1;for(;B.type==="UnaryExpression"&&(B.operator==="!"||B.operator==="~"||B.operator==="+"||B.operator==="-")||B.type==="AssignmentExpression"||B.type==="LogicalExpression"||B.type==="SequenceExpression"||B.type==="VariableDeclarator";)B=B.parent;return(B.type==="ExpressionStatement"||B.type==="VariableDeclaration")&&B.parent&&B.parent.type==="Program"}function b(_){const G=_.parent;let B;if(G.parent&&(G.parent.type==="Property"||G.parent.type==="ArrayExpression")?B=h(G,!1).goodChar:B=h(G).goodChar,G.parent.type==="CallExpression"){const ce=G.parent;G.type!=="FunctionExpression"&&G.type!=="ArrowFunctionExpression"?ce&&ce.loc.start.line<_.loc.start.line&&(B=h(ce).goodChar):v(G)&&ce.callee.loc.start.line===ce.callee.loc.end.line&&!s(G)&&(B=h(ce).goodChar)}let z=p;u.outerIIFEBody!==null&&A(G)?z=u.outerIIFEBody*p:G.type==="FunctionExpression"?z=u.FunctionExpression.body*p:G.type==="FunctionDeclaration"&&(z=u.FunctionDeclaration.body*p),B+=z;const H=T(_);H&&C(_,H)&&(B+=p*u.VariableDeclarator[H.parent.kind]),_.body.length>0&&g(_.body,B),d(_,B-z)}function w(_){const G=r.getLastToken(_),B=_.loc.start.line,z=G.loc.end.line;return B===z}function k(_){if(w(_))return;let G=_.type==="ArrayExpression"?_.elements:_.properties;G=G.filter(ce=>ce!==null);let B,z;const H=T(_);if(s(_)){const ce=_.parent;if(B=h(ce).goodChar,(!H||H.loc.start.line!==_.loc.start.line)&&(ce.type!=="VariableDeclarator"||H===H.parent.declarations[0]))if(ce.type==="VariableDeclarator"&&H.loc.start.line===ce.loc.start.line)B+=p*u.VariableDeclarator[H.parent.kind];else if(ce.type==="ObjectExpression"||ce.type==="ArrayExpression"){const re=_.parent.type==="ObjectExpression"?_.parent.properties:_.parent.elements;re[0]&&re[0].loc.start.line===ce.loc.start.line&&re[0].loc.end.line!==ce.loc.start.line||(typeof u[ce.type]=="number"?B+=u[ce.type]*p:B=re[0].loc.start.column)}else ce.type==="CallExpression"||ce.type==="NewExpression"?typeof u.CallExpression.arguments=="number"?B+=u.CallExpression.arguments*p:u.CallExpression.arguments==="first"?ce.arguments.includes(_)&&(B=ce.arguments[0].loc.start.column):B+=p:(ce.type==="LogicalExpression"||ce.type==="ArrowFunctionExpression")&&(B+=p);S(_,B)}else B=h(_).goodChar;u[_.type]==="first"?z=G.length?G[0].loc.start.column:0:z=B+p*u[_.type],C(_,H)&&(z+=p*u.VariableDeclarator[H.parent.kind]),g(G,z),!(G.length>0&&G.at(-1).loc.end.line===_.loc.end.line)&&d(_,B+(C(_,H)?u.VariableDeclarator[H.parent.kind]*p:0))}function R(_){return _.type==="BlockStatement"||_.type==="ClassBody"||_.body&&_.body.type==="BlockStatement"||_.consequent&&_.consequent.type==="BlockStatement"}function F(_){if(w(_))return;if(_.parent&&(_.parent.type==="FunctionExpression"||_.parent.type==="FunctionDeclaration"||_.parent.type==="ArrowFunctionExpression")){b(_);return}let G,B;const z=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];_.parent&&z.includes(_.parent.type)&&R(_)?G=h(_.parent).goodChar:_.parent&&_.parent.type==="CatchClause"?G=h(_.parent.parent).goodChar:G=h(_).goodChar,_.type==="IfStatement"&&_.consequent.type!=="BlockStatement"?B=[_.consequent]:Array.isArray(_.body)?B=_.body:B=[_.body],B.length>0&&g(B,G+p),_.type==="BlockStatement"&&d(_,G)}function L(_){return _.declarations.reduce((G,B)=>{const z=G.at(-1);return(B.loc.start.line!==_.loc.start.line&&!z||z&&z.loc.start.line!==B.loc.start.line)&&G.push(B),G},[])}function P(_){const G=L(_),B=h(_).goodChar,z=G.at(-1),H=B+p*u.VariableDeclarator[_.kind];if(g(G,H),r.getLastToken(_).loc.end.line<=z.loc.end.line)return;const ce=r.getTokenBefore(z);ce.value===","?d(_,h(ce).goodChar):d(_,H-p)}function O(_){_.body.type!=="BlockStatement"&&F(_)}function q(_,G){const B=_.type==="SwitchStatement"?_:_.parent,z=typeof G>"u"?h(B).goodChar:G;let H;return m[B.loc.start.line]?m[B.loc.start.line]:(B.cases.length>0&&u.SwitchCase===0?H=z:H=z+p*u.SwitchCase,m[B.loc.start.line]=H,H)}function N(_){const G=/^return\s*?\(\s*?\);*?/u,B=r.getText(_).replace(r.getText(_.argument),"");return G.test(B)}return{Program(_){_.body.length>0&&g(_.body,h(_).goodChar)},ClassBody:F,BlockStatement:F,WhileStatement:O,ForStatement:O,ForInStatement:O,ForOfStatement:O,DoWhileStatement:O,IfStatement(_){_.consequent.type!=="BlockStatement"&&_.consequent.loc.start.line>_.loc.start.line&&F(_)},VariableDeclaration(_){_.declarations.at(-1).loc.start.line>_.declarations[0].loc.start.line&&P(_)},ObjectExpression(_){k(_)},ArrayExpression(_){k(_)},MemberExpression(_){if(typeof u.MemberExpression>"u"||w(_)||x(_,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||x(_,"AssignmentExpression",["FunctionExpression"]))return;const G=h(_).goodChar+p*u.MemberExpression,B=[_.property],z=r.getTokenBefore(_.property);z.type==="Punctuator"&&z.value==="."&&B.push(z),g(B,G)},SwitchStatement(_){const G=h(_).goodChar,B=q(_,G);g(_.cases,B),d(_,G)},SwitchCase(_){if(w(_))return;const G=q(_);g(_.consequent,G+p)},FunctionDeclaration(_){w(_)||(u.FunctionDeclaration.parameters==="first"&&_.params.length?g(_.params.slice(1),_.params[0].loc.start.column):u.FunctionDeclaration.parameters!==null&&g(_.params,h(_).goodChar+p*u.FunctionDeclaration.parameters))},FunctionExpression(_){w(_)||(u.FunctionExpression.parameters==="first"&&_.params.length?g(_.params.slice(1),_.params[0].loc.start.column):u.FunctionExpression.parameters!==null&&g(_.params,h(_).goodChar+p*u.FunctionExpression.parameters))},ReturnStatement(_){if(w(_))return;const G=h(_).goodChar;N(_)?E(_,G):f(_,G)},CallExpression(_){w(_)||(u.CallExpression.arguments==="first"&&_.arguments.length?g(_.arguments.slice(1),_.arguments[0].loc.start.column):u.CallExpression.arguments!==null&&g(_.arguments,h(_).goodChar+p*u.CallExpression.arguments))}}}},co}var fo,Xg;function gA(){if(Xg)return fo;Xg=1;const a=new Set(["const","using","await using"]);function e(o){return o.type==="ForInStatement"||o.type==="ForOfStatement"||o.type==="ForStatement"}function n(o){const t=o.parent,l=t.parent;return e(l)?l.type==="ForStatement"?l.init===t:l.left===t:!!o.init}return fo={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(o){const t="always",l="never",p=o.options[0]||t,u=o.options[1]||{};let r=!1;return{TSModuleDeclaration(m){m.declare&&(r=!0)},"TSModuleDeclaration:exit"(m){m.declare&&(r=!1)},"VariableDeclaration:exit"(m){const i=m.kind,c=m.declarations;if(!(m.declare||r))for(let h=0;h<c.length;++h){const s=c[h],f=s.id,g=n(s),d=u.ignoreForLoopInit&&e(m.parent);let E="";p===t&&!g?E="initialized":p===l&&!a.has(i)&&g&&!d&&(E="notInitialized"),f.type==="Identifier"&&E&&o.report({node:s,messageId:E,data:{idName:f.name}})}}}}},fo}var po,Jg;function yA(){if(Jg)return po;Jg=1;const a=Ue(),e={"prefer-double":{quote:'"',description:"singlequote",convert(n){return n.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(n){return n.replace(/"/gu,"'")}}};return po={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"jsx-quotes",url:"https://eslint.style/rules/jsx-quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/latest/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(n){const o=n.options[0]||"prefer-double",t=e[o];function l(p){return p.value.includes(t.quote)||a.isSurroundedBy(p.raw,t.quote)}return{JSXAttribute(p){const u=p.value;u&&a.isStringLiteral(u)&&!l(u)&&n.report({node:u,messageId:"unexpected",data:{description:t.description},fix(r){return r.replaceText(u,t.convert(u.raw))}})}}}},po}var mo,Yg;function vA(){if(Yg)return mo;Yg=1;const a=Ue(),{getGraphemeCount:e}=Ir();function n(r){return a.LINEBREAK_MATCHER.test(r)}function o(r){return r.at(-1)}function t(r){return r.loc.end.line===r.loc.start.line}function l(r){const[m]=r,i=o(r);return m.loc.start.line===i.loc.end.line}function p(r,m){return r.mode=m.mode||"strict",typeof m.beforeColon<"u"?r.beforeColon=+m.beforeColon:r.beforeColon=0,typeof m.afterColon<"u"?r.afterColon=+m.afterColon:r.afterColon=1,typeof m.align<"u"&&(typeof m.align=="object"?r.align=m.align:r.align={on:m.align,mode:r.mode,beforeColon:r.beforeColon,afterColon:r.afterColon}),r}function u(r,m){return typeof m.align=="object"?(r.align=p({},m.align),r.align.on=m.align.on||"colon",r.align.mode=m.align.mode||"strict",r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m)):(r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m),r.multiLine.align&&(r.align={on:r.multiLine.align.on,mode:r.multiLine.align.mode||r.multiLine.mode,beforeColon:r.multiLine.align.beforeColon,afterColon:r.multiLine.align.afterColon})),r}return mo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"key-spacing",url:"https://eslint.style/rules/key-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(r){const m=r.options[0]||{},i=u({},m),c=i.multiLine,h=i.singleLine,s=i.align||null,f=r.sourceCode;function g(L){return!(L.method||L.shorthand||L.kind!=="init"||L.type!=="Property")}function d(L){return f.getTokenAfter(L,a.isColonToken)}function E(L){const P=d(L);return f.getTokenBefore(P)}function S(L){const P=d(L);return f.getTokenAfter(P)}function x(L,P){const O=L.loc.start.line,q=(g(P)?S(P.key):P).loc.start.line;if(q-O<=1)return!0;const N=f.getCommentsBefore(P);if(N.length&&N[0].loc.start.line-O<=1&&q-o(N).loc.end.line<=1){for(let _=1;_<N.length;_++)if(N[_].loc.start.line-N[_-1].loc.end.line>1)return!1;return!0}return!1}function T(L){const P=L.key;return L.computed?f.getText().slice(P.range[0],P.range[1]):a.getStaticPropertyName(L)}function C(L,P,O,q,N){const _=O.length-q;if((_&&N==="strict"||_<0&&N==="minimum"||_>0&&!q&&N==="minimum")&&!(q&&n(O))){const G=d(L.key),B=f.getTokenBefore(G,{includeComments:!0}),z=f.getTokenAfter(G,{includeComments:!0}),H=P==="key",ce=_>0,re=Math.abs(_),Fe=Array(re+1).join(" "),X=H?B.loc.end:G.loc.start,I=H?G.loc.start:z.loc.start,W=H?B.loc:z.loc,oe=ce?{start:X,end:I}:W;let ie;if(ce){let de;H?de=[B.range[1],B.range[1]+re]:de=[z.range[0]-re,z.range[0]],ie=function(be){return be.removeRange(de)}}else H?ie=function(de){return de.insertTextAfter(B,Fe)}:ie=function(de){return de.insertTextBefore(z,Fe)};let se;ce?se=P==="key"?"extraKey":"extraValue":se=P==="key"?"missingKey":"missingValue",r.report({node:L[P],loc:oe,messageId:se,data:{computed:L.computed?"computed ":"",key:T(L)},fix:ie})}}function v(L){const P=f.getFirstToken(L),O=E(L.key);return e(f.getText().slice(P.range[0],O.range[1]))}function A(L){const P=/(\s*):(\s*)/u.exec(f.getText().slice(L.key.range[1],L.value.range[0]));return P?{beforeColon:P[1],afterColon:P[2]}:null}function b(L){return L.properties.length===1?[L.properties]:L.properties.reduce((P,O)=>{const q=o(P),N=o(q);return!N||x(N,O)?q.push(O):P.push([O]),P},[[]])}function w(L){const P=L.length,O=L.map(v),q=s.on;let N=Math.max(...O),_,G,B;s&&P>1?(_=s.beforeColon,G=s.afterColon,B=s.mode):(_=c.beforeColon,G=c.afterColon,B=s.mode),N+=q==="colon"?_:G;for(let z=0;z<P;z++){const H=L[z],ce=A(H);if(ce){const re=O[z];q==="value"?(C(H,"key",ce.beforeColon,_,B),C(H,"value",ce.afterColon,N-re,B)):(C(H,"key",ce.beforeColon,N-re,B),C(H,"value",ce.afterColon,G,B))}}}function k(L,P){const O=A(L);O&&(C(L,"key",O.beforeColon,P.beforeColon,P.mode),C(L,"value",O.afterColon,P.afterColon,P.mode))}function R(L,P){const O=L.length;for(let q=0;q<O;q++)k(L[q],P)}function F(L){b(L).forEach(P=>{const O=P.filter(g);O.length>0&&l(O)?R(O,c):w(O)})}return s?{ObjectExpression(L){t(L)?R(L.properties.filter(g),h):F(L)}}:{Property(L){k(L,t(L.parent)?h:c)}}}},mo}var ho,Qg;function EA(){if(Qg)return ho;Qg=1;const a=Ue(),e=qi(),n=/^[)\]}>]$/u,o=/^(?:[([{<~!]|\+\+?|--?)$/u,t=/^[)\]}>*]$/u,l=/^[{*]$/u,p=/\$\{$/u,u=/^\}/u,r=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,m=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){m.sort();for(let h=1;h<m.length;++h)if(m[h]===m[h-1])throw new Error(`Duplication was found in the keyword list: ${m[h]}`)})();function i(h){return h.type==="Template"&&p.test(h.value)}function c(h){return h.type==="Template"&&u.test(h.value)}return ho={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"keyword-spacing",url:"https://eslint.style/rules/keyword-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/latest/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:m.reduce((h,s)=>(h[s]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(h){const s=h.sourceCode,f=new WeakSet;function g(re,Fe){const X=s.getTokenBefore(re);X&&(r.test(X.type)||Fe.test(X.value))&&!i(X)&&!f.has(X)&&a.isTokenOnSameLine(X,re)&&!s.isSpaceBetweenTokens(X,re)&&h.report({loc:re.loc,messageId:"expectedBefore",data:re,fix(I){return I.insertTextBefore(re," ")}})}function d(re,Fe){const X=s.getTokenBefore(re);X&&(r.test(X.type)||Fe.test(X.value))&&!i(X)&&!f.has(X)&&a.isTokenOnSameLine(X,re)&&s.isSpaceBetweenTokens(X,re)&&h.report({loc:{start:X.loc.end,end:re.loc.start},messageId:"unexpectedBefore",data:re,fix(I){return I.removeRange([X.range[1],re.range[0]])}})}function E(re,Fe){const X=s.getTokenAfter(re);X&&(r.test(X.type)||Fe.test(X.value))&&!c(X)&&!f.has(X)&&a.isTokenOnSameLine(re,X)&&!s.isSpaceBetweenTokens(re,X)&&h.report({loc:re.loc,messageId:"expectedAfter",data:re,fix(I){return I.insertTextAfter(re," ")}})}function S(re,Fe){const X=s.getTokenAfter(re);X&&(r.test(X.type)||Fe.test(X.value))&&!c(X)&&!f.has(X)&&a.isTokenOnSameLine(re,X)&&s.isSpaceBetweenTokens(re,X)&&h.report({loc:{start:re.loc.end,end:X.loc.start},messageId:"unexpectedAfter",data:re,fix(I){return I.removeRange([re.range[1],X.range[0]])}})}function x(re={}){const Fe=re.before!==!1,X=re.after!==!1,I={before:Fe?g:d,after:X?E:S},W=re&&re.overrides||{},oe=Object.create(null);for(let ie=0;ie<m.length;++ie){const se=m[ie],de=W[se];if(de){const be="before"in de?de.before:Fe,xe="after"in de?de.after:X;oe[se]={before:be?g:d,after:xe?E:S}}else oe[se]=I}return oe}const T=x(h.options[0]);function C(re,Fe){T[re.value].before(re,Fe||n)}function v(re,Fe){T[re.value].after(re,Fe||o)}function A(re){C(re),v(re)}function b(re){const Fe=re&&s.getFirstToken(re);Fe&&Fe.type==="Keyword"&&A(Fe)}function w(re){const Fe=re&&s.getFirstToken(re);Fe&&Fe.type==="Keyword"&&C(Fe)}function k(re){if(re){const Fe=s.getTokenBefore(re,a.isKeywordToken);A(Fe)}}function R(re){const Fe=re&&s.getFirstToken(re);Fe&&(Fe.type==="Keyword"&&Fe.value==="function"||Fe.value==="async")&&C(Fe)}function F(re){b(re),k(re.superClass)}function L(re){b(re),k(re.alternate)}function P(re){b(re),b(re.handler),k(re.finalizer)}function O(re){b(re),k(re.test)}function q(re){b(re);const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(Fe).type!=="PrivateIdentifier"&&C(Fe),v(Fe)}function N(re){re.await?(C(s.getFirstToken(re,0)),v(s.getFirstToken(re,1))):b(re);const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(Fe).type!=="PrivateIdentifier"&&C(Fe),v(Fe)}function _(re){const Fe=s.getFirstToken(re);if(C(Fe,t),v(Fe,l),re.type==="ExportDefaultDeclaration"&&A(s.getTokenAfter(Fe)),re.type==="ExportAllDeclaration"&&re.exported){const X=s.getTokenBefore(re.exported);C(X,t),v(X,l)}if(re.source){const X=s.getTokenBefore(re.source);C(X,t),v(X,l)}}function G(re){if(re.imported.range[0]!==re.local.range[0]){const Fe=s.getTokenBefore(re.local);C(Fe,t)}}function B(re){if(re.local.range[0]!==re.exported.range[0]){const Fe=s.getTokenBefore(re.exported);C(Fe,t),v(Fe,l)}}function z(re){const Fe=s.getFirstToken(re,1);C(Fe,t)}function H(re){if(re.static&&b(re),re.kind==="get"||re.kind==="set"||(re.method||re.type==="MethodDefinition")&&re.value.async){const Fe=s.getTokenBefore(re.key,X=>{switch(X.value){case"get":case"set":case"async":return!0;default:return!1}});if(!Fe)throw new Error("Failed to find token get, set, or async beside method name");A(Fe)}}function ce(re){C(s.getFirstToken(re))}return{DebuggerStatement:b,WithStatement:b,BreakStatement:b,ContinueStatement:b,ReturnStatement:b,ThrowStatement:b,TryStatement:P,IfStatement:L,SwitchStatement:b,SwitchCase:b,DoWhileStatement:O,ForInStatement:q,ForOfStatement:N,ForStatement:b,WhileStatement:b,ClassDeclaration:F,ExportNamedDeclaration:_,ExportDefaultDeclaration:_,ExportAllDeclaration:_,FunctionDeclaration:R,ImportDeclaration:_,VariableDeclaration:b,ArrowFunctionExpression:R,AwaitExpression:ce,ClassExpression:F,FunctionExpression:R,NewExpression:w,Super:w,ThisExpression:w,UnaryExpression:w,YieldExpression:w,ImportSpecifier:G,ExportSpecifier:B,ImportNamespaceSpecifier:z,MethodDefinition:H,PropertyDefinition:H,StaticBlock:b,Property:H,"BinaryExpression[operator='>']"(re){const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);f.add(Fe)}}}},ho}var go,Zg;function SA(){if(Zg)return go;Zg=1;const a=Ue();return go={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"line-comment-position",url:"https://eslint.style/rules/line-comment-position"}}]},type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const n=e.options[0];let o,t,l=!0;!n||typeof n=="string"?o=!n||n==="above":(o=!n.position||n.position==="above",t=n.ignorePattern,Object.hasOwn(n,"applyDefaultIgnorePatterns")?l=n.applyDefaultIgnorePatterns:l=n.applyDefaultPatterns!==!1);const p=a.COMMENTS_IGNORE_PATTERN,u=/^\s*falls?\s?through/u,r=new RegExp(t,"u"),m=e.sourceCode;return{Program(){m.getAllComments().filter(c=>c.type==="Line").forEach(c=>{if(l&&(p.test(c.value)||u.test(c.value))||t&&r.test(c.value))return;const h=m.getTokenBefore(c,{includeComments:!0}),s=h&&h.loc.end.line===c.loc.start.line;o?s&&e.report({node:c,messageId:"above"}):s||e.report({node:c,messageId:"beside"})})}}}},go}var yo,ey;function bA(){if(ey)return yo;ey=1;const a=Ue();return yo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"linebreak-style",url:"https://eslint.style/rules/linebreak-style"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const n=e.sourceCode;function o(t,l){return function(p){return p.replaceTextRange(t,l)}}return{Program:function(l){const p=e.options[0]||"unix",u=p==="unix",r=u?`
|
|
71
|
+
`)})}}function c(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(a.isOpeningParenToken(n.getLastToken(h,{skip:1}))&&a.isClosingParenToken(n.getLastToken(h))&&h.callee.range[1]<h.range[1]))return null;case"CallExpression":return{leftParen:n.getTokenAfter(h.callee,a.isOpeningParenToken),rightParen:n.getLastToken(h)};case"FunctionDeclaration":case"FunctionExpression":{const s=n.getFirstToken(h,a.isOpeningParenToken),f=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:f}}case"ArrowFunctionExpression":{const s=n.getFirstToken(h,{skip:h.async?1:0});if(!a.isOpeningParenToken(s))return null;const f=h.params.length?n.getTokenAfter(h.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:f}}case"ImportExpression":{const s=n.getFirstToken(h,1),f=n.getLastToken(h);return{leftParen:s,rightParen:f}}default:throw new TypeError(`unexpected node with type ${h.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](h){const s=c(h);let f;h.type==="ImportExpression"?f=[h.source]:a.isFunction(h)?f=h.params:f=h.arguments,s&&(m(s,f),l&&i(s,f))}}}},Yi}var Qi,Og;function nA(){if(Og)return Qi;Og=1;const a={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};return Qi={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"generator-star-spacing",url:"https://eslint.style/rules/generator-star-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:a,anonymous:a,method:a},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const n={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function o(c,h){return c?typeof c=="string"?n[c]:Object.assign({},h,c):h}const t=function(c){const h=o(c,n.before);return{named:o(c.named,h),anonymous:o(c.anonymous,h),method:o(c.method,h)}}(e.options[0]||{}),l=e.sourceCode;function p(c){return c.value==="*"&&c.type==="Punctuator"}function u(c){return l.getFirstToken(c.parent.method||c.parent.type==="MethodDefinition"?c.parent:c,p)}function r(c){return c[0].toUpperCase()+c.slice(1)}function m(c,h,s,f){if(!!(f.range[0]-s.range[1])!==t[c][h]){const g=s.value==="*",d=t[c][h],E=g?s:f,S=`${d?"missing":"unexpected"}${r(h)}`;e.report({node:E,messageId:S,fix(x){return d?g?x.insertTextAfter(E," "):x.insertTextBefore(E," "):x.removeRange([s.range[1],f.range[0]])}})}}function i(c){if(!c.generator)return;const h=u(c),s=l.getTokenBefore(h),f=l.getTokenAfter(h);let g="named";c.parent.type==="MethodDefinition"||c.parent.type==="Property"&&c.parent.method?g="method":c.id||(g="anonymous"),g==="method"&&h===l.getFirstToken(c.parent)||m(g,"before",s,h),m(g,"after",h,f)}return{FunctionDeclaration:i,FunctionExpression:i}}},Qi}var Zi,Ng;function sA(){if(Ng)return Zi;Ng=1;const a=Ue(),e=/^(?:Arrow)?FunctionExpression$/u;function n(o){for(const t of o)if(t.reachable)return!0;return!1}return Zi={meta:{type:"problem",defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/latest/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(o){const[{allowImplicit:t}]=o.options,l=o.sourceCode;let p={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function u(m){p.shouldCheck&&n(p.currentSegments)&&o.report({node:m,loc:a.getFunctionHeadLoc(m,l),messageId:p.hasReturn?"expectedAlways":"expected",data:{name:a.getFunctionNameWithKind(p.node)}})}function r(m){const i=m.parent;if(e.test(m.type)&&m.body.type==="BlockStatement"){if(i.kind==="get")return!0;if(i.type==="Property"&&a.getStaticPropertyName(i)==="get"&&i.parent.type==="ObjectExpression"){if(i.parent.parent.type==="CallExpression"){const c=i.parent.parent.callee;if(a.isSpecificMemberAccess(c,"Object","defineProperty")||a.isSpecificMemberAccess(c,"Reflect","defineProperty"))return!0}if(i.parent.parent.type==="Property"&&i.parent.parent.parent.type==="ObjectExpression"&&i.parent.parent.parent.parent.type==="CallExpression"){const c=i.parent.parent.parent.parent.callee;return a.isSpecificMemberAccess(c,"Object","defineProperties")||a.isSpecificMemberAccess(c,"Object","create")}}}return!1}return{onCodePathStart(m,i){p={upper:p,codePath:m,hasReturn:!1,shouldCheck:r(i),node:i,currentSegments:new Set}},onCodePathEnd(){p=p.upper},onUnreachableCodePathSegmentStart(m){p.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){p.currentSegments.delete(m)},onCodePathSegmentStart(m){p.currentSegments.add(m)},onCodePathSegmentEnd(m){p.currentSegments.delete(m)},ReturnStatement(m){p.shouldCheck&&(p.hasReturn=!0,!t&&!m.argument&&o.report({node:m,messageId:"expected",data:{name:a.getFunctionNameWithKind(p.node)}}))},"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Zi}var eo,Mg;function aA(){if(Mg)return eo;Mg=1;const a=new Set(["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"]);function e(o,t){const l=o.references.filter(p=>p.identifier.range[0]===t.range[0]&&p.identifier.range[1]===t.range[1]);return l.length===1?l[0]:null}function n(o,t){const l=e(o,t);return l&&l.resolved&&l.resolved.defs.length>0}return eo={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"global-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md"}}]},type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(o){const t=o.sourceCode;return{CallExpression(l){const p=t.getScope(l);l.callee.name==="require"&&!n(p,l.callee)&&(t.getAncestors(l).every(r=>a.has(r.type))||o.report({node:l,messageId:"unexpected"}))}}}},eo}var to,jg;function iA(){if(jg)return to;jg=1;const a=Ue();function e(t,l){if(t.length!==l.length)return!1;for(let p=0;p<t.length;p++){const u=t[p],r=l[p];if(u.type!==r.type||u.value!==r.value)return!1}return!0}function n(t,l){return typeof t=="string"&&typeof l=="string"?t===l:Array.isArray(t)&&Array.isArray(l)?e(t,l):!1}function o(t){return t.kind==="get"||t.kind==="set"}return to={meta:{type:"suggestion",defaultOptions:["anyOrder",{enforceForTSTypes:!1}],docs:{description:"Require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]},{type:"object",properties:{enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(t){const[l,{enforceForTSTypes:p}]=t.options,{sourceCode:u}=t;function r(i,c,h){t.report({node:h,messageId:i,loc:a.getFunctionHeadLoc(h.type!=="TSMethodSignature"?h.value:h,u),data:{formerName:a.getFunctionNameWithKind(c.type!=="TSMethodSignature"?c.value:c),latterName:a.getFunctionNameWithKind(h.type!=="TSMethodSignature"?h.value:h)}})}function m(i,c){const h=[];let s=!1;for(let f=0;f<i.length;f++){const g=i[f];if(c(g)&&o(g)){const d=a.getStaticPropertyName(g),E=d!==null?d:u.getTokens(g.key);for(let S=0;S<h.length;S++){const x=h[S];if(n(x.key,E)){x.getters.push(...g.kind==="get"?[g]:[]),x.setters.push(...g.kind==="set"?[g]:[]),s=!0;break}}s||h.push({key:E,getters:g.kind==="get"?[g]:[],setters:g.kind==="set"?[g]:[]}),s=!1}}for(const{getters:f,setters:g}of h)if(f.length===1&&g.length===1){const[d]=f,[E]=g,S=i.indexOf(d),x=i.indexOf(E),T=S<x?d:E,C=S<x?E:d;Math.abs(S-x)>1?r("notGrouped",T,C):(l==="getBeforeSet"&&S>x||l==="setBeforeGet"&&S<x)&&r("invalidOrder",T,C)}}return{ObjectExpression(i){m(i.properties,c=>c.type==="Property")},ClassBody(i){m(i.body,c=>c.type==="MethodDefinition"&&!c.static),m(i.body,c=>c.type==="MethodDefinition"&&c.static)},"TSTypeLiteral, TSInterfaceBody"(i){p&&m(i.type==="TSTypeLiteral"?i.members:i.body,c=>c.type==="TSMethodSignature")}}}},to}var ro,Ug;function oA(){return Ug||(Ug=1,ro={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(a){return{ForInStatement(e){const n=e.body;if(n.type!=="EmptyStatement"&&n.type!=="IfStatement"&&!(n.type==="BlockStatement"&&n.body.length===0)&&!(n.type==="BlockStatement"&&n.body.length===1&&n.body[0].type==="IfStatement")){if(n.type==="BlockStatement"&&n.body.length>=1&&n.body[0].type==="IfStatement"){const o=n.body[0];if(o.consequent.type==="ContinueStatement"||o.consequent.type==="BlockStatement"&&o.consequent.body.length===1&&o.consequent.body[0].type==="ContinueStatement")return}a.report({node:e,messageId:"wrap"})}}}}}),ro}var no,qg;function lA(){return qg||(qg=1,no={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"handle-callback-err",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md"}}]},type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(a){const e=a.options[0]||"err",n=a.sourceCode;function o(u){return u[0]==="^"}function t(u){return o(e)?new RegExp(e,"u").test(u):u===e}function l(u){return u.variables.filter(r=>r.defs[0]&&r.defs[0].type==="Parameter")}function p(u){const r=n.getScope(u),m=l(r),i=m[0];i&&t(i.name)&&i.references.length===0&&a.report({node:u,messageId:"expected"})}return{FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p}}}),no}var so,Vg;function uA(){if(Vg)return so;Vg=1;function a(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function e(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function n(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.value!==t&&l.key===t}function o(t){const l=t.parent;return l.type==="Property"&&l.parent.type==="ObjectExpression"&&l.shorthand}return so={meta:{deprecated:{message:"The rule was renamed.",url:"https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist",deprecatedSince:"7.5.0",availableUntil:null,replacedBy:[{rule:{name:"id-denylist",url:"https://eslint.org/docs/rules/id-denylist"}}]},type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(t){const l=new Set(t.options),p=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const f=r.set.get(s.name);return f&&f.defs.length===0&&f.references.some(g=>g.identifier===s)}function c(s){const f=s.parent;return f.type==="MemberExpression"&&f.property===s&&!f.computed?a(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(s)&&!n(s)&&!(i(s)&&!o(s))}function h(s){p.has(s.range.toString())||(t.report({node:s,messageId:"restricted",data:{name:s.name}}),p.add(s.range.toString()))}return{Program(s){r=u.getScope(s)},Identifier(s){m(s.name)&&c(s)&&h(s)}}}},so}var ao,$g;function cA(){if($g)return ao;$g=1;const a=Ue();function e(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function n(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function o(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.key===t}return ao={meta:{type:"suggestion",defaultOptions:[],docs:{description:"Disallow specified identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(t){const l=new Set(t.options),p=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const f=r.set.get(s.name);return f&&f.defs.length===0&&f.references.some(g=>g.identifier===s)}function c(s){if(a.isImportAttributeKey(s))return!1;const f=s.parent;return f.type==="MemberExpression"&&f.property===s&&!f.computed?e(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!n(s)&&!o(s)&&!i(s)}function h(s){if(!p.has(s.range.toString())){const f=s.type==="PrivateIdentifier";t.report({node:s,messageId:f?"restrictedPrivate":"restricted",data:{name:s.name}}),p.add(s.range.toString())}}return{Program(s){r=u.getScope(s)},[["Identifier","PrivateIdentifier"]](s){m(s.name)&&c(s)&&h(s)}}}},ao}var io,Wg;function fA(){if(Wg)return io;Wg=1;const{getGraphemeCount:a}=Ir(),{getModuleExportName:e,isImportAttributeKey:n}=Ue();return io={meta:{type:"suggestion",defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:"always"}],docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer"},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name #'{{name}}' is too long (> {{max}})."}},create(o){const[t]=o.options,{max:l=1/0,min:p}=t,u=t.properties!=="never",r=new Set(t.exceptions),m=t.exceptionPatterns.map(s=>new RegExp(s,"u")),i=new Set;function c(s){return m.some(f=>f.test(s))}const h={MemberExpression:u&&function(s){return!s.computed&&(s.parent.left===s&&s.parent.type==="AssignmentExpression"||s.parent.type==="Property"&&s.parent.value===s&&s.parent.parent.type==="ObjectPattern"&&s.parent.parent.parent.left===s.parent.parent)},AssignmentPattern(s,f){return s.left===f},VariableDeclarator(s,f){return s.id===f},Property(s,f){if(s.parent.type==="ObjectPattern"){const g=s.value.name===s.key.name;return!g&&s.value===f||g&&s.key===f&&u}return u&&!n(f)&&!s.computed&&s.key.name===f.name},ImportSpecifier(s,f){return s.local===f&&e(s.imported)!==e(s.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](s){const f=s.name,g=s.parent,d=a(f),E=d<p,S=d>l;if(!(E||S)||r.has(f)||c(f))return;const x=h[g.type];if(x&&!i.has(s.range.toString())&&(x===!0||x(g,s))){i.add(s.range.toString());let T=E?"tooShort":"tooLong";s.type==="PrivateIdentifier"&&(T+="Private"),o.report({node:s,messageId:T,data:{name:f,min:p,max:l}})}}}}},io}var oo,Gg;function pA(){if(Gg)return oo;Gg=1;const a=Ue();return oo={meta:{type:"suggestion",defaultOptions:["^.+$",{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean"},classFields:{type:"boolean"},onlyDeclarations:{type:"boolean"},ignoreDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const[n,{classFields:o,ignoreDestructuring:t,onlyDeclarations:l,properties:p}]=e.options,u=new RegExp(n,"u"),r=e.sourceCode;let m;const i=new Set,c=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),s=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function f(x){const T=m.set.get(x.name);return T&&T.defs.length===0&&T.references.some(C=>C.identifier===x)}function g(x){return!u.test(x)}function d(x){let{parent:T}=x;for(;T;){if(T.type==="ObjectPattern")return!0;T=T.parent}return!1}function E(x,T){return(!l||h.has(x.type))&&!c.has(x.type)&&g(T)}function S(x){if(!i.has(x.range.toString())){const T=x.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";e.report({node:x,messageId:T,data:{name:x.name,pattern:n}}),i.add(x.range.toString())}}return{Program(x){m=r.getScope(x)},Identifier(x){const T=x.name,C=x.parent,v=C.type==="MemberExpression"?C.parent:C;if(!(f(x)||a.isImportAttributeKey(x)))if(C.type==="MemberExpression"){if(!p)return;C.object.type==="Identifier"&&C.object.name===T||v.type==="AssignmentExpression"&&v.left.type==="MemberExpression"&&v.left.property.name===x.name?g(T)&&S(x):v.type==="AssignmentExpression"&&v.right.type!=="MemberExpression"&&g(T)&&S(x)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===x&&!C.computed)p&&g(T)&&S(x);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!t&&C.shorthand&&C.value.left&&g(T)&&S(x);const A=C.key.name===C.value.name;if(!A&&C.key===x)return;C.value.name&&g(T)&&!(A&&t)&&S(x)}if(!p&&!C.computed||t&&d(x))return;C.right!==x&&E(v,T)&&S(x)}else s.has(C.type)?C.local&&C.local.name===x.name&&g(T)&&S(x):C.type==="PropertyDefinition"?o&&g(T)&&S(x):E(v,T)&&S(x)},PrivateIdentifier(x){x.parent.type==="PropertyDefinition"&&!o||g(x.name)&&S(x)}}}},oo}var lo,zg;function mA(){if(zg)return lo;zg=1;const{isCommentToken:a,isNotOpeningParenToken:e}=Ue();return lo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"implicit-arrow-linebreak",url:"https://eslint.style/rules/implicit-arrow-linebreak"}}]},type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(n){const o=n.sourceCode,t=n.options[0]||"beside";function l(p){if(p.body.type==="BlockStatement")return;const u=o.getTokenBefore(p.body,e),r=o.getTokenAfter(u);u.loc.end.line===r.loc.start.line&&t==="below"?n.report({node:r,messageId:"expected",fix:m=>m.insertTextBefore(r,`
|
|
72
|
+
`)}):u.loc.end.line!==r.loc.start.line&&t==="beside"&&n.report({node:r,messageId:"unexpected",fix(m){return o.getFirstTokenBetween(u,r,{includeComments:!0,filter:a})?null:m.replaceTextRange([u.range[1],r.range[0]]," ")}})}return{ArrowFunctionExpression:p=>l(p)}}},lo}var uo,Hg;function hA(){if(Hg)return uo;Hg=1;const a=Ue(),e=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class n{constructor(u){this._values=Array(u+1)}insert(u,r){this._values[u]=r}findLastNotAfter(u){const r=this._values;for(let m=u;m>=0;m--){const i=r[m];if(i)return i}}deleteRange(u,r){this._values.fill(void 0,u,r)}}class o{constructor(u){this.sourceCode=u,this.firstTokensByLineNumber=new Map;const r=u.tokensAndComments;for(let m=0;m<r.length;m++){const i=r[m];this.firstTokensByLineNumber.has(i.loc.start.line)||this.firstTokensByLineNumber.set(i.loc.start.line,i),!this.firstTokensByLineNumber.has(i.loc.end.line)&&u.text.slice(i.range[1]-i.loc.end.column,i.range[1]).trim()&&this.firstTokensByLineNumber.set(i.loc.end.line,i)}}getFirstTokenOfLine(u){return this.firstTokensByLineNumber.get(u.loc.start.line)}isFirstTokenOfLine(u){return this.getFirstTokenOfLine(u)===u}getTokenIndent(u){return this.sourceCode.text.slice(u.range[0]-u.loc.start.column,u.range[0])}}class t{constructor(u,r,m,i){this._tokenInfo=u,this._indentSize=r,this._indentType=m,this._indexMap=new n(i),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(u){return this._indexMap.findLastNotAfter(u.range[0])}matchOffsetOf(u,r){this._lockedFirstTokens.set(r,u)}setDesiredOffset(u,r,m){return this.setDesiredOffsets(u.range,r,m)}setDesiredOffsets(u,r,m,i){const c={offset:m,from:r,force:i},h=this._indexMap.findLastNotAfter(u[1]),s=r&&r.range[0]>=u[0]&&r.range[1]<=u[1],f=s&&this._getOffsetDescriptor(r);this._indexMap.deleteRange(u[0]+1,u[1]),this._indexMap.insert(u[0],c),s&&(this._indexMap.insert(r.range[0],f),this._indexMap.insert(r.range[1],c)),this._indexMap.insert(u[1],h)}getDesiredIndent(u){if(!this._desiredIndentCache.has(u))if(this._ignoredTokens.has(u))this._desiredIndentCache.set(u,this._tokenInfo.getTokenIndent(u));else if(this._lockedFirstTokens.has(u)){const r=this._lockedFirstTokens.get(u);this._desiredIndentCache.set(u,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{const r=this._getOffsetDescriptor(u),m=r.from&&r.from.loc.start.line===u.loc.start.line&&!/^\s*?\n/u.test(u.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(u,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(m))}return this._desiredIndentCache.get(u)}ignoreToken(u){this._tokenInfo.isFirstTokenOfLine(u)&&this._ignoredTokens.add(u)}getFirstDependency(u){return this._getOffsetDescriptor(u).from}}const l={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return uo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[l,{type:"object",properties:{var:l,let:l,const:l},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:l},additionalProperties:!1},ArrayExpression:l,ObjectExpression:l,ImportDeclaration:l,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(p){let i="space",c=4;const h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};p.options.length&&(p.options[0]==="tab"?(c=1,i="tab"):(c=p.options[0],i="space"),p.options[1]&&(Object.assign(h,p.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));const s=p.sourceCode,f=new o(s),g=new t(f,c,i==="space"?" ":" ",s.text.length),d=new WeakSet;function E(B,z,H){const ce=`${B} ${i}${B===1?"":"s"}`,re=`space${z===1?"":"s"}`,Fe=`tab${H===1?"":"s"}`;let X;return z>0?X=i==="space"?z:`${z} ${re}`:H>0?X=i==="tab"?H:`${H} ${Fe}`:X="0",{expected:ce,actual:X}}function S(B,z){const H=Array.from(f.getTokenIndent(B)),ce=H.filter(Fe=>Fe===" ").length,re=H.filter(Fe=>Fe===" ").length;p.report({node:B,messageId:"wrongIndentation",data:E(z.length,ce,re),loc:{start:{line:B.loc.start.line,column:0},end:{line:B.loc.start.line,column:B.loc.start.column}},fix(Fe){const X=[B.range[0]-B.loc.start.column,B.range[0]],I=z;return Fe.replaceTextRange(X,I)}})}function x(B,z){const H=f.getTokenIndent(B);return H===z||H.includes(" ")&&H.includes(" ")}function T(B){if(!B.parent||B.parent.type!=="CallExpression"||B.parent.callee!==B)return!1;let z=B.parent&&B.parent.parent;for(;z.type==="UnaryExpression"&&["!","~","+","-"].includes(z.operator)||z.type==="AssignmentExpression"||z.type==="LogicalExpression"||z.type==="SequenceExpression"||z.type==="VariableDeclarator";)z=z.parent;return(z.type==="ExpressionStatement"||z.type==="VariableDeclaration")&&z.parent.type==="Program"}function C(B){const H=B.match(/\s*$/u)[0].match(a.createGlobalLinebreakMatcher());return H===null?0:H.length}function v(B,z,H,ce){function re(Fe){let X=s.getTokenBefore(Fe);for(;a.isOpeningParenToken(X)&&X!==z;)X=s.getTokenBefore(X);return s.getTokenAfter(X)}g.setDesiredOffsets([z.range[1],H.range[0]],z,typeof ce=="number"?ce:1),g.setDesiredOffset(H,z,0),!(ce==="first"&&B.length&&!B[0])&&B.forEach((Fe,X)=>{if(Fe&&(ce==="off"&&g.ignoreToken(re(Fe)),X!==0))if(ce==="first"&&f.isFirstTokenOfLine(re(Fe)))g.matchOffsetOf(re(B[0]),re(Fe));else{const I=B[X-1],W=I&&re(I),oe=I&&s.getLastToken(I);I&&oe.loc.end.line-C(oe.value)>z.loc.end.line&&g.setDesiredOffsets([I.range[1],Fe.range[1]],W,0)}})}function A(B){if(B.type!=="BlockStatement"){const z=s.getTokenBefore(B,a.isNotOpeningParenToken);let H=s.getFirstToken(B),ce=s.getLastToken(B);for(;a.isOpeningParenToken(s.getTokenBefore(H))&&a.isClosingParenToken(s.getTokenAfter(ce));)H=s.getTokenBefore(H),ce=s.getTokenAfter(ce);g.setDesiredOffsets([H.range[0],ce.range[1]],z,1)}}function b(B){let z;B.arguments.length?z=s.getFirstTokenBetween(B.callee,B.arguments[0],a.isOpeningParenToken):z=s.getLastToken(B,1);const H=s.getLastToken(B);if(d.add(z),d.add(H),B.optional){const Fe=s.getTokenAfter(B.callee,a.isQuestionDotToken),X=s.getTokensBetween(B.callee,Fe,{filter:a.isClosingParenToken}).length,I=X?s.getTokenBefore(B.callee,{skip:X-1}):s.getFirstToken(B.callee),W=s.getTokenBefore(Fe),oe=W.loc.end.line===z.loc.start.line?W:I;g.setDesiredOffset(Fe,oe,1)}const ce=B.callee.type==="TaggedTemplateExpression"?s.getFirstToken(B.callee.quasi):z,re=s.getTokenBefore(ce);g.setDesiredOffset(z,re,0),v(B.arguments,z,H,h.CallExpression.arguments)}function w(B){const z=[],H=[];for(let ce=0;ce<B.length;ce++){const re=B[ce];a.isOpeningParenToken(re)?z.push(re):a.isClosingParenToken(re)&&H.push({left:z.pop(),right:re})}for(let ce=H.length-1;ce>=0;ce--){const re=H[ce].left,Fe=H[ce].right;if(!d.has(re)&&!d.has(Fe)){const X=new Set(s.getTokensBetween(re,Fe));X.forEach(I=>{X.has(g.getFirstDependency(I))||g.setDesiredOffset(I,re,1)})}g.setDesiredOffset(Fe,re,0)}}function k(B){const z=new Set(s.getTokens(B,{includeComments:!0}));z.forEach(H=>{if(!z.has(g.getFirstDependency(H))){const ce=f.getFirstTokenOfLine(H);H===ce?g.ignoreToken(H):g.setDesiredOffset(H,ce,0)}})}function R(B,z){let H=z;for(;H.parent&&!H.parent.type.endsWith("Statement")&&!H.parent.type.endsWith("Declaration");)H=H.parent;return H=H.parent,!H||H.loc.start.line===B.loc.start.line}function F(B,z){const H=B.loc.end.line,ce=z.loc.start.line;if(H===ce||H===ce-1)return!1;for(let re=H+1;re<ce;++re)if(!f.firstTokensByLineNumber.has(re))return!0;return!1}const L=new Set,P={"ArrayExpression, ArrayPattern"(B){const z=s.getFirstToken(B),H=s.getTokenAfter([...B.elements].reverse().find(ce=>ce)||z,a.isClosingBracketToken);v(B.elements,z,H,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(B){const z=s.getFirstToken(B),H=s.getTokenAfter(B.properties.length?B.properties.at(-1):z,a.isClosingBraceToken);v(B.properties,z,H,h.ObjectExpression)},ArrowFunctionExpression(B){const z=s.getFirstToken(B,{skip:B.async?1:0});if(a.isOpeningParenToken(z)){const H=z,ce=s.getTokenBefore(B.body,a.isClosingParenToken);d.add(H),d.add(ce),v(B.params,H,ce,h.FunctionExpression.parameters)}A(B.body)},AssignmentExpression(B){const z=s.getFirstTokenBetween(B.left,B.right,H=>H.value===B.operator);g.setDesiredOffsets([z.range[0],B.range[1]],s.getLastToken(B.left),1),g.ignoreToken(z),g.ignoreToken(s.getTokenAfter(z))},"BinaryExpression, LogicalExpression"(B){const z=s.getFirstTokenBetween(B.left,B.right,ce=>ce.value===B.operator),H=s.getTokenAfter(z);g.ignoreToken(z),g.ignoreToken(H),g.setDesiredOffset(H,z,0)},"BlockStatement, ClassBody"(B){let z;B.parent&&T(B.parent)?z=h.outerIIFEBody:B.parent&&(B.parent.type==="FunctionExpression"||B.parent.type==="ArrowFunctionExpression")?z=h.FunctionExpression.body:B.parent&&B.parent.type==="FunctionDeclaration"?z=h.FunctionDeclaration.body:z=1,a.STATEMENT_LIST_PARENTS.has(B.parent.type)||g.setDesiredOffset(s.getFirstToken(B),s.getFirstToken(B.parent),0),v(B.body,s.getFirstToken(B),s.getLastToken(B),z)},CallExpression:b,"ClassDeclaration[superClass], ClassExpression[superClass]"(B){const z=s.getFirstToken(B),H=s.getTokenBefore(B.superClass,a.isNotOpeningParenToken);g.setDesiredOffsets([H.range[0],B.body.range[0]],z,1)},ConditionalExpression(B){const z=s.getFirstToken(B);if(!h.flatTernaryExpressions||!a.isTokenOnSameLine(B.test,B.consequent)||R(z,B)){const H=s.getFirstTokenBetween(B.test,B.consequent,I=>I.type==="Punctuator"&&I.value==="?"),ce=s.getFirstTokenBetween(B.consequent,B.alternate,I=>I.type==="Punctuator"&&I.value===":"),re=s.getTokenAfter(H),Fe=s.getTokenBefore(ce),X=s.getTokenAfter(ce);g.setDesiredOffset(H,z,1),g.setDesiredOffset(ce,z,1),g.setDesiredOffset(re,z,re.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),Fe.loc.end.line===X.loc.start.line?g.setDesiredOffset(X,re,0):g.setDesiredOffset(X,z,X.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":B=>A(B.body),ExportNamedDeclaration(B){if(B.declaration===null){const z=s.getLastToken(B,a.isClosingBraceToken);v(B.specifiers,s.getFirstToken(B,{skip:1}),z,1),B.source&&g.setDesiredOffsets([z.range[1],B.range[1]],s.getFirstToken(B),1)}},ForStatement(B){const z=s.getFirstToken(B,1);B.init&&g.setDesiredOffsets(B.init.range,z,1),B.test&&g.setDesiredOffsets(B.test.range,z,1),B.update&&g.setDesiredOffsets(B.update.range,z,1),A(B.body)},"FunctionDeclaration, FunctionExpression"(B){const z=s.getTokenBefore(B.body),H=s.getTokenBefore(B.params.length?B.params[0]:z);d.add(H),d.add(z),v(B.params,H,z,h[B.type].parameters)},IfStatement(B){A(B.consequent),B.alternate&&A(B.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(B){let z;B.type==="IfStatement"?(z=[B.consequent],B.alternate&&z.push(B.alternate)):z=[B.body];for(const H of z){const ce=s.getLastToken(H);if(a.isSemicolonToken(ce)){const re=s.getTokenBefore(ce),Fe=s.getTokenAfter(ce);!a.isTokenOnSameLine(re,ce)&&Fe&&a.isTokenOnSameLine(ce,Fe)&&g.setDesiredOffset(ce,s.getFirstToken(B),0)}}},ImportDeclaration(B){if(B.specifiers.some(re=>re.type==="ImportSpecifier")){const re=s.getFirstToken(B,a.isOpeningBraceToken),Fe=s.getLastToken(B,a.isClosingBraceToken);v(B.specifiers.filter(X=>X.type==="ImportSpecifier"),re,Fe,h.ImportDeclaration)}const z=s.getLastToken(B,re=>re.type==="Identifier"&&re.value==="from"),H=s.getLastToken(B,re=>re.type==="String"),ce=s.getLastToken(B,re=>re.type==="Punctuator"&&re.value===";");if(z){const re=ce&&ce.range[1]===H.range[1]?B.range[1]:H.range[1];g.setDesiredOffsets([z.range[0],re],s.getFirstToken(B),1)}},ImportExpression(B){const z=s.getFirstToken(B,1),H=s.getLastToken(B);d.add(z),d.add(H),g.setDesiredOffset(z,s.getTokenBefore(z),0),v([B.source],z,H,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(B){const z=B.type==="MetaProperty"?B.meta:B.object,H=s.getFirstTokenBetween(z,B.property,a.isNotClosingParenToken),ce=s.getTokenAfter(H),re=s.getTokensBetween(z,B.property,{filter:a.isClosingParenToken}).length,Fe=re?s.getTokenBefore(z,{skip:re-1}):s.getFirstToken(z),X=s.getTokenBefore(H),I=B.computed?H:ce;B.computed&&(g.setDesiredOffset(s.getLastToken(B),H,0),g.setDesiredOffsets(B.property.range,H,1));const W=X.loc.end.line===I.loc.start.line?X:Fe;typeof h.MemberExpression=="number"?(g.setDesiredOffset(H,W,h.MemberExpression),g.setDesiredOffset(ce,B.computed?H:W,h.MemberExpression)):(g.ignoreToken(H),g.ignoreToken(ce),g.setDesiredOffset(H,W,0),g.setDesiredOffset(ce,H,0))},NewExpression(B){(B.arguments.length>0||a.isClosingParenToken(s.getLastToken(B))&&a.isOpeningParenToken(s.getLastToken(B,1)))&&b(B)},Property(B){if(!B.shorthand&&!B.method&&B.kind==="init"){const z=s.getFirstTokenBetween(B.key,B.value,a.isColonToken);g.ignoreToken(s.getTokenAfter(z))}},PropertyDefinition(B){const z=s.getFirstToken(B),H=s.getLastToken(B);let ce;if(B.computed){const re=s.getTokenBefore(B.key,a.isOpeningBracketToken),Fe=ce=s.getTokenAfter(B.key,a.isClosingBracketToken),X=[re.range[1],Fe.range[0]];re!==z&&g.setDesiredOffset(re,z,0),g.setDesiredOffsets(X,re,1),g.setDesiredOffset(Fe,re,0)}else{const re=ce=s.getFirstToken(B.key);re!==z&&g.setDesiredOffset(re,z,1)}if(B.value){const re=s.getTokenBefore(B.value,a.isEqToken),Fe=s.getTokenAfter(re);g.setDesiredOffset(re,ce,1),g.setDesiredOffset(Fe,re,1),a.isSemicolonToken(H)&&g.setDesiredOffset(H,re,1)}else a.isSemicolonToken(H)&&g.setDesiredOffset(H,ce,1)},StaticBlock(B){const z=s.getFirstToken(B,{skip:1}),H=s.getLastToken(B);v(B.body,z,H,h.StaticBlock.body)},SwitchStatement(B){const z=s.getTokenAfter(B.discriminant,a.isOpeningBraceToken),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,h.SwitchCase),B.cases.length&&s.getTokensBetween(B.cases.at(-1),H,{includeComments:!0,filter:a.isCommentToken}).forEach(ce=>g.ignoreToken(ce))},SwitchCase(B){if(!(B.consequent.length===1&&B.consequent[0].type==="BlockStatement")){const z=s.getFirstToken(B),H=s.getTokenAfter(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)}},TemplateLiteral(B){B.expressions.forEach((z,H)=>{const ce=B.quasis[H],re=B.quasis[H+1],Fe=ce.loc.start.line===ce.loc.end.line?s.getFirstToken(ce):null;g.setDesiredOffsets([ce.range[1],re.range[0]],Fe,1),g.setDesiredOffset(s.getFirstToken(re),Fe,0)})},VariableDeclaration(B){let z=Object.hasOwn(h.VariableDeclarator,B.kind)?h.VariableDeclarator[B.kind]:1;const H=s.getFirstToken(B),ce=s.getLastToken(B);if(h.VariableDeclarator[B.kind]==="first"){if(B.declarations.length>1){v(B.declarations,H,ce,"first");return}z=1}B.declarations.at(-1).loc.start.line>B.loc.start.line?g.setDesiredOffsets(B.range,H,z,!0):g.setDesiredOffsets(B.range,H,z),a.isSemicolonToken(ce)&&g.ignoreToken(ce)},VariableDeclarator(B){if(B.init){const z=s.getTokenBefore(B.init,a.isNotOpeningParenToken),H=s.getTokenAfter(z);g.ignoreToken(z),g.ignoreToken(H),g.setDesiredOffsets([H.range[0],B.range[1]],z,1),g.setDesiredOffset(z,s.getLastToken(B.id),0)}},"JSXAttribute[value]"(B){const z=s.getFirstTokenBetween(B.name,B.value,H=>H.type==="Punctuator"&&H.value==="=");g.setDesiredOffsets([z.range[0],B.value.range[1]],s.getFirstToken(B.name),1)},JSXElement(B){B.closingElement&&v(B.children,s.getFirstToken(B.openingElement),s.getFirstToken(B.closingElement),1)},JSXOpeningElement(B){const z=s.getFirstToken(B);let H;B.selfClosing?(H=s.getLastToken(B,{skip:1}),g.setDesiredOffset(s.getLastToken(B),H,0)):H=s.getLastToken(B),g.setDesiredOffsets(B.name.range,s.getFirstToken(B)),v(B.attributes,z,H,1)},JSXClosingElement(B){const z=s.getFirstToken(B);g.setDesiredOffsets(B.name.range,z,1)},JSXFragment(B){const z=s.getFirstToken(B.openingFragment),H=s.getFirstToken(B.closingFragment);v(B.children,z,H,1)},JSXOpeningFragment(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets(B.range,z,1),g.matchOffsetOf(z,H)},JSXClosingFragment(B){const z=s.getFirstToken(B),H=s.getLastToken(B,{skip:1}),ce=s.getLastToken(B),re=a.isTokenOnSameLine(H,ce)?H:ce;g.setDesiredOffsets(B.range,z,1),g.matchOffsetOf(z,re)},JSXExpressionContainer(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)},JSXSpreadAttribute(B){const z=s.getFirstToken(B),H=s.getLastToken(B);g.setDesiredOffsets([z.range[1],H.range[0]],z,1)},"*"(B){const z=s.getFirstToken(B);z&&!L.has(z)&&g.setDesiredOffsets(B.range,z,0)}},O=[],q={};for(const[B,z]of Object.entries(P))q[B]=H=>O.push({listener:z,node:H});const N=new Set;function _(B){N.add(B),L.add(s.getFirstToken(B))}const G=h.ignoredNodes.reduce((B,z)=>Object.assign(B,{[z]:_}),{});return Object.assign(q,G,{"*:exit"(B){e.has(B.type)||_(B)},"Program:exit"(){h.ignoreComments&&s.getAllComments().forEach(z=>g.ignoreToken(z));for(let z=0;z<O.length;z++){const H=O[z];N.has(H.node)||H.listener(H.node)}N.forEach(k),w(s.ast.tokens);const B=new WeakMap;for(let z=0;z<s.ast.comments.length;z++){const H=s.ast.comments[z],ce=s.getTokenBefore(H,{includeComments:!0}),re=B.has(ce)?B.get(ce):ce;B.set(H,re)}for(let z=1;z<s.lines.length+1;z++){if(!f.firstTokensByLineNumber.has(z))continue;const H=f.firstTokensByLineNumber.get(z);if(H.loc.start.line===z){if(a.isCommentToken(H)){const ce=B.get(H),re=ce?s.getTokenAfter(ce):s.ast.tokens[0],Fe=ce&&!F(ce,H),X=re&&!F(H,re);if(re&&a.isSemicolonToken(re)&&!a.isTokenOnSameLine(H,re)&&g.setDesiredOffset(H,re,0),Fe&&x(H,g.getDesiredIndent(ce))||X&&x(H,g.getDesiredIndent(re)))continue}x(H,g.getDesiredIndent(H))||S(H,g.getDesiredIndent(H))}}}})}},uo}var co,Kg;function dA(){if(Kg)return co;Kg=1;const a=Ue();return co={meta:{type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent-legacy"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"4.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let l="space",p=4;const u={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},r=e.sourceCode;if(e.options.length&&(e.options[0]==="tab"?(p=1,l="tab"):typeof e.options[0]=="number"&&(p=e.options[0],l="space"),e.options[1])){const _=e.options[1];u.SwitchCase=_.SwitchCase||0;const G=_.VariableDeclarator;typeof G=="number"?u.VariableDeclarator={var:G,let:G,const:G}:typeof G=="object"&&Object.assign(u.VariableDeclarator,G),typeof _.outerIIFEBody=="number"&&(u.outerIIFEBody=_.outerIIFEBody),typeof _.MemberExpression=="number"&&(u.MemberExpression=_.MemberExpression),typeof _.FunctionDeclaration=="object"&&Object.assign(u.FunctionDeclaration,_.FunctionDeclaration),typeof _.FunctionExpression=="object"&&Object.assign(u.FunctionExpression,_.FunctionExpression),typeof _.CallExpression=="object"&&Object.assign(u.CallExpression,_.CallExpression),(typeof _.ArrayExpression=="number"||typeof _.ArrayExpression=="string")&&(u.ArrayExpression=_.ArrayExpression),(typeof _.ObjectExpression=="number"||typeof _.ObjectExpression=="string")&&(u.ObjectExpression=_.ObjectExpression)}const m={};function i(_,G,B){const z=`${_} ${l}${_===1?"":"s"}`,H=`space${G===1?"":"s"}`,ce=`tab${B===1?"":"s"}`;let re;return G>0&&B>0?re=`${G} ${H} and ${B} ${ce}`:G>0?re=l==="space"?G:`${G} ${H}`:B>0?re=l==="tab"?B:`${B} ${ce}`:re="0",{expected:z,actual:re}}function c(_,G,B,z,H,ce){if(B&&z)return;const re=(l==="space"?" ":" ").repeat(G),Fe=ce?[_.range[1]-_.loc.end.column,_.range[1]-_.loc.end.column+B+z]:[_.range[0]-_.loc.start.column,_.range[0]-_.loc.start.column+B+z];e.report({node:_,loc:H,messageId:"expected",data:i(G,B,z),fix:X=>X.replaceTextRange(Fe,re)})}function h(_,G){const B=G?r.getLastToken(_):r.getFirstToken(_),z=r.getText(B,B.loc.start.column).split(""),H=z.slice(0,z.findIndex(Fe=>Fe!==" "&&Fe!==" ")),ce=H.filter(Fe=>Fe===" ").length,re=H.filter(Fe=>Fe===" ").length;return{space:ce,tab:re,goodChar:l==="space"?ce:re,badChar:l==="space"?re:ce}}function s(_,G){const B=G===!0?r.getLastToken(_,1):r.getTokenBefore(_),z=G===!0?_.loc.end.line:_.loc.start.line,H=B?B.loc.end.line:-1;return z!==H}function f(_,G){const B=h(_,!1);if(_.type!=="ArrayExpression"&&_.type!=="ObjectExpression"&&(B.goodChar!==G||B.badChar!==0)&&s(_)&&c(_,G,B.space,B.tab),_.type==="IfStatement"&&_.alternate){const z=r.getTokenBefore(_.alternate);f(z,G),s(_.alternate)||f(_.alternate,G)}if(_.type==="TryStatement"&&_.handler){const z=r.getFirstToken(_.handler);f(z,G)}if(_.type==="TryStatement"&&_.finalizer){const z=r.getTokenBefore(_.finalizer);f(z,G)}if(_.type==="DoWhileStatement"){const z=r.getTokenAfter(_.body);f(z,G)}}function g(_,G){_.forEach(B=>f(B,G))}function d(_,G){const B=r.getLastToken(_),z=h(B,!0);(z.goodChar!==G||z.badChar!==0)&&s(_,!0)&&c(_,G,z.space,z.tab,{line:B.loc.start.line,column:B.loc.start.column},!0)}function E(_,G){const B=r.getLastToken(_,a.isClosingParenToken);if(r.getText(B,B.loc.start.column).slice(0,-1).trim())return;const H=h(B,!0);H.goodChar!==G&&c(_,G,H.space,H.tab,{line:B.loc.start.line,column:B.loc.start.column},!0)}function S(_,G){const B=h(_,!1);(B.goodChar!==G||B.badChar!==0)&&s(_)&&c(_,G,B.space,B.tab,{line:_.loc.start.line,column:_.loc.start.column})}function x(_,G,B){let z=_.parent;const H=new Set(B||["Program"]);for(;z.type!==G&&!H.has(z.type)&&z.type!=="Program";)z=z.parent;return z.type===G?z:null}function T(_){return x(_,"VariableDeclarator")}function C(_,G){return G&&G.parent.loc.start.line===_.loc.start.line&&G.parent.declarations.length>1}function v(_){const G=_.parent;return G.arguments.length>=2&&G.arguments[1]===_?G.arguments[0].loc.end.line>G.arguments[0].loc.start.line:!1}function A(_){const G=_.parent;let B=G.parent;if(G.type!=="CallExpression"||G.callee!==_)return!1;for(;B.type==="UnaryExpression"&&(B.operator==="!"||B.operator==="~"||B.operator==="+"||B.operator==="-")||B.type==="AssignmentExpression"||B.type==="LogicalExpression"||B.type==="SequenceExpression"||B.type==="VariableDeclarator";)B=B.parent;return(B.type==="ExpressionStatement"||B.type==="VariableDeclaration")&&B.parent&&B.parent.type==="Program"}function b(_){const G=_.parent;let B;if(G.parent&&(G.parent.type==="Property"||G.parent.type==="ArrayExpression")?B=h(G,!1).goodChar:B=h(G).goodChar,G.parent.type==="CallExpression"){const ce=G.parent;G.type!=="FunctionExpression"&&G.type!=="ArrowFunctionExpression"?ce&&ce.loc.start.line<_.loc.start.line&&(B=h(ce).goodChar):v(G)&&ce.callee.loc.start.line===ce.callee.loc.end.line&&!s(G)&&(B=h(ce).goodChar)}let z=p;u.outerIIFEBody!==null&&A(G)?z=u.outerIIFEBody*p:G.type==="FunctionExpression"?z=u.FunctionExpression.body*p:G.type==="FunctionDeclaration"&&(z=u.FunctionDeclaration.body*p),B+=z;const H=T(_);H&&C(_,H)&&(B+=p*u.VariableDeclarator[H.parent.kind]),_.body.length>0&&g(_.body,B),d(_,B-z)}function w(_){const G=r.getLastToken(_),B=_.loc.start.line,z=G.loc.end.line;return B===z}function k(_){if(w(_))return;let G=_.type==="ArrayExpression"?_.elements:_.properties;G=G.filter(ce=>ce!==null);let B,z;const H=T(_);if(s(_)){const ce=_.parent;if(B=h(ce).goodChar,(!H||H.loc.start.line!==_.loc.start.line)&&(ce.type!=="VariableDeclarator"||H===H.parent.declarations[0]))if(ce.type==="VariableDeclarator"&&H.loc.start.line===ce.loc.start.line)B+=p*u.VariableDeclarator[H.parent.kind];else if(ce.type==="ObjectExpression"||ce.type==="ArrayExpression"){const re=_.parent.type==="ObjectExpression"?_.parent.properties:_.parent.elements;re[0]&&re[0].loc.start.line===ce.loc.start.line&&re[0].loc.end.line!==ce.loc.start.line||(typeof u[ce.type]=="number"?B+=u[ce.type]*p:B=re[0].loc.start.column)}else ce.type==="CallExpression"||ce.type==="NewExpression"?typeof u.CallExpression.arguments=="number"?B+=u.CallExpression.arguments*p:u.CallExpression.arguments==="first"?ce.arguments.includes(_)&&(B=ce.arguments[0].loc.start.column):B+=p:(ce.type==="LogicalExpression"||ce.type==="ArrowFunctionExpression")&&(B+=p);S(_,B)}else B=h(_).goodChar;u[_.type]==="first"?z=G.length?G[0].loc.start.column:0:z=B+p*u[_.type],C(_,H)&&(z+=p*u.VariableDeclarator[H.parent.kind]),g(G,z),!(G.length>0&&G.at(-1).loc.end.line===_.loc.end.line)&&d(_,B+(C(_,H)?u.VariableDeclarator[H.parent.kind]*p:0))}function R(_){return _.type==="BlockStatement"||_.type==="ClassBody"||_.body&&_.body.type==="BlockStatement"||_.consequent&&_.consequent.type==="BlockStatement"}function F(_){if(w(_))return;if(_.parent&&(_.parent.type==="FunctionExpression"||_.parent.type==="FunctionDeclaration"||_.parent.type==="ArrowFunctionExpression")){b(_);return}let G,B;const z=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];_.parent&&z.includes(_.parent.type)&&R(_)?G=h(_.parent).goodChar:_.parent&&_.parent.type==="CatchClause"?G=h(_.parent.parent).goodChar:G=h(_).goodChar,_.type==="IfStatement"&&_.consequent.type!=="BlockStatement"?B=[_.consequent]:Array.isArray(_.body)?B=_.body:B=[_.body],B.length>0&&g(B,G+p),_.type==="BlockStatement"&&d(_,G)}function L(_){return _.declarations.reduce((G,B)=>{const z=G.at(-1);return(B.loc.start.line!==_.loc.start.line&&!z||z&&z.loc.start.line!==B.loc.start.line)&&G.push(B),G},[])}function P(_){const G=L(_),B=h(_).goodChar,z=G.at(-1),H=B+p*u.VariableDeclarator[_.kind];if(g(G,H),r.getLastToken(_).loc.end.line<=z.loc.end.line)return;const ce=r.getTokenBefore(z);ce.value===","?d(_,h(ce).goodChar):d(_,H-p)}function O(_){_.body.type!=="BlockStatement"&&F(_)}function q(_,G){const B=_.type==="SwitchStatement"?_:_.parent,z=typeof G>"u"?h(B).goodChar:G;let H;return m[B.loc.start.line]?m[B.loc.start.line]:(B.cases.length>0&&u.SwitchCase===0?H=z:H=z+p*u.SwitchCase,m[B.loc.start.line]=H,H)}function N(_){const G=/^return\s*\(\s*\)/u,B=r.getText(_).replace(r.getText(_.argument),"");return G.test(B)}return{Program(_){_.body.length>0&&g(_.body,h(_).goodChar)},ClassBody:F,BlockStatement:F,WhileStatement:O,ForStatement:O,ForInStatement:O,ForOfStatement:O,DoWhileStatement:O,IfStatement(_){_.consequent.type!=="BlockStatement"&&_.consequent.loc.start.line>_.loc.start.line&&F(_)},VariableDeclaration(_){_.declarations.at(-1).loc.start.line>_.declarations[0].loc.start.line&&P(_)},ObjectExpression(_){k(_)},ArrayExpression(_){k(_)},MemberExpression(_){if(typeof u.MemberExpression>"u"||w(_)||x(_,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||x(_,"AssignmentExpression",["FunctionExpression"]))return;const G=h(_).goodChar+p*u.MemberExpression,B=[_.property],z=r.getTokenBefore(_.property);z.type==="Punctuator"&&z.value==="."&&B.push(z),g(B,G)},SwitchStatement(_){const G=h(_).goodChar,B=q(_,G);g(_.cases,B),d(_,G)},SwitchCase(_){if(w(_))return;const G=q(_);g(_.consequent,G+p)},FunctionDeclaration(_){w(_)||(u.FunctionDeclaration.parameters==="first"&&_.params.length?g(_.params.slice(1),_.params[0].loc.start.column):u.FunctionDeclaration.parameters!==null&&g(_.params,h(_).goodChar+p*u.FunctionDeclaration.parameters))},FunctionExpression(_){w(_)||(u.FunctionExpression.parameters==="first"&&_.params.length?g(_.params.slice(1),_.params[0].loc.start.column):u.FunctionExpression.parameters!==null&&g(_.params,h(_).goodChar+p*u.FunctionExpression.parameters))},ReturnStatement(_){if(w(_))return;const G=h(_).goodChar;N(_)?E(_,G):f(_,G)},CallExpression(_){w(_)||(u.CallExpression.arguments==="first"&&_.arguments.length?g(_.arguments.slice(1),_.arguments[0].loc.start.column):u.CallExpression.arguments!==null&&g(_.arguments,h(_).goodChar+p*u.CallExpression.arguments))}}}},co}var fo,Xg;function gA(){if(Xg)return fo;Xg=1;const a=new Set(["const","using","await using"]);function e(o){return o.type==="ForInStatement"||o.type==="ForOfStatement"||o.type==="ForStatement"}function n(o){const t=o.parent,l=t.parent;return e(l)?l.type==="ForStatement"?l.init===t:l.left===t:!!o.init}return fo={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(o){const t="always",l="never",p=o.options[0]||t,u=o.options[1]||{};let r=!1;return{TSModuleDeclaration(m){m.declare&&(r=!0)},"TSModuleDeclaration:exit"(m){m.declare&&(r=!1)},"VariableDeclaration:exit"(m){const i=m.kind,c=m.declarations;if(!(m.declare||r))for(let h=0;h<c.length;++h){const s=c[h],f=s.id,g=n(s),d=u.ignoreForLoopInit&&e(m.parent);let E="";p===t&&!g?E="initialized":p===l&&!a.has(i)&&g&&!d&&(E="notInitialized"),f.type==="Identifier"&&E&&o.report({node:s,messageId:E,data:{idName:f.name}})}}}}},fo}var po,Jg;function yA(){if(Jg)return po;Jg=1;const a=Ue(),e={"prefer-double":{quote:'"',description:"singlequote",convert(n){return n.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(n){return n.replace(/"/gu,"'")}}};return po={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"jsx-quotes",url:"https://eslint.style/rules/jsx-quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/latest/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(n){const o=n.options[0]||"prefer-double",t=e[o];function l(p){return p.value.includes(t.quote)||a.isSurroundedBy(p.raw,t.quote)}return{JSXAttribute(p){const u=p.value;u&&a.isStringLiteral(u)&&!l(u)&&n.report({node:u,messageId:"unexpected",data:{description:t.description},fix(r){return r.replaceText(u,t.convert(u.raw))}})}}}},po}var mo,Yg;function vA(){if(Yg)return mo;Yg=1;const a=Ue(),{getGraphemeCount:e}=Ir();function n(r){return a.LINEBREAK_MATCHER.test(r)}function o(r){return r.at(-1)}function t(r){return r.loc.end.line===r.loc.start.line}function l(r){const[m]=r,i=o(r);return m.loc.start.line===i.loc.end.line}function p(r,m){return r.mode=m.mode||"strict",typeof m.beforeColon<"u"?r.beforeColon=+m.beforeColon:r.beforeColon=0,typeof m.afterColon<"u"?r.afterColon=+m.afterColon:r.afterColon=1,typeof m.align<"u"&&(typeof m.align=="object"?r.align=m.align:r.align={on:m.align,mode:r.mode,beforeColon:r.beforeColon,afterColon:r.afterColon}),r}function u(r,m){return typeof m.align=="object"?(r.align=p({},m.align),r.align.on=m.align.on||"colon",r.align.mode=m.align.mode||"strict",r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m)):(r.multiLine=p({},m.multiLine||m),r.singleLine=p({},m.singleLine||m),r.multiLine.align&&(r.align={on:r.multiLine.align.on,mode:r.multiLine.align.mode||r.multiLine.mode,beforeColon:r.multiLine.align.beforeColon,afterColon:r.multiLine.align.afterColon})),r}return mo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"key-spacing",url:"https://eslint.style/rules/key-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(r){const m=r.options[0]||{},i=u({},m),c=i.multiLine,h=i.singleLine,s=i.align||null,f=r.sourceCode;function g(L){return!(L.method||L.shorthand||L.kind!=="init"||L.type!=="Property")}function d(L){return f.getTokenAfter(L,a.isColonToken)}function E(L){const P=d(L);return f.getTokenBefore(P)}function S(L){const P=d(L);return f.getTokenAfter(P)}function x(L,P){const O=L.loc.start.line,q=(g(P)?S(P.key):P).loc.start.line;if(q-O<=1)return!0;const N=f.getCommentsBefore(P);if(N.length&&N[0].loc.start.line-O<=1&&q-o(N).loc.end.line<=1){for(let _=1;_<N.length;_++)if(N[_].loc.start.line-N[_-1].loc.end.line>1)return!1;return!0}return!1}function T(L){const P=L.key;return L.computed?f.getText().slice(P.range[0],P.range[1]):a.getStaticPropertyName(L)}function C(L,P,O,q,N){const _=O.length-q;if((_&&N==="strict"||_<0&&N==="minimum"||_>0&&!q&&N==="minimum")&&!(q&&n(O))){const G=d(L.key),B=f.getTokenBefore(G,{includeComments:!0}),z=f.getTokenAfter(G,{includeComments:!0}),H=P==="key",ce=_>0,re=Math.abs(_),Fe=Array(re+1).join(" "),X=H?B.loc.end:G.loc.start,I=H?G.loc.start:z.loc.start,W=H?B.loc:z.loc,oe=ce?{start:X,end:I}:W;let ie;if(ce){let de;H?de=[B.range[1],B.range[1]+re]:de=[z.range[0]-re,z.range[0]],ie=function(be){return be.removeRange(de)}}else H?ie=function(de){return de.insertTextAfter(B,Fe)}:ie=function(de){return de.insertTextBefore(z,Fe)};let se;ce?se=P==="key"?"extraKey":"extraValue":se=P==="key"?"missingKey":"missingValue",r.report({node:L[P],loc:oe,messageId:se,data:{computed:L.computed?"computed ":"",key:T(L)},fix:ie})}}function v(L){const P=f.getFirstToken(L),O=E(L.key);return e(f.getText().slice(P.range[0],O.range[1]))}function A(L){const P=/(\s*):(\s*)/u.exec(f.getText().slice(L.key.range[1],L.value.range[0]));return P?{beforeColon:P[1],afterColon:P[2]}:null}function b(L){return L.properties.length===1?[L.properties]:L.properties.reduce((P,O)=>{const q=o(P),N=o(q);return!N||x(N,O)?q.push(O):P.push([O]),P},[[]])}function w(L){const P=L.length,O=L.map(v),q=s.on;let N=Math.max(...O),_,G,B;s&&P>1?(_=s.beforeColon,G=s.afterColon,B=s.mode):(_=c.beforeColon,G=c.afterColon,B=s.mode),N+=q==="colon"?_:G;for(let z=0;z<P;z++){const H=L[z],ce=A(H);if(ce){const re=O[z];q==="value"?(C(H,"key",ce.beforeColon,_,B),C(H,"value",ce.afterColon,N-re,B)):(C(H,"key",ce.beforeColon,N-re,B),C(H,"value",ce.afterColon,G,B))}}}function k(L,P){const O=A(L);O&&(C(L,"key",O.beforeColon,P.beforeColon,P.mode),C(L,"value",O.afterColon,P.afterColon,P.mode))}function R(L,P){const O=L.length;for(let q=0;q<O;q++)k(L[q],P)}function F(L){b(L).forEach(P=>{const O=P.filter(g);O.length>0&&l(O)?R(O,c):w(O)})}return s?{ObjectExpression(L){t(L)?R(L.properties.filter(g),h):F(L)}}:{Property(L){k(L,t(L.parent)?h:c)}}}},mo}var ho,Qg;function EA(){if(Qg)return ho;Qg=1;const a=Ue(),e=qi(),n=/^[)\]}>]$/u,o=/^(?:[([{<~!]|\+\+?|--?)$/u,t=/^[)\]}>*]$/u,l=/^[{*]$/u,p=/\$\{$/u,u=/^\}/u,r=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,m=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){m.sort();for(let h=1;h<m.length;++h)if(m[h]===m[h-1])throw new Error(`Duplication was found in the keyword list: ${m[h]}`)})();function i(h){return h.type==="Template"&&p.test(h.value)}function c(h){return h.type==="Template"&&u.test(h.value)}return ho={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"keyword-spacing",url:"https://eslint.style/rules/keyword-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/latest/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:m.reduce((h,s)=>(h[s]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(h){const s=h.sourceCode,f=new WeakSet;function g(re,Fe){const X=s.getTokenBefore(re);X&&(r.test(X.type)||Fe.test(X.value))&&!i(X)&&!f.has(X)&&a.isTokenOnSameLine(X,re)&&!s.isSpaceBetweenTokens(X,re)&&h.report({loc:re.loc,messageId:"expectedBefore",data:re,fix(I){return I.insertTextBefore(re," ")}})}function d(re,Fe){const X=s.getTokenBefore(re);X&&(r.test(X.type)||Fe.test(X.value))&&!i(X)&&!f.has(X)&&a.isTokenOnSameLine(X,re)&&s.isSpaceBetweenTokens(X,re)&&h.report({loc:{start:X.loc.end,end:re.loc.start},messageId:"unexpectedBefore",data:re,fix(I){return I.removeRange([X.range[1],re.range[0]])}})}function E(re,Fe){const X=s.getTokenAfter(re);X&&(r.test(X.type)||Fe.test(X.value))&&!c(X)&&!f.has(X)&&a.isTokenOnSameLine(re,X)&&!s.isSpaceBetweenTokens(re,X)&&h.report({loc:re.loc,messageId:"expectedAfter",data:re,fix(I){return I.insertTextAfter(re," ")}})}function S(re,Fe){const X=s.getTokenAfter(re);X&&(r.test(X.type)||Fe.test(X.value))&&!c(X)&&!f.has(X)&&a.isTokenOnSameLine(re,X)&&s.isSpaceBetweenTokens(re,X)&&h.report({loc:{start:re.loc.end,end:X.loc.start},messageId:"unexpectedAfter",data:re,fix(I){return I.removeRange([re.range[1],X.range[0]])}})}function x(re={}){const Fe=re.before!==!1,X=re.after!==!1,I={before:Fe?g:d,after:X?E:S},W=re&&re.overrides||{},oe=Object.create(null);for(let ie=0;ie<m.length;++ie){const se=m[ie],de=W[se];if(de){const be="before"in de?de.before:Fe,xe="after"in de?de.after:X;oe[se]={before:be?g:d,after:xe?E:S}}else oe[se]=I}return oe}const T=x(h.options[0]);function C(re,Fe){T[re.value].before(re,Fe||n)}function v(re,Fe){T[re.value].after(re,Fe||o)}function A(re){C(re),v(re)}function b(re){const Fe=re&&s.getFirstToken(re);Fe&&Fe.type==="Keyword"&&A(Fe)}function w(re){const Fe=re&&s.getFirstToken(re);Fe&&Fe.type==="Keyword"&&C(Fe)}function k(re){if(re){const Fe=s.getTokenBefore(re,a.isKeywordToken);A(Fe)}}function R(re){const Fe=re&&s.getFirstToken(re);Fe&&(Fe.type==="Keyword"&&Fe.value==="function"||Fe.value==="async")&&C(Fe)}function F(re){b(re),k(re.superClass)}function L(re){b(re),k(re.alternate)}function P(re){b(re),b(re.handler),k(re.finalizer)}function O(re){b(re),k(re.test)}function q(re){b(re);const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(Fe).type!=="PrivateIdentifier"&&C(Fe),v(Fe)}function N(re){re.await?(C(s.getFirstToken(re,0)),v(s.getFirstToken(re,1))):b(re);const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);s.getTokenBefore(Fe).type!=="PrivateIdentifier"&&C(Fe),v(Fe)}function _(re){const Fe=s.getFirstToken(re);if(C(Fe,t),v(Fe,l),re.type==="ExportDefaultDeclaration"&&A(s.getTokenAfter(Fe)),re.type==="ExportAllDeclaration"&&re.exported){const X=s.getTokenBefore(re.exported);C(X,t),v(X,l)}if(re.source){const X=s.getTokenBefore(re.source);C(X,t),v(X,l)}}function G(re){if(re.imported.range[0]!==re.local.range[0]){const Fe=s.getTokenBefore(re.local);C(Fe,t)}}function B(re){if(re.local.range[0]!==re.exported.range[0]){const Fe=s.getTokenBefore(re.exported);C(Fe,t),v(Fe,l)}}function z(re){const Fe=s.getFirstToken(re,1);C(Fe,t)}function H(re){if(re.static&&b(re),re.kind==="get"||re.kind==="set"||(re.method||re.type==="MethodDefinition")&&re.value.async){const Fe=s.getTokenBefore(re.key,X=>{switch(X.value){case"get":case"set":case"async":return!0;default:return!1}});if(!Fe)throw new Error("Failed to find token get, set, or async beside method name");A(Fe)}}function ce(re){C(s.getFirstToken(re))}return{DebuggerStatement:b,WithStatement:b,BreakStatement:b,ContinueStatement:b,ReturnStatement:b,ThrowStatement:b,TryStatement:P,IfStatement:L,SwitchStatement:b,SwitchCase:b,DoWhileStatement:O,ForInStatement:q,ForOfStatement:N,ForStatement:b,WhileStatement:b,ClassDeclaration:F,ExportNamedDeclaration:_,ExportDefaultDeclaration:_,ExportAllDeclaration:_,FunctionDeclaration:R,ImportDeclaration:_,VariableDeclaration:b,ArrowFunctionExpression:R,AwaitExpression:ce,ClassExpression:F,FunctionExpression:R,NewExpression:w,Super:w,ThisExpression:w,UnaryExpression:w,YieldExpression:w,ImportSpecifier:G,ExportSpecifier:B,ImportNamespaceSpecifier:z,MethodDefinition:H,PropertyDefinition:H,StaticBlock:b,Property:H,"BinaryExpression[operator='>']"(re){const Fe=s.getTokenBefore(re.right,a.isNotOpeningParenToken);f.add(Fe)}}}},ho}var go,Zg;function SA(){if(Zg)return go;Zg=1;const a=Ue();return go={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"line-comment-position",url:"https://eslint.style/rules/line-comment-position"}}]},type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const n=e.options[0];let o,t,l=!0;!n||typeof n=="string"?o=!n||n==="above":(o=!n.position||n.position==="above",t=n.ignorePattern,Object.hasOwn(n,"applyDefaultIgnorePatterns")?l=n.applyDefaultIgnorePatterns:l=n.applyDefaultPatterns!==!1);const p=a.COMMENTS_IGNORE_PATTERN,u=/^\s*falls?\s?through/u,r=new RegExp(t,"u"),m=e.sourceCode;return{Program(){m.getAllComments().filter(c=>c.type==="Line").forEach(c=>{if(l&&(p.test(c.value)||u.test(c.value))||t&&r.test(c.value))return;const h=m.getTokenBefore(c,{includeComments:!0}),s=h&&h.loc.end.line===c.loc.start.line;o?s&&e.report({node:c,messageId:"above"}):s||e.report({node:c,messageId:"beside"})})}}}},go}var yo,ey;function bA(){if(ey)return yo;ey=1;const a=Ue();return yo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"linebreak-style",url:"https://eslint.style/rules/linebreak-style"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const n=e.sourceCode;function o(t,l){return function(p){return p.replaceTextRange(t,l)}}return{Program:function(l){const p=e.options[0]||"unix",u=p==="unix",r=u?`
|
|
73
73
|
`:`\r
|
|
74
74
|
`,m=n.getText(),i=a.createGlobalLinebreakMatcher();let c,h=0;for(;(c=i.exec(m))!==null;){if(h++,c[0]===r)continue;const s=c.index,f=[s,s+c[0].length];e.report({node:l,loc:{start:{line:h,column:n.lines[h-1].length},end:{line:h+1,column:0}},messageId:u?"expectedLF":"expectedCRLF",fix:o(f,r)})}}}}},yo}var vo,ty;function xA(){if(ty)return vo;ty=1;const a=Ue();function e(o){return o.map((l,p)=>({code:l.trim(),num:p+1})).filter(l=>!l.code).map(l=>l.num)}function n(o){const t=[];return o.forEach(l=>{const p=l.loc.start.line,u=l.loc.end.line;t.push(p,u)}),t}return vo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"lines-around-comment",url:"https://eslint.style/rules/lines-around-comment"}}]},type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(o){const t=Object.assign({},o.options[0]),l=t.ignorePattern,p=a.COMMENTS_IGNORE_PATTERN,u=new RegExp(l,"u"),r=t.applyDefaultIgnorePatterns!==!1;t.beforeBlockComment=typeof t.beforeBlockComment<"u"?t.beforeBlockComment:!0;const m=o.sourceCode,i=m.lines,c=i.length+1,h=m.getAllComments(),s=n(h),f=e(i),g=new Set(s.concat(f));function d(P){let O=P;do O=m.getTokenBefore(O,{includeComments:!0});while(O&&a.isCommentToken(O));if(O&&a.isTokenOnSameLine(O,P))return!0;O=P;do O=m.getTokenAfter(O,{includeComments:!0});while(O&&a.isCommentToken(O));return!!(O&&a.isTokenOnSameLine(P,O))}function E(P,O){return P.type===O||P.body&&P.body.type===O||P.consequent&&P.consequent.type===O}function S(P){const O=m.getNodeByRangeIndex(P.range[0]);if(O&&O.type==="StaticBlock"){const q=m.getFirstToken(O,{skip:1});return P.range[0]>=q.range[0]?O:null}return O}function x(P,O){const q=S(P);if(q&&E(q,O)){let N=q;return q.type==="StaticBlock"?N=m.getFirstToken(q,{skip:1}):q.type==="SwitchStatement"&&(N=m.getTokenAfter(q.discriminant,{filter:a.isOpeningBraceToken})),P.loc.start.line-N.loc.start.line===1}return!1}function T(P,O){const q=S(P);return!!q&&E(q,O)&&q.loc.end.line-P.loc.end.line===1}function C(P){return x(P,"ClassBody")||x(P,"BlockStatement")||x(P,"StaticBlock")||x(P,"SwitchCase")||x(P,"SwitchStatement")}function v(P){return T(P,"ClassBody")||T(P,"BlockStatement")||T(P,"StaticBlock")||T(P,"SwitchCase")||T(P,"SwitchStatement")}function A(P){return x(P,"ClassBody")}function b(P){return T(P,"ClassBody")}function w(P){return x(P,"ObjectExpression")||x(P,"ObjectPattern")}function k(P){return T(P,"ObjectExpression")||T(P,"ObjectPattern")}function R(P){return x(P,"ArrayExpression")||x(P,"ArrayPattern")}function F(P){return T(P,"ArrayExpression")||T(P,"ArrayPattern")}function L(P,O){if(r&&p.test(P.value)||l&&u.test(P.value))return;let q=O.after,N=O.before;const _=P.loc.start.line-1,G=P.loc.end.line+1,B=d(P),z=t.allowBlockStart&&C(P)&&!(t.allowClassStart===!1&&A(P)),H=t.allowBlockEnd&&v(P)&&!(t.allowClassEnd===!1&&b(P)),ce=t.allowClassStart&&A(P),re=t.allowClassEnd&&b(P),Fe=t.allowObjectStart&&w(P),X=t.allowObjectEnd&&k(P),I=t.allowArrayStart&&R(P),W=t.allowArrayEnd&&F(P),oe=z||ce||Fe||I,ie=H||re||X||W;if(_<1&&(N=!1),G>=c&&(q=!1),B)return;const se=m.getTokenBefore(P,{includeComments:!0}),de=m.getTokenAfter(P,{includeComments:!0});if(!oe&&N&&!g.has(_)&&!(a.isCommentToken(se)&&a.isTokenOnSameLine(se,P))){const be=P.range[0]-P.loc.start.column,xe=[be,be];o.report({node:P,messageId:"before",fix(Te){return Te.insertTextBeforeRange(xe,`
|
|
75
75
|
`)}})}!ie&&q&&!g.has(G)&&!(a.isCommentToken(de)&&a.isTokenOnSameLine(P,de))&&o.report({node:P,messageId:"after",fix(be){return be.insertTextAfter(P,`
|
|
@@ -94,13 +94,13 @@ ${T.at(-1)}`)}}),o==="always"&&(!E||S&&!c(g,d))&&e.report({node:s,messageId:"exp
|
|
|
94
94
|
|
|
95
95
|
`:`
|
|
96
96
|
`;return m.insertTextBefore(r,c)}return null}})}}}}),Oo}var No,Sy;function qA(){if(Sy)return No;Sy=1;const a=Ue();return No={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"newline-per-chained-call",url:"https://eslint.style/rules/newline-per-chained-call"}}]},type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){const n=e.options[0]||{},o=n.ignoreChainWithDepth||2,t=e.sourceCode;function l(u){return u.computed?u.optional?"?.[":"[":u.optional?"?.":"."}function p(u){const r=l(u),m=t.getText(u.property).split(a.LINEBREAK_MATCHER),i=u.computed&&m.length===1?"]":"";return r+m[0]+i}return{"CallExpression:exit"(u){const r=a.skipChainExpression(u.callee);if(r.type!=="MemberExpression")return;let m=a.skipChainExpression(r.object),i=1;for(;m&&m.callee;)i+=1,m=a.skipChainExpression(a.skipChainExpression(m.callee).object);if(i>o&&a.isTokenOnSameLine(r.object,r.property)){const c=t.getTokenAfter(r.object,a.isNotClosingParenToken);e.report({node:r.property,loc:{start:c.loc.start,end:r.loc.end},messageId:"expected",data:{callee:p(r)},fix(h){return h.insertTextBefore(c,`
|
|
97
|
-
`)}})}}}}},No}var Mo,by;function VA(){if(by)return Mo;by=1;const{getStaticPropertyName:a,getVariableByName:e,skipChainExpression:n}=Ue();function o(u){return/^(alert|confirm|prompt)$/u.test(u)}function t(u,r){const m=u.references.filter(i=>i.identifier.range[0]===r.range[0]&&i.identifier.range[1]===r.range[1]);return m.length===1?m[0]:null}function l(u,r){const m=t(u,r);return m&&m.resolved&&m.resolved.defs.length>0}function p(u,r){return u.type==="global"&&r.type==="ThisExpression"?!0:r.type==="Identifier"&&(r.name==="window"||r.name==="globalThis"&&e(u,"globalThis"))?!l(u,r):!1}return Mo={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(u){const r=u.sourceCode;return{CallExpression(m){const i=n(m.callee),c=r.getScope(m);if(i.type==="Identifier"){const h=i.name;!l(c,i)&&o(i.name)&&u.report({node:m,messageId:"unexpected",data:{name:h}})}else if(i.type==="MemberExpression"&&p(c,i.object)){const h=a(i);o(h)&&u.report({node:m,messageId:"unexpected",data:{name:h}})}}}}},Mo}var jo,xy;function $A(){if(xy)return jo;xy=1;const{getVariableByName:a,isClosingParenToken:e,isOpeningParenToken:n,isStartOfExpressionStatement:o,needsPrecedingSemicolon:t}=Ue();return jo={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},fixable:"code",hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(l){const p=l.sourceCode;function u(i){const c=p.getFirstToken(i),h=p.getLastToken(i);let s=p.getLastToken(i.callee);for(;s!==h&&!n(s);)s=p.getTokenAfter(s);return p.commentsExistBetween(c,s)}function r(i){const c=p.getLastToken(i);if(!e(c))return"";let h=i.callee;do if(h=p.getTokenAfter(h),!h||h===c)return"";while(!n(h));return p.text.slice(h.range[1],c.range[0])}function m(i){if(i.callee.type!=="Identifier"||i.callee.name!=="Array"||i.typeArguments||i.arguments.length===1&&i.arguments[0].type!=="SpreadElement")return;const c=a(p.getScope(i),"Array");if(c&&c.identifiers.length===0){const h=r(i);let s,f;const g=i.arguments.reduce((E,S)=>S.type!=="SpreadElement"?E+1:E,0),d=i.optional||i.arguments.length>0&&g<2||u(i);o(i)&&t(p,i)?(s=`;[${h}]`,f="useLiteralAfterSemicolon"):(s=`[${h}]`,f="useLiteral"),l.report({node:i,messageId:"preferLiteral",fix(E){return d?null:E.replaceText(i,s)},suggest:[{messageId:f,fix(E){return d?E.replaceText(i,s):null}}]})}}return{CallExpression:m,NewExpression:m}}},jo}var Uo,Cy;function WA(){return Cy||(Cy=1,Uo={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(a){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){a.report({node:a.sourceCode.getFirstToken(e.arguments[0],n=>n.value==="async"),messageId:"async"})}}}}),Uo}var qo,wy;function GA(){if(wy)return qo;wy=1;function a(n){const o=n.type;return o==="FunctionDeclaration"||o==="FunctionExpression"||o==="ArrowFunctionExpression"||o==="ForOfStatement"&&n.await===!0}function e(n,o){switch(o.type){case"ForStatement":return n===o.test||n===o.update||n===o.body;case"ForOfStatement":case"ForInStatement":return n===o.body||n===o.left&&n.kind==="await using";case"WhileStatement":case"DoWhileStatement":return n===o.test||n===o.body;default:return!1}}return qo={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(n){function o(t){if(t.type==="VariableDeclaration"&&t.kind!=="await using"||t.type==="ForOfStatement"&&!t.await)return;let l=t,p=l.parent;for(;p&&!a(p);){if(e(l,p)){n.report({node:t,messageId:"unexpectedAwait"});return}l=p,p=p.parent}}return{AwaitExpression:o,ForOfStatement:o,VariableDeclaration:o}}},qo}var Vo,Ay;function zA(){if(Ay)return Vo;Ay=1;const a=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return Vo={meta:{type:"suggestion",defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:a},uniqueItems:!0},int32Hint:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const[{allow:n,int32Hint:o}]=e.options;function t(m){e.report({node:m,messageId:"unexpected",data:{operator:m.operator}})}function l(m){return a.includes(m.operator)}function p(m){return n.includes(m.operator)}function u(m){return o&&m.operator==="|"&&m.right&&m.right.type==="Literal"&&m.right.value===0}function r(m){l(m)&&!p(m)&&!u(m)&&t(m)}return{AssignmentExpression:r,BinaryExpression:r,UnaryExpression:r}}},Vo}var $o,Ty;function HA(){return Ty||(Ty=1,$o={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-deprecated-api",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md"}}]},type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(a){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){a.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),$o}var Wo,ky;function KA(){return ky||(ky=1,Wo={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="arguments"&&!e.computed&&o&&o.match(/^calle[er]$/u)&&a.report({node:e,messageId:"unexpected",data:{prop:o}})}}}}),Wo}var Go,Dy;function XA(){return Dy||(Dy=1,Go={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},hasSuggestions:!0,schema:[],messages:{addBrackets:"Add {} brackets around the case block.",unexpected:"Unexpected lexical declaration in case block."}},create(a){function e(n){switch(n.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return n.kind!=="var";default:return!1}}return{SwitchCase(n){for(let o=0;o<n.consequent.length;o++){const t=n.consequent[o];e(t)&&a.report({node:t,messageId:"unexpected",suggest:[{messageId:"addBrackets",fix:l=>[l.insertTextBefore(n.consequent[0],"{ "),l.insertTextAfter(n.consequent.at(-1)," }")]}]})}}}}}),Go}var zo,Iy;function JA(){if(Iy)return zo;Iy=1;const a=Ue();return zo={meta:{type:"suggestion",docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-catch-shadow"},deprecated:{message:"This rule was renamed.",url:"https://eslint.org/blog/2018/07/eslint-v5.1.0-released/",deprecatedSince:"5.1.0",availableUntil:null,replacedBy:[{rule:{name:"no-shadow",url:"https://eslint.org/docs/rules/no-shadow"}}]},schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{"CatchClause[param!=null]"(t){let l=n.getScope(t);l.block===t&&(l=l.upper),o(l,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}}}},zo}var Ho,Py;function YA(){if(Py)return Ho;Py=1;const a=Ue();return Ho={meta:{type:"problem",docs:{description:"Disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){const n=e.sourceCode;function o(l){a.getModifyingReferences(l.references).forEach(p=>{e.report({node:p.identifier,messageId:"class",data:{name:p.identifier.name}})})}function t(l){n.getDeclaredVariables(l).forEach(o)}return{ClassDeclaration:t,ClassExpression:t}}},Ho}var Ko,Fy;function QA(){return Fy||(Fy=1,Ko={meta:{type:"problem",docs:{description:"Disallow comparing against `-0`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(a){function e(o){return o.type==="UnaryExpression"&&o.operator==="-"&&o.argument.type==="Literal"&&o.argument.value===0}const n=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(o){n.has(o.operator)&&(e(o.left)||e(o.right))&&a.report({node:o,messageId:"unexpected",data:{operator:o.operator}})}}}}),Ko}var Xo,Ry;function ZA(){if(Ry)return Xo;Ry=1;const a=Ue(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),n={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return Xo={meta:{type:"problem",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(o){const[t]=o.options,l=o.sourceCode;function p(c){return c.parent&&e.has(c.parent.type)&&c===c.parent.test}function u(c){let h=c;do if(p(h))return h.parent;while((h=h.parent)&&!a.isFunction(h));return null}function r(c){const h=l.getTokenBefore(c,1),s=l.getTokenAfter(c,1);return a.isParenthesised(l,c)&&h&&a.isOpeningParenToken(h)&&h.range[1]<=c.range[0]&&a.isClosingParenToken(s)&&s.range[0]>=c.range[1]}function m(c){c.test&&c.test.type==="AssignmentExpression"&&(c.type==="ForStatement"?!a.isParenthesised(l,c.test):!r(c.test))&&o.report({node:c.test,messageId:"missing"})}function i(c){const h=u(c);h&&o.report({node:c,messageId:"unexpected",data:{type:n[h.type]||h.type}})}return t==="always"?{AssignmentExpression:i}:{DoWhileStatement:m,ForStatement:m,IfStatement:m,WhileStatement:m,ConditionalExpression:m}}},Xo}var Jo,_y;function eT(){if(_y)return Jo;_y=1;const a=Ue();function e(n){return n&&n.type==="ConditionalExpression"}return Jo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-confusing-arrow",url:"https://eslint.style/rules/no-confusing-arrow"}}]},type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(n){const o=n.options[0]||{},t=o.allowParens||o.allowParens===void 0,l=o.onlyOneSimpleParam,p=n.sourceCode;function u(r){const m=r.body;e(m)&&!(t&&a.isParenthesised(p,m))&&!(l&&!(r.params.length===1&&r.params[0].type==="Identifier"))&&n.report({node:r,messageId:"confusing",fix(i){return t&&i.replaceText(r.body,`(${p.getText(r.body)})`)}})}return{ArrowFunctionExpression:u}}},Jo}var Yo,By;function tT(){if(By)return Yo;By=1;const a=Ue();return Yo={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",limited:"Unexpected console statement. Only these console methods are allowed: {{ allowed }}.",removeConsole:"Remove the console.{{ propertyName }}().",removeMethodCall:"Remove the console method call."}},create(e){const[{allow:n=[]}]=e.options,o=e.sourceCode;function t(i){const c=i.identifier;return c&&c.name==="console"}function l(i){const c=a.getStaticPropertyName(i);return c&&n.includes(c)}function p(i){const c=i.identifier,h=c.parent;return h.type==="MemberExpression"&&h.object===c&&!l(h)}function u(i){const c=/^[:;{]$/u,h=/^[-[(/+`]/u,s=o.getTokenBefore(i),f=o.getTokenAfter(i);return!!f&&h.test(f.value)&&f.value!=="++"&&f.value!=="--"&&!!s&&!c.test(s.value)}function r(i){return i.parent.type==="CallExpression"&&i.parent.callee===i&&i.parent.parent.type==="ExpressionStatement"&&a.STATEMENT_LIST_PARENTS.has(i.parent.parent.parent.type)&&!u(i.parent.parent)}function m(i){const c=i.identifier.parent,h=[];if(r(c)){const s={fix(f){return f.remove(c.parent.parent)}};c.computed?s.messageId="removeMethodCall":(s.messageId="removeConsole",s.data={propertyName:c.property.name}),h.push(s)}e.report({node:c,loc:c.loc,messageId:n.length?"limited":"unexpected",data:{allowed:n.join(", ")},suggest:h})}return{"Program:exit"(i){const c=o.getScope(i),h=a.getVariableByName(c,"console"),s=h&&h.defs.length>0,f=h?h.references:c.through.filter(t);s||f.filter(p).forEach(m)}}}},Yo}var Qo,Ly;function rT(){if(Ly)return Qo;Ly=1;const a=Ue(),e=new Set(["const","using","await using"]);return Qo={meta:{type:"problem",docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(n){const o=n.sourceCode;function t(l){a.getModifyingReferences(l.references).forEach(p=>{n.report({node:p.identifier,messageId:"const",data:{name:p.identifier.name}})})}return{VariableDeclaration(l){e.has(l.kind)&&o.getDeclaredVariables(l).forEach(t)}}}},Qo}var Zo,Oy;function nT(){if(Oy)return Zo;Oy=1;const{isNullLiteral:a,isConstant:e,isReferenceToGlobalVariable:n,isLogicalAssignmentOperator:o,ECMASCRIPT_GLOBALS:t}=Ue(),l=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function p(s,f){return a(f)||f.type==="Identifier"&&f.name==="undefined"&&n(s,f)||f.type==="UnaryExpression"&&f.operator==="void"}function u(s,f,g){if(g&&p(s,f))return!1;switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(f.callee.type!=="Identifier")return!1;const d=f.callee.name;return(d==="Boolean"||d==="String"||d==="Number")&&n(s,f.callee)}case"LogicalExpression":return f.operator==="??"&&u(s,f.right,!0);case"AssignmentExpression":return f.operator==="="?u(s,f.right,g):!o(f.operator);case"UnaryExpression":return!0;case"SequenceExpression":{const d=f.expressions.at(-1);return u(s,d,g)}case"Identifier":return f.name==="undefined"&&n(s,f);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function r(s,f){switch(f.type){case"Literal":return typeof f.value=="boolean";case"CallExpression":return f.callee.type==="Identifier"&&f.callee.name==="Boolean"&&n(s,f.callee)&&(f.arguments.length===0||e(s,f.arguments[0],!0));case"UnaryExpression":return f.operator==="!"&&e(s,f.argument,!0);default:return!1}}function m(s,f){switch(f.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{const g=f.elements.filter(d=>d!==null&&d.type!=="SpreadElement");return f.elements.length===0||g.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return f.operator==="void"||f.operator==="typeof"?!0:f.operator==="!"?e(s,f.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return f.callee.type==="Identifier"&&f.callee.name==="Boolean"&&n(s,f.callee)?f.arguments.length===0||e(s,f.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return f.name==="undefined"&&n(s,f);case"TemplateLiteral":return f.expressions.length===0;case"AssignmentExpression":return f.operator==="="?m(s,f.right):!1;case"SequenceExpression":{const g=f.expressions.at(-1);return m(s,g)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function i(s,f){switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return l.has(f.operator);case"UnaryExpression":return f.operator==="delete"?!1:f.operator==="!"?e(s,f.argument,!0):!0;case"SequenceExpression":{const g=f.expressions.at(-1);return i(s,g)}case"Identifier":return f.name==="undefined"&&n(s,f);case"AssignmentExpression":return f.operator==="="?i(s,f.right):!o(f.operator);case"CallExpression":{if(f.callee.type!=="Identifier")return!1;const g=f.callee.name;return(g==="String"||g==="Number")&&n(s,f.callee)?!0:g==="Boolean"&&n(s,f.callee)?f.arguments.length===0||e(s,f.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(s,f){switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return f.callee.type!=="Identifier"?!1:Object.hasOwn(t,f.callee.name)&&n(s,f.callee);case"Literal":return typeof f.regex=="object";case"SequenceExpression":{const g=f.expressions.at(-1);return c(s,g)}case"AssignmentExpression":return f.operator==="="?c(s,f.right):!1;case"ConditionalExpression":return c(s,f.consequent)&&c(s,f.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(s,f,g,d){if(d==="=="||d==="!="){if(p(s,f)&&u(s,g,!1)||r(s,f)&&m(s,g))return g}else if((d==="==="||d==="!==")&&(p(s,f)&&u(s,g,!1)||r(s,f)&&i(s,g)))return g;return null}return Zo={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(s){const f=s.sourceCode;return{LogicalExpression(g){const{operator:d,left:E}=g,S=f.getScope(g);(d==="&&"||d==="||")&&e(S,E,!0)?s.report({node:E,messageId:"constantShortCircuit",data:{property:"truthiness",operator:d}}):d==="??"&&u(S,E,!1)&&s.report({node:E,messageId:"constantShortCircuit",data:{property:"nullishness",operator:d}})},BinaryExpression(g){const d=f.getScope(g),{right:E,left:S,operator:x}=g,T=h(d,S,E,x),C=h(d,E,S,x);T?s.report({node:T,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"left"}}):C?s.report({node:C,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"right"}}):x==="==="||x==="!=="?c(d,S)?s.report({node:S,messageId:"alwaysNew"}):c(d,E)&&s.report({node:E,messageId:"alwaysNew"}):(x==="=="||x==="!=")&&c(d,S)&&c(d,E)&&s.report({node:S,messageId:"bothAlwaysNew"})}}}},Zo}var el,Ny;function sT(){if(Ny)return el;Ny=1;const{isConstant:a}=Ue();return el={meta:{type:"problem",defaultOptions:[{checkLoops:"allExceptWhileTrue"}],docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const n=[],o=e.sourceCode;let[{checkLoops:t}]=e.options;t===!0?t="all":t===!1&&(t="none");let l=new Set;function p(h){h.test&&a(o.getScope(h),h.test,!0)&&l.add(h)}function u(h){l.has(h)&&(l.delete(h),e.report({node:h.test,messageId:"unexpected"}))}function r(h){h.test&&a(o.getScope(h),h.test,!0)&&e.report({node:h.test,messageId:"unexpected"})}function m(){n.push(l),l=new Set}function i(){l=n.pop()}function c(h){(t==="all"||t==="allExceptWhileTrue")&&p(h)}return{ConditionalExpression:r,IfStatement:r,WhileStatement(h){h.test.type==="Literal"&&h.test.value===!0&&t==="allExceptWhileTrue"||c(h)},"WhileStatement:exit":u,DoWhileStatement:c,"DoWhileStatement:exit":u,ForStatement:c,"ForStatement > .test":h=>c(h.parent),"ForStatement:exit":u,FunctionDeclaration:m,"FunctionDeclaration:exit":i,FunctionExpression:m,"FunctionExpression:exit":i,YieldExpression:()=>l.clear()}}},el}var tl,My;function aT(){return My||(My=1,tl={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(a){const e=[];return{onCodePathStart(n,o){e.push(o)},onCodePathEnd(){e.pop()},ReturnStatement(n){const o=e.at(-1);o.parent&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"&&n.argument&&a.report({node:n,messageId:"unexpected"})}}}}),tl}var rl,jy;function iT(){return jy||(jy=1,rl={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(a){return{ContinueStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),rl}var lr={},Uy;function ur(){if(Uy)return lr;Uy=1,Object.defineProperty(lr,"__esModule",{value:!0});var a=Object.freeze({__proto__:null});const e=2025;let n,o;function t(We){return We<65?!1:We<91?!0:We<97?!1:We<123?!0:p(We)}function l(We){return We<48?!1:We<58?!0:We<65?!1:We<91||We===95?!0:We<97?!1:We<123?!0:p(We)||u(We)}function p(We){return i(We,n??(n=r()))}function u(We){return i(We,o??(o=m()))}function r(){return c("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 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 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f")}function m(){return c("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 28 3 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n")}function i(We,M){let Y=0,he=M.length/2|0,je=0,y=0,D=0;for(;Y<he;)if(je=(Y+he)/2|0,y=M[2*je],D=M[2*je+1],We<y)he=je;else if(We>D)Y=je+1;else return!0;return!1}function c(We){let M=0;return We.split(" ").map(Y=>M+=parseInt(Y,36)|0)}class h{constructor(M,Y,he,je,y,D,U,K){this._raw2018=M,this._raw2019=Y,this._raw2020=he,this._raw2021=je,this._raw2022=y,this._raw2023=D,this._raw2024=U,this._raw2025=K}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var M;return(M=this._set2025)!==null&&M!==void 0?M:this._set2025=new Set(this._raw2025.split(" "))}}const s=new Set(["General_Category","gc"]),f=new Set(["Script","Script_Extensions","sc","scx"]),g=new h("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),d=new h("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),E=new h("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),S=new h("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function x(We,M,Y){return s.has(M)?We>=2018&&g.es2018.has(Y):f.has(M)?We>=2018&&d.es2018.has(Y)||We>=2019&&d.es2019.has(Y)||We>=2020&&d.es2020.has(Y)||We>=2021&&d.es2021.has(Y)||We>=2022&&d.es2022.has(Y)||We>=2023&&d.es2023.has(Y):!1}function T(We,M){return We>=2018&&E.es2018.has(M)||We>=2019&&E.es2019.has(M)||We>=2021&&E.es2021.has(M)}function C(We,M){return We>=2024&&S.es2024.has(M)}const v=8,A=9,b=10,w=11,k=12,R=13,F=33,L=35,P=36,O=37,q=38,N=40,_=41,G=42,B=43,z=44,H=45,ce=46,re=47,Fe=48,X=49,I=55,W=57,oe=58,ie=59,se=60,de=61,be=62,xe=63,Te=64,J=65,Q=66,ke=68,$=70,ae=80,Ie=83,Ne=87,Be=90,j=95,Qe=97,ut=98,rt=99,ze=100,Xe=102,ht=103,dt=105,at=107,tt=109,we=110,Ee=112,Se=113,ve=114,Pe=115,ee=116,te=117,Z=118,fe=119,De=120,Le=121,me=122,V=91,ne=92,ue=93,Ce=94,qe=96,_e=123,Ke=124,Je=125,pe=126,le=8204,ye=8205,Re=8232,Oe=8233,it=0,Ge=1114111;function Ze(We){return We>=J&&We<=Be||We>=Qe&&We<=me}function lt(We){return We>=Fe&&We<=W}function Ye(We){return We>=Fe&&We<=I}function st(We){return We>=Fe&&We<=W||We>=J&&We<=$||We>=Qe&&We<=Xe}function mt(We){return We===b||We===R||We===Re||We===Oe}function yt(We){return We>=it&&We<=Ge}function pt(We){return We>=Qe&&We<=Xe?We-Qe+10:We>=J&&We<=$?We-J+10:We-Fe}function vt(We){return We>=55296&&We<=56319}function Ct(We){return We>=56320&&We<=57343}function xt(We,M){return(We-55296)*1024+(M-56320)+65536}class Rt{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(M){return this.groupName.has(M)}hasInScope(M){return this.hasInPattern(M)}addToScope(M){this.groupName.add(M)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class _t{constructor(M,Y){this.parent=M,this.base=Y??this}separatedFrom(M){var Y,he;return this.base===M.base&&this!==M||M.parent&&this.separatedFrom(M.parent)?!0:(he=(Y=this.parent)===null||Y===void 0?void 0:Y.separatedFrom(M))!==null&&he!==void 0?he:!1}child(){return new _t(this,null)}sibling(){return new _t(this.parent,this.base)}}class Bt{constructor(){this.branchID=new _t(null,null),this.groupNames=new Map}clear(){this.branchID=new _t(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(M){M!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(M){return this.groupNames.has(M)}hasInScope(M){const Y=this.groupNames.get(M);if(!Y)return!1;for(const he of Y)if(!he.separatedFrom(this.branchID))return!0;return!1}addToScope(M){const Y=this.groupNames.get(M);if(Y){Y.push(this.branchID);return}this.groupNames.set(M,[this.branchID])}}const Ht={at(We,M,Y){return Y<M?We.charCodeAt(Y):-1},width(We){return 1}},Gt={at(We,M,Y){return Y<M?We.codePointAt(Y):-1},width(We){return We>65535?2:1}};class Ot{constructor(){this._impl=Ht,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(M,Y,he,je){this._impl=je?Gt:Ht,this._s=M,this._end=he,this.rewind(Y)}rewind(M){const Y=this._impl;this._i=M,this._cp1=Y.at(this._s,this._end,M),this._w1=Y.width(this._cp1),this._cp2=Y.at(this._s,this._end,M+this._w1),this._w2=Y.width(this._cp2),this._cp3=Y.at(this._s,this._end,M+this._w1+this._w2),this._w3=Y.width(this._cp3),this._cp4=Y.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){const M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,Y){return this._cp1===M&&this._cp2===Y?(this.advance(),this.advance(),!0):!1}eat3(M,Y,he){return this._cp1===M&&this._cp2===Y&&this._cp3===he?(this.advance(),this.advance(),this.advance(),!0):!1}}class $t extends SyntaxError{constructor(M,Y){super(M),this.index=Y}}function ct(We,M,Y,he){let je="";if(We.kind==="literal"){const y=We.source.slice(We.start,We.end);y&&(je=`: ${y}`)}else if(We.kind==="pattern"){const y=We.source.slice(We.start,We.end),D=`${M.unicode?"u":""}${M.unicodeSets?"v":""}`;je=`: /${y}/${D}`}return new $t(`Invalid regular expression${je}: ${he}`,Y)}const Mt=new Set([Ce,P,ne,ce,G,B,xe,N,_,V,ue,_e,Je,Ke]),Lt=new Set([q,F,L,P,O,G,B,z,ce,oe,ie,se,de,be,xe,Te,Ce,qe,pe]),Er=new Set([N,_,V,ue,_e,Je,re,H,ne,Ke]),Sr=new Set([q,H,F,L,O,z,oe,ie,se,de,be,Te,qe,pe]),Qt={global:ht,ignoreCase:dt,multiline:tt,unicode:te,sticky:Le,dotAll:Pe,hasIndices:ze,unicodeSets:Z},cr=Object.fromEntries(Object.entries(Qt).map(([We,M])=>[M,We]));function rr(We){return Mt.has(We)}function fr(We){return Lt.has(We)}function br(We){return Er.has(We)}function Zt(We){return Sr.has(We)}function Wt(We){return t(We)||We===P||We===j}function jt(We){return l(We)||We===P||We===le||We===ye}function Nr(We){return Ze(We)||We===j}function Mr(We){return Nr(We)||lt(We)}function jr(We){return We===dt||We===tt||We===Pe}class Fr{constructor(M){this._reader=new Ot,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{},this._groupSpecifiers=this.ecmaVersion>=2025?new Bt:new Rt}validateLiteral(M,Y=0,he=M.length){if(this._srcCtx={source:M,start:Y,end:he,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,Y,he),this.onLiteralEnter(Y),this.eat(re)&&this.eatRegExpBody()&&this.eat(re)){const je=this.index,y=M.includes("u",je),D=M.includes("v",je);this.validateFlagsInternal(M,je,he),this.validatePatternInternal(M,Y+1,je-1,{unicode:y,unicodeSets:D})}else if(Y>=he)this.raise("Empty");else{const je=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${je}'`)}this.onLiteralLeave(Y,he)}validateFlags(M,Y=0,he=M.length){this._srcCtx={source:M,start:Y,end:he,kind:"flags"},this.validateFlagsInternal(M,Y,he)}validatePattern(M,Y=0,he=M.length,je=void 0){this._srcCtx={source:M,start:Y,end:he,kind:"pattern"},this.validatePatternInternal(M,Y,he,je)}validatePatternInternal(M,Y=0,he=M.length,je=void 0){const y=this._parseFlagsOptionToMode(je,he);this._unicodeMode=y.unicodeMode,this._nFlag=y.nFlag,this._unicodeSetsMode=y.unicodeSetsMode,this.reset(M,Y,he),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(Y),this.consumePattern())}validateFlagsInternal(M,Y,he){const je=this.parseFlags(M,Y,he);this.onRegExpFlags(Y,he,je)}_parseFlagsOptionToMode(M,Y){let he=!1,je=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(he=!!M.unicode,this.ecmaVersion>=2024&&(je=!!M.unicodeSets)):he=M),he&&je&&this.raise("Invalid regular expression flags",{index:Y+1,unicode:he,unicodeSets:je});const y=he||je,D=he&&this.ecmaVersion>=2018||je||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:y,nFlag:D,unicodeSetsMode:je}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,Y){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,Y)}onRegExpFlags(M,Y,he){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,Y,he),this._options.onFlags&&this._options.onFlags(M,Y,he.global,he.ignoreCase,he.multiline,he.unicode,he.sticky,he.dotAll,he.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,Y){this._options.onPatternLeave&&this._options.onPatternLeave(M,Y)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,Y){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,Y)}onAlternativeEnter(M,Y){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,Y)}onAlternativeLeave(M,Y,he){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,Y,he)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,Y){this._options.onGroupLeave&&this._options.onGroupLeave(M,Y)}onModifiersEnter(M){this._options.onModifiersEnter&&this._options.onModifiersEnter(M)}onModifiersLeave(M,Y){this._options.onModifiersLeave&&this._options.onModifiersLeave(M,Y)}onAddModifiers(M,Y,he){this._options.onAddModifiers&&this._options.onAddModifiers(M,Y,he)}onRemoveModifiers(M,Y,he){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(M,Y,he)}onCapturingGroupEnter(M,Y){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,Y)}onCapturingGroupLeave(M,Y,he){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,Y,he)}onQuantifier(M,Y,he,je,y){this._options.onQuantifier&&this._options.onQuantifier(M,Y,he,je,y)}onLookaroundAssertionEnter(M,Y,he){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,Y,he)}onLookaroundAssertionLeave(M,Y,he,je){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,Y,he,je)}onEdgeAssertion(M,Y,he){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,Y,he)}onWordBoundaryAssertion(M,Y,he,je){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,Y,he,je)}onAnyCharacterSet(M,Y,he){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,Y,he)}onEscapeCharacterSet(M,Y,he,je){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,Y,he,je)}onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U)}onCharacter(M,Y,he){this._options.onCharacter&&this._options.onCharacter(M,Y,he)}onBackreference(M,Y,he){this._options.onBackreference&&this._options.onBackreference(M,Y,he)}onCharacterClassEnter(M,Y,he){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,Y,he)}onCharacterClassLeave(M,Y,he){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,Y,he)}onCharacterClassRange(M,Y,he,je){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,Y,he,je)}onClassIntersection(M,Y){this._options.onClassIntersection&&this._options.onClassIntersection(M,Y)}onClassSubtraction(M,Y){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,Y)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,Y){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,Y)}onStringAlternativeEnter(M,Y){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,Y)}onStringAlternativeLeave(M,Y,he){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,Y,he)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(M,Y,he){this._reader.reset(M,Y,he,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,Y){return this._reader.eat2(M,Y)}eat3(M,Y,he){return this._reader.eat3(M,Y,he)}raise(M,Y){var he,je,y;throw ct(this._srcCtx,{unicode:(he=Y?.unicode)!==null&&he!==void 0?he:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(je=Y?.unicodeSets)!==null&&je!==void 0?je:this._unicodeSetsMode},(y=Y?.index)!==null&&y!==void 0?y:this.index,M)}eatRegExpBody(){const M=this.index;let Y=!1,he=!1;for(;;){const je=this.currentCodePoint;if(je===-1||mt(je)){const y=Y?"character class":"regular expression";this.raise(`Unterminated ${y}`)}if(he)he=!1;else if(je===ne)he=!0;else if(je===V)Y=!0;else if(je===ue)Y=!1;else if(je===re&&!Y||je===G&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){const M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();const Y=this.currentCodePoint;if(this.currentCodePoint!==-1){Y===_&&this.raise("Unmatched ')'"),Y===ne&&this.raise("\\ at end of pattern"),(Y===ue||Y===Je)&&this.raise("Lone quantifier brackets");const he=String.fromCodePoint(Y);this.raise(`Unexpected character '${he}'`)}for(const he of this._backreferenceNames)this._groupSpecifiers.hasInPattern(he)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){const M=this.index;let Y=!1,he=!1,je=0,y=0;for(;(y=this.currentCodePoint)!==-1;)he?he=!1:y===ne?he=!0:y===V?Y=!0:y===ue?Y=!1:y===N&&!Y&&(this.nextCodePoint!==xe||this.nextCodePoint2===se&&this.nextCodePoint3!==de&&this.nextCodePoint3!==F)&&(je+=1),this.advance();return this.rewind(M),je}consumeDisjunction(){const M=this.index;let Y=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(M);do this.consumeAlternative(Y++);while(this.eat(Ke));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(_e)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(M){const Y=this.index;for(this._groupSpecifiers.enterAlternative(M),this.onAlternativeEnter(Y,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(Y,this.index,M)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Ce))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(P))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(ne,Q))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(ne,ut))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(N,xe)){const Y=this.ecmaVersion>=2018&&this.eat(se);let he=!1;if(this.eat(de)||(he=this.eat(F))){const je=Y?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,je,he),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!Y&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,je,he),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){const Y=this.index;let he=0,je=0,y=!1;if(this.eat(G))he=0,je=Number.POSITIVE_INFINITY;else if(this.eat(B))he=1,je=Number.POSITIVE_INFINITY;else if(this.eat(xe))he=0,je=1;else if(this.eatBracedQuantifier(M))({min:he,max:je}=this._lastRange);else return!1;return y=!this.eat(xe),M||this.onQuantifier(Y,this.index,he,je,y),!0}eatBracedQuantifier(M){const Y=this.index;if(this.eat(_e)){if(this.eatDecimalDigits()){const he=this._lastIntValue;let je=he;if(this.eat(z)&&(je=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Je))return!M&&je<he&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:he,max:je},!0}!M&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(Y)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(ce)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){const M=this.index;if(this.eat(ne)){if(this.consumeAtomEscape())return!0;this.rewind(M)}return!1}consumeUncapturingGroup(){const M=this.index;return this.eat2(N,xe)?(this.onGroupEnter(M),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(oe)||(this.rewind(M+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onGroupLeave(M,this.index),!0):!1}consumeModifiers(){const M=this.index,Y=this.eatModifiers(),he=this.index,je=this.eat(H);if(!Y&&!je)return!1;this.onModifiersEnter(M);const y=this.parseModifiers(M,he);if(this.onAddModifiers(M,he,y),je){const D=this.index;!this.eatModifiers()&&!Y&&this.currentCodePoint===oe&&this.raise("Invalid empty flags");const U=this.parseModifiers(D,this.index);for(const[K]of Object.entries(U).filter(([,ge])=>ge))y[K]&&this.raise(`Duplicated flag '${String.fromCodePoint(Qt[K])}'`);this.onRemoveModifiers(D,this.index,U)}return this.onModifiersLeave(M,this.index),!0}consumeCapturingGroup(){const M=this.index;if(this.eat(N)){let Y=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())Y=this._lastStrValue;else if(this.currentCodePoint===xe)return this.rewind(M),!1}else if(this.currentCodePoint===xe)return this.rewind(M),!1;return this.onCapturingGroupEnter(M,Y),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,Y),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const M=this.index;return this.currentCodePoint===ne&&this.nextCodePoint===rt?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,ne),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const M=this.index,Y=this.currentCodePoint;return Y!==-1&&!rr(Y)?(this.advance(),this.onCharacter(M,this.index,Y),!0):!1}consumeExtendedPatternCharacter(){const M=this.index,Y=this.currentCodePoint;return Y!==-1&&Y!==Ce&&Y!==P&&Y!==ne&&Y!==ce&&Y!==G&&Y!==B&&Y!==xe&&Y!==N&&Y!==_&&Y!==V&&Y!==Ke?(this.advance(),this.onCharacter(M,this.index,Y),!0):!1}consumeGroupSpecifier(){const M=this.index;if(this.eat(xe)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(M)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const M=this.index;if(this.eatDecimalEscape()){const Y=this._lastIntValue;if(Y<=this._numCapturingParens)return this.onBackreference(M-1,this.index,Y),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;const Y=this.index;if(this.eat(ze))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"digit",!1),{};if(this.eat(ke))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"digit",!0),{};if(this.eat(Pe))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"space",!1),{};if(this.eat(Ie))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"space",!0),{};if(this.eat(fe))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"word",!1),{};if(this.eat(Ne))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"word",!0),{};let he=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(Ee)||(he=this.eat(ae)))){this._lastIntValue=-1;let je=null;if(this.eat(_e)&&(je=this.eatUnicodePropertyValueExpression())&&this.eat(Je))return he&&je.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(Y-1,this.index,"property",je.key,je.value,he,(M=je.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:je.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){const M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){const M=this.index;if(this.eat(at)){if(this.eatGroupName()){const Y=this._lastStrValue;return this._backreferenceNames.add(Y),this.onBackreference(M-1,this.index,Y),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const M=this.index;if(this.eat(V)){const Y=this.eat(Ce);this.onCharacterClassEnter(M,Y,this._unicodeSetsMode);const he=this.consumeClassContents();return this.eat(ue)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),Y&&he.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Y),he}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===ue?{}:this.consumeClassSetExpression();const M=this.strict||this._unicodeMode;for(;;){const Y=this.index;if(!this.consumeClassAtom())break;const he=this._lastIntValue;if(!this.eat(H))continue;if(this.onCharacter(this.index-1,this.index,H),!this.consumeClassAtom())break;const je=this._lastIntValue;if(he===-1||je===-1){M&&this.raise("Invalid character class");continue}he>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(Y,this.index,he,je)}return{}}consumeClassAtom(){const M=this.index,Y=this.currentCodePoint;if(Y!==-1&&Y!==ne&&Y!==ue)return this.advance(),this._lastIntValue=Y,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ne)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===rt)return this._lastIntValue=ne,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){const M=this.index;if(this.eat(ut))return this._lastIntValue=v,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(H))return this._lastIntValue=H,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let Y=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===rt&&(lt(Y=this.nextCodePoint)||Y===j)?(this.advance(),this.advance(),this._lastIntValue=Y%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){const M=this.index;let Y=!1,he=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};Y=!1}else if(he=this.consumeClassSetOperand())Y=he.mayContainStrings;else{const je=this.currentCodePoint;je===ne&&(this.advance(),this.raise("Invalid escape")),je===this.nextCodePoint&&fr(je)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(q,q)){for(;this.currentCodePoint!==q&&(he=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),he.mayContainStrings||(Y=!1),!this.eat2(q,q))return{mayContainStrings:Y};this.raise("Invalid character in character class")}if(this.eat2(H,H)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(H,H))return{mayContainStrings:Y};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:Y})}consumeClassUnionRight(M){let Y=M.mayContainStrings;for(;;){const he=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(he);continue}const je=this.consumeClassSetOperand();if(je){je.mayContainStrings&&(Y=!0);continue}break}return{mayContainStrings:Y}}consumeClassSetRangeFromOperator(M){const Y=this.index,he=this._lastIntValue;if(this.eat(H)){if(this.consumeClassSetCharacter()){const je=this._lastIntValue;return(he===-1||je===-1)&&this.raise("Invalid character class"),he>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,he,je),!0}this.rewind(Y)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){const M=this.index;if(this.eat(V)){const Y=this.eat(Ce);this.onCharacterClassEnter(M,Y,!0);const he=this.consumeClassContents();return this.eat(ue)||this.raise("Unterminated character class"),Y&&he.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Y),he}if(this.eat(ne)){const Y=this.consumeCharacterClassEscape();if(Y)return Y;this.rewind(M)}return null}consumeClassStringDisjunction(){const M=this.index;if(this.eat3(ne,Se,_e)){this.onClassStringDisjunctionEnter(M);let Y=0,he=!1;do this.consumeClassString(Y++).mayContainStrings&&(he=!0);while(this.eat(Ke));if(this.eat(Je))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:he};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){const Y=this.index;let he=0;for(this.onStringAlternativeEnter(Y,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)he++;return this.onStringAlternativeLeave(Y,this.index,M),{mayContainStrings:he!==1}}consumeClassSetCharacter(){const M=this.index,Y=this.currentCodePoint;if((Y!==this.nextCodePoint||!fr(Y))&&Y!==-1&&!br(Y))return this._lastIntValue=Y,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ne)){if(this.consumeCharacterEscape())return!0;if(Zt(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ut))return this._lastIntValue=v,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(se)){if(this.eatRegExpIdentifierName()&&this.eat(be))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const M=this.index,Y=!this._unicodeMode&&this.ecmaVersion>=2020;let he=this.currentCodePoint;return this.advance(),he===ne&&this.eatRegExpUnicodeEscapeSequence(Y)?he=this._lastIntValue:Y&&vt(he)&&Ct(this.currentCodePoint)&&(he=xt(he,this.currentCodePoint),this.advance()),Wt(he)?(this._lastIntValue=he,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){const M=this.index,Y=!this._unicodeMode&&this.ecmaVersion>=2020;let he=this.currentCodePoint;return this.advance(),he===ne&&this.eatRegExpUnicodeEscapeSequence(Y)?he=this._lastIntValue:Y&&vt(he)&&Ct(this.currentCodePoint)&&(he=xt(he,this.currentCodePoint),this.advance()),jt(he)?(this._lastIntValue=he,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){const M=this.index;if(this.eat(rt)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===Fe&&!lt(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Xe)?(this._lastIntValue=k,!0):this.eat(we)?(this._lastIntValue=b,!0):this.eat(ve)?(this._lastIntValue=R,!0):this.eat(ee)?(this._lastIntValue=A,!0):this.eat(Z)?(this._lastIntValue=w,!0):!1}eatControlLetter(){const M=this.currentCodePoint;return Ze(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){const Y=this.index,he=M||this._unicodeMode;if(this.eat(te)){if(he&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||he&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||he)&&this.raise("Invalid unicode escape"),this.rewind(Y)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const M=this.index;if(this.eatFixedHexDigits(4)){const Y=this._lastIntValue;if(vt(Y)&&this.eat(ne)&&this.eat(te)&&this.eatFixedHexDigits(4)){const he=this._lastIntValue;if(Ct(he))return this._lastIntValue=xt(Y,he),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){const M=this.index;return this.eat(_e)&&this.eatHexDigits()&&this.eat(Je)&&yt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){const M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?rr(M)||M===re:this.strict?!l(M):this._nFlag?!(M===rt||M===at):M!==rt}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=X&&M<=W){do this._lastIntValue=10*this._lastIntValue+(M-Fe),this.advance();while((M=this.currentCodePoint)>=Fe&&M<=W);return!0}return!1}eatUnicodePropertyValueExpression(){const M=this.index;if(this.eatUnicodePropertyName()&&this.eat(de)){const Y=this._lastStrValue;if(this.eatUnicodePropertyValue()){const he=this._lastStrValue;if(x(this.ecmaVersion,Y,he))return{key:Y,value:he||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){const Y=this._lastStrValue;if(x(this.ecmaVersion,"General_Category",Y))return{key:"General_Category",value:Y||null};if(T(this.ecmaVersion,Y))return{key:Y,value:null};if(this._unicodeSetsMode&&C(this.ecmaVersion,Y))return{key:Y,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";Nr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Mr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const M=this.index;if(this.eat(De)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){const M=this.index;for(this._lastIntValue=0;lt(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+pt(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){const M=this.index;for(this._lastIntValue=0;st(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+pt(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const M=this._lastIntValue;if(this.eatOctalDigit()){const Y=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+Y*8+this._lastIntValue:this._lastIntValue=M*8+Y}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){const M=this.currentCodePoint;return Ye(M)?(this.advance(),this._lastIntValue=M-Fe,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){const Y=this.index;this._lastIntValue=0;for(let he=0;he<M;++he){const je=this.currentCodePoint;if(!st(je))return this.rewind(Y),!1;this._lastIntValue=16*this._lastIntValue+pt(je),this.advance()}return!0}eatModifiers(){let M=!1;for(;jr(this.currentCodePoint);)this.advance(),M=!0;return M}parseModifiers(M,Y){const{ignoreCase:he,multiline:je,dotAll:y}=this.parseFlags(this._reader.source,M,Y);return{ignoreCase:he,multiline:je,dotAll:y}}parseFlags(M,Y,he){const je={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},y=new Set;y.add(ht),y.add(dt),y.add(tt),this.ecmaVersion>=2015&&(y.add(te),y.add(Le),this.ecmaVersion>=2018&&(y.add(Pe),this.ecmaVersion>=2022&&(y.add(ze),this.ecmaVersion>=2024&&y.add(Z))));for(let D=Y;D<he;++D){const U=M.charCodeAt(D);if(y.has(U)){const K=cr[U];je[K]&&this.raise(`Duplicated flag '${M[D]}'`,{index:Y}),je[K]=!0}else this.raise(`Invalid flag '${M[D]}'`,{index:Y})}return je}}const an={},on={},dr={};function gr(We){return We.type==="Character"||We.type==="CharacterSet"||We.type==="CharacterClass"||We.type==="ExpressionCharacterClass"||We.type==="ClassStringDisjunction"}class Ur{constructor(M){var Y;this._node=an,this._expressionBufferMap=new Map,this._flags=on,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!M?.strict,this.ecmaVersion=(Y=M?.ecmaVersion)!==null&&Y!==void 0?Y:e}get pattern(){if(this._node.type!=="Pattern")throw new Error("UnknownError");return this._node}get flags(){if(this._flags.type!=="Flags")throw new Error("UnknownError");return this._flags}onRegExpFlags(M,Y,{global:he,ignoreCase:je,multiline:y,unicode:D,sticky:U,dotAll:K,hasIndices:ge,unicodeSets:Ve}){this._flags={type:"Flags",parent:null,start:M,end:Y,raw:this.source.slice(M,Y),global:he,ignoreCase:je,multiline:y,unicode:D,sticky:U,dotAll:K,hasIndices:ge,unicodeSets:Ve}}onPatternEnter(M){this._node={type:"Pattern",parent:null,start:M,end:M,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(M,Y){this._node.end=Y,this._node.raw=this.source.slice(M,Y);for(const he of this._backreferences){const je=he.ref,y=typeof je=="number"?[this._capturingGroups[je-1]]:this._capturingGroups.filter(D=>D.name===je);if(y.length===1){const D=y[0];he.ambiguous=!1,he.resolved=D}else he.ambiguous=!0,he.resolved=y;for(const D of y)D.references.push(he)}}onAlternativeEnter(M){const Y=this._node;if(Y.type!=="Assertion"&&Y.type!=="CapturingGroup"&&Y.type!=="Group"&&Y.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:Y,start:M,end:M,raw:"",elements:[]},Y.alternatives.push(this._node)}onAlternativeLeave(M,Y){const he=this._node;if(he.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onGroupEnter(M){const Y=this._node;if(Y.type!=="Alternative")throw new Error("UnknownError");const he={type:"Group",parent:Y,start:M,end:M,raw:"",modifiers:null,alternatives:[]};this._node=he,Y.elements.push(this._node)}onGroupLeave(M,Y){const he=this._node;if(he.type!=="Group"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onModifiersEnter(M){const Y=this._node;if(Y.type!=="Group")throw new Error("UnknownError");this._node={type:"Modifiers",parent:Y,start:M,end:M,raw:"",add:null,remove:null},Y.modifiers=this._node}onModifiersLeave(M,Y){const he=this._node;if(he.type!=="Modifiers"||he.parent.type!=="Group")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onAddModifiers(M,Y,{ignoreCase:he,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.add={type:"ModifierFlags",parent:D,start:M,end:Y,raw:this.source.slice(M,Y),ignoreCase:he,multiline:je,dotAll:y}}onRemoveModifiers(M,Y,{ignoreCase:he,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.remove={type:"ModifierFlags",parent:D,start:M,end:Y,raw:this.source.slice(M,Y),ignoreCase:he,multiline:je,dotAll:y}}onCapturingGroupEnter(M,Y){const he=this._node;if(he.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:he,start:M,end:M,raw:"",name:Y,alternatives:[],references:[]},he.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,Y){const he=this._node;if(he.type!=="CapturingGroup"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onQuantifier(M,Y,he,je,y){const D=this._node;if(D.type!=="Alternative")throw new Error("UnknownError");const U=D.elements.pop();if(U==null||U.type==="Quantifier"||U.type==="Assertion"&&U.kind!=="lookahead")throw new Error("UnknownError");const K={type:"Quantifier",parent:D,start:U.start,end:Y,raw:this.source.slice(U.start,Y),min:he,max:je,greedy:y,element:U};D.elements.push(K),U.parent=K}onLookaroundAssertionEnter(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y=this._node={type:"Assertion",parent:je,start:M,end:M,raw:"",kind:Y,negate:he,alternatives:[]};je.elements.push(y)}onLookaroundAssertionLeave(M,Y){const he=this._node;if(he.type!=="Assertion"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onEdgeAssertion(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"Assertion",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),kind:he})}onWordBoundaryAssertion(M,Y,he,je){const y=this._node;if(y.type!=="Alternative")throw new Error("UnknownError");y.elements.push({type:"Assertion",parent:y,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,negate:je})}onAnyCharacterSet(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"CharacterSet",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),kind:he})}onEscapeCharacterSet(M,Y,he,je){const y=this._node;if(y.type!=="Alternative"&&y.type!=="CharacterClass")throw new Error("UnknownError");y.elements.push({type:"CharacterSet",parent:y,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,negate:je})}onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U){const K=this._node;if(K.type!=="Alternative"&&K.type!=="CharacterClass")throw new Error("UnknownError");const ge={type:"CharacterSet",parent:null,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,strings:null,key:je};if(U){if(K.type==="CharacterClass"&&!K.unicodeSets||D||y!==null)throw new Error("UnknownError");K.elements.push(Object.assign(Object.assign({},ge),{parent:K,strings:U,value:y,negate:D}))}else K.elements.push(Object.assign(Object.assign({},ge),{parent:K,strings:U,value:y,negate:D}))}onCharacter(M,Y,he){const je=this._node;if(je.type!=="Alternative"&&je.type!=="CharacterClass"&&je.type!=="StringAlternative")throw new Error("UnknownError");je.elements.push({type:"Character",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),value:he})}onBackreference(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y={type:"Backreference",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),ref:he,ambiguous:!1,resolved:dr};je.elements.push(y),this._backreferences.push(y)}onCharacterClassEnter(M,Y,he){const je=this._node,y={type:"CharacterClass",parent:je,start:M,end:M,raw:"",unicodeSets:he,negate:Y,elements:[]};if(je.type==="Alternative"){const D=Object.assign(Object.assign({},y),{parent:je});this._node=D,je.elements.push(D)}else if(je.type==="CharacterClass"&&je.unicodeSets&&he){const D=Object.assign(Object.assign({},y),{parent:je,unicodeSets:he});this._node=D,je.elements.push(D)}else throw new Error("UnknownError")}onCharacterClassLeave(M,Y){const he=this._node;if(he.type!=="CharacterClass"||he.parent.type!=="Alternative"&&he.parent.type!=="CharacterClass")throw new Error("UnknownError");const je=he.parent;he.end=Y,he.raw=this.source.slice(M,Y),this._node=je;const y=this._expressionBufferMap.get(he);if(!y)return;if(he.elements.length>0)throw new Error("UnknownError");this._expressionBufferMap.delete(he);const D={type:"ExpressionCharacterClass",parent:je,start:he.start,end:he.end,raw:he.raw,negate:he.negate,expression:y};if(y.parent=D,he!==je.elements.pop())throw new Error("UnknownError");je.elements.push(D)}onCharacterClassRange(M,Y){const he=this._node;if(he.type!=="CharacterClass")throw new Error("UnknownError");const je=he.elements,y=je.pop();if(!y||y.type!=="Character")throw new Error("UnknownError");if(!he.unicodeSets){const K=je.pop();if(!K||K.type!=="Character"||K.value!==H)throw new Error("UnknownError")}const D=je.pop();if(!D||D.type!=="Character")throw new Error("UnknownError");const U={type:"CharacterClassRange",parent:he,start:M,end:Y,raw:this.source.slice(M,Y),min:D,max:y};D.parent=U,y.parent=U,je.push(U)}onClassIntersection(M,Y){var he;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(he=this._expressionBufferMap.get(je))!==null&&he!==void 0?he:je.elements.pop();if(!D||!y||D.type==="ClassSubtraction"||D.type!=="ClassIntersection"&&!gr(D)||!gr(y))throw new Error("UnknownError");const U={type:"ClassIntersection",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),left:D,right:y};D.parent=U,y.parent=U,this._expressionBufferMap.set(je,U)}onClassSubtraction(M,Y){var he;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(he=this._expressionBufferMap.get(je))!==null&&he!==void 0?he:je.elements.pop();if(!D||!y||D.type==="ClassIntersection"||D.type!=="ClassSubtraction"&&!gr(D)||!gr(y))throw new Error("UnknownError");const U={type:"ClassSubtraction",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),left:D,right:y};D.parent=U,y.parent=U,this._expressionBufferMap.set(je,U)}onClassStringDisjunctionEnter(M){const Y=this._node;if(Y.type!=="CharacterClass"||!Y.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:Y,start:M,end:M,raw:"",alternatives:[]},Y.elements.push(this._node)}onClassStringDisjunctionLeave(M,Y){const he=this._node;if(he.type!=="ClassStringDisjunction"||he.parent.type!=="CharacterClass")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onStringAlternativeEnter(M){const Y=this._node;if(Y.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:Y,start:M,end:M,raw:"",elements:[]},Y.alternatives.push(this._node)}onStringAlternativeLeave(M,Y){const he=this._node;if(he.type!=="StringAlternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}}class Rr{constructor(M){this._state=new Ur(M),this._validator=new Fr(this._state)}parseLiteral(M,Y=0,he=M.length){this._state.source=M,this._validator.validateLiteral(M,Y,he);const je=this._state.pattern,y=this._state.flags,D={type:"RegExpLiteral",parent:null,start:Y,end:he,raw:M,pattern:je,flags:y};return je.parent=D,y.parent=D,D}parseFlags(M,Y=0,he=M.length){return this._state.source=M,this._validator.validateFlags(M,Y,he),this._state.flags}parsePattern(M,Y=0,he=M.length,je=void 0){return this._state.source=M,this._validator.validatePattern(M,Y,he,je),this._state.pattern}}class pr{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Modifiers":this.visitModifiers(M);break;case"ModifierFlags":this.visitModifierFlags(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.modifiers&&this.visit(M.modifiers),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitModifiers(M){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(M),M.add&&this.visit(M.add),M.remove&&this.visit(M.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(M)}visitModifierFlags(M){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(M),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function bt(We,M){return new Rr(M).parseLiteral(String(We))}function ln(We,M){new Fr(M).validateLiteral(We)}function qr(We,M){new pr(M).visit(We)}return lr.AST=a,lr.RegExpParser=Rr,lr.RegExpSyntaxError=$t,lr.RegExpValidator=Fr,lr.parseRegExpLiteral=bt,lr.validateRegExpLiteral=ln,lr.visitRegExpAST=qr,lr}var nl,qy;function oT(){if(qy)return nl;qy=1;const a=ur().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new a(this)}onPatternEnter(){this._controlChars=[]}onCharacter(n,o,t){t>=0&&t<=31&&(this._source.codePointAt(n)===t||this._source.slice(n,o).startsWith("\\x")||this._source.slice(n,o).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${t.toString(16)}`.slice(-2)}`)}collectControlChars(n,o){const t=typeof o=="string"&&o.includes("u"),l=typeof o=="string"&&o.includes("v");this._controlChars=[],this._source=n;try{this._validator.validatePattern(n,void 0,void 0,{unicode:t,unicodeSets:l})}catch{}return this._controlChars}};return nl={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(n){function o(t){if(t.regex)return t.regex;if(typeof t.value=="string"&&(t.parent.type==="NewExpression"||t.parent.type==="CallExpression")&&t.parent.callee.type==="Identifier"&&t.parent.callee.name==="RegExp"&&t.parent.arguments[0]===t){const l=t.value,p=t.parent.arguments.length>1&&t.parent.arguments[1].type==="Literal"&&typeof t.parent.arguments[1].value=="string"?t.parent.arguments[1].value:null;return{pattern:l,flags:p}}return null}return{Literal(t){const l=o(t);if(l){const{pattern:p,flags:u}=l,r=e.collectControlChars(p,u);r.length>0&&n.report({node:t,messageId:"unexpected",data:{controlChars:r.join(", ")}})}}}}},nl}var sl,Vy;function lT(){return Vy||(Vy=1,sl={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(a){return{DebuggerStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),sl}var al,$y;function uT(){return $y||($y=1,al={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(a){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&a.report({node:e,messageId:"unexpected"})}}}}),al}var il,Wy;function cT(){return Wy||(Wy=1,il={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(a){const e=a.sourceCode;return{Literal(n){const o=e.getFirstToken(n);o.type==="RegularExpression"&&o.value[1]==="="&&a.report({node:n,messageId:"unexpected",fix(t){return t.replaceTextRange([o.range[0]+1,o.range[0]+2],"[=]")}})}}}}),il}var ol,Gy;function fT(){return Gy||(Gy=1,ol={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(a){const e=a.sourceCode;function n(t){return t.type==="Parameter"}function o(t){const l=e.getDeclaredVariables(t);for(let p=0;p<l.length;++p){const u=l[p];u.defs.filter(n).length>=2&&a.report({node:t,messageId:"unexpected",data:{name:u.name}})}}return{FunctionDeclaration:o,FunctionExpression:o}}}),ol}var ll,zy;function pT(){if(zy)return ll;zy=1;const a=Ue();return ll={meta:{type:"problem",dialects:["javascript","typescript"],language:"javascript",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let n=[];function o(t,l){const p=n.at(-1),u=`$${t}`;return p[u]||(p[u]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),p[u][l?"static":"nonStatic"]}return{Program(){n=[]},ClassBody(){n.push(Object.create(null))},"ClassBody:exit"(){n.pop()},"MethodDefinition, PropertyDefinition"(t){if(t.value&&t.value.type==="TSEmptyBodyFunctionExpression")return;const l=a.getStaticPropertyName(t),p=t.type==="MethodDefinition"?t.kind:"field";if(l===null||p==="constructor")return;const u=o(l,t.static);let r;p==="get"?(r=u.init||u.get,u.get=!0):p==="set"?(r=u.init||u.set,u.set=!0):(r=u.init||u.get||u.set,u.init=!0),r&&e.report({node:t,messageId:"unexpected",data:{name:l}})}}}},ll}var ul,Hy;function mT(){if(Hy)return ul;Hy=1;const a=Ue();function e(l,p,u){return p.every(r=>u.some(m=>l(r,m)))}function n(l,p){return p.type==="LogicalExpression"&&p.operator===l?[...n(l,p.left),...n(l,p.right)]:[p]}const o=n.bind(null,"||"),t=n.bind(null,"&&");return ul={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(l){const p=l.sourceCode;function u(m,i){return m.type!==i.type?!1:m.type==="LogicalExpression"&&(m.operator==="||"||m.operator==="&&")&&m.operator===i.operator?u(m.left,i.left)&&u(m.right,i.right)||u(m.left,i.right)&&u(m.right,i.left):a.equalTokens(m,i,p)}const r=e.bind(null,u);return{IfStatement(m){const i=m.test,c=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...t(i)]:[i];let h=m,s=c.map(f=>o(f).map(t));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;const f=o(h.test).map(t);if(s=s.map(g=>g.filter(d=>!f.some(E=>r(E,d)))),s.some(g=>g.length===0)){l.report({node:i,messageId:"unexpected"});break}}}}}},ul}var cl,Ky;function hT(){if(Ky)return cl;Ky=1;const a=Ue(),e=/^(?:init|get)$/u,n=/^(?:init|set)$/u;class o{constructor(l,p){this.upper=l,this.node=p,this.properties=new Map}getPropertyInfo(l){const p=a.getStaticPropertyName(l);return this.properties.has(p)||this.properties.set(p,{get:!1,set:!1}),this.properties.get(p)}isPropertyDefined(l){const p=this.getPropertyInfo(l);return e.test(l.kind)&&p.get||n.test(l.kind)&&p.set}defineProperty(l){const p=this.getPropertyInfo(l);e.test(l.kind)&&(p.get=!0),n.test(l.kind)&&(p.set=!0)}}return cl={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(t){let l=null;return{ObjectExpression(p){l=new o(l,p)},"ObjectExpression:exit"(){l=l.upper},Property(p){const u=a.getStaticPropertyName(p);p.parent.type==="ObjectExpression"&&u!==null&&(u==="__proto__"&&p.kind==="init"&&!p.computed&&!p.shorthand&&!p.method||(l.isPropertyDefined(p)&&t.report({node:l.node,loc:p.key.loc,messageId:"unexpected",data:{name:u}}),l.defineProperty(p)))}}}},cl}var fl,Xy;function dT(){if(Xy)return fl;Xy=1;const a=Ue();return fl={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){const n=e.sourceCode;function o(t,l){return t.type!==l.type?!1:a.equalTokens(t,l,n)}return{SwitchStatement(t){const l=[];for(const p of t.cases)if(p.test){const u=p.test;l.some(r=>o(r,u))?e.report({node:p,messageId:"unexpected"}):l.push(u)}}}}},fl}var pl,Jy;function gT(){if(Jy)return pl;Jy=1;const a=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function n(i,c){return(c==="named"?a:e).includes(i)}function o(i){if(i.specifiers&&i.specifiers.length>0){const c=i.specifiers,h=c.findIndex(({type:f})=>n(f,"named")||n(f,"namespace")),s=h>-1?h:0;return c[s].type}return i.type==="ExportAllDeclaration"?i.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function t(i,c){const h=o(i),s=o(c);if((i.importKind==="type"||i.exportKind==="type")&&(c.importKind==="type"||c.exportKind==="type")){const f=h==="ImportDefaultSpecifier",g=s==="ImportDefaultSpecifier",d=n(h,"named"),E=n(s,"named");if(f&&E||g&&d)return!1}return!(h==="ExportAll"&&s!=="ExportAll"&&s!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&s==="ExportAll"||n(h,"namespace")&&n(s,"named")||n(s,"namespace")&&n(h,"named"))}function l(i,c,h){let s=0;for(;s<c.length;){const f=c[s];if(h){const g=i.importKind==="type"||i.exportKind==="type",d=f.importKind==="type"||f.exportKind==="type";if(g!==d){s++;continue}}if(t(i,f))return!0;s++}return!1}function p(i,c){return i.filter(({declarationType:h})=>h===c).map(({node:h})=>h)}function u(i){return i&&i.source&&i.source.value?i.source.value.trim():""}function r(i,c,h,s,f,g){const d=u(c);if(h.has(d)){const E=h.get(d),S=[],x=p(E,"import");let T;f&&(T=p(E,"export")),s==="import"?(l(c,x,g)&&S.push("import"),f&&l(c,T,g)&&S.push("importAs")):s==="export"&&(l(c,T,g)&&S.push("export"),l(c,x,g)&&S.push("exportAs")),S.forEach(C=>i.report({node:c,messageId:C,data:{module:d}}))}}function m(i,c,h,s,f){return function(g){const d=u(g);if(d){r(i,g,c,h,s,f);const E={node:g,declarationType:h};let S=[E];c.has(d)&&(S=[...c.get(d),E]),c.set(d,S)}}}return pl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean"},allowSeparateTypeImports:{type:"boolean"}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(i){const[{includeExports:c,allowSeparateTypeImports:h}]=i.options,s=new Map,f={ImportDeclaration:m(i,s,"import",c,h)};return c&&(f.ExportNamedDeclaration=m(i,s,"export",c,h),f.ExportAllDeclaration=m(i,s,"export",c,h)),f}},pl}var ml,Yy;function nn(){if(Yy)return ml;Yy=1;const a=Ue();class e{constructor(o,t){this.fixer=o,this.sourceCode=t,this.retainedRange=null}retainRange(o){return this.retainedRange=o,this}retainEnclosingFunction(o){const t=a.getUpperFunction(o);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(o){const t=this.sourceCode.getTokenBefore(o)||o,l=this.sourceCode.getTokenAfter(o)||o;return this.retainRange([t.range[0],l.range[1]])}replaceTextRange(o,t){let l;return this.retainedRange?l=[Math.min(this.retainedRange[0],o[0]),Math.max(this.retainedRange[1],o[1])]:l=o,this.fixer.replaceTextRange(l,this.sourceCode.text.slice(l[0],o[0])+t+this.sourceCode.text.slice(o[1],l[1]))}remove(o){return this.replaceTextRange(o.range,"")}}return ml=e,ml}var hl,Qy;function yT(){if(Qy)return hl;Qy=1;const a=Ue(),e=nn();return hl={meta:{type:"suggestion",defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(n){const[{allowElseIf:o}]=n.options,t=n.sourceCode;function l(d,E){if(d.length===0)return!0;const S=E.variableScope;if(E.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>d.includes(C))||E!==S&&E.upper.type==="catch"&&E.upper.variables.some(({name:C})=>d.includes(C))||E.variables.filter(({defs:C,references:v})=>C.length===0&&v.length>0).some(({name:C})=>d.includes(C))||E.through.some(C=>d.includes(C.identifier.name)))return!1;if(E!==S){const C=E.block.range;if(S.variables.filter(({name:A})=>d.includes(A)).some(A=>A.defs.some(({node:{range:b}})=>C[0]<=b[0]&&b[1]<=C[1])))return!1}return!0}function p(d,E){if(d.type==="FunctionDeclaration")return!1;if(d.type!=="BlockStatement")return!0;const S=E.childScopes.find(({block:T})=>T===d);if(!S)return!0;const x=S.variables.map(({name:T})=>T);return l(x,E)}function u(d){const E=t.getScope(d.parent);n.report({node:d,messageId:"unexpected",fix(S){if(!p(d,E))return null;const x=t.getFirstToken(d),T=t.getTokenBefore(x),C=t.getText(d),v=t.getTokenBefore(T);let A,b;x.type==="Punctuator"&&x.value==="{"?b=t.getTokenAfter(x):b=x;const w=d.parent.consequent.type!=="BlockStatement"&&v.value!==";",k=/^[([/+`-]/u.test(b.value);if(w&&k)return null;const R=t.getLastToken(d),F=t.getTokenBefore(R);if(F.value!==";"){const L=t.getTokenAfter(R),P=L&&/^[([/+`-]/u.test(L.value),O=L&&L.loc.start.line===F.loc.start.line;if(P||O&&L.value!=="}")return null}return x.type==="Punctuator"&&x.value==="{"?A=C.slice(1,-1):A=C,new e(S,t).retainEnclosingFunction(d).replaceTextRange([T.range[0],d.range[1]],A)}})}function r(d){return d.type==="ReturnStatement"}function m(d){if(d.type==="BlockStatement"){const E=d.body,S=E.at(-1);return S&&r(S)}return r(d)}function i(d){return d.alternate&&d.consequent}function c(d){return d.type==="IfStatement"&&i(d)&&m(d.alternate)&&m(d.consequent)}function h(d){return r(d)||c(d)}function s(d){return d.type==="BlockStatement"?d.body.some(h):h(d)}function f(d){const E=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(E.type))return;const S=[];let x;for(let T=d;T.type==="IfStatement";T=T.alternate){if(!T.alternate)return;S.push(T.consequent),x=T.alternate}S.every(s)&&u(x)}function g(d){const E=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(E.type))return;const S=d.alternate;S&&s(d.consequent)&&u(S)}return{"IfStatement:exit":o?f:g}}},hl}var dl,Zy;function vT(){if(Zy)return dl;Zy=1;const a=Ue();return dl={meta:{hasSuggestions:!0,type:"suggestion",defaultOptions:[{allowEmptyCatch:!1}],docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){const[{allowEmptyCatch:n}]=e.options,o=e.sourceCode;return{BlockStatement(t){t.body.length===0&&(a.isFunction(t.parent)||n&&t.parent.type==="CatchClause"||o.getCommentsInside(t).length>0||e.report({node:t,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(l){const p=[t.range[0]+1,t.range[1]-1];return l.replaceTextRange(p," /* empty */ ")}}]}))},SwitchStatement(t){(typeof t.cases>"u"||t.cases.length===0)&&e.report({node:t,messageId:"unexpected",data:{type:"switch"}})}}}},dl}var gl,ev;function ET(){if(ev)return gl;ev=1;const{RegExpParser:a,visitRegExpAST:e}=ur(),n=new a,o=/\[\]/u;return gl={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(t){return{"Literal[regex]"(l){const{pattern:p,flags:u}=l.regex;if(!o.test(p))return;let r;try{r=n.parsePattern(p,0,p.length,{unicode:u.includes("u"),unicodeSets:u.includes("v")})}catch{return}e(r,{onCharacterClassEnter(m){!m.negate&&m.elements.length===0&&t.report({node:l,messageId:"unexpected"})}})}}}},gl}var yl,tv;function ST(){if(tv)return yl;tv=1;const a=Ue(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods","privateConstructors","protectedConstructors","decoratedFunctions","overrideMethods"]);function n(t){const l=t.parent;let p;if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(l.type==="Property"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";p=l.method?"methods":"functions"}else if(l.type==="MethodDefinition"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";if(l.kind==="constructor")return"constructors";p="methods"}else p="functions";let u;if(t.generator)u="generator";else if(t.async)u="async";else return p;return u+p[0].toUpperCase()+p.slice(1)}function o(t){return t.params.some(l=>l.type==="TSParameterProperty")}return yl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{allow:[]}],docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(t){const[{allow:l}]=t.options,p=t.sourceCode;function u(m){const i=n(m);return!!(l.includes(i)||i==="constructors"&&(m.parent.accessibility==="private"&&l.includes("privateConstructors")||m.parent.accessibility==="protected"&&l.includes("protectedConstructors")||o(m))||/(g|s)etters|methods$/iu.test(i)&&(m.parent.decorators?.length&&l.includes("decoratedFunctions")||m.parent.override&&l.includes("overrideMethods")))}function r(m){const i=a.getFunctionNameWithKind(m),c=p.getTokens(m.body,{includeComments:!0,filter:a.isCommentToken});!u(m)&&m.body.type==="BlockStatement"&&m.body.body.length===0&&c.length===0&&t.report({node:m,loc:m.body.loc,messageId:"unexpected",data:{name:i}})}return{ArrowFunctionExpression:r,FunctionDeclaration:r,FunctionExpression:r}}},yl}var vl,rv;function bT(){if(rv)return vl;rv=1;const a=Ue();return vl={meta:{type:"problem",defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){const[{allowObjectPatternsAsParameters:n}]=e.options;return{ObjectPattern(o){o.properties.length>0||n&&(a.isFunction(o.parent)||o.parent.type==="AssignmentPattern"&&a.isFunction(o.parent.parent)&&o.parent.right.type==="ObjectExpression"&&o.parent.right.properties.length===0)||e.report({node:o,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(o){o.elements.length===0&&e.report({node:o,messageId:"unexpected",data:{type:"array"}})}}}},vl}var El,nv;function xT(){return nv||(nv=1,El={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(a){const e=a.sourceCode;return{StaticBlock(n){if(n.body.length===0){const o=e.getLastToken(n);e.getCommentsBefore(o).length===0&&a.report({node:n,messageId:"unexpected"})}}}}}),El}var Sl,sv;function CT(){return sv||(sv=1,Sl={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(a){return{BinaryExpression(e){const n=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&n||e.left.type==="Literal"&&e.left.raw==="null"&&n)&&a.report({node:e,messageId:"unexpected"})}}}}),Sl}var bl,av;function wT(){if(av)return bl;av=1;const a=Ue(),e=Object.freeze(["global","window","globalThis"]);function n(o,t){return a.isSpecificMemberAccess(o,null,t)}return bl={meta:{type:"suggestion",defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(o){const[{allowIndirect:t}]=o.options,l=o.sourceCode;let p=null;function u(h){const s=l.getScope(h).isStrict;p={upper:p,node:h,strict:s,isTopLevelOfScript:!1,defaultThis:!1,initialized:s}}function r(){p=p.upper}function m(h){const s=h.parent,f=h.type==="MemberExpression"?h.property:h,g=s.type==="CallExpression"&&s.callee===h?s:h;o.report({node:g,loc:f.loc,messageId:"unexpected"})}function i(h){for(let s=0;s<e.length;++s){const f=e[s],g=a.getVariableByName(h,f);if(!g)continue;const d=g.references;for(let E=0;E<d.length;++E){let x=d[E].identifier.parent;for(;n(x,f);)x=x.parent;n(x,"eval")&&m(x)}}}function c(h){const s=a.getVariableByName(h,"eval");if(!s)return;const f=s.references;for(let g=0;g<f.length;++g){const E=f[g].identifier;E.name==="eval"&&!a.isCallee(E)&&m(E)}}return t?{"CallExpression:exit"(h){const s=h.callee;!h.optional&&a.isSpecificId(s,"eval")&&m(s)}}:{"CallExpression:exit"(h){const s=h.callee;a.isSpecificId(s,"eval")&&m(s)},Program(h){const s=l.getScope(h),f=o.parserOptions.ecmaFeatures||{},g=s.isStrict||h.sourceType==="module"||f.globalReturn&&s.childScopes[0].isStrict,d=h.sourceType!=="module"&&!f.globalReturn;p={upper:null,node:h,strict:g,isTopLevelOfScript:d,defaultThis:!0,initialized:!0}},"Program:exit"(h){const s=l.getScope(h);r(),c(s),i(s)},FunctionDeclaration:u,"FunctionDeclaration:exit":r,FunctionExpression:u,"FunctionExpression:exit":r,"PropertyDefinition > *.value":u,"PropertyDefinition > *.value:exit":r,StaticBlock:u,"StaticBlock:exit":r,ThisExpression(h){n(h.parent,"eval")&&(p.initialized||(p.initialized=!0,p.defaultThis=a.isDefaultThisBinding(p.node,l)),(p.isTopLevelOfScript||!p.strict&&p.defaultThis)&&m(h.parent))}}}},bl}var xl,iv;function AT(){if(iv)return xl;iv=1;const a=Ue();return xl={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){const n=e.sourceCode;function o(t){a.getModifyingReferences(t.references).forEach(l=>{e.report({node:l.identifier,messageId:"unexpected"})})}return{CatchClause(t){n.getDeclaredVariables(t).forEach(o)}}}},xl}var Cl,ov;function TT(){if(ov)return Cl;ov=1;const a=Ue();return Cl={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){const n=e.sourceCode,o=new Set(e.options[0].exceptions),t=new Set(Object.keys(a.ECMASCRIPT_GLOBALS).filter(i=>i[0].toUpperCase()===i[0]).filter(i=>!o.has(i)));function l(i,c){e.report({node:i,messageId:"unexpected",data:{builtin:c}})}function p(i){return!!(i&&i.parent&&i.parent.type==="MemberExpression"&&i.parent.object===i&&a.getStaticPropertyName(i.parent)==="prototype")}function u(i){return i.parent.type==="MemberExpression"&&i.parent.object===i&&i.parent.parent.type==="AssignmentExpression"&&i.parent.parent.left===i.parent}function r(i){return i.parent.type==="CallExpression"&&i.parent.arguments[0]===i&&a.isSpecificMemberAccess(i.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function m(i){if(!p(i))return;const c=i.parent.parent.type==="ChainExpression"?i.parent.parent:i.parent;u(c)?l(c.parent.parent,i.name):r(c)&&l(c.parent,i.name)}return{"Program:exit"(i){const c=n.getScope(i);t.forEach(h=>{const s=c.set.get(h);s&&s.references&&s.references.map(f=>f.identifier).forEach(m)})}}}},Cl}var wl,lv;function kT(){if(lv)return wl;lv=1;const a=Ue(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return wl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(n){const o=n.sourceCode;let t=null;function l(h){return e.has(h.type)}function p(h){const s=h.parent,f=s.parent.type==="ChainExpression"?s.parent.parent:s.parent;n.report({node:f,messageId:"unexpected",loc:s.property.loc,fix(g){if(!l(f.arguments[0]))return null;const d=[[o.getTokenAfter(s.object,a.isNotClosingParenToken),o.getLastToken(s)],[o.getTokenAfter(s,a.isNotClosingParenToken),o.getLastToken(f)]],E=d[0][0],S=d[1][1];return o.commentsExistBetween(E,S)?null:d.map(([x,T])=>g.removeRange([x.range[0],T.range[1]]))}})}function u(h){if(!a.isSpecificMemberAccess(h.parent,null,"bind"))return!1;const s=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return s.parent.type==="CallExpression"&&s.parent.callee===s&&s.parent.arguments.length===1&&s.parent.arguments[0].type!=="SpreadElement"}function r(h){t={isBound:u(h),thisFound:!1,upper:t}}function m(h){t.isBound&&!t.thisFound&&p(h),t=t.upper}function i(h){u(h)&&p(h)}function c(){t&&(t.thisFound=!0)}return{"ArrowFunctionExpression:exit":i,FunctionDeclaration:r,"FunctionDeclaration:exit":m,FunctionExpression:r,"FunctionExpression:exit":m,ThisExpression:c}}},wl}var Al,uv;function DT(){if(uv)return Al;uv=1;const a=Ue(),e=qt(),n=a.getPrecedence;return Al={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow unnecessary boolean casts",recommended:!0,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{anyOf:[{type:"object",properties:{enforceForInnerExpressions:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{enforceForLogicalOperands:{type:"boolean"}},additionalProperties:!1}]}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(o){const t=o.sourceCode,[{enforceForLogicalOperands:l,enforceForInnerExpressions:p}]=o.options,u=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function r(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function m(f){return r(f.parent)&&f===f.parent.arguments[0]||u.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function i(f){return f.parent.type==="ChainExpression"||(l||p)&&f.parent.type==="LogicalExpression"&&(f.parent.operator==="||"||f.parent.operator==="&&"||p&&f.parent.operator==="??"&&f.parent.right===f)||p&&(f.parent.type==="ConditionalExpression"&&(f.parent.consequent===f||f.parent.alternate===f)||f.parent.type==="SequenceExpression"&&f.parent.expressions.at(-1)===f)?i(f.parent):m(f)}function c(f){return!!t.getCommentsInside(f).length}function h(f){return e.isParenthesized(1,f,t)}function s(f,g){if(f.parent.type==="ChainExpression")return s(f.parent,g);if(h(f))return!1;const d=f.parent;switch(d.type){case"CallExpression":case"NewExpression":return g.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":case"SequenceExpression":return!1;case"ConditionalExpression":if(f===d.test)return n(g)<=n(d);if(f===d.consequent||f===d.alternate)return n(g)<n({type:"AssignmentExpression"});throw new Error("Ternary child must be test, consequent, or alternate.");case"UnaryExpression":return n(g)<n(d);case"LogicalExpression":return a.isMixedLogicalAndCoalesceExpressions(g,d)?!0:f===d.left?n(g)<n(d):n(g)<=n(d);default:throw new Error(`Unexpected parent type: ${d.type}`)}}return{UnaryExpression(f){const g=f.parent;f.operator!=="!"||g.type!=="UnaryExpression"||g.operator!=="!"||i(g)&&o.report({node:g,messageId:"unexpectedNegation",fix(d){if(c(g))return null;if(s(g,f.argument))return d.replaceText(g,`(${t.getText(f.argument)})`);let E="";const S=t.getTokenBefore(g),x=t.getFirstToken(f.argument);return S&&S.range[1]===g.range[0]&&!a.canTokensBeAdjacent(S,x)&&(E=" "),d.replaceText(g,E+t.getText(f.argument))}})},CallExpression(f){f.callee.type!=="Identifier"||f.callee.name!=="Boolean"||i(f)&&o.report({node:f,messageId:"unexpectedCall",fix(g){const d=f.parent;if(f.arguments.length===0){if(d.type==="UnaryExpression"&&d.operator==="!"){if(c(d))return null;const E="true";let S="";const x=t.getTokenBefore(d);return x&&x.range[1]===d.range[0]&&!a.canTokensBeAdjacent(x,E)&&(S=" "),g.replaceText(d,S+E)}return c(f)?null:g.replaceText(f,"false")}if(f.arguments.length===1){const E=f.arguments[0];return E.type==="SpreadElement"||c(f)?null:s(f,E)?g.replaceText(f,`(${t.getText(E)})`):g.replaceText(f,t.getText(E))}return null}})}}}},Al}var Tl,cv;function IT(){if(cv)return Tl;cv=1;const a=Ue();return Tl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary labels",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(e){const n=e.sourceCode;let o=null;function t(m){o={label:m.parent.type==="LabeledStatement"?m.parent.label:null,breakable:!0,upper:o}}function l(){o=o.upper}function p(m){a.isBreakableStatement(m.body)||(o={label:m.label,breakable:!1,upper:o})}function u(m){a.isBreakableStatement(m.body)||(o=o.upper)}function r(m){if(!m.label)return;const i=m.label;for(let c=o;c!==null;c=c.upper)if(c.breakable||c.label&&c.label.name===i.name){c.breakable&&c.label&&c.label.name===i.name&&e.report({node:i,messageId:"unexpected",data:i,fix(h){const s=n.getFirstToken(m);return n.commentsExistBetween(s,i)?null:h.removeRange([s.range[1],i.range[1]])}});return}}return{WhileStatement:t,"WhileStatement:exit":l,DoWhileStatement:t,"DoWhileStatement:exit":l,ForStatement:t,"ForStatement:exit":l,ForInStatement:t,"ForInStatement:exit":l,ForOfStatement:t,"ForOfStatement:exit":l,SwitchStatement:t,"SwitchStatement:exit":l,LabeledStatement:p,"LabeledStatement:exit":u,BreakStatement:r,ContinueStatement:r}}},Tl}var kl,fv;function PT(){if(fv)return kl;fv=1;const{isParenthesized:a}=qt(),e=Ue();return kl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-parens",url:"https://eslint.style/rules/no-extra-parens"}}]},type:"layout",docs:{description:"Disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},ternaryOperandBinaryExpressions:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"},allowParensAfterCommentPattern:{type:"string"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(n){const o=n.sourceCode,t=new WeakSet,l=e.getPrecedence,p=n.options[0]!=="functions",u=p&&n.options[1]&&n.options[1].conditionalAssign===!1,r=p&&n.options[1]&&n.options[1].ternaryOperandBinaryExpressions===!1,m=p&&n.options[1]&&n.options[1].nestedBinaryExpressions===!1,i=p&&n.options[1]&&n.options[1].returnAssign===!1,c=p&&n.options[1]&&n.options[1].ignoreJSX,h=p&&n.options[1]&&n.options[1].enforceForArrowConditionals===!1,s=p&&n.options[1]&&n.options[1].enforceForSequenceExpressions===!1,f=p&&n.options[1]&&n.options[1].enforceForNewInMemberExpressions===!1,g=p&&n.options[1]&&n.options[1].enforceForFunctionPrototypeMethods===!1,d=p&&n.options[1]&&n.options[1].allowParensAfterCommentPattern,E=l({type:"AssignmentExpression"}),S=l({type:"UpdateExpression"});let x;function T($){const ae=e.skipChainExpression($);if(ae.type!=="CallExpression")return!1;const Ie=e.skipChainExpression(ae.callee);return Ie.type==="MemberExpression"&&Ie.object.type==="FunctionExpression"&&["call","apply"].includes(e.getStaticPropertyName(Ie))}function C($){if($.type==="JSXElement"||$.type==="JSXFragment"){const ae=$.loc.start.line===$.loc.end.line;switch(c){case"all":return!1;case"multi-line":return ae;case"single-line":return!ae}}return $.type==="SequenceExpression"&&s||T($)&&g?!1:p||$.type==="FunctionExpression"||$.type==="ArrowFunctionExpression"}function v($){return a(1,$,o)}function A($){return a(2,$,o)}function b($){return C($)&&v($)}function w($){return C($)&&A($)}function k($,ae){return!!(C($)&&v($)&&(l($)>=ae||A($)))}function R($){return u&&$.test.type==="AssignmentExpression"}function F($){for(let ae=$;ae;ae=ae.parent)if(ae.type==="ReturnStatement"||ae.type==="ArrowFunctionExpression"&&ae.body.type!=="BlockStatement")return!0;return!1}function L($){const ae=o.getLastToken($),Ie=o.getTokenBefore(ae);return $.arguments.length>0||e.isOpeningParenToken(Ie)&&e.isClosingParenToken(ae)&&$.callee.range[1]<$.range[1]}function P($){return!!($.type==="AssignmentExpression"||$.type==="ConditionalExpression"&&($.consequent.type==="AssignmentExpression"||$.alternate.type==="AssignmentExpression")||$.left&&$.left.type==="AssignmentExpression"||$.right&&$.right.type==="AssignmentExpression")}function O($){return!i||!F($)?!1:$.type==="ReturnStatement"?$.argument&&P($.argument):$.type==="ArrowFunctionExpression"&&$.body.type!=="BlockStatement"?P($.body):P($)}function q($,ae){return $.loc.end.line===ae.loc.start.line?b(ae):w(ae)}function N($){const ae=o.getTokenBefore($),Ie=o.getTokenBefore(ae,{includeComments:!0}),Ne=o.getTokenAfter(ae,{includeComments:!0});return Ie&&Ie.range[1]===ae.range[0]&&ae.range[1]===Ne.range[0]&&!e.canTokensBeAdjacent(Ie,Ne)}function _($){const ae=o.getTokensAfter($,{count:2}),Ie=ae[0],Ne=ae[1],Be=o.getLastToken($);return Ie&&Ne&&!o.isSpaceBetweenTokens(Ie,Ne)&&!e.canTokensBeAdjacent(Be,Ne)}function G($){const ae=e.skipChainExpression($);return ae.type==="CallExpression"&&ae.callee.type==="FunctionExpression"}function B($){return $&&($.type==="Identifier"||$.type==="MemberExpression")}function z($){return $.type!=="Literal"||typeof $.value!="string"||A($)?!0:!e.isTopLevelExpressionStatement($.parent)}function H($){const ae=o.getTokenBefore($),Ie=o.getTokenAfter($);if(!A($)){if(t.has(o.getFirstToken($))||G($)&&!v($.callee))return;if(d){const Be=o.getCommentsBefore(ae),j=Be.length,Qe=new RegExp(d,"u");if(j>0&&Qe.test(Be[j-1].value))return}}function Ne(){n.report({node:$,loc:ae.loc,messageId:"unexpected",fix:z($)?Be=>{const j=o.text.slice(ae.range[1],Ie.range[0]);return Be.replaceTextRange([ae.range[0],Ie.range[1]],(N($)?" ":"")+j+(_($)?" ":""))}:null})}if(x){x.reports.push({node:$,finishReport:Ne});return}Ne()}function ce($){k($.argument,l($))&&H($.argument)}function re($){let ae=$.object,Ie=$.object.type;for(;Ie==="MemberExpression";)ae=ae.object,Ie=ae.type;return Ie==="CallExpression"}function Fe($){const ae=$.callee;k(ae,l($))&&(w(ae)||!(G($)||ae.type==="NewExpression"&&!L(ae)&&!($.type==="NewExpression"&&!L($))||$.type==="NewExpression"&&ae.type==="MemberExpression"&&re(ae)||!$.optional&&ae.type==="ChainExpression"))&&H($.callee),$.arguments.filter(Ie=>k(Ie,E)).forEach(H)}function X($){const ae=l($),Ie=l($.left),Ne=l($.right),Be=$.operator==="**",j=m&&($.left.type==="BinaryExpression"||$.left.type==="LogicalExpression"),Qe=m&&($.right.type==="BinaryExpression"||$.right.type==="LogicalExpression");!j&&b($.left)&&(!(["AwaitExpression","UnaryExpression"].includes($.left.type)&&Be)&&!e.isMixedLogicalAndCoalesceExpressions($.left,$)&&(Ie>ae||Ie===ae&&!Be)||A($.left))&&H($.left),!Qe&&b($.right)&&(!e.isMixedLogicalAndCoalesceExpressions($.right,$)&&(Ne>ae||Ne===ae&&Be)||A($.right))&&H($.right)}function I($){if(!$.superClass)return;(l($.superClass)>S?b($.superClass):w($.superClass))&&H($.superClass)}function W($){k($.argument,E)&&H($.argument)}function oe($){const ae=v($)?o.getTokenBefore($):o.getFirstToken($),Ie=o.getTokenAfter(ae,e.isNotOpeningParenToken),Ne=Ie?o.getTokenAfter(Ie):null,Be=Ie?o.getTokenAfter(Ie,e.isNotClosingParenToken):null;e.isOpeningParenToken(ae)&&(e.isOpeningBraceToken(Ie)||Ie.type==="Keyword"&&(Ie.value==="function"||Ie.value==="class"||Ie.value==="let"&&Be&&(e.isOpeningBracketToken(Be)||Be.type==="Identifier"))||Ie&&Ie.type==="Identifier"&&Ie.value==="async"&&Ne&&Ne.type==="Keyword"&&Ne.value==="function")&&t.add(Ie),($.parent.type==="ExportDefaultDeclaration"?k($,E):b($))&&H($)}function ie($,ae){const Ie=[$];let Ne=$;for(;Ne!==ae;){if(Ne=Ne.parent,Ne===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ie.push(Ne)}return Ie}function se($,ae){return ie(ae,$).reverse()}function de($,ae){switch($.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return $.params.includes(ae);case"CallExpression":case"NewExpression":return $.arguments.includes(ae);case"MemberExpression":return $.computed&&$.property===ae;case"ConditionalExpression":return $.consequent===ae;default:return!1}}function be(){x={upper:x,inExpressionNodes:[],reports:[]}}function xe(){const{upper:$,inExpressionNodes:ae,reports:Ie}=x;$?($.inExpressionNodes.push(...ae),$.reports.push(...Ie)):Ie.forEach(({finishReport:Ne})=>Ne()),x=$}function Te($){return x.reports.some(ae=>ae.node===$)}function J($){x.reports=x.reports.filter(ae=>ae.node!==$)}function Q($){return $.type==="MemberExpression"?$.parent.type==="NewExpression"&&$.parent.callee===$?!0:$.parent.object===$&&Q($.parent):!1}function ke({left:$,operator:ae,right:Ie}){if($.type==="Identifier"&&["=","&&=","||=","??="].includes(ae)){const Ne=Ie.type;if(Ne==="ArrowFunctionExpression"||(Ne==="FunctionExpression"||Ne==="ClassExpression")&&!Ie.id)return!0}return!1}return{ArrayExpression($){$.elements.filter(ae=>ae&&k(ae,E)).forEach(H)},ArrayPattern($){$.elements.filter(ae=>B(ae)&&b(ae)).forEach(H)},ArrowFunctionExpression($){if(!O($)&&!($.body.type==="ConditionalExpression"&&h)&&$.body.type!=="BlockStatement"){const ae=o.getFirstToken($.body,e.isNotOpeningParenToken),Ie=o.getTokenBefore(ae);e.isOpeningParenToken(Ie)&&e.isOpeningBraceToken(ae)&&t.add(ae),k($.body,E)&&H($.body)}},AssignmentExpression($){B($.left)&&b($.left)&&(!ke($)||A($.left))&&H($.left),!O($)&&k($.right,l($))&&H($.right)},BinaryExpression($){x&&$.operator==="in"&&x.inExpressionNodes.push($),X($)},CallExpression:Fe,ConditionalExpression($){if(O($))return;const ae=new Set(["BinaryExpression","LogicalExpression"]);!(r&&ae.has($.test.type))&&!R($)&&k($.test,l({type:"LogicalExpression",operator:"||"}))&&H($.test),!(r&&ae.has($.consequent.type))&&k($.consequent,E)&&H($.consequent),!(r&&ae.has($.alternate.type))&&k($.alternate,E)&&H($.alternate)},DoWhileStatement($){b($.test)&&!R($)&&H($.test)},ExportDefaultDeclaration:$=>oe($.declaration),ExpressionStatement:$=>oe($.expression),ForInStatement($){if($.left.type!=="VariableDeclaration"){const ae=o.getFirstToken($.left,e.isNotOpeningParenToken);ae.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ae,e.isNotClosingParenToken))&&t.add(ae)}b($.left)&&H($.left),b($.right)&&H($.right)},ForOfStatement($){if($.left.type!=="VariableDeclaration"){const ae=o.getFirstToken($.left,e.isNotOpeningParenToken);ae.value==="let"&&t.add(ae)}b($.left)&&H($.left),k($.right,E)&&H($.right)},ForStatement($){if($.test&&b($.test)&&!R($)&&H($.test),$.update&&b($.update)&&H($.update),$.init){if($.init.type!=="VariableDeclaration"){const ae=o.getFirstToken($.init,e.isNotOpeningParenToken);ae.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ae,e.isNotClosingParenToken))&&t.add(ae)}be(),b($.init)&&H($.init)}},"ForStatement > *.init:exit"($){x.reports.length&&x.inExpressionNodes.forEach(ae=>{const Ie=se($,ae);let Ne;for(let Be=0;Be<Ie.length;Be++){const j=Ie[Be];if(Be<Ie.length-1){const Qe=Ie[Be+1];if(de(j,Qe))return}if(v(j))if(Te(j)){if(A(j))return;Ne||(Ne=j)}else return}J(Ne)}),xe()},IfStatement($){b($.test)&&!R($)&&H($.test)},ImportExpression($){const{source:ae}=$;ae.type==="SequenceExpression"?w(ae)&&H(ae):b(ae)&&H(ae)},LogicalExpression:X,MemberExpression($){const Ie=Q($)&&re($)?w($.object):b($.object)&&!(T($.parent)&&$.parent.callee===$&&g);Ie&&l($.object)>=l($)&&($.computed||!(e.isDecimalInteger($.object)||$.object.type==="Literal"&&$.object.regex))&&H($.object),Ie&&$.object.type==="CallExpression"&&H($.object),Ie&&!f&&$.object.type==="NewExpression"&&L($.object)&&H($.object),Ie&&$.optional&&$.object.type==="ChainExpression"&&H($.object),$.computed&&b($.property)&&H($.property)},"MethodDefinition[computed=true]"($){k($.key,E)&&H($.key)},NewExpression:Fe,ObjectExpression($){$.properties.filter(ae=>ae.value&&k(ae.value,E)).forEach(ae=>H(ae.value))},ObjectPattern($){$.properties.filter(ae=>{const Ie=ae.value;return B(Ie)&&b(Ie)}).forEach(ae=>H(ae.value))},Property($){if($.computed){const{key:ae}=$;ae&&k(ae,E)&&H(ae)}},PropertyDefinition($){$.computed&&k($.key,E)&&H($.key),$.value&&k($.value,E)&&H($.value)},RestElement($){const ae=$.argument;B(ae)&&b(ae)&&H(ae)},ReturnStatement($){const ae=o.getFirstToken($);O($)||$.argument&&q(ae,$.argument)&&!($.argument.type==="Literal"&&$.argument.regex)&&H($.argument)},SequenceExpression($){const ae=l($);$.expressions.filter(Ie=>k(Ie,ae)).forEach(H)},SwitchCase($){$.test&&b($.test)&&H($.test)},SwitchStatement($){b($.discriminant)&&H($.discriminant)},ThrowStatement($){const ae=o.getFirstToken($);q(ae,$.argument)&&H($.argument)},UnaryExpression:ce,UpdateExpression($){if($.prefix)ce($);else{const{argument:ae}=$,Ie=o.getLastToken($);ae.loc.end.line===Ie.loc.start.line?ce($):w(ae)&&H(ae)}},AwaitExpression:ce,VariableDeclarator($){$.init&&k($.init,E)&&!($.init.type==="Literal"&&$.init.regex)&&H($.init)},WhileStatement($){b($.test)&&!R($)&&H($.test)},WithStatement($){b($.object)&&H($.object)},YieldExpression($){if($.argument){const ae=o.getFirstToken($);(l($.argument)>=l($)&&q(ae,$.argument)||w($.argument))&&H($.argument)}},ClassDeclaration:I,ClassExpression:I,SpreadElement:W,SpreadProperty:W,ExperimentalSpreadProperty:W,TemplateLiteral($){$.expressions.filter(ae=>ae&&b(ae)).forEach(H)},AssignmentPattern($){const{left:ae,right:Ie}=$;B(ae)&&b(ae)&&H(ae),Ie&&k(Ie,E)&&H(Ie)}}}},kl}var Dl,pv;function FT(){if(pv)return Dl;pv=1;const a=nn(),e=Ue();return Dl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-semi",url:"https://eslint.style/rules/no-extra-semi"}}]},type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(n){const o=n.sourceCode;function t(u){const r=o.getTokenAfter(u);if(!r||r.type!=="String")return!0;const m=o.getNodeByRangeIndex(r.range[0]);return!e.isTopLevelExpressionStatement(m.parent)}function l(u){n.report({node:u,messageId:"unexpected",fix:t(u)?r=>new a(r,n.sourceCode).retainSurroundingTokens(u).remove(u):null})}function p(u){for(let r=u;r.type==="Punctuator"&&!e.isClosingBraceToken(r);r=o.getTokenAfter(r))e.isSemicolonToken(r)&&l(r)}return{EmptyStatement(u){const r=u.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(r.type)||l(u)},ClassBody(u){p(o.getFirstToken(u,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(u){p(o.getTokenAfter(u))}}}},Dl}var Il,mv;function RT(){if(mv)return Il;mv=1;const{directivesPattern:a}=Hh(),e=/falls?\s?through/iu;function n(p){for(const u of p)if(u.reachable)return!0;return!1}function o(p,u){return u.test(p)&&!a.test(p.trim())}function t(p,u,r,m){const i=r.sourceCode;if(p.consequent.length===1&&p.consequent[0].type==="BlockStatement"){const h=i.getLastToken(p.consequent[0]),s=i.getCommentsBefore(h).pop();if(s&&o(s.value,m))return s}const c=i.getCommentsBefore(u).pop();return c&&o(c.value,m)?c:null}function l(p,u){return u.loc.start.line>p.loc.end.line+1}return Il={meta:{type:"problem",defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string"},allowEmptyCase:{type:"boolean"},reportUnusedFallthroughComment:{type:"boolean"}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(p){const u=[];let r=new Set;const m=p.sourceCode,[{allowEmptyCase:i,commentPattern:c,reportUnusedFallthroughComment:h}]=p.options,s=c?new RegExp(c,"u"):e;let f=null;return{onCodePathStart(){u.push(r),r=new Set},onCodePathEnd(){r=u.pop()},onUnreachableCodePathSegmentStart(g){r.add(g)},onUnreachableCodePathSegmentEnd(g){r.delete(g)},onCodePathSegmentStart(g){r.add(g)},onCodePathSegmentEnd(g){r.delete(g)},SwitchCase(g){if(f&&f.node.parent===g.parent){const d=t(f.node,g,p,s);f.isFallthrough&&!d?p.report({messageId:g.test?"case":"default",node:g}):h&&!f.isSwitchExitReachable&&d&&p.report({messageId:"unusedFallthroughComment",node:d})}f=null},"SwitchCase:exit"(g){const d=m.getTokenAfter(g),E=n(r),S=E&&(g.consequent.length>0||!i&&l(g,d))&&g.parent.cases.at(-1)!==g;f={node:g,isSwitchExitReachable:E,isFallthrough:S}}}}},Il}var Pl,hv;function _T(){if(hv)return Pl;hv=1;const a=Ue();return Pl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-floating-decimal",url:"https://eslint.style/rules/no-floating-decimal"}}]},type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){const n=e.sourceCode;return{Literal(o){typeof o.value=="number"&&(o.raw.startsWith(".")&&e.report({node:o,messageId:"leading",fix(t){const l=n.getTokenBefore(o),p=l&&l.range[1]===o.range[0]&&!a.canTokensBeAdjacent(l,`0${o.raw}`);return t.insertTextBefore(o,p?" 0":"0")}}),o.raw.indexOf(".")===o.raw.length-1&&e.report({node:o,messageId:"trailing",fix:t=>t.insertTextAfter(o,"0")}))}}}},Pl}var Fl,dv;function BT(){if(dv)return Fl;dv=1;const a=Ue();return Fl={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){const n=e.sourceCode;function o(p){a.getModifyingReferences(p).forEach(u=>{e.report({node:u.identifier,messageId:"isAFunction",data:{name:u.identifier.name}})})}function t(p){p.defs[0].type==="FunctionName"&&o(p.references)}function l(p){n.getDeclaredVariables(p).forEach(t)}return{FunctionDeclaration:l,FunctionExpression:l}}},Fl}var Rl,gv;function LT(){return gv||(gv=1,Rl={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.sourceCode,[{exceptions:n}]=a.options;function o(l,p,u){const r=l.identifier;l.init===!1&&l.isWrite()&&(p===0||u[p-1].identifier!==r)&&a.report({node:r,messageId:"globalShouldNotBeModified",data:{name:r.name}})}function t(l){l.writeable===!1&&!n.includes(l.name)&&l.references.forEach(o)}return{Program(l){e.getScope(l).variables.forEach(t)}}}}),Rl}var _l,yv;function OT(){if(yv)return _l;yv=1;const a=Ue(),e=/^(?:i|lastI)ndexOf$/u,n=["~","!!","+","- -","-","*"];function o(f){return f.operator==="!"&&f.argument.type==="UnaryExpression"&&f.argument.operator==="!"}function t(f){if(f.operator!=="~")return!1;const g=a.skipChainExpression(f.argument);return g.type==="CallExpression"&&a.isSpecificMemberAccess(g.callee,null,e)}function l(f){return f.operator==="*"&&(f.left.type==="Literal"&&f.left.value===1||f.right.type==="Literal"&&f.right.value===1)}function p(f,g){return f.type==="BinaryExpression"&&f.operator==="*"&&f.right.type==="Literal"&&f.right.value===1&&f.parent.type==="BinaryExpression"&&f.parent.operator==="/"&&f.parent.left===f&&!a.isParenthesised(g,f)}function u(f){return f.type==="Literal"&&typeof f.value=="number"||f.type==="CallExpression"&&(f.callee.name==="Number"||f.callee.name==="parseInt"||f.callee.name==="parseFloat")}function r(f){const g=f.left,d=f.right;return d.type!=="BinaryExpression"&&!u(d)?d:g.type!=="BinaryExpression"&&!u(g)?g:null}function m(f){return a.isStringLiteral(f)||f.type==="CallExpression"&&f.callee.type==="Identifier"&&f.callee.name==="String"}function i(f){return a.isStringLiteral(f)&&(f.value===""||f.type==="TemplateLiteral"&&f.quasis.length===1&&f.quasis[0].value.cooked==="")}function c(f){return f.operator==="+"&&(i(f.left)&&!m(f.right)||i(f.right)&&!m(f.left))}function h(f){return f.operator==="+="&&i(f.right)}function s(f){return i(f.left)?f.right:f.left}return _l={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean"},number:{type:"boolean"},string:{type:"boolean"},disallowTemplateShorthand:{type:"boolean"},allow:{type:"array",items:{enum:n},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(f){const[g]=f.options,d=f.sourceCode;function E(S,x,T,C){function v(A){const b=d.getTokenBefore(S);return b?.range[1]===S.range[0]&&!a.canTokensBeAdjacent(b,x)?A.replaceText(S,` ${x}`):A.replaceText(S,x)}f.report({node:S,messageId:"implicitCoercion",data:{recommendation:x},fix(A){return C?v(A):null},suggest:[{messageId:"useRecommendation",data:{recommendation:x},fix(A){return C||!T?null:v(A)}}]})}return{UnaryExpression(S){let x;if(x=g.allow.includes("!!"),!x&&g.boolean&&o(S)){const T=`Boolean(${d.getText(S.argument.argument)})`,v=a.getVariableByName(d.getScope(S),"Boolean")?.identifiers.length===0;E(S,T,!0,v)}if(x=g.allow.includes("~"),!x&&g.boolean&&t(S)){const T=S.argument.type==="ChainExpression"?">= 0":"!== -1",C=`${d.getText(S.argument)} ${T}`;E(S,C,!1,!1)}if(x=g.allow.includes("+"),!x&&g.number&&S.operator==="+"&&!u(S.argument)){const T=`Number(${d.getText(S.argument)})`;E(S,T,!0,!1)}if(x=g.allow.includes("- -"),!x&&g.number&&S.operator==="-"&&S.argument.type==="UnaryExpression"&&S.argument.operator==="-"&&!u(S.argument.argument)){const T=`Number(${d.getText(S.argument.argument)})`;E(S,T,!0,!1)}},"BinaryExpression:exit"(S){let x;x=g.allow.includes("*");const T=!x&&g.number&&l(S)&&!p(S,d)&&r(S);if(T){const C=`Number(${d.getText(T)})`;E(S,C,!0,!1)}if(x=g.allow.includes("-"),!x&&g.number&&S.operator==="-"&&S.right.type==="Literal"&&S.right.value===0&&!u(S.left)){const C=`Number(${d.getText(S.left)})`;E(S,C,!0,!1)}if(x=g.allow.includes("+"),!x&&g.string&&c(S)){const C=`String(${d.getText(s(S))})`;E(S,C,!0,!1)}},AssignmentExpression(S){if(!g.allow.includes("+")&&g.string&&h(S)){const T=d.getText(s(S)),C=`${T} = String(${T})`;E(S,C,!0,!1)}},TemplateLiteral(S){if(!g.disallowTemplateShorthand||S.parent.type==="TaggedTemplateExpression"||S.expressions.length!==1||S.quasis[0].value.cooked!==""||S.quasis[1].value.cooked!==""||m(S.expressions[0]))return;const T=`String(${d.getText(S.expressions[0])})`;E(S,T,!0,!1)}}}},_l}var Bl,vv;function NT(){if(vv)return Bl;vv=1;const a=new Set(["AssignmentExpression","ForInStatement","ForOfStatement"]);return Bl={meta:{type:"suggestion",defaultOptions:[{lexicalBindings:!1}],docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean"}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(e){const[{lexicalBindings:n}]=e.options,o=e.sourceCode;function t(l,p,u){e.report({node:l,messageId:p,data:{kind:u}})}return{Program(l){const p=o.getScope(l);p.variables.forEach(u=>{const r=u.writeable===!1;u.writeable!==!0&&(u.eslintExported||(u.defs.forEach(i=>{const c=i.node;(i.type==="FunctionName"||i.type==="Variable"&&i.parent.kind==="var")&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalNonLexicalBinding",i.type==="FunctionName"?"function":`'${i.parent.kind}'`)),n&&(i.type==="ClassName"||i.type==="Variable"&&(i.parent.kind==="let"||i.parent.kind==="const"))&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalLexicalBinding",i.type==="ClassName"?"class":`'${i.parent.kind}'`))}),r&&u.defs.length===0&&u.references.forEach(i=>{if(i.isWrite()&&!i.isRead()){let c=i.identifier.parent;for(;c&&!a.has(c.type);)c=c.parent;t(c??i.identifier,"assignmentToReadonlyGlobal")}})))}),p.implicit.variables.forEach(u=>{u.defs.forEach(r=>{t(r.node,"globalVariableLeak")})})}}}},Bl}var Ll,Ev;function MT(){if(Ev)return Ll;Ev=1;const a=Ue(),{getStaticValue:e}=qt();return Ll={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string.",execScript:"Implied eval. Do not use execScript()."}},create(n){const o=Object.freeze(["global","window","globalThis"]),t=/^(?:set(?:Interval|Timeout)|execScript)$/u,l=n.sourceCode;function p(m){return m.type==="Literal"&&typeof m.value=="string"||m.type==="TemplateLiteral"?!0:m.type==="BinaryExpression"&&m.operator==="+"?p(m.left)||p(m.right):!1}function u(m){const[i]=m.arguments;if(i){const c=e(i,l.getScope(m));if(c&&typeof c.value=="string"||p(i)){const g=(m.callee.type==="Identifier"?m.callee.name:a.getStaticPropertyName(m.callee))==="execScript";n.report({node:m,messageId:g?"execScript":"impliedEval"})}}}function r(m){const{references:i,name:c}=m;i.forEach(h=>{let f=h.identifier.parent;for(;a.isSpecificMemberAccess(f,null,c);)f=f.parent;if(a.isSpecificMemberAccess(f,null,t)){const g=f.parent.type==="ChainExpression"?f.parent:f,d=g.parent;d.type==="CallExpression"&&d.callee===g&&u(d)}})}return{CallExpression(m){a.isSpecificId(m.callee,t)&&l.isGlobalReference(m.callee)&&u(m)},"Program:exit"(m){const i=l.getScope(m);o.map(c=>a.getVariableByName(i,c)).filter(c=>!!c&&c.defs.length===0).forEach(r)}}}},Ll}var Ol,Sv;function jT(){if(Sv)return Ol;Sv=1;const{findVariable:a}=qt(),e=Ue(),n={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function o(m){const{parent:i}=m;return i.type==="AssignmentExpression"&&i.left===m||i.type==="ArrayPattern"||i.type==="Property"&&i.value===m&&i.parent.type==="ObjectPattern"||i.type==="RestElement"||i.type==="AssignmentPattern"&&i.left===m}function t(m){const i=m.parent.type==="ChainExpression"?m.parent:m,{parent:c}=i;return c.type==="UpdateExpression"&&c.argument===i||c.type==="UnaryExpression"&&c.operator==="delete"&&c.argument===i}function l(m){const{parent:i}=m;return i.type==="ForInStatement"&&i.left===m||i.type==="ForOfStatement"&&i.left===m}function p(m,i){const{parent:c}=m;if(c.type!=="CallExpression"||c.arguments[0]!==m)return!1;const h=e.skipChainExpression(c.callee);if(!e.isSpecificMemberAccess(h,"Object",n.Object)&&!e.isSpecificMemberAccess(h,"Reflect",n.Reflect))return!1;const s=a(i,h.object);return s!==null&&s.scope.type==="global"}function u(m,i){const{parent:c}=m;return c.type==="MemberExpression"&&c.object===m&&(o(c)||t(c)||l(c))||p(m,i)}function r(m){let i=m.parent;for(;i&&i.type!=="AssignmentExpression"&&i.type!=="UpdateExpression"&&i.type!=="UnaryExpression"&&i.type!=="CallExpression"&&i.type!=="ForInStatement"&&i.type!=="ForOfStatement";)i=i.parent;return i||m}return Ol={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(m){const i=m.sourceCode;return{ImportDeclaration(c){const h=i.getScope(c);for(const s of i.getDeclaredVariables(c)){const f=s.defs.some(d=>d.node.type==="ImportNamespaceSpecifier");let g=null;for(const d of s.references){const E=d.identifier;E!==g&&(g=E,d.isWrite()?m.report({node:r(E),messageId:"readonly",data:{name:E.name}}):f&&u(E,h)&&m.report({node:r(E),messageId:"readonlyMember",data:{name:E.name}}))}}}}}},Ol}var Nl,bv;function UT(){if(bv)return Nl;bv=1;const a=Ue();return Nl={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow inline comments after code",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){const n=e.sourceCode,[{ignorePattern:o}]=e.options,t=o&&new RegExp(o,"u");function l(p){const u=String(n.lines[p.loc.start.line-1]),r=String(n.lines[p.loc.end.line-1]),m=u.slice(0,p.loc.start.column).trim(),i=r.slice(p.loc.end.column).trim(),c=!m,h=!i;if(!(c&&h)&&!(t&&t.test(p.value))){if((c||m==="{")&&(h||i==="}")){const s=n.getNodeByRangeIndex(p.range[0]);if(s&&s.type==="JSXEmptyExpression")return}a.isDirectiveComment(p)||e.report({node:p,messageId:"unexpectedInlineComment"})}}return{Program(){n.getAllComments().filter(p=>p.type!=="Shebang").forEach(l)}}}},Nl}var Ml,xv;function qT(){if(xv)return Ml;xv=1;const a=Ue(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),n=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function o(t){let{parent:l}=t;for(;l;){if(l.type==="StaticBlock")return"class static block body";if(a.isFunction(l))return"function body";({parent:l}=l)}return"program"}return Ml={meta:{type:"problem",defaultOptions:["functions",{blockScopedFunctions:"allow"}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(t){const l=t.options[0]==="both",{blockScopedFunctions:p}=t.options[1],u=t.sourceCode,r=t.languageOptions.ecmaVersion;function m(i){const c=i.parent;c.type==="BlockStatement"&&n.has(c.parent.type)||e.has(c.type)||t.report({node:i,messageId:"moveDeclToRoot",data:{type:i.type==="FunctionDeclaration"?"function":"variable",body:o(i)}})}return{FunctionDeclaration(i){const c=u.getScope(i).upper.isStrict;p==="allow"&&r>=2015&&c||m(i)},VariableDeclaration(i){l&&i.kind==="var"&&m(i)}}}},Ml}var jl,Cv;function VT(){if(Cv)return jl;Cv=1;const a=ur().RegExpValidator,e=new a,n="dgimsuvy",o=void 0;return jl={meta:{type:"problem",defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){const[{allowConstructorFlags:l}]=t.options;let p=[];if(l){const h=l.join("").replace(new RegExp(`[${n}]`,"gu"),"");h&&(p=[...new Set(h)])}function u(h,s){t.report({node:h,messageId:"regexMessage",data:{message:s}})}function r(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function m(h){return h.arguments.length<2?"":r(h.arguments[1])?h.arguments[1].value:null}function i(h,s){try{return e.validatePattern(h,o,o,s),null}catch(f){return f.message}}function c(h,s,f){const g=[];if(typeof s=="string")for(const d of s)f.includes(d)&&g.push(d);return h&&h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":g.length>0?`Duplicate flags ('${g.join("")}') supplied to RegExp constructor`:s?`Invalid flags supplied to RegExp constructor '${s}'`:null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;const s=m(h);let f=s;const g=p.length>0?n.split("").concat(p):n.split("");s&&g.forEach(S=>{f=f.replace(S,"")});let d=c(s,f,g);if(d){u(h,d);return}if(!r(h.arguments[0]))return;const E=h.arguments[0].value;d=s===null?i(E,{unicode:!0,unicodeSets:!1})&&i(E,{unicode:!1,unicodeSets:!0})&&i(E,{unicode:!1,unicodeSets:!1}):i(E,{unicode:s.includes("u"),unicodeSets:s.includes("v")}),d&&u(h,d)}}}},jl}var Ul,wv;function $T(){if(wv)return Ul;wv=1;const a=Ue();function e(n,o){return n.origin==="function"&&o.type==="ArrowFunctionExpression"}return Ul={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(n){const[{capIsConstructor:o}]=n.options,t=[],l=n.sourceCode;return t.getCurrent=function(){const p=this.at(-1);return p.init||(p.init=!0,p.valid=!a.isDefaultThisBinding(p.node,l,{capIsConstructor:o})),p},{onCodePathStart(p,u){if(!e(p,u)){if(p.origin==="program"){const r=l.getScope(u),m=n.languageOptions.parserOptions.ecmaFeatures||{};t.push({init:!0,node:u,valid:!(u.sourceType==="module"||m.globalReturn&&r.childScopes[0].isStrict)});return}t.push({init:!l.getScope(u).isStrict,node:u,valid:!0})}},onCodePathEnd(p,u){e(p,u)||t.pop()},"AccessorProperty > *.value"(p){t.push({init:!0,node:p,valid:!0})},"AccessorProperty:exit"(){t.pop()},ThisExpression(p){if(p.parent.type==="AccessorProperty"&&p.parent.value===p)return;const u=t.getCurrent();u&&!u.valid&&n.report({node:p,messageId:"unexpectedThis"})}}}},Ul}var ql,Av;function WT(){if(Av)return ql;Av=1;const a=Ue(),e=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,n=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gmu,o=/[\u2028\u2029]/gmu,t=a.createGlobalLinebreakMatcher();return ql={meta:{type:"problem",defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean"},skipStrings:{type:"boolean"},skipTemplates:{type:"boolean"},skipRegExps:{type:"boolean"},skipJSXText:{type:"boolean"}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(l){const[{skipComments:p,skipStrings:u,skipRegExps:r,skipTemplates:m,skipJSXText:i}]=l.options,c=l.sourceCode,h=c.getAllComments();let s=[];function f(A){const b=A.loc.start,w=A.loc.end;s=s.filter(({loc:{start:k}})=>k.line<b.line||k.line===b.line&&k.column<b.column||k.line===w.line&&k.column>=w.column||k.line>w.line)}function g(A){const b=u&&typeof A.value=="string",w=r&&!!A.regex;(b||w)&&e.test(A.raw)&&f(A)}function d(A){typeof A.value.raw=="string"&&e.test(A.value.raw)&&f(A)}function E(A){e.test(A.value)&&f(A)}function S(A){e.test(A.raw)&&f(A)}function x(A){c.lines.forEach((w,k)=>{const R=k+1;let F;for(;(F=n.exec(w))!==null;)s.push({node:A,messageId:"noIrregularWhitespace",loc:{start:{line:R,column:F.index},end:{line:R,column:F.index+F[0].length}}})})}function T(A){const b=c.getText(),w=c.lines,k=b.match(t);let R=-1,F;for(;(F=o.exec(b))!==null;){const L=k.indexOf(F[0],R+1)||0;s.push({node:A,messageId:"noIrregularWhitespace",loc:{start:{line:L+1,column:w[L].length},end:{line:L+2,column:0}}}),R=L}}function C(){}const v={};return e.test(c.getText())?(v.Program=function(A){x(A),T(A)},v.Literal=g,v.TemplateElement=m?d:C,v.JSXText=i?S:C,v["Program:exit"]=function(){p&&h.forEach(E),s.forEach(A=>l.report(A))}):v.Program=C,v}},ql}var Vl,Tv;function GT(){if(Tv)return Vl;Tv=1;const{getStaticPropertyName:a}=Ue();return Vl={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(n){a(n)==="__iterator__"&&e.report({node:n,messageId:"noIterator"})}}}},Vl}var $l,kv;function zT(){if(kv)return $l;kv=1;const a=Ue();return $l={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{LabeledStatement(t){const l=n.getScope(t);o(l,t.label.name)&&e.report({node:t,messageId:"identifierClashWithLabel"})}}}},$l}var Wl,Dv;function HT(){if(Dv)return Wl;Dv=1;const a=Ue();return Wl={meta:{type:"suggestion",defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:"Disallow labeled statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean"},allowSwitch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){const[{allowLoop:n,allowSwitch:o}]=e.options;let t=null;function l(r){return a.isLoop(r)?"loop":r.type==="SwitchStatement"?"switch":"other"}function p(r){switch(r){case"loop":return n;case"switch":return o;default:return!1}}function u(r){let m=t;for(;m;){if(m.label===r)return m.kind;m=m.upper}return"other"}return{LabeledStatement(r){t={label:r.label.name,kind:l(r.body),upper:t}},"LabeledStatement:exit"(r){p(t.kind)||e.report({node:r,messageId:"unexpectedLabel"}),t=t.upper},BreakStatement(r){r.label&&!p(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInBreak"})},ContinueStatement(r){r.label&&!p(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInContinue"})}}}},Wl}var Gl,Iv;function KT(){return Iv||(Iv=1,Gl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(a){const e=[];let n;const o=a.sourceCode;function t(u){const r=u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";a.report({node:u,messageId:r})}function l(u){return u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"||u.parent.type==="Program"||u.parent.type==="SwitchCase"&&!(u.parent.consequent[0]===u&&u.parent.consequent.length===1)}function p(u){if(e.length===0)return;const r=u.parent;e.at(-1)===r&&e.pop()}return n={BlockStatement(u){l(u)&&t(u)}},a.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(u){l(u)&&e.push(u)},"BlockStatement:exit"(u){e.length>0&&e.at(-1)===u?(e.pop(),t(u)):(u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock")&&u.parent.body.length===1&&t(u)}},n.VariableDeclaration=function(u){u.kind!=="var"&&p(u)},n.FunctionDeclaration=function(u){o.getScope(u).isStrict&&p(u)},n.ClassDeclaration=p),n}}),Gl}var zl,Pv;function XT(){if(Pv)return zl;Pv=1;const a=Ue();return zl={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(e){const n=e.sourceCode;return{IfStatement(o){const t=o.parent,l=t.parent;t&&t.type==="BlockStatement"&&t.body.length===1&&!a.areBracesNecessary(t,n)&&l&&l.type==="IfStatement"&&t===l.alternate&&e.report({node:o,messageId:"unexpectedLonelyIf",fix(p){const u=n.getFirstToken(t),r=n.getLastToken(t),m=n.getTokenBefore(u),i=n.getTokenAfter(r),c=n.getLastToken(o.consequent),h=n.getText();return h.slice(u.range[1],o.range[0]).trim()||h.slice(o.range[1],r.range[0]).trim()||o.consequent.type!=="BlockStatement"&&c.value!==";"&&i&&(o.consequent.loc.end.line===i.loc.start.line||/^[([/+`-]/u.test(i.value)||c.value==="++"||c.value==="--")?null:p.replaceTextRange([u.range[0],r.range[1]],(m.range[1]===u.range[0]?" ":"")+n.getText(o))}})}}}},zl}var Hl,Fv;function JT(){if(Fv)return Hl;Fv=1;const a=new Set(["const","using","await using"]);function e(n){return(n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression")&&n.parent&&n.parent.type==="CallExpression"&&n.parent.callee===n}return Hl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow function declarations that contain unsafe references inside loop statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(n){const o=new Set,t=n.sourceCode;function l(m){for(let i=m;i.parent;i=i.parent){const c=i.parent;switch(c.type){case"WhileStatement":case"DoWhileStatement":return c;case"ForStatement":if(c.init!==i)return c;break;case"ForInStatement":case"ForOfStatement":if(c.right!==i)return c;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":if(o.has(c))break;return null}}return null}function p(m,i){const c=i?i.range[1]:0;let h=m,s=m;for(;s&&s.range[0]>=c;)h=s,s=l(s);return h}function u(m,i){const c=i.resolved,h=c&&c.defs[0],s=h&&h.parent,f=s&&s.type==="VariableDeclaration"?s.kind:"";if(a.has(f)||f==="let"&&s.range[0]>m.range[0]&&s.range[1]<m.range[1])return!0;const g=p(m,f==="let"?s:null).range[0];function d(E){const S=E.identifier;return!E.isWrite()||c.scope.variableScope===E.from.variableScope&&S.range[0]<g}return!!c&&c.references.every(d)}function r(m){const i=l(m);if(!i)return;const c=t.getScope(m).through;if(!(m.async||m.generator)&&e(m)&&!(m.type==="FunctionExpression"&&m.id?c.some(g=>g.identifier.name===m.id.name):!1)){o.add(m);return}const h=[...new Set(c.filter(s=>s.resolved&&!u(i,s)).map(s=>s.identifier.name))];h.length>0&&n.report({node:m,messageId:"unsafeRefs",data:{varNames:`'${h.join("', '")}'`}})}return{ArrowFunctionExpression:r,FunctionExpression:r,FunctionDeclaration:r}}},Hl}var Kl,Rv;function YT(){return Rv||(Rv=1,Kl={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(a){function e(s){return typeof s.value=="number"}function n(s){return s.raw.replace(/_/gu,"")}function o(s){return["0x","0X","0b","0B","0o","0O"].every(g=>!s.raw.startsWith(g))&&!/^0[0-7]+$/u.test(s.raw)}function t(s){const f=n(s).toUpperCase();let g;return f.startsWith("0B")?g=2:f.startsWith("0X")?g=16:g=8,!f.endsWith(s.value.toString(g).toUpperCase())}function l(s){return`${s[0]}.${s.slice(1)}`}function p(s){for(let f=0;f<s.length;f++)if(s[f]!=="0")return s.slice(f);return s}function u(s){for(let f=s.length-1;f>=0;f--)if(s[f]!=="0")return s.slice(0,f+1);return s}function r(s){const f=u(p(s));return{magnitude:s.startsWith("0")?s.length-2:s.length-1,coefficient:l(f)}}function m(s){const f=p(s);if(f.startsWith(".")){const g=f.slice(1),d=p(g);return{magnitude:d.length-g.length-1,coefficient:l(d)}}return{magnitude:f.indexOf(".")-1,coefficient:l(f.replace(".",""))}}function i(s){const f=s.replace("E","e").split("e"),g=f[0],d=s.includes(".")?m(g):r(g),E=d.coefficient,S=f.length>1?parseInt(f[1],10)+d.magnitude:d.magnitude;return`${E}e${S}`}function c(s){const f=i(n(s)),g=f.split("e")[0].replace(".","").length;if(g>100)return!0;const d=s.value.toPrecision(g),E=i(d);return f!==E}function h(s){return o(s)?c(s):t(s)}return{Literal(s){s.value&&e(s)&&h(s)&&a.report({messageId:"noLossOfPrecision",node:s})}}}}),Kl}var Xl,_v;function QT(){if(_v)return Xl;_v=1;const a=Ue(),e=2**32-1;function n(u){return typeof u=="string"?BigInt(u.slice(0,-1)):u}function o(u){return u.parent.type==="TSEnumMember"}function t(u){let r=u.parent;for(;r.parent.type==="TSUnionType";)r=r.parent;return r.parent.type==="TSTypeAliasDeclaration"}function l(u){return!!(u.parent?.type==="PropertyDefinition"&&u.parent.readonly)}function p(u){let r=u.parent;for(;r.parent.type==="TSUnionType"||r.parent.type==="TSIntersectionType";)r=r.parent;return r.parent.type==="TSIndexedAccessType"}return Xl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow magic numbers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1},ignoreEnums:{type:"boolean",default:!1},ignoreNumericLiteralTypes:{type:"boolean",default:!1},ignoreReadonlyClassProperties:{type:"boolean",default:!1},ignoreTypeIndexes:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(u){const r=u.options[0]||{},m=!!r.detectObjects,i=!!r.enforceConst,c=new Set((r.ignore||[]).map(n)),h=!!r.ignoreArrayIndexes,s=!!r.ignoreDefaultValues,f=!!r.ignoreClassFieldInitialValues,g=!!r.ignoreEnums,d=!!r.ignoreNumericLiteralTypes,E=!!r.ignoreReadonlyClassProperties,S=!!r.ignoreTypeIndexes,x=m?[]:["ObjectExpression","Property","AssignmentExpression"];function T(k){return c.has(k)}function C(k){const R=k.parent;return R.type==="AssignmentPattern"&&R.right===k}function v(k){const R=k.parent;return R.type==="PropertyDefinition"&&R.value===k}function A(k){const R=k.parent;return R.type==="CallExpression"&&k===R.arguments[1]&&(a.isSpecificId(R.callee,"parseInt")||a.isSpecificMemberAccess(R.callee,"Number","parseInt"))}function b(k){return k.parent.type.indexOf("JSX")===0}function w(k,R){const F=k.parent;return F.type==="MemberExpression"&&F.property===k&&(Number.isInteger(R)||typeof R=="bigint")&&R>=0&&R<e}return{Literal(k){if(!a.isNumericLiteral(k))return;let R,F,L;k.parent.type==="UnaryExpression"&&["-","+"].includes(k.parent.operator)?(R=k.parent,F=k.parent.operator==="-"?-k.value:k.value,L=`${k.parent.operator}${k.raw}`):(R=k,F=k.value,L=k.raw);const P=R.parent;T(F)||s&&C(R)||f&&v(R)||g&&o(R)||d&&t(R)||S&&p(R)||E&&l(R)||A(R)||b(R)||h&&w(R,F)||(P.type==="VariableDeclarator"?i&&P.parent.kind!=="const"&&u.report({node:R,messageId:"useConst"}):(!x.includes(P.type)||P.type==="AssignmentExpression"&&P.left.type==="Identifier")&&u.report({node:R,messageId:"noMagic",data:{raw:L}}))}}}},Xl}var Jl,Bv;function ZT(){return Bv||(Bv=1,Jl=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}),Jl}var Yl,Lv;function ek(){return Lv||(Lv=1,Yl=function(e){return e>=127995&&e<=127999}),Yl}var Ql,Ov;function tk(){return Ov||(Ov=1,Ql=function(e){return e>=127462&&e<=127487}),Ql}var Zl,Nv;function rk(){return Nv||(Nv=1,Zl=function(e,n){return e>=55296&&e<56320&&n>=56320&&n<57344}),Zl}var eu,Mv;function nk(){if(Mv)return eu;Mv=1;const a=ZT(),e=ek(),n=tk(),o=rk();return eu={isCombiningCharacter:a,isEmojiModifier:e,isRegionalIndicatorSymbol:n,isSurrogatePair:o},eu}var tu,jv;function ru(){if(jv)return tu;jv=1;const{RegExpValidator:a}=ur(),e=2025;function n(o,t,l="u"){if(l==="u"&&o<=5||l==="v"&&o<=2023)return!1;const p=new a({ecmaVersion:Math.min(o,e)});try{p.validatePattern(t,void 0,void 0,l==="u"?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}return tu={isValidWithUnicodeFlag:n,REGEXPP_LATEST_ECMA_VERSION:e},tu}var nu,Uv;function sk(){if(Uv)return nu;Uv=1;class a{constructor(c,h){this.start=c,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(c){this.source=c,this.pos=0}advance(c){this.pos+=c}read(c=0,h=1){const s=c+this.pos;return this.source.slice(s,s+h)}}const n={__proto__:null,b:"\b",f:"\f",n:`
|
|
98
|
-
`,r:"\r",t:" ",v:"\v"};function o(i,c){const h=i.read(0,c),s=parseInt(h,16);return i.advance(c),String.fromCharCode(s)}function t(i){const c=/\{(?<hexDigits>[\dA-
|
|
97
|
+
`)}})}}}}},No}var Mo,by;function VA(){if(by)return Mo;by=1;const{getStaticPropertyName:a,getVariableByName:e,skipChainExpression:n}=Ue();function o(u){return/^(?:alert|confirm|prompt)$/u.test(u)}function t(u,r){const m=u.references.filter(i=>i.identifier.range[0]===r.range[0]&&i.identifier.range[1]===r.range[1]);return m.length===1?m[0]:null}function l(u,r){const m=t(u,r);return m&&m.resolved&&m.resolved.defs.length>0}function p(u,r){return u.type==="global"&&r.type==="ThisExpression"?!0:r.type==="Identifier"&&(r.name==="window"||r.name==="globalThis"&&e(u,"globalThis"))?!l(u,r):!1}return Mo={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(u){const r=u.sourceCode;return{CallExpression(m){const i=n(m.callee),c=r.getScope(m);if(i.type==="Identifier"){const h=i.name;!l(c,i)&&o(i.name)&&u.report({node:m,messageId:"unexpected",data:{name:h}})}else if(i.type==="MemberExpression"&&p(c,i.object)){const h=a(i);o(h)&&u.report({node:m,messageId:"unexpected",data:{name:h}})}}}}},Mo}var jo,xy;function $A(){if(xy)return jo;xy=1;const{getVariableByName:a,isClosingParenToken:e,isOpeningParenToken:n,isStartOfExpressionStatement:o,needsPrecedingSemicolon:t}=Ue();return jo={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},fixable:"code",hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(l){const p=l.sourceCode;function u(i){const c=p.getFirstToken(i),h=p.getLastToken(i);let s=p.getLastToken(i.callee);for(;s!==h&&!n(s);)s=p.getTokenAfter(s);return p.commentsExistBetween(c,s)}function r(i){const c=p.getLastToken(i);if(!e(c))return"";let h=i.callee;do if(h=p.getTokenAfter(h),!h||h===c)return"";while(!n(h));return p.text.slice(h.range[1],c.range[0])}function m(i){if(i.callee.type!=="Identifier"||i.callee.name!=="Array"||i.typeArguments||i.arguments.length===1&&i.arguments[0].type!=="SpreadElement")return;const c=a(p.getScope(i),"Array");if(c&&c.identifiers.length===0){const h=r(i);let s,f;const g=i.arguments.reduce((E,S)=>S.type!=="SpreadElement"?E+1:E,0),d=i.optional||i.arguments.length>0&&g<2||u(i);o(i)&&t(p,i)?(s=`;[${h}]`,f="useLiteralAfterSemicolon"):(s=`[${h}]`,f="useLiteral"),l.report({node:i,messageId:"preferLiteral",fix(E){return d?null:E.replaceText(i,s)},suggest:[{messageId:f,fix(E){return d?E.replaceText(i,s):null}}]})}}return{CallExpression:m,NewExpression:m}}},jo}var Uo,Cy;function WA(){return Cy||(Cy=1,Uo={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(a){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){a.report({node:a.sourceCode.getFirstToken(e.arguments[0],n=>n.value==="async"),messageId:"async"})}}}}),Uo}var qo,wy;function GA(){if(wy)return qo;wy=1;function a(n){const o=n.type;return o==="FunctionDeclaration"||o==="FunctionExpression"||o==="ArrowFunctionExpression"||o==="ForOfStatement"&&n.await===!0}function e(n,o){switch(o.type){case"ForStatement":return n===o.test||n===o.update||n===o.body;case"ForOfStatement":case"ForInStatement":return n===o.body||n===o.left&&n.kind==="await using";case"WhileStatement":case"DoWhileStatement":return n===o.test||n===o.body;default:return!1}}return qo={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(n){function o(t){if(t.type==="VariableDeclaration"&&t.kind!=="await using"||t.type==="ForOfStatement"&&!t.await)return;let l=t,p=l.parent;for(;p&&!a(p);){if(e(l,p)){n.report({node:t,messageId:"unexpectedAwait"});return}l=p,p=p.parent}}return{AwaitExpression:o,ForOfStatement:o,VariableDeclaration:o}}},qo}var Vo,Ay;function zA(){if(Ay)return Vo;Ay=1;const a=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return Vo={meta:{type:"suggestion",defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:a},uniqueItems:!0},int32Hint:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const[{allow:n,int32Hint:o}]=e.options;function t(m){e.report({node:m,messageId:"unexpected",data:{operator:m.operator}})}function l(m){return a.includes(m.operator)}function p(m){return n.includes(m.operator)}function u(m){return o&&m.operator==="|"&&m.right&&m.right.type==="Literal"&&m.right.value===0}function r(m){l(m)&&!p(m)&&!u(m)&&t(m)}return{AssignmentExpression:r,BinaryExpression:r,UnaryExpression:r}}},Vo}var $o,Ty;function HA(){return Ty||(Ty=1,$o={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-deprecated-api",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md"}}]},type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(a){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){a.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),$o}var Wo,ky;function KA(){return ky||(ky=1,Wo={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="arguments"&&!e.computed&&o&&o.match(/^calle[er]$/u)&&a.report({node:e,messageId:"unexpected",data:{prop:o}})}}}}),Wo}var Go,Dy;function XA(){return Dy||(Dy=1,Go={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},hasSuggestions:!0,schema:[],messages:{addBrackets:"Add {} brackets around the case block.",unexpected:"Unexpected lexical declaration in case block."}},create(a){function e(n){switch(n.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return n.kind!=="var";default:return!1}}return{SwitchCase(n){for(let o=0;o<n.consequent.length;o++){const t=n.consequent[o];e(t)&&a.report({node:t,messageId:"unexpected",suggest:[{messageId:"addBrackets",fix:l=>[l.insertTextBefore(n.consequent[0],"{ "),l.insertTextAfter(n.consequent.at(-1)," }")]}]})}}}}}),Go}var zo,Iy;function JA(){if(Iy)return zo;Iy=1;const a=Ue();return zo={meta:{type:"suggestion",docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-catch-shadow"},deprecated:{message:"This rule was renamed.",url:"https://eslint.org/blog/2018/07/eslint-v5.1.0-released/",deprecatedSince:"5.1.0",availableUntil:null,replacedBy:[{rule:{name:"no-shadow",url:"https://eslint.org/docs/rules/no-shadow"}}]},schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{"CatchClause[param!=null]"(t){let l=n.getScope(t);l.block===t&&(l=l.upper),o(l,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}}}},zo}var Ho,Py;function YA(){if(Py)return Ho;Py=1;const a=Ue();return Ho={meta:{type:"problem",docs:{description:"Disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){const n=e.sourceCode;function o(l){a.getModifyingReferences(l.references).forEach(p=>{e.report({node:p.identifier,messageId:"class",data:{name:p.identifier.name}})})}function t(l){n.getDeclaredVariables(l).forEach(o)}return{ClassDeclaration:t,ClassExpression:t}}},Ho}var Ko,Fy;function QA(){return Fy||(Fy=1,Ko={meta:{type:"problem",docs:{description:"Disallow comparing against `-0`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(a){function e(o){return o.type==="UnaryExpression"&&o.operator==="-"&&o.argument.type==="Literal"&&o.argument.value===0}const n=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(o){n.has(o.operator)&&(e(o.left)||e(o.right))&&a.report({node:o,messageId:"unexpected",data:{operator:o.operator}})}}}}),Ko}var Xo,Ry;function ZA(){if(Ry)return Xo;Ry=1;const a=Ue(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),n={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return Xo={meta:{type:"problem",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(o){const[t]=o.options,l=o.sourceCode;function p(c){return c.parent&&e.has(c.parent.type)&&c===c.parent.test}function u(c){let h=c;do if(p(h))return h.parent;while((h=h.parent)&&!a.isFunction(h));return null}function r(c){const h=l.getTokenBefore(c,1),s=l.getTokenAfter(c,1);return a.isParenthesised(l,c)&&h&&a.isOpeningParenToken(h)&&h.range[1]<=c.range[0]&&a.isClosingParenToken(s)&&s.range[0]>=c.range[1]}function m(c){c.test&&c.test.type==="AssignmentExpression"&&(c.type==="ForStatement"?!a.isParenthesised(l,c.test):!r(c.test))&&o.report({node:c.test,messageId:"missing"})}function i(c){const h=u(c);h&&o.report({node:c,messageId:"unexpected",data:{type:n[h.type]||h.type}})}return t==="always"?{AssignmentExpression:i}:{DoWhileStatement:m,ForStatement:m,IfStatement:m,WhileStatement:m,ConditionalExpression:m}}},Xo}var Jo,_y;function eT(){if(_y)return Jo;_y=1;const a=Ue();function e(n){return n&&n.type==="ConditionalExpression"}return Jo={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-confusing-arrow",url:"https://eslint.style/rules/no-confusing-arrow"}}]},type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(n){const o=n.options[0]||{},t=o.allowParens||o.allowParens===void 0,l=o.onlyOneSimpleParam,p=n.sourceCode;function u(r){const m=r.body;e(m)&&!(t&&a.isParenthesised(p,m))&&!(l&&!(r.params.length===1&&r.params[0].type==="Identifier"))&&n.report({node:r,messageId:"confusing",fix(i){return t&&i.replaceText(r.body,`(${p.getText(r.body)})`)}})}return{ArrowFunctionExpression:u}}},Jo}var Yo,By;function tT(){if(By)return Yo;By=1;const a=Ue();return Yo={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",limited:"Unexpected console statement. Only these console methods are allowed: {{ allowed }}.",removeConsole:"Remove the console.{{ propertyName }}().",removeMethodCall:"Remove the console method call."}},create(e){const[{allow:n=[]}]=e.options,o=e.sourceCode;function t(i){const c=i.identifier;return c&&c.name==="console"}function l(i){const c=a.getStaticPropertyName(i);return c&&n.includes(c)}function p(i){const c=i.identifier,h=c.parent;return h.type==="MemberExpression"&&h.object===c&&!l(h)}function u(i){const c=/^[:;{]$/u,h=/^[-[(/+`]/u,s=o.getTokenBefore(i),f=o.getTokenAfter(i);return!!f&&h.test(f.value)&&f.value!=="++"&&f.value!=="--"&&!!s&&!c.test(s.value)}function r(i){return i.parent.type==="CallExpression"&&i.parent.callee===i&&i.parent.parent.type==="ExpressionStatement"&&a.STATEMENT_LIST_PARENTS.has(i.parent.parent.parent.type)&&!u(i.parent.parent)}function m(i){const c=i.identifier.parent,h=[];if(r(c)){const s={fix(f){return f.remove(c.parent.parent)}};c.computed?s.messageId="removeMethodCall":(s.messageId="removeConsole",s.data={propertyName:c.property.name}),h.push(s)}e.report({node:c,loc:c.loc,messageId:n.length?"limited":"unexpected",data:{allowed:n.join(", ")},suggest:h})}return{"Program:exit"(i){const c=o.getScope(i),h=a.getVariableByName(c,"console"),s=h&&h.defs.length>0,f=h?h.references:c.through.filter(t);s||f.filter(p).forEach(m)}}}},Yo}var Qo,Ly;function rT(){if(Ly)return Qo;Ly=1;const a=Ue(),e=new Set(["const","using","await using"]);return Qo={meta:{type:"problem",docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(n){const o=n.sourceCode;function t(l){a.getModifyingReferences(l.references).forEach(p=>{n.report({node:p.identifier,messageId:"const",data:{name:p.identifier.name}})})}return{VariableDeclaration(l){e.has(l.kind)&&o.getDeclaredVariables(l).forEach(t)}}}},Qo}var Zo,Oy;function nT(){if(Oy)return Zo;Oy=1;const{isNullLiteral:a,isConstant:e,isReferenceToGlobalVariable:n,isLogicalAssignmentOperator:o,ECMASCRIPT_GLOBALS:t}=Ue(),l=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function p(s,f){return a(f)||f.type==="Identifier"&&f.name==="undefined"&&n(s,f)||f.type==="UnaryExpression"&&f.operator==="void"}function u(s,f,g){if(g&&p(s,f))return!1;switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(f.callee.type!=="Identifier")return!1;const d=f.callee.name;return(d==="Boolean"||d==="String"||d==="Number")&&n(s,f.callee)}case"LogicalExpression":return f.operator==="??"&&u(s,f.right,!0);case"AssignmentExpression":return f.operator==="="?u(s,f.right,g):!o(f.operator);case"UnaryExpression":return!0;case"SequenceExpression":{const d=f.expressions.at(-1);return u(s,d,g)}case"Identifier":return f.name==="undefined"&&n(s,f);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function r(s,f){switch(f.type){case"Literal":return typeof f.value=="boolean";case"CallExpression":return f.callee.type==="Identifier"&&f.callee.name==="Boolean"&&n(s,f.callee)&&(f.arguments.length===0||e(s,f.arguments[0],!0));case"UnaryExpression":return f.operator==="!"&&e(s,f.argument,!0);default:return!1}}function m(s,f){switch(f.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{const g=f.elements.filter(d=>d!==null&&d.type!=="SpreadElement");return f.elements.length===0||g.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return f.operator==="void"||f.operator==="typeof"?!0:f.operator==="!"?e(s,f.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return f.callee.type==="Identifier"&&f.callee.name==="Boolean"&&n(s,f.callee)?f.arguments.length===0||e(s,f.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return f.name==="undefined"&&n(s,f);case"TemplateLiteral":return f.expressions.length===0;case"AssignmentExpression":return f.operator==="="?m(s,f.right):!1;case"SequenceExpression":{const g=f.expressions.at(-1);return m(s,g)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function i(s,f){switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return l.has(f.operator);case"UnaryExpression":return f.operator==="delete"?!1:f.operator==="!"?e(s,f.argument,!0):!0;case"SequenceExpression":{const g=f.expressions.at(-1);return i(s,g)}case"Identifier":return f.name==="undefined"&&n(s,f);case"AssignmentExpression":return f.operator==="="?i(s,f.right):!o(f.operator);case"CallExpression":{if(f.callee.type!=="Identifier")return!1;const g=f.callee.name;return(g==="String"||g==="Number")&&n(s,f.callee)?!0:g==="Boolean"&&n(s,f.callee)?f.arguments.length===0||e(s,f.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(s,f){switch(f.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return f.callee.type!=="Identifier"?!1:Object.hasOwn(t,f.callee.name)&&n(s,f.callee);case"Literal":return typeof f.regex=="object";case"SequenceExpression":{const g=f.expressions.at(-1);return c(s,g)}case"AssignmentExpression":return f.operator==="="?c(s,f.right):!1;case"ConditionalExpression":return c(s,f.consequent)&&c(s,f.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(s,f,g,d){if(d==="=="||d==="!="){if(p(s,f)&&u(s,g,!1)||r(s,f)&&m(s,g))return g}else if((d==="==="||d==="!==")&&(p(s,f)&&u(s,g,!1)||r(s,f)&&i(s,g)))return g;return null}return Zo={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(s){const f=s.sourceCode;return{LogicalExpression(g){const{operator:d,left:E}=g,S=f.getScope(g);(d==="&&"||d==="||")&&e(S,E,!0)?s.report({node:E,messageId:"constantShortCircuit",data:{property:"truthiness",operator:d}}):d==="??"&&u(S,E,!1)&&s.report({node:E,messageId:"constantShortCircuit",data:{property:"nullishness",operator:d}})},BinaryExpression(g){const d=f.getScope(g),{right:E,left:S,operator:x}=g,T=h(d,S,E,x),C=h(d,E,S,x);T?s.report({node:T,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"left"}}):C?s.report({node:C,messageId:"constantBinaryOperand",data:{operator:x,otherSide:"right"}}):x==="==="||x==="!=="?c(d,S)?s.report({node:S,messageId:"alwaysNew"}):c(d,E)&&s.report({node:E,messageId:"alwaysNew"}):(x==="=="||x==="!=")&&c(d,S)&&c(d,E)&&s.report({node:S,messageId:"bothAlwaysNew"})}}}},Zo}var el,Ny;function sT(){if(Ny)return el;Ny=1;const{isConstant:a}=Ue();return el={meta:{type:"problem",defaultOptions:[{checkLoops:"allExceptWhileTrue"}],docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const n=[],o=e.sourceCode;let[{checkLoops:t}]=e.options;t===!0?t="all":t===!1&&(t="none");let l=new Set;function p(h){h.test&&a(o.getScope(h),h.test,!0)&&l.add(h)}function u(h){l.has(h)&&(l.delete(h),e.report({node:h.test,messageId:"unexpected"}))}function r(h){h.test&&a(o.getScope(h),h.test,!0)&&e.report({node:h.test,messageId:"unexpected"})}function m(){n.push(l),l=new Set}function i(){l=n.pop()}function c(h){(t==="all"||t==="allExceptWhileTrue")&&p(h)}return{ConditionalExpression:r,IfStatement:r,WhileStatement(h){h.test.type==="Literal"&&h.test.value===!0&&t==="allExceptWhileTrue"||c(h)},"WhileStatement:exit":u,DoWhileStatement:c,"DoWhileStatement:exit":u,ForStatement:c,"ForStatement > .test":h=>c(h.parent),"ForStatement:exit":u,FunctionDeclaration:m,"FunctionDeclaration:exit":i,FunctionExpression:m,"FunctionExpression:exit":i,YieldExpression:()=>l.clear()}}},el}var tl,My;function aT(){return My||(My=1,tl={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(a){const e=[];return{onCodePathStart(n,o){e.push(o)},onCodePathEnd(){e.pop()},ReturnStatement(n){const o=e.at(-1);o.parent&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"&&n.argument&&a.report({node:n,messageId:"unexpected"})}}}}),tl}var rl,jy;function iT(){return jy||(jy=1,rl={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(a){return{ContinueStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),rl}var lr={},Uy;function ur(){if(Uy)return lr;Uy=1,Object.defineProperty(lr,"__esModule",{value:!0});var a=Object.freeze({__proto__:null});const e=2025;let n,o;function t(We){return We<65?!1:We<91?!0:We<97?!1:We<123?!0:p(We)}function l(We){return We<48?!1:We<58?!0:We<65?!1:We<91||We===95?!0:We<97?!1:We<123?!0:p(We)||u(We)}function p(We){return i(We,n??(n=r()))}function u(We){return i(We,o??(o=m()))}function r(){return c("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 5 i 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1u 3 1 2 0 2 7 m f 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 2 1o s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 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 g 6 2 2 4 2 g 3et wyn x 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f")}function m(){return c("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 28 3 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 9j 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 k6 6 32 6 6 9 3o7 9 gvt3 6n")}function i(We,M){let Y=0,he=M.length/2|0,je=0,y=0,D=0;for(;Y<he;)if(je=(Y+he)/2|0,y=M[2*je],D=M[2*je+1],We<y)he=je;else if(We>D)Y=je+1;else return!0;return!1}function c(We){let M=0;return We.split(" ").map(Y=>M+=parseInt(Y,36)|0)}class h{constructor(M,Y,he,je,y,D,U,K){this._raw2018=M,this._raw2019=Y,this._raw2020=he,this._raw2021=je,this._raw2022=y,this._raw2023=D,this._raw2024=U,this._raw2025=K}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var M;return(M=this._set2025)!==null&&M!==void 0?M:this._set2025=new Set(this._raw2025.split(" "))}}const s=new Set(["General_Category","gc"]),f=new Set(["Script","Script_Extensions","sc","scx"]),g=new h("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","",""),d=new h("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),E=new h("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","",""),S=new h("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function x(We,M,Y){return s.has(M)?We>=2018&&g.es2018.has(Y):f.has(M)?We>=2018&&d.es2018.has(Y)||We>=2019&&d.es2019.has(Y)||We>=2020&&d.es2020.has(Y)||We>=2021&&d.es2021.has(Y)||We>=2022&&d.es2022.has(Y)||We>=2023&&d.es2023.has(Y):!1}function T(We,M){return We>=2018&&E.es2018.has(M)||We>=2019&&E.es2019.has(M)||We>=2021&&E.es2021.has(M)}function C(We,M){return We>=2024&&S.es2024.has(M)}const v=8,A=9,b=10,w=11,k=12,R=13,F=33,L=35,P=36,O=37,q=38,N=40,_=41,G=42,B=43,z=44,H=45,ce=46,re=47,Fe=48,X=49,I=55,W=57,oe=58,ie=59,se=60,de=61,be=62,xe=63,Te=64,J=65,Q=66,ke=68,$=70,ae=80,Ie=83,Ne=87,Be=90,j=95,Qe=97,ut=98,rt=99,ze=100,Xe=102,ht=103,dt=105,at=107,tt=109,we=110,Ee=112,Se=113,ve=114,Pe=115,ee=116,te=117,Z=118,fe=119,De=120,Le=121,me=122,V=91,ne=92,ue=93,Ce=94,qe=96,_e=123,Ke=124,Je=125,pe=126,le=8204,ye=8205,Re=8232,Oe=8233,it=0,Ge=1114111;function Ze(We){return We>=J&&We<=Be||We>=Qe&&We<=me}function lt(We){return We>=Fe&&We<=W}function Ye(We){return We>=Fe&&We<=I}function st(We){return We>=Fe&&We<=W||We>=J&&We<=$||We>=Qe&&We<=Xe}function mt(We){return We===b||We===R||We===Re||We===Oe}function yt(We){return We>=it&&We<=Ge}function pt(We){return We>=Qe&&We<=Xe?We-Qe+10:We>=J&&We<=$?We-J+10:We-Fe}function vt(We){return We>=55296&&We<=56319}function Ct(We){return We>=56320&&We<=57343}function xt(We,M){return(We-55296)*1024+(M-56320)+65536}class Rt{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(M){return this.groupName.has(M)}hasInScope(M){return this.hasInPattern(M)}addToScope(M){this.groupName.add(M)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class _t{constructor(M,Y){this.parent=M,this.base=Y??this}separatedFrom(M){var Y,he;return this.base===M.base&&this!==M||M.parent&&this.separatedFrom(M.parent)?!0:(he=(Y=this.parent)===null||Y===void 0?void 0:Y.separatedFrom(M))!==null&&he!==void 0?he:!1}child(){return new _t(this,null)}sibling(){return new _t(this.parent,this.base)}}class Bt{constructor(){this.branchID=new _t(null,null),this.groupNames=new Map}clear(){this.branchID=new _t(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(M){M!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(M){return this.groupNames.has(M)}hasInScope(M){const Y=this.groupNames.get(M);if(!Y)return!1;for(const he of Y)if(!he.separatedFrom(this.branchID))return!0;return!1}addToScope(M){const Y=this.groupNames.get(M);if(Y){Y.push(this.branchID);return}this.groupNames.set(M,[this.branchID])}}const Ht={at(We,M,Y){return Y<M?We.charCodeAt(Y):-1},width(We){return 1}},Gt={at(We,M,Y){return Y<M?We.codePointAt(Y):-1},width(We){return We>65535?2:1}};class Ot{constructor(){this._impl=Ht,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(M,Y,he,je){this._impl=je?Gt:Ht,this._s=M,this._end=he,this.rewind(Y)}rewind(M){const Y=this._impl;this._i=M,this._cp1=Y.at(this._s,this._end,M),this._w1=Y.width(this._cp1),this._cp2=Y.at(this._s,this._end,M+this._w1),this._w2=Y.width(this._cp2),this._cp3=Y.at(this._s,this._end,M+this._w1+this._w2),this._w3=Y.width(this._cp3),this._cp4=Y.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){const M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,Y){return this._cp1===M&&this._cp2===Y?(this.advance(),this.advance(),!0):!1}eat3(M,Y,he){return this._cp1===M&&this._cp2===Y&&this._cp3===he?(this.advance(),this.advance(),this.advance(),!0):!1}}class $t extends SyntaxError{constructor(M,Y){super(M),this.index=Y}}function ct(We,M,Y,he){let je="";if(We.kind==="literal"){const y=We.source.slice(We.start,We.end);y&&(je=`: ${y}`)}else if(We.kind==="pattern"){const y=We.source.slice(We.start,We.end),D=`${M.unicode?"u":""}${M.unicodeSets?"v":""}`;je=`: /${y}/${D}`}return new $t(`Invalid regular expression${je}: ${he}`,Y)}const Mt=new Set([Ce,P,ne,ce,G,B,xe,N,_,V,ue,_e,Je,Ke]),Lt=new Set([q,F,L,P,O,G,B,z,ce,oe,ie,se,de,be,xe,Te,Ce,qe,pe]),Er=new Set([N,_,V,ue,_e,Je,re,H,ne,Ke]),Sr=new Set([q,H,F,L,O,z,oe,ie,se,de,be,Te,qe,pe]),Qt={global:ht,ignoreCase:dt,multiline:tt,unicode:te,sticky:Le,dotAll:Pe,hasIndices:ze,unicodeSets:Z},cr=Object.fromEntries(Object.entries(Qt).map(([We,M])=>[M,We]));function rr(We){return Mt.has(We)}function fr(We){return Lt.has(We)}function br(We){return Er.has(We)}function Zt(We){return Sr.has(We)}function Wt(We){return t(We)||We===P||We===j}function jt(We){return l(We)||We===P||We===le||We===ye}function Nr(We){return Ze(We)||We===j}function Mr(We){return Nr(We)||lt(We)}function jr(We){return We===dt||We===tt||We===Pe}class Fr{constructor(M){this._reader=new Ot,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{},this._groupSpecifiers=this.ecmaVersion>=2025?new Bt:new Rt}validateLiteral(M,Y=0,he=M.length){if(this._srcCtx={source:M,start:Y,end:he,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,Y,he),this.onLiteralEnter(Y),this.eat(re)&&this.eatRegExpBody()&&this.eat(re)){const je=this.index,y=M.includes("u",je),D=M.includes("v",je);this.validateFlagsInternal(M,je,he),this.validatePatternInternal(M,Y+1,je-1,{unicode:y,unicodeSets:D})}else if(Y>=he)this.raise("Empty");else{const je=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${je}'`)}this.onLiteralLeave(Y,he)}validateFlags(M,Y=0,he=M.length){this._srcCtx={source:M,start:Y,end:he,kind:"flags"},this.validateFlagsInternal(M,Y,he)}validatePattern(M,Y=0,he=M.length,je=void 0){this._srcCtx={source:M,start:Y,end:he,kind:"pattern"},this.validatePatternInternal(M,Y,he,je)}validatePatternInternal(M,Y=0,he=M.length,je=void 0){const y=this._parseFlagsOptionToMode(je,he);this._unicodeMode=y.unicodeMode,this._nFlag=y.nFlag,this._unicodeSetsMode=y.unicodeSetsMode,this.reset(M,Y,he),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(Y),this.consumePattern())}validateFlagsInternal(M,Y,he){const je=this.parseFlags(M,Y,he);this.onRegExpFlags(Y,he,je)}_parseFlagsOptionToMode(M,Y){let he=!1,je=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(he=!!M.unicode,this.ecmaVersion>=2024&&(je=!!M.unicodeSets)):he=M),he&&je&&this.raise("Invalid regular expression flags",{index:Y+1,unicode:he,unicodeSets:je});const y=he||je,D=he&&this.ecmaVersion>=2018||je||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:y,nFlag:D,unicodeSetsMode:je}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,Y){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,Y)}onRegExpFlags(M,Y,he){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,Y,he),this._options.onFlags&&this._options.onFlags(M,Y,he.global,he.ignoreCase,he.multiline,he.unicode,he.sticky,he.dotAll,he.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,Y){this._options.onPatternLeave&&this._options.onPatternLeave(M,Y)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,Y){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,Y)}onAlternativeEnter(M,Y){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,Y)}onAlternativeLeave(M,Y,he){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,Y,he)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,Y){this._options.onGroupLeave&&this._options.onGroupLeave(M,Y)}onModifiersEnter(M){this._options.onModifiersEnter&&this._options.onModifiersEnter(M)}onModifiersLeave(M,Y){this._options.onModifiersLeave&&this._options.onModifiersLeave(M,Y)}onAddModifiers(M,Y,he){this._options.onAddModifiers&&this._options.onAddModifiers(M,Y,he)}onRemoveModifiers(M,Y,he){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(M,Y,he)}onCapturingGroupEnter(M,Y){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,Y)}onCapturingGroupLeave(M,Y,he){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,Y,he)}onQuantifier(M,Y,he,je,y){this._options.onQuantifier&&this._options.onQuantifier(M,Y,he,je,y)}onLookaroundAssertionEnter(M,Y,he){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,Y,he)}onLookaroundAssertionLeave(M,Y,he,je){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,Y,he,je)}onEdgeAssertion(M,Y,he){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,Y,he)}onWordBoundaryAssertion(M,Y,he,je){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,Y,he,je)}onAnyCharacterSet(M,Y,he){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,Y,he)}onEscapeCharacterSet(M,Y,he,je){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,Y,he,je)}onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U)}onCharacter(M,Y,he){this._options.onCharacter&&this._options.onCharacter(M,Y,he)}onBackreference(M,Y,he){this._options.onBackreference&&this._options.onBackreference(M,Y,he)}onCharacterClassEnter(M,Y,he){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,Y,he)}onCharacterClassLeave(M,Y,he){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,Y,he)}onCharacterClassRange(M,Y,he,je){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,Y,he,je)}onClassIntersection(M,Y){this._options.onClassIntersection&&this._options.onClassIntersection(M,Y)}onClassSubtraction(M,Y){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,Y)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,Y){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,Y)}onStringAlternativeEnter(M,Y){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,Y)}onStringAlternativeLeave(M,Y,he){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,Y,he)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(M,Y,he){this._reader.reset(M,Y,he,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,Y){return this._reader.eat2(M,Y)}eat3(M,Y,he){return this._reader.eat3(M,Y,he)}raise(M,Y){var he,je,y;throw ct(this._srcCtx,{unicode:(he=Y?.unicode)!==null&&he!==void 0?he:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(je=Y?.unicodeSets)!==null&&je!==void 0?je:this._unicodeSetsMode},(y=Y?.index)!==null&&y!==void 0?y:this.index,M)}eatRegExpBody(){const M=this.index;let Y=!1,he=!1;for(;;){const je=this.currentCodePoint;if(je===-1||mt(je)){const y=Y?"character class":"regular expression";this.raise(`Unterminated ${y}`)}if(he)he=!1;else if(je===ne)he=!0;else if(je===V)Y=!0;else if(je===ue)Y=!1;else if(je===re&&!Y||je===G&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){const M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();const Y=this.currentCodePoint;if(this.currentCodePoint!==-1){Y===_&&this.raise("Unmatched ')'"),Y===ne&&this.raise("\\ at end of pattern"),(Y===ue||Y===Je)&&this.raise("Lone quantifier brackets");const he=String.fromCodePoint(Y);this.raise(`Unexpected character '${he}'`)}for(const he of this._backreferenceNames)this._groupSpecifiers.hasInPattern(he)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){const M=this.index;let Y=!1,he=!1,je=0,y=0;for(;(y=this.currentCodePoint)!==-1;)he?he=!1:y===ne?he=!0:y===V?Y=!0:y===ue?Y=!1:y===N&&!Y&&(this.nextCodePoint!==xe||this.nextCodePoint2===se&&this.nextCodePoint3!==de&&this.nextCodePoint3!==F)&&(je+=1),this.advance();return this.rewind(M),je}consumeDisjunction(){const M=this.index;let Y=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(M);do this.consumeAlternative(Y++);while(this.eat(Ke));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(_e)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(M){const Y=this.index;for(this._groupSpecifiers.enterAlternative(M),this.onAlternativeEnter(Y,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(Y,this.index,M)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Ce))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(P))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(ne,Q))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(ne,ut))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(N,xe)){const Y=this.ecmaVersion>=2018&&this.eat(se);let he=!1;if(this.eat(de)||(he=this.eat(F))){const je=Y?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,je,he),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!Y&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,je,he),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){const Y=this.index;let he=0,je=0,y=!1;if(this.eat(G))he=0,je=Number.POSITIVE_INFINITY;else if(this.eat(B))he=1,je=Number.POSITIVE_INFINITY;else if(this.eat(xe))he=0,je=1;else if(this.eatBracedQuantifier(M))({min:he,max:je}=this._lastRange);else return!1;return y=!this.eat(xe),M||this.onQuantifier(Y,this.index,he,je,y),!0}eatBracedQuantifier(M){const Y=this.index;if(this.eat(_e)){if(this.eatDecimalDigits()){const he=this._lastIntValue;let je=he;if(this.eat(z)&&(je=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Je))return!M&&je<he&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:he,max:je},!0}!M&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(Y)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(ce)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){const M=this.index;if(this.eat(ne)){if(this.consumeAtomEscape())return!0;this.rewind(M)}return!1}consumeUncapturingGroup(){const M=this.index;return this.eat2(N,xe)?(this.onGroupEnter(M),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(oe)||(this.rewind(M+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onGroupLeave(M,this.index),!0):!1}consumeModifiers(){const M=this.index,Y=this.eatModifiers(),he=this.index,je=this.eat(H);if(!Y&&!je)return!1;this.onModifiersEnter(M);const y=this.parseModifiers(M,he);if(this.onAddModifiers(M,he,y),je){const D=this.index;!this.eatModifiers()&&!Y&&this.currentCodePoint===oe&&this.raise("Invalid empty flags");const U=this.parseModifiers(D,this.index);for(const[K]of Object.entries(U).filter(([,ge])=>ge))y[K]&&this.raise(`Duplicated flag '${String.fromCodePoint(Qt[K])}'`);this.onRemoveModifiers(D,this.index,U)}return this.onModifiersLeave(M,this.index),!0}consumeCapturingGroup(){const M=this.index;if(this.eat(N)){let Y=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())Y=this._lastStrValue;else if(this.currentCodePoint===xe)return this.rewind(M),!1}else if(this.currentCodePoint===xe)return this.rewind(M),!1;return this.onCapturingGroupEnter(M,Y),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,Y),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const M=this.index;return this.currentCodePoint===ne&&this.nextCodePoint===rt?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,ne),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const M=this.index,Y=this.currentCodePoint;return Y!==-1&&!rr(Y)?(this.advance(),this.onCharacter(M,this.index,Y),!0):!1}consumeExtendedPatternCharacter(){const M=this.index,Y=this.currentCodePoint;return Y!==-1&&Y!==Ce&&Y!==P&&Y!==ne&&Y!==ce&&Y!==G&&Y!==B&&Y!==xe&&Y!==N&&Y!==_&&Y!==V&&Y!==Ke?(this.advance(),this.onCharacter(M,this.index,Y),!0):!1}consumeGroupSpecifier(){const M=this.index;if(this.eat(xe)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(M)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const M=this.index;if(this.eatDecimalEscape()){const Y=this._lastIntValue;if(Y<=this._numCapturingParens)return this.onBackreference(M-1,this.index,Y),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;const Y=this.index;if(this.eat(ze))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"digit",!1),{};if(this.eat(ke))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"digit",!0),{};if(this.eat(Pe))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"space",!1),{};if(this.eat(Ie))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"space",!0),{};if(this.eat(fe))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"word",!1),{};if(this.eat(Ne))return this._lastIntValue=-1,this.onEscapeCharacterSet(Y-1,this.index,"word",!0),{};let he=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(Ee)||(he=this.eat(ae)))){this._lastIntValue=-1;let je=null;if(this.eat(_e)&&(je=this.eatUnicodePropertyValueExpression())&&this.eat(Je))return he&&je.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(Y-1,this.index,"property",je.key,je.value,he,(M=je.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:je.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){const M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){const M=this.index;if(this.eat(at)){if(this.eatGroupName()){const Y=this._lastStrValue;return this._backreferenceNames.add(Y),this.onBackreference(M-1,this.index,Y),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const M=this.index;if(this.eat(V)){const Y=this.eat(Ce);this.onCharacterClassEnter(M,Y,this._unicodeSetsMode);const he=this.consumeClassContents();return this.eat(ue)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),Y&&he.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Y),he}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===ue?{}:this.consumeClassSetExpression();const M=this.strict||this._unicodeMode;for(;;){const Y=this.index;if(!this.consumeClassAtom())break;const he=this._lastIntValue;if(!this.eat(H))continue;if(this.onCharacter(this.index-1,this.index,H),!this.consumeClassAtom())break;const je=this._lastIntValue;if(he===-1||je===-1){M&&this.raise("Invalid character class");continue}he>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(Y,this.index,he,je)}return{}}consumeClassAtom(){const M=this.index,Y=this.currentCodePoint;if(Y!==-1&&Y!==ne&&Y!==ue)return this.advance(),this._lastIntValue=Y,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ne)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===rt)return this._lastIntValue=ne,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){const M=this.index;if(this.eat(ut))return this._lastIntValue=v,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(H))return this._lastIntValue=H,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let Y=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===rt&&(lt(Y=this.nextCodePoint)||Y===j)?(this.advance(),this.advance(),this._lastIntValue=Y%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){const M=this.index;let Y=!1,he=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};Y=!1}else if(he=this.consumeClassSetOperand())Y=he.mayContainStrings;else{const je=this.currentCodePoint;je===ne&&(this.advance(),this.raise("Invalid escape")),je===this.nextCodePoint&&fr(je)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(q,q)){for(;this.currentCodePoint!==q&&(he=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),he.mayContainStrings||(Y=!1),!this.eat2(q,q))return{mayContainStrings:Y};this.raise("Invalid character in character class")}if(this.eat2(H,H)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(H,H))return{mayContainStrings:Y};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:Y})}consumeClassUnionRight(M){let Y=M.mayContainStrings;for(;;){const he=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(he);continue}const je=this.consumeClassSetOperand();if(je){je.mayContainStrings&&(Y=!0);continue}break}return{mayContainStrings:Y}}consumeClassSetRangeFromOperator(M){const Y=this.index,he=this._lastIntValue;if(this.eat(H)){if(this.consumeClassSetCharacter()){const je=this._lastIntValue;return(he===-1||je===-1)&&this.raise("Invalid character class"),he>je&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,he,je),!0}this.rewind(Y)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){const M=this.index;if(this.eat(V)){const Y=this.eat(Ce);this.onCharacterClassEnter(M,Y,!0);const he=this.consumeClassContents();return this.eat(ue)||this.raise("Unterminated character class"),Y&&he.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,Y),he}if(this.eat(ne)){const Y=this.consumeCharacterClassEscape();if(Y)return Y;this.rewind(M)}return null}consumeClassStringDisjunction(){const M=this.index;if(this.eat3(ne,Se,_e)){this.onClassStringDisjunctionEnter(M);let Y=0,he=!1;do this.consumeClassString(Y++).mayContainStrings&&(he=!0);while(this.eat(Ke));if(this.eat(Je))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:he};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){const Y=this.index;let he=0;for(this.onStringAlternativeEnter(Y,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)he++;return this.onStringAlternativeLeave(Y,this.index,M),{mayContainStrings:he!==1}}consumeClassSetCharacter(){const M=this.index,Y=this.currentCodePoint;if((Y!==this.nextCodePoint||!fr(Y))&&Y!==-1&&!br(Y))return this._lastIntValue=Y,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ne)){if(this.consumeCharacterEscape())return!0;if(Zt(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ut))return this._lastIntValue=v,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(se)){if(this.eatRegExpIdentifierName()&&this.eat(be))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const M=this.index,Y=!this._unicodeMode&&this.ecmaVersion>=2020;let he=this.currentCodePoint;return this.advance(),he===ne&&this.eatRegExpUnicodeEscapeSequence(Y)?he=this._lastIntValue:Y&&vt(he)&&Ct(this.currentCodePoint)&&(he=xt(he,this.currentCodePoint),this.advance()),Wt(he)?(this._lastIntValue=he,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){const M=this.index,Y=!this._unicodeMode&&this.ecmaVersion>=2020;let he=this.currentCodePoint;return this.advance(),he===ne&&this.eatRegExpUnicodeEscapeSequence(Y)?he=this._lastIntValue:Y&&vt(he)&&Ct(this.currentCodePoint)&&(he=xt(he,this.currentCodePoint),this.advance()),jt(he)?(this._lastIntValue=he,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){const M=this.index;if(this.eat(rt)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===Fe&&!lt(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Xe)?(this._lastIntValue=k,!0):this.eat(we)?(this._lastIntValue=b,!0):this.eat(ve)?(this._lastIntValue=R,!0):this.eat(ee)?(this._lastIntValue=A,!0):this.eat(Z)?(this._lastIntValue=w,!0):!1}eatControlLetter(){const M=this.currentCodePoint;return Ze(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){const Y=this.index,he=M||this._unicodeMode;if(this.eat(te)){if(he&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||he&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||he)&&this.raise("Invalid unicode escape"),this.rewind(Y)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const M=this.index;if(this.eatFixedHexDigits(4)){const Y=this._lastIntValue;if(vt(Y)&&this.eat(ne)&&this.eat(te)&&this.eatFixedHexDigits(4)){const he=this._lastIntValue;if(Ct(he))return this._lastIntValue=xt(Y,he),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){const M=this.index;return this.eat(_e)&&this.eatHexDigits()&&this.eat(Je)&&yt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){const M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?rr(M)||M===re:this.strict?!l(M):this._nFlag?!(M===rt||M===at):M!==rt}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=X&&M<=W){do this._lastIntValue=10*this._lastIntValue+(M-Fe),this.advance();while((M=this.currentCodePoint)>=Fe&&M<=W);return!0}return!1}eatUnicodePropertyValueExpression(){const M=this.index;if(this.eatUnicodePropertyName()&&this.eat(de)){const Y=this._lastStrValue;if(this.eatUnicodePropertyValue()){const he=this._lastStrValue;if(x(this.ecmaVersion,Y,he))return{key:Y,value:he||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){const Y=this._lastStrValue;if(x(this.ecmaVersion,"General_Category",Y))return{key:"General_Category",value:Y||null};if(T(this.ecmaVersion,Y))return{key:Y,value:null};if(this._unicodeSetsMode&&C(this.ecmaVersion,Y))return{key:Y,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";Nr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Mr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const M=this.index;if(this.eat(De)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){const M=this.index;for(this._lastIntValue=0;lt(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+pt(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){const M=this.index;for(this._lastIntValue=0;st(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+pt(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const M=this._lastIntValue;if(this.eatOctalDigit()){const Y=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+Y*8+this._lastIntValue:this._lastIntValue=M*8+Y}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){const M=this.currentCodePoint;return Ye(M)?(this.advance(),this._lastIntValue=M-Fe,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){const Y=this.index;this._lastIntValue=0;for(let he=0;he<M;++he){const je=this.currentCodePoint;if(!st(je))return this.rewind(Y),!1;this._lastIntValue=16*this._lastIntValue+pt(je),this.advance()}return!0}eatModifiers(){let M=!1;for(;jr(this.currentCodePoint);)this.advance(),M=!0;return M}parseModifiers(M,Y){const{ignoreCase:he,multiline:je,dotAll:y}=this.parseFlags(this._reader.source,M,Y);return{ignoreCase:he,multiline:je,dotAll:y}}parseFlags(M,Y,he){const je={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},y=new Set;y.add(ht),y.add(dt),y.add(tt),this.ecmaVersion>=2015&&(y.add(te),y.add(Le),this.ecmaVersion>=2018&&(y.add(Pe),this.ecmaVersion>=2022&&(y.add(ze),this.ecmaVersion>=2024&&y.add(Z))));for(let D=Y;D<he;++D){const U=M.charCodeAt(D);if(y.has(U)){const K=cr[U];je[K]&&this.raise(`Duplicated flag '${M[D]}'`,{index:Y}),je[K]=!0}else this.raise(`Invalid flag '${M[D]}'`,{index:Y})}return je}}const an={},on={},dr={};function gr(We){return We.type==="Character"||We.type==="CharacterSet"||We.type==="CharacterClass"||We.type==="ExpressionCharacterClass"||We.type==="ClassStringDisjunction"}class Ur{constructor(M){var Y;this._node=an,this._expressionBufferMap=new Map,this._flags=on,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!M?.strict,this.ecmaVersion=(Y=M?.ecmaVersion)!==null&&Y!==void 0?Y:e}get pattern(){if(this._node.type!=="Pattern")throw new Error("UnknownError");return this._node}get flags(){if(this._flags.type!=="Flags")throw new Error("UnknownError");return this._flags}onRegExpFlags(M,Y,{global:he,ignoreCase:je,multiline:y,unicode:D,sticky:U,dotAll:K,hasIndices:ge,unicodeSets:Ve}){this._flags={type:"Flags",parent:null,start:M,end:Y,raw:this.source.slice(M,Y),global:he,ignoreCase:je,multiline:y,unicode:D,sticky:U,dotAll:K,hasIndices:ge,unicodeSets:Ve}}onPatternEnter(M){this._node={type:"Pattern",parent:null,start:M,end:M,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(M,Y){this._node.end=Y,this._node.raw=this.source.slice(M,Y);for(const he of this._backreferences){const je=he.ref,y=typeof je=="number"?[this._capturingGroups[je-1]]:this._capturingGroups.filter(D=>D.name===je);if(y.length===1){const D=y[0];he.ambiguous=!1,he.resolved=D}else he.ambiguous=!0,he.resolved=y;for(const D of y)D.references.push(he)}}onAlternativeEnter(M){const Y=this._node;if(Y.type!=="Assertion"&&Y.type!=="CapturingGroup"&&Y.type!=="Group"&&Y.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:Y,start:M,end:M,raw:"",elements:[]},Y.alternatives.push(this._node)}onAlternativeLeave(M,Y){const he=this._node;if(he.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onGroupEnter(M){const Y=this._node;if(Y.type!=="Alternative")throw new Error("UnknownError");const he={type:"Group",parent:Y,start:M,end:M,raw:"",modifiers:null,alternatives:[]};this._node=he,Y.elements.push(this._node)}onGroupLeave(M,Y){const he=this._node;if(he.type!=="Group"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onModifiersEnter(M){const Y=this._node;if(Y.type!=="Group")throw new Error("UnknownError");this._node={type:"Modifiers",parent:Y,start:M,end:M,raw:"",add:null,remove:null},Y.modifiers=this._node}onModifiersLeave(M,Y){const he=this._node;if(he.type!=="Modifiers"||he.parent.type!=="Group")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onAddModifiers(M,Y,{ignoreCase:he,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.add={type:"ModifierFlags",parent:D,start:M,end:Y,raw:this.source.slice(M,Y),ignoreCase:he,multiline:je,dotAll:y}}onRemoveModifiers(M,Y,{ignoreCase:he,multiline:je,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.remove={type:"ModifierFlags",parent:D,start:M,end:Y,raw:this.source.slice(M,Y),ignoreCase:he,multiline:je,dotAll:y}}onCapturingGroupEnter(M,Y){const he=this._node;if(he.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:he,start:M,end:M,raw:"",name:Y,alternatives:[],references:[]},he.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,Y){const he=this._node;if(he.type!=="CapturingGroup"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onQuantifier(M,Y,he,je,y){const D=this._node;if(D.type!=="Alternative")throw new Error("UnknownError");const U=D.elements.pop();if(U==null||U.type==="Quantifier"||U.type==="Assertion"&&U.kind!=="lookahead")throw new Error("UnknownError");const K={type:"Quantifier",parent:D,start:U.start,end:Y,raw:this.source.slice(U.start,Y),min:he,max:je,greedy:y,element:U};D.elements.push(K),U.parent=K}onLookaroundAssertionEnter(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y=this._node={type:"Assertion",parent:je,start:M,end:M,raw:"",kind:Y,negate:he,alternatives:[]};je.elements.push(y)}onLookaroundAssertionLeave(M,Y){const he=this._node;if(he.type!=="Assertion"||he.parent.type!=="Alternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onEdgeAssertion(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"Assertion",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),kind:he})}onWordBoundaryAssertion(M,Y,he,je){const y=this._node;if(y.type!=="Alternative")throw new Error("UnknownError");y.elements.push({type:"Assertion",parent:y,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,negate:je})}onAnyCharacterSet(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");je.elements.push({type:"CharacterSet",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),kind:he})}onEscapeCharacterSet(M,Y,he,je){const y=this._node;if(y.type!=="Alternative"&&y.type!=="CharacterClass")throw new Error("UnknownError");y.elements.push({type:"CharacterSet",parent:y,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,negate:je})}onUnicodePropertyCharacterSet(M,Y,he,je,y,D,U){const K=this._node;if(K.type!=="Alternative"&&K.type!=="CharacterClass")throw new Error("UnknownError");const ge={type:"CharacterSet",parent:null,start:M,end:Y,raw:this.source.slice(M,Y),kind:he,strings:null,key:je};if(U){if(K.type==="CharacterClass"&&!K.unicodeSets||D||y!==null)throw new Error("UnknownError");K.elements.push(Object.assign(Object.assign({},ge),{parent:K,strings:U,value:y,negate:D}))}else K.elements.push(Object.assign(Object.assign({},ge),{parent:K,strings:U,value:y,negate:D}))}onCharacter(M,Y,he){const je=this._node;if(je.type!=="Alternative"&&je.type!=="CharacterClass"&&je.type!=="StringAlternative")throw new Error("UnknownError");je.elements.push({type:"Character",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),value:he})}onBackreference(M,Y,he){const je=this._node;if(je.type!=="Alternative")throw new Error("UnknownError");const y={type:"Backreference",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),ref:he,ambiguous:!1,resolved:dr};je.elements.push(y),this._backreferences.push(y)}onCharacterClassEnter(M,Y,he){const je=this._node,y={type:"CharacterClass",parent:je,start:M,end:M,raw:"",unicodeSets:he,negate:Y,elements:[]};if(je.type==="Alternative"){const D=Object.assign(Object.assign({},y),{parent:je});this._node=D,je.elements.push(D)}else if(je.type==="CharacterClass"&&je.unicodeSets&&he){const D=Object.assign(Object.assign({},y),{parent:je,unicodeSets:he});this._node=D,je.elements.push(D)}else throw new Error("UnknownError")}onCharacterClassLeave(M,Y){const he=this._node;if(he.type!=="CharacterClass"||he.parent.type!=="Alternative"&&he.parent.type!=="CharacterClass")throw new Error("UnknownError");const je=he.parent;he.end=Y,he.raw=this.source.slice(M,Y),this._node=je;const y=this._expressionBufferMap.get(he);if(!y)return;if(he.elements.length>0)throw new Error("UnknownError");this._expressionBufferMap.delete(he);const D={type:"ExpressionCharacterClass",parent:je,start:he.start,end:he.end,raw:he.raw,negate:he.negate,expression:y};if(y.parent=D,he!==je.elements.pop())throw new Error("UnknownError");je.elements.push(D)}onCharacterClassRange(M,Y){const he=this._node;if(he.type!=="CharacterClass")throw new Error("UnknownError");const je=he.elements,y=je.pop();if(!y||y.type!=="Character")throw new Error("UnknownError");if(!he.unicodeSets){const K=je.pop();if(!K||K.type!=="Character"||K.value!==H)throw new Error("UnknownError")}const D=je.pop();if(!D||D.type!=="Character")throw new Error("UnknownError");const U={type:"CharacterClassRange",parent:he,start:M,end:Y,raw:this.source.slice(M,Y),min:D,max:y};D.parent=U,y.parent=U,je.push(U)}onClassIntersection(M,Y){var he;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(he=this._expressionBufferMap.get(je))!==null&&he!==void 0?he:je.elements.pop();if(!D||!y||D.type==="ClassSubtraction"||D.type!=="ClassIntersection"&&!gr(D)||!gr(y))throw new Error("UnknownError");const U={type:"ClassIntersection",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),left:D,right:y};D.parent=U,y.parent=U,this._expressionBufferMap.set(je,U)}onClassSubtraction(M,Y){var he;const je=this._node;if(je.type!=="CharacterClass"||!je.unicodeSets)throw new Error("UnknownError");const y=je.elements.pop(),D=(he=this._expressionBufferMap.get(je))!==null&&he!==void 0?he:je.elements.pop();if(!D||!y||D.type==="ClassIntersection"||D.type!=="ClassSubtraction"&&!gr(D)||!gr(y))throw new Error("UnknownError");const U={type:"ClassSubtraction",parent:je,start:M,end:Y,raw:this.source.slice(M,Y),left:D,right:y};D.parent=U,y.parent=U,this._expressionBufferMap.set(je,U)}onClassStringDisjunctionEnter(M){const Y=this._node;if(Y.type!=="CharacterClass"||!Y.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:Y,start:M,end:M,raw:"",alternatives:[]},Y.elements.push(this._node)}onClassStringDisjunctionLeave(M,Y){const he=this._node;if(he.type!=="ClassStringDisjunction"||he.parent.type!=="CharacterClass")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}onStringAlternativeEnter(M){const Y=this._node;if(Y.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:Y,start:M,end:M,raw:"",elements:[]},Y.alternatives.push(this._node)}onStringAlternativeLeave(M,Y){const he=this._node;if(he.type!=="StringAlternative")throw new Error("UnknownError");he.end=Y,he.raw=this.source.slice(M,Y),this._node=he.parent}}class Rr{constructor(M){this._state=new Ur(M),this._validator=new Fr(this._state)}parseLiteral(M,Y=0,he=M.length){this._state.source=M,this._validator.validateLiteral(M,Y,he);const je=this._state.pattern,y=this._state.flags,D={type:"RegExpLiteral",parent:null,start:Y,end:he,raw:M,pattern:je,flags:y};return je.parent=D,y.parent=D,D}parseFlags(M,Y=0,he=M.length){return this._state.source=M,this._validator.validateFlags(M,Y,he),this._state.flags}parsePattern(M,Y=0,he=M.length,je=void 0){return this._state.source=M,this._validator.validatePattern(M,Y,he,je),this._state.pattern}}class pr{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Modifiers":this.visitModifiers(M);break;case"ModifierFlags":this.visitModifierFlags(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.modifiers&&this.visit(M.modifiers),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitModifiers(M){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(M),M.add&&this.visit(M.add),M.remove&&this.visit(M.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(M)}visitModifierFlags(M){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(M),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function bt(We,M){return new Rr(M).parseLiteral(String(We))}function ln(We,M){new Fr(M).validateLiteral(We)}function qr(We,M){new pr(M).visit(We)}return lr.AST=a,lr.RegExpParser=Rr,lr.RegExpSyntaxError=$t,lr.RegExpValidator=Fr,lr.parseRegExpLiteral=bt,lr.validateRegExpLiteral=ln,lr.visitRegExpAST=qr,lr}var nl,qy;function oT(){if(qy)return nl;qy=1;const a=ur().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new a(this)}onPatternEnter(){this._controlChars=[]}onCharacter(n,o,t){t>=0&&t<=31&&(this._source.codePointAt(n)===t||this._source.slice(n,o).startsWith("\\x")||this._source.slice(n,o).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${t.toString(16)}`.slice(-2)}`)}collectControlChars(n,o){const t=typeof o=="string"&&o.includes("u"),l=typeof o=="string"&&o.includes("v");this._controlChars=[],this._source=n;try{this._validator.validatePattern(n,void 0,void 0,{unicode:t,unicodeSets:l})}catch{}return this._controlChars}};return nl={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(n){function o(t){if(t.regex)return t.regex;if(typeof t.value=="string"&&(t.parent.type==="NewExpression"||t.parent.type==="CallExpression")&&t.parent.callee.type==="Identifier"&&t.parent.callee.name==="RegExp"&&t.parent.arguments[0]===t){const l=t.value,p=t.parent.arguments.length>1&&t.parent.arguments[1].type==="Literal"&&typeof t.parent.arguments[1].value=="string"?t.parent.arguments[1].value:null;return{pattern:l,flags:p}}return null}return{Literal(t){const l=o(t);if(l){const{pattern:p,flags:u}=l,r=e.collectControlChars(p,u);r.length>0&&n.report({node:t,messageId:"unexpected",data:{controlChars:r.join(", ")}})}}}}},nl}var sl,Vy;function lT(){return Vy||(Vy=1,sl={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(a){return{DebuggerStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),sl}var al,$y;function uT(){return $y||($y=1,al={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(a){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&a.report({node:e,messageId:"unexpected"})}}}}),al}var il,Wy;function cT(){return Wy||(Wy=1,il={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(a){const e=a.sourceCode;return{Literal(n){const o=e.getFirstToken(n);o.type==="RegularExpression"&&o.value[1]==="="&&a.report({node:n,messageId:"unexpected",fix(t){return t.replaceTextRange([o.range[0]+1,o.range[0]+2],"[=]")}})}}}}),il}var ol,Gy;function fT(){return Gy||(Gy=1,ol={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(a){const e=a.sourceCode;function n(t){return t.type==="Parameter"}function o(t){const l=e.getDeclaredVariables(t);for(let p=0;p<l.length;++p){const u=l[p];u.defs.filter(n).length>=2&&a.report({node:t,messageId:"unexpected",data:{name:u.name}})}}return{FunctionDeclaration:o,FunctionExpression:o}}}),ol}var ll,zy;function pT(){if(zy)return ll;zy=1;const a=Ue();return ll={meta:{type:"problem",dialects:["javascript","typescript"],language:"javascript",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let n=[];function o(t,l){const p=n.at(-1),u=`$${t}`;return p[u]||(p[u]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),p[u][l?"static":"nonStatic"]}return{Program(){n=[]},ClassBody(){n.push(Object.create(null))},"ClassBody:exit"(){n.pop()},"MethodDefinition, PropertyDefinition"(t){if(t.value&&t.value.type==="TSEmptyBodyFunctionExpression")return;const l=a.getStaticPropertyName(t),p=t.type==="MethodDefinition"?t.kind:"field";if(l===null||p==="constructor")return;const u=o(l,t.static);let r;p==="get"?(r=u.init||u.get,u.get=!0):p==="set"?(r=u.init||u.set,u.set=!0):(r=u.init||u.get||u.set,u.init=!0),r&&e.report({node:t,messageId:"unexpected",data:{name:l}})}}}},ll}var ul,Hy;function mT(){if(Hy)return ul;Hy=1;const a=Ue();function e(l,p,u){return p.every(r=>u.some(m=>l(r,m)))}function n(l,p){return p.type==="LogicalExpression"&&p.operator===l?[...n(l,p.left),...n(l,p.right)]:[p]}const o=n.bind(null,"||"),t=n.bind(null,"&&");return ul={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(l){const p=l.sourceCode;function u(m,i){return m.type!==i.type?!1:m.type==="LogicalExpression"&&(m.operator==="||"||m.operator==="&&")&&m.operator===i.operator?u(m.left,i.left)&&u(m.right,i.right)||u(m.left,i.right)&&u(m.right,i.left):a.equalTokens(m,i,p)}const r=e.bind(null,u);return{IfStatement(m){const i=m.test,c=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...t(i)]:[i];let h=m,s=c.map(f=>o(f).map(t));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;const f=o(h.test).map(t);if(s=s.map(g=>g.filter(d=>!f.some(E=>r(E,d)))),s.some(g=>g.length===0)){l.report({node:i,messageId:"unexpected"});break}}}}}},ul}var cl,Ky;function hT(){if(Ky)return cl;Ky=1;const a=Ue(),e=/^(?:init|get)$/u,n=/^(?:init|set)$/u;class o{constructor(l,p){this.upper=l,this.node=p,this.properties=new Map}getPropertyInfo(l){const p=a.getStaticPropertyName(l);return this.properties.has(p)||this.properties.set(p,{get:!1,set:!1}),this.properties.get(p)}isPropertyDefined(l){const p=this.getPropertyInfo(l);return e.test(l.kind)&&p.get||n.test(l.kind)&&p.set}defineProperty(l){const p=this.getPropertyInfo(l);e.test(l.kind)&&(p.get=!0),n.test(l.kind)&&(p.set=!0)}}return cl={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(t){let l=null;return{ObjectExpression(p){l=new o(l,p)},"ObjectExpression:exit"(){l=l.upper},Property(p){const u=a.getStaticPropertyName(p);p.parent.type==="ObjectExpression"&&u!==null&&(u==="__proto__"&&p.kind==="init"&&!p.computed&&!p.shorthand&&!p.method||(l.isPropertyDefined(p)&&t.report({node:l.node,loc:p.key.loc,messageId:"unexpected",data:{name:u}}),l.defineProperty(p)))}}}},cl}var fl,Xy;function dT(){if(Xy)return fl;Xy=1;const a=Ue();return fl={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){const n=e.sourceCode;function o(t,l){return t.type!==l.type?!1:a.equalTokens(t,l,n)}return{SwitchStatement(t){const l=[];for(const p of t.cases)if(p.test){const u=p.test;l.some(r=>o(r,u))?e.report({node:p,messageId:"unexpected"}):l.push(u)}}}}},fl}var pl,Jy;function gT(){if(Jy)return pl;Jy=1;const a=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function n(i,c){return(c==="named"?a:e).includes(i)}function o(i){if(i.specifiers&&i.specifiers.length>0){const c=i.specifiers,h=c.findIndex(({type:f})=>n(f,"named")||n(f,"namespace")),s=h>-1?h:0;return c[s].type}return i.type==="ExportAllDeclaration"?i.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function t(i,c){const h=o(i),s=o(c);if((i.importKind==="type"||i.exportKind==="type")&&(c.importKind==="type"||c.exportKind==="type")){const f=h==="ImportDefaultSpecifier",g=s==="ImportDefaultSpecifier",d=n(h,"named"),E=n(s,"named");if(f&&E||g&&d)return!1}return!(h==="ExportAll"&&s!=="ExportAll"&&s!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&s==="ExportAll"||n(h,"namespace")&&n(s,"named")||n(s,"namespace")&&n(h,"named"))}function l(i,c,h){let s=0;for(;s<c.length;){const f=c[s];if(h){const g=i.importKind==="type"||i.exportKind==="type",d=f.importKind==="type"||f.exportKind==="type";if(g!==d){s++;continue}}if(t(i,f))return!0;s++}return!1}function p(i,c){return i.filter(({declarationType:h})=>h===c).map(({node:h})=>h)}function u(i){return i&&i.source&&i.source.value?i.source.value.trim():""}function r(i,c,h,s,f,g){const d=u(c);if(h.has(d)){const E=h.get(d),S=[],x=p(E,"import");let T;f&&(T=p(E,"export")),s==="import"?(l(c,x,g)&&S.push("import"),f&&l(c,T,g)&&S.push("importAs")):s==="export"&&(l(c,T,g)&&S.push("export"),l(c,x,g)&&S.push("exportAs")),S.forEach(C=>i.report({node:c,messageId:C,data:{module:d}}))}}function m(i,c,h,s,f){return function(g){const d=u(g);if(d){r(i,g,c,h,s,f);const E={node:g,declarationType:h};let S=[E];c.has(d)&&(S=[...c.get(d),E]),c.set(d,S)}}}return pl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean"},allowSeparateTypeImports:{type:"boolean"}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(i){const[{includeExports:c,allowSeparateTypeImports:h}]=i.options,s=new Map,f={ImportDeclaration:m(i,s,"import",c,h)};return c&&(f.ExportNamedDeclaration=m(i,s,"export",c,h),f.ExportAllDeclaration=m(i,s,"export",c,h)),f}},pl}var ml,Yy;function nn(){if(Yy)return ml;Yy=1;const a=Ue();class e{constructor(o,t){this.fixer=o,this.sourceCode=t,this.retainedRange=null}retainRange(o){return this.retainedRange=o,this}retainEnclosingFunction(o){const t=a.getUpperFunction(o);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(o){const t=this.sourceCode.getTokenBefore(o)||o,l=this.sourceCode.getTokenAfter(o)||o;return this.retainRange([t.range[0],l.range[1]])}replaceTextRange(o,t){let l;return this.retainedRange?l=[Math.min(this.retainedRange[0],o[0]),Math.max(this.retainedRange[1],o[1])]:l=o,this.fixer.replaceTextRange(l,this.sourceCode.text.slice(l[0],o[0])+t+this.sourceCode.text.slice(o[1],l[1]))}remove(o){return this.replaceTextRange(o.range,"")}}return ml=e,ml}var hl,Qy;function yT(){if(Qy)return hl;Qy=1;const a=Ue(),e=nn();return hl={meta:{type:"suggestion",defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(n){const[{allowElseIf:o}]=n.options,t=n.sourceCode;function l(d,E){if(d.length===0)return!0;const S=E.variableScope;if(E.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>d.includes(C))||E!==S&&E.upper.type==="catch"&&E.upper.variables.some(({name:C})=>d.includes(C))||E.variables.filter(({defs:C,references:v})=>C.length===0&&v.length>0).some(({name:C})=>d.includes(C))||E.through.some(C=>d.includes(C.identifier.name)))return!1;if(E!==S){const C=E.block.range;if(S.variables.filter(({name:A})=>d.includes(A)).some(A=>A.defs.some(({node:{range:b}})=>C[0]<=b[0]&&b[1]<=C[1])))return!1}return!0}function p(d,E){if(d.type==="FunctionDeclaration")return!1;if(d.type!=="BlockStatement")return!0;const S=E.childScopes.find(({block:T})=>T===d);if(!S)return!0;const x=S.variables.map(({name:T})=>T);return l(x,E)}function u(d){const E=t.getScope(d.parent);n.report({node:d,messageId:"unexpected",fix(S){if(!p(d,E))return null;const x=t.getFirstToken(d),T=t.getTokenBefore(x),C=t.getText(d),v=t.getTokenBefore(T);let A,b;x.type==="Punctuator"&&x.value==="{"?b=t.getTokenAfter(x):b=x;const w=d.parent.consequent.type!=="BlockStatement"&&v.value!==";",k=/^[([/+`-]/u.test(b.value);if(w&&k)return null;const R=t.getLastToken(d),F=t.getTokenBefore(R);if(F.value!==";"){const L=t.getTokenAfter(R),P=L&&/^[([/+`-]/u.test(L.value),O=L&&L.loc.start.line===F.loc.start.line;if(P||O&&L.value!=="}")return null}return x.type==="Punctuator"&&x.value==="{"?A=C.slice(1,-1):A=C,new e(S,t).retainEnclosingFunction(d).replaceTextRange([T.range[0],d.range[1]],A)}})}function r(d){return d.type==="ReturnStatement"}function m(d){if(d.type==="BlockStatement"){const E=d.body,S=E.at(-1);return S&&r(S)}return r(d)}function i(d){return d.alternate&&d.consequent}function c(d){return d.type==="IfStatement"&&i(d)&&m(d.alternate)&&m(d.consequent)}function h(d){return r(d)||c(d)}function s(d){return d.type==="BlockStatement"?d.body.some(h):h(d)}function f(d){const E=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(E.type))return;const S=[];let x;for(let T=d;T.type==="IfStatement";T=T.alternate){if(!T.alternate)return;S.push(T.consequent),x=T.alternate}S.every(s)&&u(x)}function g(d){const E=d.parent;if(!a.STATEMENT_LIST_PARENTS.has(E.type))return;const S=d.alternate;S&&s(d.consequent)&&u(S)}return{"IfStatement:exit":o?f:g}}},hl}var dl,Zy;function vT(){if(Zy)return dl;Zy=1;const a=Ue();return dl={meta:{hasSuggestions:!0,type:"suggestion",defaultOptions:[{allowEmptyCatch:!1}],docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){const[{allowEmptyCatch:n}]=e.options,o=e.sourceCode;return{BlockStatement(t){t.body.length===0&&(a.isFunction(t.parent)||n&&t.parent.type==="CatchClause"||o.getCommentsInside(t).length>0||e.report({node:t,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(l){const p=[t.range[0]+1,t.range[1]-1];return l.replaceTextRange(p," /* empty */ ")}}]}))},SwitchStatement(t){(typeof t.cases>"u"||t.cases.length===0)&&e.report({node:t,messageId:"unexpected",data:{type:"switch"}})}}}},dl}var gl,ev;function ET(){if(ev)return gl;ev=1;const{RegExpParser:a,visitRegExpAST:e}=ur(),n=new a,o=/\[\]/u;return gl={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(t){return{"Literal[regex]"(l){const{pattern:p,flags:u}=l.regex;if(!o.test(p))return;let r;try{r=n.parsePattern(p,0,p.length,{unicode:u.includes("u"),unicodeSets:u.includes("v")})}catch{return}e(r,{onCharacterClassEnter(m){!m.negate&&m.elements.length===0&&t.report({node:l,messageId:"unexpected"})}})}}}},gl}var yl,tv;function ST(){if(tv)return yl;tv=1;const a=Ue(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods","privateConstructors","protectedConstructors","decoratedFunctions","overrideMethods"]);function n(t){const l=t.parent;let p;if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(l.type==="Property"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";p=l.method?"methods":"functions"}else if(l.type==="MethodDefinition"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";if(l.kind==="constructor")return"constructors";p="methods"}else p="functions";let u;if(t.generator)u="generator";else if(t.async)u="async";else return p;return u+p[0].toUpperCase()+p.slice(1)}function o(t){return t.params.some(l=>l.type==="TSParameterProperty")}return yl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{allow:[]}],docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(t){const[{allow:l}]=t.options,p=t.sourceCode;function u(m){const i=n(m);return!!(l.includes(i)||i==="constructors"&&(m.parent.accessibility==="private"&&l.includes("privateConstructors")||m.parent.accessibility==="protected"&&l.includes("protectedConstructors")||o(m))||/(?:g|s)etters|methods$/iu.test(i)&&(m.parent.decorators?.length&&l.includes("decoratedFunctions")||m.parent.override&&l.includes("overrideMethods")))}function r(m){const i=a.getFunctionNameWithKind(m),c=p.getTokens(m.body,{includeComments:!0,filter:a.isCommentToken});!u(m)&&m.body.type==="BlockStatement"&&m.body.body.length===0&&c.length===0&&t.report({node:m,loc:m.body.loc,messageId:"unexpected",data:{name:i}})}return{ArrowFunctionExpression:r,FunctionDeclaration:r,FunctionExpression:r}}},yl}var vl,rv;function bT(){if(rv)return vl;rv=1;const a=Ue();return vl={meta:{type:"problem",defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){const[{allowObjectPatternsAsParameters:n}]=e.options;return{ObjectPattern(o){o.properties.length>0||n&&(a.isFunction(o.parent)||o.parent.type==="AssignmentPattern"&&a.isFunction(o.parent.parent)&&o.parent.right.type==="ObjectExpression"&&o.parent.right.properties.length===0)||e.report({node:o,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(o){o.elements.length===0&&e.report({node:o,messageId:"unexpected",data:{type:"array"}})}}}},vl}var El,nv;function xT(){return nv||(nv=1,El={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(a){const e=a.sourceCode;return{StaticBlock(n){if(n.body.length===0){const o=e.getLastToken(n);e.getCommentsBefore(o).length===0&&a.report({node:n,messageId:"unexpected"})}}}}}),El}var Sl,sv;function CT(){return sv||(sv=1,Sl={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(a){return{BinaryExpression(e){const n=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&n||e.left.type==="Literal"&&e.left.raw==="null"&&n)&&a.report({node:e,messageId:"unexpected"})}}}}),Sl}var bl,av;function wT(){if(av)return bl;av=1;const a=Ue(),e=Object.freeze(["global","window","globalThis"]);function n(o,t){return a.isSpecificMemberAccess(o,null,t)}return bl={meta:{type:"suggestion",defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(o){const[{allowIndirect:t}]=o.options,l=o.sourceCode;let p=null;function u(h){const s=l.getScope(h).isStrict;p={upper:p,node:h,strict:s,isTopLevelOfScript:!1,defaultThis:!1,initialized:s}}function r(){p=p.upper}function m(h){const s=h.parent,f=h.type==="MemberExpression"?h.property:h,g=s.type==="CallExpression"&&s.callee===h?s:h;o.report({node:g,loc:f.loc,messageId:"unexpected"})}function i(h){for(let s=0;s<e.length;++s){const f=e[s],g=a.getVariableByName(h,f);if(!g)continue;const d=g.references;for(let E=0;E<d.length;++E){let x=d[E].identifier.parent;for(;n(x,f);)x=x.parent;n(x,"eval")&&m(x)}}}function c(h){const s=a.getVariableByName(h,"eval");if(!s)return;const f=s.references;for(let g=0;g<f.length;++g){const E=f[g].identifier;E.name==="eval"&&!a.isCallee(E)&&m(E)}}return t?{"CallExpression:exit"(h){const s=h.callee;!h.optional&&a.isSpecificId(s,"eval")&&m(s)}}:{"CallExpression:exit"(h){const s=h.callee;a.isSpecificId(s,"eval")&&m(s)},Program(h){const s=l.getScope(h),f=o.parserOptions.ecmaFeatures||{},g=s.isStrict||h.sourceType==="module"||f.globalReturn&&s.childScopes[0].isStrict,d=h.sourceType!=="module"&&!f.globalReturn;p={upper:null,node:h,strict:g,isTopLevelOfScript:d,defaultThis:!0,initialized:!0}},"Program:exit"(h){const s=l.getScope(h);r(),c(s),i(s)},FunctionDeclaration:u,"FunctionDeclaration:exit":r,FunctionExpression:u,"FunctionExpression:exit":r,"PropertyDefinition > *.value":u,"PropertyDefinition > *.value:exit":r,StaticBlock:u,"StaticBlock:exit":r,ThisExpression(h){n(h.parent,"eval")&&(p.initialized||(p.initialized=!0,p.defaultThis=a.isDefaultThisBinding(p.node,l)),(p.isTopLevelOfScript||!p.strict&&p.defaultThis)&&m(h.parent))}}}},bl}var xl,iv;function AT(){if(iv)return xl;iv=1;const a=Ue();return xl={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){const n=e.sourceCode;function o(t){a.getModifyingReferences(t.references).forEach(l=>{e.report({node:l.identifier,messageId:"unexpected"})})}return{CatchClause(t){n.getDeclaredVariables(t).forEach(o)}}}},xl}var Cl,ov;function TT(){if(ov)return Cl;ov=1;const a=Ue();return Cl={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){const n=e.sourceCode,o=new Set(e.options[0].exceptions),t=new Set(Object.keys(a.ECMASCRIPT_GLOBALS).filter(i=>i[0].toUpperCase()===i[0]).filter(i=>!o.has(i)));function l(i,c){e.report({node:i,messageId:"unexpected",data:{builtin:c}})}function p(i){return!!(i&&i.parent&&i.parent.type==="MemberExpression"&&i.parent.object===i&&a.getStaticPropertyName(i.parent)==="prototype")}function u(i){return i.parent.type==="MemberExpression"&&i.parent.object===i&&i.parent.parent.type==="AssignmentExpression"&&i.parent.parent.left===i.parent}function r(i){return i.parent.type==="CallExpression"&&i.parent.arguments[0]===i&&a.isSpecificMemberAccess(i.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function m(i){if(!p(i))return;const c=i.parent.parent.type==="ChainExpression"?i.parent.parent:i.parent;u(c)?l(c.parent.parent,i.name):r(c)&&l(c.parent,i.name)}return{"Program:exit"(i){const c=n.getScope(i);t.forEach(h=>{const s=c.set.get(h);s&&s.references&&s.references.map(f=>f.identifier).forEach(m)})}}}},Cl}var wl,lv;function kT(){if(lv)return wl;lv=1;const a=Ue(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return wl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(n){const o=n.sourceCode;let t=null;function l(h){return e.has(h.type)}function p(h){const s=h.parent,f=s.parent.type==="ChainExpression"?s.parent.parent:s.parent;n.report({node:f,messageId:"unexpected",loc:s.property.loc,fix(g){if(!l(f.arguments[0]))return null;const d=[[o.getTokenAfter(s.object,a.isNotClosingParenToken),o.getLastToken(s)],[o.getTokenAfter(s,a.isNotClosingParenToken),o.getLastToken(f)]],E=d[0][0],S=d[1][1];return o.commentsExistBetween(E,S)?null:d.map(([x,T])=>g.removeRange([x.range[0],T.range[1]]))}})}function u(h){if(!a.isSpecificMemberAccess(h.parent,null,"bind"))return!1;const s=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return s.parent.type==="CallExpression"&&s.parent.callee===s&&s.parent.arguments.length===1&&s.parent.arguments[0].type!=="SpreadElement"}function r(h){t={isBound:u(h),thisFound:!1,upper:t}}function m(h){t.isBound&&!t.thisFound&&p(h),t=t.upper}function i(h){u(h)&&p(h)}function c(){t&&(t.thisFound=!0)}return{"ArrowFunctionExpression:exit":i,FunctionDeclaration:r,"FunctionDeclaration:exit":m,FunctionExpression:r,"FunctionExpression:exit":m,ThisExpression:c}}},wl}var Al,uv;function DT(){if(uv)return Al;uv=1;const a=Ue(),e=qt(),n=a.getPrecedence;return Al={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow unnecessary boolean casts",recommended:!0,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{anyOf:[{type:"object",properties:{enforceForInnerExpressions:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{enforceForLogicalOperands:{type:"boolean"}},additionalProperties:!1}]}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(o){const t=o.sourceCode,[{enforceForLogicalOperands:l,enforceForInnerExpressions:p}]=o.options,u=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function r(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function m(f){return r(f.parent)&&f===f.parent.arguments[0]||u.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function i(f){return f.parent.type==="ChainExpression"||(l||p)&&f.parent.type==="LogicalExpression"&&(f.parent.operator==="||"||f.parent.operator==="&&"||p&&f.parent.operator==="??"&&f.parent.right===f)||p&&(f.parent.type==="ConditionalExpression"&&(f.parent.consequent===f||f.parent.alternate===f)||f.parent.type==="SequenceExpression"&&f.parent.expressions.at(-1)===f)?i(f.parent):m(f)}function c(f){return!!t.getCommentsInside(f).length}function h(f){return e.isParenthesized(1,f,t)}function s(f,g){if(f.parent.type==="ChainExpression")return s(f.parent,g);if(h(f))return!1;const d=f.parent;switch(d.type){case"CallExpression":case"NewExpression":return g.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":case"SequenceExpression":return!1;case"ConditionalExpression":if(f===d.test)return n(g)<=n(d);if(f===d.consequent||f===d.alternate)return n(g)<n({type:"AssignmentExpression"});throw new Error("Ternary child must be test, consequent, or alternate.");case"UnaryExpression":return n(g)<n(d);case"LogicalExpression":return a.isMixedLogicalAndCoalesceExpressions(g,d)?!0:f===d.left?n(g)<n(d):n(g)<=n(d);default:throw new Error(`Unexpected parent type: ${d.type}`)}}return{UnaryExpression(f){const g=f.parent;f.operator!=="!"||g.type!=="UnaryExpression"||g.operator!=="!"||i(g)&&o.report({node:g,messageId:"unexpectedNegation",fix(d){if(c(g))return null;if(s(g,f.argument))return d.replaceText(g,`(${t.getText(f.argument)})`);let E="";const S=t.getTokenBefore(g),x=t.getFirstToken(f.argument);return S&&S.range[1]===g.range[0]&&!a.canTokensBeAdjacent(S,x)&&(E=" "),d.replaceText(g,E+t.getText(f.argument))}})},CallExpression(f){f.callee.type!=="Identifier"||f.callee.name!=="Boolean"||i(f)&&o.report({node:f,messageId:"unexpectedCall",fix(g){const d=f.parent;if(f.arguments.length===0){if(d.type==="UnaryExpression"&&d.operator==="!"){if(c(d))return null;const E="true";let S="";const x=t.getTokenBefore(d);return x&&x.range[1]===d.range[0]&&!a.canTokensBeAdjacent(x,E)&&(S=" "),g.replaceText(d,S+E)}return c(f)?null:g.replaceText(f,"false")}if(f.arguments.length===1){const E=f.arguments[0];return E.type==="SpreadElement"||c(f)?null:s(f,E)?g.replaceText(f,`(${t.getText(E)})`):g.replaceText(f,t.getText(E))}return null}})}}}},Al}var Tl,cv;function IT(){if(cv)return Tl;cv=1;const a=Ue();return Tl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary labels",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(e){const n=e.sourceCode;let o=null;function t(m){o={label:m.parent.type==="LabeledStatement"?m.parent.label:null,breakable:!0,upper:o}}function l(){o=o.upper}function p(m){a.isBreakableStatement(m.body)||(o={label:m.label,breakable:!1,upper:o})}function u(m){a.isBreakableStatement(m.body)||(o=o.upper)}function r(m){if(!m.label)return;const i=m.label;for(let c=o;c!==null;c=c.upper)if(c.breakable||c.label&&c.label.name===i.name){c.breakable&&c.label&&c.label.name===i.name&&e.report({node:i,messageId:"unexpected",data:i,fix(h){const s=n.getFirstToken(m);return n.commentsExistBetween(s,i)?null:h.removeRange([s.range[1],i.range[1]])}});return}}return{WhileStatement:t,"WhileStatement:exit":l,DoWhileStatement:t,"DoWhileStatement:exit":l,ForStatement:t,"ForStatement:exit":l,ForInStatement:t,"ForInStatement:exit":l,ForOfStatement:t,"ForOfStatement:exit":l,SwitchStatement:t,"SwitchStatement:exit":l,LabeledStatement:p,"LabeledStatement:exit":u,BreakStatement:r,ContinueStatement:r}}},Tl}var kl,fv;function PT(){if(fv)return kl;fv=1;const{isParenthesized:a}=qt(),e=Ue();return kl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-parens",url:"https://eslint.style/rules/no-extra-parens"}}]},type:"layout",docs:{description:"Disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},ternaryOperandBinaryExpressions:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"},allowParensAfterCommentPattern:{type:"string"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(n){const o=n.sourceCode,t=new WeakSet,l=e.getPrecedence,p=n.options[0]!=="functions",u=p&&n.options[1]&&n.options[1].conditionalAssign===!1,r=p&&n.options[1]&&n.options[1].ternaryOperandBinaryExpressions===!1,m=p&&n.options[1]&&n.options[1].nestedBinaryExpressions===!1,i=p&&n.options[1]&&n.options[1].returnAssign===!1,c=p&&n.options[1]&&n.options[1].ignoreJSX,h=p&&n.options[1]&&n.options[1].enforceForArrowConditionals===!1,s=p&&n.options[1]&&n.options[1].enforceForSequenceExpressions===!1,f=p&&n.options[1]&&n.options[1].enforceForNewInMemberExpressions===!1,g=p&&n.options[1]&&n.options[1].enforceForFunctionPrototypeMethods===!1,d=p&&n.options[1]&&n.options[1].allowParensAfterCommentPattern,E=l({type:"AssignmentExpression"}),S=l({type:"UpdateExpression"});let x;function T($){const ae=e.skipChainExpression($);if(ae.type!=="CallExpression")return!1;const Ie=e.skipChainExpression(ae.callee);return Ie.type==="MemberExpression"&&Ie.object.type==="FunctionExpression"&&["call","apply"].includes(e.getStaticPropertyName(Ie))}function C($){if($.type==="JSXElement"||$.type==="JSXFragment"){const ae=$.loc.start.line===$.loc.end.line;switch(c){case"all":return!1;case"multi-line":return ae;case"single-line":return!ae}}return $.type==="SequenceExpression"&&s||T($)&&g?!1:p||$.type==="FunctionExpression"||$.type==="ArrowFunctionExpression"}function v($){return a(1,$,o)}function A($){return a(2,$,o)}function b($){return C($)&&v($)}function w($){return C($)&&A($)}function k($,ae){return!!(C($)&&v($)&&(l($)>=ae||A($)))}function R($){return u&&$.test.type==="AssignmentExpression"}function F($){for(let ae=$;ae;ae=ae.parent)if(ae.type==="ReturnStatement"||ae.type==="ArrowFunctionExpression"&&ae.body.type!=="BlockStatement")return!0;return!1}function L($){const ae=o.getLastToken($),Ie=o.getTokenBefore(ae);return $.arguments.length>0||e.isOpeningParenToken(Ie)&&e.isClosingParenToken(ae)&&$.callee.range[1]<$.range[1]}function P($){return!!($.type==="AssignmentExpression"||$.type==="ConditionalExpression"&&($.consequent.type==="AssignmentExpression"||$.alternate.type==="AssignmentExpression")||$.left&&$.left.type==="AssignmentExpression"||$.right&&$.right.type==="AssignmentExpression")}function O($){return!i||!F($)?!1:$.type==="ReturnStatement"?$.argument&&P($.argument):$.type==="ArrowFunctionExpression"&&$.body.type!=="BlockStatement"?P($.body):P($)}function q($,ae){return $.loc.end.line===ae.loc.start.line?b(ae):w(ae)}function N($){const ae=o.getTokenBefore($),Ie=o.getTokenBefore(ae,{includeComments:!0}),Ne=o.getTokenAfter(ae,{includeComments:!0});return Ie&&Ie.range[1]===ae.range[0]&&ae.range[1]===Ne.range[0]&&!e.canTokensBeAdjacent(Ie,Ne)}function _($){const ae=o.getTokensAfter($,{count:2}),Ie=ae[0],Ne=ae[1],Be=o.getLastToken($);return Ie&&Ne&&!o.isSpaceBetweenTokens(Ie,Ne)&&!e.canTokensBeAdjacent(Be,Ne)}function G($){const ae=e.skipChainExpression($);return ae.type==="CallExpression"&&ae.callee.type==="FunctionExpression"}function B($){return $&&($.type==="Identifier"||$.type==="MemberExpression")}function z($){return $.type!=="Literal"||typeof $.value!="string"||A($)?!0:!e.isTopLevelExpressionStatement($.parent)}function H($){const ae=o.getTokenBefore($),Ie=o.getTokenAfter($);if(!A($)){if(t.has(o.getFirstToken($))||G($)&&!v($.callee))return;if(d){const Be=o.getCommentsBefore(ae),j=Be.length,Qe=new RegExp(d,"u");if(j>0&&Qe.test(Be[j-1].value))return}}function Ne(){n.report({node:$,loc:ae.loc,messageId:"unexpected",fix:z($)?Be=>{const j=o.text.slice(ae.range[1],Ie.range[0]);return Be.replaceTextRange([ae.range[0],Ie.range[1]],(N($)?" ":"")+j+(_($)?" ":""))}:null})}if(x){x.reports.push({node:$,finishReport:Ne});return}Ne()}function ce($){k($.argument,l($))&&H($.argument)}function re($){let ae=$.object,Ie=$.object.type;for(;Ie==="MemberExpression";)ae=ae.object,Ie=ae.type;return Ie==="CallExpression"}function Fe($){const ae=$.callee;k(ae,l($))&&(w(ae)||!(G($)||ae.type==="NewExpression"&&!L(ae)&&!($.type==="NewExpression"&&!L($))||$.type==="NewExpression"&&ae.type==="MemberExpression"&&re(ae)||!$.optional&&ae.type==="ChainExpression"))&&H($.callee),$.arguments.filter(Ie=>k(Ie,E)).forEach(H)}function X($){const ae=l($),Ie=l($.left),Ne=l($.right),Be=$.operator==="**",j=m&&($.left.type==="BinaryExpression"||$.left.type==="LogicalExpression"),Qe=m&&($.right.type==="BinaryExpression"||$.right.type==="LogicalExpression");!j&&b($.left)&&(!(["AwaitExpression","UnaryExpression"].includes($.left.type)&&Be)&&!e.isMixedLogicalAndCoalesceExpressions($.left,$)&&(Ie>ae||Ie===ae&&!Be)||A($.left))&&H($.left),!Qe&&b($.right)&&(!e.isMixedLogicalAndCoalesceExpressions($.right,$)&&(Ne>ae||Ne===ae&&Be)||A($.right))&&H($.right)}function I($){if(!$.superClass)return;(l($.superClass)>S?b($.superClass):w($.superClass))&&H($.superClass)}function W($){k($.argument,E)&&H($.argument)}function oe($){const ae=v($)?o.getTokenBefore($):o.getFirstToken($),Ie=o.getTokenAfter(ae,e.isNotOpeningParenToken),Ne=Ie?o.getTokenAfter(Ie):null,Be=Ie?o.getTokenAfter(Ie,e.isNotClosingParenToken):null;e.isOpeningParenToken(ae)&&(e.isOpeningBraceToken(Ie)||Ie.type==="Keyword"&&(Ie.value==="function"||Ie.value==="class"||Ie.value==="let"&&Be&&(e.isOpeningBracketToken(Be)||Be.type==="Identifier"))||Ie&&Ie.type==="Identifier"&&Ie.value==="async"&&Ne&&Ne.type==="Keyword"&&Ne.value==="function")&&t.add(Ie),($.parent.type==="ExportDefaultDeclaration"?k($,E):b($))&&H($)}function ie($,ae){const Ie=[$];let Ne=$;for(;Ne!==ae;){if(Ne=Ne.parent,Ne===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ie.push(Ne)}return Ie}function se($,ae){return ie(ae,$).reverse()}function de($,ae){switch($.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return $.params.includes(ae);case"CallExpression":case"NewExpression":return $.arguments.includes(ae);case"MemberExpression":return $.computed&&$.property===ae;case"ConditionalExpression":return $.consequent===ae;default:return!1}}function be(){x={upper:x,inExpressionNodes:[],reports:[]}}function xe(){const{upper:$,inExpressionNodes:ae,reports:Ie}=x;$?($.inExpressionNodes.push(...ae),$.reports.push(...Ie)):Ie.forEach(({finishReport:Ne})=>Ne()),x=$}function Te($){return x.reports.some(ae=>ae.node===$)}function J($){x.reports=x.reports.filter(ae=>ae.node!==$)}function Q($){return $.type==="MemberExpression"?$.parent.type==="NewExpression"&&$.parent.callee===$?!0:$.parent.object===$&&Q($.parent):!1}function ke({left:$,operator:ae,right:Ie}){if($.type==="Identifier"&&["=","&&=","||=","??="].includes(ae)){const Ne=Ie.type;if(Ne==="ArrowFunctionExpression"||(Ne==="FunctionExpression"||Ne==="ClassExpression")&&!Ie.id)return!0}return!1}return{ArrayExpression($){$.elements.filter(ae=>ae&&k(ae,E)).forEach(H)},ArrayPattern($){$.elements.filter(ae=>B(ae)&&b(ae)).forEach(H)},ArrowFunctionExpression($){if(!O($)&&!($.body.type==="ConditionalExpression"&&h)&&$.body.type!=="BlockStatement"){const ae=o.getFirstToken($.body,e.isNotOpeningParenToken),Ie=o.getTokenBefore(ae);e.isOpeningParenToken(Ie)&&e.isOpeningBraceToken(ae)&&t.add(ae),k($.body,E)&&H($.body)}},AssignmentExpression($){B($.left)&&b($.left)&&(!ke($)||A($.left))&&H($.left),!O($)&&k($.right,l($))&&H($.right)},BinaryExpression($){x&&$.operator==="in"&&x.inExpressionNodes.push($),X($)},CallExpression:Fe,ConditionalExpression($){if(O($))return;const ae=new Set(["BinaryExpression","LogicalExpression"]);!(r&&ae.has($.test.type))&&!R($)&&k($.test,l({type:"LogicalExpression",operator:"||"}))&&H($.test),!(r&&ae.has($.consequent.type))&&k($.consequent,E)&&H($.consequent),!(r&&ae.has($.alternate.type))&&k($.alternate,E)&&H($.alternate)},DoWhileStatement($){b($.test)&&!R($)&&H($.test)},ExportDefaultDeclaration:$=>oe($.declaration),ExpressionStatement:$=>oe($.expression),ForInStatement($){if($.left.type!=="VariableDeclaration"){const ae=o.getFirstToken($.left,e.isNotOpeningParenToken);ae.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ae,e.isNotClosingParenToken))&&t.add(ae)}b($.left)&&H($.left),b($.right)&&H($.right)},ForOfStatement($){if($.left.type!=="VariableDeclaration"){const ae=o.getFirstToken($.left,e.isNotOpeningParenToken);ae.value==="let"&&t.add(ae)}b($.left)&&H($.left),k($.right,E)&&H($.right)},ForStatement($){if($.test&&b($.test)&&!R($)&&H($.test),$.update&&b($.update)&&H($.update),$.init){if($.init.type!=="VariableDeclaration"){const ae=o.getFirstToken($.init,e.isNotOpeningParenToken);ae.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(ae,e.isNotClosingParenToken))&&t.add(ae)}be(),b($.init)&&H($.init)}},"ForStatement > *.init:exit"($){x.reports.length&&x.inExpressionNodes.forEach(ae=>{const Ie=se($,ae);let Ne;for(let Be=0;Be<Ie.length;Be++){const j=Ie[Be];if(Be<Ie.length-1){const Qe=Ie[Be+1];if(de(j,Qe))return}if(v(j))if(Te(j)){if(A(j))return;Ne||(Ne=j)}else return}J(Ne)}),xe()},IfStatement($){b($.test)&&!R($)&&H($.test)},ImportExpression($){const{source:ae}=$;ae.type==="SequenceExpression"?w(ae)&&H(ae):b(ae)&&H(ae)},LogicalExpression:X,MemberExpression($){const Ie=Q($)&&re($)?w($.object):b($.object)&&!(T($.parent)&&$.parent.callee===$&&g);Ie&&l($.object)>=l($)&&($.computed||!(e.isDecimalInteger($.object)||$.object.type==="Literal"&&$.object.regex))&&H($.object),Ie&&$.object.type==="CallExpression"&&H($.object),Ie&&!f&&$.object.type==="NewExpression"&&L($.object)&&H($.object),Ie&&$.optional&&$.object.type==="ChainExpression"&&H($.object),$.computed&&b($.property)&&H($.property)},"MethodDefinition[computed=true]"($){k($.key,E)&&H($.key)},NewExpression:Fe,ObjectExpression($){$.properties.filter(ae=>ae.value&&k(ae.value,E)).forEach(ae=>H(ae.value))},ObjectPattern($){$.properties.filter(ae=>{const Ie=ae.value;return B(Ie)&&b(Ie)}).forEach(ae=>H(ae.value))},Property($){if($.computed){const{key:ae}=$;ae&&k(ae,E)&&H(ae)}},PropertyDefinition($){$.computed&&k($.key,E)&&H($.key),$.value&&k($.value,E)&&H($.value)},RestElement($){const ae=$.argument;B(ae)&&b(ae)&&H(ae)},ReturnStatement($){const ae=o.getFirstToken($);O($)||$.argument&&q(ae,$.argument)&&!($.argument.type==="Literal"&&$.argument.regex)&&H($.argument)},SequenceExpression($){const ae=l($);$.expressions.filter(Ie=>k(Ie,ae)).forEach(H)},SwitchCase($){$.test&&b($.test)&&H($.test)},SwitchStatement($){b($.discriminant)&&H($.discriminant)},ThrowStatement($){const ae=o.getFirstToken($);q(ae,$.argument)&&H($.argument)},UnaryExpression:ce,UpdateExpression($){if($.prefix)ce($);else{const{argument:ae}=$,Ie=o.getLastToken($);ae.loc.end.line===Ie.loc.start.line?ce($):w(ae)&&H(ae)}},AwaitExpression:ce,VariableDeclarator($){$.init&&k($.init,E)&&!($.init.type==="Literal"&&$.init.regex)&&H($.init)},WhileStatement($){b($.test)&&!R($)&&H($.test)},WithStatement($){b($.object)&&H($.object)},YieldExpression($){if($.argument){const ae=o.getFirstToken($);(l($.argument)>=l($)&&q(ae,$.argument)||w($.argument))&&H($.argument)}},ClassDeclaration:I,ClassExpression:I,SpreadElement:W,SpreadProperty:W,ExperimentalSpreadProperty:W,TemplateLiteral($){$.expressions.filter(ae=>ae&&b(ae)).forEach(H)},AssignmentPattern($){const{left:ae,right:Ie}=$;B(ae)&&b(ae)&&H(ae),Ie&&k(Ie,E)&&H(Ie)}}}},kl}var Dl,pv;function FT(){if(pv)return Dl;pv=1;const a=nn(),e=Ue();return Dl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-semi",url:"https://eslint.style/rules/no-extra-semi"}}]},type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(n){const o=n.sourceCode;function t(u){const r=o.getTokenAfter(u);if(!r||r.type!=="String")return!0;const m=o.getNodeByRangeIndex(r.range[0]);return!e.isTopLevelExpressionStatement(m.parent)}function l(u){n.report({node:u,messageId:"unexpected",fix:t(u)?r=>new a(r,n.sourceCode).retainSurroundingTokens(u).remove(u):null})}function p(u){for(let r=u;r.type==="Punctuator"&&!e.isClosingBraceToken(r);r=o.getTokenAfter(r))e.isSemicolonToken(r)&&l(r)}return{EmptyStatement(u){const r=u.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(r.type)||l(u)},ClassBody(u){p(o.getFirstToken(u,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(u){p(o.getTokenAfter(u))}}}},Dl}var Il,mv;function RT(){if(mv)return Il;mv=1;const{directivesPattern:a}=Hh(),e=/falls?\s?through/iu;function n(p){for(const u of p)if(u.reachable)return!0;return!1}function o(p,u){return u.test(p)&&!a.test(p.trim())}function t(p,u,r,m){const i=r.sourceCode;if(p.consequent.length===1&&p.consequent[0].type==="BlockStatement"){const h=i.getLastToken(p.consequent[0]),s=i.getCommentsBefore(h).pop();if(s&&o(s.value,m))return s}const c=i.getCommentsBefore(u).pop();return c&&o(c.value,m)?c:null}function l(p,u){return u.loc.start.line>p.loc.end.line+1}return Il={meta:{type:"problem",defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string"},allowEmptyCase:{type:"boolean"},reportUnusedFallthroughComment:{type:"boolean"}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(p){const u=[];let r=new Set;const m=p.sourceCode,[{allowEmptyCase:i,commentPattern:c,reportUnusedFallthroughComment:h}]=p.options,s=c?new RegExp(c,"u"):e;let f=null;return{onCodePathStart(){u.push(r),r=new Set},onCodePathEnd(){r=u.pop()},onUnreachableCodePathSegmentStart(g){r.add(g)},onUnreachableCodePathSegmentEnd(g){r.delete(g)},onCodePathSegmentStart(g){r.add(g)},onCodePathSegmentEnd(g){r.delete(g)},SwitchCase(g){if(f&&f.node.parent===g.parent){const d=t(f.node,g,p,s);f.isFallthrough&&!d?p.report({messageId:g.test?"case":"default",node:g}):h&&!f.isSwitchExitReachable&&d&&p.report({messageId:"unusedFallthroughComment",node:d})}f=null},"SwitchCase:exit"(g){const d=m.getTokenAfter(g),E=n(r),S=E&&(g.consequent.length>0||!i&&l(g,d))&&g.parent.cases.at(-1)!==g;f={node:g,isSwitchExitReachable:E,isFallthrough:S}}}}},Il}var Pl,hv;function _T(){if(hv)return Pl;hv=1;const a=Ue();return Pl={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-floating-decimal",url:"https://eslint.style/rules/no-floating-decimal"}}]},type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){const n=e.sourceCode;return{Literal(o){typeof o.value=="number"&&(o.raw.startsWith(".")&&e.report({node:o,messageId:"leading",fix(t){const l=n.getTokenBefore(o),p=l&&l.range[1]===o.range[0]&&!a.canTokensBeAdjacent(l,`0${o.raw}`);return t.insertTextBefore(o,p?" 0":"0")}}),o.raw.indexOf(".")===o.raw.length-1&&e.report({node:o,messageId:"trailing",fix:t=>t.insertTextAfter(o,"0")}))}}}},Pl}var Fl,dv;function BT(){if(dv)return Fl;dv=1;const a=Ue();return Fl={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){const n=e.sourceCode;function o(p){a.getModifyingReferences(p).forEach(u=>{e.report({node:u.identifier,messageId:"isAFunction",data:{name:u.identifier.name}})})}function t(p){p.defs[0].type==="FunctionName"&&o(p.references)}function l(p){n.getDeclaredVariables(p).forEach(t)}return{FunctionDeclaration:l,FunctionExpression:l}}},Fl}var Rl,gv;function LT(){return gv||(gv=1,Rl={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.sourceCode,[{exceptions:n}]=a.options;function o(l,p,u){const r=l.identifier;l.init===!1&&l.isWrite()&&(p===0||u[p-1].identifier!==r)&&a.report({node:r,messageId:"globalShouldNotBeModified",data:{name:r.name}})}function t(l){l.writeable===!1&&!n.includes(l.name)&&l.references.forEach(o)}return{Program(l){e.getScope(l).variables.forEach(t)}}}}),Rl}var _l,yv;function OT(){if(yv)return _l;yv=1;const a=Ue(),e=/^(?:i|lastI)ndexOf$/u,n=["~","!!","+","- -","-","*"];function o(f){return f.operator==="!"&&f.argument.type==="UnaryExpression"&&f.argument.operator==="!"}function t(f){if(f.operator!=="~")return!1;const g=a.skipChainExpression(f.argument);return g.type==="CallExpression"&&a.isSpecificMemberAccess(g.callee,null,e)}function l(f){return f.operator==="*"&&(f.left.type==="Literal"&&f.left.value===1||f.right.type==="Literal"&&f.right.value===1)}function p(f,g){return f.type==="BinaryExpression"&&f.operator==="*"&&f.right.type==="Literal"&&f.right.value===1&&f.parent.type==="BinaryExpression"&&f.parent.operator==="/"&&f.parent.left===f&&!a.isParenthesised(g,f)}function u(f){return f.type==="Literal"&&typeof f.value=="number"||f.type==="CallExpression"&&(f.callee.name==="Number"||f.callee.name==="parseInt"||f.callee.name==="parseFloat")}function r(f){const g=f.left,d=f.right;return d.type!=="BinaryExpression"&&!u(d)?d:g.type!=="BinaryExpression"&&!u(g)?g:null}function m(f){return a.isStringLiteral(f)||f.type==="CallExpression"&&f.callee.type==="Identifier"&&f.callee.name==="String"}function i(f){return a.isStringLiteral(f)&&(f.value===""||f.type==="TemplateLiteral"&&f.quasis.length===1&&f.quasis[0].value.cooked==="")}function c(f){return f.operator==="+"&&(i(f.left)&&!m(f.right)||i(f.right)&&!m(f.left))}function h(f){return f.operator==="+="&&i(f.right)}function s(f){return i(f.left)?f.right:f.left}return _l={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean"},number:{type:"boolean"},string:{type:"boolean"},disallowTemplateShorthand:{type:"boolean"},allow:{type:"array",items:{enum:n},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(f){const[g]=f.options,d=f.sourceCode;function E(S,x,T,C){function v(A){const b=d.getTokenBefore(S);return b?.range[1]===S.range[0]&&!a.canTokensBeAdjacent(b,x)?A.replaceText(S,` ${x}`):A.replaceText(S,x)}f.report({node:S,messageId:"implicitCoercion",data:{recommendation:x},fix(A){return C?v(A):null},suggest:[{messageId:"useRecommendation",data:{recommendation:x},fix(A){return C||!T?null:v(A)}}]})}return{UnaryExpression(S){let x;if(x=g.allow.includes("!!"),!x&&g.boolean&&o(S)){const T=`Boolean(${d.getText(S.argument.argument)})`,v=a.getVariableByName(d.getScope(S),"Boolean")?.identifiers.length===0;E(S,T,!0,v)}if(x=g.allow.includes("~"),!x&&g.boolean&&t(S)){const T=S.argument.type==="ChainExpression"?">= 0":"!== -1",C=`${d.getText(S.argument)} ${T}`;E(S,C,!1,!1)}if(x=g.allow.includes("+"),!x&&g.number&&S.operator==="+"&&!u(S.argument)){const T=`Number(${d.getText(S.argument)})`;E(S,T,!0,!1)}if(x=g.allow.includes("- -"),!x&&g.number&&S.operator==="-"&&S.argument.type==="UnaryExpression"&&S.argument.operator==="-"&&!u(S.argument.argument)){const T=`Number(${d.getText(S.argument.argument)})`;E(S,T,!0,!1)}},"BinaryExpression:exit"(S){let x;x=g.allow.includes("*");const T=!x&&g.number&&l(S)&&!p(S,d)&&r(S);if(T){const C=`Number(${d.getText(T)})`;E(S,C,!0,!1)}if(x=g.allow.includes("-"),!x&&g.number&&S.operator==="-"&&S.right.type==="Literal"&&S.right.value===0&&!u(S.left)){const C=`Number(${d.getText(S.left)})`;E(S,C,!0,!1)}if(x=g.allow.includes("+"),!x&&g.string&&c(S)){const C=`String(${d.getText(s(S))})`;E(S,C,!0,!1)}},AssignmentExpression(S){if(!g.allow.includes("+")&&g.string&&h(S)){const T=d.getText(s(S)),C=`${T} = String(${T})`;E(S,C,!0,!1)}},TemplateLiteral(S){if(!g.disallowTemplateShorthand||S.parent.type==="TaggedTemplateExpression"||S.expressions.length!==1||S.quasis[0].value.cooked!==""||S.quasis[1].value.cooked!==""||m(S.expressions[0]))return;const T=`String(${d.getText(S.expressions[0])})`;E(S,T,!0,!1)}}}},_l}var Bl,vv;function NT(){if(vv)return Bl;vv=1;const a=new Set(["AssignmentExpression","ForInStatement","ForOfStatement"]);return Bl={meta:{type:"suggestion",defaultOptions:[{lexicalBindings:!1}],docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean"}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(e){const[{lexicalBindings:n}]=e.options,o=e.sourceCode;function t(l,p,u){e.report({node:l,messageId:p,data:{kind:u}})}return{Program(l){const p=o.getScope(l);p.variables.forEach(u=>{const r=u.writeable===!1;u.writeable!==!0&&(u.eslintExported||(u.defs.forEach(i=>{const c=i.node;(i.type==="FunctionName"||i.type==="Variable"&&i.parent.kind==="var")&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalNonLexicalBinding",i.type==="FunctionName"?"function":`'${i.parent.kind}'`)),n&&(i.type==="ClassName"||i.type==="Variable"&&(i.parent.kind==="let"||i.parent.kind==="const"))&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalLexicalBinding",i.type==="ClassName"?"class":`'${i.parent.kind}'`))}),r&&u.defs.length===0&&u.references.forEach(i=>{if(i.isWrite()&&!i.isRead()){let c=i.identifier.parent;for(;c&&!a.has(c.type);)c=c.parent;t(c??i.identifier,"assignmentToReadonlyGlobal")}})))}),p.implicit.variables.forEach(u=>{u.defs.forEach(r=>{t(r.node,"globalVariableLeak")})})}}}},Bl}var Ll,Ev;function MT(){if(Ev)return Ll;Ev=1;const a=Ue(),{getStaticValue:e}=qt();return Ll={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string.",execScript:"Implied eval. Do not use execScript()."}},create(n){const o=Object.freeze(["global","window","globalThis"]),t=/^(?:set(?:Interval|Timeout)|execScript)$/u,l=n.sourceCode;function p(m){return m.type==="Literal"&&typeof m.value=="string"||m.type==="TemplateLiteral"?!0:m.type==="BinaryExpression"&&m.operator==="+"?p(m.left)||p(m.right):!1}function u(m){const[i]=m.arguments;if(i){const c=e(i,l.getScope(m));if(c&&typeof c.value=="string"||p(i)){const g=(m.callee.type==="Identifier"?m.callee.name:a.getStaticPropertyName(m.callee))==="execScript";n.report({node:m,messageId:g?"execScript":"impliedEval"})}}}function r(m){const{references:i,name:c}=m;i.forEach(h=>{let f=h.identifier.parent;for(;a.isSpecificMemberAccess(f,null,c);)f=f.parent;if(a.isSpecificMemberAccess(f,null,t)){const g=f.parent.type==="ChainExpression"?f.parent:f,d=g.parent;d.type==="CallExpression"&&d.callee===g&&u(d)}})}return{CallExpression(m){a.isSpecificId(m.callee,t)&&l.isGlobalReference(m.callee)&&u(m)},"Program:exit"(m){const i=l.getScope(m);o.map(c=>a.getVariableByName(i,c)).filter(c=>!!c&&c.defs.length===0).forEach(r)}}}},Ll}var Ol,Sv;function jT(){if(Sv)return Ol;Sv=1;const{findVariable:a}=qt(),e=Ue(),n={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function o(m){const{parent:i}=m;return i.type==="AssignmentExpression"&&i.left===m||i.type==="ArrayPattern"||i.type==="Property"&&i.value===m&&i.parent.type==="ObjectPattern"||i.type==="RestElement"||i.type==="AssignmentPattern"&&i.left===m}function t(m){const i=m.parent.type==="ChainExpression"?m.parent:m,{parent:c}=i;return c.type==="UpdateExpression"&&c.argument===i||c.type==="UnaryExpression"&&c.operator==="delete"&&c.argument===i}function l(m){const{parent:i}=m;return i.type==="ForInStatement"&&i.left===m||i.type==="ForOfStatement"&&i.left===m}function p(m,i){const{parent:c}=m;if(c.type!=="CallExpression"||c.arguments[0]!==m)return!1;const h=e.skipChainExpression(c.callee);if(!e.isSpecificMemberAccess(h,"Object",n.Object)&&!e.isSpecificMemberAccess(h,"Reflect",n.Reflect))return!1;const s=a(i,h.object);return s!==null&&s.scope.type==="global"}function u(m,i){const{parent:c}=m;return c.type==="MemberExpression"&&c.object===m&&(o(c)||t(c)||l(c))||p(m,i)}function r(m){let i=m.parent;for(;i&&i.type!=="AssignmentExpression"&&i.type!=="UpdateExpression"&&i.type!=="UnaryExpression"&&i.type!=="CallExpression"&&i.type!=="ForInStatement"&&i.type!=="ForOfStatement";)i=i.parent;return i||m}return Ol={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(m){const i=m.sourceCode;return{ImportDeclaration(c){const h=i.getScope(c);for(const s of i.getDeclaredVariables(c)){const f=s.defs.some(d=>d.node.type==="ImportNamespaceSpecifier");let g=null;for(const d of s.references){const E=d.identifier;E!==g&&(g=E,d.isWrite()?m.report({node:r(E),messageId:"readonly",data:{name:E.name}}):f&&u(E,h)&&m.report({node:r(E),messageId:"readonlyMember",data:{name:E.name}}))}}}}}},Ol}var Nl,bv;function UT(){if(bv)return Nl;bv=1;const a=Ue();return Nl={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow inline comments after code",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){const n=e.sourceCode,[{ignorePattern:o}]=e.options,t=o&&new RegExp(o,"u");function l(p){const u=String(n.lines[p.loc.start.line-1]),r=String(n.lines[p.loc.end.line-1]),m=u.slice(0,p.loc.start.column).trim(),i=r.slice(p.loc.end.column).trim(),c=!m,h=!i;if(!(c&&h)&&!(t&&t.test(p.value))){if((c||m==="{")&&(h||i==="}")){const s=n.getNodeByRangeIndex(p.range[0]);if(s&&s.type==="JSXEmptyExpression")return}a.isDirectiveComment(p)||e.report({node:p,messageId:"unexpectedInlineComment"})}}return{Program(){n.getAllComments().filter(p=>p.type!=="Shebang").forEach(l)}}}},Nl}var Ml,xv;function qT(){if(xv)return Ml;xv=1;const a=Ue(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),n=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function o(t){let{parent:l}=t;for(;l;){if(l.type==="StaticBlock")return"class static block body";if(a.isFunction(l))return"function body";({parent:l}=l)}return"program"}return Ml={meta:{type:"problem",defaultOptions:["functions",{blockScopedFunctions:"allow"}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(t){const l=t.options[0]==="both",{blockScopedFunctions:p}=t.options[1],u=t.sourceCode,r=t.languageOptions.ecmaVersion;function m(i){const c=i.parent;c.type==="BlockStatement"&&n.has(c.parent.type)||e.has(c.type)||t.report({node:i,messageId:"moveDeclToRoot",data:{type:i.type==="FunctionDeclaration"?"function":"variable",body:o(i)}})}return{FunctionDeclaration(i){const c=u.getScope(i).upper.isStrict;p==="allow"&&r>=2015&&c||m(i)},VariableDeclaration(i){l&&i.kind==="var"&&m(i)}}}},Ml}var jl,Cv;function VT(){if(Cv)return jl;Cv=1;const a=ur().RegExpValidator,e=new a,n="dgimsuvy",o=void 0;return jl={meta:{type:"problem",defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){const[{allowConstructorFlags:l}]=t.options;let p=[];if(l){const h=l.join("").replace(new RegExp(`[${n}]`,"gu"),"");h&&(p=[...new Set(h)])}function u(h,s){t.report({node:h,messageId:"regexMessage",data:{message:s}})}function r(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function m(h){return h.arguments.length<2?"":r(h.arguments[1])?h.arguments[1].value:null}function i(h,s){try{return e.validatePattern(h,o,o,s),null}catch(f){return f.message}}function c(h,s,f){const g=[];if(typeof s=="string")for(const d of s)f.includes(d)&&g.push(d);return h&&h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":g.length>0?`Duplicate flags ('${g.join("")}') supplied to RegExp constructor`:s?`Invalid flags supplied to RegExp constructor '${s}'`:null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;const s=m(h);let f=s;const g=p.length>0?n.split("").concat(p):n.split("");s&&g.forEach(S=>{f=f.replace(S,"")});let d=c(s,f,g);if(d){u(h,d);return}if(!r(h.arguments[0]))return;const E=h.arguments[0].value;d=s===null?i(E,{unicode:!0,unicodeSets:!1})&&i(E,{unicode:!1,unicodeSets:!0})&&i(E,{unicode:!1,unicodeSets:!1}):i(E,{unicode:s.includes("u"),unicodeSets:s.includes("v")}),d&&u(h,d)}}}},jl}var Ul,wv;function $T(){if(wv)return Ul;wv=1;const a=Ue();function e(n,o){return n.origin==="function"&&o.type==="ArrowFunctionExpression"}return Ul={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(n){const[{capIsConstructor:o}]=n.options,t=[],l=n.sourceCode;return t.getCurrent=function(){const p=this.at(-1);return p.init||(p.init=!0,p.valid=!a.isDefaultThisBinding(p.node,l,{capIsConstructor:o})),p},{onCodePathStart(p,u){if(!e(p,u)){if(p.origin==="program"){const r=l.getScope(u),m=n.languageOptions.parserOptions.ecmaFeatures||{};t.push({init:!0,node:u,valid:!(u.sourceType==="module"||m.globalReturn&&r.childScopes[0].isStrict)});return}t.push({init:!l.getScope(u).isStrict,node:u,valid:!0})}},onCodePathEnd(p,u){e(p,u)||t.pop()},"AccessorProperty > *.value"(p){t.push({init:!0,node:p,valid:!0})},"AccessorProperty:exit"(){t.pop()},ThisExpression(p){if(p.parent.type==="AccessorProperty"&&p.parent.value===p)return;const u=t.getCurrent();u&&!u.valid&&n.report({node:p,messageId:"unexpectedThis"})}}}},Ul}var ql,Av;function WT(){if(Av)return ql;Av=1;const a=Ue(),e=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,n=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gu,o=/[\u2028\u2029]/gu,t=a.createGlobalLinebreakMatcher();return ql={meta:{type:"problem",defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean"},skipStrings:{type:"boolean"},skipTemplates:{type:"boolean"},skipRegExps:{type:"boolean"},skipJSXText:{type:"boolean"}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(l){const[{skipComments:p,skipStrings:u,skipRegExps:r,skipTemplates:m,skipJSXText:i}]=l.options,c=l.sourceCode,h=c.getAllComments();let s=[];function f(A){const b=A.loc.start,w=A.loc.end;s=s.filter(({loc:{start:k}})=>k.line<b.line||k.line===b.line&&k.column<b.column||k.line===w.line&&k.column>=w.column||k.line>w.line)}function g(A){const b=u&&typeof A.value=="string",w=r&&!!A.regex;(b||w)&&e.test(A.raw)&&f(A)}function d(A){typeof A.value.raw=="string"&&e.test(A.value.raw)&&f(A)}function E(A){e.test(A.value)&&f(A)}function S(A){e.test(A.raw)&&f(A)}function x(A){c.lines.forEach((w,k)=>{const R=k+1;let F;for(;(F=n.exec(w))!==null;)s.push({node:A,messageId:"noIrregularWhitespace",loc:{start:{line:R,column:F.index},end:{line:R,column:F.index+F[0].length}}})})}function T(A){const b=c.getText(),w=c.lines,k=b.match(t);let R=-1,F;for(;(F=o.exec(b))!==null;){const L=k.indexOf(F[0],R+1)||0;s.push({node:A,messageId:"noIrregularWhitespace",loc:{start:{line:L+1,column:w[L].length},end:{line:L+2,column:0}}}),R=L}}function C(){}const v={};return e.test(c.getText())?(v.Program=function(A){x(A),T(A)},v.Literal=g,v.TemplateElement=m?d:C,v.JSXText=i?S:C,v["Program:exit"]=function(){p&&h.forEach(E),s.forEach(A=>l.report(A))}):v.Program=C,v}},ql}var Vl,Tv;function GT(){if(Tv)return Vl;Tv=1;const{getStaticPropertyName:a}=Ue();return Vl={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(n){a(n)==="__iterator__"&&e.report({node:n,messageId:"noIterator"})}}}},Vl}var $l,kv;function zT(){if(kv)return $l;kv=1;const a=Ue();return $l={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{LabeledStatement(t){const l=n.getScope(t);o(l,t.label.name)&&e.report({node:t,messageId:"identifierClashWithLabel"})}}}},$l}var Wl,Dv;function HT(){if(Dv)return Wl;Dv=1;const a=Ue();return Wl={meta:{type:"suggestion",defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:"Disallow labeled statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean"},allowSwitch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){const[{allowLoop:n,allowSwitch:o}]=e.options;let t=null;function l(r){return a.isLoop(r)?"loop":r.type==="SwitchStatement"?"switch":"other"}function p(r){switch(r){case"loop":return n;case"switch":return o;default:return!1}}function u(r){let m=t;for(;m;){if(m.label===r)return m.kind;m=m.upper}return"other"}return{LabeledStatement(r){t={label:r.label.name,kind:l(r.body),upper:t}},"LabeledStatement:exit"(r){p(t.kind)||e.report({node:r,messageId:"unexpectedLabel"}),t=t.upper},BreakStatement(r){r.label&&!p(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInBreak"})},ContinueStatement(r){r.label&&!p(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInContinue"})}}}},Wl}var Gl,Iv;function KT(){return Iv||(Iv=1,Gl={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(a){const e=[];let n;const o=a.sourceCode;function t(u){const r=u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";a.report({node:u,messageId:r})}function l(u){return u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"||u.parent.type==="Program"||u.parent.type==="SwitchCase"&&!(u.parent.consequent[0]===u&&u.parent.consequent.length===1)}function p(u){if(e.length===0)return;const r=u.parent;e.at(-1)===r&&e.pop()}return n={BlockStatement(u){l(u)&&t(u)}},a.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(u){l(u)&&e.push(u)},"BlockStatement:exit"(u){e.length>0&&e.at(-1)===u?(e.pop(),t(u)):(u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock")&&u.parent.body.length===1&&t(u)}},n.VariableDeclaration=function(u){u.kind!=="var"&&p(u)},n.FunctionDeclaration=function(u){o.getScope(u).isStrict&&p(u)},n.ClassDeclaration=p),n}}),Gl}var zl,Pv;function XT(){if(Pv)return zl;Pv=1;const a=Ue();return zl={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(e){const n=e.sourceCode;return{IfStatement(o){const t=o.parent,l=t.parent;t&&t.type==="BlockStatement"&&t.body.length===1&&!a.areBracesNecessary(t,n)&&l&&l.type==="IfStatement"&&t===l.alternate&&e.report({node:o,messageId:"unexpectedLonelyIf",fix(p){const u=n.getFirstToken(t),r=n.getLastToken(t),m=n.getTokenBefore(u),i=n.getTokenAfter(r),c=n.getLastToken(o.consequent),h=n.getText();return h.slice(u.range[1],o.range[0]).trim()||h.slice(o.range[1],r.range[0]).trim()||o.consequent.type!=="BlockStatement"&&c.value!==";"&&i&&(o.consequent.loc.end.line===i.loc.start.line||/^[([/+`-]/u.test(i.value)||c.value==="++"||c.value==="--")?null:p.replaceTextRange([u.range[0],r.range[1]],(m.range[1]===u.range[0]?" ":"")+n.getText(o))}})}}}},zl}var Hl,Fv;function JT(){if(Fv)return Hl;Fv=1;const a=new Set(["const","using","await using"]);function e(n){return(n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression")&&n.parent&&n.parent.type==="CallExpression"&&n.parent.callee===n}return Hl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow function declarations that contain unsafe references inside loop statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(n){const o=new Set,t=n.sourceCode;function l(m){for(let i=m;i.parent;i=i.parent){const c=i.parent;switch(c.type){case"WhileStatement":case"DoWhileStatement":return c;case"ForStatement":if(c.init!==i)return c;break;case"ForInStatement":case"ForOfStatement":if(c.right!==i)return c;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":if(o.has(c))break;return null}}return null}function p(m,i){const c=i?i.range[1]:0;let h=m,s=m;for(;s&&s.range[0]>=c;)h=s,s=l(s);return h}function u(m,i){const c=i.resolved,h=c&&c.defs[0],s=h&&h.parent,f=s&&s.type==="VariableDeclaration"?s.kind:"";if(a.has(f)||f==="let"&&s.range[0]>m.range[0]&&s.range[1]<m.range[1])return!0;const g=p(m,f==="let"?s:null).range[0];function d(E){const S=E.identifier;return!E.isWrite()||c.scope.variableScope===E.from.variableScope&&S.range[0]<g}return!!c&&c.references.every(d)}function r(m){const i=l(m);if(!i)return;const c=t.getScope(m).through;if(!(m.async||m.generator)&&e(m)&&!(m.type==="FunctionExpression"&&m.id?c.some(g=>g.identifier.name===m.id.name):!1)){o.add(m);return}const h=[...new Set(c.filter(s=>s.resolved&&!u(i,s)).map(s=>s.identifier.name))];h.length>0&&n.report({node:m,messageId:"unsafeRefs",data:{varNames:`'${h.join("', '")}'`}})}return{ArrowFunctionExpression:r,FunctionExpression:r,FunctionDeclaration:r}}},Hl}var Kl,Rv;function YT(){return Rv||(Rv=1,Kl={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(a){function e(s){return typeof s.value=="number"}function n(s){return s.raw.replace(/_/gu,"")}function o(s){return["0x","0X","0b","0B","0o","0O"].every(g=>!s.raw.startsWith(g))&&!/^0[0-7]+$/u.test(s.raw)}function t(s){const f=n(s).toUpperCase();let g;return f.startsWith("0B")?g=2:f.startsWith("0X")?g=16:g=8,!f.endsWith(s.value.toString(g).toUpperCase())}function l(s){return`${s[0]}.${s.slice(1)}`}function p(s){for(let f=0;f<s.length;f++)if(s[f]!=="0")return s.slice(f);return s}function u(s){for(let f=s.length-1;f>=0;f--)if(s[f]!=="0")return s.slice(0,f+1);return s}function r(s){const f=u(p(s));return{magnitude:s.startsWith("0")?s.length-2:s.length-1,coefficient:l(f)}}function m(s){const f=p(s);if(f.startsWith(".")){const g=f.slice(1),d=p(g);return{magnitude:d.length-g.length-1,coefficient:l(d)}}return{magnitude:f.indexOf(".")-1,coefficient:l(f.replace(".",""))}}function i(s){const f=s.replace("E","e").split("e"),g=f[0],d=s.includes(".")?m(g):r(g),E=d.coefficient,S=f.length>1?parseInt(f[1],10)+d.magnitude:d.magnitude;return`${E}e${S}`}function c(s){const f=n(s);if(f.includes(".")&&f.includes("e")){const x=f.split("e"),T=x[0],C=parseInt(x[1],10),v=T.split(".");if(v.length===2&&v[1].match(/0*$/u)[0].length===C)return!1}const g=i(f),d=g.split("e")[0].replace(".","").length;if(d>100)return!0;const E=s.value.toPrecision(d),S=i(E);return g!==S}function h(s){return o(s)?c(s):t(s)}return{Literal(s){s.value&&e(s)&&h(s)&&a.report({messageId:"noLossOfPrecision",node:s})}}}}),Kl}var Xl,_v;function QT(){if(_v)return Xl;_v=1;const a=Ue(),e=2**32-1;function n(u){return typeof u=="string"?BigInt(u.slice(0,-1)):u}function o(u){return u.parent.type==="TSEnumMember"}function t(u){let r=u.parent;for(;r.parent.type==="TSUnionType";)r=r.parent;return r.parent.type==="TSTypeAliasDeclaration"}function l(u){return!!(u.parent?.type==="PropertyDefinition"&&u.parent.readonly)}function p(u){let r=u.parent;for(;r.parent.type==="TSUnionType"||r.parent.type==="TSIntersectionType";)r=r.parent;return r.parent.type==="TSIndexedAccessType"}return Xl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow magic numbers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1},ignoreEnums:{type:"boolean",default:!1},ignoreNumericLiteralTypes:{type:"boolean",default:!1},ignoreReadonlyClassProperties:{type:"boolean",default:!1},ignoreTypeIndexes:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(u){const r=u.options[0]||{},m=!!r.detectObjects,i=!!r.enforceConst,c=new Set((r.ignore||[]).map(n)),h=!!r.ignoreArrayIndexes,s=!!r.ignoreDefaultValues,f=!!r.ignoreClassFieldInitialValues,g=!!r.ignoreEnums,d=!!r.ignoreNumericLiteralTypes,E=!!r.ignoreReadonlyClassProperties,S=!!r.ignoreTypeIndexes,x=m?[]:["ObjectExpression","Property","AssignmentExpression"];function T(k){return c.has(k)}function C(k){const R=k.parent;return R.type==="AssignmentPattern"&&R.right===k}function v(k){const R=k.parent;return R.type==="PropertyDefinition"&&R.value===k}function A(k){const R=k.parent;return R.type==="CallExpression"&&k===R.arguments[1]&&(a.isSpecificId(R.callee,"parseInt")||a.isSpecificMemberAccess(R.callee,"Number","parseInt"))}function b(k){return k.parent.type.indexOf("JSX")===0}function w(k,R){const F=k.parent;return F.type==="MemberExpression"&&F.property===k&&(Number.isInteger(R)||typeof R=="bigint")&&R>=0&&R<e}return{Literal(k){if(!a.isNumericLiteral(k))return;let R,F,L;k.parent.type==="UnaryExpression"&&["-","+"].includes(k.parent.operator)?(R=k.parent,F=k.parent.operator==="-"?-k.value:k.value,L=`${k.parent.operator}${k.raw}`):(R=k,F=k.value,L=k.raw);const P=R.parent;T(F)||s&&C(R)||f&&v(R)||g&&o(R)||d&&t(R)||S&&p(R)||E&&l(R)||A(R)||b(R)||h&&w(R,F)||(P.type==="VariableDeclarator"?i&&P.parent.kind!=="const"&&u.report({node:R,messageId:"useConst"}):(!x.includes(P.type)||P.type==="AssignmentExpression"&&P.left.type==="Identifier")&&u.report({node:R,messageId:"noMagic",data:{raw:L}}))}}}},Xl}var Jl,Bv;function ZT(){return Bv||(Bv=1,Jl=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}),Jl}var Yl,Lv;function ek(){return Lv||(Lv=1,Yl=function(e){return e>=127995&&e<=127999}),Yl}var Ql,Ov;function tk(){return Ov||(Ov=1,Ql=function(e){return e>=127462&&e<=127487}),Ql}var Zl,Nv;function rk(){return Nv||(Nv=1,Zl=function(e,n){return e>=55296&&e<56320&&n>=56320&&n<57344}),Zl}var eu,Mv;function nk(){if(Mv)return eu;Mv=1;const a=ZT(),e=ek(),n=tk(),o=rk();return eu={isCombiningCharacter:a,isEmojiModifier:e,isRegionalIndicatorSymbol:n,isSurrogatePair:o},eu}var tu,jv;function ru(){if(jv)return tu;jv=1;const{RegExpValidator:a}=ur(),e=2025;function n(o,t,l="u"){if(l==="u"&&o<=5||l==="v"&&o<=2023)return!1;const p=new a({ecmaVersion:Math.min(o,e)});try{p.validatePattern(t,void 0,void 0,l==="u"?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}return tu={isValidWithUnicodeFlag:n,REGEXPP_LATEST_ECMA_VERSION:e},tu}var nu,Uv;function sk(){if(Uv)return nu;Uv=1;class a{constructor(c,h){this.start=c,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(c){this.source=c,this.pos=0}advance(c){this.pos+=c}read(c=0,h=1){const s=c+this.pos;return this.source.slice(s,s+h)}}const n={__proto__:null,b:"\b",f:"\f",n:`
|
|
98
|
+
`,r:"\r",t:" ",v:"\v"};function o(i,c){const h=i.read(0,c),s=parseInt(h,16);return i.advance(c),String.fromCharCode(s)}function t(i){const c=/\{(?<hexDigits>[\dA-F]+)\}/iuy;c.lastIndex=i.pos;const h=c.exec(i.source);if(h){const s=parseInt(h.groups.hexDigits,16);return i.pos=c.lastIndex,String.fromCodePoint(s)}return o(i,4)}function l(i,c){const[h]=i.read(-1,c).match(/^[0-7]+/u);i.advance(h.length-1);const s=parseInt(h,8);return String.fromCharCode(s)}function p(i){const c=i.read(1);i.advance(2);const h=n[c];if(h)return h;switch(c){case"x":return o(i,2);case"u":return t(i);case"\r":i.read()===`
|
|
99
99
|
`&&i.advance(1);case`
|
|
100
100
|
`:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return l(i,3);case"4":case"5":case"6":case"7":return l(i,2);default:return c}}function*u(i){const c=i.pos,h=p(i),s=i.pos,f=i.source.slice(c,s);switch(h.length){case 0:break;case 1:yield new a(c,f);break;default:yield new a(c,f),yield new a(c,f);break}}function r(i){const c=new e(i),h=c.read();c.advance(1);const s=[];for(;;){const f=c.read();if(f===h)break;f==="\\"?s.push(...u(c)):(s.push(new a(c.pos,f)),c.advance(1))}return s}function m(i){const c=new e(i);c.advance(1);const h=[];for(;;){const s=c.read();if(s==="`"||s==="$"&&c.read(1)==="{")break;if(s==="\\")h.push(...u(c));else{let f;s==="\r"&&c.read(1)===`
|
|
101
101
|
`?f=`\r
|
|
102
102
|
`:f=s,h.push(new a(c.pos,f)),c.advance(f.length)}}return h}return nu={parseStringLiteral:r,parseTemplateToken:m},nu}var su,qv;function ak(){if(qv)return su;qv=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStaticValue:o,getStringIfConstant:t}=qt(),{RegExpParser:l,visitRegExpAST:p}=ur(),{isCombiningCharacter:u,isEmojiModifier:r,isRegionalIndicatorSymbol:m,isSurrogatePair:i}=nk(),c=Ue(),{isValidWithUnicodeFlag:h}=ru(),{parseStringLiteral:s,parseTemplateToken:f}=sk();function*g(v){let A=[];for(const b of v)switch(b.type){case"Character":A.push(b);break;case"CharacterClassRange":A.push(b.min),yield A,A=[b.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":A.length>0&&(yield A,A=[]);break}A.length>0&&(yield A)}function d(v){return/^\\u\{[\da-f]+\}$/iu.test(v.raw)}const E={*surrogatePairWithoutUFlag(v){for(const[A,b]of v.entries()){const w=v[A-1];w&&b&&i(w.value,b.value)&&!d(w)&&!d(b)&&(yield[w,b])}},*surrogatePair(v){for(const[A,b]of v.entries()){const w=v[A-1];w&&b&&i(w.value,b.value)&&(d(w)||d(b))&&(yield[w,b])}},*combiningClass(v,A){for(const[b,w]of v.entries()){const k=A[b-1];k&&w&&u(w.value)&&!u(k.value)&&(yield[k,w])}},*emojiModifier(v){for(const[A,b]of v.entries()){const w=v[A-1];w&&b&&r(b.value)&&!r(w.value)&&(yield[w,b])}},*regionalIndicatorSymbol(v){for(const[A,b]of v.entries()){const w=v[A-1];w&&b&&m(b.value)&&m(w.value)&&(yield[w,b])}},*zwj(v){let A=null;for(const[b,w]of v.entries()){const k=v[b-1],R=v[b+1];k&&w&&R&&w.value===8205&&k.value!==8205&&R.value!==8205&&(A?A.at(-1)===k?A.push(w,R):(yield A,A=v.slice(b-1,b+2)):A=v.slice(b-1,b+2))}A&&(yield A)}},S=Object.keys(E);function x(v,A){if(!v)return null;if(v.type==="Literal"&&v.regex)return{regex:v.regex};const b=o(v,A);return b?.value instanceof RegExp?null:b}function T(v,A){return A.startsWith("\\")?new RegExp("(?<=^\\\\+).$","su").exec(A)?.[0]!==String.fromCodePoint(v.value):!1}function C(v,A,b){const w=v.start,k=v.end-1,R=b[w].start,F=b[k].end,L=A.slice(R,F);return T(v,L)}return su={meta:{type:"problem",docs:{description:"Disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[{type:"object",properties:{allowEscape:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(v){const A=v.options[0]?.allowEscape,b=v.sourceCode,w=new l,k=new Set;function R(F,L,P,O){let q;try{q=w.parsePattern(L,0,L.length,{unicode:P.includes("u"),unicodeSets:P.includes("v")})}catch{return}let N=null;function _(z){if(F.type==="Literal"&&F.regex)return T(z,z.raw);if(F.type==="Literal"&&typeof F.value=="string"){const H=F.raw;return N??=s(H),C(z,H,N)}if(c.isStaticTemplateLiteral(F)){const H=b.getText(F);return N??=f(H),C(z,H,N)}return!1}const G=new Map;p(q,{onCharacterClassEnter(z){for(const H of g(z.elements)){let ce;A?ce=H.map(re=>_(re)?null:re):ce=H;for(const re of S){const Fe=E[re](ce,H);G.has(re)?G.get(re).push(...Fe):G.set(re,[...Fe])}}}});function B(z){return!c.isStaticTemplateLiteral(F)&&F.type!=="Literal"?z.length?[F.loc]:[]:z.map(H=>{const ce=H[0].start,re=H.at(-1).end-1;let Fe,X;if(F.type==="TemplateLiteral"){const I=b.getText(F),W=F.range[0];N??=f(I),Fe=W+N[ce].start,X=W+N[re].end}else if(typeof F.value=="string"){const I=F.raw,W=F.range[0];N??=s(I),Fe=W+N[ce].start,X=W+N[re].end}else{const I=F.range[0]+1;Fe=I+ce,X=I+re+1}return{start:b.getLocFromIndex(Fe),end:b.getLocFromIndex(X)}})}for(const[z,H]of G){let ce;z==="surrogatePairWithoutUFlag"&&(ce=[{messageId:"suggestUnicodeFlag",fix:O}]);const re=B(H);for(const Fe of re)v.report({node:F,loc:Fe,messageId:z,suggest:ce})}}return{"Literal[regex]"(F){k.has(F)||R(F,F.regex.pattern,F.regex.flags,L=>h(v.languageOptions.ecmaVersion,F.regex.pattern)?L.insertTextAfter(F,"u"):null)},Program(F){const L=b.getScope(F),P=new n(L);for(const{node:O}of P.iterateGlobalReferences({RegExp:{[a]:!0,[e]:!0}})){let q,N;const[_,G]=O.arguments,B=x(_,L);if(B){if(G)B.regex?(q=B.regex.pattern,k.add(_)):q=String(B.value),N=t(G,L);else{if(B.regex)continue;q=String(B.value),N=""}typeof N=="string"&&R(_,q,N,z=>{if(!h(v.languageOptions.ecmaVersion,q))return null;if(O.arguments.length===1){const H=b.getLastToken(O,{skip:1});return z.insertTextAfter(H,c.isCommaToken(H)?' "u",':', "u"')}if(G.type==="Literal"&&typeof G.value=="string"||G.type==="TemplateLiteral"){const H=[G.range[0],G.range[1]-1];return z.insertTextAfterRange(H,"u")}return null})}}}}}},su}var au,Vv;function ik(){if(Vv)return au;Vv=1;const a=Ue(),e=["+","-","*","/","%","**"],n=["&","|","^","~","<<",">>",">>>"],o=["==","!=","===","!==",">",">=","<","<="],t=["&&","||"],l=["in","instanceof"],p=["?:"],u=["??"],r=[].concat(e,n,o,t,l,p,u),m=[e,n,o,t,l],i=/^(?:Binary|Logical|Conditional)Expression$/u;function c(f={}){const d=f.groups&&f.groups.length>0?f.groups:m,E=f.allowSamePrecedence!==!1;return{groups:d,allowSamePrecedence:E}}function h(f,g,d){return f.some(E=>E.includes(g)&&E.includes(d))}function s(f){return f.type==="ConditionalExpression"?f.test:f.left}return au={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-operators",url:"https://eslint.style/rules/no-mixed-operators"}}]},type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:r},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(f){const g=f.sourceCode,d=c(f.options[0]);function E(v){const A=v,b=v.parent;return!h(d.groups,A.operator,b.type==="ConditionalExpression"?"?:":b.operator)||d.allowSamePrecedence&&a.getPrecedence(A)===a.getPrecedence(b)}function S(v){return v.operator!==v.parent.operator&&!a.isParenthesised(g,v)}function x(v){return g.getTokenAfter(s(v),a.isNotClosingParenToken)}function T(v){const A=v.parent,b=s(A)===v?v:A,w=s(A)!==v?v:A,k={leftOperator:b.operator||"?:",rightOperator:w.operator||"?:"};f.report({node:b,loc:x(b).loc,messageId:"unexpectedMixedOperator",data:k}),f.report({node:w,loc:x(w).loc,messageId:"unexpectedMixedOperator",data:k})}function C(v){i.test(v.parent.type)&&S(v)&&!E(v)&&T(v)}return{BinaryExpression:C,LogicalExpression:C}}},au}var iu,$v;function ok(){return $v||($v=1,iu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-mixed-requires",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md"}}]},type:"suggestion",docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(a){const e=a.options[0];let n=!1,o=!1;typeof e=="object"?(n=e.grouping,o=e.allowCall):n=!!e;function t(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}const l=t(),p="require",u="uninitialized",r="other",m="core",i="file",c="module",h="computed";function s(E){return E?E.type==="CallExpression"&&E.callee.type==="Identifier"&&E.callee.name==="require"?p:o&&E.type==="CallExpression"&&E.callee.type==="CallExpression"?s(E.callee):E.type==="MemberExpression"?s(E.object):r:u}function f(E){if(E.type==="MemberExpression")return f(E.object);if(E.arguments.length===0)return h;const S=E.arguments[0];return S.type!=="Literal"||typeof S.value!="string"?h:l.includes(S.value)?m:/^\.{0,2}\//u.test(S.value)?i:c}function g(E){const S={};return E.forEach(x=>{const T=s(x.init);S[T]=!0}),!!(S[p]&&(S[u]||S[r]))}function d(E){const S={};return E.forEach(x=>{s(x.init)===p&&(S[f(x.init)]=!0)}),Object.keys(S).length<=1}return{VariableDeclaration(E){g(E.declarations)?a.report({node:E,messageId:"noMixRequire"}):n&&!d(E.declarations)&&a.report({node:E,messageId:"noMixCoreModuleFileComputed"})}}}}),iu}var ou,Wv;function lk(){return Wv||(Wv=1,ou={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-spaces-and-tabs",url:"https://eslint.style/rules/no-mixed-spaces-and-tabs"}}]},type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(a){const e=a.sourceCode;let n;switch(a.options[0]){case!0:case"smart-tabs":n=!0;break;default:n=!1}return{"Program:exit"(o){const t=e.lines,l=e.getAllComments(),p=new Set;l.forEach(r=>{for(let m=r.loc.start.line+1;m<=r.loc.end.line;m++)p.add(m)});let u=/^(?=( +|\t+))\1(?:\t| )/u;n&&(u=/^(?=(\t*))\1(?=( +))\2\t/u),t.forEach((r,m)=>{const i=u.exec(r);if(i){const c=m+1,h={start:{line:c,column:i[0].length-2},end:{line:c,column:i[0].length}};if(!p.has(c)){const s=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));s&&["Literal","TemplateElement"].includes(s.type)||a.report({node:o,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),ou}var lu,Gv;function uk(){return Gv||(Gv=1,lu={meta:{type:"suggestion",defaultOptions:[{ignoreNonDeclaration:!1}],docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(a){const[{ignoreNonDeclaration:e}]=a.options,n=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e||n.push("AssignmentExpression > AssignmentExpression.right"),{[n](o){a.report({node:o,messageId:"unexpectedChain"})}}}}),lu}var uu,zv;function ck(){if(zv)return uu;zv=1;const a=Ue();return uu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multi-spaces",url:"https://eslint.style/rules/no-multi-spaces"}}]},type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=o.ignoreEOLComments,l=Object.assign({Property:!0},o.exceptions),p=Object.keys(l).some(r=>l[r]);function u(r){const m=r.value.split(`
|
|
103
|
-
`),i=m[0],c=`${i.slice(0,12)}...`;return m.length===1&&i.length<=12?i:c}return{Program(){n.tokensAndComments.forEach((r,m,i)=>{if(m===i.length-1)return;const c=i[m+1];if(!n.text.slice(r.range[1],c.range[0]).includes(" ")||r.loc.end.line<c.loc.start.line||t&&a.isCommentToken(c)&&(m===i.length-2||c.loc.end.line<i[m+2].loc.start.line))return;if(p){const s=n.getNodeByRangeIndex(c.range[0]-1);if(s&&l[s.type])return}let h;c.type==="Block"?h=`/*${u(c)}*/`:c.type==="Line"?h=`//${u(c)}`:h=c.value,e.report({node:c,loc:{start:r.loc.end,end:c.loc.start},messageId:"multipleSpaces",data:{displayValue:h},fix:s=>s.replaceTextRange([r.range[1],c.range[0]]," ")})})}}}},uu}var cu,Hv;function fk(){if(Hv)return cu;Hv=1;const a=Ue();return cu={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function n(o){return o.type.indexOf("JSX")===0}return{Literal(o){a.LINEBREAK_MATCHER.test(o.raw)&&!n(o.parent)&&e.report({node:o,messageId:"multilineString"})}}}},cu}var fu,Kv;function pk(){return Kv||(Kv=1,fu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multiple-empty-lines",url:"https://eslint.style/rules/no-multiple-empty-lines"}}]},type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(a){let e=2,n=e,o=e;a.options.length&&(e=a.options[0].max,n=typeof a.options[0].maxEOF<"u"?a.options[0].maxEOF:e,o=typeof a.options[0].maxBOF<"u"?a.options[0].maxBOF:e);const t=a.sourceCode,l=t.lines.at(-1)===""?t.lines.slice(0,-1):t.lines,p=new Set;return{TemplateLiteral(u){u.quasis.forEach(r=>{for(let m=r.loc.start.line;m<r.loc.end.line;m++)p.add(m)})},"Program:exit"(u){return l.reduce((r,m,i)=>((m.trim()||p.has(i+1))&&r.push(i+1),r),[]).concat(l.length+1).reduce((r,m)=>{let i,c;return r===0?(i="blankBeginningOfFile",c=o):m===l.length+1?(i="blankEndOfFile",c=n):(i="consecutiveBlank",c=e),m-r-1>c&&a.report({node:u,loc:{start:{line:r+c+1,column:0},end:{line:m,column:0}},messageId:i,data:{max:c,pluralizedLines:c===1?"line":"lines"},fix(h){const s=t.getIndexFromLoc({line:r+1,column:0}),f=m-c,g=f<=l.length?t.getIndexFromLoc({line:f,column:0}):t.text.length;return h.removeRange([s,g])}}),m},0)}}}}),fu}var pu,Xv;function mk(){return Xv||(Xv=1,pu={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-global-assign",url:"https://eslint.org/docs/rules/no-global-assign"}}]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.options[0],n=e&&e.exceptions||[],o=a.sourceCode;function t(p,u,r){const m=p.identifier;p.init===!1&&p.isWrite()&&(u===0||r[u-1].identifier!==m)&&a.report({node:m,messageId:"nativeReassign",data:m})}function l(p){p.writeable===!1&&!n.includes(p.name)&&p.references.forEach(t)}return{Program(p){o.getScope(p).variables.forEach(l)}}}}),pu}var mu,Jv;function hk(){return Jv||(Jv=1,mu={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(a){function e(l){return l.alternate&&l.alternate.type!=="IfStatement"}function n(l){return l.type==="UnaryExpression"&&l.operator==="!"}function o(l){return l.type==="BinaryExpression"&&(l.operator==="!="||l.operator==="!==")}function t(l){return n(l.test)||o(l.test)}return{IfStatement(l){e(l)&&t(l)&&a.report({node:l,messageId:"unexpectedNegated"})},ConditionalExpression(l){t(l)&&a.report({node:l,messageId:"unexpectedNegated"})}}}}),mu}var hu,Yv;function dk(){return Yv||(Yv=1,hu={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-unsafe-negation",url:"https://eslint.org/docs/rules/no-unsafe-negation"}}]},schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(a){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&a.report({node:e,messageId:"negatedLHS"})}}}}),hu}var du,Qv;function gk(){return Qv||(Qv=1,du={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(a){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&a.report({node:e,messageId:"noNestedTernary"})}}}}),du}var gu,Zv;function yk(){return Zv||(Zv=1,gu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(a){return{"ExpressionStatement > NewExpression"(e){a.report({node:e.parent,messageId:"noNewStatement"})}}}}),gu}var yu,eE;function vk(){if(eE)return yu;eE=1;const a=Ue(),e=new Set(["apply","bind","call"]);return yu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(n){const o=n.sourceCode;return{"Program:exit"(t){const p=o.getScope(t).set.get("Function");p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier,{parent:m}=r;let i;if(m){if(r===m.callee&&(m.type==="NewExpression"||m.type==="CallExpression"))i=m;else if(m.type==="MemberExpression"&&r===m.object&&e.has(a.getStaticPropertyName(m))){const c=m.parent.type==="ChainExpression"?m.parent:m;c.parent.type==="CallExpression"&&c.parent.callee===c&&(i=c.parent)}}i&&n.report({node:i,messageId:"noFunctionConstructor"})})}}}},yu}var vu,tE;function Ek(){if(tE)return vu;tE=1;const a=["Symbol","BigInt"];return vu={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){const n=e.sourceCode;return{"Program:exit"(o){const t=n.getScope(o);for(const l of a){const p=t.set.get(l);p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier,m=r.parent;m&&m.type==="NewExpression"&&m.callee===r&&e.report({node:r,messageId:"noNewNonconstructor",data:{name:l}})})}}}}},vu}var Eu,rE;function Sk(){if(rE)return Eu;rE=1;const a=Ue();return Eu={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:"https://eslint.org/blog/2023/09/eslint-v8.50.0-released/",deprecatedSince:"8.50.0",availableUntil:null,replacedBy:[{rule:{name:"no-object-constructor",url:"https://eslint.org/docs/rules/no-object-constructor"}}]},schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){const n=e.sourceCode;return{NewExpression(o){const t=a.getVariableByName(n.getScope(o),o.callee.name);t&&t.identifiers.length>0||o.callee.name==="Object"&&e.report({node:o,messageId:"preferLiteral"})}}}},Eu}var Su,nE;function bk(){return nE||(nE=1,Su={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-new-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md"}}]},type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(a){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&a.report({node:e,messageId:"noNewRequire"})}}}}),Su}var bu,sE;function xk(){return sE||(sE=1,bu={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended",deprecatedSince:"9.0.0",availableUntil:null,replacedBy:[{rule:{name:"no-new-native-nonconstructor",url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(a){const e=a.sourceCode;return{"Program:exit"(n){const t=e.getScope(n).set.get("Symbol");t&&t.defs.length===0&&t.references.forEach(l=>{const p=l.identifier,u=p.parent;u&&u.type==="NewExpression"&&u.callee===p&&a.report({node:p,messageId:"noNewSymbol"})})}}}}),bu}var xu,aE;function Ck(){if(aE)return xu;aE=1;const{getVariableByName:a}=Ue();return xu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){const{sourceCode:n}=e;return{NewExpression(o){const t=["String","Number","Boolean"],{name:l}=o.callee;if(t.includes(l)){const p=a(n.getScope(o),l);p&&p.identifiers.length===0&&e.report({node:o,messageId:"noConstructor",data:{fn:l}})}}}}},xu}var Cu,iE;function wk(){if(iE)return Cu;iE=1;const a=/\\[89]/u;function e(n){return`\\u${n.charCodeAt(0).toString(16).padStart(4,"0")}`}return Cu={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(n){const o=n.sourceCode;function t(l,p,u){return{messageId:l,data:{original:o.getText().slice(...p),replacement:u},fix(r){return r.replaceTextRange(p,u)}}}return{Literal(l){if(typeof l.value!="string"||!a.test(l.raw))return;const p=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy;let u;for(;u=p.exec(l.raw);){const{previousEscape:r,decimalEscape:m}=u.groups,i=l.range[0]+u.index+u[0].length,c=i-m.length,h=[c,i],s=[];r==="\\0"?s.push(t("refactor",[c-r.length,i],`${e("\0")}${m[1]}`),t("refactor",h,e(m[1]))):s.push(t("refactor",h,m[1])),s.push(t("escapeBackslash",h,`\\${m}`)),n.report({node:l,loc:{start:o.getLocFromIndex(c),end:o.getLocFromIndex(i)},messageId:"decimalEscape",data:{decimalEscape:m},suggest:s})}}}}},Cu}var wu,oE;function Ak(){if(oE)return wu;oE=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n}=qt(),o=Ue().getStaticPropertyName,t=["Atomics","JSON","Math","Reflect","Intl"];function l(p){return p.type==="ChainExpression"?l(p.expression):p.type==="MemberExpression"?o(p):p.name}return wu={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(p){const u=p.sourceCode;return{Program(r){const m=u.getScope(r),i=new n(m),c={};for(const h of t)c[h]={[a]:!0,[e]:!0};for(const{node:h,path:s}of i.iterateGlobalReferences(c)){const f=l(h.callee),g=s[0],d=f===g?"unexpectedCall":"unexpectedRefCall";p.report({node:h,messageId:d,data:{name:f,ref:g}})}}}}},wu}var Au,lE;function Tk(){if(lE)return Au;lE=1;const{getVariableByName:a,isArrowToken:e,isStartOfExpressionStatement:n,needsPrecedingSemicolon:o}=Ue();return Au={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(t){const l=t.sourceCode;function p(r){if(n(r))return!0;const m=l.getTokenBefore(r);return!!(m&&e(m))}function u(r){if(r.callee.type!=="Identifier"||r.callee.name!=="Object"||r.arguments.length)return;const m=a(l.getScope(r),"Object");if(m&&m.identifiers.length===0){let i,c,h="useLiteral";p(r)?(i="({})",o(l,r)?(c=";({})",h="useLiteralAfterSemicolon"):c="({})"):i=c="{}",t.report({node:r,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:i},fix:s=>s.replaceText(r,c)}]})}}return{CallExpression:u,NewExpression:u}}},Au}var Tu,uE;function kk(){return uE||(uE=1,Tu={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(a){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&a.report({node:e,messageId:"noOctal"})}}}}),Tu}var ku,cE;function Dk(){return cE||(cE=1,ku={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(a){return{Literal(e){if(typeof e.value!="string")return;const n=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&a.report({node:e,messageId:"octalEscapeSequence",data:{sequence:n[1]}})}}}}),ku}var Du,fE;function Ik(){if(fE)return Du;fE=1;const a=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return Du={meta:{type:"suggestion",docs:{description:"Disallow reassigning function parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){const n=e.options[0]&&e.options[0].props,o=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],t=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],l=e.sourceCode;function p(c){let h=c.identifier,s=h.parent;for(;s&&(!a.test(s.type)||s.type==="ForInStatement"||s.type==="ForOfStatement");){switch(s.type){case"AssignmentExpression":return s.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(s.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return s.left===h;case"CallExpression":if(s.callee!==h)return!1;break;case"MemberExpression":if(s.property===h)return!1;break;case"Property":if(s.key===h)return!1;break;case"ConditionalExpression":if(s.test===h)return!1;break}h=s,s=h.parent}return!1}function u(c){return o.includes(c)||t.some(h=>new RegExp(h,"u").test(c))}function r(c,h,s){const f=c.identifier;f&&!c.init&&(h===0||s[h-1].identifier!==f)&&(c.isWrite()?e.report({node:f,messageId:"assignmentToFunctionParam",data:{name:f.name}}):n&&p(c)&&!u(f.name)&&e.report({node:f,messageId:"assignmentToFunctionParamProp",data:{name:f.name}}))}function m(c){c.defs[0].type==="Parameter"&&c.references.forEach(r)}function i(c){l.getDeclaredVariables(c).forEach(m)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}},Du}var Iu,pE;function Pk(){return pE||(pE=1,Iu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-path-concat",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md"}}]},type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(a){const e=/^__(?:dir|file)name$/u;return{BinaryExpression(n){const o=n.left,t=n.right;n.operator==="+"&&(o.type==="Identifier"&&e.test(o.name)||t.type==="Identifier"&&e.test(t.name))&&a.report({node:n,messageId:"usePathFunctions"})}}}}),Iu}var Pu,mE;function Fk(){if(mE)return Pu;mE=1;function a(n){const o=n.parent;return o.type==="ForStatement"&&o.update===n}function e(n){const o=n.parent;return o.type==="SequenceExpression"?e(o):a(n)}return Pu={meta:{type:"suggestion",defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(n){const[{allowForLoopAfterthoughts:o}]=n.options;return{UpdateExpression(t){o&&e(t)||n.report({node:t,messageId:"unexpectedUnaryOp",data:{operator:t.operator}})}}}},Pu}var Fu,hE;function Rk(){return hE||(hE=1,Fu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-env",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="process"&&!e.computed&&o&&o==="env"&&a.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),Fu}var Ru,dE;function _k(){return dE||(dE=1,Ru={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-exit",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(a){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){a.report({node:e.parent,messageId:"noProcessExit"})}}}}),Ru}var _u,gE;function Bk(){if(gE)return _u;gE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]);function n(p,u){const r=p.parent;return r.type==="NewExpression"&&r.arguments[0]===p&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&u.isGlobalReference(r.callee)}function o(p){return p.type==="UnaryExpression"&&p.operator==="void"}function t(p,u,r){const m=a.getPrecedence(u)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(p,u),i=p.getTokenBefore(u,u.parent.type==="ArrowFunctionExpression"?a.isArrowToken:s=>s.type==="Keyword"&&s.value==="return"),c=p.getTokenAfter(i),h=i.value==="return"&&i.range[1]===c.range[0];return[r.insertTextBefore(c,`${h?" ":""}void ${m?"(":""}`),r.insertTextAfter(u,m?")":"")]}function l(p,u,r){const m=p.getTokenBefore(u.body,a.isArrowToken),i=p.getTokenAfter(m),c=p.getLastToken(u);return[r.insertTextBefore(i,"{"),r.insertTextAfter(c,"}")]}return _u={meta:{type:"problem",defaultOptions:[{allowVoid:!1}],docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(p){let u=null;const r=p.sourceCode,[{allowVoid:m}]=p.options;return{onCodePathStart(i,c){if(u={upper:u,shouldCheck:e.has(c.type)&&n(c,r)},u.shouldCheck&&c.type==="ArrowFunctionExpression"&&c.expression&&!(m&&o(c.body))){const h=[];m&&h.push({messageId:"prependVoid",fix(s){return t(r,c.body,s)}}),c.body.type==="FunctionExpression"&&!c.body.id||h.push({messageId:"wrapBraces",fix(s){return l(r,c,s)}}),p.report({node:c.body,messageId:"returnsValue",suggest:h})}},onCodePathEnd(){u=u.upper},ReturnStatement(i){if(u.shouldCheck&&i.argument){if(!m){p.report({node:i,messageId:"returnsValue"});return}o(i.argument)||p.report({node:i,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(c){return t(r,i.argument,c)}}]})}}}}},_u}var Bu,yE;function Lk(){if(yE)return Bu;yE=1;const{getStaticPropertyName:a}=Ue();return Bu={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(n){a(n)==="__proto__"&&e.report({node:n,messageId:"unexpectedProto"})}}}},Bu}var Lu,vE;function Ok(){if(vE)return Lu;vE=1;const a=Ue();function e(n){let o;if(n.type==="MemberExpression")o=n.object;else if(n.type==="CallExpression")o=n.callee;else return!1;return n.optional?!0:e(o)}return Lu={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(n){const o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function t(l){const p=a.skipChainExpression(l.callee);if(p.type!=="MemberExpression")return;const u=a.getStaticPropertyName(p);u!==null&&o.has(u)&&n.report({messageId:"prototypeBuildIn",loc:p.property.loc,data:{prop:u},node:l,suggest:[{messageId:"callObjectPrototype",data:{prop:u},fix(r){const m=n.sourceCode;if(e(l)||l.callee.type==="ChainExpression")return null;const i=a.getVariableByName(m.getScope(l),"Object");if(!i||i.scope.type!=="global"||i.defs.length>0)return null;let c=m.getText(p.object);a.getPrecedence(p.object)<=a.getPrecedence({type:"SequenceExpression"})&&(c=`(${c})`);const h=m.getTokenAfter(l.callee,a.isOpeningParenToken),f=l.arguments.length===0?"":", ";return[r.replaceText(p,`Object.prototype.${u}.call`),r.insertTextAfter(h,c+f)]}}]})}return{CallExpression:t}}},Lu}var Ou,EE;function Nk(){if(EE)return Ou;EE=1;const a=Ue();return Ou={meta:{type:"suggestion",defaultOptions:[{builtinGlobals:!0}],docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"}},additionalProperties:!1}]},create(e){const[{builtinGlobals:n}]=e.options,o=e.sourceCode;function*t(u){n&&(u.eslintImplicitGlobalSetting==="readonly"||u.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(const r of u.identifiers)yield{type:"syntax",node:r,loc:r.loc};if(u.eslintExplicitGlobalComments)for(const r of u.eslintExplicitGlobalComments)yield{type:"comment",node:r,loc:a.getNameLocationInGlobalDirectiveComment(o,r,u.name)}}function l(u){for(const r of u.variables){const[m,...i]=t(r);if(i.length===0)continue;const c=m.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:r.name};for(const{type:s,node:f,loc:g}of i){const d=s===m.type?"redeclared":c;e.report({node:f,loc:g,messageId:d,data:h})}}}function p(u){const r=o.getScope(u);r.block===u&&l(r)}return{Program(u){const r=o.getScope(u);l(r),r.type==="global"&&r.childScopes[0]&&r.block===r.childScopes[0].block&&l(r.childScopes[0])},FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p,StaticBlock:p,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p}}},Ou}var Nu,SE;function Mk(){if(SE)return Nu;SE=1;const a=Ue(),e=ur(),n=new e.RegExpParser,o=/ {2}/u;function t(l){return l&&l.type==="Literal"&&typeof l.value=="string"}return Nu={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(l){const p=l.sourceCode;function u(i,c,h,s,f){if(!o.test(h))return;const g=[];let d;try{d=n.parsePattern(c,0,c.length,{unicode:f.includes("u"),unicodeSets:f.includes("v")})}catch{return}e.visitRegExpAST(d,{onCharacterClassEnter(x){g.push(x)}});const E=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let S;for(;S=E.exec(c);){const{1:{length:x},index:T}=S;if(g.every(({start:C,end:v})=>T<C||v<=T)){l.report({node:i,messageId:"multipleSpaces",data:{length:x},fix(C){return c!==h?null:C.replaceTextRange([s+T,s+T+x],` {${x}}`)}});return}}}function r(i){if(i.regex){const c=i.regex.pattern,h=i.raw.slice(1,i.raw.lastIndexOf("/")),s=i.range[0]+1,f=i.regex.flags;u(i,c,h,s,f)}}function m(i){const c=p.getScope(i),h=a.getVariableByName(c,"RegExp"),s=h&&h.defs.length>0,f=i.arguments[0];if(i.callee.type==="Identifier"&&i.callee.name==="RegExp"&&t(f)&&!s){const g=f.value,d=f.raw.slice(1,-1),E=f.range[0]+1;let S;if(i.arguments.length<2)S="";else{const x=i.arguments[1];if(t(x))S=x.value;else return}u(i,g,d,E,S)}}return{Literal:r,CallExpression:m,NewExpression:m}}},Nu}var Mu,bE;function jk(){if(bE)return Mu;bE=1;const a=Ue();return Mu={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){const n=new Set(e.options[0]&&e.options[0].restrictedNamedExports),o=e.options[0]&&e.options[0].restrictedNamedExportsPattern,t=e.options[0]&&e.options[0].restrictDefaultExports,l=e.sourceCode;function p(u){const r=a.getModuleExportName(u);let m=!1;if(o&&r!=="default"&&(m=new RegExp(o,"u").test(r)),m||n.has(r)){e.report({node:u,messageId:"restrictedNamed",data:{name:r}});return}if(r==="default")if(u.parent.type==="ExportAllDeclaration")t&&t.namespaceFrom&&e.report({node:u,messageId:"restrictedDefault"});else{const i=!!u.parent.parent.source,c=a.getModuleExportName(u.parent.local);if(!i&&t&&t.named){e.report({node:u,messageId:"restrictedDefault"});return}i&&t&&(c==="default"&&t.defaultFrom||c!=="default"&&t.namedFrom)&&e.report({node:u,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(u){u.exported&&p(u.exported)},ExportDefaultDeclaration(u){t&&t.direct&&e.report({node:u,messageId:"restrictedDefault"})},ExportNamedDeclaration(u){const r=u.declaration;r?r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"?p(r.id):r.type==="VariableDeclaration"&&l.getDeclaredVariables(r).map(m=>m.defs.find(i=>i.parent===r)).map(m=>m.name).forEach(p):u.specifiers.map(m=>m.exported).forEach(p)}}}},Mu}var ju,xE;function Uk(){if(xE)return ju;xE=1;const a=Ue(),e=new Set(["TSTypeReference","TSInterfaceHeritage","TSClassImplements","TSTypeQuery","TSQualifiedName"]),n=new Set(["globalThis","self","window"]),o={type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0};return ju={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{anyOf:[o,{type:"array",items:[{type:"object",properties:{globals:o,checkGlobalObject:{type:"boolean"},globalObjects:{type:"array",items:{type:"string"},uniqueItems:!0}},required:["globals"],additionalProperties:!1}],additionalItems:!1}]},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(t){const{sourceCode:l,options:p}=t,u=typeof p[0]=="object"&&Object.hasOwn(p[0],"globals"),r=u?p[0].globals:p,m=u?p[0].checkGlobalObject:!1,i=u?p[0].globalObjects||[]:[],c=new Set([...n,...i]);if(r.length===0)return{};const h=r.reduce((d,E)=>(typeof E=="string"?d[E]=null:d[E.name]=E.message,d),{});function s(d){const E=d.identifier.name,S=h[E],x=S?"customMessage":"defaultMessage";t.report({node:d.identifier,messageId:x,data:{name:E,customMessage:S}})}function f(d){return Object.hasOwn(h,d)}function g(d){const E=d.identifier.parent;return e.has(E.type)}return{Program(d){const E=l.getScope(d);E.variables.forEach(S=>{!S.defs.length&&f(S.name)&&S.references.forEach(x=>{g(x)||s(x)})}),E.through.forEach(S=>{f(S.identifier.name)&&!g(S)&&s(S)})},"Program:exit"(d){if(!m)return;const E=l.getScope(d);c.forEach(S=>{const x=a.getVariableByName(E,S);x&&x.references.forEach(T=>{let v=T.identifier.parent;for(;a.isSpecificMemberAccess(v,null,S);)v=v.parent;const A=a.getStaticPropertyName(v);if(A&&f(A)){const b=h[A],w=b?"customMessage":"defaultMessage";t.report({node:v.property,messageId:w,data:{name:A,customMessage:b}})}})})}}}},ju}var Uu,CE;function wE(){if(CE)return Uu;CE=1;function a(q){return Array.isArray(q)?q:[q]}const e="",n=" ",o="\\",t=/^\s+$/,l=/(?:[^\\]|^)\\$/,p=/^\\!/,u=/^\\#/,r=/\r?\n/g,m=/^\.*\/|^\.+$/,i="/";let c="node-ignore";typeof Symbol<"u"&&(c=Symbol.for("node-ignore"));const h=c,s=(q,N,_)=>Object.defineProperty(q,N,{value:_}),f=/([0-z])-([0-z])/g,g=()=>!1,d=q=>q.replace(f,(N,_,G)=>_.charCodeAt(0)<=G.charCodeAt(0)?N:e),E=q=>{const{length:N}=q;return q.slice(0,N-N%2)},S=[[/^\uFEFF/,()=>e],[/((?:\\\\)*?)(\\?\s+)$/,(q,N,_)=>N+(_.indexOf("\\")===0?n:e)],[/(\\+?)\s/g,(q,N)=>{const{length:_}=N;return N.slice(0,_-_%2)+n}],[/[\\$.|*+(){^]/g,q=>`\\${q}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(q,N,_)=>N+6<_.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(q,N,_)=>{const G=_.replace(/\\\*/g,"[^\\/]*");return N+G}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(q,N,_,G,B)=>N===o?`\\[${_}${E(G)}${B}`:B==="]"&&G.length%2===0?`[${d(_)}${G}]`:"[]"],[/(?:[^*])$/,q=>/\/$/.test(q)?`${q}$`:`${q}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(q,N)=>`${N?`${N}[^/]+`:"[^/]*"}(?=$|\\/$)`]],x=Object.create(null),T=(q,N)=>{let _=x[q];return _||(_=S.reduce((G,[B,z])=>G.replace(B,z.bind(q)),q),x[q]=_),N?new RegExp(_,"i"):new RegExp(_)},C=q=>typeof q=="string",v=q=>q&&C(q)&&!t.test(q)&&!l.test(q)&&q.indexOf("#")!==0,A=q=>q.split(r);class b{constructor(N,_,G,B){this.origin=N,this.pattern=_,this.negative=G,this.regex=B}}const w=(q,N)=>{const _=q;let G=!1;q.indexOf("!")===0&&(G=!0,q=q.substr(1)),q=q.replace(p,"!").replace(u,"#");const B=T(q,N);return new b(_,q,G,B)},k=(q,N)=>{throw new N(q)},R=(q,N,_)=>C(q)?q?R.isNotRelative(q)?_(`path should be a \`path.relative()\`d string, but got "${N}"`,RangeError):!0:_("path must not be empty",TypeError):_(`path must be a string, but got \`${N}\``,TypeError),F=q=>m.test(q);R.isNotRelative=F,R.convert=q=>q;class L{constructor({ignorecase:N=!0,ignoreCase:_=N,allowRelativePaths:G=!1}={}){s(this,h,!0),this._rules=[],this._ignoreCase=_,this._allowRelativePaths=G,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(N){if(N&&N[h]){this._rules=this._rules.concat(N._rules),this._added=!0;return}if(v(N)){const _=w(N,this._ignoreCase);this._added=!0,this._rules.push(_)}}add(N){return this._added=!1,a(C(N)?A(N):N).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(N){return this.add(N)}_testOne(N,_){let G=!1,B=!1;return this._rules.forEach(z=>{const{negative:H}=z;if(B===H&&G!==B||H&&!G&&!B&&!_)return;z.regex.test(N)&&(G=!H,B=H)}),{ignored:G,unignored:B}}_test(N,_,G,B){const z=N&&R.convert(N);return R(z,N,this._allowRelativePaths?g:k),this._t(z,_,G,B)}_t(N,_,G,B){if(N in _)return _[N];if(B||(B=N.split(i)),B.pop(),!B.length)return _[N]=this._testOne(N,G);const z=this._t(B.join(i)+i,_,G,B);return _[N]=z.ignored?z:this._testOne(N,G)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return a(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}}const P=q=>new L(q),O=q=>R(q&&R.convert(q),q,g);if(P.isPathValid=O,P.default=P,Uu=P,typeof Ft<"u"&&(Ft.env&&Ft.env.IGNORE_TEST_WIN32||Ft.platform==="win32")){const q=_=>/^\\\\\?\\/.test(_)||/["<>|\u0000-\u001F]+/u.test(_)?_:_.replace(/\\/g,"/");R.convert=q;const N=/^[a-z]:\//i;R.isNotRelative=_=>N.test(_)||F(_)}return Uu}var qu,AE;function qk(){if(AE)return qu;AE=1;const a=Ue(),e=wE(),n={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return qu={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[n,{type:"array",items:[{type:"object",properties:{paths:n,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},regex:{type:"string"},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]},oneOf:[{required:["group"]},{required:["regex"]}]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(t){const l=t.sourceCode,p=Array.isArray(t.options)?t.options:[],u=typeof p[0]=="object"&&(Object.hasOwn(p[0],"paths")||Object.hasOwn(p[0],"patterns")),r=(u?p[0].paths:t.options)||[],m=r.reduce((d,E)=>{const S=typeof E=="string"?E:E.name;return d[S]||(d[S]=[]),typeof E=="string"?d[S].push({}):d[S].push({message:E.message,importNames:E.importNames,allowImportNames:E.allowImportNames}),d},Object.create(null));let i=(u?p[0].patterns:[])||[];i.length>0&&typeof i[0]=="string"&&(i=[{group:i}]);const c=i.map(({group:d,regex:E,message:S,caseSensitive:x,importNames:T,importNamePattern:C,allowImportNames:v,allowImportNamePattern:A})=>({...d?{matcher:e({allowRelativePaths:!0,ignorecase:!x}).add(d)}:{},...typeof E=="string"?{regexMatcher:new RegExp(E,x?"u":"iu")}:{},customMessage:S,importNames:T,importNamePattern:C,allowImportNames:v,allowImportNamePattern:A}));if(Object.keys(r).length===0&&c.length===0)return{};function h(d,E,S){Object.hasOwn(m,d)&&m[d].forEach(x=>{const T=x.message,C=x.importNames,v=x.allowImportNames;if(!C&&!v){t.report({node:S,messageId:T?"pathWithCustomMessage":"path",data:{importSource:d,customMessage:T}});return}E.forEach((A,b)=>{if(b==="*"){const[w]=A;C?t.report({node:S,messageId:T?"everythingWithCustomMessage":"everything",loc:w.loc,data:{importSource:d,importNames:C,customMessage:T}}):v&&t.report({node:S,messageId:T?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:w.loc,data:{importSource:d,allowedImportNames:v,customMessage:T}});return}C&&C.includes(b)&&A.forEach(w=>{t.report({node:S,messageId:T?"importNameWithCustomMessage":"importName",loc:w.loc,data:{importSource:d,customMessage:T,importName:b}})}),v&&!v.includes(b)&&A.forEach(w=>{t.report({node:S,loc:w.loc,messageId:T?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:d,customMessage:T,importName:b,allowedImportNames:v}})})})})}function s(d,E,S){const x=d.source.value.trim(),T=E.customMessage,C=E.importNames,v=E.importNamePattern?new RegExp(E.importNamePattern,"u"):null,A=E.allowImportNames,b=E.allowImportNamePattern?new RegExp(E.allowImportNamePattern,"u"):null;if(!C&&!A&&!v&&!b){t.report({node:d,messageId:T?"patternWithCustomMessage":"patterns",data:{importSource:x,customMessage:T}});return}S.forEach((w,k)=>{if(k==="*"){const[R]=w;C?t.report({node:d,messageId:T?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:R.loc,data:{importSource:x,importNames:C,customMessage:T}}):A?t.report({node:d,messageId:T?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:R.loc,data:{importSource:x,allowedImportNames:A,customMessage:T}}):b?t.report({node:d,messageId:T?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:R.loc,data:{importSource:x,allowedImportNamePattern:b,customMessage:T}}):t.report({node:d,messageId:T?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:R.loc,data:{importSource:x,importNames:v,customMessage:T}});return}(C&&C.includes(k)||v&&v.test(k))&&w.forEach(R=>{t.report({node:d,messageId:T?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:R.loc,data:{importSource:x,customMessage:T,importName:k}})}),A&&!A.includes(k)?w.forEach(R=>{t.report({node:d,messageId:T?"allowedImportNameWithCustomMessage":"allowedImportName",loc:R.loc,data:{importSource:x,customMessage:T,importName:k,allowedImportNames:A}})}):b&&!b.test(k)&&w.forEach(R=>{t.report({node:d,messageId:T?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:R.loc,data:{importSource:x,customMessage:T,importName:k,allowedImportNamePattern:b}})})})}function f(d,E){return E.regexMatcher?E.regexMatcher.test(d):E.matcher.ignores(d)}function g(d){const E=d.source.value.trim(),S=new Map;if(d.type==="ExportAllDeclaration"){const x=l.getFirstToken(d,1);S.set("*",[{loc:x.loc}])}else if(d.specifiers)for(const x of d.specifiers){let T;const C={loc:x.loc};x.type==="ImportDefaultSpecifier"?T="default":x.type==="ImportNamespaceSpecifier"?T="*":x.imported?T=a.getModuleExportName(x.imported):x.local&&(T=a.getModuleExportName(x.local)),typeof T=="string"&&(S.has(T)?S.get(T).push(C):S.set(T,[C]))}h(E,S,d),c.forEach(x=>{f(E,x)&&s(d,x,S)})}return{ImportDeclaration:g,ExportNamedDeclaration(d){d.source&&g(d)},ExportAllDeclaration:g}}},qu}var Vu,TE;function Vk(){if(TE)return Vu;TE=1;const a=Ue(),e=wE(),n={type:"array",items:{type:"string"},uniqueItems:!0},o={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Vu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-restricted-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md"}}]},type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[o,{type:"array",items:{type:"object",properties:{paths:o,patterns:n},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(t){const l=Array.isArray(t.options)?t.options:[],p=typeof l[0]=="object"&&(Object.hasOwn(l[0],"paths")||Object.hasOwn(l[0],"patterns")),u=(p?l[0].paths:t.options)||[],r=(p?l[0].patterns:[])||[],m=u.reduce((d,E)=>(typeof E=="string"?d[E]=null:d[E.name]=E.message,d),{});if(Object.keys(u).length===0&&r.length===0)return{};const i=e({allowRelativePaths:!0}).add(r);function c(d){return d&&d.type==="Literal"&&typeof d.value=="string"}function h(d){return d.callee.type==="Identifier"&&d.callee.name==="require"}function s(d){return c(d)?d.value.trim():a.isStaticTemplateLiteral(d)?d.quasis[0].value.cooked.trim():null}function f(d,E){const S=m[E],x=S?"customMessage":"defaultMessage";t.report({node:d,messageId:x,data:{name:E,customMessage:S}})}function g(d){return Object.hasOwn(m,d)}return{CallExpression(d){if(h(d)&&d.arguments.length){const E=s(d.arguments[0]);E&&(g(E)&&f(d,E),r.length>0&&i.ignores(E)&&t.report({node:d,messageId:"patternMessage",data:{name:E}}))}}}}},Vu}var $u,kE;function $k(){if(kE)return $u;kE=1;const a=Ue();return $u={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{type:"object",properties:{object:{type:"string"},property:{type:"string"},allowObjects:{type:"array",items:{type:"string"},uniqueItems:!0},allowProperties:{type:"array",items:{type:"string"},uniqueItems:!0},message:{type:"string"}},anyOf:[{required:["object"]},{required:["property"]}],not:{anyOf:[{required:["allowObjects","object"]},{required:["allowProperties","property"]}]},additionalProperties:!1},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}"}},create(e){const n=e.options;if(n.length===0)return{};const o=new Map,t=new Map,l=new Map;n.forEach(r=>{const m=r.object,i=r.property;typeof m>"u"?l.set(i,{allowObjects:r.allowObjects,message:r.message}):typeof i>"u"?t.set(m,{allowProperties:r.allowProperties,message:r.message}):(o.has(m)||o.set(m,new Map),o.get(m).set(i,{message:r.message}))});function p(r,m){return m?m.includes(r):!1}function u(r,m,i){if(i===null)return;const c=o.get(m),h=c?c.get(i):t.get(m),s=l.get(i);if(h&&!p(i,h.allowProperties)){const f=h.message?` ${h.message}`:"",g=h.allowProperties?` Only these properties are allowed: ${h.allowProperties.join(", ")}.`:"";e.report({node:r,messageId:"restrictedObjectProperty",data:{objectName:m,propertyName:i,message:f,allowedPropertiesMessage:g}})}else if(s&&!p(m,s.allowObjects)){const f=s.message?` ${s.message}`:"",g=s.allowObjects?` Property '${i}' is only allowed on these objects: ${s.allowObjects.join(", ")}.`:"";e.report({node:r,messageId:"restrictedProperty",data:{propertyName:i,message:f,allowedObjectsMessage:g}})}}return{MemberExpression(r){u(r,r.object&&r.object.name,a.getStaticPropertyName(r))},ObjectPattern(r){let m=null;r.parent.type==="VariableDeclarator"?r.parent.init&&r.parent.init.type==="Identifier"&&(m=r.parent.init.name):(r.parent.type==="AssignmentExpression"||r.parent.type==="AssignmentPattern")&&r.parent.right.type==="Identifier"&&(m=r.parent.right.name),r.properties.forEach(i=>{u(r,m,a.getStaticPropertyName(i))})}}}},$u}var Wu,DE;function Wk(){return DE||(DE=1,Wu={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(a){return a.options.reduce((e,n)=>{const o=typeof n=="string",t=!o&&!!n.message,l=o?n:n.selector,p=t?n.message:`Using '${l}' is not allowed.`;return Object.assign(e,{[l](u){a.report({node:u,messageId:"restrictedSyntax",data:{message:p}})}})},{})}}),Wu}var Gu,IE;function Gk(){if(IE)return Gu;IE=1;const a=Ue(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Gu={meta:{type:"suggestion",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(n){const o=n.options[0]!=="except-parens",t=n.sourceCode;return{AssignmentExpression(l){if(!o&&a.isParenthesised(t,l))return;let p=l,u=p.parent;for(;u&&!e.test(u.type);)p=u,u=u.parent;u&&u.type==="ReturnStatement"?n.report({node:u,messageId:"returnAssignment"}):u&&u.type==="ArrowFunctionExpression"&&u.body===p&&n.report({node:u,messageId:"arrowAssignment"})}}}},Gu}var zu,PE;function zk(){if(PE)return zu;PE=1;const a=Ue();return zu={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:{message:"The original assumption of the rule no longer holds true because of engine optimization.",deprecatedSince:"8.46.0",availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function n(l){e.report({node:e.sourceCode.getFirstToken(l),loc:l.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(p){const u=e.sourceCode,[r,m]=u.getFirstTokens(l,2);if(!(r.loc.start.line===m.loc.start.line))return null;const[c,h]=r.range,f=u.text[h]===" "?1:0,g=[c,h+f];return p.removeRange(g)}}]})}function o(l){let p=l;for(;!a.isFunction(p)&&p.type!=="Program";){if(p.parent.type==="TryStatement"&&(p===p.parent.block||p===p.parent.handler&&p.parent.finalizer))return!0;p=p.parent}return!1}function t(l){return l.parent.type==="ArrowFunctionExpression"?!0:l.parent.type==="ReturnStatement"?!o(l.parent):l.parent.type==="ConditionalExpression"&&(l===l.parent.consequent||l===l.parent.alternate)||l.parent.type==="LogicalExpression"&&l===l.parent.right||l.parent.type==="SequenceExpression"&&l===l.parent.expressions.at(-1)?t(l.parent):!1}return{AwaitExpression(l){t(l)&&!o(l)&&n(l)}}}},zu}var Hu,FE;function Hk(){if(FE)return Hu;FE=1;const a=Ue();return Hu={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function n(o){const t=a.getStaticStringValue(o);typeof t=="string"&&t.toLowerCase().indexOf("javascript:")===0&&e.report({node:o,messageId:"unexpectedScriptURL"})}return{Literal(o){o.value&&typeof o.value=="string"&&n(o)},TemplateLiteral(o){o.parent&&o.parent.type==="TaggedTemplateExpression"||n(o)}}}},Hu}var Ku,RE;function Kk(){if(RE)return Ku;RE=1;const a=Ue(),e=/\s+/gu;function n(o,t,l,p){if(!(!o||!t))if(o.type==="Identifier"&&t.type==="Identifier"&&o.name===t.name)p(t);else if(o.type==="ArrayPattern"&&t.type==="ArrayExpression"){const u=Math.min(o.elements.length,t.elements.length);for(let r=0;r<u;++r){const m=o.elements[r],i=t.elements[r];if(m&&m.type==="RestElement"&&r<t.elements.length-1||(n(m,i,l,p),i&&i.type==="SpreadElement"))break}}else if(o.type==="RestElement"&&t.type==="SpreadElement")n(o.argument,t.argument,l,p);else if(o.type==="ObjectPattern"&&t.type==="ObjectExpression"&&t.properties.length>=1){let u=0;for(let r=t.properties.length-1;r>=0;--r){const m=t.properties[r].type;if(m==="SpreadElement"||m==="ExperimentalSpreadProperty"){u=r+1;break}}for(let r=0;r<o.properties.length;++r)for(let m=u;m<t.properties.length;++m)n(o.properties[r],t.properties[m],l,p)}else if(o.type==="Property"&&t.type==="Property"&&t.kind==="init"&&!t.method){const u=a.getStaticPropertyName(o);u!==null&&u===a.getStaticPropertyName(t)&&n(o.value,t.value,l,p)}else l&&a.skipChainExpression(o).type==="MemberExpression"&&a.skipChainExpression(t).type==="MemberExpression"&&a.isSameReference(o,t)&&p(t)}return Ku={meta:{type:"problem",defaultOptions:[{props:!0}],docs:{description:"Disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean"}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(o){const t=o.sourceCode,[{props:l}]=o.options;function p(u){o.report({node:u,messageId:"selfAssignment",data:{name:t.getText(u).replace(e,"")}})}return{AssignmentExpression(u){["=","&&=","||=","??="].includes(u.operator)&&n(u.left,u.right,l,p)}}}},Ku}var Xu,_E;function Xk(){return _E||(_E=1,Xu={meta:{type:"problem",docs:{description:"Disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(a){const e=a.sourceCode;function n(o,t){const l=e.getTokens(o),p=e.getTokens(t);return l.length===p.length&&l.every((u,r)=>u.type===p[r].type&&u.value===p[r].value)}return{BinaryExpression(o){new Set(["===","==","!==","!=",">","<",">=","<="]).has(o.operator)&&n(o.left,o.right)&&a.report({node:o,messageId:"comparingToSelf"})}}}}),Xu}var Ju,BE;function Jk(){if(BE)return Ju;BE=1;const a=Ue();return Ju={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(e){const[{allowInParentheses:n}]=e.options,o=e.sourceCode,t={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function l(r){return r.parent&&t[r.parent.type]&&r===r.parent[t[r.parent.type]]}function p(r){return a.isParenthesised(o,r)}function u(r){const m=o.getTokenBefore(r,1),i=o.getTokenAfter(r,1);return p(r)&&m&&i&&a.isOpeningParenToken(m)&&m.range[1]<=r.range[0]&&a.isClosingParenToken(i)&&i.range[0]>=r.range[1]}return{SequenceExpression(r){if(r.parent.type==="ForStatement"&&(r===r.parent.init||r===r.parent.update))return;if(n){if(l(r)){if(u(r))return}else if(p(r))return}const m=o.getTokenAfter(r.expressions[0],a.isCommaToken);e.report({node:r,loc:m.loc,messageId:"unexpectedCommaExpression"})}}}},Ju}var Yu,LE;function Yk(){if(LE)return Yu;LE=1;const a=Ue();function e(t,l,p,u,r){const m=t.parent;return m.type==="CallExpression"&&m.arguments[r]===t&&a.isSpecificMemberAccess(m.callee,p,u)&&l.isGlobalReference(a.skipChainExpression(m.callee).object)}function n(t,l){if(e(t,l,"Object","defineProperty",2)||e(t,l,"Reflect","defineProperty",2))return!0;const p=t.parent;if(p.type==="Property"&&p.value===t){const u=p.parent;if(u.type==="ObjectExpression"&&(e(u,l,"Object","create",1)||e(u,l,"Object","defineProperties",1)))return!0}return!1}function o(t,l){const p=t.parent;return!!((p.type==="Property"||p.type==="MethodDefinition")&&p.kind==="set"&&p.value===t||p.type==="Property"&&p.value===t&&a.getStaticPropertyName(p)==="set"&&p.parent.type==="ObjectExpression"&&n(p.parent,l))}return Yu={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(t){let l=null;const p=t.sourceCode;function u(i){l={upper:l,isSetter:o(i,p)}}function r(){l=l.upper}function m(i){t.report({node:i,messageId:"returnsValue"})}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression(i){u(i),l.isSetter&&i.expression&&m(i.body)},"FunctionDeclaration:exit":r,"FunctionExpression:exit":r,"ArrowFunctionExpression:exit":r,ReturnStatement(i){l&&l.isSetter&&i.argument&&m(i)}}}},Yu}var Qu,OE;function Qk(){if(OE)return Qu;OE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),n=new Set(["CallExpression"]),o=/^For(?:In|Of)Statement$/u,t=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,l=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration"]),p=new Set(["TSCallSignatureDeclaration","TSFunctionType","TSMethodSignature","TSEmptyBodyFunctionExpression","TSDeclareFunction","TSConstructSignatureDeclaration","TSConstructorType"]);return Qu={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",defaultOptions:[{allow:[],builtinGlobals:!1,hoist:"functions",ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"},hoist:{enum:["all","functions","never","types","functions-and-types"]},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean"},ignoreTypeValueShadow:{type:"boolean"},ignoreFunctionTypeParameterNameValueShadow:{type:"boolean"}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(u){const[{builtinGlobals:r,hoist:m,allow:i,ignoreOnInitialization:c,ignoreTypeValueShadow:h,ignoreFunctionTypeParameterNameValueShadow:s}]=u.options,f=u.sourceCode;function g(G){return G.block.kind==="global"||!!G.upper&&g(G.upper)}function d(G){return G.name==="this"}function E(G,B){if(h!==!0||!("isValueVariable"in G))return!1;const z=B.defs[0],H=z&&z.parent?.type==="ImportDeclaration"&&(z.parent.importKind==="type"||z.parent.specifiers.some(re=>re.importKind==="type")),ce=!z||(H?!1:B.isValueVariable);return G.isValueVariable!==ce}function S(G){return s!==!0?!1:G.defs.some(B=>p.has(B.node.type))}function x(G){const z=G.identifiers[0].parent.parent;return z.type!=="TSTypeParameterDeclaration"?!1:z.parent.parent.static}function T(G){return x(G)}function C(G,B){return G&&G.range[0]<=B&&B<=G.range[1]}function v(G,B){let z=G;for(;z&&!B(z);)z=z.parent;return z}function A(G){const B=G.upper;return B&&B.type==="function-expression-name"?B.upper:B}function b(G,B){const z=B.defs[0];if(!z)return!1;const{variableScope:H}=G.scope;if(!(e.has(H.block.type)&&A(H)===B.scope))return!1;const ce=H.block,{parent:re}=ce,Fe=v(re,W=>n.has(W.type));if(!Fe)return!1;let X=z.name;const I=Fe.range[1];for(;X;){if(X.type==="VariableDeclarator"){if(C(X.init,I)||o.test(X.parent.parent.type)&&C(X.parent.parent.right,I))return!0;break}else if(X.type==="AssignmentPattern"){if(C(X.right,I))return!0}else if(t.test(X.type))break;X=X.parent}return!1}function w(G){return i.includes(G.name)}function k(G){const B=G.scope.block;return B.type==="ClassDeclaration"&&B.id===G.identifiers[0]}function R(G,B){const z=B.scope,H=B.defs[0],ce=H&&H.parent&&H.parent.range,re=G.scope,Fe=G.defs[0],X=Fe&&Fe.name.range;return ce&&X&&ce[0]<X[0]&&X[1]<ce[1]&&(Fe.type==="FunctionName"&&Fe.node.type==="FunctionExpression"||Fe.node.type==="ClassExpression")&&z===re.upper}function F(G){const B=G.defs[0];return B&&B.name.range}function L(G){const B=G.identifiers[0];let z;return B?z={global:!1,line:B.loc.start.line,column:B.loc.start.column+1}:z={global:!0},z}function P(G,B){const z=B.defs[0],H=F(G),ce=F(B);return!ce||H[1]>=ce[0]?!1:m==="types"?!l.has(z.node.type):m==="functions-and-types"?z.node.type!=="FunctionDeclaration"&&!l.has(z.node.type):H&&ce&&H[1]<ce[0]&&(m!=="functions"||!z||z.node.type!=="FunctionDeclaration")}function O(G){const B=u.filename;return!B.endsWith(".d.ts")&&!B.endsWith(".d.cts")&&!B.endsWith(".d.mts")?!1:G.defs.some(z=>z.type==="Variable"&&z.parent.declare||z.type==="ClassName"&&z.node.declare||z.type==="TSEnumName"&&z.node.declare||z.type==="TSModuleName"&&z.node.declare)}function q(G){const B=G.scope.block;return B.type==="TSEnumDeclaration"&&B.id===G.identifiers[0]}function N(G,B,z){const H=z.defs[0];if(!H||!H.parent||!(H.parent.type==="ImportDeclaration"&&(H.parent.importKind==="type"||H.parent.specifiers?.some(I=>I.type==="ImportSpecifier"&&I.importKind==="type"&&I.local.name===z.name))))return!1;const re=v(B.identifiers[0]?.parent,I=>I.type==="TSModuleDeclaration");if(!re)return!1;const Fe=H.parent.source.value,X=re.id.type==="Literal"?re.id.value:re.id.name;return Fe===X}function _(G){if(g(G))return;const B=G.variables;for(let z=0;z<B.length;++z){const H=B[z];if(H.identifiers.length===0||k(H)||q(H)||w(H)||O(H)||d(H))continue;const ce=a.getVariableByName(G.upper,H.name);if(ce&&(ce.identifiers.length>0||r&&"writeable"in ce)&&!R(H,ce)&&!(c&&b(H,ce))&&!(m!=="all"&&P(H,ce))&&!E(H,ce)&&!S(H)&&!T(H)&&!N(G,H,ce)){const re=L(ce),Fe=re.global?"noShadowGlobal":"noShadow",X={name:H.name};re.global||(X.shadowedLine=re.line,X.shadowedColumn=re.column),u.report({node:H.identifiers[0],messageId:Fe,data:X})}}}return{"Program:exit"(G){const z=f.getScope(G).childScopes.slice();for(;z.length;){const H=z.pop();z.push(...H.childScopes),_(H)}}}}},Qu}var Zu,NE;function Zk(){if(NE)return Zu;NE=1;function a(e){return e.name==="undefined"&&e.references.every(n=>!n.isWrite())&&e.defs.every(n=>n.node.type==="VariableDeclarator"&&n.node.init===null)}return Zu={meta:{type:"suggestion",defaultOptions:[{reportGlobalThis:!1}],docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[{type:"object",properties:{reportGlobalThis:{type:"boolean"}},additionalProperties:!1}],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){const[{reportGlobalThis:n}]=e.options,o=new Set(["undefined","NaN","Infinity","arguments","eval"]);n&&o.add("globalThis");const t=e.sourceCode,l=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(p){for(const u of t.getDeclaredVariables(p))if(u.defs.length>0&&o.has(u.name)&&!a(u))for(const r of u.defs){const m=r.name;l.has(m)||(l.add(m),e.report({node:m,messageId:"shadowingRestrictedName",data:{name:u.name}}))}}}}},Zu}var ec,ME;function eD(){return ME||(ME=1,ec={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(a){const e=a.sourceCode;function n(o){const t=e.getLastToken(o.callee);let l=t,p=e.getTokenAfter(t);for(;p&&p.range[1]<o.range[1]&&p.value!=="(";)l=p,p=e.getTokenAfter(p);p&&p.range[1]<o.range[1]&&e.isSpaceBetweenTokens(l,p)&&a.report({node:o,loc:t.loc.start,messageId:"noSpacedFunction",fix(u){return u.removeRange([l.range[1],p.range[0]])}})}return{CallExpression:n,NewExpression:n}}}),ec}var tc,jE;function tD(){if(jE)return tc;jE=1;const a=Ue();return tc={meta:{type:"problem",docs:{description:"Disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create(e){return{ArrayExpression(n){if(!n.elements.includes(null))return;const{sourceCode:o}=e;let t;for(const[l,p]of n.elements.entries()){if(l===n.elements.length-1&&p)return;t=o.getTokenAfter(p??t??o.getFirstToken(n),a.isCommaToken),!p&&e.report({node:n,loc:t.loc,messageId:"unexpectedSparseArray"})}}}}},tc}var rc,UE;function rD(){return UE||(UE=1,rc={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-sync",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md"}}]},type:"suggestion",docs:{description:"Disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create(a){return{[a.options[0]&&a.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](n){a.report({node:n,messageId:"noSync",data:{propertyName:n.property.name}})}}}}),rc}var nc,qE;function nD(){if(qE)return nc;qE=1;const a=/\t+/gu,e=/\S/u;return nc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-tabs",url:"https://eslint.style/rules/no-tabs"}}]},type:"layout",docs:{description:"Disallow all tabs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(n){const o=n.sourceCode,t=n.options&&n.options[0]&&n.options[0].allowIndentationTabs;return{Program(l){o.getLines().forEach((p,u)=>{let r;for(;(r=a.exec(p))!==null;)t&&!e.test(p.slice(0,r.index))||n.report({node:l,loc:{start:{line:u+1,column:r.index},end:{line:u+1,column:r.index+r[0].length}},messageId:"unexpectedTab"})})}}}},nc}var sc,VE;function sD(){return VE||(VE=1,sc={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(a){const e=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value=="string"&&e.test(n.value)&&a.report({node:n,messageId:"unexpectedTemplateExpression"})}}}}),sc}var ac,$E;function aD(){return $E||($E=1,ac={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(a){return{ConditionalExpression(e){a.report({node:e,messageId:"noTernaryOperator"})}}}}),ac}var ic,WE;function iD(){if(WE)return ic;WE=1;const a=Ue();function e(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}class n{superCalled=!1;invalidNodes=[]}return ic={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(o){let t=null,l=Object.create(null);function p(h){return!h.reachable||l[h.id]?.superCalled}function u(){return!!(t&&t.isConstructor&&t.hasExtends)}function r(h){for(const s of h)if(!p(s))return!1;return!0}function m(){return u()&&!r(t.currentSegments)}function i(h){const s=t.currentSegments;for(const f of s)f.reachable&&l[f.id].invalidNodes.push(h)}function c(){const h=t.currentSegments;for(const s of h)s.reachable&&(l[s.id].superCalled=!0)}return{onCodePathStart(h,s){if(e(s)){const f=s.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:!!(f.superClass&&!a.isNullOrUndefined(f.superClass)),codePath:h,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){const s=t.hasExtends;if(t=t.upper,!s)return;const f=new Set;h.traverseSegments((g,d)=>{const E=l[g.id],S=E.invalidNodes.filter(x=>!f.has(x));for(const x of S)f.add(x),o.report({messageId:"noBeforeSuper",node:x,data:{kind:x.type==="Super"?"super":"this"}});E.superCalled&&d.skip()})},onCodePathSegmentStart(h){t.currentSegments.add(h),u()&&(l[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(p),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){t.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentLoop(h,s){u()&&t.codePath.traverseSegments({first:s,last:h},(f,g)=>{const d=l[f.id]??new n;d.superCalled?g.skip():f.prevSegments.length>0&&f.prevSegments.every(p)&&(d.superCalled=!0),l[f.id]=d})},ThisExpression(h){m()&&i(h)},Super(h){!a.isCallee(h)&&m()&&i(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&m()&&c()},"Program:exit"(){l=Object.create(null)}}}},ic}var oc,GE;function oD(){if(GE)return oc;GE=1;const a=Ue();return oc={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(n){a.couldBeError(n.argument)?n.argument.type==="Identifier"&&n.argument.name==="undefined"&&e.report({node:n,messageId:"undef"}):e.report({node:n,messageId:"object"})}}}},oc}var lc,zE;function lD(){if(zE)return lc;zE=1;const a=Ue();return lc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-trailing-spaces",url:"https://eslint.style/rules/no-trailing-spaces"}}]},type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){const n=e.sourceCode,o="[ - ]",t=`^${o}*$`,l=`${o}+$`,p=e.options[0]||{},u=p.skipBlankLines||!1,r=p.ignoreComments||!1;function m(c,h,s){e.report({node:c,loc:h,messageId:"trailingSpace",fix(f){return f.removeRange(s)}})}function i(c){const h=new Set;return c.forEach(s=>{const f=s.type==="Block"?s.loc.end.line-1:s.loc.end.line;for(let g=s.loc.start.line;g<=f;g++)h.add(g)}),h}return{Program:function(h){const s=new RegExp(l,"u"),f=new RegExp(t,"u"),g=n.lines,d=n.getText().match(a.createGlobalLinebreakMatcher()),E=n.getAllComments(),S=i(E);let x=0;for(let T=0,C=g.length;T<C;T++){const v=T+1,A=d&&d[T]?d[T].length:1,b=g[T].length+A,w=s.exec(g[T]);if(w){const k={start:{line:v,column:w.index},end:{line:v,column:b-A}},R=x+k.start.column,F=x+k.end.column,L=n.getNodeByRangeIndex(R);if(L&&L.type==="TemplateElement"&&R>L.parent.range[0]&&F<L.parent.range[1]){x+=b;continue}if(u&&f.test(g[T])){x+=b;continue}const P=[R,F];(!r||!S.has(v))&&m(h,k,P)}x+=b}}}}},lc}var uc,HE;function uD(){return HE||(HE=1,uc={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow `let` or `var` variables that are read but never assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unassigned-vars"},schema:[],messages:{unassigned:"'{{name}}' is always 'undefined' because it's never assigned."}},create(a){const e=a.sourceCode;let n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(o){const t=o.parent;if(o.init||o.id.type!=="Identifier"||t.kind==="const"||t.declare||n)return;const[p]=e.getDeclaredVariables(o);if(!p)return;let u=!1;for(const r of p.references){if(r.isWrite())return;r.isRead()&&(u=!0)}u&&a.report({node:o,messageId:"unassigned",data:{name:o.id.name}})}}}}),uc}var cc,KE;function cD(){if(KE)return cc;KE=1;function a(e){const n=e.parent;return n.type==="UnaryExpression"&&n.operator==="typeof"}return cc={meta:{type:"problem",defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean"}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(e){const[{typeof:n}]=e.options,o=e.sourceCode;return{"Program:exit"(t){o.getScope(t).through.forEach(p=>{const u=p.identifier;!n&&a(u)||e.report({node:u,messageId:"undef",data:u})})}}}},cc}var fc,XE;function fD(){if(XE)return fc;XE=1;const a=Ue(),e=new Set(["const","using","await using"]);return fc={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(n){const o=n.sourceCode;return{VariableDeclarator(t){const l=o.getText(t.id),p=t.init&&t.init.name,u=o.getScope(t),r=a.getVariableByName(u,"undefined"),m=r&&r.defs.length>0,i=o.getLastToken(t);p==="undefined"&&!e.has(t.parent.kind)&&!m&&n.report({node:t,messageId:"unnecessaryUndefinedInit",data:{name:l},fix(c){return t.parent.kind==="var"||t.id.type==="ArrayPattern"||t.id.type==="ObjectPattern"||o.commentsExistBetween(t.id,i)?null:c.removeRange([t.id.range[1],t.range[1]])}})}}}},fc}var pc,JE;function pD(){return JE||(JE=1,pc={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(a){const e=a.sourceCode;function n(t){a.report({node:t,messageId:"unexpectedUndefined"})}function o(t){const l=t.set.get("undefined");if(!l)return;const p=l.references,u=l.defs;p.filter(r=>!r.init).forEach(r=>n(r.identifier)),u.forEach(r=>n(r.name))}return{"Program:exit"(t){const p=[e.getScope(t)];for(;p.length;){const u=p.pop();p.push(...u.childScopes),o(u)}}}}}),pc}var mc,YE;function mD(){return YE||(YE=1,mc={meta:{type:"suggestion",defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean"},allowAfterSuper:{type:"boolean"},allowAfterThisConstructor:{type:"boolean"},enforceInMethodNames:{type:"boolean"},allowFunctionParams:{type:"boolean"},enforceInClassFields:{type:"boolean"},allowInArrayDestructuring:{type:"boolean"},allowInObjectDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(a){const[{allow:e,allowAfterSuper:n,allowAfterThis:o,allowAfterThisConstructor:t,allowFunctionParams:l,allowInArrayDestructuring:p,allowInObjectDestructuring:u,enforceInClassFields:r,enforceInMethodNames:m}]=a.options,i=a.sourceCode;function c(v){return e.includes(v)}function h(v){const A=v.length;return v!=="_"&&(v[0]==="_"||v[A-1]==="_")}function s(v){return v==="__proto__"}function f(v){return v==="_"}function g(v){return v.object.type==="MemberExpression"&&v.object.property.name==="constructor"&&v.object.object.type==="ThisExpression"}function d(v){l||v.params.forEach(A=>{const{type:b}=A;let w;if(b==="RestElement"?w=A.argument:b==="AssignmentPattern"?w=A.left:w=A,w.type==="Identifier"){const k=w.name;h(k)&&!c(k)&&a.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:k}})}})}function E(v){if(v.type==="FunctionDeclaration"&&v.id){const A=v.id.name;typeof A<"u"&&h(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:A}})}d(v)}function S(v){i.getDeclaredVariables(v).forEach(A=>{const w=A.defs.find(F=>F.node===v).name,k=w.name;let R=w.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(R.type);)R=R.parent;h(k)&&!f(k)&&!c(k)&&!(p&&R.type==="ArrayPattern")&&!(u&&R.type==="ObjectPattern")&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:k}})})}function x(v){const A=v.property.name,b=v.object.type==="ThisExpression",w=v.object.type==="Super",k=g(v);typeof A<"u"&&h(A)&&!(b&&o)&&!(w&&n)&&!(k&&t)&&!s(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:A}})}function T(v){const A=v.key.name,b=v.type==="MethodDefinition"||v.type==="Property"&&v.method;typeof A<"u"&&m&&b&&h(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:v.key.type==="PrivateIdentifier"?`#${A}`:A}})}function C(v){const A=v.key.name;typeof A<"u"&&h(A)&&r&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:v.key.type==="PrivateIdentifier"?`#${A}`:A}})}return{FunctionDeclaration:E,VariableDeclarator:S,MemberExpression:x,MethodDefinition:T,PropertyDefinition:C,Property:T,FunctionExpression:E,ArrowFunctionExpression:E}}}),mc}var hc,QE;function hD(){if(QE)return hc;QE=1;const a=Ue();return hc={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){const n=/^[gimsuy]+$/u,o=e.sourceCode;function t(l,p){const u=o.getTokenAfter(l,a.isNotClosingParenToken),r=o.getTokenBefore(u);u.loc.start.line!==r.loc.end.line&&e.report({node:l,loc:u.loc,messageId:p})}return{MemberExpression(l){!l.computed||l.optional||t(l.object,"property")},TaggedTemplateExpression(l){const{quasi:p}=l;o.getTokenBefore(p).loc.end.line!==p.loc.start.line&&e.report({node:l,loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(l){l.arguments.length===0||l.optional||t(l.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(l){const p=o.getTokenAfter(l,r=>r.value==="/"),u=o.getTokenAfter(p);u.type==="Identifier"&&n.test(u.value)&&p.range[1]===u.range[0]&&t(l.left,"division")}}}},hc}var dc,ZE;function dD(){if(ZE)return dc;ZE=1;const a=ra(),e=Ue(),n=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,o=/^(?:DoWhile|For|While)Statement$/u,t=/^(?:BinaryExpression|ConditionalExpression)$/u,l=/^(?:ArrowFunction|Class|Function)Expression$/u,p=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function u(f){if(f.init){const g=f.resolved&&f.resolved.defs[0];if(!g||g.type!=="Variable"||g.parent.kind!=="var")return!1}return f.isWrite()}function r(f){return!f.modified}function m(f){return!(f.modified||f.group)}function i(f,g){const d=f.range,E=g.identifier.range;return d[0]<=E[0]&&E[1]<=d[1]}const c={WhileStatement:i,DoWhileStatement:i,ForStatement(f,g){return i(f,g)&&!(f.init&&i(f.init,g))}};function h(f){let g=f.identifier;for(;g;){if(g.type==="FunctionDeclaration")return g.id?g:null;g=g.parent}return null}function s(f,g){for(let d=0;d<f.length;++d){const E=f[d];for(let S=0;!E.modified&&S<g.length;++S){const x=g[S];let T,C;const v=E.isInLoop(x)||!!((T=h(x))&&(C=e.getVariableByName(x.from.upper,T.id.name))&&C.references.some(E.isInLoop));E.modified=v}}}return dc={meta:{type:"problem",docs:{description:"Disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(f){const g=f.sourceCode;let d=null;function E(A){const b=A.reference.identifier;f.report({node:b,messageId:"loopConditionNotModified",data:b})}function S(A){for(let b=0;b<A.length;++b){const w=A[b];if(w.group){let k=d.get(w.group);k||(k=[],d.set(w.group,k)),k.push(w)}}}function x(A){A.every(r)&&A.forEach(E)}function T(A){let b=!1;return a.traverse(A,{visitorKeys:g.visitorKeys,enter(w){p.test(w.type)?(b=!0,this.break()):l.test(w.type)&&this.skip()}}),b}function C(A){if(A.init)return null;let b=null,w=A.identifier,k=w.parent;for(;k;){if(n.test(k.type)){if(o.test(k.type)&&k.test===w)return{reference:A,group:b,isInLoop:c[k.type].bind(null,k),modified:!1};break}if(t.test(k.type)){if(T(k))break;b=k}w=k,k=k.parent}return null}function v(A){const b=A.references.map(C).filter(Boolean);if(b.length===0)return;S(b);const w=A.references.filter(u);w.length>0&&s(b,w),b.filter(m).forEach(E)}return{"Program:exit"(A){const b=[g.getScope(A)];d=new Map;let w;for(;w=b.pop();)b.push(...w.childScopes),w.variables.forEach(v);d.forEach(x),d=null}}}},dc}var gc,eS;function gD(){if(eS)return gc;eS=1;const a=Ue(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),n={"==":"!=","!=":"==","===":"!==","!==":"==="},o=a.getPrecedence({type:"LogicalExpression",operator:"||"});return gc={meta:{type:"suggestion",defaultOptions:[{defaultAssignment:!0}],docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(t){const[{defaultAssignment:l}]=t.options,p=t.sourceCode;function u(c){return c.type==="Literal"&&typeof c.value=="boolean"}function r(c){if(c.type==="BinaryExpression"&&Object.hasOwn(n,c.operator)){const h=p.getFirstTokenBetween(c.left,c.right,f=>f.value===c.operator),s=p.getText();return s.slice(c.range[0],h.range[0])+n[c.operator]+s.slice(h.range[1],c.range[1])}return a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression"})?`!(${a.getParenthesisedText(p,c)})`:`!${a.getParenthesisedText(p,c)}`}function m(c){return c.type==="BinaryExpression"&&e.has(c.operator)||c.type==="UnaryExpression"&&c.operator==="!"}function i(c){return c.test.type==="Identifier"&&c.consequent.type==="Identifier"&&c.test.name===c.consequent.name}return{ConditionalExpression(c){u(c.alternate)&&u(c.consequent)?t.report({node:c,messageId:"unnecessaryConditionalExpression",fix(h){return c.consequent.value===c.alternate.value?c.test.type==="Identifier"?h.replaceText(c,c.consequent.value.toString()):null:c.alternate.value?h.replaceText(c,r(c.test)):h.replaceText(c,m(c.test)?a.getParenthesisedText(p,c.test):`!${r(c.test)}`)}}):!l&&i(c)&&t.report({node:c,messageId:"unnecessaryConditionalAssignment",fix(h){const f=(a.getPrecedence(c.alternate)<o||a.isCoalesceExpression(c.alternate))&&!a.isParenthesised(p,c.alternate)?`(${p.getText(c.alternate)})`:a.getParenthesisedText(p,c.alternate),g=a.getParenthesisedText(p,c.test);return h.replaceText(c,`${g} || ${f}`)}})}}}},gc}var yc,tS;function yD(){if(tS)return yc;tS=1;function a(o){return!!o.init}function e(o){for(const t of o)if(t.reachable)return!1;return!0}class n{constructor(t){this.sourceCode=t,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(t){return t.range[0]>=this.startNode.range[0]&&t.range[1]<=this.endNode.range[1]}isConsecutive(t){return this.contains(this.sourceCode.getTokenBefore(t))}merge(t){this.endNode=t}reset(t){this.startNode=this.endNode=t}}return yc={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(o){let t=null;const l=new n(o.sourceCode),p=[];let u=new Set;function r(m){let i=null;if(m&&(m.type==="PropertyDefinition"||e(u))){if(l.isEmpty){l.reset(m);return}if(l.contains(m))return;if(l.isConsecutive(m)){l.merge(m);return}i=m}l.isEmpty||o.report({messageId:"unreachableCode",loc:l.location,node:l.startNode}),l.reset(i)}return{onCodePathStart(){p.push(u),u=new Set},onCodePathEnd(){u=p.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},BlockStatement:r,BreakStatement:r,ClassDeclaration:r,ContinueStatement:r,DebuggerStatement:r,DoWhileStatement:r,ExpressionStatement:r,ForInStatement:r,ForOfStatement:r,ForStatement:r,IfStatement:r,ImportDeclaration:r,LabeledStatement:r,ReturnStatement:r,SwitchStatement:r,ThrowStatement:r,TryStatement:r,VariableDeclaration(m){(m.kind!=="var"||m.declarations.some(a))&&r(m)},WhileStatement:r,WithStatement:r,ExportNamedDeclaration:r,ExportDefaultDeclaration:r,ExportAllDeclaration:r,"Program:exit"(){r()},"MethodDefinition[kind='constructor']"(){t={upper:t,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(m){const{hasSuperCall:i}=t;if(t=t.upper,!m.value.body)return;const c=m.parent.parent;if(c.superClass&&!i)for(const h of c.body.body)h.type==="PropertyDefinition"&&!h.static&&r(h)},"CallExpression > Super.callee"(){t&&(t.hasSuperCall=!0)}}}},yc}var vc,rS;function vD(){if(rS)return vc;rS=1;const a=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(t){for(const l of t)if(l.reachable)return!0;return!1}function n(t){const l=t.parent;if(l)switch(l.type){case"WhileStatement":return t===l.test;case"DoWhileStatement":return t===l.body;case"ForStatement":return t===(l.update||l.test||l.body);case"ForInStatement":case"ForOfStatement":return t===l.left}return!1}function o(t,l){return t.filter(p=>!l.includes(p))}return vc={meta:{type:"problem",defaultOptions:[{ignore:[]}],docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:a},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){const[{ignore:l}]=t.options,p=o(a,l),u=p.join(","),r=new Map,m=new Set,i=[];let c=new Set;return{onCodePathStart(){i.push(c),c=new Set},onCodePathEnd(){c=i.pop()},onUnreachableCodePathSegmentStart(h){c.add(h)},onUnreachableCodePathSegmentEnd(h){c.delete(h)},onCodePathSegmentEnd(h){c.delete(h)},onCodePathSegmentStart(h,s){if(c.add(h),n(s)){const f=s.parent;r.set(h,f)}},onCodePathSegmentLoop(h,s,f){const g=r.get(s);(f===g||f.type==="ContinueStatement")&&m.delete(g)},[u](h){e(c)&&m.add(h)},"Program:exit"(){m.forEach(h=>t.report({node:h,messageId:"invalid"}))}}}},vc}var Ec,nS;function ED(){if(nS)return Ec;nS=1;const a=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return Ec={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(o){function t(u){return u.parent.type==="TryStatement"&&u.parent.finalizer===u}function l(u,r){let m=!1,i;u.type==="BreakStatement"&&!u.label?i=e:u.type==="ContinueStatement"?i=n:i=a;for(let c=u;c&&!i.test(c.type);c=c.parent)if(c.parent.label&&r&&c.parent.label.name===r.name&&(m=!0),t(c))return!(r&&m);return!1}function p(u){l(u,u.label)&&o.report({messageId:"unsafeUsage",data:{nodeType:u.type},node:u,line:u.loc.line,column:u.loc.column})}return{ReturnStatement:p,ThrowStatement:p,BreakStatement:p,ContinueStatement:p}}},Ec}var Sc,sS;function SD(){if(sS)return Sc;sS=1;const a=Ue();function e(t){return t==="in"||t==="instanceof"}function n(t){return t==="<"||t===">"||t===">="||t==="<="}function o(t){return t.type==="UnaryExpression"&&t.operator==="!"}return Sc={meta:{type:"problem",defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(t){const l=t.sourceCode,[{enforceForOrderingRelations:p}]=t.options;return{BinaryExpression(u){const r=u.operator,m=p&&n(r);(e(r)||m)&&o(u.left)&&!a.isParenthesised(l,u.left)&&t.report({node:u,loc:u.left.loc,messageId:"unexpected",data:{operator:r},suggest:[{messageId:"suggestNegatedExpression",data:{operator:r},fix(i){const h=[l.getFirstToken(u.left).range[1],u.range[1]],s=l.text.slice(h[0],h[1]);return i.replaceTextRange(h,`(${s})`)}},{messageId:"suggestParenthesisedNegation",fix(i){return i.replaceText(u.left,`(${l.getText(u.left)})`)}}]})}}}},Sc}var bc,aS;function bD(){if(aS)return bc;aS=1;const a=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),n=new Set(["in","instanceof"]);function o(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}return bc={meta:{type:"problem",defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(t){const[{disallowArithmeticOperators:l}]=t.options;function p(c){t.report({messageId:"unsafeOptionalChain",node:c})}function u(c){t.report({messageId:"unsafeArithmetic",node:c})}function r(c,h){if(c)switch(c.type){case"LogicalExpression":c.operator==="||"||c.operator==="??"?r(c.right,h):c.operator==="&&"&&(r(c.left,h),r(c.right,h));break;case"SequenceExpression":r(c.expressions.at(-1),h);break;case"ConditionalExpression":r(c.consequent,h),r(c.alternate,h);break;case"AwaitExpression":r(c.argument,h);break;case"ChainExpression":h(c);break}}function m(c){r(c,p)}function i(c){r(c,u)}return{"AssignmentExpression, AssignmentPattern"(c){o(c.left)&&m(c.right)},"ClassDeclaration, ClassExpression"(c){m(c.superClass)},CallExpression(c){c.optional||m(c.callee)},NewExpression(c){m(c.callee)},VariableDeclarator(c){o(c.id)&&m(c.init)},MemberExpression(c){c.optional||m(c.object)},TaggedTemplateExpression(c){m(c.tag)},ForOfStatement(c){m(c.right)},SpreadElement(c){c.parent&&c.parent.type!=="ObjectExpression"&&m(c.argument)},BinaryExpression(c){n.has(c.operator)&&m(c.right),l&&a.has(c.operator)&&(i(c.right),i(c.left))},WithStatement(c){m(c.object)},UnaryExpression(c){l&&a.has(c.operator)&&i(c.argument)},AssignmentExpression(c){l&&e.has(c.operator)&&i(c.right)}}}},bc}var xc,iS;function xD(){if(iS)return xc;iS=1;const a=Ue();function e(){return!0}function n(){return!1}return xc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean"},allowTernary:{type:"boolean"},allowTaggedTemplates:{type:"boolean"},enforceForJSX:{type:"boolean"},ignoreDirectives:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(o){const[{allowShortCircuit:t,allowTernary:l,allowTaggedTemplates:p,enforceForJSX:u,ignoreDirectives:r}]=o.options;function m(f){return f.type==="ExpressionStatement"&&f.expression.type==="Literal"&&typeof f.expression.value=="string"}function i(f,g){for(let d=0;d<g.length;++d)if(!f(g[d]))return g.slice(0,d);return g.slice()}function c(f){return i(m,f.body)}function h(f){return a.isTopLevelExpressionStatement(f)&&c(f.parent).includes(f)}const s=Object.assign(Object.create(null),{isDisallowed(f){return(s[f.type]||n)(f)},ArrayExpression:e,ArrowFunctionExpression:e,BinaryExpression:e,ChainExpression(f){return s.isDisallowed(f.expression)},ClassExpression:e,ConditionalExpression(f){return l?s.isDisallowed(f.consequent)||s.isDisallowed(f.alternate):!0},FunctionExpression:e,Identifier:e,JSXElement(){return u},JSXFragment(){return u},Literal:e,LogicalExpression(f){return t?s.isDisallowed(f.right):!0},MemberExpression:e,MetaProperty:e,ObjectExpression:e,SequenceExpression:e,TaggedTemplateExpression(){return!p},TemplateLiteral:e,ThisExpression:e,UnaryExpression(f){return f.operator!=="void"&&f.operator!=="delete"},TSAsExpression(f){return s.isDisallowed(f.expression)},TSTypeAssertion(f){return s.isDisallowed(f.expression)},TSNonNullExpression(f){return s.isDisallowed(f.expression)},TSInstantiationExpression(f){return s.isDisallowed(f.expression)}});return{ExpressionStatement(f){s.isDisallowed(f.expression)&&!a.isDirective(f)&&!(r&&h(f))&&o.report({node:f,messageId:"unusedExpression"})}}}},xc}var Cc,oS;function CD(){if(oS)return Cc;oS=1;const a=Ue();return Cc={meta:{type:"suggestion",docs:{description:"Disallow unused labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(e){const n=e.sourceCode;let o=null;function t(r){o={label:r.label.name,used:!1,upper:o}}function l(r){if(n.getTokenAfter(r.label,{includeComments:!0})!==n.getTokenBefore(r.body,{includeComments:!0}))return!1;let m=r.parent;for(;m.type==="LabeledStatement";)m=m.parent;if(m.type==="Program"||m.type==="BlockStatement"&&a.isFunction(m.parent)){const{body:i}=r;if(i.type==="ExpressionStatement"&&(i.expression.type==="Literal"&&typeof i.expression.value=="string"||a.isStaticTemplateLiteral(i.expression)))return!1}return!0}function p(r){o.used||e.report({node:r.label,messageId:"unused",data:r.label,fix:l(r)?m=>m.removeRange([r.range[0],r.body.range[0]]):null}),o=o.upper}function u(r){if(!r.label)return;const m=r.label.name;let i=o;for(;i;){if(i.label===m){i.used=!0;break}i=i.upper}}return{LabeledStatement:t,"LabeledStatement:exit":p,BreakStatement:u,ContinueStatement:u}}},Cc}var wc,lS;function wD(){return lS||(lS=1,wc={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(a){const e=[];function n(o){const t=o.parent.parent,l=t.type==="AssignmentExpression";return!l&&t.type!=="ForInStatement"&&t.type!=="ForOfStatement"&&t.type!=="AssignmentPattern"||t.left!==o.parent?!1:l&&t.operator!=="="?t.parent.type==="ExpressionStatement":!0}return{ClassBody(o){const t=new Map;e.unshift(t);for(const l of o.body)(l.type==="PropertyDefinition"||l.type==="MethodDefinition")&&l.key.type==="PrivateIdentifier"&&t.set(l.key.name,{declaredNode:l,isAccessor:l.type==="MethodDefinition"&&(l.kind==="set"||l.kind==="get")})},PrivateIdentifier(o){const t=e.find(r=>r.has(o.name));if(!t)return;const l=t.get(o.name);if(l.isUsed||o.parent.type==="PropertyDefinition"||o.parent.type==="MethodDefinition")return;if(l.isAccessor){l.isUsed=!0;return}if(n(o))return;const p=o.parent.parent.type,u=o.parent.parent.parent.type;p==="UpdateExpression"&&u==="ExpressionStatement"||p==="Property"&&u==="ObjectPattern"&&o.parent.parent.value===o.parent||p!=="RestElement"&&p!=="ArrayPattern"&&(l.isUsed=!0)},"ClassBody:exit"(){const o=e.shift();for(const[t,{declaredNode:l,isUsed:p}]of o.entries())p||a.report({node:l,loc:l.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${t}`}})}}}}),wc}var Ac,uS;function AD(){if(uS)return Ac;uS=1;const a=Ue();return Ac={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},hasSuggestions:!0,schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},ignoreUsingDeclarations:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}.",removeVar:"Remove unused variable '{{varName}}'."}},create(e){const n=e.sourceCode,o=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,t={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1},l=e.options[0];l&&(typeof l=="string"?t.vars=l:(t.vars=l.vars||t.vars,t.args=l.args||t.args,t.ignoreRestSiblings=l.ignoreRestSiblings||t.ignoreRestSiblings,t.caughtErrors=l.caughtErrors||t.caughtErrors,t.ignoreClassWithStaticInitBlock=l.ignoreClassWithStaticInitBlock||t.ignoreClassWithStaticInitBlock,t.ignoreUsingDeclarations=l.ignoreUsingDeclarations||t.ignoreUsingDeclarations,t.reportUsedIgnorePattern=l.reportUsedIgnorePattern||t.reportUsedIgnorePattern,l.varsIgnorePattern&&(t.varsIgnorePattern=new RegExp(l.varsIgnorePattern,"u")),l.argsIgnorePattern&&(t.argsIgnorePattern=new RegExp(l.argsIgnorePattern,"u")),l.caughtErrorsIgnorePattern&&(t.caughtErrorsIgnorePattern=new RegExp(l.caughtErrorsIgnorePattern,"u")),l.destructuredArrayIgnorePattern&&(t.destructuredArrayIgnorePattern=new RegExp(l.destructuredArrayIgnorePattern,"u"))));function p(P){if(t.destructuredArrayIgnorePattern&&P.name.parent.type==="ArrayPattern")return"array-destructure";switch(P.type){case"CatchClause":return"catch-clause";case"Parameter":return"parameter";default:return"variable"}}function u(P){let O,q;switch(P){case"array-destructure":O=t.destructuredArrayIgnorePattern,q="elements of array destructuring";break;case"catch-clause":O=t.caughtErrorsIgnorePattern,q="caught errors";break;case"parameter":O=t.argsIgnorePattern,q="args";break;case"variable":O=t.varsIgnorePattern,q="vars";break;default:throw new Error(`Unexpected variable type: ${P}`)}return O&&(O=O.toString()),[q,O]}function r(P){const O=P.defs&&P.defs[0];let q="";if(O){const[N,_]=u(p(O));_&&N&&(q=`. Allowed unused ${N} must match ${_}`)}return{varName:P.name,action:"defined",additional:q}}function m(P){const O=P.defs&&P.defs[0];let q="";if(O){const[N,_]=u(p(O));_&&N&&(q=`. Allowed unused ${N} must match ${_}`)}return{varName:P.name,action:"assigned a value",additional:q}}function i(P,O){const[q,N]=u(O);let _="";return N&&q&&(_=`. Used ${q} must not match ${N}`),{varName:P.name,additional:_}}const c=/(?:Statement|Declaration)$/u;function h(P){const O=P.defs[0];if(O){let q=O.node;if(q.type==="VariableDeclarator")q=q.parent;else if(O.type==="Parameter")return!1;return q.parent.type.indexOf("Export")===0}return!1}function s(P){const[O]=P.defs;return O?.type==="Variable"&&(O.parent.kind==="using"||O.parent.kind==="await using")}function f(P){return P.type==="Property"&&P.parent.type==="ObjectPattern"&&o.test(P.parent.properties.at(-1).type)}function g(P){if(t.ignoreRestSiblings){const O=P.defs.some(N=>f(N.name.parent)),q=P.references.some(N=>f(N.identifier.parent));return O||q}return!1}function d(P){return P.isRead()}function E(P,O){let q=P.from;for(;q;){if(O.includes(q.block))return!0;q=q.upper}return!1}function S(P){const O=[];return P.defs.forEach(q=>{const{type:N,node:_}=q;N==="FunctionName"&&O.push(_),N==="Variable"&&_.init&&(_.init.type==="FunctionExpression"||_.init.type==="ArrowFunctionExpression")&&O.push(_.init)}),O}function x(P,O){return P.range[0]>=O.range[0]&&P.range[1]<=O.range[1]}function T(P){const O=P.parent;return O.type==="ExpressionStatement"?!0:O.type==="SequenceExpression"?O.expressions.at(-1)===P?T(O):!0:!1}function C(P,O){const q=P.identifier,N=q.parent,_=P.from.variableScope,G=P.resolved.scope.variableScope,B=_!==G||a.isInLoop(q);return O&&x(q,O)?O:N.type==="AssignmentExpression"&&T(N)&&q===N.left&&!B?N.right:null}function v(P,O){let q=P,N=P.parent;for(;N&&x(N,O);){switch(N.type){case"SequenceExpression":if(N.expressions.at(-1)!==q)return!1;break;case"CallExpression":case"NewExpression":return N.callee!==q;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(N.type))return!0}q=N,N=N.parent}return!1}function A(P,O){const q=a.getUpperFunction(P);return q&&x(q,O)&&v(q,O)}function b(P,O){const q=P.identifier,N=q.parent;return P.isRead()&&(N.type==="AssignmentExpression"&&N.left===q&&T(N)&&!a.isLogicalAssignmentOperator(N.operator)||N.type==="UpdateExpression"&&T(N)||O&&x(q,O)&&!A(q,O))}function w(P){let O=P.identifier.parent;return O.type==="VariableDeclarator"&&(O=O.parent.parent),O.type!=="ForInStatement"&&O.type!=="ForOfStatement"||(O.body.type==="BlockStatement"?O=O.body.body[0]:O=O.body,!O)?!1:O.type==="ReturnStatement"}function k(P){if(P.eslintUsed)return!0;const O=S(P),q=O.length>0;let N=null;return P.references.some(_=>{if(w(_))return!0;const G=b(_,N);return N=C(_,N),d(_)&&!G&&!(q&&E(_,O))})}function R(P){const O=P.defs[0],q=n.getDeclaredVariables(O.node);return!q.slice(q.indexOf(P)+1).some(_=>_.references.length>0||_.eslintUsed)}function F(P,O){const q=P.variables,N=P.childScopes;let _,G;if(P.type!=="global"||t.vars==="all")for(_=0,G=q.length;_<G;++_){const B=q[_];if(P.type==="class"&&P.block.id===B.identifiers[0]||P.functionExpressionScope||!t.reportUsedIgnorePattern&&B.eslintUsed||P.type==="function"&&B.name==="arguments"&&B.identifiers.length===0)continue;const z=B.defs[0];if(z){const H=z.type,ce=B.references.some(re=>re.identifier.parent.type==="ArrayPattern");if((z.name.parent.type==="ArrayPattern"||ce)&&t.destructuredArrayIgnorePattern&&t.destructuredArrayIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"array-destructure")});continue}if(H==="ClassName"){const re=z.node.body.body.some(Fe=>Fe.type==="StaticBlock");if(t.ignoreClassWithStaticInitBlock&&re)continue}if(H==="CatchClause"){if(t.caughtErrors==="none")continue;if(t.caughtErrorsIgnorePattern&&t.caughtErrorsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"catch-clause")});continue}}else if(H==="Parameter"){if((z.node.parent.type==="Property"||z.node.parent.type==="MethodDefinition")&&z.node.parent.kind==="set"||t.args==="none")continue;if(t.argsIgnorePattern&&t.argsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"parameter")});continue}if(t.args==="after-used"&&a.isFunction(z.name.parent)&&!R(B))continue}else if(t.varsIgnorePattern&&t.varsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"variable")});continue}}!k(B)&&!h(B)&&!(t.ignoreUsingDeclarations&&s(B))&&!g(B)&&O.push(B)}for(_=0,G=N.length;_<G;++_)F(N[_],O);return O}function L(P,O){const q=O.identifiers[0],N=q.parent,_=N.type,G=n.getTokenBefore(q),B=n.getTokenAfter(q),z=a.isFunction,H=a.isLoop,ce=O.references.filter(Q=>Q.isWrite());function re(Q,ke){return n.getTokenBefore(Q,ke).range[0]}function Fe(Q,ke){return n.getTokenAfter(Q,ke).range[1]}function X(Q){return n.getTokenBefore(Q).value}function I(Q){return n.getTokenAfter(Q).value}function W(Q){return Q.elements.filter(ke=>ke!==null).length===1}function oe(Q,ke){return Q.specifiers.some($=>$.type===ke)}function ie(Q,ke){return Q.type==="String"||ke&&!a.isSemicolonToken(ke)&&!a.isOpeningBraceToken(ke)}function se(Q){const ke=Q.parent;return z(ke)?ke.params.length===1?P.removeRange(Q.range):X(Q)==="("&&I(Q)===","?P.removeRange([Q.range[0],Fe(Q)]):P.removeRange([re(Q),Q.range[1]]):null}function de(Q){const ke=Q.parent;if(ke.type==="VariableDeclarator"){if(H(ke.parent.parent))return null;if(ke.parent.declarations.length===1){const $=n.getTokenAfter(ke.parent),ae=n.getTokenBefore(ke.parent);return $&&ie($,ae)?null:P.removeRange(ke.parent.range)}return X(ke)===","?P.removeRange([re(ke),ke.range[1]]):P.removeRange([ke.range[0],Fe(ke)])}return X(Q)===":"&&ke.parent.type==="ObjectPattern"?Te(Q):se(Q)}function be(Q){const ke=Q.parent;return ke.parent.parent.parent.type==="ObjectPattern"&&ke.parent.properties.length===1?be(ke.parent):ke.parent.type==="ObjectPattern"?ke.parent.properties.length===1?de(ke.parent):X(ke)==="{"?P.removeRange([ke.range[0],Fe(ke)]):P.removeRange([re(ke),ke.range[1]]):null}function xe(Q){const ke=Q.parent;return ke.parent.type==="ArrayPattern"&&W(ke)?xe(ke):W(ke)?X(ke)===":"?de(ke):ke.parent.type==="RestElement"?J(ke.parent):de(ke):X(Q)===","&&I(Q)==="]"?P.removeRange([re(Q),Q.range[1]]):P.removeRange(Q.range)}function Te(Q){const ke=Q.parent.parent;return ke.parent.type==="ArrayPattern"&&ke.properties.length===1?xe(ke):be(Q)}function J(Q){const ke=Q.parent;return z(ke)?ke.params.length===1?P.removeRange(Q.range):P.removeRange([re(Q),Q.range[1]]):ke.type==="ArrayPattern"?W(ke)?ke.parent.type==="ArrayPattern"?xe(ke):de(ke):P.removeRange([re(Q),Q.range[1]]):null}if(ce.some(Q=>Q.identifier.range[0]!==q.range[0]))return null;if(_==="VariableDeclarator"){if(N.parent.declarations.length===1){if(H(N.parent.parent)&&N.parent.parent.body!==N.parent)return null;if(N.parent.parent.type==="IfStatement"||H(N.parent.parent)||N.parent.parent.type==="WithStatement"&&N.parent.parent.body===N.parent)return P.replaceText(N.parent,";");const Q=n.getTokenAfter(N.parent),ke=n.getTokenBefore(N.parent);return Q&&ie(Q,ke)?null:P.removeRange(N.parent.range)}return G.value===","?P.removeRange([G.range[0],N.range[1]]):P.removeRange([N.range[0],Fe(N)])}if(N.parent.type==="ObjectPattern"){if(N.parent.properties.length===1)return N.parent.parent.type==="RestElement"?J(N.parent.parent):N.parent.parent.type==="ArrayPattern"?xe(N.parent):de(N.parent);if(G.value===":")return X(N)==="{"&&I(N)===","?P.removeRange([N.range[0],Fe(N)]):P.removeRange([re(N),q.range[1]])}if(_==="ArrayPattern"){if(W(N))return N.parent.type==="RestElement"?J(N.parent):N.parent.type==="ArrayPattern"?xe(N):de(N);if(G.value===","&&B.value===",")return P.removeRange(q.range)}if(_==="RestElement"){if(N.parent.type==="ArrayPattern")return W(N.parent)?N.parent.parent.type==="ArrayPattern"?xe(N.parent):de(N.parent):P.removeRange([re(q,1),q.range[1]]);if(N.parent.type==="ObjectPattern")return N.parent.properties.length===1?de(N.parent):P.removeRange([re(q,1),q.range[1]]);if(z(N.parent))return N.parent.params.length===1?P.removeRange(N.range):P.removeRange([re(N),N.range[1]])}if(_==="AssignmentPattern"){if(N.parent.type==="ArrayPattern")return xe(N);if(N.parent.parent.type==="ObjectPattern")return N.parent.parent.properties.length===1?N.parent.parent.parent.type==="ArrayPattern"?xe(N.parent.parent):de(N.parent.parent):X(N.parent)==="{"&&I(N.parent)===","?P.removeRange([N.parent.range[0],Fe(N.parent)]):P.removeRange([re(N.parent),N.parent.range[1]]);if(z(N.parent))return se(N)}if(_==="FunctionDeclaration"&&N.id===q)return P.removeRange(N.range);if(_==="ImportDefaultSpecifier")return!oe(N.parent,"ImportSpecifier")&&!oe(N.parent,"ImportNamespaceSpecifier")?P.removeRange([N.range[0],N.parent.source.range[0]]):P.removeRange([q.range[0],B.range[1]]);if(_==="ImportSpecifier")return N.parent.specifiers.filter(Q=>Q.type==="ImportSpecifier").length===1?oe(N.parent,"ImportDefaultSpecifier")?P.removeRange([re(N,1),B.range[1]]):P.removeRange(N.parent.range):X(N)==="{"?P.removeRange([N.range[0],Fe(N)]):P.removeRange([re(N),N.range[1]]);if(_==="ImportNamespaceSpecifier")return oe(N.parent,"ImportDefaultSpecifier")?P.removeRange([re(N),N.range[1]]):P.removeRange([N.range[0],N.parent.source.range[0]]);if(_==="CatchClause")return null;if(_==="ClassDeclaration")return P.removeRange(N.range);if(G?.value===",")return P.removeRange([G.range[0],q.range[1]]);if(B.value===","){if(G.value==="(")return P.removeRange([q.range[0],B.range[1]]);if(G.value==="{")return P.removeRange([q.range[0],B.range[1]])}return _==="ArrowFunctionExpression"&&N.params.length===1&&B?.value!==")"?P.replaceText(q,"()"):P.removeRange(q.range)}return{"Program:exit"(P){const O=F(n.getScope(P),[]);for(let q=0,N=O.length;q<N;++q){const _=O[q];if(_.defs.length>0){const G=_.references.filter(z=>z.isWrite()&&z.from.variableScope===_.scope.variableScope);let B;G.length>0&&(B=G.at(-1)),e.report({node:B?B.identifier:_.identifiers[0],messageId:"unusedVar",data:_.references.some(z=>z.isWrite())?m(_):r(_),suggest:[{messageId:"removeVar",data:{varName:_.name},fix(z){return L(z,_)}}]})}else if(_.eslintExplicitGlobalComments){const G=_.eslintExplicitGlobalComments[0];e.report({node:P,loc:a.getNameLocationInGlobalDirectiveComment(n,G,_.name),messageId:"unusedVar",data:r(_)})}}}}}},Ac}var Tc,cS;function TD(){if(cS)return Tc;cS=1;const a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function n(i){return typeof i=="object"&&i!==null?i:{functions:typeof i=="string"?i!=="nofunc":!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function o(i,c){return i&&i.range[0]<=c&&c<=i.range[1]}function t(i,c){return i.body.some(h=>h.type==="StaticBlock"&&o(h,c)||h.type==="PropertyDefinition"&&h.static&&h.value&&o(h.value,c))}function l(i){return i.type==="class-static-block"?!0:i.type==="class-field-initializer"?i.block.parent.static:!1}function p(i){const c=i.resolved;let h=i.from;for(;c.scope.variableScope!==h.variableScope;)if(l(h.variableScope))h=h.variableScope.upper;else return!0;return!1}function u(i){if(p(i))return!1;const c=i.identifier.range[1],h=i.resolved.defs[0];if(h.type==="ClassName"){const f=h.node;return o(f,c)&&!t(f.body,c)}let s=h.name.parent;for(;s;){if(s.type==="VariableDeclarator"){if(o(s.init,c)||e.test(s.parent.parent.type)&&o(s.parent.parent.right,c))return!0;break}else if(s.type==="AssignmentPattern"){if(o(s.right,c))return!0}else if(a.test(s.type))break;s=s.parent}return!1}function r(i){switch(i.type){case"TSTypeQuery":return!0;case"TSQualifiedName":case"Identifier":return r(i.parent);default:return!1}}function m(i,c){if(i.defs[0].type!=="ClassName"||!i.defs[0].node.decorators||i.defs[0].node.decorators.length===0)return!1;for(const h of i.defs[0].node.decorators)if(c.identifier.range[0]>=h.range[0]&&c.identifier.range[1]<=h.range[1])return!0;return!1}return Tc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"},enums:{type:"boolean"},typedefs:{type:"boolean"},ignoreTypeReferences:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(i){const c=n(i.options[0]),h=i.sourceCode;function s(g){if(g.init)return!1;const{identifier:d}=g;if(c.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;const E=g.resolved;if(!E||E.defs.length===0)return!1;const S=E.defs[0].type;if(!c.functions&&S==="FunctionName"||(!c.variables&&S==="Variable"||!c.classes&&S==="ClassName")&&p(g)||!c.enums&&S==="TSEnumName"||!c.typedefs&&S==="Type"||c.ignoreTypeReferences&&(r(d)||d.parent.type==="TSTypeReference"))return!1;if(d.parent.type==="TSQualifiedName"){let x=d.parent;for(;x.type==="TSQualifiedName";)x=x.left;return x===d}return!m(E,g)}function f(g){g.references.filter(s).forEach(d=>{const S=d.resolved.defs[0].name;(d.identifier.range[1]<S.range[1]||u(d)&&d.identifier.parent.type!=="TSTypeReference")&&i.report({node:d.identifier,messageId:"usedBeforeDefined",data:d.identifier})}),g.childScopes.forEach(f)}return{Program(g){f(h.getScope(g))}}}},Tc}var kc,fS;function kD(){if(fS)return kc;fS=1;const{findVariable:a}=qt();function*e(t){switch(t.type){case"Identifier":yield t;return;case"ObjectPattern":for(const l of t.properties)yield*e(l.type==="Property"?l.value:l);return;case"ArrayPattern":for(const l of t.elements)l&&(yield*e(l));return;case"RestElement":yield*e(t.argument);return;case"AssignmentPattern":yield*e(t.left)}}function n(t,l){return!(l.range[0]<t.identifier.range[1]||t.expression&&t.expression.range[0]<=l.range[0]&&l.range[1]<=t.expression.range[1])}function o(t,l){return t.expression?t.identifier.range[1]<=l.range[0]&&l.range[1]<=t.expression.range[0]:!1}return kc={meta:{type:"problem",docs:{description:"Disallow variable assignments when the value is not used",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-assignment"},schema:[],messages:{unnecessaryAssignment:"This assigned value is not used in subsequent statements."}},create(t){const l=t.sourceCode;let p=null;const u=new Set;function r(i){let c=i;for(;c;){if(u.has(c))return c;c=c.upper}return null}function m(i){function c(s,f){const g=i.segments[s.id];return g.first&&g.last&&g.first.range[0]<=f.range[0]&&f.range[1]<=g.last.range[1]}function h(s,f){if(i.tryStatementBlocks.some(T=>T.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.range[1]))return;const d={results:[],subsequentSegments:new Set,queueSegments:s.segments.flatMap(T=>T.nextSegments)};function*E(){for(yield*d.results;d.queueSegments.length>0;){const T=d.queueSegments.shift();if(d.subsequentSegments.has(T))continue;d.subsequentSegments.add(T);const C=f.find(A=>A.segments.includes(T)&&!o(A,s.identifier));C||d.queueSegments.push(...T.nextSegments);const v={segment:T,assignment:C};d.results.push(v),yield v}}if(s.variable.references.some(T=>T.identifier.type!=="Identifier"))return;const S=s.variable.references.filter(T=>T.isRead());if(!S.length)return;const x=f.find(T=>T===s||T.segments.length&&T.segments.every(C=>!s.segments.includes(C))?!1:!!(n(s,T.identifier)||T.expression&&T.expression.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.expression.range[1]));for(const T of S){if(i.scope!==r(T.from))return;if(n(s,T.identifier)&&(o(s,T.identifier)||s.segments.some(C=>c(C,T.identifier)))){if(x&&n(x,T.identifier))continue;return}if(!x){for(const C of E())if(c(C.segment,T.identifier)){if(C.assignment&&n(C.assignment,T.identifier))continue;return}}}t.report({node:s.identifier,messageId:"unnecessaryAssignment"})}for(const s of i.assignments.values()){s.sort((f,g)=>f.identifier.range[0]-g.identifier.range[0]);for(const f of s)h(f,s)}}return{onCodePathStart(i,c){const h=l.getScope(c);p={upper:p,codePath:i,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},u.add(p.scope)},onCodePathEnd(){m(p),p=p.upper},onCodePathSegmentStart(i){const c={segment:i,first:null,last:null};p.segments[i.id]=c,p.currentSegments.add(i)},onCodePathSegmentEnd(i){p.currentSegments.delete(i)},TryStatement(i){p.tryStatementBlocks.push(i.block)},Identifier(i){for(const c of p.currentSegments){const h=p.segments[c.id];h.first||(h.first=i),h.last=i}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(i){if(p.currentSegments.size===0)return;const c=p.assignments;let h,s=null;i.type==="VariableDeclarator"?(h=i.id,s=i.init):i.type==="AssignmentExpression"?(h=i.left,s=i.right):h=i.argument;for(const f of e(h)){const g=l.getScope(f),d=a(g,f);if(!d||d.scope.type==="global"&&d.defs.length===0||p.scope!==r(d.scope)||d.eslintUsed||d.scope.type==="module"&&(d.defs.some(S=>S.type==="Variable"&&S.parent.parent.type==="ExportNamedDeclaration"||S.type==="FunctionName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration")||S.type==="ClassName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration"))||d.references.some(S=>S.identifier.parent.type==="ExportSpecifier")))continue;let E=c.get(d);E||(E=[],c.set(d,E)),E.push({variable:d,identifier:f,node:i,expression:s,segments:[...p.currentSegments]})}}}}},kc}var Dc,pS;function DD(){if(pS)return Dc;pS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),{RegExpParser:t,visitRegExpAST:l}=ur(),p=new t;function u(i){const c=[];let h=i;do c.push(h),h=h.parent;while(h);return c}function r(i){return i.type==="Assertion"&&(i.kind==="lookahead"||i.kind==="lookbehind")}function m(i){return r(i)&&i.negate}return Dc={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround."}},create(i){const c=i.sourceCode;function h(s,f,g){let d;try{d=p.parsePattern(f,0,f.length,{unicode:g.includes("u"),unicodeSets:g.includes("v")})}catch{return}l(d,{onBackreferenceEnter(E){const S=[E.resolved].flat(),x=u(E),T=S.map(R=>{const F=u(R);if(x.includes(R))return{messageId:"nested",group:R};let L=x.length-1,P=F.length-1;do L--,P--;while(x[L]===F[P]);const O=P+1,q=F.slice(0,O),N=F.slice(O),_=N.find(r),G=_&&_.kind==="lookbehind";return q.at(-1).type==="Alternative"?{messageId:"disjunctive",group:R}:!G&&E.end<=R.start?{messageId:"forward",group:R}:G&&R.end<=E.start?{messageId:"backward",group:R}:q.some(m)?{messageId:"intoNegativeLookaround",group:R}:null});if(T.length===0||T.some(R=>!R))return;let C;const v=T.filter(R=>R.messageId!=="disjunctive");v.length?C=v:C=T;const[{messageId:A,group:b},...w]=C;let k="";w.length===1?k=" and another group":w.length>1&&(k=` and other ${w.length} groups`),i.report({node:s,messageId:A,data:{bref:E.raw,group:b.raw,otherGroups:k}})}})}return{"Literal[regex]"(s){const{pattern:f,flags:g}=s.regex;h(s,f,g)},Program(s){const f=c.getScope(s),g=new n(f),d={RegExp:{[a]:!0,[e]:!0}};for(const{node:E}of g.iterateGlobalReferences(d)){const[S,x]=E.arguments,T=o(S,f),C=o(x,f);typeof T=="string"&&h(E,T,C||"")}}}}},Dc}var Ic,mS;function ID(){if(mS)return Ic;mS=1;const a=Ue();function e(o){const t=a.skipChainExpression(o.callee);return t.type==="MemberExpression"&&t.property.type==="Identifier"&&t.computed===!1&&(t.property.name==="call"&&o.arguments.length>=1||t.property.name==="apply"&&o.arguments.length===2&&o.arguments[1].type==="ArrayExpression")}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return Ic={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const p=a.skipChainExpression(l.callee),u=a.skipChainExpression(p.object),r=u.type==="MemberExpression"?u.object:null,m=l.arguments[0];n(r,m,t)&&o.report({node:l,messageId:"unnecessaryCall",data:{name:p.property.name}})}}}},Ic}var Pc,hS;function PD(){return hS||(hS=1,Pc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(a){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?a.report({node:e,messageId:"unnecessaryCatchClause"}):a.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),Pc}var Fc,dS;function FD(){if(dS)return Fc;dS=1;const a=Ue();function e(n){if(!n.computed)return!1;const{key:o}=n;if(o.type!=="Literal")return!1;const{value:t}=o;if(typeof t!="number"&&typeof t!="string")return!1;switch(n.type){case"Property":return n.parent.type==="ObjectExpression"?t!=="__proto__":!0;case"PropertyDefinition":return n.static?t!=="constructor"&&t!=="prototype":t!=="constructor";case"MethodDefinition":return n.static?t!=="prototype":t!=="constructor";default:throw new Error(`Unexpected node type: ${n.type}`)}}return Fc={meta:{type:"suggestion",defaultOptions:[{enforceForClassMembers:!0}],docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(n){const o=n.sourceCode,[{enforceForClassMembers:t}]=n.options;function l(u){if(e(u)){const{key:r}=u;n.report({node:u,messageId:"unnecessarilyComputedProperty",data:{property:o.getText(r)},fix(m){const i=o.getTokenBefore(r,a.isOpeningBracketToken),c=o.getTokenAfter(r,a.isClosingBracketToken);if(o.commentsExistBetween(i,c))return null;const h=o.getTokenBefore(i),f=(h.range[1]===i.range[0]&&!a.canTokensBeAdjacent(h,o.getFirstToken(r))?" ":"")+r.raw;return m.replaceTextRange([i.range[0],c.range[1]],f)}})}}function p(){}return{Property:l,MethodDefinition:t?l:p,PropertyDefinition:t?l:p}}},Fc}var Rc,gS;function RD(){if(gS)return Rc;gS=1;const a=Ue();function e(l){return l.type==="BinaryExpression"&&l.operator==="+"}function n(l){return l.value==="+"&&l.type==="Punctuator"}function o(l){let p=l.left;for(;e(p);)p=p.right;return p}function t(l){let p=l.right;for(;e(p);)p=p.left;return p}return Rc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(l){const p=l.sourceCode;return{BinaryExpression(u){if(u.operator!=="+")return;const r=o(u),m=t(u);if(a.isStringLiteral(r)&&a.isStringLiteral(m)&&a.isTokenOnSameLine(r,m)){const i=p.getFirstTokenBetween(r,m,n);l.report({node:u,loc:i.loc,messageId:"unexpectedConcat"})}}}}},Rc}var _c,yS;function _D(){if(yS)return _c;yS=1;const a=Ue();function e(c){return c.value.params.some(h=>h.decorators?.length||h.type==="TSParameterProperty")}function n(c){switch(c.accessibility){case"protected":case"private":return!0;case"public":return!!c.parent.parent.superClass;default:return!1}}function o(c){return c.length===1&&c[0].type==="ExpressionStatement"&&c[0].expression.type==="CallExpression"&&c[0].expression.callee.type==="Super"}function t(c){return c.type==="Identifier"||c.type==="RestElement"}function l(c){return c.length===1&&c[0].type==="SpreadElement"&&c[0].argument.type==="Identifier"&&c[0].argument.name==="arguments"}function p(c,h){return c.type==="Identifier"&&h.type==="Identifier"&&c.name===h.name}function u(c,h){return c.type==="RestElement"&&h.type==="SpreadElement"&&p(c.argument,h.argument)}function r(c,h){return p(c,h)||u(c,h)}function m(c,h){if(c.length!==h.length)return!1;for(let s=0;s<c.length;++s)if(!r(c[s],h[s]))return!1;return!0}function i(c,h){return o(c)&&h.every(t)&&(l(c[0].expression.arguments)||m(h,c[0].expression.arguments))}return _c={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-constructor"},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:"Useless constructor.",removeConstructor:"Remove the constructor."}},create(c){function h(s){if(s.kind!=="constructor"||s.value.type!=="FunctionExpression"||e(s)||n(s)||!s.value.body)return;const f=s.value.body.body,g=s.value.params;(s.parent.parent.superClass?i(f,g):f.length===0)&&c.report({node:s,messageId:"noUselessConstructor",suggest:[{messageId:"removeConstructor",*fix(E){const S=c.sourceCode.getTokenAfter(s),x=S.type==="Punctuator"&&S.value==="["&&a.needsPrecedingSemicolon(c.sourceCode,s);yield E.replaceText(s,x?";":"")}}]})}return{MethodDefinition:h}}},_c}var Bc,vS;function BD(){if(vS)return Bc;vS=1;const a=Ue(),{RegExpParser:e,visitRegExpAST:n}=ur();function o(m,i){return new Set(function*(){yield*m,yield*i}())}const t=o(new Set("\\nrvtbfux"),a.LINEBREAKS),l=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),p=o(l,new Set("^/.$*+?[{}|()Bk")),u=o(l,new Set("q/[{}|()-")),r=new Set("!#$%&*+,.:;<=>?@^`~");return Bc={meta:{type:"suggestion",defaultOptions:[{allowRegexCharacters:[]}],docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:"object",properties:{allowRegexCharacters:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]},create(m){const i=m.sourceCode,[{allowRegexCharacters:c}]=m.options,h=new e;function s(E,S,x,T){const C=E.range[0]+S,v=[C,C+1],A=i.getLocFromIndex(C);m.report({node:E,loc:{start:A,end:{line:A.line,column:A.column+1}},messageId:"unnecessaryEscape",data:{character:x},suggest:[{messageId:a.isDirective(E.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(b){return b.removeRange(v)}},...T?[]:[{messageId:"escapeBackslash",fix(b){return b.insertTextBeforeRange(v,"\\")}}]]})}function f(E,S){const x=E.type==="TemplateElement",T=S[0][1];let C=!t.has(T),v;x?(v=T==="`",T==="$"?C=S.input[S.index+2]!=="{":T==="{"&&(C=S.input[S.index-1]!=="$")):v=T===E.raw[0],C&&!v&&s(E,S.index,S[0].slice(1))}function g(E){const{pattern:S,flags:x}=E.regex;let T;const C=x.includes("u"),v=x.includes("v");try{T=h.parsePattern(S,0,S.length,{unicode:C,unicodeSets:v})}catch{return}const A=[];n(T,{onCharacterClassEnter:b=>A.unshift(b),onCharacterClassLeave:()=>A.shift(),onExpressionCharacterClassEnter:b=>A.unshift(b),onExpressionCharacterClassLeave:()=>A.shift(),onCharacterEnter(b){if(!b.raw.startsWith("\\"))return;const w=b.raw.slice(1);if(w!==String.fromCodePoint(b.value)||c.includes(w))return;let k;if(A.length?k=v?u:l:k=p,k.has(w))return;const R=b.start+1;let F=!1;if(A.length){const L=A[0];if(w==="^"&&L.start+1===b.start)return;if(v){if(r.has(w)&&(S[b.end]===w||S[b.start-1]===w&&(w!=="^"||!L.negate||L.start+1<b.start-1)))return;(b.parent.type==="ClassIntersection"||b.parent.type==="ClassSubtraction")&&(F=!0)}else if(w==="-"&&L.start+1!==b.start&&b.end!==L.end-1)return}s(E,R,w,F)}})}function d(E){const S=E.type==="TemplateElement";if(!(S&&E.parent&&E.parent.parent&&E.parent.parent.type==="TaggedTemplateExpression"&&E.parent===E.parent.parent.quasi))if(typeof E.value=="string"||S){if(E.parent.type==="JSXAttribute"||E.parent.type==="JSXElement"||E.parent.type==="JSXFragment")return;const x=S?i.getText(E):E.raw,T=/\\[^\d]/gu;let C;for(;C=T.exec(x);)f(E,C)}else E.regex&&g(E)}return{Literal:d,TemplateElement:d}}},Bc}var Lc,ES;function LD(){if(ES)return Lc;ES=1;const a=Ue();return Lc={meta:{type:"suggestion",defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:"Disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImport:{type:"boolean"},ignoreExport:{type:"boolean"}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(e){const n=e.sourceCode,[{ignoreDestructuring:o,ignoreImport:t,ignoreExport:l}]=e.options;function p(i,c,h){const s=c.type==="Identifier"?c.name:c.value;return e.report({node:i,messageId:"unnecessarilyRenamed",data:{name:s,type:h},fix(f){const g=i.type==="Property"?i.value:i.local;return n.getCommentsInside(i).length>n.getCommentsInside(g).length||g.type==="AssignmentPattern"&&a.isParenthesised(n,g.left)?null:f.replaceText(i,n.getText(g))}})}function u(i){if(!o)for(const c of i.properties){if(c.type!=="Property"||c.shorthand||c.computed)continue;const h=c.key.type==="Identifier"&&c.key.name||c.key.type==="Literal"&&c.key.value,s=c.value.type==="AssignmentPattern"?c.value.left.name:c.value.name;h===s&&p(c,c.key,"Destructuring assignment")}}function r(i){t||i.imported.range[0]!==i.local.range[0]&&a.getModuleExportName(i.imported)===i.local.name&&p(i,i.imported,"Import")}function m(i){l||i.local.range[0]!==i.exported.range[0]&&a.getModuleExportName(i.local)===a.getModuleExportName(i.exported)&&p(i,i.local,"Export")}return{ObjectPattern:u,ImportSpecifier:r,ExportSpecifier:m}}},Lc}var Oc,SS;function OD(){if(SS)return Oc;SS=1;const a=Ue(),e=nn();function n(p,u){const r=p.indexOf(u);r!==-1&&p.splice(r,1)}function o(p){return a.STATEMENT_LIST_PARENTS.has(p.parent.type)}function t(p){for(let u=p;u&&u.parent&&!a.isFunction(u);u=u.parent)if(u.parent.type==="TryStatement"&&u.parent.finalizer===u)return!0;return!1}function l(p){for(const u of p)if(u.reachable)return!0;return!1}return Oc={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(p){const u=new WeakMap,r=p.sourceCode;let m=null;function i(f){const g=u.get(f);return!g||g.returned}function c(f,g,d){const E=d||new WeakSet;for(const S of g){if(!S.reachable){E.has(S)||(E.add(S),c(f,S.allPrevSegments.filter(i),E));continue}u.has(S)&&f.push(...u.get(S).uselessReturns)}return f}function h(f,g){if(!f.reachable){g.add(f),f.allPrevSegments.filter(i).filter(E=>!g.has(E)).forEach(E=>h(E,g));return}const d=u.get(f);d&&(d.uselessReturns=d.uselessReturns.filter(E=>{if(m.traversedTryBlockStatements&&m.traversedTryBlockStatements.length>0){const S=E.range[0],x=E.range[1];if(m.traversedTryBlockStatements.some(C=>{const v=C.range[0],A=C.range[1];return S>=v&&x<=A}))return!0}return n(m.uselessReturns,E),!1}))}function s(){m.currentSegments.forEach(f=>h(f,new Set))}return{onCodePathStart(f){m={upper:m,uselessReturns:[],traversedTryBlockStatements:[],codePath:f,currentSegments:new Set}},onCodePathEnd(){for(const f of m.uselessReturns)p.report({node:f,loc:f.loc,messageId:"unnecessaryReturn",fix(g){return o(f)&&!r.getCommentsInside(f).length?new e(g,r).retainEnclosingFunction(f).remove(f):null}});m=m.upper},onCodePathSegmentStart(f){m.currentSegments.add(f);const g={uselessReturns:c([],f.allPrevSegments),returned:!1};u.set(f,g)},onUnreachableCodePathSegmentStart(f){m.currentSegments.add(f)},onUnreachableCodePathSegmentEnd(f){m.currentSegments.delete(f)},onCodePathSegmentEnd(f){m.currentSegments.delete(f)},ReturnStatement(f){if(f.argument&&s(),!(f.argument||a.isInLoop(f)||t(f)||!l(m.currentSegments))){for(const g of m.currentSegments){const d=u.get(g);d&&(d.uselessReturns.push(f),d.returned=!0)}m.uselessReturns.push(f)}},"TryStatement > BlockStatement.block:exit"(f){m.traversedTryBlockStatements.push(f)},"TryStatement:exit"(){m.traversedTryBlockStatements.pop()},ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,EmptyStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration:s,WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s}}},Oc}var Nc,bS;function ND(){if(bS)return Nc;bS=1;const a=Ue();function e(h){return!!h.scope&&h.scope.type==="global"}function n(h){let s=h;for(;s.type!=="function"&&s.type!=="global";)s=s.upper;return s}function o(h){const s=n(h.scope);return h.references.some(f=>n(f.from)!==s)}function t(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function l(h){return h.declarations.every(s=>s.init!==null)}const p=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function u(h){for(let s=h;s;s=s.parent)if(p.test(s.type))return s;return null}function r(h){return h.defs.length>=2}function m(h){function s(f){const g=h.range,d=f.identifier.range;return d[0]<g[0]||d[1]>g[1]}return function(f){return f.references.some(s)}}function i(h){const s=h.range[0],f=h.range[1];return g=>{const d=g.defs[0].name,E=d.range[0],S=d.parent.type==="AssignmentPattern"?d.parent.right:null,x=S&&S.range[0],T=S&&S.range[1];return g.references.some(C=>{const v=C.identifier.range[0],A=C.identifier.range[1];return!C.init&&(v<E||S!==null&&v>=x&&A<=T||!a.isFunction(h)&&v>=s&&A<=f)})}}function c(h){return h.name==="let"}return Nc={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){const s=h.sourceCode;function f(E){return E.init?s.getDeclaredVariables(E).some(i(E.init)):!1}function g(E){const S=s.getDeclaredVariables(E),x=u(E);return!(E.parent.type==="SwitchCase"||E.declarations.some(f)||S.some(e)||S.some(r)||S.some(m(x))||S.some(c)||a.isInLoop(E)&&(S.some(o)||!t(E)&&!l(E))||!t(E)&&!(E.parent.type==="ForStatement"&&E.parent.init===E)&&!a.STATEMENT_LIST_PARENTS.has(E.parent.type))}function d(E){h.report({node:E,messageId:"unexpectedVar",fix(S){const x=s.getFirstToken(E,{filter:T=>T.value==="var"});return g(E)?S.replaceText(x,"let"):null}})}return{"VariableDeclaration:exit"(E){E.kind==="var"&&(E.parent.type==="TSModuleBlock"&&E.parent.parent.type==="TSModuleDeclaration"&&E.parent.parent.global||d(E))}}}},Nc}var Mc,xS;function MD(){return xS||(xS=1,Mc={meta:{type:"suggestion",defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean"}},additionalProperties:!1}]},create(a){const[{allowAsStatement:e}]=a.options;return{'UnaryExpression[operator="void"]'(n){e&&n.parent&&n.parent.type==="ExpressionStatement"||a.report({node:n,messageId:"noVoid"})}}}}),Mc}var jc,CS;function jD(){if(CS)return jc;CS=1;const a=Rn(),e=Ue(),n=40;return jc={meta:{type:"suggestion",defaultOptions:[{location:"start",terms:["todo","fixme","xxx"]}],docs:{description:"Disallow specified warning terms in comments",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(o){const t=o.sourceCode,[{decoration:l,location:p,terms:u}]=o.options,r=a(l?l.join(""):""),m=/\bno-warning-comments\b/u;function i(f){const g=a(f),d="\\b";let E="";p==="start"?E=`^[\\s${r}]*`:/^\w/u.test(f)&&(E=d);const S=/\w$/u.test(f)?d:"",x="iu";return new RegExp(`${E}${g}${S}`,x)}const c=u.map(i);function h(f){const g=[];return c.forEach((d,E)=>{d.test(f)&&g.push(u[E])}),g}function s(f){const g=f.value;if(e.isDirectiveComment(f)&&m.test(g))return;h(g).forEach(E=>{let S="",x=!1;for(const T of g.trim().split(/\s+/u)){const C=S?`${S} ${T}`:T;if(C.length<=n)S=C;else{x=!0;break}}o.report({node:f,messageId:"unexpectedComment",data:{matchedTerm:E,comment:`${S}${x?"...":""}`}})})}return{Program(){t.getAllComments().filter(g=>g.type!=="Shebang").forEach(s)}}}},jc}var Uc,wS;function UD(){if(wS)return Uc;wS=1;const a=Ue();return Uc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-whitespace-before-property",url:"https://eslint.style/rules/no-whitespace-before-property"}}]},type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){const n=e.sourceCode;function o(t,l,p){e.report({node:t,messageId:"unexpectedWhitespace",data:{propName:n.getText(t.property)},fix(u){let r="";return!t.computed&&!t.optional&&a.isDecimalInteger(t.object)||n.commentsExistBetween(l,p)?null:(t.optional?r="?.":t.computed||(r="."),u.replaceTextRange([l.range[1],p.range[0]],r))}})}return{MemberExpression(t){let l,p;a.isTokenOnSameLine(t.object,t.property)&&(t.computed?(l=n.getTokenBefore(t.property,a.isOpeningBracketToken),p=n.getTokenBefore(l,t.optional?1:0)):(l=n.getFirstToken(t.property),p=n.getTokenBefore(l,1)),n.isSpaceBetweenTokens(p,l)&&o(t,p,l))}}}},Uc}var qc,AS;function qD(){return AS||(AS=1,qc={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(a){return{WithStatement(e){a.report({node:e,messageId:"unexpectedWith"})}}}}),qc}var Vc,TS;function VD(){if(TS)return Vc;TS=1;const a={enum:["beside","below","any"]};return Vc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"nonblock-statement-body-position",url:"https://eslint.style/rules/nonblock-statement-body-position"}}]},type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[a,{properties:{overrides:{properties:{if:a,else:a,while:a,do:a,for:a},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const n=e.sourceCode;function o(l){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[l]||e.options[0]||"beside"}function t(l,p){const u=o(p);if(l.type==="BlockStatement"||u==="any")return;const r=n.getTokenBefore(l);r.loc.end.line===l.loc.start.line&&u==="below"?e.report({node:l,messageId:"expectLinebreak",fix:m=>m.insertTextBefore(l,`
|
|
103
|
+
`),i=m[0],c=`${i.slice(0,12)}...`;return m.length===1&&i.length<=12?i:c}return{Program(){n.tokensAndComments.forEach((r,m,i)=>{if(m===i.length-1)return;const c=i[m+1];if(!n.text.slice(r.range[1],c.range[0]).includes(" ")||r.loc.end.line<c.loc.start.line||t&&a.isCommentToken(c)&&(m===i.length-2||c.loc.end.line<i[m+2].loc.start.line))return;if(p){const s=n.getNodeByRangeIndex(c.range[0]-1);if(s&&l[s.type])return}let h;c.type==="Block"?h=`/*${u(c)}*/`:c.type==="Line"?h=`//${u(c)}`:h=c.value,e.report({node:c,loc:{start:r.loc.end,end:c.loc.start},messageId:"multipleSpaces",data:{displayValue:h},fix:s=>s.replaceTextRange([r.range[1],c.range[0]]," ")})})}}}},uu}var cu,Hv;function fk(){if(Hv)return cu;Hv=1;const a=Ue();return cu={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function n(o){return o.type.indexOf("JSX")===0}return{Literal(o){a.LINEBREAK_MATCHER.test(o.raw)&&!n(o.parent)&&e.report({node:o,messageId:"multilineString"})}}}},cu}var fu,Kv;function pk(){return Kv||(Kv=1,fu={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multiple-empty-lines",url:"https://eslint.style/rules/no-multiple-empty-lines"}}]},type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(a){let e=2,n=e,o=e;a.options.length&&(e=a.options[0].max,n=typeof a.options[0].maxEOF<"u"?a.options[0].maxEOF:e,o=typeof a.options[0].maxBOF<"u"?a.options[0].maxBOF:e);const t=a.sourceCode,l=t.lines.at(-1)===""?t.lines.slice(0,-1):t.lines,p=new Set;return{TemplateLiteral(u){u.quasis.forEach(r=>{for(let m=r.loc.start.line;m<r.loc.end.line;m++)p.add(m)})},"Program:exit"(u){return l.reduce((r,m,i)=>((m.trim()||p.has(i+1))&&r.push(i+1),r),[]).concat(l.length+1).reduce((r,m)=>{let i,c;return r===0?(i="blankBeginningOfFile",c=o):m===l.length+1?(i="blankEndOfFile",c=n):(i="consecutiveBlank",c=e),m-r-1>c&&a.report({node:u,loc:{start:{line:r+c+1,column:0},end:{line:m,column:0}},messageId:i,data:{max:c,pluralizedLines:c===1?"line":"lines"},fix(h){const s=t.getIndexFromLoc({line:r+1,column:0}),f=m-c,g=f<=l.length?t.getIndexFromLoc({line:f,column:0}):t.text.length;return h.removeRange([s,g])}}),m},0)}}}}),fu}var pu,Xv;function mk(){return Xv||(Xv=1,pu={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-global-assign",url:"https://eslint.org/docs/rules/no-global-assign"}}]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(a){const e=a.options[0],n=e&&e.exceptions||[],o=a.sourceCode;function t(p,u,r){const m=p.identifier;p.init===!1&&p.isWrite()&&(u===0||r[u-1].identifier!==m)&&a.report({node:m,messageId:"nativeReassign",data:m})}function l(p){p.writeable===!1&&!n.includes(p.name)&&p.references.forEach(t)}return{Program(p){o.getScope(p).variables.forEach(l)}}}}),pu}var mu,Jv;function hk(){return Jv||(Jv=1,mu={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(a){function e(l){return l.alternate&&l.alternate.type!=="IfStatement"}function n(l){return l.type==="UnaryExpression"&&l.operator==="!"}function o(l){return l.type==="BinaryExpression"&&(l.operator==="!="||l.operator==="!==")}function t(l){return n(l.test)||o(l.test)}return{IfStatement(l){e(l)&&t(l)&&a.report({node:l,messageId:"unexpectedNegated"})},ConditionalExpression(l){t(l)&&a.report({node:l,messageId:"unexpectedNegated"})}}}}),mu}var hu,Yv;function dk(){return Yv||(Yv=1,hu={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:null,replacedBy:[{rule:{name:"no-unsafe-negation",url:"https://eslint.org/docs/rules/no-unsafe-negation"}}]},schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(a){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&a.report({node:e,messageId:"negatedLHS"})}}}}),hu}var du,Qv;function gk(){return Qv||(Qv=1,du={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(a){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&a.report({node:e,messageId:"noNestedTernary"})}}}}),du}var gu,Zv;function yk(){return Zv||(Zv=1,gu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(a){return{"ExpressionStatement > NewExpression"(e){a.report({node:e.parent,messageId:"noNewStatement"})}}}}),gu}var yu,eE;function vk(){if(eE)return yu;eE=1;const a=Ue(),e=new Set(["apply","bind","call"]);return yu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(n){const o=n.sourceCode;return{"Program:exit"(t){const p=o.getScope(t).set.get("Function");p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier,{parent:m}=r;let i;if(m){if(r===m.callee&&(m.type==="NewExpression"||m.type==="CallExpression"))i=m;else if(m.type==="MemberExpression"&&r===m.object&&e.has(a.getStaticPropertyName(m))){const c=m.parent.type==="ChainExpression"?m.parent:m;c.parent.type==="CallExpression"&&c.parent.callee===c&&(i=c.parent)}}i&&n.report({node:i,messageId:"noFunctionConstructor"})})}}}},yu}var vu,tE;function Ek(){if(tE)return vu;tE=1;const a=["Symbol","BigInt"];return vu={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){const n=e.sourceCode;return{"Program:exit"(o){const t=n.getScope(o);for(const l of a){const p=t.set.get(l);p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier,m=r.parent;m&&m.type==="NewExpression"&&m.callee===r&&e.report({node:r,messageId:"noNewNonconstructor",data:{name:l}})})}}}}},vu}var Eu,rE;function Sk(){if(rE)return Eu;rE=1;const a=Ue();return Eu={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:"https://eslint.org/blog/2023/09/eslint-v8.50.0-released/",deprecatedSince:"8.50.0",availableUntil:null,replacedBy:[{rule:{name:"no-object-constructor",url:"https://eslint.org/docs/rules/no-object-constructor"}}]},schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){const n=e.sourceCode;return{NewExpression(o){const t=a.getVariableByName(n.getScope(o),o.callee.name);t&&t.identifiers.length>0||o.callee.name==="Object"&&e.report({node:o,messageId:"preferLiteral"})}}}},Eu}var Su,nE;function bk(){return nE||(nE=1,Su={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-new-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md"}}]},type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(a){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&a.report({node:e,messageId:"noNewRequire"})}}}}),Su}var bu,sE;function xk(){return sE||(sE=1,bu={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended",deprecatedSince:"9.0.0",availableUntil:null,replacedBy:[{rule:{name:"no-new-native-nonconstructor",url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(a){const e=a.sourceCode;return{"Program:exit"(n){const t=e.getScope(n).set.get("Symbol");t&&t.defs.length===0&&t.references.forEach(l=>{const p=l.identifier,u=p.parent;u&&u.type==="NewExpression"&&u.callee===p&&a.report({node:p,messageId:"noNewSymbol"})})}}}}),bu}var xu,aE;function Ck(){if(aE)return xu;aE=1;const{getVariableByName:a}=Ue();return xu={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){const{sourceCode:n}=e;return{NewExpression(o){const t=["String","Number","Boolean"],{name:l}=o.callee;if(t.includes(l)){const p=a(n.getScope(o),l);p&&p.identifiers.length===0&&e.report({node:o,messageId:"noConstructor",data:{fn:l}})}}}}},xu}var Cu,iE;function wk(){if(iE)return Cu;iE=1;const a=/\\[89]/u;function e(n){return`\\u${n.charCodeAt(0).toString(16).padStart(4,"0")}`}return Cu={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(n){const o=n.sourceCode;function t(l,p,u){return{messageId:l,data:{original:o.getText().slice(...p),replacement:u},fix(r){return r.replaceTextRange(p,u)}}}return{Literal(l){if(typeof l.value!="string"||!a.test(l.raw))return;const p=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy;let u;for(;u=p.exec(l.raw);){const{previousEscape:r,decimalEscape:m}=u.groups,i=l.range[0]+u.index+u[0].length,c=i-m.length,h=[c,i],s=[];r==="\\0"?s.push(t("refactor",[c-r.length,i],`${e("\0")}${m[1]}`),t("refactor",h,e(m[1]))):s.push(t("refactor",h,m[1])),s.push(t("escapeBackslash",h,`\\${m}`)),n.report({node:l,loc:{start:o.getLocFromIndex(c),end:o.getLocFromIndex(i)},messageId:"decimalEscape",data:{decimalEscape:m},suggest:s})}}}}},Cu}var wu,oE;function Ak(){if(oE)return wu;oE=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n}=qt(),o=Ue().getStaticPropertyName,t=["Atomics","JSON","Math","Reflect","Intl"];function l(p){return p.type==="ChainExpression"?l(p.expression):p.type==="MemberExpression"?o(p):p.name}return wu={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(p){const u=p.sourceCode;return{Program(r){const m=u.getScope(r),i=new n(m),c={};for(const h of t)c[h]={[a]:!0,[e]:!0};for(const{node:h,path:s}of i.iterateGlobalReferences(c)){const f=l(h.callee),g=s[0],d=f===g?"unexpectedCall":"unexpectedRefCall";p.report({node:h,messageId:d,data:{name:f,ref:g}})}}}}},wu}var Au,lE;function Tk(){if(lE)return Au;lE=1;const{getVariableByName:a,isArrowToken:e,isStartOfExpressionStatement:n,needsPrecedingSemicolon:o}=Ue();return Au={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(t){const l=t.sourceCode;function p(r){if(n(r))return!0;const m=l.getTokenBefore(r);return!!(m&&e(m))}function u(r){if(r.callee.type!=="Identifier"||r.callee.name!=="Object"||r.arguments.length)return;const m=a(l.getScope(r),"Object");if(m&&m.identifiers.length===0){let i,c,h="useLiteral";p(r)?(i="({})",o(l,r)?(c=";({})",h="useLiteralAfterSemicolon"):c="({})"):i=c="{}",t.report({node:r,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:i},fix:s=>s.replaceText(r,c)}]})}}return{CallExpression:u,NewExpression:u}}},Au}var Tu,uE;function kk(){return uE||(uE=1,Tu={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(a){return{Literal(e){typeof e.value=="number"&&/^0\d/u.test(e.raw)&&a.report({node:e,messageId:"noOctal"})}}}}),Tu}var ku,cE;function Dk(){return cE||(cE=1,ku={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(a){return{Literal(e){if(typeof e.value!="string")return;const n=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&a.report({node:e,messageId:"octalEscapeSequence",data:{sequence:n[1]}})}}}}),ku}var Du,fE;function Ik(){if(fE)return Du;fE=1;const a=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return Du={meta:{type:"suggestion",docs:{description:"Disallow reassigning function parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){const n=e.options[0]&&e.options[0].props,o=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],t=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],l=e.sourceCode;function p(c){let h=c.identifier,s=h.parent;for(;s&&(!a.test(s.type)||s.type==="ForInStatement"||s.type==="ForOfStatement");){switch(s.type){case"AssignmentExpression":return s.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(s.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return s.left===h;case"CallExpression":if(s.callee!==h)return!1;break;case"MemberExpression":if(s.property===h)return!1;break;case"Property":if(s.key===h)return!1;break;case"ConditionalExpression":if(s.test===h)return!1;break}h=s,s=h.parent}return!1}function u(c){return o.includes(c)||t.some(h=>new RegExp(h,"u").test(c))}function r(c,h,s){const f=c.identifier;f&&!c.init&&(h===0||s[h-1].identifier!==f)&&(c.isWrite()?e.report({node:f,messageId:"assignmentToFunctionParam",data:{name:f.name}}):n&&p(c)&&!u(f.name)&&e.report({node:f,messageId:"assignmentToFunctionParamProp",data:{name:f.name}}))}function m(c){c.defs[0].type==="Parameter"&&c.references.forEach(r)}function i(c){l.getDeclaredVariables(c).forEach(m)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}},Du}var Iu,pE;function Pk(){return pE||(pE=1,Iu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-path-concat",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md"}}]},type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(a){const e=/^__(?:dir|file)name$/u;return{BinaryExpression(n){const o=n.left,t=n.right;n.operator==="+"&&(o.type==="Identifier"&&e.test(o.name)||t.type==="Identifier"&&e.test(t.name))&&a.report({node:n,messageId:"usePathFunctions"})}}}}),Iu}var Pu,mE;function Fk(){if(mE)return Pu;mE=1;function a(n){const o=n.parent;return o.type==="ForStatement"&&o.update===n}function e(n){const o=n.parent;return o.type==="SequenceExpression"?e(o):a(n)}return Pu={meta:{type:"suggestion",defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(n){const[{allowForLoopAfterthoughts:o}]=n.options;return{UpdateExpression(t){o&&e(t)||n.report({node:t,messageId:"unexpectedUnaryOp",data:{operator:t.operator}})}}}},Pu}var Fu,hE;function Rk(){return hE||(hE=1,Fu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-env",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="process"&&!e.computed&&o&&o==="env"&&a.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),Fu}var Ru,dE;function _k(){return dE||(dE=1,Ru={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-exit",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(a){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){a.report({node:e.parent,messageId:"noProcessExit"})}}}}),Ru}var _u,gE;function Bk(){if(gE)return _u;gE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]);function n(p,u){const r=p.parent;return r.type==="NewExpression"&&r.arguments[0]===p&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&u.isGlobalReference(r.callee)}function o(p){return p.type==="UnaryExpression"&&p.operator==="void"}function t(p,u,r){const m=a.getPrecedence(u)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(p,u),i=p.getTokenBefore(u,u.parent.type==="ArrowFunctionExpression"?a.isArrowToken:s=>s.type==="Keyword"&&s.value==="return"),c=p.getTokenAfter(i),h=i.value==="return"&&i.range[1]===c.range[0];return[r.insertTextBefore(c,`${h?" ":""}void ${m?"(":""}`),r.insertTextAfter(u,m?")":"")]}function l(p,u,r){const m=p.getTokenBefore(u.body,a.isArrowToken),i=p.getTokenAfter(m),c=p.getLastToken(u);return[r.insertTextBefore(i,"{"),r.insertTextAfter(c,"}")]}return _u={meta:{type:"problem",defaultOptions:[{allowVoid:!1}],docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(p){let u=null;const r=p.sourceCode,[{allowVoid:m}]=p.options;return{onCodePathStart(i,c){if(u={upper:u,shouldCheck:e.has(c.type)&&n(c,r)},u.shouldCheck&&c.type==="ArrowFunctionExpression"&&c.expression&&!(m&&o(c.body))){const h=[];m&&h.push({messageId:"prependVoid",fix(s){return t(r,c.body,s)}}),c.body.type==="FunctionExpression"&&!c.body.id||h.push({messageId:"wrapBraces",fix(s){return l(r,c,s)}}),p.report({node:c.body,messageId:"returnsValue",suggest:h})}},onCodePathEnd(){u=u.upper},ReturnStatement(i){if(u.shouldCheck&&i.argument){if(!m){p.report({node:i,messageId:"returnsValue"});return}o(i.argument)||p.report({node:i,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(c){return t(r,i.argument,c)}}]})}}}}},_u}var Bu,yE;function Lk(){if(yE)return Bu;yE=1;const{getStaticPropertyName:a}=Ue();return Bu={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(n){a(n)==="__proto__"&&e.report({node:n,messageId:"unexpectedProto"})}}}},Bu}var Lu,vE;function Ok(){if(vE)return Lu;vE=1;const a=Ue();function e(n){let o;if(n.type==="MemberExpression")o=n.object;else if(n.type==="CallExpression")o=n.callee;else return!1;return n.optional?!0:e(o)}return Lu={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(n){const o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function t(l){const p=a.skipChainExpression(l.callee);if(p.type!=="MemberExpression")return;const u=a.getStaticPropertyName(p);u!==null&&o.has(u)&&n.report({messageId:"prototypeBuildIn",loc:p.property.loc,data:{prop:u},node:l,suggest:[{messageId:"callObjectPrototype",data:{prop:u},fix(r){const m=n.sourceCode;if(e(l)||l.callee.type==="ChainExpression")return null;const i=a.getVariableByName(m.getScope(l),"Object");if(!i||i.scope.type!=="global"||i.defs.length>0)return null;let c=m.getText(p.object);a.getPrecedence(p.object)<=a.getPrecedence({type:"SequenceExpression"})&&(c=`(${c})`);const h=m.getTokenAfter(l.callee,a.isOpeningParenToken),f=l.arguments.length===0?"":", ";return[r.replaceText(p,`Object.prototype.${u}.call`),r.insertTextAfter(h,c+f)]}}]})}return{CallExpression:t}}},Lu}var Ou,EE;function Nk(){if(EE)return Ou;EE=1;const a=Ue();return Ou={meta:{type:"suggestion",defaultOptions:[{builtinGlobals:!0}],docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"}},additionalProperties:!1}]},create(e){const[{builtinGlobals:n}]=e.options,o=e.sourceCode;function*t(u){n&&(u.eslintImplicitGlobalSetting==="readonly"||u.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(const r of u.identifiers)yield{type:"syntax",node:r,loc:r.loc};if(u.eslintExplicitGlobalComments)for(const r of u.eslintExplicitGlobalComments)yield{type:"comment",node:r,loc:a.getNameLocationInGlobalDirectiveComment(o,r,u.name)}}function l(u){for(const r of u.variables){const[m,...i]=t(r);if(i.length===0)continue;const c=m.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:r.name};for(const{type:s,node:f,loc:g}of i){const d=s===m.type?"redeclared":c;e.report({node:f,loc:g,messageId:d,data:h})}}}function p(u){const r=o.getScope(u);r.block===u&&l(r)}return{Program(u){const r=o.getScope(u);l(r),r.type==="global"&&r.childScopes[0]&&r.block===r.childScopes[0].block&&l(r.childScopes[0])},FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p,StaticBlock:p,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p}}},Ou}var Nu,SE;function Mk(){if(SE)return Nu;SE=1;const a=Ue(),e=ur(),n=new e.RegExpParser,o=/ {2}/u;function t(l){return l&&l.type==="Literal"&&typeof l.value=="string"}return Nu={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(l){const p=l.sourceCode;function u(i,c,h,s,f){if(!o.test(h))return;const g=[];let d;try{d=n.parsePattern(c,0,c.length,{unicode:f.includes("u"),unicodeSets:f.includes("v")})}catch{return}e.visitRegExpAST(d,{onCharacterClassEnter(x){g.push(x)}});const E=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let S;for(;S=E.exec(c);){const{1:{length:x},index:T}=S;if(g.every(({start:C,end:v})=>T<C||v<=T)){l.report({node:i,messageId:"multipleSpaces",data:{length:x},fix(C){return c!==h?null:C.replaceTextRange([s+T,s+T+x],` {${x}}`)}});return}}}function r(i){if(i.regex){const c=i.regex.pattern,h=i.raw.slice(1,i.raw.lastIndexOf("/")),s=i.range[0]+1,f=i.regex.flags;u(i,c,h,s,f)}}function m(i){const c=p.getScope(i),h=a.getVariableByName(c,"RegExp"),s=h&&h.defs.length>0,f=i.arguments[0];if(i.callee.type==="Identifier"&&i.callee.name==="RegExp"&&t(f)&&!s){const g=f.value,d=f.raw.slice(1,-1),E=f.range[0]+1;let S;if(i.arguments.length<2)S="";else{const x=i.arguments[1];if(t(x))S=x.value;else return}u(i,g,d,E,S)}}return{Literal:r,CallExpression:m,NewExpression:m}}},Nu}var Mu,bE;function jk(){if(bE)return Mu;bE=1;const a=Ue();return Mu={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){const n=new Set(e.options[0]&&e.options[0].restrictedNamedExports),o=e.options[0]&&e.options[0].restrictedNamedExportsPattern,t=e.options[0]&&e.options[0].restrictDefaultExports,l=e.sourceCode;function p(u){const r=a.getModuleExportName(u);let m=!1;if(o&&r!=="default"&&(m=new RegExp(o,"u").test(r)),m||n.has(r)){e.report({node:u,messageId:"restrictedNamed",data:{name:r}});return}if(r==="default")if(u.parent.type==="ExportAllDeclaration")t&&t.namespaceFrom&&e.report({node:u,messageId:"restrictedDefault"});else{const i=!!u.parent.parent.source,c=a.getModuleExportName(u.parent.local);if(!i&&t&&t.named){e.report({node:u,messageId:"restrictedDefault"});return}i&&t&&(c==="default"&&t.defaultFrom||c!=="default"&&t.namedFrom)&&e.report({node:u,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(u){u.exported&&p(u.exported)},ExportDefaultDeclaration(u){t&&t.direct&&e.report({node:u,messageId:"restrictedDefault"})},ExportNamedDeclaration(u){const r=u.declaration;r?r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"?p(r.id):r.type==="VariableDeclaration"&&l.getDeclaredVariables(r).map(m=>m.defs.find(i=>i.parent===r)).map(m=>m.name).forEach(p):u.specifiers.map(m=>m.exported).forEach(p)}}}},Mu}var ju,xE;function Uk(){if(xE)return ju;xE=1;const a=Ue(),e=new Set(["TSTypeReference","TSInterfaceHeritage","TSClassImplements","TSTypeQuery","TSQualifiedName"]),n=new Set(["globalThis","self","window"]),o={type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0};return ju={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{anyOf:[o,{type:"array",items:[{type:"object",properties:{globals:o,checkGlobalObject:{type:"boolean"},globalObjects:{type:"array",items:{type:"string"},uniqueItems:!0}},required:["globals"],additionalProperties:!1}],additionalItems:!1}]},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(t){const{sourceCode:l,options:p}=t,u=typeof p[0]=="object"&&Object.hasOwn(p[0],"globals"),r=u?p[0].globals:p,m=u?p[0].checkGlobalObject:!1,i=u?p[0].globalObjects||[]:[],c=new Set([...n,...i]);if(r.length===0)return{};const h=r.reduce((d,E)=>(typeof E=="string"?d[E]=null:d[E.name]=E.message,d),{});function s(d){const E=d.identifier.name,S=h[E],x=S?"customMessage":"defaultMessage";t.report({node:d.identifier,messageId:x,data:{name:E,customMessage:S}})}function f(d){return Object.hasOwn(h,d)}function g(d){const E=d.identifier.parent;return e.has(E.type)}return{Program(d){const E=l.getScope(d);E.variables.forEach(S=>{!S.defs.length&&f(S.name)&&S.references.forEach(x=>{g(x)||s(x)})}),E.through.forEach(S=>{f(S.identifier.name)&&!g(S)&&s(S)})},"Program:exit"(d){if(!m)return;const E=l.getScope(d);c.forEach(S=>{const x=a.getVariableByName(E,S);x&&x.references.forEach(T=>{let v=T.identifier.parent;for(;a.isSpecificMemberAccess(v,null,S);)v=v.parent;const A=a.getStaticPropertyName(v);if(A&&f(A)){const b=h[A],w=b?"customMessage":"defaultMessage";t.report({node:v.property,messageId:w,data:{name:A,customMessage:b}})}})})}}}},ju}var Uu,CE;function wE(){if(CE)return Uu;CE=1;function a(q){return Array.isArray(q)?q:[q]}const e="",n=" ",o="\\",t=/^\s+$/,l=/(?:[^\\]|^)\\$/,p=/^\\!/,u=/^\\#/,r=/\r?\n/g,m=/^\.*\/|^\.+$/,i="/";let c="node-ignore";typeof Symbol<"u"&&(c=Symbol.for("node-ignore"));const h=c,s=(q,N,_)=>Object.defineProperty(q,N,{value:_}),f=/([0-z])-([0-z])/g,g=()=>!1,d=q=>q.replace(f,(N,_,G)=>_.charCodeAt(0)<=G.charCodeAt(0)?N:e),E=q=>{const{length:N}=q;return q.slice(0,N-N%2)},S=[[/^\uFEFF/,()=>e],[/((?:\\\\)*?)(\\?\s+)$/,(q,N,_)=>N+(_.indexOf("\\")===0?n:e)],[/(\\+?)\s/g,(q,N)=>{const{length:_}=N;return N.slice(0,_-_%2)+n}],[/[\\$.|*+(){^]/g,q=>`\\${q}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(q,N,_)=>N+6<_.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(q,N,_)=>{const G=_.replace(/\\\*/g,"[^\\/]*");return N+G}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(q,N,_,G,B)=>N===o?`\\[${_}${E(G)}${B}`:B==="]"&&G.length%2===0?`[${d(_)}${G}]`:"[]"],[/(?:[^*])$/,q=>/\/$/.test(q)?`${q}$`:`${q}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(q,N)=>`${N?`${N}[^/]+`:"[^/]*"}(?=$|\\/$)`]],x=Object.create(null),T=(q,N)=>{let _=x[q];return _||(_=S.reduce((G,[B,z])=>G.replace(B,z.bind(q)),q),x[q]=_),N?new RegExp(_,"i"):new RegExp(_)},C=q=>typeof q=="string",v=q=>q&&C(q)&&!t.test(q)&&!l.test(q)&&q.indexOf("#")!==0,A=q=>q.split(r);class b{constructor(N,_,G,B){this.origin=N,this.pattern=_,this.negative=G,this.regex=B}}const w=(q,N)=>{const _=q;let G=!1;q.indexOf("!")===0&&(G=!0,q=q.substr(1)),q=q.replace(p,"!").replace(u,"#");const B=T(q,N);return new b(_,q,G,B)},k=(q,N)=>{throw new N(q)},R=(q,N,_)=>C(q)?q?R.isNotRelative(q)?_(`path should be a \`path.relative()\`d string, but got "${N}"`,RangeError):!0:_("path must not be empty",TypeError):_(`path must be a string, but got \`${N}\``,TypeError),F=q=>m.test(q);R.isNotRelative=F,R.convert=q=>q;class L{constructor({ignorecase:N=!0,ignoreCase:_=N,allowRelativePaths:G=!1}={}){s(this,h,!0),this._rules=[],this._ignoreCase=_,this._allowRelativePaths=G,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(N){if(N&&N[h]){this._rules=this._rules.concat(N._rules),this._added=!0;return}if(v(N)){const _=w(N,this._ignoreCase);this._added=!0,this._rules.push(_)}}add(N){return this._added=!1,a(C(N)?A(N):N).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(N){return this.add(N)}_testOne(N,_){let G=!1,B=!1;return this._rules.forEach(z=>{const{negative:H}=z;if(B===H&&G!==B||H&&!G&&!B&&!_)return;z.regex.test(N)&&(G=!H,B=H)}),{ignored:G,unignored:B}}_test(N,_,G,B){const z=N&&R.convert(N);return R(z,N,this._allowRelativePaths?g:k),this._t(z,_,G,B)}_t(N,_,G,B){if(N in _)return _[N];if(B||(B=N.split(i)),B.pop(),!B.length)return _[N]=this._testOne(N,G);const z=this._t(B.join(i)+i,_,G,B);return _[N]=z.ignored?z:this._testOne(N,G)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return a(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}}const P=q=>new L(q),O=q=>R(q&&R.convert(q),q,g);if(P.isPathValid=O,P.default=P,Uu=P,typeof Ft<"u"&&(Ft.env&&Ft.env.IGNORE_TEST_WIN32||Ft.platform==="win32")){const q=_=>/^\\\\\?\\/.test(_)||/["<>|\u0000-\u001F]+/u.test(_)?_:_.replace(/\\/g,"/");R.convert=q;const N=/^[a-z]:\//i;R.isNotRelative=_=>N.test(_)||F(_)}return Uu}var qu,AE;function qk(){if(AE)return qu;AE=1;const a=Ue(),e=wE(),n={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return qu={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[n,{type:"array",items:[{type:"object",properties:{paths:n,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},regex:{type:"string"},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]},oneOf:[{required:["group"]},{required:["regex"]}]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(t){const l=t.sourceCode,p=Array.isArray(t.options)?t.options:[],u=typeof p[0]=="object"&&(Object.hasOwn(p[0],"paths")||Object.hasOwn(p[0],"patterns")),r=(u?p[0].paths:t.options)||[],m=r.reduce((d,E)=>{const S=typeof E=="string"?E:E.name;return d[S]||(d[S]=[]),typeof E=="string"?d[S].push({}):d[S].push({message:E.message,importNames:E.importNames,allowImportNames:E.allowImportNames}),d},Object.create(null));let i=(u?p[0].patterns:[])||[];i.length>0&&typeof i[0]=="string"&&(i=[{group:i}]);const c=i.map(({group:d,regex:E,message:S,caseSensitive:x,importNames:T,importNamePattern:C,allowImportNames:v,allowImportNamePattern:A})=>({...d?{matcher:e({allowRelativePaths:!0,ignorecase:!x}).add(d)}:{},...typeof E=="string"?{regexMatcher:new RegExp(E,x?"u":"iu")}:{},customMessage:S,importNames:T,importNamePattern:C,allowImportNames:v,allowImportNamePattern:A}));if(Object.keys(r).length===0&&c.length===0)return{};function h(d,E,S){Object.hasOwn(m,d)&&m[d].forEach(x=>{const T=x.message,C=x.importNames,v=x.allowImportNames;if(!C&&!v){t.report({node:S,messageId:T?"pathWithCustomMessage":"path",data:{importSource:d,customMessage:T}});return}E.forEach((A,b)=>{if(b==="*"){const[w]=A;C?t.report({node:S,messageId:T?"everythingWithCustomMessage":"everything",loc:w.loc,data:{importSource:d,importNames:C,customMessage:T}}):v&&t.report({node:S,messageId:T?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:w.loc,data:{importSource:d,allowedImportNames:v,customMessage:T}});return}C&&C.includes(b)&&A.forEach(w=>{t.report({node:S,messageId:T?"importNameWithCustomMessage":"importName",loc:w.loc,data:{importSource:d,customMessage:T,importName:b}})}),v&&!v.includes(b)&&A.forEach(w=>{t.report({node:S,loc:w.loc,messageId:T?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:d,customMessage:T,importName:b,allowedImportNames:v}})})})})}function s(d,E,S){const x=d.source.value.trim(),T=E.customMessage,C=E.importNames,v=E.importNamePattern?new RegExp(E.importNamePattern,"u"):null,A=E.allowImportNames,b=E.allowImportNamePattern?new RegExp(E.allowImportNamePattern,"u"):null;if(!C&&!A&&!v&&!b){t.report({node:d,messageId:T?"patternWithCustomMessage":"patterns",data:{importSource:x,customMessage:T}});return}S.forEach((w,k)=>{if(k==="*"){const[R]=w;C?t.report({node:d,messageId:T?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:R.loc,data:{importSource:x,importNames:C,customMessage:T}}):A?t.report({node:d,messageId:T?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:R.loc,data:{importSource:x,allowedImportNames:A,customMessage:T}}):b?t.report({node:d,messageId:T?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:R.loc,data:{importSource:x,allowedImportNamePattern:b,customMessage:T}}):t.report({node:d,messageId:T?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:R.loc,data:{importSource:x,importNames:v,customMessage:T}});return}(C&&C.includes(k)||v&&v.test(k))&&w.forEach(R=>{t.report({node:d,messageId:T?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:R.loc,data:{importSource:x,customMessage:T,importName:k}})}),A&&!A.includes(k)?w.forEach(R=>{t.report({node:d,messageId:T?"allowedImportNameWithCustomMessage":"allowedImportName",loc:R.loc,data:{importSource:x,customMessage:T,importName:k,allowedImportNames:A}})}):b&&!b.test(k)&&w.forEach(R=>{t.report({node:d,messageId:T?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:R.loc,data:{importSource:x,customMessage:T,importName:k,allowedImportNamePattern:b}})})})}function f(d,E){return E.regexMatcher?E.regexMatcher.test(d):E.matcher.ignores(d)}function g(d){const E=d.source.value.trim(),S=new Map;if(d.type==="ExportAllDeclaration"){const x=l.getFirstToken(d,1);S.set("*",[{loc:x.loc}])}else if(d.specifiers)for(const x of d.specifiers){let T;const C={loc:x.loc};x.type==="ImportDefaultSpecifier"?T="default":x.type==="ImportNamespaceSpecifier"?T="*":x.imported?T=a.getModuleExportName(x.imported):x.local&&(T=a.getModuleExportName(x.local)),typeof T=="string"&&(S.has(T)?S.get(T).push(C):S.set(T,[C]))}h(E,S,d),c.forEach(x=>{f(E,x)&&s(d,x,S)})}return{ImportDeclaration:g,ExportNamedDeclaration(d){d.source&&g(d)},ExportAllDeclaration:g}}},qu}var Vu,TE;function Vk(){if(TE)return Vu;TE=1;const a=Ue(),e=wE(),n={type:"array",items:{type:"string"},uniqueItems:!0},o={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Vu={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-restricted-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md"}}]},type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[o,{type:"array",items:{type:"object",properties:{paths:o,patterns:n},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(t){const l=Array.isArray(t.options)?t.options:[],p=typeof l[0]=="object"&&(Object.hasOwn(l[0],"paths")||Object.hasOwn(l[0],"patterns")),u=(p?l[0].paths:t.options)||[],r=(p?l[0].patterns:[])||[],m=u.reduce((d,E)=>(typeof E=="string"?d[E]=null:d[E.name]=E.message,d),{});if(Object.keys(u).length===0&&r.length===0)return{};const i=e({allowRelativePaths:!0}).add(r);function c(d){return d&&d.type==="Literal"&&typeof d.value=="string"}function h(d){return d.callee.type==="Identifier"&&d.callee.name==="require"}function s(d){return c(d)?d.value.trim():a.isStaticTemplateLiteral(d)?d.quasis[0].value.cooked.trim():null}function f(d,E){const S=m[E],x=S?"customMessage":"defaultMessage";t.report({node:d,messageId:x,data:{name:E,customMessage:S}})}function g(d){return Object.hasOwn(m,d)}return{CallExpression(d){if(h(d)&&d.arguments.length){const E=s(d.arguments[0]);E&&(g(E)&&f(d,E),r.length>0&&i.ignores(E)&&t.report({node:d,messageId:"patternMessage",data:{name:E}}))}}}}},Vu}var $u,kE;function $k(){if(kE)return $u;kE=1;const a=Ue();return $u={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{type:"object",properties:{object:{type:"string"},property:{type:"string"},allowObjects:{type:"array",items:{type:"string"},uniqueItems:!0},allowProperties:{type:"array",items:{type:"string"},uniqueItems:!0},message:{type:"string"}},anyOf:[{required:["object"]},{required:["property"]}],not:{anyOf:[{required:["allowObjects","object"]},{required:["allowProperties","property"]}]},additionalProperties:!1},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}"}},create(e){const n=e.options;if(n.length===0)return{};const o=new Map,t=new Map,l=new Map;n.forEach(r=>{const m=r.object,i=r.property;typeof m>"u"?l.set(i,{allowObjects:r.allowObjects,message:r.message}):typeof i>"u"?t.set(m,{allowProperties:r.allowProperties,message:r.message}):(o.has(m)||o.set(m,new Map),o.get(m).set(i,{message:r.message}))});function p(r,m){return m?m.includes(r):!1}function u(r,m,i){if(i===null)return;const c=o.get(m),h=c?c.get(i):t.get(m),s=l.get(i);if(h&&!p(i,h.allowProperties)){const f=h.message?` ${h.message}`:"",g=h.allowProperties?` Only these properties are allowed: ${h.allowProperties.join(", ")}.`:"";e.report({node:r,messageId:"restrictedObjectProperty",data:{objectName:m,propertyName:i,message:f,allowedPropertiesMessage:g}})}else if(s&&!p(m,s.allowObjects)){const f=s.message?` ${s.message}`:"",g=s.allowObjects?` Property '${i}' is only allowed on these objects: ${s.allowObjects.join(", ")}.`:"";e.report({node:r,messageId:"restrictedProperty",data:{propertyName:i,message:f,allowedObjectsMessage:g}})}}return{MemberExpression(r){u(r,r.object&&r.object.name,a.getStaticPropertyName(r))},ObjectPattern(r){let m=null;r.parent.type==="VariableDeclarator"?r.parent.init&&r.parent.init.type==="Identifier"&&(m=r.parent.init.name):(r.parent.type==="AssignmentExpression"||r.parent.type==="AssignmentPattern")&&r.parent.right.type==="Identifier"&&(m=r.parent.right.name),r.properties.forEach(i=>{u(r,m,a.getStaticPropertyName(i))})}}}},$u}var Wu,DE;function Wk(){return DE||(DE=1,Wu={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create(a){return a.options.reduce((e,n)=>{const o=typeof n=="string",t=!o&&!!n.message,l=o?n:n.selector,p=t?n.message:`Using '${l}' is not allowed.`;return Object.assign(e,{[l](u){a.report({node:u,messageId:"restrictedSyntax",data:{message:p}})}})},{})}}),Wu}var Gu,IE;function Gk(){if(IE)return Gu;IE=1;const a=Ue(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Gu={meta:{type:"suggestion",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(n){const o=n.options[0]!=="except-parens",t=n.sourceCode;return{AssignmentExpression(l){if(!o&&a.isParenthesised(t,l))return;let p=l,u=p.parent;for(;u&&!e.test(u.type);)p=u,u=u.parent;u&&u.type==="ReturnStatement"?n.report({node:u,messageId:"returnAssignment"}):u&&u.type==="ArrowFunctionExpression"&&u.body===p&&n.report({node:u,messageId:"arrowAssignment"})}}}},Gu}var zu,PE;function zk(){if(PE)return zu;PE=1;const a=Ue();return zu={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:{message:"The original assumption of the rule no longer holds true because of engine optimization.",deprecatedSince:"8.46.0",availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function n(l){e.report({node:e.sourceCode.getFirstToken(l),loc:l.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(p){const u=e.sourceCode,[r,m]=u.getFirstTokens(l,2);if(!(r.loc.start.line===m.loc.start.line))return null;const[c,h]=r.range,f=u.text[h]===" "?1:0,g=[c,h+f];return p.removeRange(g)}}]})}function o(l){let p=l;for(;!a.isFunction(p)&&p.type!=="Program";){if(p.parent.type==="TryStatement"&&(p===p.parent.block||p===p.parent.handler&&p.parent.finalizer))return!0;p=p.parent}return!1}function t(l){return l.parent.type==="ArrowFunctionExpression"?!0:l.parent.type==="ReturnStatement"?!o(l.parent):l.parent.type==="ConditionalExpression"&&(l===l.parent.consequent||l===l.parent.alternate)||l.parent.type==="LogicalExpression"&&l===l.parent.right||l.parent.type==="SequenceExpression"&&l===l.parent.expressions.at(-1)?t(l.parent):!1}return{AwaitExpression(l){t(l)&&!o(l)&&n(l)}}}},zu}var Hu,FE;function Hk(){if(FE)return Hu;FE=1;const a=Ue();return Hu={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function n(o){const t=a.getStaticStringValue(o);typeof t=="string"&&t.toLowerCase().indexOf("javascript:")===0&&e.report({node:o,messageId:"unexpectedScriptURL"})}return{Literal(o){o.value&&typeof o.value=="string"&&n(o)},TemplateLiteral(o){o.parent&&o.parent.type==="TaggedTemplateExpression"||n(o)}}}},Hu}var Ku,RE;function Kk(){if(RE)return Ku;RE=1;const a=Ue(),e=/\s+/gu;function n(o,t,l,p){if(!(!o||!t))if(o.type==="Identifier"&&t.type==="Identifier"&&o.name===t.name)p(t);else if(o.type==="ArrayPattern"&&t.type==="ArrayExpression"){const u=Math.min(o.elements.length,t.elements.length);for(let r=0;r<u;++r){const m=o.elements[r],i=t.elements[r];if(m&&m.type==="RestElement"&&r<t.elements.length-1||(n(m,i,l,p),i&&i.type==="SpreadElement"))break}}else if(o.type==="RestElement"&&t.type==="SpreadElement")n(o.argument,t.argument,l,p);else if(o.type==="ObjectPattern"&&t.type==="ObjectExpression"&&t.properties.length>=1){let u=0;for(let r=t.properties.length-1;r>=0;--r){const m=t.properties[r].type;if(m==="SpreadElement"||m==="ExperimentalSpreadProperty"){u=r+1;break}}for(let r=0;r<o.properties.length;++r)for(let m=u;m<t.properties.length;++m)n(o.properties[r],t.properties[m],l,p)}else if(o.type==="Property"&&t.type==="Property"&&t.kind==="init"&&!t.method){const u=a.getStaticPropertyName(o);u!==null&&u===a.getStaticPropertyName(t)&&n(o.value,t.value,l,p)}else l&&a.skipChainExpression(o).type==="MemberExpression"&&a.skipChainExpression(t).type==="MemberExpression"&&a.isSameReference(o,t)&&p(t)}return Ku={meta:{type:"problem",defaultOptions:[{props:!0}],docs:{description:"Disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean"}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(o){const t=o.sourceCode,[{props:l}]=o.options;function p(u){o.report({node:u,messageId:"selfAssignment",data:{name:t.getText(u).replace(e,"")}})}return{AssignmentExpression(u){["=","&&=","||=","??="].includes(u.operator)&&n(u.left,u.right,l,p)}}}},Ku}var Xu,_E;function Xk(){return _E||(_E=1,Xu={meta:{type:"problem",docs:{description:"Disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(a){const e=a.sourceCode;function n(o,t){const l=e.getTokens(o),p=e.getTokens(t);return l.length===p.length&&l.every((u,r)=>u.type===p[r].type&&u.value===p[r].value)}return{BinaryExpression(o){new Set(["===","==","!==","!=",">","<",">=","<="]).has(o.operator)&&n(o.left,o.right)&&a.report({node:o,messageId:"comparingToSelf"})}}}}),Xu}var Ju,BE;function Jk(){if(BE)return Ju;BE=1;const a=Ue();return Ju={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(e){const[{allowInParentheses:n}]=e.options,o=e.sourceCode,t={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function l(r){return r.parent&&t[r.parent.type]&&r===r.parent[t[r.parent.type]]}function p(r){return a.isParenthesised(o,r)}function u(r){const m=o.getTokenBefore(r,1),i=o.getTokenAfter(r,1);return p(r)&&m&&i&&a.isOpeningParenToken(m)&&m.range[1]<=r.range[0]&&a.isClosingParenToken(i)&&i.range[0]>=r.range[1]}return{SequenceExpression(r){if(r.parent.type==="ForStatement"&&(r===r.parent.init||r===r.parent.update))return;if(n){if(l(r)){if(u(r))return}else if(p(r))return}const m=o.getTokenAfter(r.expressions[0],a.isCommaToken);e.report({node:r,loc:m.loc,messageId:"unexpectedCommaExpression"})}}}},Ju}var Yu,LE;function Yk(){if(LE)return Yu;LE=1;const a=Ue();function e(t,l,p,u,r){const m=t.parent;return m.type==="CallExpression"&&m.arguments[r]===t&&a.isSpecificMemberAccess(m.callee,p,u)&&l.isGlobalReference(a.skipChainExpression(m.callee).object)}function n(t,l){if(e(t,l,"Object","defineProperty",2)||e(t,l,"Reflect","defineProperty",2))return!0;const p=t.parent;if(p.type==="Property"&&p.value===t){const u=p.parent;if(u.type==="ObjectExpression"&&(e(u,l,"Object","create",1)||e(u,l,"Object","defineProperties",1)))return!0}return!1}function o(t,l){const p=t.parent;return!!((p.type==="Property"||p.type==="MethodDefinition")&&p.kind==="set"&&p.value===t||p.type==="Property"&&p.value===t&&a.getStaticPropertyName(p)==="set"&&p.parent.type==="ObjectExpression"&&n(p.parent,l))}return Yu={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(t){let l=null;const p=t.sourceCode;function u(i){l={upper:l,isSetter:o(i,p)}}function r(){l=l.upper}function m(i){t.report({node:i,messageId:"returnsValue"})}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression(i){u(i),l.isSetter&&i.expression&&m(i.body)},"FunctionDeclaration:exit":r,"FunctionExpression:exit":r,"ArrowFunctionExpression:exit":r,ReturnStatement(i){l&&l.isSetter&&i.argument&&m(i)}}}},Yu}var Qu,OE;function Qk(){if(OE)return Qu;OE=1;const a=Ue(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),n=new Set(["CallExpression"]),o=/^For(?:In|Of)Statement$/u,t=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,l=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration"]),p=new Set(["TSCallSignatureDeclaration","TSFunctionType","TSMethodSignature","TSEmptyBodyFunctionExpression","TSDeclareFunction","TSConstructSignatureDeclaration","TSConstructorType"]);return Qu={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",defaultOptions:[{allow:[],builtinGlobals:!1,hoist:"functions",ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"},hoist:{enum:["all","functions","never","types","functions-and-types"]},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean"},ignoreTypeValueShadow:{type:"boolean"},ignoreFunctionTypeParameterNameValueShadow:{type:"boolean"}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(u){const[{builtinGlobals:r,hoist:m,allow:i,ignoreOnInitialization:c,ignoreTypeValueShadow:h,ignoreFunctionTypeParameterNameValueShadow:s}]=u.options,f=u.sourceCode;function g(G){return G.block.kind==="global"||!!G.upper&&g(G.upper)}function d(G){return G.name==="this"}function E(G,B){if(h!==!0||!("isValueVariable"in G))return!1;const z=B.defs[0],H=z&&z.parent?.type==="ImportDeclaration"&&(z.parent.importKind==="type"||z.parent.specifiers.some(re=>re.importKind==="type")),ce=!z||(H?!1:B.isValueVariable);return G.isValueVariable!==ce}function S(G){return s!==!0?!1:G.defs.some(B=>p.has(B.node.type))}function x(G){const z=G.identifiers[0].parent.parent;return z.type!=="TSTypeParameterDeclaration"?!1:z.parent.parent.static}function T(G){return x(G)}function C(G,B){return G&&G.range[0]<=B&&B<=G.range[1]}function v(G,B){let z=G;for(;z&&!B(z);)z=z.parent;return z}function A(G){const B=G.upper;return B&&B.type==="function-expression-name"?B.upper:B}function b(G,B){const z=B.defs[0];if(!z)return!1;const{variableScope:H}=G.scope;if(!(e.has(H.block.type)&&A(H)===B.scope))return!1;const ce=H.block,{parent:re}=ce,Fe=v(re,W=>n.has(W.type));if(!Fe)return!1;let X=z.name;const I=Fe.range[1];for(;X;){if(X.type==="VariableDeclarator"){if(C(X.init,I)||o.test(X.parent.parent.type)&&C(X.parent.parent.right,I))return!0;break}else if(X.type==="AssignmentPattern"){if(C(X.right,I))return!0}else if(t.test(X.type))break;X=X.parent}return!1}function w(G){return i.includes(G.name)}function k(G){const B=G.scope.block;return B.type==="ClassDeclaration"&&B.id===G.identifiers[0]}function R(G,B){const z=B.scope,H=B.defs[0],ce=H&&H.parent&&H.parent.range,re=G.scope,Fe=G.defs[0],X=Fe&&Fe.name.range;return ce&&X&&ce[0]<X[0]&&X[1]<ce[1]&&(Fe.type==="FunctionName"&&Fe.node.type==="FunctionExpression"||Fe.node.type==="ClassExpression")&&z===re.upper}function F(G){const B=G.defs[0];return B&&B.name.range}function L(G){const B=G.identifiers[0];let z;return B?z={global:!1,line:B.loc.start.line,column:B.loc.start.column+1}:z={global:!0},z}function P(G,B){const z=B.defs[0],H=F(G),ce=F(B);return!ce||H[1]>=ce[0]?!1:m==="types"?!l.has(z.node.type):m==="functions-and-types"?z.node.type!=="FunctionDeclaration"&&!l.has(z.node.type):H&&ce&&H[1]<ce[0]&&(m!=="functions"||!z||z.node.type!=="FunctionDeclaration")}function O(G){const B=u.filename;return!B.endsWith(".d.ts")&&!B.endsWith(".d.cts")&&!B.endsWith(".d.mts")?!1:G.defs.some(z=>z.type==="Variable"&&z.parent.declare||z.type==="ClassName"&&z.node.declare||z.type==="TSEnumName"&&z.node.declare||z.type==="TSModuleName"&&z.node.declare)}function q(G){const B=G.scope.block;return B.type==="TSEnumDeclaration"&&B.id===G.identifiers[0]}function N(G,B,z){const H=z.defs[0];if(!H||!H.parent||!(H.parent.type==="ImportDeclaration"&&(H.parent.importKind==="type"||H.parent.specifiers?.some(I=>I.type==="ImportSpecifier"&&I.importKind==="type"&&I.local.name===z.name))))return!1;const re=v(B.identifiers[0]?.parent,I=>I.type==="TSModuleDeclaration");if(!re)return!1;const Fe=H.parent.source.value,X=re.id.type==="Literal"?re.id.value:re.id.name;return Fe===X}function _(G){if(g(G))return;const B=G.variables;for(let z=0;z<B.length;++z){const H=B[z];if(H.identifiers.length===0||k(H)||q(H)||w(H)||O(H)||d(H))continue;const ce=a.getVariableByName(G.upper,H.name);if(ce&&(ce.identifiers.length>0||r&&"writeable"in ce)&&!R(H,ce)&&!(c&&b(H,ce))&&!(m!=="all"&&P(H,ce))&&!E(H,ce)&&!S(H)&&!T(H)&&!N(G,H,ce)){const re=L(ce),Fe=re.global?"noShadowGlobal":"noShadow",X={name:H.name};re.global||(X.shadowedLine=re.line,X.shadowedColumn=re.column),u.report({node:H.identifiers[0],messageId:Fe,data:X})}}}return{"Program:exit"(G){const z=f.getScope(G).childScopes.slice();for(;z.length;){const H=z.pop();z.push(...H.childScopes),_(H)}}}}},Qu}var Zu,NE;function Zk(){if(NE)return Zu;NE=1;function a(e){return e.name==="undefined"&&e.references.every(n=>!n.isWrite())&&e.defs.every(n=>n.node.type==="VariableDeclarator"&&n.node.init===null)}return Zu={meta:{type:"suggestion",defaultOptions:[{reportGlobalThis:!1}],docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[{type:"object",properties:{reportGlobalThis:{type:"boolean"}},additionalProperties:!1}],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){const[{reportGlobalThis:n}]=e.options,o=new Set(["undefined","NaN","Infinity","arguments","eval"]);n&&o.add("globalThis");const t=e.sourceCode,l=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(p){for(const u of t.getDeclaredVariables(p))if(u.defs.length>0&&o.has(u.name)&&!a(u))for(const r of u.defs){const m=r.name;l.has(m)||(l.add(m),e.report({node:m,messageId:"shadowingRestrictedName",data:{name:u.name}}))}}}}},Zu}var ec,ME;function eD(){return ME||(ME=1,ec={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(a){const e=a.sourceCode;function n(o){const t=e.getLastToken(o.callee);let l=t,p=e.getTokenAfter(t);for(;p&&p.range[1]<o.range[1]&&p.value!=="(";)l=p,p=e.getTokenAfter(p);p&&p.range[1]<o.range[1]&&e.isSpaceBetweenTokens(l,p)&&a.report({node:o,loc:t.loc.start,messageId:"noSpacedFunction",fix(u){return u.removeRange([l.range[1],p.range[0]])}})}return{CallExpression:n,NewExpression:n}}}),ec}var tc,jE;function tD(){if(jE)return tc;jE=1;const a=Ue();return tc={meta:{type:"problem",docs:{description:"Disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create(e){return{ArrayExpression(n){if(!n.elements.includes(null))return;const{sourceCode:o}=e;let t;for(const[l,p]of n.elements.entries()){if(l===n.elements.length-1&&p)return;t=o.getTokenAfter(p??t??o.getFirstToken(n),a.isCommaToken),!p&&e.report({node:n,loc:t.loc,messageId:"unexpectedSparseArray"})}}}}},tc}var rc,UE;function rD(){return UE||(UE=1,rc={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:null,replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-sync",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md"}}]},type:"suggestion",docs:{description:"Disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create(a){return{[a.options[0]&&a.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](n){a.report({node:n,messageId:"noSync",data:{propertyName:n.property.name}})}}}}),rc}var nc,qE;function nD(){if(qE)return nc;qE=1;const a=/\t+/gu,e=/\S/u;return nc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-tabs",url:"https://eslint.style/rules/no-tabs"}}]},type:"layout",docs:{description:"Disallow all tabs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(n){const o=n.sourceCode,t=n.options&&n.options[0]&&n.options[0].allowIndentationTabs;return{Program(l){o.getLines().forEach((p,u)=>{let r;for(;(r=a.exec(p))!==null;)t&&!e.test(p.slice(0,r.index))||n.report({node:l,loc:{start:{line:u+1,column:r.index},end:{line:u+1,column:r.index+r[0].length}},messageId:"unexpectedTab"})})}}}},nc}var sc,VE;function sD(){return VE||(VE=1,sc={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(a){const e=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value=="string"&&e.test(n.value)&&a.report({node:n,messageId:"unexpectedTemplateExpression"})}}}}),sc}var ac,$E;function aD(){return $E||($E=1,ac={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(a){return{ConditionalExpression(e){a.report({node:e,messageId:"noTernaryOperator"})}}}}),ac}var ic,WE;function iD(){if(WE)return ic;WE=1;const a=Ue();function e(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}class n{superCalled=!1;invalidNodes=[]}return ic={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(o){let t=null,l=Object.create(null);function p(h){return!h.reachable||l[h.id]?.superCalled}function u(){return!!(t&&t.isConstructor&&t.hasExtends)}function r(h){for(const s of h)if(!p(s))return!1;return!0}function m(){return u()&&!r(t.currentSegments)}function i(h){const s=t.currentSegments;for(const f of s)f.reachable&&l[f.id].invalidNodes.push(h)}function c(){const h=t.currentSegments;for(const s of h)s.reachable&&(l[s.id].superCalled=!0)}return{onCodePathStart(h,s){if(e(s)){const f=s.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:!!(f.superClass&&!a.isNullOrUndefined(f.superClass)),codePath:h,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){const s=t.hasExtends;if(t=t.upper,!s)return;const f=new Set;h.traverseSegments((g,d)=>{const E=l[g.id],S=E.invalidNodes.filter(x=>!f.has(x));for(const x of S)f.add(x),o.report({messageId:"noBeforeSuper",node:x,data:{kind:x.type==="Super"?"super":"this"}});E.superCalled&&d.skip()})},onCodePathSegmentStart(h){t.currentSegments.add(h),u()&&(l[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(p),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){t.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentEnd(h){t.currentSegments.delete(h)},onCodePathSegmentLoop(h,s){u()&&t.codePath.traverseSegments({first:s,last:h},(f,g)=>{const d=l[f.id]??new n;d.superCalled?g.skip():f.prevSegments.length>0&&f.prevSegments.every(p)&&(d.superCalled=!0),l[f.id]=d})},ThisExpression(h){m()&&i(h)},Super(h){!a.isCallee(h)&&m()&&i(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&m()&&c()},"Program:exit"(){l=Object.create(null)}}}},ic}var oc,GE;function oD(){if(GE)return oc;GE=1;const a=Ue();return oc={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(n){a.couldBeError(n.argument)?n.argument.type==="Identifier"&&n.argument.name==="undefined"&&e.report({node:n,messageId:"undef"}):e.report({node:n,messageId:"object"})}}}},oc}var lc,zE;function lD(){if(zE)return lc;zE=1;const a=Ue();return lc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-trailing-spaces",url:"https://eslint.style/rules/no-trailing-spaces"}}]},type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){const n=e.sourceCode,o="[ ]",t=`^${o}*$`,l=`${o}+$`,p=e.options[0]||{},u=p.skipBlankLines||!1,r=p.ignoreComments||!1;function m(c,h,s){e.report({node:c,loc:h,messageId:"trailingSpace",fix(f){return f.removeRange(s)}})}function i(c){const h=new Set;return c.forEach(s=>{const f=s.type==="Block"?s.loc.end.line-1:s.loc.end.line;for(let g=s.loc.start.line;g<=f;g++)h.add(g)}),h}return{Program:function(h){const s=new RegExp(l,"u"),f=new RegExp(t,"u"),g=n.lines,d=n.getText().match(a.createGlobalLinebreakMatcher()),E=n.getAllComments(),S=i(E);let x=0;for(let T=0,C=g.length;T<C;T++){const v=T+1,A=d&&d[T]?d[T].length:1,b=g[T].length+A,w=s.exec(g[T]);if(w){const k={start:{line:v,column:w.index},end:{line:v,column:b-A}},R=x+k.start.column,F=x+k.end.column,L=n.getNodeByRangeIndex(R);if(L&&L.type==="TemplateElement"&&R>L.parent.range[0]&&F<L.parent.range[1]){x+=b;continue}if(u&&f.test(g[T])){x+=b;continue}const P=[R,F];(!r||!S.has(v))&&m(h,k,P)}x+=b}}}}},lc}var uc,HE;function uD(){return HE||(HE=1,uc={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow `let` or `var` variables that are read but never assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unassigned-vars"},schema:[],messages:{unassigned:"'{{name}}' is always 'undefined' because it's never assigned."}},create(a){const e=a.sourceCode;let n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(o){const t=o.parent;if(o.init||o.id.type!=="Identifier"||t.kind==="const"||t.declare||n)return;const[p]=e.getDeclaredVariables(o);if(!p)return;let u=!1;for(const r of p.references){if(r.isWrite())return;r.isRead()&&(u=!0)}u&&a.report({node:o,messageId:"unassigned",data:{name:o.id.name}})}}}}),uc}var cc,KE;function cD(){if(KE)return cc;KE=1;function a(e){const n=e.parent;return n.type==="UnaryExpression"&&n.operator==="typeof"}return cc={meta:{type:"problem",defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean"}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(e){const[{typeof:n}]=e.options,o=e.sourceCode;return{"Program:exit"(t){o.getScope(t).through.forEach(p=>{const u=p.identifier;!n&&a(u)||e.report({node:u,messageId:"undef",data:u})})}}}},cc}var fc,XE;function fD(){if(XE)return fc;XE=1;const a=Ue(),e=new Set(["const","using","await using"]);return fc={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(n){const o=n.sourceCode;return{VariableDeclarator(t){const l=o.getText(t.id),p=t.init&&t.init.name,u=o.getScope(t),r=a.getVariableByName(u,"undefined"),m=r&&r.defs.length>0,i=o.getLastToken(t);p==="undefined"&&!e.has(t.parent.kind)&&!m&&n.report({node:t,messageId:"unnecessaryUndefinedInit",data:{name:l},fix(c){return t.parent.kind==="var"||t.id.type==="ArrayPattern"||t.id.type==="ObjectPattern"||o.commentsExistBetween(t.id,i)?null:c.removeRange([t.id.range[1],t.range[1]])}})}}}},fc}var pc,JE;function pD(){return JE||(JE=1,pc={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(a){const e=a.sourceCode;function n(t){a.report({node:t,messageId:"unexpectedUndefined"})}function o(t){const l=t.set.get("undefined");if(!l)return;const p=l.references,u=l.defs;p.filter(r=>!r.init).forEach(r=>n(r.identifier)),u.forEach(r=>n(r.name))}return{"Program:exit"(t){const p=[e.getScope(t)];for(;p.length;){const u=p.pop();p.push(...u.childScopes),o(u)}}}}}),pc}var mc,YE;function mD(){return YE||(YE=1,mc={meta:{type:"suggestion",defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean"},allowAfterSuper:{type:"boolean"},allowAfterThisConstructor:{type:"boolean"},enforceInMethodNames:{type:"boolean"},allowFunctionParams:{type:"boolean"},enforceInClassFields:{type:"boolean"},allowInArrayDestructuring:{type:"boolean"},allowInObjectDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(a){const[{allow:e,allowAfterSuper:n,allowAfterThis:o,allowAfterThisConstructor:t,allowFunctionParams:l,allowInArrayDestructuring:p,allowInObjectDestructuring:u,enforceInClassFields:r,enforceInMethodNames:m}]=a.options,i=a.sourceCode;function c(v){return e.includes(v)}function h(v){const A=v.length;return v!=="_"&&(v[0]==="_"||v[A-1]==="_")}function s(v){return v==="__proto__"}function f(v){return v==="_"}function g(v){return v.object.type==="MemberExpression"&&v.object.property.name==="constructor"&&v.object.object.type==="ThisExpression"}function d(v){l||v.params.forEach(A=>{const{type:b}=A;let w;if(b==="RestElement"?w=A.argument:b==="AssignmentPattern"?w=A.left:w=A,w.type==="Identifier"){const k=w.name;h(k)&&!c(k)&&a.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:k}})}})}function E(v){if(v.type==="FunctionDeclaration"&&v.id){const A=v.id.name;typeof A<"u"&&h(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:A}})}d(v)}function S(v){i.getDeclaredVariables(v).forEach(A=>{const w=A.defs.find(F=>F.node===v).name,k=w.name;let R=w.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(R.type);)R=R.parent;h(k)&&!f(k)&&!c(k)&&!(p&&R.type==="ArrayPattern")&&!(u&&R.type==="ObjectPattern")&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:k}})})}function x(v){const A=v.property.name,b=v.object.type==="ThisExpression",w=v.object.type==="Super",k=g(v);typeof A<"u"&&h(A)&&!(b&&o)&&!(w&&n)&&!(k&&t)&&!s(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:A}})}function T(v){const A=v.key.name,b=v.type==="MethodDefinition"||v.type==="Property"&&v.method;typeof A<"u"&&m&&b&&h(A)&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:v.key.type==="PrivateIdentifier"?`#${A}`:A}})}function C(v){const A=v.key.name;typeof A<"u"&&h(A)&&r&&!c(A)&&a.report({node:v,messageId:"unexpectedUnderscore",data:{identifier:v.key.type==="PrivateIdentifier"?`#${A}`:A}})}return{FunctionDeclaration:E,VariableDeclarator:S,MemberExpression:x,MethodDefinition:T,PropertyDefinition:C,Property:T,FunctionExpression:E,ArrowFunctionExpression:E}}}),mc}var hc,QE;function hD(){if(QE)return hc;QE=1;const a=Ue();return hc={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){const n=/^[gimsuy]+$/u,o=e.sourceCode;function t(l,p){const u=o.getTokenAfter(l,a.isNotClosingParenToken),r=o.getTokenBefore(u);u.loc.start.line!==r.loc.end.line&&e.report({node:l,loc:u.loc,messageId:p})}return{MemberExpression(l){!l.computed||l.optional||t(l.object,"property")},TaggedTemplateExpression(l){const{quasi:p}=l;o.getTokenBefore(p).loc.end.line!==p.loc.start.line&&e.report({node:l,loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(l){l.arguments.length===0||l.optional||t(l.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(l){const p=o.getTokenAfter(l,r=>r.value==="/"),u=o.getTokenAfter(p);u.type==="Identifier"&&n.test(u.value)&&p.range[1]===u.range[0]&&t(l.left,"division")}}}},hc}var dc,ZE;function dD(){if(ZE)return dc;ZE=1;const a=ra(),e=Ue(),n=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,o=/^(?:DoWhile|For|While)Statement$/u,t=/^(?:BinaryExpression|ConditionalExpression)$/u,l=/^(?:ArrowFunction|Class|Function)Expression$/u,p=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function u(f){if(f.init){const g=f.resolved&&f.resolved.defs[0];if(!g||g.type!=="Variable"||g.parent.kind!=="var")return!1}return f.isWrite()}function r(f){return!f.modified}function m(f){return!(f.modified||f.group)}function i(f,g){const d=f.range,E=g.identifier.range;return d[0]<=E[0]&&E[1]<=d[1]}const c={WhileStatement:i,DoWhileStatement:i,ForStatement(f,g){return i(f,g)&&!(f.init&&i(f.init,g))}};function h(f){let g=f.identifier;for(;g;){if(g.type==="FunctionDeclaration")return g.id?g:null;g=g.parent}return null}function s(f,g){for(let d=0;d<f.length;++d){const E=f[d];for(let S=0;!E.modified&&S<g.length;++S){const x=g[S];let T,C;const v=E.isInLoop(x)||!!((T=h(x))&&(C=e.getVariableByName(x.from.upper,T.id.name))&&C.references.some(E.isInLoop));E.modified=v}}}return dc={meta:{type:"problem",docs:{description:"Disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(f){const g=f.sourceCode;let d=null;function E(A){const b=A.reference.identifier;f.report({node:b,messageId:"loopConditionNotModified",data:b})}function S(A){for(let b=0;b<A.length;++b){const w=A[b];if(w.group){let k=d.get(w.group);k||(k=[],d.set(w.group,k)),k.push(w)}}}function x(A){A.every(r)&&A.forEach(E)}function T(A){let b=!1;return a.traverse(A,{visitorKeys:g.visitorKeys,enter(w){p.test(w.type)?(b=!0,this.break()):l.test(w.type)&&this.skip()}}),b}function C(A){if(A.init)return null;let b=null,w=A.identifier,k=w.parent;for(;k;){if(n.test(k.type)){if(o.test(k.type)&&k.test===w)return{reference:A,group:b,isInLoop:c[k.type].bind(null,k),modified:!1};break}if(t.test(k.type)){if(T(k))break;b=k}w=k,k=k.parent}return null}function v(A){const b=A.references.map(C).filter(Boolean);if(b.length===0)return;S(b);const w=A.references.filter(u);w.length>0&&s(b,w),b.filter(m).forEach(E)}return{"Program:exit"(A){const b=[g.getScope(A)];d=new Map;let w;for(;w=b.pop();)b.push(...w.childScopes),w.variables.forEach(v);d.forEach(x),d=null}}}},dc}var gc,eS;function gD(){if(eS)return gc;eS=1;const a=Ue(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),n={"==":"!=","!=":"==","===":"!==","!==":"==="},o=a.getPrecedence({type:"LogicalExpression",operator:"||"});return gc={meta:{type:"suggestion",defaultOptions:[{defaultAssignment:!0}],docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(t){const[{defaultAssignment:l}]=t.options,p=t.sourceCode;function u(c){return c.type==="Literal"&&typeof c.value=="boolean"}function r(c){if(c.type==="BinaryExpression"&&Object.hasOwn(n,c.operator)){const h=p.getFirstTokenBetween(c.left,c.right,f=>f.value===c.operator),s=p.getText();return s.slice(c.range[0],h.range[0])+n[c.operator]+s.slice(h.range[1],c.range[1])}return a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression"})?`!(${a.getParenthesisedText(p,c)})`:`!${a.getParenthesisedText(p,c)}`}function m(c){return c.type==="BinaryExpression"&&e.has(c.operator)||c.type==="UnaryExpression"&&c.operator==="!"}function i(c){return c.test.type==="Identifier"&&c.consequent.type==="Identifier"&&c.test.name===c.consequent.name}return{ConditionalExpression(c){u(c.alternate)&&u(c.consequent)?t.report({node:c,messageId:"unnecessaryConditionalExpression",fix(h){return c.consequent.value===c.alternate.value?c.test.type==="Identifier"?h.replaceText(c,c.consequent.value.toString()):null:c.alternate.value?h.replaceText(c,r(c.test)):h.replaceText(c,m(c.test)?a.getParenthesisedText(p,c.test):`!${r(c.test)}`)}}):!l&&i(c)&&t.report({node:c,messageId:"unnecessaryConditionalAssignment",fix(h){const f=(a.getPrecedence(c.alternate)<o||a.isCoalesceExpression(c.alternate))&&!a.isParenthesised(p,c.alternate)?`(${p.getText(c.alternate)})`:a.getParenthesisedText(p,c.alternate),g=a.getParenthesisedText(p,c.test);return h.replaceText(c,`${g} || ${f}`)}})}}}},gc}var yc,tS;function yD(){if(tS)return yc;tS=1;function a(o){return!!o.init}function e(o){for(const t of o)if(t.reachable)return!1;return!0}class n{constructor(t){this.sourceCode=t,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(t){return t.range[0]>=this.startNode.range[0]&&t.range[1]<=this.endNode.range[1]}isConsecutive(t){return this.contains(this.sourceCode.getTokenBefore(t))}merge(t){this.endNode=t}reset(t){this.startNode=this.endNode=t}}return yc={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(o){let t=null;const l=new n(o.sourceCode),p=[];let u=new Set;function r(m){let i=null;if(m&&(m.type==="PropertyDefinition"||e(u))){if(l.isEmpty){l.reset(m);return}if(l.contains(m))return;if(l.isConsecutive(m)){l.merge(m);return}i=m}l.isEmpty||o.report({messageId:"unreachableCode",loc:l.location,node:l.startNode}),l.reset(i)}return{onCodePathStart(){p.push(u),u=new Set},onCodePathEnd(){u=p.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},BlockStatement:r,BreakStatement:r,ClassDeclaration:r,ContinueStatement:r,DebuggerStatement:r,DoWhileStatement:r,ExpressionStatement:r,ForInStatement:r,ForOfStatement:r,ForStatement:r,IfStatement:r,ImportDeclaration:r,LabeledStatement:r,ReturnStatement:r,SwitchStatement:r,ThrowStatement:r,TryStatement:r,VariableDeclaration(m){(m.kind!=="var"||m.declarations.some(a))&&r(m)},WhileStatement:r,WithStatement:r,ExportNamedDeclaration:r,ExportDefaultDeclaration:r,ExportAllDeclaration:r,"Program:exit"(){r()},"MethodDefinition[kind='constructor']"(){t={upper:t,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(m){const{hasSuperCall:i}=t;if(t=t.upper,!m.value.body)return;const c=m.parent.parent;if(c.superClass&&!i)for(const h of c.body.body)h.type==="PropertyDefinition"&&!h.static&&r(h)},"CallExpression > Super.callee"(){t&&(t.hasSuperCall=!0)}}}},yc}var vc,rS;function vD(){if(rS)return vc;rS=1;const a=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(t){for(const l of t)if(l.reachable)return!0;return!1}function n(t){const l=t.parent;if(l)switch(l.type){case"WhileStatement":return t===l.test;case"DoWhileStatement":return t===l.body;case"ForStatement":return t===(l.update||l.test||l.body);case"ForInStatement":case"ForOfStatement":return t===l.left}return!1}function o(t,l){return t.filter(p=>!l.includes(p))}return vc={meta:{type:"problem",defaultOptions:[{ignore:[]}],docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:a},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){const[{ignore:l}]=t.options,p=o(a,l),u=p.join(","),r=new Map,m=new Set,i=[];let c=new Set;return{onCodePathStart(){i.push(c),c=new Set},onCodePathEnd(){c=i.pop()},onUnreachableCodePathSegmentStart(h){c.add(h)},onUnreachableCodePathSegmentEnd(h){c.delete(h)},onCodePathSegmentEnd(h){c.delete(h)},onCodePathSegmentStart(h,s){if(c.add(h),n(s)){const f=s.parent;r.set(h,f)}},onCodePathSegmentLoop(h,s,f){const g=r.get(s);(f===g||f.type==="ContinueStatement")&&m.delete(g)},[u](h){e(c)&&m.add(h)},"Program:exit"(){m.forEach(h=>t.report({node:h,messageId:"invalid"}))}}}},vc}var Ec,nS;function ED(){if(nS)return Ec;nS=1;const a=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return Ec={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(o){function t(u){return u.parent.type==="TryStatement"&&u.parent.finalizer===u}function l(u,r){let m=!1,i;u.type==="BreakStatement"&&!u.label?i=e:u.type==="ContinueStatement"?i=n:i=a;for(let c=u;c&&!i.test(c.type);c=c.parent)if(c.parent.label&&r&&c.parent.label.name===r.name&&(m=!0),t(c))return!(r&&m);return!1}function p(u){l(u,u.label)&&o.report({messageId:"unsafeUsage",data:{nodeType:u.type},node:u,line:u.loc.line,column:u.loc.column})}return{ReturnStatement:p,ThrowStatement:p,BreakStatement:p,ContinueStatement:p}}},Ec}var Sc,sS;function SD(){if(sS)return Sc;sS=1;const a=Ue();function e(t){return t==="in"||t==="instanceof"}function n(t){return t==="<"||t===">"||t===">="||t==="<="}function o(t){return t.type==="UnaryExpression"&&t.operator==="!"}return Sc={meta:{type:"problem",defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(t){const l=t.sourceCode,[{enforceForOrderingRelations:p}]=t.options;return{BinaryExpression(u){const r=u.operator,m=p&&n(r);(e(r)||m)&&o(u.left)&&!a.isParenthesised(l,u.left)&&t.report({node:u,loc:u.left.loc,messageId:"unexpected",data:{operator:r},suggest:[{messageId:"suggestNegatedExpression",data:{operator:r},fix(i){const h=[l.getFirstToken(u.left).range[1],u.range[1]],s=l.text.slice(h[0],h[1]);return i.replaceTextRange(h,`(${s})`)}},{messageId:"suggestParenthesisedNegation",fix(i){return i.replaceText(u.left,`(${l.getText(u.left)})`)}}]})}}}},Sc}var bc,aS;function bD(){if(aS)return bc;aS=1;const a=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),n=new Set(["in","instanceof"]);function o(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}return bc={meta:{type:"problem",defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(t){const[{disallowArithmeticOperators:l}]=t.options;function p(c){t.report({messageId:"unsafeOptionalChain",node:c})}function u(c){t.report({messageId:"unsafeArithmetic",node:c})}function r(c,h){if(c)switch(c.type){case"LogicalExpression":c.operator==="||"||c.operator==="??"?r(c.right,h):c.operator==="&&"&&(r(c.left,h),r(c.right,h));break;case"SequenceExpression":r(c.expressions.at(-1),h);break;case"ConditionalExpression":r(c.consequent,h),r(c.alternate,h);break;case"AwaitExpression":r(c.argument,h);break;case"ChainExpression":h(c);break}}function m(c){r(c,p)}function i(c){r(c,u)}return{"AssignmentExpression, AssignmentPattern"(c){o(c.left)&&m(c.right)},"ClassDeclaration, ClassExpression"(c){m(c.superClass)},CallExpression(c){c.optional||m(c.callee)},NewExpression(c){m(c.callee)},VariableDeclarator(c){o(c.id)&&m(c.init)},MemberExpression(c){c.optional||m(c.object)},TaggedTemplateExpression(c){m(c.tag)},ForOfStatement(c){m(c.right)},SpreadElement(c){c.parent&&c.parent.type!=="ObjectExpression"&&m(c.argument)},BinaryExpression(c){n.has(c.operator)&&m(c.right),l&&a.has(c.operator)&&(i(c.right),i(c.left))},WithStatement(c){m(c.object)},UnaryExpression(c){l&&a.has(c.operator)&&i(c.argument)},AssignmentExpression(c){l&&e.has(c.operator)&&i(c.right)}}}},bc}var xc,iS;function xD(){if(iS)return xc;iS=1;const a=Ue();function e(){return!0}function n(){return!1}return xc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean"},allowTernary:{type:"boolean"},allowTaggedTemplates:{type:"boolean"},enforceForJSX:{type:"boolean"},ignoreDirectives:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(o){const[{allowShortCircuit:t,allowTernary:l,allowTaggedTemplates:p,enforceForJSX:u,ignoreDirectives:r}]=o.options;function m(f){return f.type==="ExpressionStatement"&&f.expression.type==="Literal"&&typeof f.expression.value=="string"}function i(f,g){for(let d=0;d<g.length;++d)if(!f(g[d]))return g.slice(0,d);return g.slice()}function c(f){return i(m,f.body)}function h(f){return a.isTopLevelExpressionStatement(f)&&c(f.parent).includes(f)}const s=Object.assign(Object.create(null),{isDisallowed(f){return(s[f.type]||n)(f)},ArrayExpression:e,ArrowFunctionExpression:e,BinaryExpression:e,ChainExpression(f){return s.isDisallowed(f.expression)},ClassExpression:e,ConditionalExpression(f){return l?s.isDisallowed(f.consequent)||s.isDisallowed(f.alternate):!0},FunctionExpression:e,Identifier:e,JSXElement(){return u},JSXFragment(){return u},Literal:e,LogicalExpression(f){return t?s.isDisallowed(f.right):!0},MemberExpression:e,MetaProperty:e,ObjectExpression:e,SequenceExpression:e,TaggedTemplateExpression(){return!p},TemplateLiteral:e,ThisExpression:e,UnaryExpression(f){return f.operator!=="void"&&f.operator!=="delete"},TSAsExpression(f){return s.isDisallowed(f.expression)},TSTypeAssertion(f){return s.isDisallowed(f.expression)},TSNonNullExpression(f){return s.isDisallowed(f.expression)},TSInstantiationExpression(f){return s.isDisallowed(f.expression)}});return{ExpressionStatement(f){s.isDisallowed(f.expression)&&!a.isDirective(f)&&!(r&&h(f))&&o.report({node:f,messageId:"unusedExpression"})}}}},xc}var Cc,oS;function CD(){if(oS)return Cc;oS=1;const a=Ue();return Cc={meta:{type:"suggestion",docs:{description:"Disallow unused labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(e){const n=e.sourceCode;let o=null;function t(r){o={label:r.label.name,used:!1,upper:o}}function l(r){if(n.getTokenAfter(r.label,{includeComments:!0})!==n.getTokenBefore(r.body,{includeComments:!0}))return!1;let m=r.parent;for(;m.type==="LabeledStatement";)m=m.parent;if(m.type==="Program"||m.type==="BlockStatement"&&a.isFunction(m.parent)){const{body:i}=r;if(i.type==="ExpressionStatement"&&(i.expression.type==="Literal"&&typeof i.expression.value=="string"||a.isStaticTemplateLiteral(i.expression)))return!1}return!0}function p(r){o.used||e.report({node:r.label,messageId:"unused",data:r.label,fix:l(r)?m=>m.removeRange([r.range[0],r.body.range[0]]):null}),o=o.upper}function u(r){if(!r.label)return;const m=r.label.name;let i=o;for(;i;){if(i.label===m){i.used=!0;break}i=i.upper}}return{LabeledStatement:t,"LabeledStatement:exit":p,BreakStatement:u,ContinueStatement:u}}},Cc}var wc,lS;function wD(){return lS||(lS=1,wc={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(a){const e=[];function n(o){const t=o.parent.parent,l=t.type==="AssignmentExpression";return!l&&t.type!=="ForInStatement"&&t.type!=="ForOfStatement"&&t.type!=="AssignmentPattern"||t.left!==o.parent?!1:l&&t.operator!=="="?t.parent.type==="ExpressionStatement":!0}return{ClassBody(o){const t=new Map;e.unshift(t);for(const l of o.body)(l.type==="PropertyDefinition"||l.type==="MethodDefinition")&&l.key.type==="PrivateIdentifier"&&t.set(l.key.name,{declaredNode:l,isAccessor:l.type==="MethodDefinition"&&(l.kind==="set"||l.kind==="get")})},PrivateIdentifier(o){const t=e.find(r=>r.has(o.name));if(!t)return;const l=t.get(o.name);if(l.isUsed||o.parent.type==="PropertyDefinition"||o.parent.type==="MethodDefinition")return;if(l.isAccessor){l.isUsed=!0;return}if(n(o))return;const p=o.parent.parent.type,u=o.parent.parent.parent.type;p==="UpdateExpression"&&u==="ExpressionStatement"||p==="Property"&&u==="ObjectPattern"&&o.parent.parent.value===o.parent||p!=="RestElement"&&p!=="ArrayPattern"&&(l.isUsed=!0)},"ClassBody:exit"(){const o=e.shift();for(const[t,{declaredNode:l,isUsed:p}]of o.entries())p||a.report({node:l,loc:l.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${t}`}})}}}}),wc}var Ac,uS;function AD(){if(uS)return Ac;uS=1;const a=Ue();return Ac={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},hasSuggestions:!0,schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},ignoreUsingDeclarations:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}.",removeVar:"Remove unused variable '{{varName}}'."}},create(e){const n=e.sourceCode,o=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,t={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1},l=e.options[0];l&&(typeof l=="string"?t.vars=l:(t.vars=l.vars||t.vars,t.args=l.args||t.args,t.ignoreRestSiblings=l.ignoreRestSiblings||t.ignoreRestSiblings,t.caughtErrors=l.caughtErrors||t.caughtErrors,t.ignoreClassWithStaticInitBlock=l.ignoreClassWithStaticInitBlock||t.ignoreClassWithStaticInitBlock,t.ignoreUsingDeclarations=l.ignoreUsingDeclarations||t.ignoreUsingDeclarations,t.reportUsedIgnorePattern=l.reportUsedIgnorePattern||t.reportUsedIgnorePattern,l.varsIgnorePattern&&(t.varsIgnorePattern=new RegExp(l.varsIgnorePattern,"u")),l.argsIgnorePattern&&(t.argsIgnorePattern=new RegExp(l.argsIgnorePattern,"u")),l.caughtErrorsIgnorePattern&&(t.caughtErrorsIgnorePattern=new RegExp(l.caughtErrorsIgnorePattern,"u")),l.destructuredArrayIgnorePattern&&(t.destructuredArrayIgnorePattern=new RegExp(l.destructuredArrayIgnorePattern,"u"))));function p(P){if(t.destructuredArrayIgnorePattern&&P.name.parent.type==="ArrayPattern")return"array-destructure";switch(P.type){case"CatchClause":return"catch-clause";case"Parameter":return"parameter";default:return"variable"}}function u(P){let O,q;switch(P){case"array-destructure":O=t.destructuredArrayIgnorePattern,q="elements of array destructuring";break;case"catch-clause":O=t.caughtErrorsIgnorePattern,q="caught errors";break;case"parameter":O=t.argsIgnorePattern,q="args";break;case"variable":O=t.varsIgnorePattern,q="vars";break;default:throw new Error(`Unexpected variable type: ${P}`)}return O&&(O=O.toString()),[q,O]}function r(P){const O=P.defs&&P.defs[0];let q="";if(O){const[N,_]=u(p(O));_&&N&&(q=`. Allowed unused ${N} must match ${_}`)}return{varName:P.name,action:"defined",additional:q}}function m(P){const O=P.defs&&P.defs[0];let q="";if(O){const[N,_]=u(p(O));_&&N&&(q=`. Allowed unused ${N} must match ${_}`)}return{varName:P.name,action:"assigned a value",additional:q}}function i(P,O){const[q,N]=u(O);let _="";return N&&q&&(_=`. Used ${q} must not match ${N}`),{varName:P.name,additional:_}}const c=/(?:Statement|Declaration)$/u;function h(P){const O=P.defs[0];if(O){let q=O.node;if(q.type==="VariableDeclarator")q=q.parent;else if(O.type==="Parameter")return!1;return q.parent.type.indexOf("Export")===0}return!1}function s(P){const[O]=P.defs;return O?.type==="Variable"&&(O.parent.kind==="using"||O.parent.kind==="await using")}function f(P){return P.type==="Property"&&P.parent.type==="ObjectPattern"&&o.test(P.parent.properties.at(-1).type)}function g(P){if(t.ignoreRestSiblings){const O=P.defs.some(N=>f(N.name.parent)),q=P.references.some(N=>f(N.identifier.parent));return O||q}return!1}function d(P){return P.isRead()}function E(P,O){let q=P.from;for(;q;){if(O.includes(q.block))return!0;q=q.upper}return!1}function S(P){const O=[];return P.defs.forEach(q=>{const{type:N,node:_}=q;N==="FunctionName"&&O.push(_),N==="Variable"&&_.init&&(_.init.type==="FunctionExpression"||_.init.type==="ArrowFunctionExpression")&&O.push(_.init)}),O}function x(P,O){return P.range[0]>=O.range[0]&&P.range[1]<=O.range[1]}function T(P){const O=P.parent;return O.type==="ExpressionStatement"?!0:O.type==="SequenceExpression"?O.expressions.at(-1)===P?T(O):!0:!1}function C(P,O){const q=P.identifier,N=q.parent,_=P.from.variableScope,G=P.resolved.scope.variableScope,B=_!==G||a.isInLoop(q);return O&&x(q,O)?O:N.type==="AssignmentExpression"&&T(N)&&q===N.left&&!B?N.right:null}function v(P,O){let q=P,N=P.parent;for(;N&&x(N,O);){switch(N.type){case"SequenceExpression":if(N.expressions.at(-1)!==q)return!1;break;case"CallExpression":case"NewExpression":return N.callee!==q;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(N.type))return!0}q=N,N=N.parent}return!1}function A(P,O){const q=a.getUpperFunction(P);return q&&x(q,O)&&v(q,O)}function b(P,O){const q=P.identifier,N=q.parent;return P.isRead()&&(N.type==="AssignmentExpression"&&N.left===q&&T(N)&&!a.isLogicalAssignmentOperator(N.operator)||N.type==="UpdateExpression"&&T(N)||O&&x(q,O)&&!A(q,O))}function w(P){let O=P.identifier.parent;return O.type==="VariableDeclarator"&&(O=O.parent.parent),O.type!=="ForInStatement"&&O.type!=="ForOfStatement"||(O.body.type==="BlockStatement"?O=O.body.body[0]:O=O.body,!O)?!1:O.type==="ReturnStatement"}function k(P){if(P.eslintUsed)return!0;const O=S(P),q=O.length>0;let N=null;return P.references.some(_=>{if(w(_))return!0;const G=b(_,N);return N=C(_,N),d(_)&&!G&&!(q&&E(_,O))})}function R(P){const O=P.defs[0],q=n.getDeclaredVariables(O.node);return!q.slice(q.indexOf(P)+1).some(_=>_.references.length>0||_.eslintUsed)}function F(P,O){const q=P.variables,N=P.childScopes;let _,G;if(P.type!=="global"||t.vars==="all")for(_=0,G=q.length;_<G;++_){const B=q[_];if(P.type==="class"&&P.block.id===B.identifiers[0]||P.functionExpressionScope||!t.reportUsedIgnorePattern&&B.eslintUsed||P.type==="function"&&B.name==="arguments"&&B.identifiers.length===0)continue;const z=B.defs[0];if(z){const H=z.type,ce=B.references.some(re=>re.identifier.parent.type==="ArrayPattern");if((z.name.parent.type==="ArrayPattern"||ce)&&t.destructuredArrayIgnorePattern&&t.destructuredArrayIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"array-destructure")});continue}if(H==="ClassName"){const re=z.node.body.body.some(Fe=>Fe.type==="StaticBlock");if(t.ignoreClassWithStaticInitBlock&&re)continue}if(H==="CatchClause"){if(t.caughtErrors==="none")continue;if(t.caughtErrorsIgnorePattern&&t.caughtErrorsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"catch-clause")});continue}}else if(H==="Parameter"){if((z.node.parent.type==="Property"||z.node.parent.type==="MethodDefinition")&&z.node.parent.kind==="set"||t.args==="none")continue;if(t.argsIgnorePattern&&t.argsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"parameter")});continue}if(t.args==="after-used"&&a.isFunction(z.name.parent)&&!R(B))continue}else if(t.varsIgnorePattern&&t.varsIgnorePattern.test(z.name.name)){t.reportUsedIgnorePattern&&k(B)&&e.report({node:z.name,messageId:"usedIgnoredVar",data:i(B,"variable")});continue}}!k(B)&&!h(B)&&!(t.ignoreUsingDeclarations&&s(B))&&!g(B)&&O.push(B)}for(_=0,G=N.length;_<G;++_)F(N[_],O);return O}function L(P,O){const q=O.identifiers[0],N=q.parent,_=N.type,G=n.getTokenBefore(q),B=n.getTokenAfter(q),z=a.isFunction,H=a.isLoop,ce=O.references.filter(Q=>Q.isWrite());function re(Q,ke){return n.getTokenBefore(Q,ke).range[0]}function Fe(Q,ke){return n.getTokenAfter(Q,ke).range[1]}function X(Q){return n.getTokenBefore(Q).value}function I(Q){return n.getTokenAfter(Q).value}function W(Q){return Q.elements.filter(ke=>ke!==null).length===1}function oe(Q,ke){return Q.specifiers.some($=>$.type===ke)}function ie(Q,ke){return Q.type==="String"||ke&&!a.isSemicolonToken(ke)&&!a.isOpeningBraceToken(ke)}function se(Q){const ke=Q.parent;return z(ke)?ke.params.length===1?P.removeRange(Q.range):X(Q)==="("&&I(Q)===","?P.removeRange([Q.range[0],Fe(Q)]):P.removeRange([re(Q),Q.range[1]]):null}function de(Q){const ke=Q.parent;if(ke.type==="VariableDeclarator"){if(H(ke.parent.parent))return null;if(ke.parent.declarations.length===1){const $=n.getTokenAfter(ke.parent),ae=n.getTokenBefore(ke.parent);return $&&ie($,ae)?null:P.removeRange(ke.parent.range)}return X(ke)===","?P.removeRange([re(ke),ke.range[1]]):P.removeRange([ke.range[0],Fe(ke)])}return X(Q)===":"&&ke.parent.type==="ObjectPattern"?Te(Q):se(Q)}function be(Q){const ke=Q.parent;return ke.parent.parent.parent.type==="ObjectPattern"&&ke.parent.properties.length===1?be(ke.parent):ke.parent.type==="ObjectPattern"?ke.parent.properties.length===1?de(ke.parent):X(ke)==="{"?P.removeRange([ke.range[0],Fe(ke)]):P.removeRange([re(ke),ke.range[1]]):null}function xe(Q){const ke=Q.parent;return ke.parent.type==="ArrayPattern"&&W(ke)?xe(ke):W(ke)?X(ke)===":"?de(ke):ke.parent.type==="RestElement"?J(ke.parent):de(ke):X(Q)===","&&I(Q)==="]"?P.removeRange([re(Q),Q.range[1]]):P.removeRange(Q.range)}function Te(Q){const ke=Q.parent.parent;return ke.parent.type==="ArrayPattern"&&ke.properties.length===1?xe(ke):be(Q)}function J(Q){const ke=Q.parent;return z(ke)?ke.params.length===1?P.removeRange(Q.range):P.removeRange([re(Q),Q.range[1]]):ke.type==="ArrayPattern"?W(ke)?ke.parent.type==="ArrayPattern"?xe(ke):de(ke):P.removeRange([re(Q),Q.range[1]]):null}if(ce.some(Q=>Q.identifier.range[0]!==q.range[0]))return null;if(_==="VariableDeclarator"){if(N.parent.declarations.length===1){if(H(N.parent.parent)&&N.parent.parent.body!==N.parent)return null;if(N.parent.parent.type==="IfStatement"||H(N.parent.parent)||N.parent.parent.type==="WithStatement"&&N.parent.parent.body===N.parent)return P.replaceText(N.parent,";");const Q=n.getTokenAfter(N.parent),ke=n.getTokenBefore(N.parent);return Q&&ie(Q,ke)?null:P.removeRange(N.parent.range)}return G.value===","?P.removeRange([G.range[0],N.range[1]]):P.removeRange([N.range[0],Fe(N)])}if(N.parent.type==="ObjectPattern"){if(N.parent.properties.length===1)return N.parent.parent.type==="RestElement"?J(N.parent.parent):N.parent.parent.type==="ArrayPattern"?xe(N.parent):de(N.parent);if(G.value===":")return X(N)==="{"&&I(N)===","?P.removeRange([N.range[0],Fe(N)]):P.removeRange([re(N),q.range[1]])}if(_==="ArrayPattern"){if(W(N))return N.parent.type==="RestElement"?J(N.parent):N.parent.type==="ArrayPattern"?xe(N):de(N);if(G.value===","&&B.value===",")return P.removeRange(q.range)}if(_==="RestElement"){if(N.parent.type==="ArrayPattern")return W(N.parent)?N.parent.parent.type==="ArrayPattern"?xe(N.parent):de(N.parent):P.removeRange([re(q,1),q.range[1]]);if(N.parent.type==="ObjectPattern")return N.parent.properties.length===1?de(N.parent):P.removeRange([re(q,1),q.range[1]]);if(z(N.parent))return N.parent.params.length===1?P.removeRange(N.range):P.removeRange([re(N),N.range[1]])}if(_==="AssignmentPattern"){if(N.parent.type==="ArrayPattern")return xe(N);if(N.parent.parent.type==="ObjectPattern")return N.parent.parent.properties.length===1?N.parent.parent.parent.type==="ArrayPattern"?xe(N.parent.parent):de(N.parent.parent):X(N.parent)==="{"&&I(N.parent)===","?P.removeRange([N.parent.range[0],Fe(N.parent)]):P.removeRange([re(N.parent),N.parent.range[1]]);if(z(N.parent))return se(N)}if(_==="FunctionDeclaration"&&N.id===q)return P.removeRange(N.range);if(_==="ImportDefaultSpecifier")return!oe(N.parent,"ImportSpecifier")&&!oe(N.parent,"ImportNamespaceSpecifier")?P.removeRange([N.range[0],N.parent.source.range[0]]):P.removeRange([q.range[0],B.range[1]]);if(_==="ImportSpecifier")return N.parent.specifiers.filter(Q=>Q.type==="ImportSpecifier").length===1?oe(N.parent,"ImportDefaultSpecifier")?P.removeRange([re(N,1),B.range[1]]):P.removeRange(N.parent.range):X(N)==="{"?P.removeRange([N.range[0],Fe(N)]):P.removeRange([re(N),N.range[1]]);if(_==="ImportNamespaceSpecifier")return oe(N.parent,"ImportDefaultSpecifier")?P.removeRange([re(N),N.range[1]]):P.removeRange([N.range[0],N.parent.source.range[0]]);if(_==="CatchClause")return null;if(_==="ClassDeclaration")return P.removeRange(N.range);if(G?.value===",")return P.removeRange([G.range[0],q.range[1]]);if(B.value===","){if(G.value==="(")return P.removeRange([q.range[0],B.range[1]]);if(G.value==="{")return P.removeRange([q.range[0],B.range[1]])}return _==="ArrowFunctionExpression"&&N.params.length===1&&B?.value!==")"?P.replaceText(q,"()"):P.removeRange(q.range)}return{"Program:exit"(P){const O=F(n.getScope(P),[]);for(let q=0,N=O.length;q<N;++q){const _=O[q];if(_.defs.length>0){const G=_.references.filter(z=>z.isWrite()&&z.from.variableScope===_.scope.variableScope);let B;G.length>0&&(B=G.at(-1)),e.report({node:B?B.identifier:_.identifiers[0],messageId:"unusedVar",data:_.references.some(z=>z.isWrite())?m(_):r(_),suggest:[{messageId:"removeVar",data:{varName:_.name},fix(z){return L(z,_)}}]})}else if(_.eslintExplicitGlobalComments){const G=_.eslintExplicitGlobalComments[0];e.report({node:P,loc:a.getNameLocationInGlobalDirectiveComment(n,G,_.name),messageId:"unusedVar",data:r(_)})}}}}}},Ac}var Tc,cS;function TD(){if(cS)return Tc;cS=1;const a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function n(i){return typeof i=="object"&&i!==null?i:{functions:typeof i=="string"?i!=="nofunc":!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function o(i,c){return i&&i.range[0]<=c&&c<=i.range[1]}function t(i,c){return i.body.some(h=>h.type==="StaticBlock"&&o(h,c)||h.type==="PropertyDefinition"&&h.static&&h.value&&o(h.value,c))}function l(i){return i.type==="class-static-block"?!0:i.type==="class-field-initializer"?i.block.parent.static:!1}function p(i){const c=i.resolved;let h=i.from;for(;c.scope.variableScope!==h.variableScope;)if(l(h.variableScope))h=h.variableScope.upper;else return!0;return!1}function u(i){if(p(i))return!1;const c=i.identifier.range[1],h=i.resolved.defs[0];if(h.type==="ClassName"){const f=h.node;return o(f,c)&&!t(f.body,c)}let s=h.name.parent;for(;s;){if(s.type==="VariableDeclarator"){if(o(s.init,c)||e.test(s.parent.parent.type)&&o(s.parent.parent.right,c))return!0;break}else if(s.type==="AssignmentPattern"){if(o(s.right,c))return!0}else if(a.test(s.type))break;s=s.parent}return!1}function r(i){switch(i.type){case"TSTypeQuery":return!0;case"TSQualifiedName":case"Identifier":return r(i.parent);default:return!1}}function m(i,c){if(i.defs[0].type!=="ClassName"||!i.defs[0].node.decorators||i.defs[0].node.decorators.length===0)return!1;for(const h of i.defs[0].node.decorators)if(c.identifier.range[0]>=h.range[0]&&c.identifier.range[1]<=h.range[1])return!0;return!1}return Tc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"},enums:{type:"boolean"},typedefs:{type:"boolean"},ignoreTypeReferences:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(i){const c=n(i.options[0]),h=i.sourceCode;function s(g){if(g.init)return!1;const{identifier:d}=g;if(c.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;const E=g.resolved;if(!E||E.defs.length===0)return!1;const S=E.defs[0].type;if(!c.functions&&S==="FunctionName"||(!c.variables&&S==="Variable"||!c.classes&&S==="ClassName")&&p(g)||!c.enums&&S==="TSEnumName"||!c.typedefs&&S==="Type"||c.ignoreTypeReferences&&(r(d)||d.parent.type==="TSTypeReference"))return!1;if(d.parent.type==="TSQualifiedName"){let x=d.parent;for(;x.type==="TSQualifiedName";)x=x.left;return x===d}return!m(E,g)}function f(g){g.references.filter(s).forEach(d=>{const S=d.resolved.defs[0].name;(d.identifier.range[1]<S.range[1]||u(d)&&d.identifier.parent.type!=="TSTypeReference")&&i.report({node:d.identifier,messageId:"usedBeforeDefined",data:d.identifier})}),g.childScopes.forEach(f)}return{Program(g){f(h.getScope(g))}}}},Tc}var kc,fS;function kD(){if(fS)return kc;fS=1;const{findVariable:a}=qt();function*e(t){switch(t.type){case"Identifier":yield t;return;case"ObjectPattern":for(const l of t.properties)yield*e(l.type==="Property"?l.value:l);return;case"ArrayPattern":for(const l of t.elements)l&&(yield*e(l));return;case"RestElement":yield*e(t.argument);return;case"AssignmentPattern":yield*e(t.left)}}function n(t,l){return!(l.range[0]<t.identifier.range[1]||t.expression&&t.expression.range[0]<=l.range[0]&&l.range[1]<=t.expression.range[1])}function o(t,l){return t.expression?t.identifier.range[1]<=l.range[0]&&l.range[1]<=t.expression.range[0]:!1}return kc={meta:{type:"problem",docs:{description:"Disallow variable assignments when the value is not used",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-assignment"},schema:[],messages:{unnecessaryAssignment:"This assigned value is not used in subsequent statements."}},create(t){const l=t.sourceCode;let p=null;const u=new Set;function r(i){let c=i;for(;c;){if(u.has(c))return c;c=c.upper}return null}function m(i){function c(s,f){const g=i.segments[s.id];return g.first&&g.last&&g.first.range[0]<=f.range[0]&&f.range[1]<=g.last.range[1]}function h(s,f){if(i.tryStatementBlocks.some(T=>T.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.range[1]))return;const d={results:[],subsequentSegments:new Set,queueSegments:s.segments.flatMap(T=>T.nextSegments)};function*E(){for(yield*d.results;d.queueSegments.length>0;){const T=d.queueSegments.shift();if(d.subsequentSegments.has(T))continue;d.subsequentSegments.add(T);const C=f.find(A=>A.segments.includes(T)&&!o(A,s.identifier));C||d.queueSegments.push(...T.nextSegments);const v={segment:T,assignment:C};d.results.push(v),yield v}}if(s.variable.references.some(T=>T.identifier.type!=="Identifier"))return;const S=s.variable.references.filter(T=>T.isRead());if(!S.length)return;const x=f.find(T=>T===s||T.segments.length&&T.segments.every(C=>!s.segments.includes(C))?!1:!!(n(s,T.identifier)||T.expression&&T.expression.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.expression.range[1]));for(const T of S){if(i.scope!==r(T.from))return;if(n(s,T.identifier)&&(o(s,T.identifier)||s.segments.some(C=>c(C,T.identifier)))){if(x&&n(x,T.identifier))continue;return}if(!x){for(const C of E())if(c(C.segment,T.identifier)){if(C.assignment&&n(C.assignment,T.identifier))continue;return}}}t.report({node:s.identifier,messageId:"unnecessaryAssignment"})}for(const s of i.assignments.values()){s.sort((f,g)=>f.identifier.range[0]-g.identifier.range[0]);for(const f of s)h(f,s)}}return{onCodePathStart(i,c){const h=l.getScope(c);p={upper:p,codePath:i,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},u.add(p.scope)},onCodePathEnd(){m(p),p=p.upper},onCodePathSegmentStart(i){const c={segment:i,first:null,last:null};p.segments[i.id]=c,p.currentSegments.add(i)},onCodePathSegmentEnd(i){p.currentSegments.delete(i)},TryStatement(i){p.tryStatementBlocks.push(i.block)},Identifier(i){for(const c of p.currentSegments){const h=p.segments[c.id];h.first||(h.first=i),h.last=i}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(i){if(p.currentSegments.size===0)return;const c=p.assignments;let h,s=null;i.type==="VariableDeclarator"?(h=i.id,s=i.init):i.type==="AssignmentExpression"?(h=i.left,s=i.right):h=i.argument;for(const f of e(h)){const g=l.getScope(f),d=a(g,f);if(!d||d.scope.type==="global"&&d.defs.length===0||p.scope!==r(d.scope)||d.eslintUsed||d.scope.type==="module"&&(d.defs.some(S=>S.type==="Variable"&&S.parent.parent.type==="ExportNamedDeclaration"||S.type==="FunctionName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration")||S.type==="ClassName"&&(S.node.parent.type==="ExportNamedDeclaration"||S.node.parent.type==="ExportDefaultDeclaration"))||d.references.some(S=>S.identifier.parent.type==="ExportSpecifier")))continue;let E=c.get(d);E||(E=[],c.set(d,E)),E.push({variable:d,identifier:f,node:i,expression:s,segments:[...p.currentSegments]})}}}}},kc}var Dc,pS;function DD(){if(pS)return Dc;pS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),{RegExpParser:t,visitRegExpAST:l}=ur(),p=new t;function u(i){const c=[];let h=i;do c.push(h),h=h.parent;while(h);return c}function r(i){return i.type==="Assertion"&&(i.kind==="lookahead"||i.kind==="lookbehind")}function m(i){return r(i)&&i.negate}return Dc={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround."}},create(i){const c=i.sourceCode;function h(s,f,g){let d;try{d=p.parsePattern(f,0,f.length,{unicode:g.includes("u"),unicodeSets:g.includes("v")})}catch{return}l(d,{onBackreferenceEnter(E){const S=[E.resolved].flat(),x=u(E),T=S.map(R=>{const F=u(R);if(x.includes(R))return{messageId:"nested",group:R};let L=x.length-1,P=F.length-1;do L--,P--;while(x[L]===F[P]);const O=P+1,q=F.slice(0,O),N=F.slice(O),_=N.find(r),G=_&&_.kind==="lookbehind";return q.at(-1).type==="Alternative"?{messageId:"disjunctive",group:R}:!G&&E.end<=R.start?{messageId:"forward",group:R}:G&&R.end<=E.start?{messageId:"backward",group:R}:q.some(m)?{messageId:"intoNegativeLookaround",group:R}:null});if(T.length===0||T.some(R=>!R))return;let C;const v=T.filter(R=>R.messageId!=="disjunctive");v.length?C=v:C=T;const[{messageId:A,group:b},...w]=C;let k="";w.length===1?k=" and another group":w.length>1&&(k=` and other ${w.length} groups`),i.report({node:s,messageId:A,data:{bref:E.raw,group:b.raw,otherGroups:k}})}})}return{"Literal[regex]"(s){const{pattern:f,flags:g}=s.regex;h(s,f,g)},Program(s){const f=c.getScope(s),g=new n(f),d={RegExp:{[a]:!0,[e]:!0}};for(const{node:E}of g.iterateGlobalReferences(d)){const[S,x]=E.arguments,T=o(S,f),C=o(x,f);typeof T=="string"&&h(E,T,C||"")}}}}},Dc}var Ic,mS;function ID(){if(mS)return Ic;mS=1;const a=Ue();function e(o){const t=a.skipChainExpression(o.callee);return t.type==="MemberExpression"&&t.property.type==="Identifier"&&t.computed===!1&&(t.property.name==="call"&&o.arguments.length>=1||t.property.name==="apply"&&o.arguments.length===2&&o.arguments[1].type==="ArrayExpression")}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return Ic={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const p=a.skipChainExpression(l.callee),u=a.skipChainExpression(p.object),r=u.type==="MemberExpression"?u.object:null,m=l.arguments[0];n(r,m,t)&&o.report({node:l,messageId:"unnecessaryCall",data:{name:p.property.name}})}}}},Ic}var Pc,hS;function PD(){return hS||(hS=1,Pc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(a){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?a.report({node:e,messageId:"unnecessaryCatchClause"}):a.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),Pc}var Fc,dS;function FD(){if(dS)return Fc;dS=1;const a=Ue();function e(n){if(!n.computed)return!1;const{key:o}=n;if(o.type!=="Literal")return!1;const{value:t}=o;if(typeof t!="number"&&typeof t!="string")return!1;switch(n.type){case"Property":return n.parent.type==="ObjectExpression"?t!=="__proto__":!0;case"PropertyDefinition":return n.static?t!=="constructor"&&t!=="prototype":t!=="constructor";case"MethodDefinition":return n.static?t!=="prototype":t!=="constructor";default:throw new Error(`Unexpected node type: ${n.type}`)}}return Fc={meta:{type:"suggestion",defaultOptions:[{enforceForClassMembers:!0}],docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(n){const o=n.sourceCode,[{enforceForClassMembers:t}]=n.options;function l(u){if(e(u)){const{key:r}=u;n.report({node:u,messageId:"unnecessarilyComputedProperty",data:{property:o.getText(r)},fix(m){const i=o.getTokenBefore(r,a.isOpeningBracketToken),c=o.getTokenAfter(r,a.isClosingBracketToken);if(o.commentsExistBetween(i,c))return null;const h=o.getTokenBefore(i),f=(h.range[1]===i.range[0]&&!a.canTokensBeAdjacent(h,o.getFirstToken(r))?" ":"")+r.raw;return m.replaceTextRange([i.range[0],c.range[1]],f)}})}}function p(){}return{Property:l,MethodDefinition:t?l:p,PropertyDefinition:t?l:p}}},Fc}var Rc,gS;function RD(){if(gS)return Rc;gS=1;const a=Ue();function e(l){return l.type==="BinaryExpression"&&l.operator==="+"}function n(l){return l.value==="+"&&l.type==="Punctuator"}function o(l){let p=l.left;for(;e(p);)p=p.right;return p}function t(l){let p=l.right;for(;e(p);)p=p.left;return p}return Rc={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(l){const p=l.sourceCode;return{BinaryExpression(u){if(u.operator!=="+")return;const r=o(u),m=t(u);if(a.isStringLiteral(r)&&a.isStringLiteral(m)&&a.isTokenOnSameLine(r,m)){const i=p.getFirstTokenBetween(r,m,n);l.report({node:u,loc:i.loc,messageId:"unexpectedConcat"})}}}}},Rc}var _c,yS;function _D(){if(yS)return _c;yS=1;const a=Ue();function e(c){return c.value.params.some(h=>h.decorators?.length||h.type==="TSParameterProperty")}function n(c){switch(c.accessibility){case"protected":case"private":return!0;case"public":return!!c.parent.parent.superClass;default:return!1}}function o(c){return c.length===1&&c[0].type==="ExpressionStatement"&&c[0].expression.type==="CallExpression"&&c[0].expression.callee.type==="Super"}function t(c){return c.type==="Identifier"||c.type==="RestElement"}function l(c){return c.length===1&&c[0].type==="SpreadElement"&&c[0].argument.type==="Identifier"&&c[0].argument.name==="arguments"}function p(c,h){return c.type==="Identifier"&&h.type==="Identifier"&&c.name===h.name}function u(c,h){return c.type==="RestElement"&&h.type==="SpreadElement"&&p(c.argument,h.argument)}function r(c,h){return p(c,h)||u(c,h)}function m(c,h){if(c.length!==h.length)return!1;for(let s=0;s<c.length;++s)if(!r(c[s],h[s]))return!1;return!0}function i(c,h){return o(c)&&h.every(t)&&(l(c[0].expression.arguments)||m(h,c[0].expression.arguments))}return _c={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-constructor"},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:"Useless constructor.",removeConstructor:"Remove the constructor."}},create(c){function h(s){if(s.kind!=="constructor"||s.value.type!=="FunctionExpression"||e(s)||n(s)||!s.value.body)return;const f=s.value.body.body,g=s.value.params;(s.parent.parent.superClass?i(f,g):f.length===0)&&c.report({node:s,messageId:"noUselessConstructor",suggest:[{messageId:"removeConstructor",*fix(E){const S=c.sourceCode.getTokenAfter(s),x=S.type==="Punctuator"&&S.value==="["&&a.needsPrecedingSemicolon(c.sourceCode,s);yield E.replaceText(s,x?";":"")}}]})}return{MethodDefinition:h}}},_c}var Bc,vS;function BD(){if(vS)return Bc;vS=1;const a=Ue(),{RegExpParser:e,visitRegExpAST:n}=ur();function o(m,i){return new Set(function*(){yield*m,yield*i}())}const t=o(new Set("\\nrvtbfux"),a.LINEBREAKS),l=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),p=o(l,new Set("^/.$*+?[{}|()Bk")),u=o(l,new Set("q/[{}|()-")),r=new Set("!#$%&*+,.:;<=>?@^`~");return Bc={meta:{type:"suggestion",defaultOptions:[{allowRegexCharacters:[]}],docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:"object",properties:{allowRegexCharacters:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]},create(m){const i=m.sourceCode,[{allowRegexCharacters:c}]=m.options,h=new e;function s(E,S,x,T){const C=E.range[0]+S,v=[C,C+1],A=i.getLocFromIndex(C);m.report({node:E,loc:{start:A,end:{line:A.line,column:A.column+1}},messageId:"unnecessaryEscape",data:{character:x},suggest:[{messageId:a.isDirective(E.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(b){return b.removeRange(v)}},...T?[]:[{messageId:"escapeBackslash",fix(b){return b.insertTextBeforeRange(v,"\\")}}]]})}function f(E,S){const x=E.type==="TemplateElement",T=S[0][1];let C=!t.has(T),v;x?(v=T==="`",T==="$"?C=S.input[S.index+2]!=="{":T==="{"&&(C=S.input[S.index-1]!=="$")):v=T===E.raw[0],C&&!v&&s(E,S.index,S[0].slice(1))}function g(E){const{pattern:S,flags:x}=E.regex;let T;const C=x.includes("u"),v=x.includes("v");try{T=h.parsePattern(S,0,S.length,{unicode:C,unicodeSets:v})}catch{return}const A=[];n(T,{onCharacterClassEnter:b=>A.unshift(b),onCharacterClassLeave:()=>A.shift(),onExpressionCharacterClassEnter:b=>A.unshift(b),onExpressionCharacterClassLeave:()=>A.shift(),onCharacterEnter(b){if(!b.raw.startsWith("\\"))return;const w=b.raw.slice(1);if(w!==String.fromCodePoint(b.value)||c.includes(w))return;let k;if(A.length?k=v?u:l:k=p,k.has(w))return;const R=b.start+1;let F=!1;if(A.length){const L=A[0];if(w==="^"&&L.start+1===b.start)return;if(v){if(r.has(w)&&(S[b.end]===w||S[b.start-1]===w&&(w!=="^"||!L.negate||L.start+1<b.start-1)))return;(b.parent.type==="ClassIntersection"||b.parent.type==="ClassSubtraction")&&(F=!0)}else if(w==="-"&&L.start+1!==b.start&&b.end!==L.end-1)return}s(E,R,w,F)}})}function d(E){const S=E.type==="TemplateElement";if(!(S&&E.parent&&E.parent.parent&&E.parent.parent.type==="TaggedTemplateExpression"&&E.parent===E.parent.parent.quasi))if(typeof E.value=="string"||S){if(E.parent.type==="JSXAttribute"||E.parent.type==="JSXElement"||E.parent.type==="JSXFragment")return;const x=S?i.getText(E):E.raw,T=/\\\D/gu;let C;for(;C=T.exec(x);)f(E,C)}else E.regex&&g(E)}return{Literal:d,TemplateElement:d}}},Bc}var Lc,ES;function LD(){if(ES)return Lc;ES=1;const a=Ue();return Lc={meta:{type:"suggestion",defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:"Disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImport:{type:"boolean"},ignoreExport:{type:"boolean"}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(e){const n=e.sourceCode,[{ignoreDestructuring:o,ignoreImport:t,ignoreExport:l}]=e.options;function p(i,c,h){const s=c.type==="Identifier"?c.name:c.value;return e.report({node:i,messageId:"unnecessarilyRenamed",data:{name:s,type:h},fix(f){const g=i.type==="Property"?i.value:i.local;return n.getCommentsInside(i).length>n.getCommentsInside(g).length||g.type==="AssignmentPattern"&&a.isParenthesised(n,g.left)?null:f.replaceText(i,n.getText(g))}})}function u(i){if(!o)for(const c of i.properties){if(c.type!=="Property"||c.shorthand||c.computed)continue;const h=c.key.type==="Identifier"&&c.key.name||c.key.type==="Literal"&&c.key.value,s=c.value.type==="AssignmentPattern"?c.value.left.name:c.value.name;h===s&&p(c,c.key,"Destructuring assignment")}}function r(i){t||i.imported.range[0]!==i.local.range[0]&&a.getModuleExportName(i.imported)===i.local.name&&p(i,i.imported,"Import")}function m(i){l||i.local.range[0]!==i.exported.range[0]&&a.getModuleExportName(i.local)===a.getModuleExportName(i.exported)&&p(i,i.local,"Export")}return{ObjectPattern:u,ImportSpecifier:r,ExportSpecifier:m}}},Lc}var Oc,SS;function OD(){if(SS)return Oc;SS=1;const a=Ue(),e=nn();function n(p,u){const r=p.indexOf(u);r!==-1&&p.splice(r,1)}function o(p){return a.STATEMENT_LIST_PARENTS.has(p.parent.type)}function t(p){for(let u=p;u&&u.parent&&!a.isFunction(u);u=u.parent)if(u.parent.type==="TryStatement"&&u.parent.finalizer===u)return!0;return!1}function l(p){for(const u of p)if(u.reachable)return!0;return!1}return Oc={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(p){const u=new WeakMap,r=p.sourceCode;let m=null;function i(f){const g=u.get(f);return!g||g.returned}function c(f,g,d){const E=d||new WeakSet;for(const S of g){if(!S.reachable){E.has(S)||(E.add(S),c(f,S.allPrevSegments.filter(i),E));continue}u.has(S)&&f.push(...u.get(S).uselessReturns)}return f}function h(f,g){if(!f.reachable){g.add(f),f.allPrevSegments.filter(i).filter(E=>!g.has(E)).forEach(E=>h(E,g));return}const d=u.get(f);d&&(d.uselessReturns=d.uselessReturns.filter(E=>{if(m.traversedTryBlockStatements&&m.traversedTryBlockStatements.length>0){const S=E.range[0],x=E.range[1];if(m.traversedTryBlockStatements.some(C=>{const v=C.range[0],A=C.range[1];return S>=v&&x<=A}))return!0}return n(m.uselessReturns,E),!1}))}function s(){m.currentSegments.forEach(f=>h(f,new Set))}return{onCodePathStart(f){m={upper:m,uselessReturns:[],traversedTryBlockStatements:[],codePath:f,currentSegments:new Set}},onCodePathEnd(){for(const f of m.uselessReturns)p.report({node:f,loc:f.loc,messageId:"unnecessaryReturn",fix(g){return o(f)&&!r.getCommentsInside(f).length?new e(g,r).retainEnclosingFunction(f).remove(f):null}});m=m.upper},onCodePathSegmentStart(f){m.currentSegments.add(f);const g={uselessReturns:c([],f.allPrevSegments),returned:!1};u.set(f,g)},onUnreachableCodePathSegmentStart(f){m.currentSegments.add(f)},onUnreachableCodePathSegmentEnd(f){m.currentSegments.delete(f)},onCodePathSegmentEnd(f){m.currentSegments.delete(f)},ReturnStatement(f){if(f.argument&&s(),!(f.argument||a.isInLoop(f)||t(f)||!l(m.currentSegments))){for(const g of m.currentSegments){const d=u.get(g);d&&(d.uselessReturns.push(f),d.returned=!0)}m.uselessReturns.push(f)}},"TryStatement > BlockStatement.block:exit"(f){m.traversedTryBlockStatements.push(f)},"TryStatement:exit"(){m.traversedTryBlockStatements.pop()},ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,EmptyStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration:s,WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s}}},Oc}var Nc,bS;function ND(){if(bS)return Nc;bS=1;const a=Ue();function e(h){return!!h.scope&&h.scope.type==="global"}function n(h){let s=h;for(;s.type!=="function"&&s.type!=="global";)s=s.upper;return s}function o(h){const s=n(h.scope);return h.references.some(f=>n(f.from)!==s)}function t(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function l(h){return h.declarations.every(s=>s.init!==null)}const p=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function u(h){for(let s=h;s;s=s.parent)if(p.test(s.type))return s;return null}function r(h){return h.defs.length>=2}function m(h){function s(f){const g=h.range,d=f.identifier.range;return d[0]<g[0]||d[1]>g[1]}return function(f){return f.references.some(s)}}function i(h){const s=h.range[0],f=h.range[1];return g=>{const d=g.defs[0].name,E=d.range[0],S=d.parent.type==="AssignmentPattern"?d.parent.right:null,x=S&&S.range[0],T=S&&S.range[1];return g.references.some(C=>{const v=C.identifier.range[0],A=C.identifier.range[1];return!C.init&&(v<E||S!==null&&v>=x&&A<=T||!a.isFunction(h)&&v>=s&&A<=f)})}}function c(h){return h.name==="let"}return Nc={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){const s=h.sourceCode;function f(E){return E.init?s.getDeclaredVariables(E).some(i(E.init)):!1}function g(E){const S=s.getDeclaredVariables(E),x=u(E);return!(E.parent.type==="SwitchCase"||E.declarations.some(f)||S.some(e)||S.some(r)||S.some(m(x))||S.some(c)||a.isInLoop(E)&&(S.some(o)||!t(E)&&!l(E))||!t(E)&&!(E.parent.type==="ForStatement"&&E.parent.init===E)&&!a.STATEMENT_LIST_PARENTS.has(E.parent.type))}function d(E){h.report({node:E,messageId:"unexpectedVar",fix(S){const x=s.getFirstToken(E,{filter:T=>T.value==="var"});return g(E)?S.replaceText(x,"let"):null}})}return{"VariableDeclaration:exit"(E){E.kind==="var"&&(E.parent.type==="TSModuleBlock"&&E.parent.parent.type==="TSModuleDeclaration"&&E.parent.parent.global||d(E))}}}},Nc}var Mc,xS;function MD(){return xS||(xS=1,Mc={meta:{type:"suggestion",defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean"}},additionalProperties:!1}]},create(a){const[{allowAsStatement:e}]=a.options;return{'UnaryExpression[operator="void"]'(n){e&&n.parent&&n.parent.type==="ExpressionStatement"||a.report({node:n,messageId:"noVoid"})}}}}),Mc}var jc,CS;function jD(){if(CS)return jc;CS=1;const a=Rn(),e=Ue(),n=40;return jc={meta:{type:"suggestion",defaultOptions:[{location:"start",terms:["todo","fixme","xxx"]}],docs:{description:"Disallow specified warning terms in comments",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(o){const t=o.sourceCode,[{decoration:l,location:p,terms:u}]=o.options,r=a(l?l.join(""):""),m=/\bno-warning-comments\b/u;function i(f){const g=a(f),d="\\b";let E="";p==="start"?E=`^[\\s${r}]*`:/^\w/u.test(f)&&(E=d);const S=/\w$/u.test(f)?d:"",x="iu";return new RegExp(`${E}${g}${S}`,x)}const c=u.map(i);function h(f){const g=[];return c.forEach((d,E)=>{d.test(f)&&g.push(u[E])}),g}function s(f){const g=f.value;if(e.isDirectiveComment(f)&&m.test(g))return;h(g).forEach(E=>{let S="",x=!1;for(const T of g.trim().split(/\s+/u)){const C=S?`${S} ${T}`:T;if(C.length<=n)S=C;else{x=!0;break}}o.report({node:f,messageId:"unexpectedComment",data:{matchedTerm:E,comment:`${S}${x?"...":""}`}})})}return{Program(){t.getAllComments().filter(g=>g.type!=="Shebang").forEach(s)}}}},jc}var Uc,wS;function UD(){if(wS)return Uc;wS=1;const a=Ue();return Uc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-whitespace-before-property",url:"https://eslint.style/rules/no-whitespace-before-property"}}]},type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){const n=e.sourceCode;function o(t,l,p){e.report({node:t,messageId:"unexpectedWhitespace",data:{propName:n.getText(t.property)},fix(u){let r="";return!t.computed&&!t.optional&&a.isDecimalInteger(t.object)||n.commentsExistBetween(l,p)?null:(t.optional?r="?.":t.computed||(r="."),u.replaceTextRange([l.range[1],p.range[0]],r))}})}return{MemberExpression(t){let l,p;a.isTokenOnSameLine(t.object,t.property)&&(t.computed?(l=n.getTokenBefore(t.property,a.isOpeningBracketToken),p=n.getTokenBefore(l,t.optional?1:0)):(l=n.getFirstToken(t.property),p=n.getTokenBefore(l,1)),n.isSpaceBetweenTokens(p,l)&&o(t,p,l))}}}},Uc}var qc,AS;function qD(){return AS||(AS=1,qc={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(a){return{WithStatement(e){a.report({node:e,messageId:"unexpectedWith"})}}}}),qc}var Vc,TS;function VD(){if(TS)return Vc;TS=1;const a={enum:["beside","below","any"]};return Vc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"nonblock-statement-body-position",url:"https://eslint.style/rules/nonblock-statement-body-position"}}]},type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[a,{properties:{overrides:{properties:{if:a,else:a,while:a,do:a,for:a},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const n=e.sourceCode;function o(l){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[l]||e.options[0]||"beside"}function t(l,p){const u=o(p);if(l.type==="BlockStatement"||u==="any")return;const r=n.getTokenBefore(l);r.loc.end.line===l.loc.start.line&&u==="below"?e.report({node:l,messageId:"expectLinebreak",fix:m=>m.insertTextBefore(l,`
|
|
104
104
|
`)}):r.loc.end.line!==l.loc.start.line&&u==="beside"&&e.report({node:l,messageId:"expectNoLinebreak",fix(m){return n.getText().slice(r.range[1],l.range[0]).trim()?null:m.replaceTextRange([r.range[1],l.range[0]]," ")}})}return{IfStatement(l){t(l.consequent,"if"),l.alternate&&l.alternate.type!=="IfStatement"&&t(l.alternate,"else")},WhileStatement:l=>t(l.body,"while"),DoWhileStatement:l=>t(l.body,"do"),ForStatement:l=>t(l.body,"for"),ForInStatement:l=>t(l.body,"for"),ForOfStatement:l=>t(l.body,"for")}}},Vc}var $c,kS;function $D(){if(kS)return $c;kS=1;const a=Ue(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function n(u){let r=!1,m=Number.POSITIVE_INFINITY,i=!1;return u?u==="always"?m=0:u==="never"?m=Number.POSITIVE_INFINITY:(r=!!u.multiline,m=u.minProperties||Number.POSITIVE_INFINITY,i=!!u.consistent):i=!0,{multiline:r,minProperties:m,consistent:i}}function o(u){return typeof u=="object"&&u!==null}function t(u){return o(u)||typeof u=="string"}function l(u){if(o(u)&&Object.values(u).some(t))return{ObjectExpression:n(u.ObjectExpression),ObjectPattern:n(u.ObjectPattern),ImportDeclaration:n(u.ImportDeclaration),ExportNamedDeclaration:n(u.ExportDeclaration)};const r=n(u);return{ObjectExpression:r,ObjectPattern:r,ImportDeclaration:r,ExportNamedDeclaration:r}}function p(u,r,m,i){let c;return u.type==="ObjectExpression"||u.type==="ObjectPattern"?c=u.properties:c=u.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),c.length>=r.minProperties||r.multiline&&c.length>0&&m.loc.start.line!==i.loc.end.line}return $c={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-newline",url:"https://eslint.style/rules/object-curly-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(u){const r=u.sourceCode,m=l(u.options[0]);function i(c){const h=m[c.type];if(c.type==="ImportDeclaration"&&!c.specifiers.some(T=>T.type==="ImportSpecifier")||c.type==="ExportNamedDeclaration"&&!c.specifiers.some(T=>T.type==="ExportSpecifier"))return;const s=r.getFirstToken(c,T=>T.value==="{");let f;c.typeAnnotation?f=r.getTokenBefore(c.typeAnnotation):f=r.getLastToken(c,T=>T.value==="}");let g=r.getTokenAfter(s,{includeComments:!0}),d=r.getTokenBefore(f,{includeComments:!0});const E=p(c,h,g,d),S=a.isCommentToken(g),x=a.isCommentToken(d);if(g=r.getTokenAfter(s),d=r.getTokenBefore(f),E)a.isTokenOnSameLine(s,g)&&u.report({messageId:"expectedLinebreakAfterOpeningBrace",node:c,loc:s.loc,fix(T){return S?null:T.insertTextAfter(s,`
|
|
105
105
|
`)}}),a.isTokenOnSameLine(d,f)&&u.report({messageId:"expectedLinebreakBeforeClosingBrace",node:c,loc:f.loc,fix(T){return x?null:T.insertTextBefore(f,`
|
|
106
106
|
`)}});else{const T=h.consistent,C=!a.isTokenOnSameLine(s,g),v=!a.isTokenOnSameLine(d,f);(!T&&C||T&&C&&!v)&&u.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:c,loc:s.loc,fix(A){return S?null:A.removeRange([s.range[1],g.range[0]])}}),(!T&&v||T&&!C&&v)&&u.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:c,loc:f.loc,fix(A){return x?null:A.removeRange([d.range[1],f.range[0]])}})}}return{ObjectExpression:i,ObjectPattern:i,ImportDeclaration:i,ExportNamedDeclaration:i}}},$c}var Wc,DS;function WD(){if(DS)return Wc;DS=1;const a=Ue();return Wc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-spacing",url:"https://eslint.style/rules/object-curly-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){const n=e.options[0]==="always",o=e.sourceCode;function t(g){return e.options[1]?e.options[1][g]===!n:!1}const l={spaced:n,arraysInObjectsException:t("arraysInObjects"),objectsInObjectsException:t("objectsInObjects")};function p(g,d){const E=e.sourceCode.getTokenAfter(d,{includeComments:!0});e.report({node:g,loc:{start:d.loc.end,end:E.loc.start},messageId:"unexpectedSpaceAfter",data:{token:d.value},fix(S){return S.removeRange([d.range[1],E.range[0]])}})}function u(g,d){const E=e.sourceCode.getTokenBefore(d,{includeComments:!0});e.report({node:g,loc:{start:E.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{token:d.value},fix(S){return S.removeRange([E.range[1],d.range[0]])}})}function r(g,d){e.report({node:g,loc:d.loc,messageId:"requireSpaceAfter",data:{token:d.value},fix(E){return E.insertTextAfter(d," ")}})}function m(g,d){e.report({node:g,loc:d.loc,messageId:"requireSpaceBefore",data:{token:d.value},fix(E){return E.insertTextBefore(d," ")}})}function i(g,d,E,S,x){if(a.isTokenOnSameLine(d,E)){const T=o.isSpaceBetweenTokens(d,E);l.spaced&&!T&&r(g,d),!l.spaced&&T&&E.type!=="Line"&&p(g,d)}if(a.isTokenOnSameLine(S,x)){const C=(l.arraysInObjectsException&&a.isClosingBracketToken(S)||l.objectsInObjectsException&&a.isClosingBraceToken(S))&&o.getNodeByRangeIndex(S.range[0]).type,v=l.arraysInObjectsException&&C==="ArrayExpression"||l.objectsInObjectsException&&(C==="ObjectExpression"||C==="ObjectPattern")?!l.spaced:l.spaced,A=o.isSpaceBetweenTokens(S,x);v&&!A&&m(g,x),!v&&A&&u(g,x)}}function c(g){const d=g.properties.at(-1);return o.getTokenAfter(d,a.isClosingBraceToken)}function h(g){if(g.properties.length===0)return;const d=o.getFirstToken(g),E=c(g),S=o.getTokenAfter(d,{includeComments:!0}),x=o.getTokenBefore(E,{includeComments:!0});i(g,d,S,x,E)}function s(g){if(g.specifiers.length===0)return;let d=g.specifiers[0];const E=g.specifiers.at(-1);if(E.type!=="ImportSpecifier")return;d.type!=="ImportSpecifier"&&(d=g.specifiers[1]);const S=o.getTokenBefore(d),x=o.getTokenAfter(E,a.isNotCommaToken),T=o.getTokenAfter(S,{includeComments:!0}),C=o.getTokenBefore(x,{includeComments:!0});i(g,S,T,C,x)}function f(g){if(g.specifiers.length===0)return;const d=g.specifiers[0],E=g.specifiers.at(-1),S=o.getTokenBefore(d),x=o.getTokenAfter(E,a.isNotCommaToken),T=o.getTokenAfter(S,{includeComments:!0}),C=o.getTokenBefore(x,{includeComments:!0});i(g,S,T,C,x)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:s,ExportNamedDeclaration:f}}},Wc}var Gc,IS;function GD(){return IS||(IS=1,Gc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-property-newline",url:"https://eslint.style/rules/object-property-newline"}}]},type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(a){const e=a.options[0]&&(a.options[0].allowAllPropertiesOnSameLine||a.options[0].allowMultiplePropertiesPerLine),n=e?"propertiesOnNewlineAll":"propertiesOnNewline",o=a.sourceCode;return{ObjectExpression(t){if(e&&t.properties.length>1){const l=o.getFirstToken(t.properties[0]),p=o.getLastToken(t.properties.at(-1));if(l.loc.end.line===p.loc.start.line)return}for(let l=1;l<t.properties.length;l++){const p=o.getLastToken(t.properties[l-1]),u=o.getFirstToken(t.properties[l]);p.loc.end.line===u.loc.start.line&&a.report({node:t,loc:u.loc,messageId:n,fix(r){const i=[o.getTokenBefore(u).range[1],u.range[0]];return o.text.slice(i[0],i[1]).trim()?null:r.replaceTextRange(i,`
|
|
@@ -114,7 +114,7 @@ ${T.at(-1)}`)}}),o==="always"&&(!E||S&&!c(g,d))&&e.report({node:s,messageId:"exp
|
|
|
114
114
|
`:`
|
|
115
115
|
`;return v.insertTextAfter(b,k)}})}const d={any:{verify:s},never:{verify:f},always:{verify:g}},E={"*":{test:()=>!0},"block-like":{test:(S,x)=>i(x,S)},"cjs-export":{test:(S,x)=>S.type==="ExpressionStatement"&&S.expression.type==="AssignmentExpression"&&o.test(x.getText(S.expression.left))},"cjs-import":{test:(S,x)=>S.type==="VariableDeclaration"&&S.declarations.length>0&&!!S.declarations[0].init&&t.test(x.getText(S.declarations[0].init))},directive:{test:a.isDirective},expression:{test:S=>S.type==="ExpressionStatement"&&!a.isDirective(S)},iife:{test:m},"multiline-block-like":{test:(S,x)=>S.loc.start.line!==S.loc.end.line&&i(x,S)},"multiline-expression":{test:S=>S.loc.start.line!==S.loc.end.line&&S.type==="ExpressionStatement"&&!a.isDirective(S)},"multiline-const":u("const"),"multiline-let":u("let"),"multiline-var":u("var"),"singleline-const":p("const"),"singleline-let":p("let"),"singleline-var":p("var"),block:r("BlockStatement"),empty:r("EmptyStatement"),function:r("FunctionDeclaration"),break:l("break"),case:l("case"),class:l("class"),const:l("const"),continue:l("continue"),debugger:l("debugger"),default:l("default"),do:l("do"),export:l("export"),for:l("for"),if:l("if"),import:l("import"),let:l("let"),return:l("return"),switch:l("switch"),throw:l("throw"),try:l("try"),var:l("var"),while:l("while"),with:l("with")};return Qc={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]},type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(d)},statementType:{anyOf:[{enum:Object.keys(E)},{type:"array",items:{enum:Object.keys(E)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(S){const x=S.sourceCode,T=S.options||[];let C=null;function v(){C={upper:C,prevNode:null}}function A(){C=C.upper}function b(L,P){let O=L;for(;O.type==="LabeledStatement";)O=O.body;return Array.isArray(P)?P.some(b.bind(null,O)):E[P].test(O,x)}function w(L,P){for(let O=T.length-1;O>=0;--O){const q=T[O];if(b(L,q.prev)&&b(P,q.next))return d[q.blankLine]}return d.any}function k(L,P){const O=[];let q=c(x,L);if(P.loc.start.line-q.loc.end.line>=2)do{const N=x.getTokenAfter(q,{includeComments:!0});N.loc.start.line-q.loc.end.line>=2&&O.push([q,N]),q=N}while(q.range[0]<P.range[0]);return O}function R(L){const P=L.parent.type;if(!(a.STATEMENT_LIST_PARENTS.has(P)||P==="SwitchStatement"))return;const q=C.prevNode;if(q){const N=w(q,L),_=k(q,L);N.verify(S,q,L,_)}C.prevNode=L}function F(L){R(L),v()}return{Program:v,BlockStatement:v,SwitchStatement:v,StaticBlock:v,"Program:exit":A,"BlockStatement:exit":A,"SwitchStatement:exit":A,"StaticBlock:exit":A,":statement":R,SwitchCase:F,"SwitchCase:exit":A}}},Qc}var Zc,NS;function ZD(){if(NS)return Zc;NS=1;const a=Ue();function e(p){return p&&p.defs[0].type==="FunctionName"}function n(p,u,r){return p.meta.name===u&&p.property.name===r}function o(p){const u=p.variables;for(let r=0;r<u.length;++r){const m=u[r];if(m.name==="arguments")return m.identifiers.length===0?m:null}return null}function t(p){const u={isCallback:!1,isLexicalThis:!1};let r=p,m=p.parent,i=!1;for(;r;){switch(m.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(m.object===r&&!m.property.computed&&m.property.type==="Identifier"&&m.property.name==="bind"){const c=m.parent.type==="ChainExpression"?m.parent:m;if(a.isCallee(c))i||(i=!0,u.isLexicalThis=c.parent.arguments.length===1&&c.parent.arguments[0].type==="ThisExpression"),m=c.parent;else return u}else return u;break;case"CallExpression":case"NewExpression":return m.callee!==r&&(u.isCallback=!0),u;default:return u}r=m,m=m.parent}throw new Error("unreachable")}function l(p){return p.every(u=>u.type==="Identifier")&&p.length!==new Set(p.map(u=>u.name)).size}return Zc={meta:{type:"suggestion",dialects:["javascript","typescript"],language:"javascript",defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:"Require using arrow functions for callbacks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean"},allowUnboundThis:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(p){const[{allowNamedFunctions:u,allowUnboundThis:r}]=p.options,m=p.sourceCode;let i=[];function c(){i.push({this:!1,super:!1,meta:!1})}function h(){return i.pop()}return{Program(){i=[]},ThisExpression(){const s=i.at(-1);s&&(s.this=!0)},Super(){const s=i.at(-1);s&&(s.super=!0)},MetaProperty(s){const f=i.at(-1);f&&n(s,"new","target")&&(f.meta=!0)},FunctionDeclaration:c,"FunctionDeclaration:exit":h,FunctionExpression:c,"FunctionExpression:exit"(s){const f=h();if(u&&s.id&&s.id.name||s.generator)return;const g=m.getDeclaredVariables(s)[0];if(e(g)&&g.references.length>0)return;const d=o(m.getScope(s));if(d&&d.references.length>0)return;const E=t(s);E.isCallback&&(!r||!f.this||E.isLexicalThis)&&!f.super&&!f.meta&&p.report({node:s,messageId:"preferArrowCallback",*fix(S){if(!E.isLexicalThis&&f.this||l(s.params)||s.params.length&&s.params[0].name==="this")return;if(E.isLexicalThis){const A=s.parent;if(A.type!=="MemberExpression")return;const b=A.parent,w=m.getTokenAfter(A.object,a.isNotClosingParenToken),k=m.getLastToken(b);if(a.isParenthesised(m,A)||m.commentsExistBetween(w,k))return;yield S.removeRange([w.range[0],k.range[1]])}const x=m.getFirstToken(s,s.async?1:0),T=m.getTokenAfter(x,a.isOpeningParenToken),C=m.getTokenBefore(s.body);m.commentsExistBetween(x,T)?(yield S.remove(x),s.id&&(yield S.remove(s.id))):yield S.removeRange([x.range[0],T.range[0]]),yield S.insertTextAfter(C," =>");let v=E.isLexicalThis?s.parent.parent:s;v.type==="ChainExpression"&&(v=v.parent),v.parent.type!=="CallExpression"&&v.parent.type!=="ConditionalExpression"&&!a.isParenthesised(m,v)&&!a.isParenthesised(m,s)&&(yield S.insertTextBefore(v,"("),yield S.insertTextAfter(v,")"))}})}}}},Zc}var ef,MS;function eI(){if(MS)return ef;MS=1;const a=nn(),e=Ue(),n=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,o=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,t=/^(?:VariableDeclarator|AssignmentExpression)$/u;function l(s){return s.parent.type==="ForStatement"&&s.parent.init===s}function p(s){let f=s.parent;for(;n.test(f.type);)f=f.parent;return f.type==="VariableDeclarator"||f.type==="AssignmentExpression"&&f.parent.type==="ExpressionStatement"&&o.test(f.parent.parent.type)}function u(s,f){if(f.through.some(d=>d.resolved&&d.resolved.name===s))return!0;const g=e.getVariableByName(f,s);return g!==null?g.defs.some(d=>d.type==="Parameter"):!1}function r(s){if(!s.isWrite())return null;let f=s.identifier.parent;for(;n.test(f.type);)f=f.parent;return t.test(f.type)?f:null}function m(s){switch(s.type){case"ObjectPattern":return s.properties.some(f=>f?m(f.argument||f.value):!1);case"ArrayPattern":return s.elements.some(f=>f?m(f):!1);case"AssignmentPattern":return m(s.left);case"MemberExpression":return!0}return!1}function i(s,f){if(s.eslintUsed&&s.scope.type==="global")return null;let g=null,d=!1;const E=s.references;for(let x=0;x<E.length;++x){const T=E[x];if(T.isWrite()){if(g!==null&&g.identifier!==T.identifier)return null;const v=r(T);if(v!==null&&v.left!==void 0){const A=v.left;let b=!1,w=!1;if(A.type==="ObjectPattern"?(b=A.properties.filter(R=>R.value).map(R=>R.value.name).some(R=>u(R,s.scope)),w=m(A)):A.type==="ArrayPattern"&&(b=A.elements.map(R=>R&&R.name).some(R=>u(R,s.scope)),w=m(A)),b||w)return null}g=T}else if(T.isRead()&&g===null){if(f)return null;d=!0}}return g!==null&&g.from===s.scope&&p(g.identifier)?d?s.defs[0].name:g.identifier:null}function c(s,f){const g=new Map;for(let d=0;d<s.length;++d){const E=s[d],S=E.references,x=i(E,f);let T=null;for(let C=0;C<S.length;++C){const v=S[C],A=v.identifier;if(A===T)continue;T=A;const b=r(v);b&&(g.has(b)?g.get(b).push(x):g.set(b,[x]))}}return g}function h(s,f,g){return!s||g(s)?null:s.type===f?s:h(s.parent,f,g)}return ef={meta:{type:"suggestion",defaultOptions:[{destructuring:"any",ignoreReadBeforeAssign:!1}],docs:{description:"Require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"]},ignoreReadBeforeAssign:{type:"boolean"}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(s){const[{destructuring:f,ignoreReadBeforeAssign:g}]=s.options,d=f!=="all",E=s.sourceCode,S=[];let x=0,T=null,C="";function v(A){const b=A.filter(Boolean);if(A.length&&(d||b.length===A.length)){const w=h(A[0],"VariableDeclaration",F=>F.type.endsWith("Statement")),k=w===null;if(!k&&w.declarations.length>0){const F=w.declarations[0];if(F.init){const L=F.init.parent;L.type==="VariableDeclarator"&&(L.id.name!==C&&(C=L.id.name,x=0),L.id.type==="ObjectPattern"&&L.init.name!==C&&(C=L.init.name,x=0),L.id!==T&&(T=L.id,x=0))}}let R=w&&(w.parent.type==="ForInStatement"||w.parent.type==="ForOfStatement"||w.declarations.every(F=>F.init))&&b.length===A.length;if(!k&&w.declarations&&w.declarations.length!==1&&w&&w.declarations&&w.declarations.length>=1){x+=b.length;let F=0;w.declarations.forEach(L=>{L.id.type==="ObjectPattern"?F+=L.id.properties.length:L.id.type==="ArrayPattern"?F+=L.id.elements.length:F+=1}),R=R&&x===F}b.forEach(F=>{s.report({node:F,messageId:"useConst",data:F,fix:R?L=>{const P=E.getFirstToken(w,O=>O.value===w.kind);return new a(L,E).retainRange(w.range).replaceTextRange(P.range,"const")}:null})})}}return{"Program:exit"(){c(S,g).forEach(v)},VariableDeclaration(A){A.kind==="let"&&!l(A)&&S.push(...E.getDeclaredVariables(A))}}}},ef}var tf,jS;function tI(){if(jS)return tf;jS=1;const a=Ue(),e=a.getPrecedence({type:"AssignmentExpression"});return tf={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(n){const o=n.options[0],t=n.options[1]&&n.options[1].enforceForRenamedProperties;let l={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};o&&(l=typeof o.array<"u"||typeof o.object<"u"?{VariableDeclarator:o,AssignmentExpression:o}:o);function p(f,g){return l&&l[f]&&l[f][g]}function u(f){return Number.isInteger(f.property.value)}function r(f,g,d){n.report({node:f,messageId:"preferDestructuring",data:{type:g},fix:d})}function m(f){return f.type==="VariableDeclarator"&&f.id.type==="Identifier"&&f.init.type==="MemberExpression"&&!f.init.computed&&f.init.property.type==="Identifier"&&f.id.name===f.init.property.name}function i(f,g){const d=g.init,E=n.sourceCode;if(E.getCommentsInside(g).length>E.getCommentsInside(d.object).length)return null;let S=E.getText(d.object);return a.getPrecedence(d.object)<e&&(S=`(${S})`),f.replaceText(g,`{${d.property.name}} = ${S}`)}function c(f,g,d){if(g.type!=="MemberExpression"||g.object.type==="Super"||g.property.type==="PrivateIdentifier")return;if(u(g)){p(d.type,"array")&&r(d,"array",null);return}const E=m(d)?S=>i(S,d):null;if(p(d.type,"object")&&t){r(d,"object",E);return}if(p(d.type,"object")){const S=g.property;(S.type==="Literal"&&f.name===S.value||S.type==="Identifier"&&f.name===S.name&&!g.computed)&&r(d,"object",E)}}function h(f){f.init&&(f.parent.kind==="using"||f.parent.kind==="await using"||f.init.type==="MemberExpression"&&c(f.id,f.init,f))}function s(f){f.operator==="="&&c(f.left,f.right,f)}return{VariableDeclarator:h,AssignmentExpression:s}}},tf}var rf,US;function rI(){if(US)return rf;US=1;const a=Ue(),{CALL:e,ReferenceTracker:n}=qt(),o=a.getPrecedence({type:"BinaryExpression",operator:"**"});function t(r){return a.getPrecedence(r)<=o||r.type==="AwaitExpression"||r.type==="UnaryExpression"}function l(r){return a.getPrecedence(r)<o}function p(r,m){const i=r.parent.type==="ChainExpression"?r.parent.parent:r.parent,c=a.getPrecedence(i);return(i.type==="ClassDeclaration"||i.type.endsWith("Expression")&&(c===-1||c>=o)&&!(i.type==="BinaryExpression"&&i.operator==="**"&&i.right===r)&&!((i.type==="CallExpression"||i.type==="NewExpression")&&i.arguments.includes(r))&&!(i.type==="MemberExpression"&&i.computed&&i.property===r)&&i.type!=="ArrayExpression")&&!a.isParenthesised(m,r)}function u(r,m){return m?`(${r})`:r}return rf={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(r){const m=r.sourceCode;function i(c){r.report({node:c,messageId:"useExponentiation",fix(h){if(c.arguments.length!==2||c.arguments.some(w=>w.type==="SpreadElement")||m.getCommentsInside(c).length>0)return null;const s=c.arguments[0],f=c.arguments[1],g=m.getText(s),d=m.getText(f),E=t(s),S=l(f),x=p(c,m);let T="",C="";if(!x){if(!E){const w=m.getFirstToken(s),k=m.getTokenBefore(c);k&&k.range[1]===c.range[0]&&!a.canTokensBeAdjacent(k,w)&&(T=" ")}if(!S){const w=m.getLastToken(f),k=m.getTokenAfter(c);k&&c.range[1]===k.range[0]&&!a.canTokensBeAdjacent(w,k)&&(C=" ")}}const v=u(g,E),A=u(d,S),b=u(`${v}**${A}`,x);return h.replaceText(c,`${T}${b}${C}`)}})}return{Program(c){const h=m.getScope(c),s=new n(h),f={Math:{pow:{[e]:!0}}};for(const{node:g}of s.iterateGlobalReferences(f))i(g)}}}},rf}var nf,qS;function nI(){if(qS)return nf;qS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=ur(),l=new t.RegExpParser;function p(u,r,m,i){switch(i.type){case"Literal":if(typeof i.value=="string"&&m.includes("\\"))return null;break;case"TemplateLiteral":if(i.expressions.length||m.slice(1,-1)!==r)return null;break;default:return null}const c=i.range[0]+u+2;return[{fix(h){const f=(r.match(/temp\d+/gu)||[]).reduce((g,d)=>Math.max(g,Number(d.slice(4))),0);return h.insertTextBeforeRange([c,c],`?<temp${f+1}>`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([c,c],"?:")},messageId:"addNonCapture"}]}return nf={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(u){const r=u.sourceCode;function m(i,c,h,s){let f;try{f=l.parsePattern(i,0,i.length,{unicode:!!(s&&s.includes("u")),unicodeSets:!!(s&&s.includes("v"))})}catch{return}t.visitRegExpAST(f,{onCapturingGroupEnter(g){if(!g.name){const d=r.getText(h),E=p(g.start,i,d,h);u.report({node:c,messageId:"required",data:{group:g.raw},suggest:E})}}})}return{Literal(i){i.regex&&m(i.regex.pattern,i,i,i.regex.flags)},Program(i){const c=r.getScope(i),h=new n(c),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:f}of h.iterateGlobalReferences(s)){const g=o(f.arguments[0]),d=o(f.arguments[1]);g&&m(g,f,f.arguments[0],d)}}}}},nf}var sf,VS;function sI(){if(VS)return sf;VS=1;const a=Ue(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function n(o){return a.isSpecificId(o,"parseInt")||a.isSpecificMemberAccess(o,"Number","parseInt")}return sf={meta:{type:"suggestion",docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(o){const t=o.sourceCode;return{"CallExpression[arguments.length=2]"(l){const[p,u]=l.arguments,r=a.getStaticStringValue(p),m=u.value;if(r!==null&&a.isStringLiteral(p)&&u.type==="Literal"&&typeof m=="number"&&e.has(m)&&n(l.callee)){const{system:i,literalPrefix:c}=e.get(m);o.report({node:l,messageId:"useLiteral",data:{system:i,functionName:t.getText(l.callee)},fix(h){if(t.getCommentsInside(l).length)return null;const s=`${c}${r}`;if(+s!==parseInt(r,m))return null;const f=t.getTokenBefore(l),g=t.getTokenAfter(l);let d="",E="";return f&&f.range[1]===l.range[0]&&!a.canTokensBeAdjacent(f,s)&&(d=" "),g&&l.range[1]===g.range[0]&&!a.canTokensBeAdjacent(s,g)&&(E=" "),h.replaceText(l,`${d}${s}${E}`)}})}}}}},sf}var af,$S;function aI(){if($S)return af;$S=1;const a=Ue();function e(n){if(n.object.type==="ObjectExpression"&&n.object.properties.length===0)return!0;const o=n.object.type==="MemberExpression"&&a.getStaticPropertyName(n.object)==="prototype"?n.object.object:n.object;return o.type==="Identifier"&&o.name==="Object"}return af={meta:{type:"suggestion",docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(n){const o=n.sourceCode;return{CallExpression(t){if(!(t.callee.type==="MemberExpression"&&t.callee.object.type==="MemberExpression"))return;const l=a.getStaticPropertyName(t.callee),p=a.getStaticPropertyName(t.callee.object),u=e(t.callee.object),r=o.getScope(t),m=a.getVariableByName(r,"Object");l==="call"&&p==="hasOwnProperty"&&u&&m&&m.scope.type==="global"&&n.report({node:t,messageId:"useHasOwn",fix(i){if(o.getCommentsInside(t.callee).length>0)return null;const c=o.getTokenBefore(t.callee,{includeComments:!0});return c&&c.range[1]===t.callee.range[0]&&!a.canTokensBeAdjacent(c,"Object.hasOwn")?i.replaceText(t.callee," Object.hasOwn"):i.replaceText(t.callee,"Object.hasOwn")}})}}}},af}var of,WS;function iI(){if(WS)return of;WS=1;const{CALL:a,ReferenceTracker:e}=qt(),{isCommaToken:n,isOpeningParenToken:o,isClosingParenToken:t,isParenthesised:l}=Ue(),p=/\s/u;function u(E){return E.arguments.some(S=>S.type==="SpreadElement")}function r(E){return E.type==="Property"&&(E.kind==="get"||E.kind==="set")}function m(E){return E.properties.some(r)}function i(E){return E.arguments.filter(S=>S.type==="ObjectExpression").some(m)}function c(E,S){const x=E.parent;switch(x.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return x.left===E&&!l(S,E);default:return!l(S,E)}}function h(E,S){switch(E.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!l(S,E);default:return!1}}function s(E,S,x){const T=[x.getFirstToken(E),x.getLastToken(E)];let C=x.getTokenBefore(E),v=x.getTokenAfter(E);for(;C&&v&&C.range[0]>S.range[0]&&o(C)&&t(v);)T.push(C,v),C=x.getTokenBefore(C),v=x.getTokenAfter(v);return T.sort((A,b)=>A.range[0]-b.range[0])}function f(E,S){const x=S.text;let T=E.range[0];{const C=S.getTokenBefore(E,{includeComments:!0});if(C&&C.type==="Line")return T}for(;p.test(x[T-1]||"");)T-=1;return T}function g(E,S){const x=S.text;let T=E.range[1];for(;p.test(x[T]||"");)T+=1;return T}function d(E,S){return function*(x){const T=S.getTokenAfter(E.callee,o),C=S.getLastToken(E);yield x.removeRange([E.range[0],T.range[0]]),c(E,S)?(yield x.replaceText(T,"({"),yield x.replaceText(C,"})")):(yield x.replaceText(T,"{"),yield x.replaceText(C,"}"));for(const v of E.arguments){const A=s(v,T,S),b=A.shift(),w=A.pop();if(v.type==="ObjectExpression"){const k=S.getLastToken(v,1),R=S.getTokenAfter(w);for(const P of A)yield x.remove(P);const F=[b.range[0],g(b,S)],L=[Math.max(f(w,S),F[1]),w.range[1]];yield x.removeRange(F),yield x.removeRange(L),(v.properties.length===0||n(k))&&n(R)&&(yield x.remove(R))}else h(v,S)?(yield x.insertTextBefore(b,"...("),yield x.insertTextAfter(w,")")):yield x.insertTextBefore(b,"...")}}}return of={meta:{type:"suggestion",docs:{description:"Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(E){const S=E.sourceCode;return{Program(x){const T=S.getScope(x),C=new e(T),v={Object:{assign:{[a]:!0}}};for(const{node:A}of C.iterateGlobalReferences(v))if(A.arguments.length>=1&&A.arguments[0].type==="ObjectExpression"&&!u(A)&&!(A.arguments.length>1&&i(A))){const b=A.arguments.length===1?"useLiteralMessage":"useSpreadMessage",w=d(A,S);E.report({node:A,messageId:b,fix:w})}}}}},of}var lf,GS;function oI(){if(GS)return lf;GS=1;const a=Ue();return lf={meta:{type:"suggestion",defaultOptions:[{allowEmptyReject:!1}],docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean"}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){const[{allowEmptyReject:n}]=e.options,o=e.sourceCode;function t(p){!p.arguments.length&&n||(!p.arguments.length||!a.couldBeError(p.arguments[0])||p.arguments[0].type==="Identifier"&&p.arguments[0].name==="undefined")&&e.report({node:p,messageId:"rejectAnError"})}function l(p){return a.isSpecificMemberAccess(p.callee,"Promise","reject")}return{CallExpression(p){l(p)&&t(p)},"NewExpression:exit"(p){p.callee.type==="Identifier"&&p.callee.name==="Promise"&&p.arguments.length&&a.isFunction(p.arguments[0])&&p.arguments[0].params.length>1&&p.arguments[0].params[1].type==="Identifier"&&o.getDeclaredVariables(p.arguments[0]).find(u=>u.name===p.arguments[0].params[1].name).references.filter(u=>u.isRead()).filter(u=>u.identifier.parent.type==="CallExpression"&&u.identifier===u.identifier.parent.callee).forEach(u=>t(u.identifier.parent))}}}},lf}var uf,zS;function lI(){return zS||(zS=1,uf={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-reflect"},deprecated:{message:"The original intention of this rule was misguided.",deprecatedSince:"3.9.0",availableUntil:null,replacedBy:[]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(a){const e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},n={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},o=(a.options[0]||{}).exceptions||[];function t(l,p,u){a.report({node:l,messageId:"preferReflect",data:{existing:p,substitute:u}})}return{CallExpression(l){const p=(l.callee.property||{}).name,u=(l.callee.object||{}).name==="Reflect",r=Object.hasOwn(n,p),m=o.includes(p);r&&!u&&!m&&t(l,e[p],n[p])},UnaryExpression(l){const p=l.operator==="delete",u=l.argument.type==="Identifier",r=o.includes("delete");p&&!u&&!r&&t(l,"the delete keyword","Reflect.deleteProperty")}}}}),uf}var cf,HS;function uI(){if(HS)return cf;HS=1;const a=Ue(),{CALL:e,CONSTRUCT:n,ReferenceTracker:o}=qt(),{RegExpValidator:t,visitRegExpAST:l,RegExpParser:p}=ur(),{canTokensBeAdjacent:u}=Ue(),{REGEXPP_LATEST_ECMA_VERSION:r}=ru();function m(h){return h.type==="Literal"&&typeof h.value=="string"}function i(h){return h.type==="Literal"&&Object.hasOwn(h,"regex")}const c=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return cf={meta:{type:"suggestion",defaultOptions:[{disallowRedundantWrapping:!1}],docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(h){const[{disallowRedundantWrapping:s}]=h.options,f=h.sourceCode;function g(F){return F.type==="TaggedTemplateExpression"&&a.isSpecificMemberAccess(F.tag,"String","raw")&&f.isGlobalReference(a.skipChainExpression(F.tag).object)&&a.isStaticTemplateLiteral(F.quasi)}function d(F){return m(F)?F.value:a.isStaticTemplateLiteral(F)?F.quasis[0].value.cooked:g(F)?F.quasi.quasis[0].value.raw:null}function E(F){return m(F)||a.isStaticTemplateLiteral(F)||g(F)}function S(F){const L=F.arguments;return!!((L.length===1||L.length===2)&&L.every(E))}function x(F){const L=F.arguments;return!!(L.length===1&&i(L[0])||L.length===2&&i(L[0])&&E(L[1]))}function T(F){return F<=5?5:Math.min(F,r)}const C=T(h.languageOptions.ecmaVersion);function v(F){switch(F){case`
|
|
116
116
|
`:case`\\
|
|
117
|
-
`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function A(F,L){const P=new t({ecmaVersion:C});try{return P.validatePattern(F,0,F.length,{unicode:L?L.includes("u"):!1,unicodeSets:L?L.includes("v"):!1}),L&&P.validateFlags(L),!0}catch{return!1}}function b(F,L){return[...F].sort().join("")===[...L].sort().join("")}function w(F,L){return[...new Set([...F,...L])].join("")}function k(F,L,P){const O=f.getTokenBefore(F);return f.getCommentsInside(F).length===0&&(!O||c.has(O.value))&&A(L,P)}function R(F,L){const P=f.getTokenBefore(F),O=f.getTokenAfter(F);return(P&&!u(P,L)&&P.range[1]===F.range[0]?" ":"")+L+(O&&!u(L,O)&&F.range[1]===O.range[0]?" ":"")}return{Program(F){const L=f.getScope(F),P=new o(L),O={RegExp:{[e]:!0,[n]:!0}};for(const{node:q}of P.iterateGlobalReferences(O))if(s&&x(q)){const N=q.arguments[0];if(q.arguments.length===2){const _=[],G=d(q.arguments[1])||"";k(q,N.regex.pattern,G)&&_.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:G});const B=N.regex.flags||"",z=w(B,G);!b(z,G)&&k(q,N.regex.pattern,z)&&_.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:z}),h.report({node:q,messageId:"unexpectedRedundantRegExpWithFlags",suggest:_.map(({flags:H,pattern:ce,messageId:re})=>({messageId:re,data:{flags:H},fix(Fe){return Fe.replaceText(q,R(q,`/${ce}/${H}`))}}))})}else{const _=[];k(q,N.regex.pattern,N.regex.flags)&&_.push(f.getText(N)),h.report({node:q,messageId:"unexpectedRedundantRegExp",suggest:_.map(G=>({messageId:"replaceWithLiteral",fix(B){return B.replaceText(q,R(q,G))}}))})}}else if(S(q)){let N=d(q.arguments[0]),_=!1,G;if(q.arguments[1]&&(G=d(q.arguments[1])),k(q,N,G)||(_=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.><?,'"|:;]*$/u.test(N)||(_=!0),N&&!_){let z=0;const H=new p({ecmaVersion:C}).parsePattern(N,0,N.length,{unicode:G?G.includes("u"):!1,unicodeSets:G?G.includes("v"):!1});l(H,{onCharacterEnter(ce){const re=v(ce.raw);re&&(N=N.slice(0,ce.start+z)+re+N.slice(ce.end+z),ce.raw.length===1&&(z+=1))}})}const B=`/${N||"(?:)"}/${G||""}`;h.report({node:q,messageId:"unexpectedRegExp",suggest:_?[]:[{messageId:"replaceWithLiteral",fix(z){return z.replaceText(q,R(q,B))}}]})}}}}},cf}var ff,KS;function cI(){if(KS)return ff;KS=1;function a(n){const o=n.variables;for(let t=0;t<o.length;++t){const l=o[t];if(l.name==="arguments")return l.identifiers.length===0?l:null}return null}function e(n){const o=n.identifier,t=o.parent;return!(t.type==="MemberExpression"&&t.object===o&&!t.computed)}return ff={meta:{type:"suggestion",docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(n){const o=n.sourceCode;function t(p){n.report({node:p.identifier,loc:p.identifier.loc,messageId:"preferRestParams"})}function l(p){const u=a(o.getScope(p));u&&u.references.filter(e).forEach(t)}return{"FunctionDeclaration:exit":l,"FunctionExpression:exit":l}}},ff}var pf,XS;function fI(){if(XS)return pf;XS=1;const a=Ue();function e(o){return a.isSpecificMemberAccess(o.callee,null,"apply")&&o.arguments.length===2&&o.arguments[1].type!=="ArrayExpression"&&o.arguments[1].type!=="SpreadElement"}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return pf={meta:{type:"suggestion",docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const p=a.skipChainExpression(a.skipChainExpression(l.callee).object),u=p.type==="MemberExpression"?p.object:null,r=l.arguments[0];n(u,r,t)&&o.report({node:l,messageId:"preferSpread"})}}}},pf}var mf,JS;function pI(){if(JS)return mf;JS=1;const a=Ue();function e(r){return r.type==="BinaryExpression"&&r.operator==="+"}function n(r){let m=r;for(;e(m.parent);)m=m.parent;return m}function o(r){return e(r)?o(r.left)||o(r.right):r.type==="Literal"&&typeof r.value=="string"?a.hasOctalOrNonOctalDecimalEscapeSequence(r.raw):!1}function t(r){return e(r)?t(r.right)||t(r.left):a.isStringLiteral(r)}function l(r){return e(r)?l(r.right)||l(r.left):!a.isStringLiteral(r)}function p(r){return r.type==="BinaryExpression"?p(r.left):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis[0].range[0]===r.quasis[0].range[1]:r.type!=="Literal"||typeof r.value!="string"}function u(r){return r.type==="BinaryExpression"?p(r.right):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis.at(-1).range[0]===r.quasis.at(-1).range[1]:r.type!=="Literal"||typeof r.value!="string"}return mf={meta:{type:"suggestion",docs:{description:"Require template literals instead of string concatenation",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(r){const m=r.sourceCode;let i=Object.create(null);function c(g,d){const E=[g].concat(m.getTokensBetween(g,d)).concat(d),S=m.getText();return E.slice(0,-1).reduce((x,T,C)=>x+S.slice(T.range[1],E[C+1].range[0]),"")}function h(g,d,E){if(g.type==="Literal"&&typeof g.value=="string")return`\`${g.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,S=>S.lastIndexOf("\\")%2?`\\${S}`:S).replace(new RegExp(`\\\\${g.raw[0]}`,"gu"),g.raw[0])}\``;if(g.type==="TemplateLiteral")return m.getText(g);if(e(g)&&t(g)){const S=m.getFirstTokenBetween(g.left,g.right,A=>A.value==="+"),x=c(g.left,S),T=c(S,g.right),C=u(g.left),v=p(g.right);return C?h(g.left,d,x+T).slice(0,-1)+h(g.right,null,E).slice(1):v?h(g.left,d,null).slice(0,-1)+h(g.right,x+T,E).slice(1):`${h(g.left,d,null)}${x}+${T}${h(g.right,E,null)}`}return`\`\${${d||""}${m.getText(g)}${E||""}}\``}function s(g,d){const E=n(d.parent);return o(E)?null:g.replaceText(E,h(E,null,null))}function f(g){if(!a.isStringLiteral(g)||!e(g.parent))return;const d=n(g.parent);i[d.range[0]]||(i[d.range[0]]=!0,l(d)&&r.report({node:d,messageId:"unexpectedStringConcatenation",fix:E=>s(E,g)}))}return{Program(){i=Object.create(null)},Literal:f,TemplateLiteral:f}}},mf}var hf,YS;function mI(){if(YS)return hf;YS=1;const a=hn(),e=Ue(),n=qi();return hf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quote-props",url:"https://eslint.style/rules/quote-props"}}]},type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(o){const t=o.options[0],l=o.options[1]&&o.options[1].keywords,p=!o.options[1]||o.options[1].unnecessary!==!1,u=o.options[1]&&o.options[1].numbers,r=o.sourceCode;function m(d){return n.includes(d)}function i(d,E,S){return E.length===1&&E[0].start===0&&E[0].end===d.length&&(["Identifier","Keyword","Null","Boolean"].includes(E[0].type)||E[0].type==="Numeric"&&!S&&String(+E[0].value)===E[0].value)}function c(d){return d.type==="Identifier"?d.name:d.value}function h(d){return d.type==="Literal"&&typeof d.value=="string"?r.getText(d):`"${d.type==="Identifier"?d.name:d.value}"`}function s(d){const E=d.key;if(!(d.method||d.computed||d.shorthand))if(E.type==="Literal"&&typeof E.value=="string"){let S;try{S=a.tokenize(E.value)}catch{return}if(S.length!==1||m(S[0].value)&&l)return;p&&i(E.value,S,u)&&o.report({node:d,messageId:"unnecessarilyQuotedProperty",data:{property:E.value},fix:T=>T.replaceText(E,c(E))})}else l&&E.type==="Identifier"&&m(E.name)?o.report({node:d,messageId:"unquotedReservedProperty",data:{property:E.name},fix:S=>S.replaceText(E,h(E))}):u&&E.type==="Literal"&&e.isNumericLiteral(E)&&o.report({node:d,messageId:"unquotedNumericProperty",data:{property:E.value},fix:S=>S.replaceText(E,h(E))})}function f(d){const E=d.key;!d.method&&!d.computed&&!d.shorthand&&!(E.type==="Literal"&&typeof E.value=="string")&&o.report({node:d,messageId:"unquotedPropertyFound",data:{property:E.name||E.value},fix:S=>S.replaceText(E,h(E))})}function g(d,E){const S=[],x=[];let T=null,C=!1;d.properties.forEach(v=>{const A=v.key;if(!(!A||v.method||v.computed||v.shorthand))if(A.type==="Literal"&&typeof A.value=="string"){if(S.push(v),E){let b;try{b=a.tokenize(A.value)}catch{C=!0;return}C=C||!i(A.value,b)||l&&m(b[0].value)}}else l&&E&&A.type==="Identifier"&&m(A.name)?(x.push(v),C=!0,T=A.name):x.push(v)}),E&&S.length&&!C?S.forEach(v=>{o.report({node:v,messageId:"redundantQuoting",fix:A=>A.replaceText(v.key,c(v.key))})}):x.length&&T?x.forEach(v=>{o.report({node:v,messageId:"requireQuotesDueToReservedWord",data:{property:T},fix:A=>A.replaceText(v.key,h(v.key))})}):S.length&&x.length&&x.forEach(v=>{o.report({node:v,messageId:"inconsistentlyQuotedProperty",data:{key:v.key.name||v.key.value},fix:A=>A.replaceText(v.key,h(v.key))})})}return{Property(d){(t==="always"||!t)&&f(d),t==="as-needed"&&s(d)},ObjectExpression(d){t==="consistent"&&g(d,!1),t==="consistent-as-needed"&&g(d,!0)}}}},hf}var df,QS;function hI(){if(QS)return df;QS=1;const a=Ue(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},n=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(a.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(t){const l=this.quote,p=t[0];return l===p?t:l+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(u,r,m)=>r===p||p==="`"&&r==="${"?r:u===l||l==="`"&&u==="${"?`\\${u}`:m&&p==="`"?"\\n":u)+l};const o="avoid-escape";return df={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quotes",url:"https://eslint.style/rules/quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(t){const l=t.options[0],p=e[l||"double"],u=t.options[1],r=u&&u.allowTemplateLiterals===!0,m=t.sourceCode;let i=u&&u.avoidEscape===!0;u===o&&(i=!0);function c(d){return d.parent.type==="JSXAttribute"||d.parent.type==="JSXElement"||d.parent.type==="JSXFragment"}function h(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"&&!a.isParenthesised(m,d.expression)}function s(d){if(!a.isTopLevelExpressionStatement(d.parent))return!1;const E=d.parent.parent;for(let S=0;S<E.body.length;++S){const x=E.body[S];if(x===d.parent)return!0;if(!h(x))break}return!1}function f(d){const E=d.parent;switch(E.type){case"ExpressionStatement":return!a.isParenthesised(m,d)&&s(d);case"Property":case"PropertyDefinition":case"MethodDefinition":return E.key===d&&!E.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return E.source===d;case"ExportAllDeclaration":return E.exported===d||E.source===d;case"ImportSpecifier":return E.imported===d;case"ExportSpecifier":return E.local===d||E.exported===d;default:return!1}}function g(d){return!!(d.parent.type==="TaggedTemplateExpression"&&d===d.parent.quasi||d.expressions.length>0||d.quasis.length>=1&&n.test(d.quasis[0].value.raw))}return{Literal(d){const E=d.value,S=d.raw;if(p&&typeof E=="string"){let x=l==="backtick"&&f(d)||c(d)||a.isSurroundedBy(S,p.quote);!x&&i&&(x=a.isSurroundedBy(S,p.alternateQuote)&&S.includes(p.quote)),x||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(T){return l==="backtick"&&a.hasOctalOrNonOctalDecimalEscapeSequence(S)?null:T.replaceText(d,p.convert(d.raw))}})}},TemplateLiteral(d){r||l==="backtick"||g(d)||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(E){return a.isTopLevelExpressionStatement(d.parent)&&!a.isParenthesised(m,d)?null:E.replaceText(d,p.convert(m.getText(d)))}})}}}},df}var gf,ZS;function dI(){if(ZS)return gf;ZS=1;const a=Ue(),e="always",n="as-needed",o=new Set(Array.from({length:35},(r,m)=>m+2));function t(r){return r.defs.length>=1}function l(r){return r.type==="MemberExpression"&&!r.computed&&r.property.type==="Identifier"&&r.property.name==="parseInt"}function p(r){return!(r.type==="Literal"&&!o.has(r.value)||r.type==="Identifier"&&r.name==="undefined")}function u(r){return r.type==="Literal"&&r.value===10}return gf={meta:{type:"suggestion",defaultOptions:[e],docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(r){const[m]=r.options,i=r.sourceCode;function c(h){const s=h.arguments;switch(s.length){case 0:r.report({node:h,messageId:"missingParameters"});break;case 1:m===e&&r.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(f){const g=i.getTokens(h),d=g.at(-1),E=g.at(-2),S=E.type==="Punctuator"&&E.value===",";return f.insertTextBefore(d,S?" 10,":", 10")}}]});break;default:m===n&&u(s[1])?r.report({node:h,messageId:"redundantRadix"}):p(s[1])||r.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){const s=i.getScope(h);let f;f=a.getVariableByName(s,"parseInt"),f&&!t(f)&&f.references.forEach(g=>{const d=g.identifier;a.isCallee(d)&&c(d.parent)}),f=a.getVariableByName(s,"Number"),f&&!t(f)&&f.references.forEach(g=>{const d=g.identifier.parent,E=d.parent.type==="ChainExpression"?d.parent:d;l(d)&&a.isCallee(E)&&c(E.parent)})}}}},gf}var yf,eb;function gI(){if(eb)return yf;eb=1;function a(t,l=new Map){for(const p of t.references)p.resolved!==null&&l.set(p.identifier,p);for(const p of t.childScopes)p.type!=="function"&&a(p,l);return l}function e(t){if(t.writeExpr)return t.writeExpr;let l=t.identifier;for(;l;){const p=l.parent.type;if(p==="AssignmentExpression"&&l.parent.left===l)return l.parent.right;if(p==="MemberExpression"&&l.parent.object===l){l=l.parent;continue}break}return null}function n(t,l){if(!t||l&&t.defs.some(u=>u.type==="Parameter"))return!1;const p=t.scope.variableScope;return t.references.every(u=>u.from.variableScope===p)}class o{constructor(){this.info=new WeakMap}initialize(l){const p=new Set,u=new Set;for(const r of l.prevSegments){const m=this.info.get(r);m&&(m.outdatedReadVariables.forEach(Set.prototype.add,p),m.freshReadVariables.forEach(Set.prototype.add,u))}this.info.set(l,{outdatedReadVariables:p,freshReadVariables:u})}markAsRead(l,p){for(const u of l){const r=this.info.get(u);r&&(r.freshReadVariables.add(p),r.outdatedReadVariables.delete(p))}}makeOutdated(l){for(const p of l){const u=this.info.get(p);u&&(u.freshReadVariables.forEach(Set.prototype.add,u.outdatedReadVariables),u.freshReadVariables.clear())}}isOutdated(l,p){for(const u of l){const r=this.info.get(u);if(r&&r.outdatedReadVariables.has(p))return!0}return!1}}return yf={meta:{type:"problem",defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean"}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(t){const[{allowProperties:l}]=t.options,p=t.sourceCode,u=new Map,r=new o;let m=null;return{onCodePathStart(i,c){const h=p.getScope(c),s=h.type==="function"&&(h.block.async||h.block.generator);m={upper:m,codePath:i,referenceMap:s?a(h):null,currentSegments:new Set}},onCodePathEnd(){m=m.upper},onCodePathSegmentStart(i){r.initialize(i),m.currentSegments.add(i)},onUnreachableCodePathSegmentStart(i){m.currentSegments.add(i)},onUnreachableCodePathSegmentEnd(i){m.currentSegments.delete(i)},onCodePathSegmentEnd(i){m.currentSegments.delete(i)},Identifier(i){const{referenceMap:c}=m,h=c&&c.get(i);if(!h)return;const s=h.resolved,f=e(h),g=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(f&&f.parent.operator==="=")&&r.markAsRead(m.currentSegments,s),f&&f.parent.right===f&&!n(s,g)){let d=u.get(f);d||(d=[],u.set(f,d)),d.push(h)}},":expression:exit"(i){if(!m.referenceMap)return;(i.type==="AwaitExpression"||i.type==="YieldExpression")&&r.makeOutdated(m.currentSegments);const c=u.get(i);if(c){u.delete(i);for(const h of c){const s=h.resolved;r.isOutdated(m.currentSegments,s)&&(i.parent.left===h.identifier?t.report({node:i.parent,messageId:"nonAtomicUpdate",data:{value:s.name}}):l||t.report({node:i.parent,messageId:"nonAtomicObjectUpdate",data:{value:p.getText(i.parent.left),object:s.name}}))}}}}}},yf}var vf,tb;function yI(){if(tb)return vf;tb=1;const a=Ue();function e(n){return n[0].toUpperCase()+n.slice(1)}return vf={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression.",removeAsync:"Remove 'async'."},hasSuggestions:!0},create(n){const o=n.sourceCode;let t=null;function l(){t={upper:t,hasAwait:!1}}function p(u){if(!u.generator&&u.async&&!t.hasAwait&&!a.isEmptyFunction(u)){const r=u.parent.type==="MethodDefinition"&&u.parent.value===u||u.parent.type==="Property"&&u.parent.method&&u.parent.value===u?u.parent:u,m=o.getFirstToken(r,s=>s.value==="async"),i=[m.range[0],o.getTokenAfter(m,{includeComments:!0}).range[0]],c=o.getTokenAfter(m),h=c.type==="Punctuator"&&(c.value==="["||c.value==="(")&&(r.type==="MethodDefinition"||a.isStartOfExpressionStatement(r))&&a.needsPrecedingSemicolon(o,r);n.report({node:u,loc:a.getFunctionHeadLoc(u,o),messageId:"missingAwait",data:{name:e(a.getFunctionNameWithKind(u))},suggest:[{messageId:"removeAsync",fix:s=>s.replaceTextRange(i,h?";":"")}]})}t=t.upper}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,AwaitExpression(){t&&(t.hasAwait=!0)},ForOfStatement(u){t&&u.await&&(t.hasAwait=!0)},VariableDeclaration(u){t&&u.kind==="await using"&&(t.hasAwait=!0)}}}},vf}var Ef,rb;function vI(){if(rb)return Ef;rb=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=Ue(),{isValidWithUnicodeFlag:l}=ru();function p(u,r){let m;return u==="v"?m=!r.includes("v"):u==="u"?m=!r.includes("u"):m=!r.includes("u")&&!r.includes("v"),m}return Ef={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",addVFlag:"Add the 'v' flag.",requireUFlag:"Use the 'u' flag.",requireVFlag:"Use the 'v' flag."},schema:[{type:"object",properties:{requireFlag:{enum:["u","v"]}},additionalProperties:!1}]},create(u){const r=u.sourceCode,{requireFlag:m}=u.options[0]??{};return{"Literal[regex]"(i){const c=i.regex.flags||"";p(m,c)&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:i,suggest:l(u.languageOptions.ecmaVersion,i.regex.pattern,m)?[{fix(s){const f=m??"u",g=r.getText(i),d=g.lastIndexOf("/");if(m){const E=m==="u"?"v":"u";if(g.includes(E,d))return s.replaceText(i,g.slice(0,d)+g.slice(d).replace(E,m))}return s.insertTextAfter(i,f)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})},Program(i){const c=r.getScope(i),h=new n(c),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:f}of h.iterateGlobalReferences(s)){const[g,d]=f.arguments;if(g&&g.type==="SpreadElement")continue;const E=o(g,c),S=o(d,c);let x=!d;typeof S=="string"&&(x=p(m,S)),x&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:f,suggest:typeof E=="string"&&l(u.languageOptions.ecmaVersion,E,m)?[{fix(T){const C=m??"u";if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){const A=r.getText(d),b=m==="u"?"v":"u";return S.includes(b)?d.type==="Literal"&&d.raw.includes("\\")||d.type==="TemplateLiteral"&&(d.expressions.length||d.quasis.some(({value:{raw:w}})=>w.includes("\\")))?null:T.replaceText(d,A.replace(b,C)):T.replaceText(d,[A.slice(0,A.length-1),A.slice(A.length-1)].join(C))}return null}const v=r.getLastToken(f,{skip:1});return T.insertTextAfter(v,t.isCommaToken(v)?` "${C}",`:`, "${C}"`)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})}}}}},Ef}var Sf,nb;function EI(){return nb||(nb=1,Sf={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(a){const e=[];function n(t){t.generator&&e.push(0)}function o(t){if(!t.generator)return;e.pop()===0&&t.body.body.length>0&&a.report({node:t,messageId:"missingYield"})}return{FunctionDeclaration:n,"FunctionDeclaration:exit":o,FunctionExpression:n,"FunctionExpression:exit":o,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),Sf}var bf,sb;function SI(){return sb||(sb=1,bf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"rest-spread-spacing",url:"https://eslint.style/rules/rest-spread-spacing"}}]},type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(a){const e=a.sourceCode,n=a.options[0]==="always";function o(t){const l=e.getFirstToken(t),p=e.getTokenAfter(l),u=e.isSpaceBetweenTokens(l,p);let r;switch(t.type){case"SpreadElement":r="spread",t.parent.type==="ObjectExpression"&&(r+=" property");break;case"RestElement":r="rest",t.parent.type==="ObjectPattern"&&(r+=" property");break;case"ExperimentalSpreadProperty":r="spread property";break;case"ExperimentalRestProperty":r="rest property";break;default:return}n&&!u?a.report({node:t,loc:l.loc,messageId:"expectedWhitespace",data:{type:r},fix(m){return m.replaceTextRange([l.range[1],p.range[0]]," ")}}):!n&&u&&a.report({node:t,loc:{start:l.loc.end,end:p.loc.start},messageId:"unexpectedWhitespace",data:{type:r},fix(m){return m.removeRange([l.range[1],p.range[0]])}})}return{SpreadElement:o,RestElement:o,ExperimentalSpreadProperty:o,ExperimentalRestProperty:o}}}),bf}var xf,ab;function bI(){if(ab)return xf;ab=1;const a=nn(),e=Ue();return xf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi",url:"https://eslint.style/rules/semi"}}]},type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(n){const o=/^[-[(/+`]/u,t=new Set(["get","set","static"]),l=new Set(["*","in","instanceof"]),p=n.options[1],u=n.options[0]==="never",r=!!(p&&p.omitLastInOneLineBlock),m=!!(p&&p.omitLastInOneLineClassBody),i=p&&p.beforeStatementContinuationChars||"any",c=n.sourceCode;function h(b,w){const k=c.getLastToken(b);let R,F,L;w?(R="extraSemi",L=k.loc,F=function(P){return new a(P,c).retainSurroundingTokens(k).remove(k)}):(R="missingSemi",L={start:k.loc.end,end:e.getNextLocation(c,k.loc.end)},F=function(P){return P.insertTextAfter(k,";")}),n.report({node:b,loc:L,messageId:R,fix:F})}function s(b){const w=c.getTokenAfter(b);return!w||e.isClosingBraceToken(w)||e.isSemicolonToken(w)}function f(b){if(!e.isClosingBraceToken(b))return!1;const w=c.getNodeByRangeIndex(b.range[0]);return w.type==="BlockStatement"&&w.parent.type==="ArrowFunctionExpression"}function g(b){if(b.type!=="PropertyDefinition")return!1;if(!b.computed&&b.key.type==="Identifier"&&t.has(b.key.name)&&!(b.static&&b.key.name==="static")&&!b.value)return!0;const k=c.getTokenAfter(b);return l.has(k.value)}function d(b){const w=c.getLastToken(b,1),k=c.getTokenAfter(b);return!!k&&e.isTokenOnSameLine(w,k)}function E(b){const w=b.type;return w==="DoWhileStatement"||w==="BreakStatement"||w==="ContinueStatement"||w==="DebuggerStatement"||w==="ImportDeclaration"||w==="ExportAllDeclaration"?!1:w==="ReturnStatement"?!!b.argument:w==="ExportNamedDeclaration"?!!b.declaration:!f(c.getLastToken(b,1))}function S(b){return!!b&&o.test(b.value)&&b.value!=="++"&&b.value!=="--"}function x(b){return s(c.getLastToken(b))?!0:g(b)||d(b)?!1:b.type!=="PropertyDefinition"&&i==="never"&&!E(b)||!S(c.getTokenAfter(b))}function T(b){const w=b.parent,k=c.getTokenAfter(b);return!k||k.value!=="}"?!1:w.type==="BlockStatement"?w.loc.start.line===w.loc.end.line:w.type==="StaticBlock"?c.getFirstToken(w,{skip:1}).loc.start.line===w.loc.end.line:!1}function C(b){const w=b.parent,k=c.getTokenAfter(b);return!k||k.value!=="}"?!1:w.type==="ClassBody"?w.loc.start.line===w.loc.end.line:!1}function v(b){const w=e.isSemicolonToken(c.getLastToken(b));if(u)w&&x(b)?h(b,!0):!w&&i==="always"&&b.type!=="PropertyDefinition"&&S(c.getTokenAfter(b))&&h(b);else{const k=r&&T(b),R=m&&C(b),F=k||R;w&&F?h(b,!0):!w&&!F&&h(b)}}function A(b){const w=b.parent;(w.type!=="ForStatement"||w.init!==b)&&(!/^For(?:In|Of)Statement/u.test(w.type)||w.left!==b)&&v(b)}return{VariableDeclaration:A,ExpressionStatement:v,ReturnStatement:v,ThrowStatement:v,DoWhileStatement:v,DebuggerStatement:v,BreakStatement:v,ContinueStatement:v,ImportDeclaration:v,ExportAllDeclaration:v,ExportNamedDeclaration(b){b.declaration||v(b)},ExportDefaultDeclaration(b){/(?:Class|Function)Declaration/u.test(b.declaration.type)||v(b)},PropertyDefinition:v}}},xf}var Cf,ib;function xI(){if(ib)return Cf;ib=1;const a=Ue();return Cf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-spacing",url:"https://eslint.style/rules/semi-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){const n=e.options[0],o=e.sourceCode;let t=!1,l=!0;typeof n=="object"&&(t=n.before,l=n.after);function p(s){const f=o.getTokenBefore(s);return f&&a.isTokenOnSameLine(f,s)&&o.isSpaceBetweenTokens(f,s)}function u(s){const f=o.getTokenAfter(s);return f&&a.isTokenOnSameLine(s,f)&&o.isSpaceBetweenTokens(s,f)}function r(s){const f=o.getTokenAfter(s);return!(f&&a.isTokenOnSameLine(s,f))}function m(s){const f=o.getTokenBefore(s);return!(f&&a.isTokenOnSameLine(s,f))}function i(s){const f=o.getTokenAfter(s);return f&&a.isClosingBraceToken(f)||a.isClosingParenToken(f)}function c(s,f){if(a.isSemicolonToken(s)){if(p(s)){if(!t){const g=o.getTokenBefore(s),d={start:g.loc.end,end:s.loc.start};e.report({node:f,loc:d,messageId:"unexpectedWhitespaceBefore",fix(E){return E.removeRange([g.range[1],s.range[0]])}})}}else if(t){const g=s.loc;e.report({node:f,loc:g,messageId:"missingWhitespaceBefore",fix(d){return d.insertTextBefore(s," ")}})}if(!m(s)&&!r(s)&&!i(s)){if(u(s)){if(!l){const g=o.getTokenAfter(s),d={start:s.loc.end,end:g.loc.start};e.report({node:f,loc:d,messageId:"unexpectedWhitespaceAfter",fix(E){return E.removeRange([s.range[1],g.range[0]])}})}}else if(l){const g=s.loc;e.report({node:f,loc:g,messageId:"missingWhitespaceAfter",fix(d){return d.insertTextAfter(s," ")}})}}}}function h(s){const f=o.getLastToken(s);c(f,s)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(s){s.init&&c(o.getTokenAfter(s.init),s),s.test&&c(o.getTokenAfter(s.test),s)},PropertyDefinition:h}}},Cf}var wf,ob;function CI(){if(ob)return wf;ob=1;const a=Ue(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function n(t){const l=t.type;return l==="BlockStatement"||l==="StaticBlock"||l==="Program"||l==="ClassBody"?t.body:l==="SwitchCase"?t.consequent:null}function o(t){const l=t.parent.type;if(l==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||l==="DoWhileStatement")return!0;const p=n(t.parent);return p!==null&&p.at(-1)===t}return wf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-style",url:"https://eslint.style/rules/semi-style"}}]},type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(t){const l=t.sourceCode,p=t.options[0]||"last";function u(r,m){const i=l.getTokenBefore(r),c=l.getTokenAfter(r),h=!i||a.isTokenOnSameLine(i,r),s=!c||a.isTokenOnSameLine(r,c);(m==="last"&&!h||m==="first"&&!s)&&t.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:m==="last"?"the end of the previous line":"the beginning of the next line"},fix(f){if(i&&c&&l.commentsExistBetween(i,c))return null;const g=i?i.range[1]:r.range[0],d=c?c.range[0]:r.range[1],E=m==="last"?`;
|
|
117
|
+
`:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function A(F,L){const P=new t({ecmaVersion:C});try{return P.validatePattern(F,0,F.length,{unicode:L?L.includes("u"):!1,unicodeSets:L?L.includes("v"):!1}),L&&P.validateFlags(L),!0}catch{return!1}}function b(F,L){return[...F].sort().join("")===[...L].sort().join("")}function w(F,L){return[...new Set([...F,...L])].join("")}function k(F,L,P){const O=f.getTokenBefore(F);return f.getCommentsInside(F).length===0&&(!O||c.has(O.value))&&A(L,P)}function R(F,L){const P=f.getTokenBefore(F),O=f.getTokenAfter(F);return(P&&!u(P,L)&&P.range[1]===F.range[0]?" ":"")+L+(O&&!u(L,O)&&F.range[1]===O.range[0]?" ":"")}return{Program(F){const L=f.getScope(F),P=new o(L),O={RegExp:{[e]:!0,[n]:!0}};for(const{node:q}of P.iterateGlobalReferences(O))if(s&&x(q)){const N=q.arguments[0];if(q.arguments.length===2){const _=[],G=d(q.arguments[1])||"";k(q,N.regex.pattern,G)&&_.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:G});const B=N.regex.flags||"",z=w(B,G);!b(z,G)&&k(q,N.regex.pattern,z)&&_.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:z}),h.report({node:q,messageId:"unexpectedRedundantRegExpWithFlags",suggest:_.map(({flags:H,pattern:ce,messageId:re})=>({messageId:re,data:{flags:H},fix(Fe){return Fe.replaceText(q,R(q,`/${ce}/${H}`))}}))})}else{const _=[];k(q,N.regex.pattern,N.regex.flags)&&_.push(f.getText(N)),h.report({node:q,messageId:"unexpectedRedundantRegExp",suggest:_.map(G=>({messageId:"replaceWithLiteral",fix(B){return B.replaceText(q,R(q,G))}}))})}}else if(S(q)){let N=d(q.arguments[0]),_=!1,G;if(q.arguments[1]&&(G=d(q.arguments[1])),k(q,N,G)||(_=!0),/^[-\w\\[\](){} \t\r\n\v\f!@#$%^&*+=/~`.><?,'"|:;]*$/u.test(N)||(_=!0),N&&!_){let z=0;const H=new p({ecmaVersion:C}).parsePattern(N,0,N.length,{unicode:G?G.includes("u"):!1,unicodeSets:G?G.includes("v"):!1});l(H,{onCharacterEnter(ce){const re=v(ce.raw);re&&(N=N.slice(0,ce.start+z)+re+N.slice(ce.end+z),ce.raw.length===1&&(z+=1))}})}const B=`/${N||"(?:)"}/${G||""}`;h.report({node:q,messageId:"unexpectedRegExp",suggest:_?[]:[{messageId:"replaceWithLiteral",fix(z){return z.replaceText(q,R(q,B))}}]})}}}}},cf}var ff,KS;function cI(){if(KS)return ff;KS=1;function a(n){const o=n.variables;for(let t=0;t<o.length;++t){const l=o[t];if(l.name==="arguments")return l.identifiers.length===0?l:null}return null}function e(n){const o=n.identifier,t=o.parent;return!(t.type==="MemberExpression"&&t.object===o&&!t.computed)}return ff={meta:{type:"suggestion",docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(n){const o=n.sourceCode;function t(p){n.report({node:p.identifier,loc:p.identifier.loc,messageId:"preferRestParams"})}function l(p){const u=a(o.getScope(p));u&&u.references.filter(e).forEach(t)}return{"FunctionDeclaration:exit":l,"FunctionExpression:exit":l}}},ff}var pf,XS;function fI(){if(XS)return pf;XS=1;const a=Ue();function e(o){return a.isSpecificMemberAccess(o.callee,null,"apply")&&o.arguments.length===2&&o.arguments[1].type!=="ArrayExpression"&&o.arguments[1].type!=="SpreadElement"}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return pf={meta:{type:"suggestion",docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const p=a.skipChainExpression(a.skipChainExpression(l.callee).object),u=p.type==="MemberExpression"?p.object:null,r=l.arguments[0];n(u,r,t)&&o.report({node:l,messageId:"preferSpread"})}}}},pf}var mf,JS;function pI(){if(JS)return mf;JS=1;const a=Ue();function e(r){return r.type==="BinaryExpression"&&r.operator==="+"}function n(r){let m=r;for(;e(m.parent);)m=m.parent;return m}function o(r){return e(r)?o(r.left)||o(r.right):r.type==="Literal"&&typeof r.value=="string"?a.hasOctalOrNonOctalDecimalEscapeSequence(r.raw):!1}function t(r){return e(r)?t(r.right)||t(r.left):a.isStringLiteral(r)}function l(r){return e(r)?l(r.right)||l(r.left):!a.isStringLiteral(r)}function p(r){return r.type==="BinaryExpression"?p(r.left):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis[0].range[0]===r.quasis[0].range[1]:r.type!=="Literal"||typeof r.value!="string"}function u(r){return r.type==="BinaryExpression"?p(r.right):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis.at(-1).range[0]===r.quasis.at(-1).range[1]:r.type!=="Literal"||typeof r.value!="string"}return mf={meta:{type:"suggestion",docs:{description:"Require template literals instead of string concatenation",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(r){const m=r.sourceCode;let i=Object.create(null);function c(g,d){const E=[g].concat(m.getTokensBetween(g,d)).concat(d),S=m.getText();return E.slice(0,-1).reduce((x,T,C)=>x+S.slice(T.range[1],E[C+1].range[0]),"")}function h(g,d,E){if(g.type==="Literal"&&typeof g.value=="string")return`\`${g.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,S=>S.lastIndexOf("\\")%2?`\\${S}`:S).replace(new RegExp(`\\\\${g.raw[0]}`,"gu"),g.raw[0])}\``;if(g.type==="TemplateLiteral")return m.getText(g);if(e(g)&&t(g)){const S=m.getFirstTokenBetween(g.left,g.right,A=>A.value==="+"),x=c(g.left,S),T=c(S,g.right),C=u(g.left),v=p(g.right);return C?h(g.left,d,x+T).slice(0,-1)+h(g.right,null,E).slice(1):v?h(g.left,d,null).slice(0,-1)+h(g.right,x+T,E).slice(1):`${h(g.left,d,null)}${x}+${T}${h(g.right,E,null)}`}return`\`\${${d||""}${m.getText(g)}${E||""}}\``}function s(g,d){const E=n(d.parent);return o(E)?null:g.replaceText(E,h(E,null,null))}function f(g){if(!a.isStringLiteral(g)||!e(g.parent))return;const d=n(g.parent);i[d.range[0]]||(i[d.range[0]]=!0,l(d)&&r.report({node:d,messageId:"unexpectedStringConcatenation",fix:E=>s(E,g)}))}return{Program(){i=Object.create(null)},Literal:f,TemplateLiteral:f}}},mf}var hf,YS;function mI(){if(YS)return hf;YS=1;const a=hn(),e=Ue(),n=qi();return hf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quote-props",url:"https://eslint.style/rules/quote-props"}}]},type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(o){const t=o.options[0],l=o.options[1]&&o.options[1].keywords,p=!o.options[1]||o.options[1].unnecessary!==!1,u=o.options[1]&&o.options[1].numbers,r=o.sourceCode;function m(d){return n.includes(d)}function i(d,E,S){return E.length===1&&E[0].start===0&&E[0].end===d.length&&(["Identifier","Keyword","Null","Boolean"].includes(E[0].type)||E[0].type==="Numeric"&&!S&&String(+E[0].value)===E[0].value)}function c(d){return d.type==="Identifier"?d.name:d.value}function h(d){return d.type==="Literal"&&typeof d.value=="string"?r.getText(d):`"${d.type==="Identifier"?d.name:d.value}"`}function s(d){const E=d.key;if(!(d.method||d.computed||d.shorthand))if(E.type==="Literal"&&typeof E.value=="string"){let S;try{S=a.tokenize(E.value)}catch{return}if(S.length!==1||m(S[0].value)&&l)return;p&&i(E.value,S,u)&&o.report({node:d,messageId:"unnecessarilyQuotedProperty",data:{property:E.value},fix:T=>T.replaceText(E,c(E))})}else l&&E.type==="Identifier"&&m(E.name)?o.report({node:d,messageId:"unquotedReservedProperty",data:{property:E.name},fix:S=>S.replaceText(E,h(E))}):u&&E.type==="Literal"&&e.isNumericLiteral(E)&&o.report({node:d,messageId:"unquotedNumericProperty",data:{property:E.value},fix:S=>S.replaceText(E,h(E))})}function f(d){const E=d.key;!d.method&&!d.computed&&!d.shorthand&&!(E.type==="Literal"&&typeof E.value=="string")&&o.report({node:d,messageId:"unquotedPropertyFound",data:{property:E.name||E.value},fix:S=>S.replaceText(E,h(E))})}function g(d,E){const S=[],x=[];let T=null,C=!1;d.properties.forEach(v=>{const A=v.key;if(!(!A||v.method||v.computed||v.shorthand))if(A.type==="Literal"&&typeof A.value=="string"){if(S.push(v),E){let b;try{b=a.tokenize(A.value)}catch{C=!0;return}C=C||!i(A.value,b)||l&&m(b[0].value)}}else l&&E&&A.type==="Identifier"&&m(A.name)?(x.push(v),C=!0,T=A.name):x.push(v)}),E&&S.length&&!C?S.forEach(v=>{o.report({node:v,messageId:"redundantQuoting",fix:A=>A.replaceText(v.key,c(v.key))})}):x.length&&T?x.forEach(v=>{o.report({node:v,messageId:"requireQuotesDueToReservedWord",data:{property:T},fix:A=>A.replaceText(v.key,h(v.key))})}):S.length&&x.length&&x.forEach(v=>{o.report({node:v,messageId:"inconsistentlyQuotedProperty",data:{key:v.key.name||v.key.value},fix:A=>A.replaceText(v.key,h(v.key))})})}return{Property(d){(t==="always"||!t)&&f(d),t==="as-needed"&&s(d)},ObjectExpression(d){t==="consistent"&&g(d,!1),t==="consistent-as-needed"&&g(d,!0)}}}},hf}var df,QS;function hI(){if(QS)return df;QS=1;const a=Ue(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},n=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(a.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(t){const l=this.quote,p=t[0];return l===p?t:l+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(u,r,m)=>r===p||p==="`"&&r==="${"?r:u===l||l==="`"&&u==="${"?`\\${u}`:m&&p==="`"?"\\n":u)+l};const o="avoid-escape";return df={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quotes",url:"https://eslint.style/rules/quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(t){const l=t.options[0],p=e[l||"double"],u=t.options[1],r=u&&u.allowTemplateLiterals===!0,m=t.sourceCode;let i=u&&u.avoidEscape===!0;u===o&&(i=!0);function c(d){return d.parent.type==="JSXAttribute"||d.parent.type==="JSXElement"||d.parent.type==="JSXFragment"}function h(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"&&!a.isParenthesised(m,d.expression)}function s(d){if(!a.isTopLevelExpressionStatement(d.parent))return!1;const E=d.parent.parent;for(let S=0;S<E.body.length;++S){const x=E.body[S];if(x===d.parent)return!0;if(!h(x))break}return!1}function f(d){const E=d.parent;switch(E.type){case"ExpressionStatement":return!a.isParenthesised(m,d)&&s(d);case"Property":case"PropertyDefinition":case"MethodDefinition":return E.key===d&&!E.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return E.source===d;case"ExportAllDeclaration":return E.exported===d||E.source===d;case"ImportSpecifier":return E.imported===d;case"ExportSpecifier":return E.local===d||E.exported===d;default:return!1}}function g(d){return!!(d.parent.type==="TaggedTemplateExpression"&&d===d.parent.quasi||d.expressions.length>0||d.quasis.length>=1&&n.test(d.quasis[0].value.raw))}return{Literal(d){const E=d.value,S=d.raw;if(p&&typeof E=="string"){let x=l==="backtick"&&f(d)||c(d)||a.isSurroundedBy(S,p.quote);!x&&i&&(x=a.isSurroundedBy(S,p.alternateQuote)&&S.includes(p.quote)),x||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(T){return l==="backtick"&&a.hasOctalOrNonOctalDecimalEscapeSequence(S)?null:T.replaceText(d,p.convert(d.raw))}})}},TemplateLiteral(d){r||l==="backtick"||g(d)||t.report({node:d,messageId:"wrongQuotes",data:{description:p.description},fix(E){return a.isTopLevelExpressionStatement(d.parent)&&!a.isParenthesised(m,d)?null:E.replaceText(d,p.convert(m.getText(d)))}})}}}},df}var gf,ZS;function dI(){if(ZS)return gf;ZS=1;const a=Ue(),e="always",n="as-needed",o=new Set(Array.from({length:35},(r,m)=>m+2));function t(r){return r.defs.length>=1}function l(r){return r.type==="MemberExpression"&&!r.computed&&r.property.type==="Identifier"&&r.property.name==="parseInt"}function p(r){return!(r.type==="Literal"&&!o.has(r.value)||r.type==="Identifier"&&r.name==="undefined")}function u(r){return r.type==="Literal"&&r.value===10}return gf={meta:{type:"suggestion",defaultOptions:[e],docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(r){const[m]=r.options,i=r.sourceCode;function c(h){const s=h.arguments;switch(s.length){case 0:r.report({node:h,messageId:"missingParameters"});break;case 1:m===e&&r.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(f){const g=i.getTokens(h),d=g.at(-1),E=g.at(-2),S=E.type==="Punctuator"&&E.value===",";return f.insertTextBefore(d,S?" 10,":", 10")}}]});break;default:m===n&&u(s[1])?r.report({node:h,messageId:"redundantRadix"}):p(s[1])||r.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){const s=i.getScope(h);let f;f=a.getVariableByName(s,"parseInt"),f&&!t(f)&&f.references.forEach(g=>{const d=g.identifier;a.isCallee(d)&&c(d.parent)}),f=a.getVariableByName(s,"Number"),f&&!t(f)&&f.references.forEach(g=>{const d=g.identifier.parent,E=d.parent.type==="ChainExpression"?d.parent:d;l(d)&&a.isCallee(E)&&c(E.parent)})}}}},gf}var yf,eb;function gI(){if(eb)return yf;eb=1;function a(t,l=new Map){for(const p of t.references)p.resolved!==null&&l.set(p.identifier,p);for(const p of t.childScopes)p.type!=="function"&&a(p,l);return l}function e(t){if(t.writeExpr)return t.writeExpr;let l=t.identifier;for(;l;){const p=l.parent.type;if(p==="AssignmentExpression"&&l.parent.left===l)return l.parent.right;if(p==="MemberExpression"&&l.parent.object===l){l=l.parent;continue}break}return null}function n(t,l){if(!t||l&&t.defs.some(u=>u.type==="Parameter"))return!1;const p=t.scope.variableScope;return t.references.every(u=>u.from.variableScope===p)}class o{constructor(){this.info=new WeakMap}initialize(l){const p=new Set,u=new Set;for(const r of l.prevSegments){const m=this.info.get(r);m&&(m.outdatedReadVariables.forEach(Set.prototype.add,p),m.freshReadVariables.forEach(Set.prototype.add,u))}this.info.set(l,{outdatedReadVariables:p,freshReadVariables:u})}markAsRead(l,p){for(const u of l){const r=this.info.get(u);r&&(r.freshReadVariables.add(p),r.outdatedReadVariables.delete(p))}}makeOutdated(l){for(const p of l){const u=this.info.get(p);u&&(u.freshReadVariables.forEach(Set.prototype.add,u.outdatedReadVariables),u.freshReadVariables.clear())}}isOutdated(l,p){for(const u of l){const r=this.info.get(u);if(r&&r.outdatedReadVariables.has(p))return!0}return!1}}return yf={meta:{type:"problem",defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean"}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(t){const[{allowProperties:l}]=t.options,p=t.sourceCode,u=new Map,r=new o;let m=null;return{onCodePathStart(i,c){const h=p.getScope(c),s=h.type==="function"&&(h.block.async||h.block.generator);m={upper:m,codePath:i,referenceMap:s?a(h):null,currentSegments:new Set}},onCodePathEnd(){m=m.upper},onCodePathSegmentStart(i){r.initialize(i),m.currentSegments.add(i)},onUnreachableCodePathSegmentStart(i){m.currentSegments.add(i)},onUnreachableCodePathSegmentEnd(i){m.currentSegments.delete(i)},onCodePathSegmentEnd(i){m.currentSegments.delete(i)},Identifier(i){const{referenceMap:c}=m,h=c&&c.get(i);if(!h)return;const s=h.resolved,f=e(h),g=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(f&&f.parent.operator==="=")&&r.markAsRead(m.currentSegments,s),f&&f.parent.right===f&&!n(s,g)){let d=u.get(f);d||(d=[],u.set(f,d)),d.push(h)}},":expression:exit"(i){if(!m.referenceMap)return;(i.type==="AwaitExpression"||i.type==="YieldExpression")&&r.makeOutdated(m.currentSegments);const c=u.get(i);if(c){u.delete(i);for(const h of c){const s=h.resolved;r.isOutdated(m.currentSegments,s)&&(i.parent.left===h.identifier?t.report({node:i.parent,messageId:"nonAtomicUpdate",data:{value:s.name}}):l||t.report({node:i.parent,messageId:"nonAtomicObjectUpdate",data:{value:p.getText(i.parent.left),object:s.name}}))}}}}}},yf}var vf,tb;function yI(){if(tb)return vf;tb=1;const a=Ue();function e(n){return n[0].toUpperCase()+n.slice(1)}return vf={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression.",removeAsync:"Remove 'async'."},hasSuggestions:!0},create(n){const o=n.sourceCode;let t=null;function l(){t={upper:t,hasAwait:!1}}function p(u){if(!u.generator&&u.async&&!t.hasAwait&&!a.isEmptyFunction(u)){const r=u.parent.type==="MethodDefinition"&&u.parent.value===u||u.parent.type==="Property"&&u.parent.method&&u.parent.value===u?u.parent:u,m=o.getFirstToken(r,s=>s.value==="async"),i=[m.range[0],o.getTokenAfter(m,{includeComments:!0}).range[0]],c=o.getTokenAfter(m),h=c.type==="Punctuator"&&(c.value==="["||c.value==="(")&&(r.type==="MethodDefinition"||a.isStartOfExpressionStatement(r))&&a.needsPrecedingSemicolon(o,r);n.report({node:u,loc:a.getFunctionHeadLoc(u,o),messageId:"missingAwait",data:{name:e(a.getFunctionNameWithKind(u))},suggest:[{messageId:"removeAsync",fix:s=>s.replaceTextRange(i,h?";":"")}]})}t=t.upper}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,AwaitExpression(){t&&(t.hasAwait=!0)},ForOfStatement(u){t&&u.await&&(t.hasAwait=!0)},VariableDeclaration(u){t&&u.kind==="await using"&&(t.hasAwait=!0)}}}},vf}var Ef,rb;function vI(){if(rb)return Ef;rb=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=Ue(),{isValidWithUnicodeFlag:l}=ru();function p(u,r){let m;return u==="v"?m=!r.includes("v"):u==="u"?m=!r.includes("u"):m=!r.includes("u")&&!r.includes("v"),m}return Ef={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",addVFlag:"Add the 'v' flag.",requireUFlag:"Use the 'u' flag.",requireVFlag:"Use the 'v' flag."},schema:[{type:"object",properties:{requireFlag:{enum:["u","v"]}},additionalProperties:!1}]},create(u){const r=u.sourceCode,{requireFlag:m}=u.options[0]??{};return{"Literal[regex]"(i){const c=i.regex.flags||"";p(m,c)&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:i,suggest:l(u.languageOptions.ecmaVersion,i.regex.pattern,m)?[{fix(s){const f=m??"u",g=r.getText(i),d=g.lastIndexOf("/");if(m){const E=m==="u"?"v":"u";if(g.includes(E,d))return s.replaceText(i,g.slice(0,d)+g.slice(d).replace(E,m))}return s.insertTextAfter(i,f)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})},Program(i){const c=r.getScope(i),h=new n(c),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:f}of h.iterateGlobalReferences(s)){const[g,d]=f.arguments;if(g&&g.type==="SpreadElement")continue;const E=o(g,c),S=o(d,c);let x=!d;typeof S=="string"&&(x=p(m,S)),x&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:f,suggest:typeof E=="string"&&l(u.languageOptions.ecmaVersion,E,m)?[{fix(T){const C=m??"u";if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){const A=r.getText(d),b=m==="u"?"v":"u";return S.includes(b)?d.type==="Literal"&&d.raw.includes("\\")||d.type==="TemplateLiteral"&&(d.expressions.length||d.quasis.some(({value:{raw:w}})=>w.includes("\\")))?null:T.replaceText(d,A.replace(b,C)):T.replaceText(d,[A.slice(0,A.length-1),A.slice(A.length-1)].join(C))}return null}const v=r.getLastToken(f,{skip:1});return T.insertTextAfter(v,t.isCommaToken(v)?` "${C}",`:`, "${C}"`)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})}}}}},Ef}var Sf,nb;function EI(){return nb||(nb=1,Sf={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(a){const e=[];function n(t){t.generator&&e.push(0)}function o(t){if(!t.generator)return;e.pop()===0&&t.body.body.length>0&&a.report({node:t,messageId:"missingYield"})}return{FunctionDeclaration:n,"FunctionDeclaration:exit":o,FunctionExpression:n,"FunctionExpression:exit":o,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),Sf}var bf,sb;function SI(){return sb||(sb=1,bf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"rest-spread-spacing",url:"https://eslint.style/rules/rest-spread-spacing"}}]},type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(a){const e=a.sourceCode,n=a.options[0]==="always";function o(t){const l=e.getFirstToken(t),p=e.getTokenAfter(l),u=e.isSpaceBetweenTokens(l,p);let r;switch(t.type){case"SpreadElement":r="spread",t.parent.type==="ObjectExpression"&&(r+=" property");break;case"RestElement":r="rest",t.parent.type==="ObjectPattern"&&(r+=" property");break;case"ExperimentalSpreadProperty":r="spread property";break;case"ExperimentalRestProperty":r="rest property";break;default:return}n&&!u?a.report({node:t,loc:l.loc,messageId:"expectedWhitespace",data:{type:r},fix(m){return m.replaceTextRange([l.range[1],p.range[0]]," ")}}):!n&&u&&a.report({node:t,loc:{start:l.loc.end,end:p.loc.start},messageId:"unexpectedWhitespace",data:{type:r},fix(m){return m.removeRange([l.range[1],p.range[0]])}})}return{SpreadElement:o,RestElement:o,ExperimentalSpreadProperty:o,ExperimentalRestProperty:o}}}),bf}var xf,ab;function bI(){if(ab)return xf;ab=1;const a=nn(),e=Ue();return xf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi",url:"https://eslint.style/rules/semi"}}]},type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(n){const o=/^[-[(/+`]/u,t=new Set(["get","set","static"]),l=new Set(["*","in","instanceof"]),p=n.options[1],u=n.options[0]==="never",r=!!(p&&p.omitLastInOneLineBlock),m=!!(p&&p.omitLastInOneLineClassBody),i=p&&p.beforeStatementContinuationChars||"any",c=n.sourceCode;function h(b,w){const k=c.getLastToken(b);let R,F,L;w?(R="extraSemi",L=k.loc,F=function(P){return new a(P,c).retainSurroundingTokens(k).remove(k)}):(R="missingSemi",L={start:k.loc.end,end:e.getNextLocation(c,k.loc.end)},F=function(P){return P.insertTextAfter(k,";")}),n.report({node:b,loc:L,messageId:R,fix:F})}function s(b){const w=c.getTokenAfter(b);return!w||e.isClosingBraceToken(w)||e.isSemicolonToken(w)}function f(b){if(!e.isClosingBraceToken(b))return!1;const w=c.getNodeByRangeIndex(b.range[0]);return w.type==="BlockStatement"&&w.parent.type==="ArrowFunctionExpression"}function g(b){if(b.type!=="PropertyDefinition")return!1;if(!b.computed&&b.key.type==="Identifier"&&t.has(b.key.name)&&!(b.static&&b.key.name==="static")&&!b.value)return!0;const k=c.getTokenAfter(b);return l.has(k.value)}function d(b){const w=c.getLastToken(b,1),k=c.getTokenAfter(b);return!!k&&e.isTokenOnSameLine(w,k)}function E(b){const w=b.type;return w==="DoWhileStatement"||w==="BreakStatement"||w==="ContinueStatement"||w==="DebuggerStatement"||w==="ImportDeclaration"||w==="ExportAllDeclaration"?!1:w==="ReturnStatement"?!!b.argument:w==="ExportNamedDeclaration"?!!b.declaration:!f(c.getLastToken(b,1))}function S(b){return!!b&&o.test(b.value)&&b.value!=="++"&&b.value!=="--"}function x(b){return s(c.getLastToken(b))?!0:g(b)||d(b)?!1:b.type!=="PropertyDefinition"&&i==="never"&&!E(b)||!S(c.getTokenAfter(b))}function T(b){const w=b.parent,k=c.getTokenAfter(b);return!k||k.value!=="}"?!1:w.type==="BlockStatement"?w.loc.start.line===w.loc.end.line:w.type==="StaticBlock"?c.getFirstToken(w,{skip:1}).loc.start.line===w.loc.end.line:!1}function C(b){const w=b.parent,k=c.getTokenAfter(b);return!k||k.value!=="}"?!1:w.type==="ClassBody"?w.loc.start.line===w.loc.end.line:!1}function v(b){const w=e.isSemicolonToken(c.getLastToken(b));if(u)w&&x(b)?h(b,!0):!w&&i==="always"&&b.type!=="PropertyDefinition"&&S(c.getTokenAfter(b))&&h(b);else{const k=r&&T(b),R=m&&C(b),F=k||R;w&&F?h(b,!0):!w&&!F&&h(b)}}function A(b){const w=b.parent;(w.type!=="ForStatement"||w.init!==b)&&(!/^For(?:In|Of)Statement/u.test(w.type)||w.left!==b)&&v(b)}return{VariableDeclaration:A,ExpressionStatement:v,ReturnStatement:v,ThrowStatement:v,DoWhileStatement:v,DebuggerStatement:v,BreakStatement:v,ContinueStatement:v,ImportDeclaration:v,ExportAllDeclaration:v,ExportNamedDeclaration(b){b.declaration||v(b)},ExportDefaultDeclaration(b){/(?:Class|Function)Declaration/u.test(b.declaration.type)||v(b)},PropertyDefinition:v}}},xf}var Cf,ib;function xI(){if(ib)return Cf;ib=1;const a=Ue();return Cf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-spacing",url:"https://eslint.style/rules/semi-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){const n=e.options[0],o=e.sourceCode;let t=!1,l=!0;typeof n=="object"&&(t=n.before,l=n.after);function p(s){const f=o.getTokenBefore(s);return f&&a.isTokenOnSameLine(f,s)&&o.isSpaceBetweenTokens(f,s)}function u(s){const f=o.getTokenAfter(s);return f&&a.isTokenOnSameLine(s,f)&&o.isSpaceBetweenTokens(s,f)}function r(s){const f=o.getTokenAfter(s);return!(f&&a.isTokenOnSameLine(s,f))}function m(s){const f=o.getTokenBefore(s);return!(f&&a.isTokenOnSameLine(s,f))}function i(s){const f=o.getTokenAfter(s);return f&&a.isClosingBraceToken(f)||a.isClosingParenToken(f)}function c(s,f){if(a.isSemicolonToken(s)){if(p(s)){if(!t){const g=o.getTokenBefore(s),d={start:g.loc.end,end:s.loc.start};e.report({node:f,loc:d,messageId:"unexpectedWhitespaceBefore",fix(E){return E.removeRange([g.range[1],s.range[0]])}})}}else if(t){const g=s.loc;e.report({node:f,loc:g,messageId:"missingWhitespaceBefore",fix(d){return d.insertTextBefore(s," ")}})}if(!m(s)&&!r(s)&&!i(s)){if(u(s)){if(!l){const g=o.getTokenAfter(s),d={start:s.loc.end,end:g.loc.start};e.report({node:f,loc:d,messageId:"unexpectedWhitespaceAfter",fix(E){return E.removeRange([s.range[1],g.range[0]])}})}}else if(l){const g=s.loc;e.report({node:f,loc:g,messageId:"missingWhitespaceAfter",fix(d){return d.insertTextAfter(s," ")}})}}}}function h(s){const f=o.getLastToken(s);c(f,s)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(s){s.init&&c(o.getTokenAfter(s.init),s),s.test&&c(o.getTokenAfter(s.test),s)},PropertyDefinition:h}}},Cf}var wf,ob;function CI(){if(ob)return wf;ob=1;const a=Ue(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function n(t){const l=t.type;return l==="BlockStatement"||l==="StaticBlock"||l==="Program"||l==="ClassBody"?t.body:l==="SwitchCase"?t.consequent:null}function o(t){const l=t.parent.type;if(l==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||l==="DoWhileStatement")return!0;const p=n(t.parent);return p!==null&&p.at(-1)===t}return wf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-style",url:"https://eslint.style/rules/semi-style"}}]},type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(t){const l=t.sourceCode,p=t.options[0]||"last";function u(r,m){const i=l.getTokenBefore(r),c=l.getTokenAfter(r),h=!i||a.isTokenOnSameLine(i,r),s=!c||a.isTokenOnSameLine(r,c);(m==="last"&&!h||m==="first"&&!s)&&t.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:m==="last"?"the end of the previous line":"the beginning of the next line"},fix(f){if(i&&c&&l.commentsExistBetween(i,c))return null;const g=i?i.range[1]:r.range[0],d=c?c.range[0]:r.range[1],E=m==="last"?`;
|
|
118
118
|
`:`
|
|
119
119
|
;`;return f.replaceTextRange([g,d],E)}})}return{[e](r){if(p==="first"&&o(r))return;const m=l.getLastToken(r);a.isSemicolonToken(m)&&u(m,p)},ForStatement(r){const m=r.init&&l.getTokenAfter(r.init,a.isSemicolonToken),i=r.test&&l.getTokenAfter(r.test,a.isSemicolonToken);m&&u(m,"last"),i&&u(i,"last")}}}},wf}var Af,lb;function wI(){return lb||(lb=1,Af={meta:{type:"suggestion",defaultOptions:[{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],docs:{description:"Enforce sorted `import` declarations within modules",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean"},ignoreMemberSort:{type:"boolean"},allowSeparatedGroups:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(a){const[{ignoreCase:e,ignoreDeclarationSort:n,ignoreMemberSort:o,memberSyntaxSortOrder:t,allowSeparatedGroups:l}]=a.options,p=a.sourceCode;let u=null;function r(h){return h.specifiers.length===0?"none":h.specifiers[0].type==="ImportNamespaceSpecifier"?"all":h.specifiers.length===1?"single":"multiple"}function m(h){return t.indexOf(r(h))}function i(h){return h.specifiers[0]?h.specifiers[0].local.name:null}function c(h,s){return Math.max(s.loc.start.line-h.loc.end.line-1,0)}return{ImportDeclaration(h){if(!n){if(u&&l&&c(u,h)>0&&(u=null),u){const s=m(h),f=m(u);let g=i(h),d=i(u);e&&(d=d&&d.toLowerCase(),g=g&&g.toLowerCase()),s!==f?s<f&&a.report({node:h,messageId:"unexpectedSyntaxOrder",data:{syntaxA:t[s],syntaxB:t[f]}}):d&&g&&g<d&&a.report({node:h,messageId:"sortImportsAlphabetically"})}u=h}if(!o){const s=h.specifiers.filter(d=>d.type==="ImportSpecifier"),f=e?d=>d.local.name.toLowerCase():d=>d.local.name,g=s.map(f).findIndex((d,E,S)=>S[E-1]>d);g!==-1&&a.report({node:s[g],messageId:"sortMembersAlphabetically",data:{memberName:s[g].local.name},fix(d){return s.some(E=>p.getCommentsBefore(E).length||p.getCommentsAfter(E).length)?null:d.replaceTextRange([s[0].range[0],s.at(-1).range[1]],s.slice().sort((E,S)=>{const x=f(E),T=f(S);return x>T?1:-1}).reduce((E,S,x)=>{const T=x===s.length-1?"":p.getText().slice(s[x].range[1],s[x+1].range[0]);return E+p.getText(S)+T},""))}})}}}}}),Af}var Tf={exports:{}},ub;function AI(){if(ub)return Tf.exports;ub=1;/*
|
|
120
120
|
* @version 1.4.0
|
|
@@ -122,11 +122,11 @@ ${T.at(-1)}`)}}),o==="always"&&(!E||S&&!c(g,d))&&e.report({node:s,messageId:"exp
|
|
|
122
122
|
* @stability 3 - Stable
|
|
123
123
|
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
124
124
|
* @license MIT License
|
|
125
|
-
*/var a=function(e,n){var o,t,l=1,p=0,u=0,r=String.alphabet;function m(i,c,h){if(h){for(o=c;h=m(i,o),h<76&&h>65;)++o;return+i.slice(c-1,o)}return h=r&&r.indexOf(i.charAt(c)),h>-1?h+76:(h=i.charCodeAt(c)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(n+="")){for(;l;)if(t=m(e,p++),l=m(n,u++),t<76&&l<76&&t>66&&l>66&&(t=m(e,p,p),l=m(n,u,p=o),u=o),t!=l)return t<l?-1:1}return 0};try{Tf.exports=a}catch{String.naturalCompare=a}return Tf.exports}var kf,cb;function TI(){if(cb)return kf;cb=1;const a=Ue(),e=AI();function n(t){const l=a.getStaticPropertyName(t);return l!==null?l:t.key.name||null}const o={asc(t,l){return t<=l},ascI(t,l){return t.toLowerCase()<=l.toLowerCase()},ascN(t,l){return e(t,l)<=0},ascIN(t,l){return e(t.toLowerCase(),l.toLowerCase())<=0},desc(t,l){return o.asc(l,t)},descI(t,l){return o.ascI(l,t)},descN(t,l){return o.ascN(l,t)},descIN(t,l){return o.ascIN(l,t)}};return kf={meta:{type:"suggestion",defaultOptions:["asc",{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:"Require object keys to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean"},natural:{type:"boolean"},minKeys:{type:"integer",minimum:2},allowLineSeparatedGroups:{type:"boolean"},ignoreComputedKeys:{type:"boolean"}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(t){const[l,{caseSensitive:p,natural:u,minKeys:r,allowLineSeparatedGroups:m,ignoreComputedKeys:i}]=t.options,c=!p,h=o[l+(c?"I":"")+(u?"N":"")];let s=null;const f=t.sourceCode;return{ObjectExpression(g){s={upper:s,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:g.properties.length}},"ObjectExpression:exit"(){s=s.upper},SpreadElement(g){g.parent.type==="ObjectExpression"&&(s.prevName=null)},Property(g){if(g.parent.type==="ObjectPattern")return;if(i&&g.computed){s.prevName=null;return}const d=s.prevName,E=s.numKeys,S=n(g),x=s.prevNode&&f.getTokensBetween(s.prevNode,g,{includeComments:!0});let T=s.prevBlankLine;if(x&&(x.forEach((C,v)=>{const A=x[v-1];A&&C.loc.start.line-A.loc.end.line>1&&(T=!0)}),!T&&g.loc.start.line-x.at(-1).loc.end.line>1&&(T=!0),!T&&x[0].loc.start.line-s.prevNode.loc.end.line>1&&(T=!0)),s.prevNode=g,S!==null&&(s.prevName=S),m&&T){s.prevBlankLine=S===null;return}d===null||S===null||E<r||h(d,S)||t.report({node:g,loc:g.key.loc,messageId:"sortKeys",data:{thisName:S,prevName:d,order:l,insensitive:c?"insensitive ":"",natural:u?"natural ":""}})}}}},kf}var Df,fb;function kI(){return fb||(fb=1,Df={meta:{type:"suggestion",defaultOptions:[{ignoreCase:!1}],docs:{description:"Require variables within the same declaration block to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(a){const[{ignoreCase:e}]=a.options,n=a.sourceCode;return{VariableDeclaration(o){const t=o.declarations.filter(r=>r.id.type==="Identifier"),l=e?r=>r.id.name.toLowerCase():r=>r.id.name,p=t.some(r=>r.init!==null&&r.init.type!=="Literal");let u=!1;t.slice(1).reduce((r,m)=>{const i=l(r);return l(m)<i?(a.report({node:m,messageId:"sortVars",fix(h){return p||u?null:h.replaceTextRange([t[0].range[0],t.at(-1).range[1]],t.slice().sort((s,f)=>{const g=l(s),d=l(f);return g>d?1:-1}).reduce((s,f,g)=>{const d=g===t.length-1?"":n.getText().slice(t[g].range[1],t[g+1].range[0]);return s+n.getText(f)+d},""))}}),u=!0,r):m},t[0])}}}}),Df}var If,pb;function DI(){if(pb)return If;pb=1;const a=Ue();function e(n){const o=n.parent;return n.type==="BlockStatement"&&a.isFunction(o)&&o.body===n}return If={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-blocks",url:"https://eslint.style/rules/space-before-blocks"}}]},type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(n){const o=n.options[0],t=n.sourceCode;let l=!0,p=!0,u=!0,r=!1,m=!1,i=!1;typeof o=="object"?(l=o.functions==="always",p=o.keywords==="always",u=o.classes==="always",r=o.functions==="never",m=o.keywords==="never",i=o.classes==="never"):o==="never"&&(l=!1,p=!1,u=!1,r=!0,m=!0,i=!0);function c(f,g){return a.isArrowToken(f)||a.isKeywordToken(f)&&!e(g)||a.isColonToken(f)&&g.parent&&g.parent.type==="SwitchCase"&&f===a.getSwitchCaseColonToken(g.parent,t)}function h(f){const g=t.getTokenBefore(f);if(g&&!c(g,f)&&a.isTokenOnSameLine(g,f)){const d=t.isSpaceBetweenTokens(g,f);let E,S;e(f)?(E=l,S=r):f.type==="ClassBody"?(E=u,S=i):(E=p,S=m),E&&!d?n.report({node:f,messageId:"missingSpace",fix(x){return x.insertTextBefore(f," ")}}):S&&d&&n.report({node:f,messageId:"unexpectedSpace",fix(x){return x.removeRange([g.range[1],f.range[0]])}})}}function s(f){const g=f.cases;let d;g.length>0?d=t.getTokenBefore(g[0]):d=t.getLastToken(f,1),h(d)}return{BlockStatement:h,ClassBody:h,SwitchStatement:s}}},If}var Pf,mb;function II(){if(mb)return Pf;mb=1;const a=Ue();return Pf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-function-paren",url:"https://eslint.style/rules/space-before-function-paren"}}]},type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){const n=e.sourceCode,o=typeof e.options[0]=="string"?e.options[0]:"always",t=typeof e.options[0]=="object"?e.options[0]:{};function l(r){if(r.id)return!0;const m=r.parent;return m.type==="MethodDefinition"||m.type==="Property"&&(m.kind==="get"||m.kind==="set"||m.method)}function p(r){if(r.type==="ArrowFunctionExpression"){if(r.async&&a.isOpeningParenToken(n.getFirstToken(r,{skip:1})))return t.asyncArrow||o}else{if(l(r))return t.named||o;if(!r.generator)return t.anonymous||o}return"ignore"}function u(r){const m=p(r);if(m==="ignore")return;const i=n.getFirstToken(r,a.isOpeningParenToken),c=n.getTokenBefore(i),h=n.isSpaceBetweenTokens(c,i);h&&m==="never"?e.report({node:r,loc:{start:c.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(s){const f=n.getCommentsBefore(i);return f.some(g=>g.type==="Line")?null:s.replaceTextRange([c.range[1],i.range[0]],f.reduce((g,d)=>g+n.getText(d),""))}}):!h&&m==="always"&&e.report({node:r,loc:i.loc,messageId:"missingSpace",fix:s=>s.insertTextAfter(c," ")})}return{ArrowFunctionExpression:u,FunctionDeclaration:u,FunctionExpression:u}}},Pf}var Ff,hb;function PI(){if(hb)return Ff;hb=1;const a=Ue();return Ff={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-in-parens",url:"https://eslint.style/rules/space-in-parens"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){const n=e.options[0]==="always",o=e.options[1]&&e.options[1].exceptions||[],t={};let l;o.length&&(t.braceException=o.includes("{}"),t.bracketException=o.includes("[]"),t.parenException=o.includes("()"),t.empty=o.includes("empty"));function p(){const f=[],g=[];return t.braceException&&(f.push("{"),g.push("}")),t.bracketException&&(f.push("["),g.push("]")),t.parenException&&(f.push("("),g.push(")")),t.empty&&(f.push(")"),g.push("(")),{openers:f,closers:g}}const u=e.sourceCode;function r(f){return l.openers.includes(f.value)}function m(f){return l.closers.includes(f.value)}function i(f,g){return u.isSpaceBetweenTokens(f,g)||!t.empty&&a.isClosingParenToken(g)?!1:n?!r(g):r(g)}function c(f,g){return!a.isTokenOnSameLine(f,g)||g.type==="Line"||!u.isSpaceBetweenTokens(f,g)?!1:n?r(g):!r(g)}function h(f,g){return u.isSpaceBetweenTokens(f,g)||!t.empty&&a.isOpeningParenToken(f)?!1:n?!m(f):m(f)}function s(f,g){return!a.isTokenOnSameLine(f,g)||!u.isSpaceBetweenTokens(f,g)?!1:n?m(f):!m(f)}return{Program:function(g){l=p();const d=u.tokensAndComments;d.forEach((E,S)=>{const x=d[S-1],T=d[S+1];!a.isOpeningParenToken(E)&&!a.isClosingParenToken(E)||(E.value==="("&&i(E,T)&&e.report({node:g,loc:E.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(E," ")}}),E.value==="("&&c(E,T)&&e.report({node:g,loc:{start:E.loc.end,end:T.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([E.range[1],T.range[0]])}}),E.value===")"&&h(x,E)&&e.report({node:g,loc:E.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(E," ")}}),E.value===")"&&s(x,E)&&e.report({node:g,loc:{start:x.loc.end,end:E.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([x.range[1],E.range[0]])}}))})}}}},Ff}var Rf,db;function FI(){if(db)return Rf;db=1;const{isEqToken:a}=Ue();return Rf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-infix-ops",url:"https://eslint.style/rules/space-infix-ops"}}]},type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){const n=e.options[0]?e.options[0].int32Hint===!0:!1,o=e.sourceCode;function t(m,i,c){const h=o.getFirstTokenBetween(m,i,g=>g.value===c),s=o.getTokenBefore(h),f=o.getTokenAfter(h);return!o.isSpaceBetweenTokens(s,h)||!o.isSpaceBetweenTokens(h,f)?h:null}function l(m,i){e.report({node:m,loc:i.loc,messageId:"missingSpace",data:{operator:i.value},fix(c){const h=o.getTokenBefore(i),s=o.getTokenAfter(i);let f="";return i.range[0]-h.range[1]===0&&(f=" "),f+=i.value,s.range[0]-i.range[1]===0&&(f+=" "),c.replaceText(i,f)}})}function p(m){const i=m.left.typeAnnotation?m.left.typeAnnotation:m.left,c=m.right,h=m.operator||"=",s=t(i,c,h);s&&(n&&o.getText(m).endsWith("|0")||l(m,s))}function u(m){const i=t(m.test,m.consequent,"?"),c=t(m.consequent,m.alternate,":");i&&l(m,i),c&&l(m,c)}function r(m){const i=m.id.typeAnnotation?m.id.typeAnnotation:m.id,c=m.init;if(c){const h=t(i,c,"=");h&&l(m,h)}}return{AssignmentExpression:p,AssignmentPattern:p,BinaryExpression:p,LogicalExpression:p,ConditionalExpression:u,VariableDeclarator:r,PropertyDefinition(m){if(!m.value)return;const i=o.getTokenBefore(m.value,a),c=o.getTokenBefore(i),h=o.getTokenAfter(i);(!o.isSpaceBetweenTokens(c,i)||!o.isSpaceBetweenTokens(i,h))&&l(m,i)}}}},Rf}var _f,gb;function RI(){if(gb)return _f;gb=1;const a=Ue();return _f={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-unary-ops",url:"https://eslint.style/rules/space-unary-ops"}}]},type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){const n=e.options[0]||{words:!0,nonwords:!1},o=e.sourceCode;function t(g){return g&&g.type==="UnaryExpression"&&g.argument.operator==="!"&&g.argument&&g.argument.type==="UnaryExpression"&&g.argument.operator==="!"}function l(g){return n.overrides&&Object.hasOwn(n.overrides,g)}function p(g){return n.overrides[g]}function u(g,d,E,S){E.range[0]===d.range[1]&&e.report({node:g,messageId:"wordOperator",data:{word:S},fix(x){return x.insertTextAfter(d," ")}})}function r(g,d,E,S){a.canTokensBeAdjacent(d,E)&&E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfterWord",data:{word:S},fix(x){return x.removeRange([d.range[1],E.range[0]])}})}function m(g,d,E,S){l(S)?p(S)?u(g,d,E,S):r(g,d,E,S):n.words?u(g,d,E,S):r(g,d,E,S)}function i(g){const d=o.getFirstTokens(g,3),E="yield";!g.argument||g.delegate||m(g,d[0],d[1],E)}function c(g){const d=o.getFirstTokens(g,3);m(g,d[0],d[1],"await")}function h(g,d,E){if(g.prefix){if(t(g))return;d.range[1]===E.range[0]&&e.report({node:g,messageId:"operator",data:{operator:d.value},fix(S){return S.insertTextAfter(d," ")}})}else d.range[1]===E.range[0]&&e.report({node:g,messageId:"beforeUnaryExpressions",data:{token:E.value},fix(S){return S.insertTextBefore(E," ")}})}function s(g,d,E){g.prefix?E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfter",data:{operator:d.value},fix(S){return a.canTokensBeAdjacent(d,E)?S.removeRange([d.range[1],E.range[0]]):null}}):E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedBefore",data:{operator:E.value},fix(S){return S.removeRange([d.range[1],E.range[0]])}})}function f(g){const d=g.type==="UpdateExpression"&&!g.prefix?o.getLastTokens(g,2):o.getFirstTokens(g,2),E=d[0],S=d[1];if((g.type==="NewExpression"||g.prefix)&&E.type==="Keyword"){m(g,E,S,E.value);return}const x=g.prefix?d[0].value:d[1].value;l(x)?p(x)?h(g,E,S):s(g,E,S):n.nonwords?h(g,E,S):s(g,E,S)}return{UnaryExpression:f,UpdateExpression:f,NewExpression:f,YieldExpression:i,AwaitExpression:c}}},_f}var Bf,yb;function _I(){if(yb)return Bf;yb=1;const a=Rn(),e=Ue();function n(r){return`(?:${a(r)})`}function o(r){return`${n(r)}+`}function t(r){return r.includes("*")?r:r.concat("*")}function l(r){let m="";return r.length===0?m+="\\s":(m+="(?:\\s|",r.length===1?m+=o(r[0]):(m+="(?:",m+=r.map(o).join("|"),m+=")"),m+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),m}function p(r,m){let i="^";return r.length===1?i+=n(r[0]):(i+="(?:",i+=r.map(n).join("|"),i+=")"),i+="?",i+=l(m),new RegExp(i,"u")}function u(r){const m=`^(${r.map(n).join("|")})?[ ]+`;return new RegExp(m,"u")}return Bf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"spaced-comment",url:"https://eslint.style/rules/spaced-comment"}}]},type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(r){const m=r.sourceCode,i=r.options[0]!=="never",c=r.options[1]||{},h=c.block&&c.block.balanced,s=["block","line"].reduce((E,S)=>{const x=t(c[S]&&c[S].markers||c.markers||[]),T=c[S]&&c[S].exceptions||c.exceptions||[],C="[ ]+$";return E[S]={beginRegex:i?p(x,T):u(x),endRegex:h&&i?new RegExp(`${l(T)}$`,"u"):new RegExp(C,"u"),hasExceptions:T.length>0,captureMarker:new RegExp(`^(${x.map(n).join("|")})`,"u"),markers:new Set(x)},E},{});function f(E,S,x,T){const C=E.type.toLowerCase(),v=C==="block"?"/*":"//";r.report({node:E,fix(A){const b=E.range[0];let w=b+2;return i?(x&&(w+=x[0].length),A.insertTextAfterRange([b,w]," ")):(w+=x[0].length,A.replaceTextRange([b,w],v+(x[1]?x[1]:"")))},messageId:S,data:{refChar:T}})}function g(E,S,x){r.report({node:E,fix(T){if(i)return T.insertTextAfterRange([E.range[0],E.range[1]-2]," ");const C=E.range[1]-2,v=C-x[0].length;return T.replaceTextRange([v,C],"")},messageId:S})}function d(E){const S=E.type.toLowerCase(),x=s[S],T=S==="block"?"/*":"//";if(E.value.length===0||x.markers.has(E.value))return;const C=x.beginRegex.exec(E.value),v=x.endRegex.exec(E.value);if(i){if(!C){const A=x.captureMarker.exec(E.value),b=A?T+A[0]:T;x.hasExceptions?f(E,"expectedExceptionAfter",A,b):f(E,"expectedSpaceAfter",A,b)}h&&S==="block"&&!v&&g(E,"expectedSpaceBefore")}else C&&(C[1]?f(E,"unexpectedSpaceAfterMarker",C,C[1]):f(E,"unexpectedSpaceAfter",C,T)),h&&S==="block"&&v&&g(E,"unexpectedSpaceBefore",v)}return{Program(){m.getAllComments().filter(S=>S.type!=="Shebang").forEach(d)}}}},Bf}var Lf,vb;function BI(){if(vb)return Lf;vb=1;const a=Ue();function e(t){const l=[];for(let p=0;p<t.length;p++){const u=t[p];if(u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&u.expression.value==="use strict")l[p]=u;else break}return l}function n(t){return t.type==="Identifier"}function o(t){return t.every(n)}return Lf={meta:{type:"suggestion",defaultOptions:["safe"],docs:{description:"Require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(t){const l=t.parserOptions.ecmaFeatures||{},p=[],u=[];let[r]=t.options;l.impliedStrict?r="implied":r==="safe"&&(r=l.globalReturn||t.languageOptions.sourceType==="commonjs"?"global":"function");function m(S){return S==="multiple"||S==="unnecessary"||S==="module"||S==="implied"||S==="unnecessaryInClasses"}function i(S){return x=>x.remove(S)}function c(S,x,T,C,v){S.slice(x,T).forEach(A=>{t.report({node:A,messageId:C,fix:v?i(A):null})})}function h(S,x,T){c(S,0,S.length,x,T)}function s(S,x,T){c(S,1,S.length,x,T)}function f(S,x){const T=u.length>0,C=p.length===0&&u.length===0,v=p.length>0&&p.at(-1),A=x.length>0;A?(o(S.params)?v?t.report({node:x[0],messageId:"unnecessary",fix:i(x[0])}):T&&t.report({node:x[0],messageId:"unnecessaryInClasses",fix:i(x[0])}):t.report({node:x[0],messageId:"nonSimpleParameterList"}),s(x,"multiple",!0)):C&&(o(S.params)?t.report({node:S,messageId:"function"}):t.report({node:S,messageId:"wrap",data:{name:a.getFunctionNameWithKind(S)}})),p.push(v||A)}function g(){p.pop()}function d(S){const x=S.body.type==="BlockStatement",T=x?e(S.body.body):[];r==="function"?f(S,T):T.length>0&&(o(S.params)?h(T,r,m(r)):(t.report({node:T[0],messageId:"nonSimpleParameterList"}),s(T,"multiple",!0)))}const E={Program(S){const x=e(S.body);S.sourceType==="module"&&(r="module"),r==="global"?(S.body.length>0&&x.length===0&&t.report({node:S,messageId:"global"}),s(x,"multiple",!0)):h(x,r,m(r))},FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d};return r==="function"&&Object.assign(E,{ClassBody(){u.push(!0)},"ClassBody:exit"(){u.pop()},"FunctionDeclaration:exit":g,"FunctionExpression:exit":g,"ArrowFunctionExpression:exit":g}),E}},Lf}var Of,Eb;function LI(){if(Eb)return Of;Eb=1;const a=Ue();return Of={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"switch-colon-spacing",url:"https://eslint.style/rules/switch-colon-spacing"}}]},type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=o.before===!0,l=o.after!==!1;function p(m,i,c){return a.isClosingBraceToken(i)||!a.isTokenOnSameLine(m,i)||n.isSpaceBetweenTokens(m,i)===c}function u(m,i){return n.getFirstTokenBetween(m,i,{includeComments:!0,filter:a.isCommentToken})!==null}function r(m,i,c,h){return u(i,c)?null:h?m.insertTextAfter(i," "):m.removeRange([i.range[1],c.range[0]])}return{SwitchCase(m){const i=a.getSwitchCaseColonToken(m,n),c=n.getTokenBefore(i),h=n.getTokenAfter(i);p(c,i,t)||e.report({node:m,loc:i.loc,messageId:t?"expectedBefore":"unexpectedBefore",fix:s=>r(s,c,i,t)}),p(i,h,l)||e.report({node:m,loc:i.loc,messageId:l?"expectedAfter":"unexpectedAfter",fix:s=>r(s,i,h,l)})}}}},Of}var Nf,Sb;function OI(){if(Sb)return Nf;Sb=1;const a=Ue();return Nf={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){const n=e.sourceCode;function o(t){t.arguments.length===0&&e.report({node:t,messageId:"expected"})}return{"Program:exit"(t){const l=n.getScope(t),p=a.getVariableByName(l,"Symbol");p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier;a.isCallee(r)&&o(r.parent)})}}}},Nf}var Mf,bb;function NI(){if(bb)return Mf;bb=1;const a=Ue();return Mf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-curly-spacing",url:"https://eslint.style/rules/template-curly-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always";function t(p){if(!p.value.startsWith("}"))return;const u=n.getTokenBefore(p,{includeComments:!0}),r=n.isSpaceBetween(u,p);a.isTokenOnSameLine(u,p)&&(o&&!r&&e.report({loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"expectedBefore",fix:m=>m.insertTextBefore(p," ")}),!o&&r&&e.report({loc:{start:u.loc.end,end:p.loc.start},messageId:"unexpectedBefore",fix:m=>m.removeRange([u.range[1],p.range[0]])}))}function l(p){if(!p.value.endsWith("${"))return;const u=n.getTokenAfter(p,{includeComments:!0}),r=n.isSpaceBetween(p,u);a.isTokenOnSameLine(p,u)&&(o&&!r&&e.report({loc:{start:{line:p.loc.end.line,column:p.loc.end.column-2},end:p.loc.end},messageId:"expectedAfter",fix:m=>m.insertTextAfter(p," ")}),!o&&r&&e.report({loc:{start:p.loc.end,end:u.loc.start},messageId:"unexpectedAfter",fix:m=>m.removeRange([p.range[1],u.range[0]])}))}return{TemplateElement(p){const u=n.getFirstToken(p);t(u),l(u)}}}},Mf}var jf,xb;function MI(){return xb||(xb=1,jf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-tag-spacing",url:"https://eslint.style/rules/template-tag-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(a){const e=a.options[0]!=="always",n=a.sourceCode;function o(t){const l=n.getTokenBefore(t.quasi),p=n.getFirstToken(t.quasi),u=n.isSpaceBetweenTokens(l,p);e&&u?a.report({node:t,loc:{start:l.loc.end,end:p.loc.start},messageId:"unexpected",fix(r){const m=n.getCommentsBefore(t.quasi);return m.some(i=>i.type==="Line")?null:r.replaceTextRange([l.range[1],p.range[0]],m.reduce((i,c)=>i+n.getText(c),""))}}):!e&&!u&&a.report({node:t,loc:{start:t.loc.start,end:p.loc.start},messageId:"missing",fix(r){return r.insertTextAfter(l," ")}})}return{TaggedTemplateExpression:o}}}),jf}var Uf,Cb;function jI(){return Cb||(Cb=1,Uf={meta:{type:"layout",defaultOptions:["never"],docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(a){return{Program:function(n){const o=a.sourceCode,t={column:0,line:1},[l]=a.options;!o.hasBOM&&l==="always"?a.report({node:n,loc:t,messageId:"expected",fix(p){return p.insertTextBeforeRange([0,1],"\uFEFF")}}):o.hasBOM&&l==="never"&&a.report({node:n,loc:t,messageId:"unexpected",fix(p){return p.removeRange([-1,0])}})}}}}),Uf}var qf,wb;function UI(){if(wb)return qf;wb=1;const a=Ue();function e(n){if(!n)return!1;const o=n.type==="SequenceExpression"?n.expressions.at(-1):n;return a.isSpecificId(o,"NaN")||a.isSpecificMemberAccess(o,"Number","NaN")}return qf={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean"},enforceForIndexOf:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(n){const[{enforceForIndexOf:o,enforceForSwitchCase:t}]=n.options,l=n.sourceCode,p=new Set(["==","===","!=","!=="]),u=new Set(["==","!="]);function r(s,f){return g=>{const d=e(s.left)?s.right:s.left,E=d.type==="SequenceExpression",x=s.operator[0]==="!"?"!":"";let T=l.getText(d);E&&(T=`(${T})`);const C=f(T);return g.replaceText(s,`${x}${C}`)}}function m(s){if(/^(?:[<>]|[!=]=)=?$/u.test(s.operator)&&(e(s.left)||e(s.right))){const f=[],d=(e(s.left)?s.left:s.right).type==="SequenceExpression",E=p.has(s.operator)&&!d,S=u.has(s.operator);E&&(f.push({messageId:"replaceWithIsNaN",fix:r(s,x=>`Number.isNaN(${x})`)}),S&&f.push({messageId:"replaceWithCastingAndIsNaN",fix:r(s,x=>`Number.isNaN(Number(${x}))`)})),n.report({node:s,messageId:"comparisonWithNaN",suggest:f})}}function i(s){e(s.discriminant)&&n.report({node:s,messageId:"switchNaN"});for(const f of s.cases)e(f.test)&&n.report({node:f,messageId:"caseNaN"})}function c(s){const f=a.skipChainExpression(s.callee);if(f.type==="MemberExpression"){const g=a.getStaticPropertyName(f);if((g==="indexOf"||g==="lastIndexOf")&&s.arguments.length<=2&&e(s.arguments[0])){const d=s.arguments[0].type!=="SequenceExpression"&&!s.arguments[1],E=[];if(d){const S=f.computed,x=g==="indexOf"?"findIndex":"findLastIndex",T=S?`"${x}"`:x;E.push({messageId:"replaceWithFindIndex",data:{methodName:x},fix:C=>[C.replaceText(f.property,T),C.replaceText(s.arguments[0],"Number.isNaN")]})}n.report({node:s,messageId:"indexOfNaN",data:{methodName:g},suggest:E})}}}const h={BinaryExpression:m};return t&&(h.SwitchStatement=i),o&&(h.CallExpression=c),h}},qf}var Vf,Ab;function qI(){if(Ab)return Vf;Ab=1;const a=Ue();return Vf={meta:{type:"problem",defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean"}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){const n=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),o=new Set(["==","===","!=","!=="]),t=e.sourceCode,[{requireStringLiterals:l}]=e.options;let p;function u(m){const i=p.set.get(m.name);return i&&i.defs.length===0&&i.references.some(c=>c.identifier===m)}function r(m){return m.type==="UnaryExpression"&&m.operator==="typeof"}return{Program(m){p=t.getScope(m)},UnaryExpression(m){if(r(m)){const{parent:i}=m;if(i.type==="BinaryExpression"&&o.has(i.operator)){const c=i.left===m?i.right:i.left;if(c.type==="Literal"||a.isStaticTemplateLiteral(c)){const h=c.type==="Literal"?c.value:c.quasis[0].value.cooked;n.has(h)||e.report({node:c,messageId:"invalidValue"})}else c.type==="Identifier"&&c.name==="undefined"&&u(c)?e.report({node:c,messageId:l?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(c,'"undefined"')}}]}):l&&!r(c)&&e.report({node:c,messageId:"notString"})}}}}}},Vf}var $f,Tb;function VI(){return Tb||(Tb=1,$f={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(a){function e(u){return u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&typeof u.expression.value=="string"}function n(u){return u.type==="ImportDeclaration"||u.type==="ImportSpecifier"||u.type==="ImportDefaultSpecifier"||u.type==="ImportNamespaceSpecifier"}function o(u){return u.type==="VariableDeclaration"||u.type==="ExportNamedDeclaration"&&u.declaration&&u.declaration.type==="VariableDeclaration"}function t(u,r){const m=r.length;let i=0;if(u.parent.type!=="StaticBlock")for(;i<m&&!(!e(r[i])&&!n(r[i]));++i);for(;i<m;++i){if(!o(r[i]))return!1;if(r[i]===u)return!0}return!1}function l(u,r){t(u,r.body)||a.report({node:u,messageId:"top"})}function p(u){const{parent:r}=u;r.type==="BlockStatement"&&/Function/u.test(r.parent.type)&&t(u,r.body)||r.type==="StaticBlock"&&t(u,r.body)||a.report({node:u,messageId:"top"})}return{"VariableDeclaration[kind='var']"(u){u.parent.type==="ExportNamedDeclaration"?l(u.parent,u.parent.parent):u.parent.type==="Program"?l(u,u.parent):p(u)}}}}),$f}var Wf,kb;function $I(){if(kb)return Wf;kb=1;const a=Ue(),e=qt();function n(o){const t=o.parent.type==="ChainExpression"?o.parent:o;return t.parent.type==="NewExpression"&&t.parent.callee===t}return Wf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-iife",url:"https://eslint.style/rules/wrap-iife"}}]},type:"layout",docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(o){const t=o.options[0]||"outside",l=o.options[1]&&o.options[1].functionPrototypeMethods,p=o.sourceCode;function u(i){return a.isParenthesised(p,i)}function r(i){return e.isParenthesized(1,i,p)}function m(i){const c=a.skipChainExpression(i.callee);return c.type==="FunctionExpression"?c:l&&c.type==="MemberExpression"&&c.object.type==="FunctionExpression"&&(a.getStaticPropertyName(c)==="call"||a.getStaticPropertyName(c)==="apply")?c.object:null}return{CallExpression(i){const c=m(i);if(!c)return;const h=u(i),s=u(c);!h&&!s?o.report({node:i,messageId:"wrapInvocation",fix(f){const g=t==="inside"?c:i;return f.replaceText(g,`(${p.getText(g)})`)}}):t==="inside"&&!s?o.report({node:i,messageId:"wrapExpression",fix(f){if(r(i)&&!n(i)){const g=p.getTokenAfter(i);return f.replaceTextRange([c.range[1],g.range[1]],`)${p.getText().slice(c.range[1],g.range[0])}`)}return f.replaceText(c,`(${p.getText(c)})`)}}):t==="outside"&&!h&&o.report({node:i,messageId:"moveInvocation",fix(f){const g=p.getTokenAfter(c);return f.replaceTextRange([g.range[0],i.range[1]],`${p.getText().slice(g.range[1],i.range[1])})`)}})}}}},Wf}var Gf,Db;function WI(){return Db||(Db=1,Gf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-regex",url:"https://eslint.style/rules/wrap-regex"}}]},type:"layout",docs:{description:"Require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(a){const e=a.sourceCode;return{Literal(n){if(e.getFirstToken(n).type==="RegularExpression"){const l=e.getTokenBefore(n),p=e.getTokenAfter(n),{parent:u}=n;u.type==="MemberExpression"&&u.object===n&&!(l&&l.value==="("&&p&&p.value===")")&&a.report({node:n,messageId:"requireParens",fix:r=>r.replaceText(n,`(${e.getText(n)})`)})}}}}}),Gf}var zf,Ib;function GI(){return Ib||(Ib=1,zf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"yield-star-spacing",url:"https://eslint.style/rules/yield-star-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(a){const e=a.sourceCode,n=function(l){return!l||typeof l=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[l||"after"]:l}(a.options[0]);function o(l,p,u){if(e.isSpaceBetweenTokens(p,u)!==n[l]){const r=p.value==="*",m=n[l],i=r?p:u;let c;m?c=l==="before"?"missingBefore":"missingAfter":c=l==="before"?"unexpectedBefore":"unexpectedAfter",a.report({node:i,messageId:c,fix(h){return m?r?h.insertTextAfter(i," "):h.insertTextBefore(i," "):h.removeRange([p.range[1],u.range[0]])}})}}function t(l){if(!l.delegate)return;const p=e.getFirstTokens(l,3),u=p[0],r=p[1],m=p[2];o("before",u,r),o("after",r,m)}return{YieldExpression:t}}}),zf}var Hf,Pb;function zI(){if(Pb)return Hf;Pb=1;const a=Ue();function e(u){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(u)}function n(u){return/^(==|===)$/u.test(u)}function o(u){return["<","<="].includes(u)}function t(u){return u.type==="UnaryExpression"&&u.operator==="-"&&u.prefix&&a.isNumericLiteral(u.argument)}function l(u){return t(u)||a.isStaticTemplateLiteral(u)}function p(u){return u.type==="Literal"?u:t(u)?{type:"Literal",value:-u.argument.value,raw:`-${u.argument.value}`}:a.isStaticTemplateLiteral(u)?{type:"Literal",value:u.quasis[0].value.cooked,raw:u.quasis[0].value.raw}:null}return Hf={meta:{type:"suggestion",defaultOptions:["never",{exceptRange:!1,onlyEquality:!1}],docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean"},onlyEquality:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(u){const[r,{exceptRange:m,onlyEquality:i}]=u.options,c=r==="always",h=u.sourceCode;function s(d){const E=d.left,S=d.right;function x(){if(d.operator==="&&"&&a.isSameReference(E.right,S.left)){const v=p(E.left),A=p(S.right);if(v===null&&A===null)return!1;if(A===null||v===null||v.value<=A.value)return!0}return!1}function T(){if(d.operator==="||"&&a.isSameReference(E.left,S.right)){const v=p(E.right),A=p(S.left);if(v===null&&A===null)return!1;if(A===null||v===null||v.value<=A.value)return!0}return!1}function C(){return a.isParenthesised(h,d)}return d.type==="LogicalExpression"&&E.type==="BinaryExpression"&&S.type==="BinaryExpression"&&o(E.operator)&&o(S.operator)&&(x()||T())&&C()}const f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function g(d){const E=h.getFirstTokenBetween(d.left,d.right,L=>L.value===d.operator),S=h.getTokenBefore(E),x=h.getTokenAfter(E),T=h.getText(),C=T.slice(d.range[0],S.range[1]),v=T.slice(S.range[1],E.range[0]),A=T.slice(E.range[1],x.range[0]),b=T.slice(x.range[0],d.range[1]),w=h.getTokenBefore(d),k=h.getTokenAfter(d);let R="",F="";return w&&w.range[1]===d.range[0]&&!a.canTokensBeAdjacent(w,x)&&(R=" "),k&&d.range[1]===k.range[0]&&!a.canTokensBeAdjacent(S,k)&&(F=" "),R+b+v+f[E.value]+A+C+F}return{BinaryExpression(d){const E=c?d.left:d.right,S=c?d.right:d.left;(S.type==="Literal"||l(S))&&!(E.type==="Literal"||l(E))&&!(!n(d.operator)&&i)&&e(d.operator)&&!(m&&s(d.parent))&&u.report({node:d,messageId:"expected",data:{operator:d.operator,expectedSide:c?"left":"right"},fix:x=>x.replaceText(d,g(d))})}}}},Hf}var Kf,Fb;function Rb(){if(Fb)return Kf;Fb=1;const{LazyLoadingRuleMap:a}=gw();return Kf=new a(Object.entries({"accessor-pairs":()=>Ew(),"array-bracket-newline":()=>Sw(),"array-bracket-spacing":()=>bw(),"array-callback-return":()=>xw(),"array-element-newline":()=>Cw(),"arrow-body-style":()=>ww(),"arrow-parens":()=>Aw(),"arrow-spacing":()=>Tw(),"block-scoped-var":()=>kw(),"block-spacing":()=>Dw(),"brace-style":()=>Iw(),"callback-return":()=>Pw(),camelcase:()=>Fw(),"capitalized-comments":()=>Rw(),"class-methods-use-this":()=>_w(),"comma-dangle":()=>Bw(),"comma-spacing":()=>Lw(),"comma-style":()=>Ow(),complexity:()=>Nw(),"computed-property-spacing":()=>Mw(),"consistent-return":()=>jw(),"consistent-this":()=>Uw(),"constructor-super":()=>qw(),curly:()=>Vw(),"default-case":()=>$w(),"default-case-last":()=>Ww(),"default-param-last":()=>Gw(),"dot-location":()=>zw(),"dot-notation":()=>Hw(),"eol-last":()=>Kw(),eqeqeq:()=>Xw(),"for-direction":()=>Jw(),"func-call-spacing":()=>Yw(),"func-name-matching":()=>Qw(),"func-names":()=>Zw(),"func-style":()=>eA(),"function-call-argument-newline":()=>tA(),"function-paren-newline":()=>rA(),"generator-star-spacing":()=>nA(),"getter-return":()=>sA(),"global-require":()=>aA(),"grouped-accessor-pairs":()=>iA(),"guard-for-in":()=>oA(),"handle-callback-err":()=>lA(),"id-blacklist":()=>uA(),"id-denylist":()=>cA(),"id-length":()=>fA(),"id-match":()=>pA(),"implicit-arrow-linebreak":()=>mA(),indent:()=>hA(),"indent-legacy":()=>dA(),"init-declarations":()=>gA(),"jsx-quotes":()=>yA(),"key-spacing":()=>vA(),"keyword-spacing":()=>EA(),"line-comment-position":()=>SA(),"linebreak-style":()=>bA(),"lines-around-comment":()=>xA(),"lines-around-directive":()=>CA(),"lines-between-class-members":()=>wA(),"logical-assignment-operators":()=>AA(),"max-classes-per-file":()=>TA(),"max-depth":()=>kA(),"max-len":()=>DA(),"max-lines":()=>IA(),"max-lines-per-function":()=>PA(),"max-nested-callbacks":()=>FA(),"max-params":()=>RA(),"max-statements":()=>_A(),"max-statements-per-line":()=>BA(),"multiline-comment-style":()=>LA(),"multiline-ternary":()=>OA(),"new-cap":()=>NA(),"new-parens":()=>MA(),"newline-after-var":()=>jA(),"newline-before-return":()=>UA(),"newline-per-chained-call":()=>qA(),"no-alert":()=>VA(),"no-array-constructor":()=>$A(),"no-async-promise-executor":()=>WA(),"no-await-in-loop":()=>GA(),"no-bitwise":()=>zA(),"no-buffer-constructor":()=>HA(),"no-caller":()=>KA(),"no-case-declarations":()=>XA(),"no-catch-shadow":()=>JA(),"no-class-assign":()=>YA(),"no-compare-neg-zero":()=>QA(),"no-cond-assign":()=>ZA(),"no-confusing-arrow":()=>eT(),"no-console":()=>tT(),"no-const-assign":()=>rT(),"no-constant-binary-expression":()=>nT(),"no-constant-condition":()=>sT(),"no-constructor-return":()=>aT(),"no-continue":()=>iT(),"no-control-regex":()=>oT(),"no-debugger":()=>lT(),"no-delete-var":()=>uT(),"no-div-regex":()=>cT(),"no-dupe-args":()=>fT(),"no-dupe-class-members":()=>pT(),"no-dupe-else-if":()=>mT(),"no-dupe-keys":()=>hT(),"no-duplicate-case":()=>dT(),"no-duplicate-imports":()=>gT(),"no-else-return":()=>yT(),"no-empty":()=>vT(),"no-empty-character-class":()=>ET(),"no-empty-function":()=>ST(),"no-empty-pattern":()=>bT(),"no-empty-static-block":()=>xT(),"no-eq-null":()=>CT(),"no-eval":()=>wT(),"no-ex-assign":()=>AT(),"no-extend-native":()=>TT(),"no-extra-bind":()=>kT(),"no-extra-boolean-cast":()=>DT(),"no-extra-label":()=>IT(),"no-extra-parens":()=>PT(),"no-extra-semi":()=>FT(),"no-fallthrough":()=>RT(),"no-floating-decimal":()=>_T(),"no-func-assign":()=>BT(),"no-global-assign":()=>LT(),"no-implicit-coercion":()=>OT(),"no-implicit-globals":()=>NT(),"no-implied-eval":()=>MT(),"no-import-assign":()=>jT(),"no-inline-comments":()=>UT(),"no-inner-declarations":()=>qT(),"no-invalid-regexp":()=>VT(),"no-invalid-this":()=>$T(),"no-irregular-whitespace":()=>WT(),"no-iterator":()=>GT(),"no-label-var":()=>zT(),"no-labels":()=>HT(),"no-lone-blocks":()=>KT(),"no-lonely-if":()=>XT(),"no-loop-func":()=>JT(),"no-loss-of-precision":()=>YT(),"no-magic-numbers":()=>QT(),"no-misleading-character-class":()=>ak(),"no-mixed-operators":()=>ik(),"no-mixed-requires":()=>ok(),"no-mixed-spaces-and-tabs":()=>lk(),"no-multi-assign":()=>uk(),"no-multi-spaces":()=>ck(),"no-multi-str":()=>fk(),"no-multiple-empty-lines":()=>pk(),"no-native-reassign":()=>mk(),"no-negated-condition":()=>hk(),"no-negated-in-lhs":()=>dk(),"no-nested-ternary":()=>gk(),"no-new":()=>yk(),"no-new-func":()=>vk(),"no-new-native-nonconstructor":()=>Ek(),"no-new-object":()=>Sk(),"no-new-require":()=>bk(),"no-new-symbol":()=>xk(),"no-new-wrappers":()=>Ck(),"no-nonoctal-decimal-escape":()=>wk(),"no-obj-calls":()=>Ak(),"no-object-constructor":()=>Tk(),"no-octal":()=>kk(),"no-octal-escape":()=>Dk(),"no-param-reassign":()=>Ik(),"no-path-concat":()=>Pk(),"no-plusplus":()=>Fk(),"no-process-env":()=>Rk(),"no-process-exit":()=>_k(),"no-promise-executor-return":()=>Bk(),"no-proto":()=>Lk(),"no-prototype-builtins":()=>Ok(),"no-redeclare":()=>Nk(),"no-regex-spaces":()=>Mk(),"no-restricted-exports":()=>jk(),"no-restricted-globals":()=>Uk(),"no-restricted-imports":()=>qk(),"no-restricted-modules":()=>Vk(),"no-restricted-properties":()=>$k(),"no-restricted-syntax":()=>Wk(),"no-return-assign":()=>Gk(),"no-return-await":()=>zk(),"no-script-url":()=>Hk(),"no-self-assign":()=>Kk(),"no-self-compare":()=>Xk(),"no-sequences":()=>Jk(),"no-setter-return":()=>Yk(),"no-shadow":()=>Qk(),"no-shadow-restricted-names":()=>Zk(),"no-spaced-func":()=>eD(),"no-sparse-arrays":()=>tD(),"no-sync":()=>rD(),"no-tabs":()=>nD(),"no-template-curly-in-string":()=>sD(),"no-ternary":()=>aD(),"no-this-before-super":()=>iD(),"no-throw-literal":()=>oD(),"no-trailing-spaces":()=>lD(),"no-unassigned-vars":()=>uD(),"no-undef":()=>cD(),"no-undef-init":()=>fD(),"no-undefined":()=>pD(),"no-underscore-dangle":()=>mD(),"no-unexpected-multiline":()=>hD(),"no-unmodified-loop-condition":()=>dD(),"no-unneeded-ternary":()=>gD(),"no-unreachable":()=>yD(),"no-unreachable-loop":()=>vD(),"no-unsafe-finally":()=>ED(),"no-unsafe-negation":()=>SD(),"no-unsafe-optional-chaining":()=>bD(),"no-unused-expressions":()=>xD(),"no-unused-labels":()=>CD(),"no-unused-private-class-members":()=>wD(),"no-unused-vars":()=>AD(),"no-use-before-define":()=>TD(),"no-useless-assignment":()=>kD(),"no-useless-backreference":()=>DD(),"no-useless-call":()=>ID(),"no-useless-catch":()=>PD(),"no-useless-computed-key":()=>FD(),"no-useless-concat":()=>RD(),"no-useless-constructor":()=>_D(),"no-useless-escape":()=>BD(),"no-useless-rename":()=>LD(),"no-useless-return":()=>OD(),"no-var":()=>ND(),"no-void":()=>MD(),"no-warning-comments":()=>jD(),"no-whitespace-before-property":()=>UD(),"no-with":()=>qD(),"nonblock-statement-body-position":()=>VD(),"object-curly-newline":()=>$D(),"object-curly-spacing":()=>WD(),"object-property-newline":()=>GD(),"object-shorthand":()=>zD(),"one-var":()=>HD(),"one-var-declaration-per-line":()=>KD(),"operator-assignment":()=>XD(),"operator-linebreak":()=>JD(),"padded-blocks":()=>YD(),"padding-line-between-statements":()=>QD(),"prefer-arrow-callback":()=>ZD(),"prefer-const":()=>eI(),"prefer-destructuring":()=>tI(),"prefer-exponentiation-operator":()=>rI(),"prefer-named-capture-group":()=>nI(),"prefer-numeric-literals":()=>sI(),"prefer-object-has-own":()=>aI(),"prefer-object-spread":()=>iI(),"prefer-promise-reject-errors":()=>oI(),"prefer-reflect":()=>lI(),"prefer-regex-literals":()=>uI(),"prefer-rest-params":()=>cI(),"prefer-spread":()=>fI(),"prefer-template":()=>pI(),"quote-props":()=>mI(),quotes:()=>hI(),radix:()=>dI(),"require-atomic-updates":()=>gI(),"require-await":()=>yI(),"require-unicode-regexp":()=>vI(),"require-yield":()=>EI(),"rest-spread-spacing":()=>SI(),semi:()=>bI(),"semi-spacing":()=>xI(),"semi-style":()=>CI(),"sort-imports":()=>wI(),"sort-keys":()=>TI(),"sort-vars":()=>kI(),"space-before-blocks":()=>DI(),"space-before-function-paren":()=>II(),"space-in-parens":()=>PI(),"space-infix-ops":()=>FI(),"space-unary-ops":()=>RI(),"spaced-comment":()=>_I(),strict:()=>BI(),"switch-colon-spacing":()=>LI(),"symbol-description":()=>OI(),"template-curly-spacing":()=>NI(),"template-tag-spacing":()=>MI(),"unicode-bom":()=>jI(),"use-isnan":()=>UI(),"valid-typeof":()=>qI(),"vars-on-top":()=>VI(),"wrap-iife":()=>$I(),"wrap-regex":()=>WI(),"yield-star-spacing":()=>GI(),yoda:()=>zI()})),Kf}var Xf,_b;function HI(){if(_b)return Xf;_b=1;const a=Rb();class e{constructor(){this._rules=Object.create(null)}define(o,t){this._rules[o]=t}get(o){return typeof this._rules[o]=="string"&&this.define(o,dw(this._rules[o])),this._rules[o]?this._rules[o]:a.has(o)?a.get(o):null}*[Symbol.iterator](){yield*a;for(const o of Object.keys(this._rules))yield[o,this.get(o)]}}return Xf=e,Xf}var Jf,Bb;function KI(){if(Bb)return Jf;Bb=1;const a=kr()("eslint:source-code-fixer"),e="\uFEFF";function n(l,p){return l.fix.range[0]-p.fix.range[0]||l.fix.range[1]-p.fix.range[1]}function o(l,p){return l.line-p.line||l.column-p.column}function t(){Object.freeze(this)}return t.applyFixes=function(l,p,u){if(a("Applying fixes"),u===!1)return a("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:p,output:l};const r=[],m=[],i=l.startsWith(e)?e:"",c=i?l.slice(1):l;let h=Number.NEGATIVE_INFINITY,s=i;function f(g){const d=g.fix,E=d.range[0],S=d.range[1];return h>=E||E>S?(r.push(g),!1):((E<0&&S>=0||E===0&&d.text.startsWith(e))&&(s=""),s+=c.slice(Math.max(0,h),Math.max(0,E)),s+=d.text,h=S,!0)}if(p.forEach(g=>{Object.hasOwn(g,"fix")&&g.fix?m.push(g):r.push(g)}),m.length){a("Found fixes to apply");let g=!1;for(const d of m.sort(n))typeof u!="function"||u(d)?(f(d),g=!0):r.push(d);return s+=c.slice(Math.max(0,h)),{fixed:g,messages:r.sort(o),output:s}}return a("No fixes to apply"),{fixed:!1,messages:p,output:i+c}},Jf=t,Jf}var Yf,Lb;function XI(){if(Lb)return Yf;Lb=1;const a=Object.freeze([]);class e{#e=new Map;add(o,t){this.#e.has(o)?this.#e.get(o).push(t):this.#e.set(o,[t])}get(o){return this.#e.has(o)?this.#e.get(o):a}forEachName(o){this.#e.forEach((t,l)=>{o(l)})}callSync(o,...t){this.#e.has(o)&&this.#e.get(o).forEach(l=>l(...t))}}return Yf={SourceCodeVisitor:e},Yf}var Qf,Ob;function Nb(){if(Ob)return Qf;Ob=1;function a(){return Ft.hrtime()}function e(n){const o=Ft.hrtime(n);return o[0]*1e3+o[1]/1e6}return Qf={startTime:a,endTime:e},Qf}var Zf,Mb;function JI(){if(Mb)return Zf;Mb=1;const{startTime:a,endTime:e}=Nb(),n=!!Ft.env.TIMING;function o(){if(typeof Ft.env.TIMING!="string")return 10;if(Ft.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;const l=Number.parseInt(Ft.env.TIMING,10);return l>10?l:10}return Zf=function(){const t=Object.create(null);function l(p,u,r){return function(...m){const i=a(),c=u(...m),h=e(i);return n&&(typeof t[p]>"u"&&(t[p]=0),t[p]+=h),r?{result:c,tdiff:h}:c}}return{time:l,enabled:n,getListSize:o}}(),Zf}var ep={},_n={},tp,jb;function YI(){if(jb)return tp;jb=1;const a=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function e(m){return typeof m=="object"&&m!==null}function n(m){return e(m)&&!Array.isArray(m)}function o(m){return typeof m>"u"}function t(m){if(o(m))throw new TypeError('Key "ecmaVersion": Expected an "ecmaVersion" property.');if(typeof m!="number"&&m!=="latest")throw new TypeError('Key "ecmaVersion": Expected a number or "latest".')}function l(m){if(typeof m!="string"||!/^(?:script|module|commonjs)$/u.test(m))throw new TypeError('Key "sourceType": Expected "script", "module", or "commonjs".')}function p(m){if(!n(m))throw new TypeError('Key "globals": Expected an object.');for(const i of Object.keys(m))if(i!=="__proto__"){if(i!==i.trim())throw new TypeError(`Key "globals": Global "${i}" has leading or trailing whitespace.`);if(!a.has(m[i]))throw new TypeError(`Key "globals": Key "${i}": Expected "readonly", "writable", or "off".`)}}function u(m){if(!m||typeof m!="object"||typeof m.parse!="function"&&typeof m.parseForESLint!="function")throw new TypeError('Key "parser": Expected object with parse() or parseForESLint() method.')}function r(m){if(!n(m))throw new TypeError("Expected an object.");const{ecmaVersion:i,sourceType:c,globals:h,parser:s,parserOptions:f,...g}=m;if("ecmaVersion"in m&&t(i),"sourceType"in m&&l(c),"globals"in m&&p(h),"parser"in m&&u(s),"parserOptions"in m&&!n(f))throw new TypeError('Key "parserOptions": Expected an object.');const d=Object.keys(g);if(d.length>0)throw new TypeError(`Unexpected key "${d[0]}" found.`)}return tp={validateLanguageOptions:r},tp}var rp,Ub;function qb(){if(Ub)return rp;Ub=1;const{SourceCode:a}=bd(),e=kr(),n=Fn(),o=hn(),t=qn(),l=Wr(),{validateLanguageOptions:p}=YI(),{LATEST_ECMA_VERSION:u}=ci(),r=e("eslint:languages:js"),m=5,i=Symbol.for("eslint.RuleTester.parser");function c(f,g,d){const S=g.parserOptions.ecmaFeatures||{},x=g.ecmaVersion||m;return t.analyze(f,{ignoreEval:!0,nodejsScope:S.globalReturn,impliedStrict:S.impliedStrict,ecmaVersion:typeof x=="number"?x:6,sourceType:g.sourceType||"script",childVisitorKeys:d||l.KEYS,fallback:l.getKeys})}function h(f){return f===o||f[i]===o}function s(f){switch(f){case 3:return 3;case 5:case void 0:return 5;default:if(typeof f=="number")return f>=2015?f:f+2009}return u}return rp={fileType:"text",lineStart:1,columnStart:0,nodeTypeKey:"type",visitorKeys:l.KEYS,defaultLanguageOptions:{sourceType:"module",ecmaVersion:"latest",parser:o,parserOptions:{}},validateLanguageOptions:p,normalizeLanguageOptions(f){if(f.ecmaVersion=s(f.ecmaVersion),h(f.parser)){const g=f.parserOptions;f.sourceType&&(g.sourceType=f.sourceType,g.sourceType==="module"&&g.ecmaFeatures&&g.ecmaFeatures.globalReturn&&(g.ecmaFeatures.globalReturn=!1))}return f},matchesSelectorClass(f,g,d){switch(f.toLowerCase()){case"statement":if(g.type.slice(-9)==="Statement")return!0;case"declaration":return g.type.slice(-11)==="Declaration";case"pattern":if(g.type.slice(-7)==="Pattern")return!0;case"expression":return g.type.slice(-10)==="Expression"||g.type.slice(-7)==="Literal"||g.type==="Identifier"&&(d.length===0||d[0].type!=="MetaProperty")||g.type==="MetaProperty";case"function":return g.type==="FunctionDeclaration"||g.type==="FunctionExpression"||g.type==="ArrowFunctionExpression";default:throw new Error(`Unknown class name: ${f}`)}},parse(f,{languageOptions:g}){const{body:d,path:E}=f,S=d.replace(n.shebangPattern,(A,b)=>`//${b}`),{ecmaVersion:x,sourceType:T,parser:C}=g,v=Object.assign({ecmaVersion:x,sourceType:T},g.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:E});try{r("Parsing:",E);const A=typeof C.parseForESLint=="function"?C.parseForESLint(S,v):{ast:C.parse(S,v)};r("Parsing successful:",E);const{ast:b,services:w={},visitorKeys:k=l.KEYS,scopeManager:R}=A;return{ok:!0,ast:b,parserServices:w,visitorKeys:k,scopeManager:R}}catch(A){const b=A.message.replace(/^line \d+:/iu,"").trim();return r(`%s
|
|
126
|
-
%s`,b,A.stack),{ok:!1,errors:[{message:b,line:A.lineNumber,column:A.column}]}}},createSourceCode(f,g,{languageOptions:d}){const{body:E,path:S,bom:x}=f,{ast:T,parserServices:C,visitorKeys:v}=g;r("Scope analysis:",S);const A=g.scopeManager||c(T,d,v);return r("Scope analysis successful:",S),new a({text:E,ast:T,hasBOM:x,parserServices:C,scopeManager:A,visitorKeys:v})}},rp}var Vb;function QI(){if(Vb)return _n;Vb=1;const a=Rb(),e=[{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}];return _n.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:qb()},rules:new Proxy({},{get(n,o){return a.get(o)},has(n,o){return a.has(o)}})}},language:"@/js",linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},...e]),_n.defaultRuleTesterConfig=Object.freeze([{files:["**"]},...e]),_n}var $b;function ZI(){if($b)return ep;$b=1;const{ConfigArray:a,ConfigArraySymbol:e}=Od(),{flatConfigSchema:n}=Ka(),{defaultConfig:o}=QI(),{Config:t}=ri(),l=new Set(["name","basePath"]);function p(c,h,s){let f="user-defined",g=c.index;return c.index<s?f="base":c.index<h+s?(f="original",g=c.index-s):g=c.index-h-s,new TypeError(`${c.message.slice(0,-1)} at ${f} index ${g}.`,{cause:c})}const u=Symbol("originalBaseConfig"),r=Symbol("originalLength"),m=Symbol("baseLength");class i extends a{constructor(h,{basePath:s,shouldIgnore:f=!0,baseConfig:g=o}={}){super(h,{basePath:s,schema:n}),this[r]=this.length,g[Symbol.iterator]?this.unshift(...g):this.unshift(g),this[m]=this.length-this[r],this[u]=g,Object.defineProperty(this,u,{writable:!1}),this.shouldIgnore=f,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(h){return super.normalize(h).catch(s=>{throw s.name==="ConfigError"?p(s,this[r],this[m]):s})}normalizeSync(h){try{return super.normalizeSync(h)}catch(s){throw s.name==="ConfigError"?p(s,this[r],this[m]):s}}[e.preprocessConfig](h){if(!this.shouldIgnore&&!this[u].includes(h)&&h.ignores&&Object.keys(h).filter(s=>!l.has(s)).length===1){const{ignores:s,...f}=h;return f}return h}[e.finalizeConfig](h){return new t(h)}}return ep.FlatConfigArray=i,ep}var np,Wb;function eP(){if(Wb)return np;Wb=1;const a=new Map([["test_only","Used only for testing."],["test_only_2","Used only for testing."],["v10_config_lookup_from_file","Look up `eslint.config.js` from the file being linted."],["unstable_native_nodejs_ts_config","Use native Node.js to load TypeScript configuration."]]),e=new Map([["test_only_replaced",{description:"Used only for testing flags that have been replaced by other flags.",replacedBy:"test_only"}],["test_only_enabled_by_default",{description:"Used only for testing flags whose features have been enabled by default.",replacedBy:null}],["test_only_abandoned",{description:"Used only for testing flags whose features have been abandoned."}],["unstable_ts_config",{description:"Enable TypeScript configuration files.",replacedBy:null}],["unstable_config_lookup_from_file",{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:"v10_config_lookup_from_file"}]]);function n({replacedBy:o}){return typeof o>"u"?"This feature has been abandoned.":typeof o=="string"?`This flag has been renamed '${o}' to reflect its stabilization. Please use '${o}' instead.`:"This feature is now enabled by default."}return np={activeFlags:a,inactiveFlags:e,getInactivityReasonMessage:n},np}var sp,Gb;function zb(){if(Gb)return sp;Gb=1;function a(o){return typeof o=="string"?o.charCodeAt(0)===65279:o[0]===239&&o[1]===187&&o[2]===191}function e(o){return a(o)?typeof o=="string"?o.slice(1):o.slice(3):o}class n{path;physicalPath;body;rawBody;bom;constructor(t,l,{physicalPath:p}={}){this.path=t,this.physicalPath=p??t,this.bom=a(l),this.body=e(l),this.rawBody=l}}return sp={VFile:n},sp}var ap,Hb;function tP(){if(Hb)return ap;Hb=1;class a{parseSync(n,o){const{language:t,languageOptions:l}=o,p=t.parse(n,{languageOptions:l});if(typeof p.then=="function")throw new Error("Unsupported: Language parser returned a promise.");return p.ok?{ok:!0,sourceCode:t.createSourceCode(n,p,{languageOptions:l})}:{ok:!1,errors:p.errors.map(u=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${u.message}`,line:u.line,column:u.column}))}}}return ap={ParserService:a},ap}var ip={},Kb;function rP(){if(Kb)return ip;Kb=1;class a{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:n,filename:o,physicalFilename:t,sourceCode:l,parserOptions:p,parserPath:u,languageOptions:r,settings:m}){this.cwd=n,this.filename=o,this.physicalFilename=t,this.sourceCode=l,this.parserOptions=p,this.parserPath=u,this.languageOptions=r,this.settings=m,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(n){return Object.freeze(Object.assign(Object.create(this),n))}}return ip.FileContext=a,ip}var op,Xb;function nP(){if(Xb)return op;Xb=1;const a=pn,{VFile:e}=zb();class n{preprocessSync(t,l){const{processor:p}=l;let u;try{u=p.preprocess(t.rawBody,t.path)}catch(r){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${r.message.replace(/^line \d+:/iu,"").trim()}`,line:r.lineNumber,column:r.column,nodeType:null}]}}if(typeof u.then=="function")throw new Error("Unsupported: Preprocessor returned a promise.");return{ok:!0,files:u.map((r,m)=>{if(typeof r=="string")return r;const i=a.join(t.path,`${m}_${r.filename}`);return new e(i,r.text,{physicalPath:t.physicalPath})})}}postprocessSync(t,l,p){const{processor:u}=p;return u.postprocess(l,t.path)}}return op={ProcessorService:n},op}var lp,Jb;function sP(){if(Jb)return lp;Jb=1;function a(e,n){if(e===n)return!1;if(typeof e!=typeof n||Array.isArray(e)!==Array.isArray(n))return!0;if(Array.isArray(e))return e.length!==n.length||e.some((o,t)=>a(o,n[t]));if(typeof e=="object"){if(e===null||n===null)return!0;const o=Object.keys(e),t=Object.keys(n);return o.length!==t.length||o.some(l=>!Object.hasOwn(n,l)||a(e[l],n[l]))}return!0}return lp={containsDifferentProperty:a},lp}var up,Yb;function aP(){if(Yb)return up;Yb=1;class a{constructor({emitWarning:n=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=n}emitCircularFixesWarning(n){this.emitWarning(`Circular fixes detected while fixing ${n}. It is likely that you have conflicting rules in your configuration.`,"ESLintCircularFixesWarning")}emitEmptyConfigWarning(n){this.emitWarning(`Running ESLint with an empty config (from ${n}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,"ESLintEmptyConfigWarning")}emitESLintIgnoreWarning(){this.emitWarning('The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files',"ESLintIgnoreWarning")}emitESLintRCWarning(){this.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.","ESLintRCWarning")}emitInactiveFlagWarning(n,o){this.emitWarning(o,`ESLintInactiveFlag_${n}`)}}return up={WarningService:a},up}function sn(a){return(sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function cp(a,e){return function(n){if(Array.isArray(n))return n}(a)||function(n,o){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var l,p,u,r,m=[],i=!0,c=!1;try{if(u=(t=t.call(n)).next,o!==0)for(;!(i=(l=u.call(t)).done)&&(m.push(l.value),m.length!==o);i=!0);}catch(h){c=!0,p=h}finally{try{if(!i&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw p}}return m}}(a,e)||Qb(a,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
*/var a=function(e,n){var o,t,l=1,p=0,u=0,r=String.alphabet;function m(i,c,h){if(h){for(o=c;h=m(i,o),h<76&&h>65;)++o;return+i.slice(c-1,o)}return h=r&&r.indexOf(i.charAt(c)),h>-1?h+76:(h=i.charCodeAt(c)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(n+="")){for(;l;)if(t=m(e,p++),l=m(n,u++),t<76&&l<76&&t>66&&l>66&&(t=m(e,p,p),l=m(n,u,p=o),u=o),t!=l)return t<l?-1:1}return 0};try{Tf.exports=a}catch{String.naturalCompare=a}return Tf.exports}var kf,cb;function TI(){if(cb)return kf;cb=1;const a=Ue(),e=AI();function n(t){const l=a.getStaticPropertyName(t);return l!==null?l:t.key.name||null}const o={asc(t,l){return t<=l},ascI(t,l){return t.toLowerCase()<=l.toLowerCase()},ascN(t,l){return e(t,l)<=0},ascIN(t,l){return e(t.toLowerCase(),l.toLowerCase())<=0},desc(t,l){return o.asc(l,t)},descI(t,l){return o.ascI(l,t)},descN(t,l){return o.ascN(l,t)},descIN(t,l){return o.ascIN(l,t)}};return kf={meta:{type:"suggestion",defaultOptions:["asc",{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:"Require object keys to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean"},natural:{type:"boolean"},minKeys:{type:"integer",minimum:2},allowLineSeparatedGroups:{type:"boolean"},ignoreComputedKeys:{type:"boolean"}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(t){const[l,{caseSensitive:p,natural:u,minKeys:r,allowLineSeparatedGroups:m,ignoreComputedKeys:i}]=t.options,c=!p,h=o[l+(c?"I":"")+(u?"N":"")];let s=null;const f=t.sourceCode;return{ObjectExpression(g){s={upper:s,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:g.properties.length}},"ObjectExpression:exit"(){s=s.upper},SpreadElement(g){g.parent.type==="ObjectExpression"&&(s.prevName=null)},Property(g){if(g.parent.type==="ObjectPattern")return;if(i&&g.computed){s.prevName=null;return}const d=s.prevName,E=s.numKeys,S=n(g),x=s.prevNode&&f.getTokensBetween(s.prevNode,g,{includeComments:!0});let T=s.prevBlankLine;if(x&&(x.forEach((C,v)=>{const A=x[v-1];A&&C.loc.start.line-A.loc.end.line>1&&(T=!0)}),!T&&g.loc.start.line-x.at(-1).loc.end.line>1&&(T=!0),!T&&x[0].loc.start.line-s.prevNode.loc.end.line>1&&(T=!0)),s.prevNode=g,S!==null&&(s.prevName=S),m&&T){s.prevBlankLine=S===null;return}d===null||S===null||E<r||h(d,S)||t.report({node:g,loc:g.key.loc,messageId:"sortKeys",data:{thisName:S,prevName:d,order:l,insensitive:c?"insensitive ":"",natural:u?"natural ":""}})}}}},kf}var Df,fb;function kI(){return fb||(fb=1,Df={meta:{type:"suggestion",defaultOptions:[{ignoreCase:!1}],docs:{description:"Require variables within the same declaration block to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(a){const[{ignoreCase:e}]=a.options,n=a.sourceCode;return{VariableDeclaration(o){const t=o.declarations.filter(r=>r.id.type==="Identifier"),l=e?r=>r.id.name.toLowerCase():r=>r.id.name,p=t.some(r=>r.init!==null&&r.init.type!=="Literal");let u=!1;t.slice(1).reduce((r,m)=>{const i=l(r);return l(m)<i?(a.report({node:m,messageId:"sortVars",fix(h){return p||u?null:h.replaceTextRange([t[0].range[0],t.at(-1).range[1]],t.slice().sort((s,f)=>{const g=l(s),d=l(f);return g>d?1:-1}).reduce((s,f,g)=>{const d=g===t.length-1?"":n.getText().slice(t[g].range[1],t[g+1].range[0]);return s+n.getText(f)+d},""))}}),u=!0,r):m},t[0])}}}}),Df}var If,pb;function DI(){if(pb)return If;pb=1;const a=Ue();function e(n){const o=n.parent;return n.type==="BlockStatement"&&a.isFunction(o)&&o.body===n}return If={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-blocks",url:"https://eslint.style/rules/space-before-blocks"}}]},type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(n){const o=n.options[0],t=n.sourceCode;let l=!0,p=!0,u=!0,r=!1,m=!1,i=!1;typeof o=="object"?(l=o.functions==="always",p=o.keywords==="always",u=o.classes==="always",r=o.functions==="never",m=o.keywords==="never",i=o.classes==="never"):o==="never"&&(l=!1,p=!1,u=!1,r=!0,m=!0,i=!0);function c(f,g){return a.isArrowToken(f)||a.isKeywordToken(f)&&!e(g)||a.isColonToken(f)&&g.parent&&g.parent.type==="SwitchCase"&&f===a.getSwitchCaseColonToken(g.parent,t)}function h(f){const g=t.getTokenBefore(f);if(g&&!c(g,f)&&a.isTokenOnSameLine(g,f)){const d=t.isSpaceBetweenTokens(g,f);let E,S;e(f)?(E=l,S=r):f.type==="ClassBody"?(E=u,S=i):(E=p,S=m),E&&!d?n.report({node:f,messageId:"missingSpace",fix(x){return x.insertTextBefore(f," ")}}):S&&d&&n.report({node:f,messageId:"unexpectedSpace",fix(x){return x.removeRange([g.range[1],f.range[0]])}})}}function s(f){const g=f.cases;let d;g.length>0?d=t.getTokenBefore(g[0]):d=t.getLastToken(f,1),h(d)}return{BlockStatement:h,ClassBody:h,SwitchStatement:s}}},If}var Pf,mb;function II(){if(mb)return Pf;mb=1;const a=Ue();return Pf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-function-paren",url:"https://eslint.style/rules/space-before-function-paren"}}]},type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){const n=e.sourceCode,o=typeof e.options[0]=="string"?e.options[0]:"always",t=typeof e.options[0]=="object"?e.options[0]:{};function l(r){if(r.id)return!0;const m=r.parent;return m.type==="MethodDefinition"||m.type==="Property"&&(m.kind==="get"||m.kind==="set"||m.method)}function p(r){if(r.type==="ArrowFunctionExpression"){if(r.async&&a.isOpeningParenToken(n.getFirstToken(r,{skip:1})))return t.asyncArrow||o}else{if(l(r))return t.named||o;if(!r.generator)return t.anonymous||o}return"ignore"}function u(r){const m=p(r);if(m==="ignore")return;const i=n.getFirstToken(r,a.isOpeningParenToken),c=n.getTokenBefore(i),h=n.isSpaceBetweenTokens(c,i);h&&m==="never"?e.report({node:r,loc:{start:c.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(s){const f=n.getCommentsBefore(i);return f.some(g=>g.type==="Line")?null:s.replaceTextRange([c.range[1],i.range[0]],f.reduce((g,d)=>g+n.getText(d),""))}}):!h&&m==="always"&&e.report({node:r,loc:i.loc,messageId:"missingSpace",fix:s=>s.insertTextAfter(c," ")})}return{ArrowFunctionExpression:u,FunctionDeclaration:u,FunctionExpression:u}}},Pf}var Ff,hb;function PI(){if(hb)return Ff;hb=1;const a=Ue();return Ff={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-in-parens",url:"https://eslint.style/rules/space-in-parens"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){const n=e.options[0]==="always",o=e.options[1]&&e.options[1].exceptions||[],t={};let l;o.length&&(t.braceException=o.includes("{}"),t.bracketException=o.includes("[]"),t.parenException=o.includes("()"),t.empty=o.includes("empty"));function p(){const f=[],g=[];return t.braceException&&(f.push("{"),g.push("}")),t.bracketException&&(f.push("["),g.push("]")),t.parenException&&(f.push("("),g.push(")")),t.empty&&(f.push(")"),g.push("(")),{openers:f,closers:g}}const u=e.sourceCode;function r(f){return l.openers.includes(f.value)}function m(f){return l.closers.includes(f.value)}function i(f,g){return u.isSpaceBetweenTokens(f,g)||!t.empty&&a.isClosingParenToken(g)?!1:n?!r(g):r(g)}function c(f,g){return!a.isTokenOnSameLine(f,g)||g.type==="Line"||!u.isSpaceBetweenTokens(f,g)?!1:n?r(g):!r(g)}function h(f,g){return u.isSpaceBetweenTokens(f,g)||!t.empty&&a.isOpeningParenToken(f)?!1:n?!m(f):m(f)}function s(f,g){return!a.isTokenOnSameLine(f,g)||!u.isSpaceBetweenTokens(f,g)?!1:n?m(f):!m(f)}return{Program:function(g){l=p();const d=u.tokensAndComments;d.forEach((E,S)=>{const x=d[S-1],T=d[S+1];!a.isOpeningParenToken(E)&&!a.isClosingParenToken(E)||(E.value==="("&&i(E,T)&&e.report({node:g,loc:E.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(E," ")}}),E.value==="("&&c(E,T)&&e.report({node:g,loc:{start:E.loc.end,end:T.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([E.range[1],T.range[0]])}}),E.value===")"&&h(x,E)&&e.report({node:g,loc:E.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(E," ")}}),E.value===")"&&s(x,E)&&e.report({node:g,loc:{start:x.loc.end,end:E.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([x.range[1],E.range[0]])}}))})}}}},Ff}var Rf,db;function FI(){if(db)return Rf;db=1;const{isEqToken:a}=Ue();return Rf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-infix-ops",url:"https://eslint.style/rules/space-infix-ops"}}]},type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){const n=e.options[0]?e.options[0].int32Hint===!0:!1,o=e.sourceCode;function t(m,i,c){const h=o.getFirstTokenBetween(m,i,g=>g.value===c),s=o.getTokenBefore(h),f=o.getTokenAfter(h);return!o.isSpaceBetweenTokens(s,h)||!o.isSpaceBetweenTokens(h,f)?h:null}function l(m,i){e.report({node:m,loc:i.loc,messageId:"missingSpace",data:{operator:i.value},fix(c){const h=o.getTokenBefore(i),s=o.getTokenAfter(i);let f="";return i.range[0]-h.range[1]===0&&(f=" "),f+=i.value,s.range[0]-i.range[1]===0&&(f+=" "),c.replaceText(i,f)}})}function p(m){const i=m.left.typeAnnotation?m.left.typeAnnotation:m.left,c=m.right,h=m.operator||"=",s=t(i,c,h);s&&(n&&o.getText(m).endsWith("|0")||l(m,s))}function u(m){const i=t(m.test,m.consequent,"?"),c=t(m.consequent,m.alternate,":");i&&l(m,i),c&&l(m,c)}function r(m){const i=m.id.typeAnnotation?m.id.typeAnnotation:m.id,c=m.init;if(c){const h=t(i,c,"=");h&&l(m,h)}}return{AssignmentExpression:p,AssignmentPattern:p,BinaryExpression:p,LogicalExpression:p,ConditionalExpression:u,VariableDeclarator:r,PropertyDefinition(m){if(!m.value)return;const i=o.getTokenBefore(m.value,a),c=o.getTokenBefore(i),h=o.getTokenAfter(i);(!o.isSpaceBetweenTokens(c,i)||!o.isSpaceBetweenTokens(i,h))&&l(m,i)}}}},Rf}var _f,gb;function RI(){if(gb)return _f;gb=1;const a=Ue();return _f={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-unary-ops",url:"https://eslint.style/rules/space-unary-ops"}}]},type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){const n=e.options[0]||{words:!0,nonwords:!1},o=e.sourceCode;function t(g){return g&&g.type==="UnaryExpression"&&g.argument.operator==="!"&&g.argument&&g.argument.type==="UnaryExpression"&&g.argument.operator==="!"}function l(g){return n.overrides&&Object.hasOwn(n.overrides,g)}function p(g){return n.overrides[g]}function u(g,d,E,S){E.range[0]===d.range[1]&&e.report({node:g,messageId:"wordOperator",data:{word:S},fix(x){return x.insertTextAfter(d," ")}})}function r(g,d,E,S){a.canTokensBeAdjacent(d,E)&&E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfterWord",data:{word:S},fix(x){return x.removeRange([d.range[1],E.range[0]])}})}function m(g,d,E,S){l(S)?p(S)?u(g,d,E,S):r(g,d,E,S):n.words?u(g,d,E,S):r(g,d,E,S)}function i(g){const d=o.getFirstTokens(g,3),E="yield";!g.argument||g.delegate||m(g,d[0],d[1],E)}function c(g){const d=o.getFirstTokens(g,3);m(g,d[0],d[1],"await")}function h(g,d,E){if(g.prefix){if(t(g))return;d.range[1]===E.range[0]&&e.report({node:g,messageId:"operator",data:{operator:d.value},fix(S){return S.insertTextAfter(d," ")}})}else d.range[1]===E.range[0]&&e.report({node:g,messageId:"beforeUnaryExpressions",data:{token:E.value},fix(S){return S.insertTextBefore(E," ")}})}function s(g,d,E){g.prefix?E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedAfter",data:{operator:d.value},fix(S){return a.canTokensBeAdjacent(d,E)?S.removeRange([d.range[1],E.range[0]]):null}}):E.range[0]>d.range[1]&&e.report({node:g,messageId:"unexpectedBefore",data:{operator:E.value},fix(S){return S.removeRange([d.range[1],E.range[0]])}})}function f(g){const d=g.type==="UpdateExpression"&&!g.prefix?o.getLastTokens(g,2):o.getFirstTokens(g,2),E=d[0],S=d[1];if((g.type==="NewExpression"||g.prefix)&&E.type==="Keyword"){m(g,E,S,E.value);return}const x=g.prefix?d[0].value:d[1].value;l(x)?p(x)?h(g,E,S):s(g,E,S):n.nonwords?h(g,E,S):s(g,E,S)}return{UnaryExpression:f,UpdateExpression:f,NewExpression:f,YieldExpression:i,AwaitExpression:c}}},_f}var Bf,yb;function _I(){if(yb)return Bf;yb=1;const a=Rn(),e=Ue();function n(r){return`(?:${a(r)})`}function o(r){return`${n(r)}+`}function t(r){return r.includes("*")?r:r.concat("*")}function l(r){let m="";return r.length===0?m+="\\s":(m+="(?:\\s|",r.length===1?m+=o(r[0]):(m+="(?:",m+=r.map(o).join("|"),m+=")"),m+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),m}function p(r,m){let i="^";return r.length===1?i+=n(r[0]):(i+="(?:",i+=r.map(n).join("|"),i+=")"),i+="?",i+=l(m),new RegExp(i,"u")}function u(r){const m=`^(${r.map(n).join("|")})?[ ]+`;return new RegExp(m,"u")}return Bf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"spaced-comment",url:"https://eslint.style/rules/spaced-comment"}}]},type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(r){const m=r.sourceCode,i=r.options[0]!=="never",c=r.options[1]||{},h=c.block&&c.block.balanced,s=["block","line"].reduce((E,S)=>{const x=t(c[S]&&c[S].markers||c.markers||[]),T=c[S]&&c[S].exceptions||c.exceptions||[],C="[ ]+$";return E[S]={beginRegex:i?p(x,T):u(x),endRegex:h&&i?new RegExp(`${l(T)}$`,"u"):new RegExp(C,"u"),hasExceptions:T.length>0,captureMarker:new RegExp(`^(${x.map(n).join("|")})`,"u"),markers:new Set(x)},E},{});function f(E,S,x,T){const C=E.type.toLowerCase(),v=C==="block"?"/*":"//";r.report({node:E,fix(A){const b=E.range[0];let w=b+2;return i?(x&&(w+=x[0].length),A.insertTextAfterRange([b,w]," ")):(w+=x[0].length,A.replaceTextRange([b,w],v+(x[1]?x[1]:"")))},messageId:S,data:{refChar:T}})}function g(E,S,x){r.report({node:E,fix(T){if(i)return T.insertTextAfterRange([E.range[0],E.range[1]-2]," ");const C=E.range[1]-2,v=C-x[0].length;return T.replaceTextRange([v,C],"")},messageId:S})}function d(E){const S=E.type.toLowerCase(),x=s[S],T=S==="block"?"/*":"//";if(E.value.length===0||x.markers.has(E.value))return;const C=x.beginRegex.exec(E.value),v=x.endRegex.exec(E.value);if(i){if(!C){const A=x.captureMarker.exec(E.value),b=A?T+A[0]:T;x.hasExceptions?f(E,"expectedExceptionAfter",A,b):f(E,"expectedSpaceAfter",A,b)}h&&S==="block"&&!v&&g(E,"expectedSpaceBefore")}else C&&(C[1]?f(E,"unexpectedSpaceAfterMarker",C,C[1]):f(E,"unexpectedSpaceAfter",C,T)),h&&S==="block"&&v&&g(E,"unexpectedSpaceBefore",v)}return{Program(){m.getAllComments().filter(S=>S.type!=="Shebang").forEach(d)}}}},Bf}var Lf,vb;function BI(){if(vb)return Lf;vb=1;const a=Ue();function e(t){const l=[];for(let p=0;p<t.length;p++){const u=t[p];if(u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&u.expression.value==="use strict")l[p]=u;else break}return l}function n(t){return t.type==="Identifier"}function o(t){return t.every(n)}return Lf={meta:{type:"suggestion",defaultOptions:["safe"],docs:{description:"Require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(t){const l=t.parserOptions.ecmaFeatures||{},p=[],u=[];let[r]=t.options;l.impliedStrict?r="implied":r==="safe"&&(r=l.globalReturn||t.languageOptions.sourceType==="commonjs"?"global":"function");function m(S){return S==="multiple"||S==="unnecessary"||S==="module"||S==="implied"||S==="unnecessaryInClasses"}function i(S){return x=>x.remove(S)}function c(S,x,T,C,v){S.slice(x,T).forEach(A=>{t.report({node:A,messageId:C,fix:v?i(A):null})})}function h(S,x,T){c(S,0,S.length,x,T)}function s(S,x,T){c(S,1,S.length,x,T)}function f(S,x){const T=u.length>0,C=p.length===0&&u.length===0,v=p.length>0&&p.at(-1),A=x.length>0;A?(o(S.params)?v?t.report({node:x[0],messageId:"unnecessary",fix:i(x[0])}):T&&t.report({node:x[0],messageId:"unnecessaryInClasses",fix:i(x[0])}):t.report({node:x[0],messageId:"nonSimpleParameterList"}),s(x,"multiple",!0)):C&&(o(S.params)?t.report({node:S,messageId:"function"}):t.report({node:S,messageId:"wrap",data:{name:a.getFunctionNameWithKind(S)}})),p.push(v||A)}function g(){p.pop()}function d(S){const x=S.body.type==="BlockStatement",T=x?e(S.body.body):[];r==="function"?f(S,T):T.length>0&&(o(S.params)?h(T,r,m(r)):(t.report({node:T[0],messageId:"nonSimpleParameterList"}),s(T,"multiple",!0)))}const E={Program(S){const x=e(S.body);S.sourceType==="module"&&(r="module"),r==="global"?(S.body.length>0&&x.length===0&&t.report({node:S,messageId:"global"}),s(x,"multiple",!0)):h(x,r,m(r))},FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d};return r==="function"&&Object.assign(E,{ClassBody(){u.push(!0)},"ClassBody:exit"(){u.pop()},"FunctionDeclaration:exit":g,"FunctionExpression:exit":g,"ArrowFunctionExpression:exit":g}),E}},Lf}var Of,Eb;function LI(){if(Eb)return Of;Eb=1;const a=Ue();return Of={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"switch-colon-spacing",url:"https://eslint.style/rules/switch-colon-spacing"}}]},type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){const n=e.sourceCode,o=e.options[0]||{},t=o.before===!0,l=o.after!==!1;function p(m,i,c){return a.isClosingBraceToken(i)||!a.isTokenOnSameLine(m,i)||n.isSpaceBetweenTokens(m,i)===c}function u(m,i){return n.getFirstTokenBetween(m,i,{includeComments:!0,filter:a.isCommentToken})!==null}function r(m,i,c,h){return u(i,c)?null:h?m.insertTextAfter(i," "):m.removeRange([i.range[1],c.range[0]])}return{SwitchCase(m){const i=a.getSwitchCaseColonToken(m,n),c=n.getTokenBefore(i),h=n.getTokenAfter(i);p(c,i,t)||e.report({node:m,loc:i.loc,messageId:t?"expectedBefore":"unexpectedBefore",fix:s=>r(s,c,i,t)}),p(i,h,l)||e.report({node:m,loc:i.loc,messageId:l?"expectedAfter":"unexpectedAfter",fix:s=>r(s,i,h,l)})}}}},Of}var Nf,Sb;function OI(){if(Sb)return Nf;Sb=1;const a=Ue();return Nf={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){const n=e.sourceCode;function o(t){t.arguments.length===0&&e.report({node:t,messageId:"expected"})}return{"Program:exit"(t){const l=n.getScope(t),p=a.getVariableByName(l,"Symbol");p&&p.defs.length===0&&p.references.forEach(u=>{const r=u.identifier;a.isCallee(r)&&o(r.parent)})}}}},Nf}var Mf,bb;function NI(){if(bb)return Mf;bb=1;const a=Ue();return Mf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-curly-spacing",url:"https://eslint.style/rules/template-curly-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){const n=e.sourceCode,o=e.options[0]==="always";function t(p){if(!p.value.startsWith("}"))return;const u=n.getTokenBefore(p,{includeComments:!0}),r=n.isSpaceBetween(u,p);a.isTokenOnSameLine(u,p)&&(o&&!r&&e.report({loc:{start:p.loc.start,end:{line:p.loc.start.line,column:p.loc.start.column+1}},messageId:"expectedBefore",fix:m=>m.insertTextBefore(p," ")}),!o&&r&&e.report({loc:{start:u.loc.end,end:p.loc.start},messageId:"unexpectedBefore",fix:m=>m.removeRange([u.range[1],p.range[0]])}))}function l(p){if(!p.value.endsWith("${"))return;const u=n.getTokenAfter(p,{includeComments:!0}),r=n.isSpaceBetween(p,u);a.isTokenOnSameLine(p,u)&&(o&&!r&&e.report({loc:{start:{line:p.loc.end.line,column:p.loc.end.column-2},end:p.loc.end},messageId:"expectedAfter",fix:m=>m.insertTextAfter(p," ")}),!o&&r&&e.report({loc:{start:p.loc.end,end:u.loc.start},messageId:"unexpectedAfter",fix:m=>m.removeRange([p.range[1],u.range[0]])}))}return{TemplateElement(p){const u=n.getFirstToken(p);t(u),l(u)}}}},Mf}var jf,xb;function MI(){return xb||(xb=1,jf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-tag-spacing",url:"https://eslint.style/rules/template-tag-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(a){const e=a.options[0]!=="always",n=a.sourceCode;function o(t){const l=n.getTokenBefore(t.quasi),p=n.getFirstToken(t.quasi),u=n.isSpaceBetweenTokens(l,p);e&&u?a.report({node:t,loc:{start:l.loc.end,end:p.loc.start},messageId:"unexpected",fix(r){const m=n.getCommentsBefore(t.quasi);return m.some(i=>i.type==="Line")?null:r.replaceTextRange([l.range[1],p.range[0]],m.reduce((i,c)=>i+n.getText(c),""))}}):!e&&!u&&a.report({node:t,loc:{start:t.loc.start,end:p.loc.start},messageId:"missing",fix(r){return r.insertTextAfter(l," ")}})}return{TaggedTemplateExpression:o}}}),jf}var Uf,Cb;function jI(){return Cb||(Cb=1,Uf={meta:{type:"layout",defaultOptions:["never"],docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(a){return{Program:function(n){const o=a.sourceCode,t={column:0,line:1},[l]=a.options;!o.hasBOM&&l==="always"?a.report({node:n,loc:t,messageId:"expected",fix(p){return p.insertTextBeforeRange([0,1],"\uFEFF")}}):o.hasBOM&&l==="never"&&a.report({node:n,loc:t,messageId:"unexpected",fix(p){return p.removeRange([-1,0])}})}}}}),Uf}var qf,wb;function UI(){if(wb)return qf;wb=1;const a=Ue();function e(n){if(!n)return!1;const o=n.type==="SequenceExpression"?n.expressions.at(-1):n;return a.isSpecificId(o,"NaN")||a.isSpecificMemberAccess(o,"Number","NaN")}return qf={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean"},enforceForIndexOf:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(n){const[{enforceForIndexOf:o,enforceForSwitchCase:t}]=n.options,l=n.sourceCode,p=new Set(["==","===","!=","!=="]),u=new Set(["==","!="]);function r(s,f){return g=>{const d=e(s.left)?s.right:s.left,E=d.type==="SequenceExpression",x=s.operator[0]==="!"?"!":"";let T=l.getText(d);E&&(T=`(${T})`);const C=f(T);return g.replaceText(s,`${x}${C}`)}}function m(s){if(/^(?:[<>]|[!=]=)=?$/u.test(s.operator)&&(e(s.left)||e(s.right))){const f=[],d=(e(s.left)?s.left:s.right).type==="SequenceExpression",E=p.has(s.operator)&&!d,S=u.has(s.operator);E&&(f.push({messageId:"replaceWithIsNaN",fix:r(s,x=>`Number.isNaN(${x})`)}),S&&f.push({messageId:"replaceWithCastingAndIsNaN",fix:r(s,x=>`Number.isNaN(Number(${x}))`)})),n.report({node:s,messageId:"comparisonWithNaN",suggest:f})}}function i(s){e(s.discriminant)&&n.report({node:s,messageId:"switchNaN"});for(const f of s.cases)e(f.test)&&n.report({node:f,messageId:"caseNaN"})}function c(s){const f=a.skipChainExpression(s.callee);if(f.type==="MemberExpression"){const g=a.getStaticPropertyName(f);if((g==="indexOf"||g==="lastIndexOf")&&s.arguments.length<=2&&e(s.arguments[0])){const d=s.arguments[0].type!=="SequenceExpression"&&!s.arguments[1],E=[];if(d){const S=f.computed,x=g==="indexOf"?"findIndex":"findLastIndex",T=S?`"${x}"`:x;E.push({messageId:"replaceWithFindIndex",data:{methodName:x},fix:C=>[C.replaceText(f.property,T),C.replaceText(s.arguments[0],"Number.isNaN")]})}n.report({node:s,messageId:"indexOfNaN",data:{methodName:g},suggest:E})}}}const h={BinaryExpression:m};return t&&(h.SwitchStatement=i),o&&(h.CallExpression=c),h}},qf}var Vf,Ab;function qI(){if(Ab)return Vf;Ab=1;const a=Ue();return Vf={meta:{type:"problem",defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean"}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){const n=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),o=new Set(["==","===","!=","!=="]),t=e.sourceCode,[{requireStringLiterals:l}]=e.options;let p;function u(m){const i=p.set.get(m.name);return i&&i.defs.length===0&&i.references.some(c=>c.identifier===m)}function r(m){return m.type==="UnaryExpression"&&m.operator==="typeof"}return{Program(m){p=t.getScope(m)},UnaryExpression(m){if(r(m)){const{parent:i}=m;if(i.type==="BinaryExpression"&&o.has(i.operator)){const c=i.left===m?i.right:i.left;if(c.type==="Literal"||a.isStaticTemplateLiteral(c)){const h=c.type==="Literal"?c.value:c.quasis[0].value.cooked;n.has(h)||e.report({node:c,messageId:"invalidValue"})}else c.type==="Identifier"&&c.name==="undefined"&&u(c)?e.report({node:c,messageId:l?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(c,'"undefined"')}}]}):l&&!r(c)&&e.report({node:c,messageId:"notString"})}}}}}},Vf}var $f,Tb;function VI(){return Tb||(Tb=1,$f={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(a){function e(u){return u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&typeof u.expression.value=="string"}function n(u){return u.type==="ImportDeclaration"||u.type==="ImportSpecifier"||u.type==="ImportDefaultSpecifier"||u.type==="ImportNamespaceSpecifier"}function o(u){return u.type==="VariableDeclaration"||u.type==="ExportNamedDeclaration"&&u.declaration&&u.declaration.type==="VariableDeclaration"}function t(u,r){const m=r.length;let i=0;if(u.parent.type!=="StaticBlock")for(;i<m&&!(!e(r[i])&&!n(r[i]));++i);for(;i<m;++i){if(!o(r[i]))return!1;if(r[i]===u)return!0}return!1}function l(u,r){t(u,r.body)||a.report({node:u,messageId:"top"})}function p(u){const{parent:r}=u;r.type==="BlockStatement"&&/Function/u.test(r.parent.type)&&t(u,r.body)||r.type==="StaticBlock"&&t(u,r.body)||a.report({node:u,messageId:"top"})}return{"VariableDeclaration[kind='var']"(u){u.parent.type==="ExportNamedDeclaration"?l(u.parent,u.parent.parent):u.parent.type==="Program"?l(u,u.parent):p(u)}}}}),$f}var Wf,kb;function $I(){if(kb)return Wf;kb=1;const a=Ue(),e=qt();function n(o){const t=o.parent.type==="ChainExpression"?o.parent:o;return t.parent.type==="NewExpression"&&t.parent.callee===t}return Wf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-iife",url:"https://eslint.style/rules/wrap-iife"}}]},type:"layout",docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(o){const t=o.options[0]||"outside",l=o.options[1]&&o.options[1].functionPrototypeMethods,p=o.sourceCode;function u(i){return a.isParenthesised(p,i)}function r(i){return e.isParenthesized(1,i,p)}function m(i){const c=a.skipChainExpression(i.callee);return c.type==="FunctionExpression"?c:l&&c.type==="MemberExpression"&&c.object.type==="FunctionExpression"&&(a.getStaticPropertyName(c)==="call"||a.getStaticPropertyName(c)==="apply")?c.object:null}return{CallExpression(i){const c=m(i);if(!c)return;const h=u(i),s=u(c);!h&&!s?o.report({node:i,messageId:"wrapInvocation",fix(f){const g=t==="inside"?c:i;return f.replaceText(g,`(${p.getText(g)})`)}}):t==="inside"&&!s?o.report({node:i,messageId:"wrapExpression",fix(f){if(r(i)&&!n(i)){const g=p.getTokenAfter(i);return f.replaceTextRange([c.range[1],g.range[1]],`)${p.getText().slice(c.range[1],g.range[0])}`)}return f.replaceText(c,`(${p.getText(c)})`)}}):t==="outside"&&!h&&o.report({node:i,messageId:"moveInvocation",fix(f){const g=p.getTokenAfter(c);return f.replaceTextRange([g.range[0],i.range[1]],`${p.getText().slice(g.range[1],i.range[1])})`)}})}}}},Wf}var Gf,Db;function WI(){return Db||(Db=1,Gf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-regex",url:"https://eslint.style/rules/wrap-regex"}}]},type:"layout",docs:{description:"Require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(a){const e=a.sourceCode;return{Literal(n){if(e.getFirstToken(n).type==="RegularExpression"){const l=e.getTokenBefore(n),p=e.getTokenAfter(n),{parent:u}=n;u.type==="MemberExpression"&&u.object===n&&!(l&&l.value==="("&&p&&p.value===")")&&a.report({node:n,messageId:"requireParens",fix:r=>r.replaceText(n,`(${e.getText(n)})`)})}}}}}),Gf}var zf,Ib;function GI(){return Ib||(Ib=1,zf={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"10.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"yield-star-spacing",url:"https://eslint.style/rules/yield-star-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(a){const e=a.sourceCode,n=function(l){return!l||typeof l=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[l||"after"]:l}(a.options[0]);function o(l,p,u){if(e.isSpaceBetweenTokens(p,u)!==n[l]){const r=p.value==="*",m=n[l],i=r?p:u;let c;m?c=l==="before"?"missingBefore":"missingAfter":c=l==="before"?"unexpectedBefore":"unexpectedAfter",a.report({node:i,messageId:c,fix(h){return m?r?h.insertTextAfter(i," "):h.insertTextBefore(i," "):h.removeRange([p.range[1],u.range[0]])}})}}function t(l){if(!l.delegate)return;const p=e.getFirstTokens(l,3),u=p[0],r=p[1],m=p[2];o("before",u,r),o("after",r,m)}return{YieldExpression:t}}}),zf}var Hf,Pb;function zI(){if(Pb)return Hf;Pb=1;const a=Ue();function e(u){return/^(?:==|===|!=|!==|<|>|<=|>=)$/u.test(u)}function n(u){return/^(?:==|===)$/u.test(u)}function o(u){return["<","<="].includes(u)}function t(u){return u.type==="UnaryExpression"&&u.operator==="-"&&u.prefix&&a.isNumericLiteral(u.argument)}function l(u){return t(u)||a.isStaticTemplateLiteral(u)}function p(u){return u.type==="Literal"?u:t(u)?{type:"Literal",value:-u.argument.value,raw:`-${u.argument.value}`}:a.isStaticTemplateLiteral(u)?{type:"Literal",value:u.quasis[0].value.cooked,raw:u.quasis[0].value.raw}:null}return Hf={meta:{type:"suggestion",defaultOptions:["never",{exceptRange:!1,onlyEquality:!1}],docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean"},onlyEquality:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(u){const[r,{exceptRange:m,onlyEquality:i}]=u.options,c=r==="always",h=u.sourceCode;function s(d){const E=d.left,S=d.right;function x(){if(d.operator==="&&"&&a.isSameReference(E.right,S.left)){const v=p(E.left),A=p(S.right);if(v===null&&A===null)return!1;if(A===null||v===null||v.value<=A.value)return!0}return!1}function T(){if(d.operator==="||"&&a.isSameReference(E.left,S.right)){const v=p(E.right),A=p(S.left);if(v===null&&A===null)return!1;if(A===null||v===null||v.value<=A.value)return!0}return!1}function C(){return a.isParenthesised(h,d)}return d.type==="LogicalExpression"&&E.type==="BinaryExpression"&&S.type==="BinaryExpression"&&o(E.operator)&&o(S.operator)&&(x()||T())&&C()}const f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function g(d){const E=h.getFirstTokenBetween(d.left,d.right,L=>L.value===d.operator),S=h.getTokenBefore(E),x=h.getTokenAfter(E),T=h.getText(),C=T.slice(d.range[0],S.range[1]),v=T.slice(S.range[1],E.range[0]),A=T.slice(E.range[1],x.range[0]),b=T.slice(x.range[0],d.range[1]),w=h.getTokenBefore(d),k=h.getTokenAfter(d);let R="",F="";return w&&w.range[1]===d.range[0]&&!a.canTokensBeAdjacent(w,x)&&(R=" "),k&&d.range[1]===k.range[0]&&!a.canTokensBeAdjacent(S,k)&&(F=" "),R+b+v+f[E.value]+A+C+F}return{BinaryExpression(d){const E=c?d.left:d.right,S=c?d.right:d.left;(S.type==="Literal"||l(S))&&!(E.type==="Literal"||l(E))&&!(!n(d.operator)&&i)&&e(d.operator)&&!(m&&s(d.parent))&&u.report({node:d,messageId:"expected",data:{operator:d.operator,expectedSide:c?"left":"right"},fix:x=>x.replaceText(d,g(d))})}}}},Hf}var Kf,Fb;function Rb(){if(Fb)return Kf;Fb=1;const{LazyLoadingRuleMap:a}=gw();return Kf=new a(Object.entries({"accessor-pairs":()=>Ew(),"array-bracket-newline":()=>Sw(),"array-bracket-spacing":()=>bw(),"array-callback-return":()=>xw(),"array-element-newline":()=>Cw(),"arrow-body-style":()=>ww(),"arrow-parens":()=>Aw(),"arrow-spacing":()=>Tw(),"block-scoped-var":()=>kw(),"block-spacing":()=>Dw(),"brace-style":()=>Iw(),"callback-return":()=>Pw(),camelcase:()=>Fw(),"capitalized-comments":()=>Rw(),"class-methods-use-this":()=>_w(),"comma-dangle":()=>Bw(),"comma-spacing":()=>Lw(),"comma-style":()=>Ow(),complexity:()=>Nw(),"computed-property-spacing":()=>Mw(),"consistent-return":()=>jw(),"consistent-this":()=>Uw(),"constructor-super":()=>qw(),curly:()=>Vw(),"default-case":()=>$w(),"default-case-last":()=>Ww(),"default-param-last":()=>Gw(),"dot-location":()=>zw(),"dot-notation":()=>Hw(),"eol-last":()=>Kw(),eqeqeq:()=>Xw(),"for-direction":()=>Jw(),"func-call-spacing":()=>Yw(),"func-name-matching":()=>Qw(),"func-names":()=>Zw(),"func-style":()=>eA(),"function-call-argument-newline":()=>tA(),"function-paren-newline":()=>rA(),"generator-star-spacing":()=>nA(),"getter-return":()=>sA(),"global-require":()=>aA(),"grouped-accessor-pairs":()=>iA(),"guard-for-in":()=>oA(),"handle-callback-err":()=>lA(),"id-blacklist":()=>uA(),"id-denylist":()=>cA(),"id-length":()=>fA(),"id-match":()=>pA(),"implicit-arrow-linebreak":()=>mA(),indent:()=>hA(),"indent-legacy":()=>dA(),"init-declarations":()=>gA(),"jsx-quotes":()=>yA(),"key-spacing":()=>vA(),"keyword-spacing":()=>EA(),"line-comment-position":()=>SA(),"linebreak-style":()=>bA(),"lines-around-comment":()=>xA(),"lines-around-directive":()=>CA(),"lines-between-class-members":()=>wA(),"logical-assignment-operators":()=>AA(),"max-classes-per-file":()=>TA(),"max-depth":()=>kA(),"max-len":()=>DA(),"max-lines":()=>IA(),"max-lines-per-function":()=>PA(),"max-nested-callbacks":()=>FA(),"max-params":()=>RA(),"max-statements":()=>_A(),"max-statements-per-line":()=>BA(),"multiline-comment-style":()=>LA(),"multiline-ternary":()=>OA(),"new-cap":()=>NA(),"new-parens":()=>MA(),"newline-after-var":()=>jA(),"newline-before-return":()=>UA(),"newline-per-chained-call":()=>qA(),"no-alert":()=>VA(),"no-array-constructor":()=>$A(),"no-async-promise-executor":()=>WA(),"no-await-in-loop":()=>GA(),"no-bitwise":()=>zA(),"no-buffer-constructor":()=>HA(),"no-caller":()=>KA(),"no-case-declarations":()=>XA(),"no-catch-shadow":()=>JA(),"no-class-assign":()=>YA(),"no-compare-neg-zero":()=>QA(),"no-cond-assign":()=>ZA(),"no-confusing-arrow":()=>eT(),"no-console":()=>tT(),"no-const-assign":()=>rT(),"no-constant-binary-expression":()=>nT(),"no-constant-condition":()=>sT(),"no-constructor-return":()=>aT(),"no-continue":()=>iT(),"no-control-regex":()=>oT(),"no-debugger":()=>lT(),"no-delete-var":()=>uT(),"no-div-regex":()=>cT(),"no-dupe-args":()=>fT(),"no-dupe-class-members":()=>pT(),"no-dupe-else-if":()=>mT(),"no-dupe-keys":()=>hT(),"no-duplicate-case":()=>dT(),"no-duplicate-imports":()=>gT(),"no-else-return":()=>yT(),"no-empty":()=>vT(),"no-empty-character-class":()=>ET(),"no-empty-function":()=>ST(),"no-empty-pattern":()=>bT(),"no-empty-static-block":()=>xT(),"no-eq-null":()=>CT(),"no-eval":()=>wT(),"no-ex-assign":()=>AT(),"no-extend-native":()=>TT(),"no-extra-bind":()=>kT(),"no-extra-boolean-cast":()=>DT(),"no-extra-label":()=>IT(),"no-extra-parens":()=>PT(),"no-extra-semi":()=>FT(),"no-fallthrough":()=>RT(),"no-floating-decimal":()=>_T(),"no-func-assign":()=>BT(),"no-global-assign":()=>LT(),"no-implicit-coercion":()=>OT(),"no-implicit-globals":()=>NT(),"no-implied-eval":()=>MT(),"no-import-assign":()=>jT(),"no-inline-comments":()=>UT(),"no-inner-declarations":()=>qT(),"no-invalid-regexp":()=>VT(),"no-invalid-this":()=>$T(),"no-irregular-whitespace":()=>WT(),"no-iterator":()=>GT(),"no-label-var":()=>zT(),"no-labels":()=>HT(),"no-lone-blocks":()=>KT(),"no-lonely-if":()=>XT(),"no-loop-func":()=>JT(),"no-loss-of-precision":()=>YT(),"no-magic-numbers":()=>QT(),"no-misleading-character-class":()=>ak(),"no-mixed-operators":()=>ik(),"no-mixed-requires":()=>ok(),"no-mixed-spaces-and-tabs":()=>lk(),"no-multi-assign":()=>uk(),"no-multi-spaces":()=>ck(),"no-multi-str":()=>fk(),"no-multiple-empty-lines":()=>pk(),"no-native-reassign":()=>mk(),"no-negated-condition":()=>hk(),"no-negated-in-lhs":()=>dk(),"no-nested-ternary":()=>gk(),"no-new":()=>yk(),"no-new-func":()=>vk(),"no-new-native-nonconstructor":()=>Ek(),"no-new-object":()=>Sk(),"no-new-require":()=>bk(),"no-new-symbol":()=>xk(),"no-new-wrappers":()=>Ck(),"no-nonoctal-decimal-escape":()=>wk(),"no-obj-calls":()=>Ak(),"no-object-constructor":()=>Tk(),"no-octal":()=>kk(),"no-octal-escape":()=>Dk(),"no-param-reassign":()=>Ik(),"no-path-concat":()=>Pk(),"no-plusplus":()=>Fk(),"no-process-env":()=>Rk(),"no-process-exit":()=>_k(),"no-promise-executor-return":()=>Bk(),"no-proto":()=>Lk(),"no-prototype-builtins":()=>Ok(),"no-redeclare":()=>Nk(),"no-regex-spaces":()=>Mk(),"no-restricted-exports":()=>jk(),"no-restricted-globals":()=>Uk(),"no-restricted-imports":()=>qk(),"no-restricted-modules":()=>Vk(),"no-restricted-properties":()=>$k(),"no-restricted-syntax":()=>Wk(),"no-return-assign":()=>Gk(),"no-return-await":()=>zk(),"no-script-url":()=>Hk(),"no-self-assign":()=>Kk(),"no-self-compare":()=>Xk(),"no-sequences":()=>Jk(),"no-setter-return":()=>Yk(),"no-shadow":()=>Qk(),"no-shadow-restricted-names":()=>Zk(),"no-spaced-func":()=>eD(),"no-sparse-arrays":()=>tD(),"no-sync":()=>rD(),"no-tabs":()=>nD(),"no-template-curly-in-string":()=>sD(),"no-ternary":()=>aD(),"no-this-before-super":()=>iD(),"no-throw-literal":()=>oD(),"no-trailing-spaces":()=>lD(),"no-unassigned-vars":()=>uD(),"no-undef":()=>cD(),"no-undef-init":()=>fD(),"no-undefined":()=>pD(),"no-underscore-dangle":()=>mD(),"no-unexpected-multiline":()=>hD(),"no-unmodified-loop-condition":()=>dD(),"no-unneeded-ternary":()=>gD(),"no-unreachable":()=>yD(),"no-unreachable-loop":()=>vD(),"no-unsafe-finally":()=>ED(),"no-unsafe-negation":()=>SD(),"no-unsafe-optional-chaining":()=>bD(),"no-unused-expressions":()=>xD(),"no-unused-labels":()=>CD(),"no-unused-private-class-members":()=>wD(),"no-unused-vars":()=>AD(),"no-use-before-define":()=>TD(),"no-useless-assignment":()=>kD(),"no-useless-backreference":()=>DD(),"no-useless-call":()=>ID(),"no-useless-catch":()=>PD(),"no-useless-computed-key":()=>FD(),"no-useless-concat":()=>RD(),"no-useless-constructor":()=>_D(),"no-useless-escape":()=>BD(),"no-useless-rename":()=>LD(),"no-useless-return":()=>OD(),"no-var":()=>ND(),"no-void":()=>MD(),"no-warning-comments":()=>jD(),"no-whitespace-before-property":()=>UD(),"no-with":()=>qD(),"nonblock-statement-body-position":()=>VD(),"object-curly-newline":()=>$D(),"object-curly-spacing":()=>WD(),"object-property-newline":()=>GD(),"object-shorthand":()=>zD(),"one-var":()=>HD(),"one-var-declaration-per-line":()=>KD(),"operator-assignment":()=>XD(),"operator-linebreak":()=>JD(),"padded-blocks":()=>YD(),"padding-line-between-statements":()=>QD(),"prefer-arrow-callback":()=>ZD(),"prefer-const":()=>eI(),"prefer-destructuring":()=>tI(),"prefer-exponentiation-operator":()=>rI(),"prefer-named-capture-group":()=>nI(),"prefer-numeric-literals":()=>sI(),"prefer-object-has-own":()=>aI(),"prefer-object-spread":()=>iI(),"prefer-promise-reject-errors":()=>oI(),"prefer-reflect":()=>lI(),"prefer-regex-literals":()=>uI(),"prefer-rest-params":()=>cI(),"prefer-spread":()=>fI(),"prefer-template":()=>pI(),"quote-props":()=>mI(),quotes:()=>hI(),radix:()=>dI(),"require-atomic-updates":()=>gI(),"require-await":()=>yI(),"require-unicode-regexp":()=>vI(),"require-yield":()=>EI(),"rest-spread-spacing":()=>SI(),semi:()=>bI(),"semi-spacing":()=>xI(),"semi-style":()=>CI(),"sort-imports":()=>wI(),"sort-keys":()=>TI(),"sort-vars":()=>kI(),"space-before-blocks":()=>DI(),"space-before-function-paren":()=>II(),"space-in-parens":()=>PI(),"space-infix-ops":()=>FI(),"space-unary-ops":()=>RI(),"spaced-comment":()=>_I(),strict:()=>BI(),"switch-colon-spacing":()=>LI(),"symbol-description":()=>OI(),"template-curly-spacing":()=>NI(),"template-tag-spacing":()=>MI(),"unicode-bom":()=>jI(),"use-isnan":()=>UI(),"valid-typeof":()=>qI(),"vars-on-top":()=>VI(),"wrap-iife":()=>$I(),"wrap-regex":()=>WI(),"yield-star-spacing":()=>GI(),yoda:()=>zI()})),Kf}var Xf,_b;function HI(){if(_b)return Xf;_b=1;const a=Rb();class e{constructor(){this._rules=Object.create(null)}define(o,t){this._rules[o]=t}get(o){return typeof this._rules[o]=="string"&&this.define(o,dw(this._rules[o])),this._rules[o]?this._rules[o]:a.has(o)?a.get(o):null}*[Symbol.iterator](){yield*a;for(const o of Object.keys(this._rules))yield[o,this.get(o)]}}return Xf=e,Xf}var Jf,Bb;function KI(){if(Bb)return Jf;Bb=1;const a=kr()("eslint:source-code-fixer"),e="\uFEFF";function n(l,p){return l.fix.range[0]-p.fix.range[0]||l.fix.range[1]-p.fix.range[1]}function o(l,p){return l.line-p.line||l.column-p.column}function t(){Object.freeze(this)}return t.applyFixes=function(l,p,u){if(a("Applying fixes"),u===!1)return a("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:p,output:l};const r=[],m=[],i=l.startsWith(e)?e:"",c=i?l.slice(1):l;let h=Number.NEGATIVE_INFINITY,s=i;function f(g){const d=g.fix,E=d.range[0],S=d.range[1];return h>=E||E>S?(r.push(g),!1):((E<0&&S>=0||E===0&&d.text.startsWith(e))&&(s=""),s+=c.slice(Math.max(0,h),Math.max(0,E)),s+=d.text,h=S,!0)}if(p.forEach(g=>{Object.hasOwn(g,"fix")&&g.fix?m.push(g):r.push(g)}),m.length){a("Found fixes to apply");let g=!1;for(const d of m.sort(n))typeof u!="function"||u(d)?(f(d),g=!0):r.push(d);return s+=c.slice(Math.max(0,h)),{fixed:g,messages:r.sort(o),output:s}}return a("No fixes to apply"),{fixed:!1,messages:p,output:i+c}},Jf=t,Jf}var Yf,Lb;function XI(){if(Lb)return Yf;Lb=1;const a=Object.freeze([]);class e{#e=new Map;add(o,t){this.#e.has(o)?this.#e.get(o).push(t):this.#e.set(o,[t])}get(o){return this.#e.has(o)?this.#e.get(o):a}forEachName(o){this.#e.forEach((t,l)=>{o(l)})}callSync(o,...t){this.#e.has(o)&&this.#e.get(o).forEach(l=>l(...t))}}return Yf={SourceCodeVisitor:e},Yf}var Qf,Ob;function Nb(){if(Ob)return Qf;Ob=1;function a(){return Ft.hrtime()}function e(n){const o=Ft.hrtime(n);return o[0]*1e3+o[1]/1e6}return Qf={startTime:a,endTime:e},Qf}var Zf,Mb;function JI(){if(Mb)return Zf;Mb=1;const{startTime:a,endTime:e}=Nb(),n=!!Ft.env.TIMING;function o(){if(typeof Ft.env.TIMING!="string")return 10;if(Ft.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;const l=Number.parseInt(Ft.env.TIMING,10);return l>10?l:10}return Zf=function(){const t=Object.create(null);function l(p,u,r){return function(...m){const i=a(),c=u(...m),h=e(i);return n&&(typeof t[p]>"u"&&(t[p]=0),t[p]+=h),r?{result:c,tdiff:h}:c}}return{time:l,enabled:n,getListSize:o}}(),Zf}var ep={},_n={},tp,jb;function YI(){if(jb)return tp;jb=1;const a=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function e(m){return typeof m=="object"&&m!==null}function n(m){return e(m)&&!Array.isArray(m)}function o(m){return typeof m>"u"}function t(m){if(o(m))throw new TypeError('Key "ecmaVersion": Expected an "ecmaVersion" property.');if(typeof m!="number"&&m!=="latest")throw new TypeError('Key "ecmaVersion": Expected a number or "latest".')}function l(m){if(typeof m!="string"||!/^(?:script|module|commonjs)$/u.test(m))throw new TypeError('Key "sourceType": Expected "script", "module", or "commonjs".')}function p(m){if(!n(m))throw new TypeError('Key "globals": Expected an object.');for(const i of Object.keys(m))if(i!=="__proto__"){if(i!==i.trim())throw new TypeError(`Key "globals": Global "${i}" has leading or trailing whitespace.`);if(!a.has(m[i]))throw new TypeError(`Key "globals": Key "${i}": Expected "readonly", "writable", or "off".`)}}function u(m){if(!m||typeof m!="object"||typeof m.parse!="function"&&typeof m.parseForESLint!="function")throw new TypeError('Key "parser": Expected object with parse() or parseForESLint() method.')}function r(m){if(!n(m))throw new TypeError("Expected an object.");const{ecmaVersion:i,sourceType:c,globals:h,parser:s,parserOptions:f,...g}=m;if("ecmaVersion"in m&&t(i),"sourceType"in m&&l(c),"globals"in m&&p(h),"parser"in m&&u(s),"parserOptions"in m&&!n(f))throw new TypeError('Key "parserOptions": Expected an object.');const d=Object.keys(g);if(d.length>0)throw new TypeError(`Unexpected key "${d[0]}" found.`)}return tp={validateLanguageOptions:r},tp}var rp,Ub;function qb(){if(Ub)return rp;Ub=1;const{SourceCode:a}=bd(),e=kr(),n=Fn(),o=hn(),t=qn(),l=Wr(),{validateLanguageOptions:p}=YI(),{LATEST_ECMA_VERSION:u}=ci(),r=e("eslint:languages:js"),m=5,i=Symbol.for("eslint.RuleTester.parser");function c(f,g,d){const S=g.parserOptions.ecmaFeatures||{},x=g.ecmaVersion||m;return t.analyze(f,{ignoreEval:!0,nodejsScope:S.globalReturn,impliedStrict:S.impliedStrict,ecmaVersion:typeof x=="number"?x:6,sourceType:g.sourceType||"script",childVisitorKeys:d||l.KEYS,fallback:l.getKeys})}function h(f){return f===o||f[i]===o}function s(f){switch(f){case 3:return 3;case 5:case void 0:return 5;default:if(typeof f=="number")return f>=2015?f:f+2009}return u}return rp={fileType:"text",lineStart:1,columnStart:0,nodeTypeKey:"type",visitorKeys:l.KEYS,defaultLanguageOptions:{sourceType:"module",ecmaVersion:"latest",parser:o,parserOptions:{}},validateLanguageOptions:p,normalizeLanguageOptions(f){if(f.ecmaVersion=s(f.ecmaVersion),h(f.parser)){const g=f.parserOptions;f.sourceType&&(g.sourceType=f.sourceType,g.sourceType==="module"&&g.ecmaFeatures&&g.ecmaFeatures.globalReturn&&(g.ecmaFeatures.globalReturn=!1))}return f},matchesSelectorClass(f,g,d){switch(f.toLowerCase()){case"statement":if(g.type.slice(-9)==="Statement")return!0;case"declaration":return g.type.slice(-11)==="Declaration";case"pattern":if(g.type.slice(-7)==="Pattern")return!0;case"expression":return g.type.slice(-10)==="Expression"||g.type.slice(-7)==="Literal"||g.type==="Identifier"&&(d.length===0||d[0].type!=="MetaProperty")||g.type==="MetaProperty";case"function":return g.type==="FunctionDeclaration"||g.type==="FunctionExpression"||g.type==="ArrowFunctionExpression";default:throw new Error(`Unknown class name: ${f}`)}},parse(f,{languageOptions:g}){const{body:d,path:E}=f,S=d.replace(n.shebangPattern,(A,b)=>`//${b}`),{ecmaVersion:x,sourceType:T,parser:C}=g,v=Object.assign({ecmaVersion:x,sourceType:T},g.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:E});try{r("Parsing:",E);const A=typeof C.parseForESLint=="function"?C.parseForESLint(S,v):{ast:C.parse(S,v)};r("Parsing successful:",E);const{ast:b,services:w={},visitorKeys:k=l.KEYS,scopeManager:R}=A;return{ok:!0,ast:b,parserServices:w,visitorKeys:k,scopeManager:R}}catch(A){const b=A.message.replace(/^line \d+:/iu,"").trim();return r(`%s
|
|
126
|
+
%s`,b,A.stack),{ok:!1,errors:[{message:b,line:A.lineNumber,column:A.column}]}}},createSourceCode(f,g,{languageOptions:d}){const{body:E,path:S,bom:x}=f,{ast:T,parserServices:C,visitorKeys:v}=g;r("Scope analysis:",S);const A=g.scopeManager||c(T,d,v);return r("Scope analysis successful:",S),new a({text:E,ast:T,hasBOM:x,parserServices:C,scopeManager:A,visitorKeys:v})}},rp}var Vb;function QI(){if(Vb)return _n;Vb=1;const a=Rb(),e=[{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}];return _n.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:qb()},rules:new Proxy({},{get(n,o){return a.get(o)},has(n,o){return a.has(o)}})}},language:"@/js",linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},...e]),_n.defaultRuleTesterConfig=Object.freeze([{files:["**"]},...e]),_n}var $b;function ZI(){if($b)return ep;$b=1;const{ConfigArray:a,ConfigArraySymbol:e}=Od(),{flatConfigSchema:n}=Ka(),{defaultConfig:o}=QI(),{Config:t}=ri(),l=new Set(["name","basePath"]);function p(c,h,s){let f="user-defined",g=c.index;return c.index<s?f="base":c.index<h+s?(f="original",g=c.index-s):g=c.index-h-s,new TypeError(`${c.message.slice(0,-1)} at ${f} index ${g}.`,{cause:c})}const u=Symbol("originalBaseConfig"),r=Symbol("originalLength"),m=Symbol("baseLength");class i extends a{constructor(h,{basePath:s,shouldIgnore:f=!0,baseConfig:g=o}={}){super(h,{basePath:s,schema:n}),this[r]=this.length,g[Symbol.iterator]?this.unshift(...g):this.unshift(g),this[m]=this.length-this[r],this[u]=g,Object.defineProperty(this,u,{writable:!1}),this.shouldIgnore=f,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(h){return super.normalize(h).catch(s=>{throw s.name==="ConfigError"?p(s,this[r],this[m]):s})}normalizeSync(h){try{return super.normalizeSync(h)}catch(s){throw s.name==="ConfigError"?p(s,this[r],this[m]):s}}[e.preprocessConfig](h){if(!this.shouldIgnore&&!this[u].includes(h)&&h.ignores&&Object.keys(h).filter(s=>!l.has(s)).length===1){const{ignores:s,...f}=h;return f}return h}[e.finalizeConfig](h){return new t(h)}}return ep.FlatConfigArray=i,ep}var np,Wb;function eP(){if(Wb)return np;Wb=1;const a=new Map([["test_only","Used only for testing."],["test_only_2","Used only for testing."],["v10_config_lookup_from_file","Look up `eslint.config.js` from the file being linted."],["unstable_native_nodejs_ts_config","Use native Node.js to load TypeScript configuration."]]),e=new Map([["test_only_replaced",{description:"Used only for testing flags that have been replaced by other flags.",replacedBy:"test_only"}],["test_only_enabled_by_default",{description:"Used only for testing flags whose features have been enabled by default.",replacedBy:null}],["test_only_abandoned",{description:"Used only for testing flags whose features have been abandoned."}],["unstable_ts_config",{description:"Enable TypeScript configuration files.",replacedBy:null}],["unstable_config_lookup_from_file",{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:"v10_config_lookup_from_file"}]]);function n({replacedBy:o}){return typeof o>"u"?"This feature has been abandoned.":typeof o=="string"?`This flag has been renamed '${o}' to reflect its stabilization. Please use '${o}' instead.`:"This feature is now enabled by default."}return np={activeFlags:a,inactiveFlags:e,getInactivityReasonMessage:n},np}var sp,Gb;function zb(){if(Gb)return sp;Gb=1;function a(o){return typeof o=="string"?o.charCodeAt(0)===65279:o[0]===239&&o[1]===187&&o[2]===191}function e(o){return a(o)?typeof o=="string"?o.slice(1):o.slice(3):o}class n{path;physicalPath;body;rawBody;bom;constructor(t,l,{physicalPath:p}={}){this.path=t,this.physicalPath=p??t,this.bom=a(l),this.body=e(l),this.rawBody=l}}return sp={VFile:n},sp}var ap,Hb;function tP(){if(Hb)return ap;Hb=1;class a{parseSync(n,o){const{language:t,languageOptions:l}=o,p=t.parse(n,{languageOptions:l});if(typeof p.then=="function")throw new Error("Unsupported: Language parser returned a promise.");return p.ok?{ok:!0,sourceCode:t.createSourceCode(n,p,{languageOptions:l})}:{ok:!1,errors:p.errors.map(u=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${u.message}`,line:u.line,column:u.column}))}}}return ap={ParserService:a},ap}var ip={},Kb;function rP(){if(Kb)return ip;Kb=1;class a{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:n,filename:o,physicalFilename:t,sourceCode:l,parserOptions:p,parserPath:u,languageOptions:r,settings:m}){this.cwd=n,this.filename=o,this.physicalFilename=t,this.sourceCode=l,this.parserOptions=p,this.parserPath=u,this.languageOptions=r,this.settings=m,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(n){return Object.freeze(Object.assign(Object.create(this),n))}}return ip.FileContext=a,ip}var op,Xb;function nP(){if(Xb)return op;Xb=1;const a=pn,{VFile:e}=zb();class n{preprocessSync(t,l){const{processor:p}=l;let u;try{u=p.preprocess(t.rawBody,t.path)}catch(r){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${r.message.replace(/^line \d+:/iu,"").trim()}`,line:r.lineNumber,column:r.column,nodeType:null}]}}if(typeof u.then=="function")throw new Error("Unsupported: Preprocessor returned a promise.");return{ok:!0,files:u.map((r,m)=>{if(typeof r=="string")return r;const i=a.join(t.path,`${m}_${r.filename}`);return new e(i,r.text,{physicalPath:t.physicalPath})})}}postprocessSync(t,l,p){const{processor:u}=p;return u.postprocess(l,t.path)}}return op={ProcessorService:n},op}var lp,Jb;function sP(){if(Jb)return lp;Jb=1;function a(e,n){if(e===n)return!1;if(typeof e!=typeof n||Array.isArray(e)!==Array.isArray(n))return!0;if(Array.isArray(e))return e.length!==n.length||e.some((o,t)=>a(o,n[t]));if(typeof e=="object"){if(e===null||n===null)return!0;const o=Object.keys(e),t=Object.keys(n);return o.length!==t.length||o.some(l=>!Object.hasOwn(n,l)||a(e[l],n[l]))}return!0}return lp={containsDifferentProperty:a},lp}var up,Yb;function aP(){if(Yb)return up;Yb=1;class a{constructor({emitWarning:n=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=n}emitCircularFixesWarning(n){this.emitWarning(`Circular fixes detected while fixing ${n}. It is likely that you have conflicting rules in your configuration.`,"ESLintCircularFixesWarning")}emitEmptyConfigWarning(n){this.emitWarning(`Running ESLint with an empty config (from ${n}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,"ESLintEmptyConfigWarning")}emitESLintIgnoreWarning(){this.emitWarning('The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files',"ESLintIgnoreWarning")}emitESLintRCWarning(){this.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.","ESLintRCWarning")}emitInactiveFlagWarning(n,o){this.emitWarning(o,`ESLintInactiveFlag_${n}`)}emitPoorConcurrencyWarning(n){this.emitWarning(`You may ${n} to improve performance.`,"ESLintPoorConcurrencyWarning")}}return up={WarningService:a},up}function sn(a){return(sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function cp(a,e){return function(n){if(Array.isArray(n))return n}(a)||function(n,o){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var l,p,u,r,m=[],i=!0,c=!1;try{if(u=(t=t.call(n)).next,o!==0)for(;!(i=(l=u.call(t)).done)&&(m.push(l.value),m.length!==o);i=!0);}catch(h){c=!0,p=h}finally{try{if(!i&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw p}}return m}}(a,e)||Qb(a,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
127
127
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function iP(a){return function(e){if(Array.isArray(e))return fp(e)}(a)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(a)||Qb(a)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
128
128
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Qb(a,e){if(a){if(typeof a=="string")return fp(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fp(a,e):void 0}}function fp(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=a[n];return o}function Zb(a,e){return a(e={exports:{}},e.exports),e.exports}var Bn=Zb(function(a,e){(function n(o){var t,l,p,u,r,m;function i(x){var T,C,v={};for(T in x)x.hasOwnProperty(T)&&(C=x[T],v[T]=typeof C=="object"&&C!==null?i(C):C);return v}function c(x,T){this.parent=x,this.key=T}function h(x,T,C,v){this.node=x,this.path=T,this.wrap=C,this.ref=v}function s(){}function f(x){return x!=null&&typeof x=="object"&&typeof x.type=="string"}function g(x,T){return(x===t.ObjectExpression||x===t.ObjectPattern)&&T==="properties"}function d(x,T){for(var C=x.length-1;C>=0;--C)if(x[C].node===T)return!0;return!1}function E(x,T){return new s().traverse(x,T)}function S(x,T){var C;return C=function(v,A){var b,w,k,R;for(w=v.length,k=0;w;)A(v[R=k+(b=w>>>1)])?w=b:(k=R+1,w-=b+1);return k}(T,function(v){return v.range[0]>x.range[0]}),x.extendedRange=[x.range[0],x.range[1]],C!==T.length&&(x.extendedRange[1]=T[C].range[0]),(C-=1)>=0&&(x.extendedRange[0]=T[C].range[1]),x}return t={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},p={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},l={Break:u={},Skip:r={},Remove:m={}},c.prototype.replace=function(x){this.parent[this.key]=x},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},s.prototype.path=function(){var x,T,C,v,A;function b(w,k){if(Array.isArray(k))for(C=0,v=k.length;C<v;++C)w.push(k[C]);else w.push(k)}if(!this.__current.path)return null;for(A=[],x=2,T=this.__leavelist.length;x<T;++x)b(A,this.__leavelist[x].path);return b(A,this.__current.path),A},s.prototype.type=function(){return this.current().type||this.__current.wrap},s.prototype.parents=function(){var x,T,C;for(C=[],x=1,T=this.__leavelist.length;x<T;++x)C.push(this.__leavelist[x].node);return C},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(x,T){var C,v;return v=void 0,C=this.__current,this.__current=T,this.__state=null,x&&(v=x.call(this,T.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=C,v},s.prototype.notify=function(x){this.__state=x},s.prototype.skip=function(){this.notify(r)},s.prototype.break=function(){this.notify(u)},s.prototype.remove=function(){this.notify(m)},s.prototype.__initialize=function(x,T){this.visitor=T,this.root=x,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,T.fallback==="iteration"?this.__fallback=Object.keys:typeof T.fallback=="function"&&(this.__fallback=T.fallback),this.__keys=p,T.keys&&(this.__keys=Object.assign(Object.create(this.__keys),T.keys))},s.prototype.traverse=function(x,T){var C,v,A,b,w,k,R,F,L,P,O,q;for(this.__initialize(x,T),q={},C=this.__worklist,v=this.__leavelist,C.push(new h(x,null,null,null)),v.push(new h(null,null,null,null));C.length;)if((A=C.pop())!==q){if(A.node){if(k=this.__execute(T.enter,A),this.__state===u||k===u)return;if(C.push(q),v.push(A),this.__state===r||k===r)continue;if(w=(b=A.node).type||A.wrap,!(P=this.__keys[w])){if(!this.__fallback)throw new Error("Unknown node type "+w+".");P=this.__fallback(b)}for(F=P.length;(F-=1)>=0;)if(O=b[R=P[F]]){if(Array.isArray(O)){for(L=O.length;(L-=1)>=0;)if(O[L]&&!d(v,O[L])){if(g(w,P[F]))A=new h(O[L],[R,L],"Property",null);else{if(!f(O[L]))continue;A=new h(O[L],[R,L],null,null)}C.push(A)}}else if(f(O)){if(d(v,O))continue;C.push(new h(O,R,null,null))}}}}else if(A=v.pop(),k=this.__execute(T.leave,A),this.__state===u||k===u)return},s.prototype.replace=function(x,T){var C,v,A,b,w,k,R,F,L,P,O,q,N;function _(G){var B,z,H,ce;if(G.ref.remove()){for(z=G.ref.key,ce=G.ref.parent,B=C.length;B--;)if((H=C[B]).ref&&H.ref.parent===ce){if(H.ref.key<z)break;--H.ref.key}}}for(this.__initialize(x,T),O={},C=this.__worklist,v=this.__leavelist,k=new h(x,null,null,new c(q={root:x},"root")),C.push(k),v.push(k);C.length;)if((k=C.pop())!==O){if((w=this.__execute(T.enter,k))!==void 0&&w!==u&&w!==r&&w!==m&&(k.ref.replace(w),k.node=w),this.__state!==m&&w!==m||(_(k),k.node=null),this.__state===u||w===u)return q.root;if((A=k.node)&&(C.push(O),v.push(k),this.__state!==r&&w!==r)){if(b=A.type||k.wrap,!(L=this.__keys[b])){if(!this.__fallback)throw new Error("Unknown node type "+b+".");L=this.__fallback(A)}for(R=L.length;(R-=1)>=0;)if(P=A[N=L[R]])if(Array.isArray(P)){for(F=P.length;(F-=1)>=0;)if(P[F]){if(g(b,L[R]))k=new h(P[F],[N,F],"Property",new c(P,F));else{if(!f(P[F]))continue;k=new h(P[F],[N,F],null,new c(P,F))}C.push(k)}}else f(P)&&C.push(new h(P,N,null,new c(A,N)))}}else if(k=v.pop(),(w=this.__execute(T.leave,k))!==void 0&&w!==u&&w!==r&&w!==m&&k.ref.replace(w),this.__state!==m&&w!==m||_(k),this.__state===u||w===u)return q.root;return q.root},o.Syntax=t,o.traverse=E,o.replace=function(x,T){return new s().replace(x,T)},o.attachComments=function(x,T,C){var v,A,b,w,k=[];if(!x.range)throw new Error("attachComments needs range information");if(!C.length){if(T.length){for(b=0,A=T.length;b<A;b+=1)(v=i(T[b])).extendedRange=[0,x.range[0]],k.push(v);x.leadingComments=k}return x}for(b=0,A=T.length;b<A;b+=1)k.push(S(i(T[b]),C));return w=0,E(x,{enter:function(R){for(var F;w<k.length&&!((F=k[w]).extendedRange[1]>R.range[0]);)F.extendedRange[1]===R.range[0]?(R.leadingComments||(R.leadingComments=[]),R.leadingComments.push(F),k.splice(w,1)):w+=1;return w===k.length?l.Break:k[w].extendedRange[0]>R.range[1]?l.Skip:void 0}}),w=0,E(x,{leave:function(R){for(var F;w<k.length&&(F=k[w],!(R.range[1]<F.extendedRange[0]));)R.range[1]===F.extendedRange[0]?(R.trailingComments||(R.trailingComments=[]),R.trailingComments.push(F),k.splice(w,1)):w+=1;return w===k.length?l.Break:k[w].extendedRange[0]>R.range[1]?l.Skip:void 0}}),x},o.VisitorKeys=p,o.VisitorOption=l,o.Controller=s,o.cloneEnvironment=function(){return n({})},o})(e)}),oP=Zb(function(a){a.exports&&(a.exports=function(){function e(n,o,t,l){this.message=n,this.expected=o,this.found=t,this.location=l,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(n,o){function t(){this.constructor=n}t.prototype=o.prototype,n.prototype=new t}(e,Error),e.buildMessage=function(n,o){var t={literal:function(r){return'"'+p(r.text)+'"'},class:function(r){var m,i="";for(m=0;m<r.parts.length;m++)i+=r.parts[m]instanceof Array?u(r.parts[m][0])+"-"+u(r.parts[m][1]):u(r.parts[m]);return"["+(r.inverted?"^":"")+i+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function l(r){return r.charCodeAt(0).toString(16).toUpperCase()}function p(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(m){return"\\x0"+l(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+l(m)})}function u(r){return r.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(m){return"\\x0"+l(m)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(m){return"\\x"+l(m)})}return"Expected "+function(r){var m,i,c,h=new Array(r.length);for(m=0;m<r.length;m++)h[m]=(c=r[m],t[c.type](c));if(h.sort(),h.length>0){for(m=1,i=1;m<h.length;m++)h[m-1]!==h[m]&&(h[i]=h[m],i++);h.length=i}switch(h.length){case 1:return h[0];case 2:return h[0]+" or "+h[1];default:return h.slice(0,-1).join(", ")+", or "+h[h.length-1]}}(n)+" but "+function(r){return r?'"'+p(r)+'"':"end of input"}(o)+" found."},{SyntaxError:e,parse:function(n,o){o=o!==void 0?o:{};var t,l,p,u,r={},m={start:we},i=we,c=Xe(" ",!1),h=/^[^ [\],():#!=><~+.]/,s=ht([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),f=Xe(">",!1),g=Xe("~",!1),d=Xe("+",!1),E=Xe(",",!1),S=Xe("!",!1),x=Xe("*",!1),T=Xe("#",!1),C=Xe("[",!1),v=Xe("]",!1),A=/^[><!]/,b=ht([">","<","!"],!1,!1),w=Xe("=",!1),k=function(me){return(me||"")+"="},R=/^[><]/,F=ht([">","<"],!1,!1),L=Xe(".",!1),P=function(me,V,ne){return{type:"attribute",name:me,operator:V,value:ne}},O=Xe('"',!1),q=/^[^\\"]/,N=ht(["\\",'"'],!0,!1),_=Xe("\\",!1),G={type:"any"},B=function(me,V){return me+V},z=function(me){return{type:"literal",value:(V=me.join(""),V.replace(/\\(.)/g,function(ne,ue){switch(ue){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
129
|
-
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return ue}}))};var V},H=Xe("'",!1),ce=/^[^\\']/,re=ht(["\\","'"],!0,!1),Fe=/^[0-9]/,X=ht([["0","9"]],!1,!1),I=Xe("type(",!1),W=/^[^ )]/,oe=ht([" ",")"],!0,!1),ie=Xe(")",!1),se=/^[imsu]/,de=ht(["i","m","s","u"],!1,!1),be=Xe("/",!1),xe=/^[^\/]/,Te=ht(["/"],!0,!1),J=Xe(":not(",!1),Q=Xe(":matches(",!1),ke=Xe(":has(",!1),$=Xe(":first-child",!1),ae=Xe(":last-child",!1),Ie=Xe(":nth-child(",!1),Ne=Xe(":nth-last-child(",!1),Be=Xe(":",!1),j=0,Qe=[{line:1,column:1}],ut=0,rt=[],ze={};if("startRule"in o){if(!(o.startRule in m))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');i=m[o.startRule]}function Xe(me,V){return{type:"literal",text:me,ignoreCase:V}}function ht(me,V,ne){return{type:"class",parts:me,inverted:V,ignoreCase:ne}}function dt(me){var V,ne=Qe[me];if(ne)return ne;for(V=me-1;!Qe[V];)V--;for(ne={line:(ne=Qe[V]).line,column:ne.column};V<me;)n.charCodeAt(V)===10?(ne.line++,ne.column=1):ne.column++,V++;return Qe[me]=ne,ne}function at(me,V){var ne=dt(me),ue=dt(V);return{start:{offset:me,line:ne.line,column:ne.column},end:{offset:V,line:ue.line,column:ue.column}}}function tt(me){j<ut||(j>ut&&(ut=j,rt=[]),rt.push(me))}function we(){var me,V,ne,ue,Ce=30*j+0,qe=ze[Ce];return qe?(j=qe.nextPos,qe.result):(me=j,(V=Ee())!==r&&(ne=Pe())!==r&&Ee()!==r?me=V=(ue=ne).length===1?ue[0]:{type:"matches",selectors:ue}:(j=me,me=r),me===r&&(me=j,(V=Ee())!==r&&(V=void 0),me=V),ze[Ce]={nextPos:j,result:me},me)}function Ee(){var me,V,ne=30*j+1,ue=ze[ne];if(ue)return j=ue.nextPos,ue.result;for(me=[],n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c));V!==r;)me.push(V),n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c));return ze[ne]={nextPos:j,result:me},me}function Se(){var me,V,ne,ue=30*j+2,Ce=ze[ue];if(Ce)return j=Ce.nextPos,Ce.result;if(V=[],h.test(n.charAt(j))?(ne=n.charAt(j),j++):(ne=r,tt(s)),ne!==r)for(;ne!==r;)V.push(ne),h.test(n.charAt(j))?(ne=n.charAt(j),j++):(ne=r,tt(s));else V=r;return V!==r&&(V=V.join("")),me=V,ze[ue]={nextPos:j,result:me},me}function ve(){var me,V,ne,ue=30*j+3,Ce=ze[ue];return Ce?(j=Ce.nextPos,Ce.result):(me=j,(V=Ee())!==r?(n.charCodeAt(j)===62?(ne=">",j++):(ne=r,tt(f)),ne!==r&&Ee()!==r?me=V="child":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,(V=Ee())!==r?(n.charCodeAt(j)===126?(ne="~",j++):(ne=r,tt(g)),ne!==r&&Ee()!==r?me=V="sibling":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,(V=Ee())!==r?(n.charCodeAt(j)===43?(ne="+",j++):(ne=r,tt(d)),ne!==r&&Ee()!==r?me=V="adjacent":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c)),V!==r&&(ne=Ee())!==r?me=V="descendant":(j=me,me=r)))),ze[ue]={nextPos:j,result:me},me)}function Pe(){var me,V,ne,ue,Ce,qe,_e,Ke,Je=30*j+4,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(me=j,(V=ee())!==r){for(ne=[],ue=j,(Ce=Ee())!==r?(n.charCodeAt(j)===44?(qe=",",j++):(qe=r,tt(E)),qe!==r&&(_e=Ee())!==r&&(Ke=ee())!==r?ue=Ce=[Ce,qe,_e,Ke]:(j=ue,ue=r)):(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,(Ce=Ee())!==r?(n.charCodeAt(j)===44?(qe=",",j++):(qe=r,tt(E)),qe!==r&&(_e=Ee())!==r&&(Ke=ee())!==r?ue=Ce=[Ce,qe,_e,Ke]:(j=ue,ue=r)):(j=ue,ue=r);ne!==r?me=V=[V].concat(ne.map(function(le){return le[3]})):(j=me,me=r)}else j=me,me=r;return ze[Je]={nextPos:j,result:me},me}function ee(){var me,V,ne,ue,Ce,qe,_e,Ke=30*j+5,Je=ze[Ke];if(Je)return j=Je.nextPos,Je.result;if(me=j,(V=te())!==r){for(ne=[],ue=j,(Ce=ve())!==r&&(qe=te())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,(Ce=ve())!==r&&(qe=te())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ne!==r?(_e=V,me=V=ne.reduce(function(pe,le){return{type:le[0],left:pe,right:le[1]}},_e)):(j=me,me=r)}else j=me,me=r;return ze[Ke]={nextPos:j,result:me},me}function te(){var me,V,ne,ue,Ce,qe,_e,Ke=30*j+6,Je=ze[Ke];if(Je)return j=Je.nextPos,Je.result;if(me=j,n.charCodeAt(j)===33?(V="!",j++):(V=r,tt(S)),V===r&&(V=null),V!==r){if(ne=[],(ue=Z())!==r)for(;ue!==r;)ne.push(ue),ue=Z();else ne=r;ne!==r?(Ce=V,_e=(qe=ne).length===1?qe[0]:{type:"compound",selectors:qe},Ce&&(_e.subject=!0),me=V=_e):(j=me,me=r)}else j=me,me=r;return ze[Ke]={nextPos:j,result:me},me}function Z(){var me,V=30*j+7,ne=ze[V];return ne?(j=ne.nextPos,ne.result):((me=function(){var ue,Ce,qe=30*j+8,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.charCodeAt(j)===42?(Ce="*",j++):(Ce=r,tt(x)),Ce!==r&&(Ce={type:"wildcard",value:Ce}),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e=30*j+9,Ke=ze[_e];return Ke?(j=Ke.nextPos,Ke.result):(ue=j,n.charCodeAt(j)===35?(Ce="#",j++):(Ce=r,tt(T)),Ce===r&&(Ce=null),Ce!==r&&(qe=Se())!==r?ue=Ce={type:"identifier",value:qe}:(j=ue,ue=r),ze[_e]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+10,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.charCodeAt(j)===91?(Ce="[",j++):(Ce=r,tt(C)),Ce!==r&&Ee()!==r&&(qe=function(){var pe,le,ye,Re,Oe=30*j+14,it=ze[Oe];return it?(j=it.nextPos,it.result):(pe=j,(le=fe())!==r&&Ee()!==r&&(ye=function(){var Ge,Ze,lt,Ye=30*j+12,st=ze[Ye];return st?(j=st.nextPos,st.result):(Ge=j,n.charCodeAt(j)===33?(Ze="!",j++):(Ze=r,tt(S)),Ze===r&&(Ze=null),Ze!==r?(n.charCodeAt(j)===61?(lt="=",j++):(lt=r,tt(w)),lt!==r?(Ze=k(Ze),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r),ze[Ye]={nextPos:j,result:Ge},Ge)}())!==r&&Ee()!==r?((Re=function(){var Ge,Ze,lt,Ye,st,mt=30*j+18,yt=ze[mt];if(yt)return j=yt.nextPos,yt.result;if(Ge=j,n.substr(j,5)==="type("?(Ze="type(",j+=5):(Ze=r,tt(I)),Ze!==r)if(Ee()!==r){if(lt=[],W.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(oe)),Ye!==r)for(;Ye!==r;)lt.push(Ye),W.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(oe));else lt=r;lt!==r&&(Ye=Ee())!==r?(n.charCodeAt(j)===41?(st=")",j++):(st=r,tt(ie)),st!==r?(Ze={type:"type",value:lt.join("")},Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;else j=Ge,Ge=r;return ze[mt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt,Ye,st,mt,yt=30*j+20,pt=ze[yt];if(pt)return j=pt.nextPos,pt.result;if(Ge=j,n.charCodeAt(j)===47?(Ze="/",j++):(Ze=r,tt(be)),Ze!==r){if(lt=[],xe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(Te)),Ye!==r)for(;Ye!==r;)lt.push(Ye),xe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(Te));else lt=r;lt!==r?(n.charCodeAt(j)===47?(Ye="/",j++):(Ye=r,tt(be)),Ye!==r?((st=function(){var vt,Ct,xt=30*j+19,Rt=ze[xt];if(Rt)return j=Rt.nextPos,Rt.result;if(vt=[],se.test(n.charAt(j))?(Ct=n.charAt(j),j++):(Ct=r,tt(de)),Ct!==r)for(;Ct!==r;)vt.push(Ct),se.test(n.charAt(j))?(Ct=n.charAt(j),j++):(Ct=r,tt(de));else vt=r;return ze[xt]={nextPos:j,result:vt},vt}())===r&&(st=null),st!==r?(mt=st,Ze={type:"regexp",value:new RegExp(lt.join(""),mt?mt.join(""):"")},Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[yt]={nextPos:j,result:Ge},Ge}()),Re!==r?(le=P(le,ye,Re),pe=le):(j=pe,pe=r)):(j=pe,pe=r),pe===r&&(pe=j,(le=fe())!==r&&Ee()!==r&&(ye=function(){var Ge,Ze,lt,Ye=30*j+11,st=ze[Ye];return st?(j=st.nextPos,st.result):(Ge=j,A.test(n.charAt(j))?(Ze=n.charAt(j),j++):(Ze=r,tt(b)),Ze===r&&(Ze=null),Ze!==r?(n.charCodeAt(j)===61?(lt="=",j++):(lt=r,tt(w)),lt!==r?(Ze=k(Ze),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r),Ge===r&&(R.test(n.charAt(j))?(Ge=n.charAt(j),j++):(Ge=r,tt(F))),ze[Ye]={nextPos:j,result:Ge},Ge)}())!==r&&Ee()!==r?((Re=function(){var Ge,Ze,lt,Ye,st,mt,yt=30*j+15,pt=ze[yt];if(pt)return j=pt.nextPos,pt.result;if(Ge=j,n.charCodeAt(j)===34?(Ze='"',j++):(Ze=r,tt(O)),Ze!==r){for(lt=[],q.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(N)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));Ye!==r;)lt.push(Ye),q.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(N)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));lt!==r?(n.charCodeAt(j)===34?(Ye='"',j++):(Ye=r,tt(O)),Ye!==r?(Ze=z(lt),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;if(Ge===r)if(Ge=j,n.charCodeAt(j)===39?(Ze="'",j++):(Ze=r,tt(H)),Ze!==r){for(lt=[],ce.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(re)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));Ye!==r;)lt.push(Ye),ce.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(re)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));lt!==r?(n.charCodeAt(j)===39?(Ye="'",j++):(Ye=r,tt(H)),Ye!==r?(Ze=z(lt),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[yt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt,Ye,st,mt,yt,pt=30*j+16,vt=ze[pt];if(vt)return j=vt.nextPos,vt.result;for(Ge=j,Ze=j,lt=[],Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));Ye!==r;)lt.push(Ye),Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));if(lt!==r?(n.charCodeAt(j)===46?(Ye=".",j++):(Ye=r,tt(L)),Ye!==r?Ze=lt=[lt,Ye]:(j=Ze,Ze=r)):(j=Ze,Ze=r),Ze===r&&(Ze=null),Ze!==r){if(lt=[],Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X)),Ye!==r)for(;Ye!==r;)lt.push(Ye),Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));else lt=r;lt!==r?(mt=lt,yt=(st=Ze)?[].concat.apply([],st).join(""):"",Ze={type:"literal",value:parseFloat(yt+mt.join(""))},Ge=Ze):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[pt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt=30*j+17,Ye=ze[lt];return Ye?(j=Ye.nextPos,Ye.result):((Ze=Se())!==r&&(Ze={type:"literal",value:Ze}),Ge=Ze,ze[lt]={nextPos:j,result:Ge},Ge)}()),Re!==r?(le=P(le,ye,Re),pe=le):(j=pe,pe=r)):(j=pe,pe=r),pe===r&&(pe=j,(le=fe())!==r&&(le={type:"attribute",name:le}),pe=le)),ze[Oe]={nextPos:j,result:pe},pe)}())!==r&&Ee()!==r?(n.charCodeAt(j)===93?(_e="]",j++):(_e=r,tt(v)),_e!==r?ue=Ce=qe:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je,pe,le,ye=30*j+21,Re=ze[ye];if(Re)return j=Re.nextPos,Re.result;if(ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r)if((qe=Se())!==r){for(_e=[],Ke=j,n.charCodeAt(j)===46?(Je=".",j++):(Je=r,tt(L)),Je!==r&&(pe=Se())!==r?Ke=Je=[Je,pe]:(j=Ke,Ke=r);Ke!==r;)_e.push(Ke),Ke=j,n.charCodeAt(j)===46?(Je=".",j++):(Je=r,tt(L)),Je!==r&&(pe=Se())!==r?Ke=Je=[Je,pe]:(j=Ke,Ke=r);_e!==r?(le=qe,Ce={type:"field",name:_e.reduce(function(Oe,it){return Oe+it[0]+it[1]},le)},ue=Ce):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[ye]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+22,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,5)===":not("?(Ce=":not(",j+=5):(Ce=r,tt(J)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"not",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+23,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,9)===":matches("?(Ce=":matches(",j+=9):(Ce=r,tt(Q)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"matches",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+24,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,5)===":has("?(Ce=":has(",j+=5):(Ce=r,tt(ke)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"has",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe=30*j+25,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.substr(j,12)===":first-child"?(Ce=":first-child",j+=12):(Ce=r,tt($)),Ce!==r&&(Ce=De(1)),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe=30*j+26,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.substr(j,11)===":last-child"?(Ce=":last-child",j+=11):(Ce=r,tt(ae)),Ce!==r&&(Ce=Le(1)),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je=30*j+27,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(ue=j,n.substr(j,11)===":nth-child("?(Ce=":nth-child(",j+=11):(Ce=r,tt(Ie)),Ce!==r)if(Ee()!==r){if(qe=[],Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X)),_e!==r)for(;_e!==r;)qe.push(_e),Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X));else qe=r;qe!==r&&(_e=Ee())!==r?(n.charCodeAt(j)===41?(Ke=")",j++):(Ke=r,tt(ie)),Ke!==r?(Ce=De(parseInt(qe.join(""),10)),ue=Ce):(j=ue,ue=r)):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[Je]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je=30*j+28,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(ue=j,n.substr(j,16)===":nth-last-child("?(Ce=":nth-last-child(",j+=16):(Ce=r,tt(Ne)),Ce!==r)if(Ee()!==r){if(qe=[],Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X)),_e!==r)for(;_e!==r;)qe.push(_e),Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X));else qe=r;qe!==r&&(_e=Ee())!==r?(n.charCodeAt(j)===41?(Ke=")",j++):(Ke=r,tt(ie)),Ke!==r?(Ce=Le(parseInt(qe.join(""),10)),ue=Ce):(j=ue,ue=r)):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[Je]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e=30*j+29,Ke=ze[_e];return Ke?(j=Ke.nextPos,Ke.result):(ue=j,n.charCodeAt(j)===58?(Ce=":",j++):(Ce=r,tt(Be)),Ce!==r&&(qe=Se())!==r?ue=Ce={type:"class",name:qe}:(j=ue,ue=r),ze[_e]={nextPos:j,result:ue},ue)}()),ze[V]={nextPos:j,result:me},me)}function fe(){var me,V,ne,ue,Ce,qe,_e,Ke,Je=30*j+13,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(me=j,(V=Se())!==r){for(ne=[],ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r&&(qe=Se())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r&&(qe=Se())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ne!==r?(_e=V,Ke=ne,me=V=[].concat.apply([_e],Ke).join("")):(j=me,me=r)}else j=me,me=r;return ze[Je]={nextPos:j,result:me},me}function De(me){return{type:"nth-child",index:{type:"literal",value:me}}}function Le(me){return{type:"nth-last-child",index:{type:"literal",value:me}}}if((t=i())!==r&&j===n.length)return t;throw t!==r&&j<n.length&&tt({type:"end"}),l=rt,p=ut<n.length?n.charAt(ut):null,u=ut<n.length?at(ut,ut+1):at(ut,ut),new e(e.buildMessage(l,p),l,p,u)}}}())});function tr(a,e){for(var n=0;n<e.length;++n){if(a==null)return a;a=a[e[n]]}return a}var pp=typeof WeakMap=="function"?new WeakMap:null;function Vt(a){if(a==null)return function(){return!0};if(pp!=null){var e=pp.get(a);return e!=null||(e=e0(a),pp.set(a,e)),e}return e0(a)}function e0(a){switch(a.type){case"wildcard":return function(){return!0};case"identifier":var e=a.value.toLowerCase();return function(v,A,b){var w=b&&b.nodeTypeKey||"type";return e===v[w].toLowerCase()};case"field":var n=a.name.split(".");return function(v,A){return function b(w,k,R,F){for(var L=k,P=F;P<R.length;++P){if(L==null)return!1;var O=L[R[P]];if(Array.isArray(O)){for(var q=0;q<O.length;++q)if(b(w,O[q],R,P+1))return!0;return!1}L=O}return w===L}(v,A[n.length-1],n,0)};case"matches":var o=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<o.length;++w)if(o[w](v,A,b))return!0;return!1};case"compound":var t=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<t.length;++w)if(!t[w](v,A,b))return!1;return!0};case"not":var l=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<l.length;++w)if(l[w](v,A,b))return!1;return!0};case"has":var p=a.selectors.map(Vt);return function(v,A,b){var w=!1,k=[];return Bn.traverse(v,{enter:function(R,F){F!=null&&k.unshift(F);for(var L=0;L<p.length;++L)if(p[L](R,k,b))return w=!0,void this.break()},leave:function(){k.shift()},keys:b&&b.visitorKeys,fallback:b&&b.fallback||"iteration"}),w};case"child":var u=Vt(a.left),r=Vt(a.right);return function(v,A,b){return!!(A.length>0&&r(v,A,b))&&u(A[0],A.slice(1),b)};case"descendant":var m=Vt(a.left),i=Vt(a.right);return function(v,A,b){if(i(v,A,b)){for(var w=0,k=A.length;w<k;++w)if(m(A[w],A.slice(w+1),b))return!0}return!1};case"attribute":var c=a.name.split(".");switch(a.operator){case void 0:return function(v){return tr(v,c)!=null};case"=":switch(a.value.type){case"regexp":return function(v){var A=tr(v,c);return typeof A=="string"&&a.value.value.test(A)};case"literal":var h="".concat(a.value.value);return function(v){return h==="".concat(tr(v,c))};case"type":return function(v){return a.value.value===sn(tr(v,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"!=":switch(a.value.type){case"regexp":return function(v){return!a.value.value.test(tr(v,c))};case"literal":var s="".concat(a.value.value);return function(v){return s!=="".concat(tr(v,c))};case"type":return function(v){return a.value.value!==sn(tr(v,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"<=":return function(v){return tr(v,c)<=a.value.value};case"<":return function(v){return tr(v,c)<a.value.value};case">":return function(v){return tr(v,c)>a.value.value};case">=":return function(v){return tr(v,c)>=a.value.value}}throw new Error("Unknown operator: ".concat(a.operator));case"sibling":var f=Vt(a.left),g=Vt(a.right);return function(v,A,b){return g(v,A,b)&&t0(v,f,A,"LEFT_SIDE",b)||a.left.subject&&f(v,A,b)&&t0(v,g,A,"RIGHT_SIDE",b)};case"adjacent":var d=Vt(a.left),E=Vt(a.right);return function(v,A,b){return E(v,A,b)&&r0(v,d,A,"LEFT_SIDE",b)||a.right.subject&&d(v,A,b)&&r0(v,E,A,"RIGHT_SIDE",b)};case"nth-child":var S=a.index.value,x=Vt(a.right);return function(v,A,b){return x(v,A,b)&&n0(v,A,S,b)};case"nth-last-child":var T=-a.index.value,C=Vt(a.right);return function(v,A,b){return C(v,A,b)&&n0(v,A,T,b)};case"class":return function(v,A,b){if(b&&b.matchClass)return b.matchClass(a.name,v,A);if(b&&b.nodeTypeKey)return!1;switch(a.name.toLowerCase()){case"statement":if(v.type.slice(-9)==="Statement")return!0;case"declaration":return v.type.slice(-11)==="Declaration";case"pattern":if(v.type.slice(-7)==="Pattern")return!0;case"expression":return v.type.slice(-10)==="Expression"||v.type.slice(-7)==="Literal"||v.type==="Identifier"&&(A.length===0||A[0].type!=="MetaProperty")||v.type==="MetaProperty";case"function":return v.type==="FunctionDeclaration"||v.type==="FunctionExpression"||v.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(a.name))}}throw new Error("Unknown selector type: ".concat(a.type))}function mp(a,e){var n=e&&e.nodeTypeKey||"type",o=a[n];return e&&e.visitorKeys&&e.visitorKeys[o]?e.visitorKeys[o]:Bn.VisitorKeys[o]?Bn.VisitorKeys[o]:e&&typeof e.fallback=="function"?e.fallback(a):Object.keys(a).filter(function(t){return t!==n})}function hp(a,e){var n=e&&e.nodeTypeKey||"type";return a!==null&&sn(a)==="object"&&typeof a[n]=="string"}function t0(a,e,n,o,t){var l=cp(n,1)[0];if(!l)return!1;for(var p=mp(l,t),u=0;u<p.length;++u){var r=l[p[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;var i=void 0,c=void 0;o==="LEFT_SIDE"?(i=0,c=m):(i=m+1,c=r.length);for(var h=i;h<c;++h)if(hp(r[h],t)&&e(r[h],n,t))return!0}}return!1}function r0(a,e,n,o,t){var l=cp(n,1)[0];if(!l)return!1;for(var p=mp(l,t),u=0;u<p.length;++u){var r=l[p[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;if(o==="LEFT_SIDE"&&m>0&&hp(r[m-1],t)&&e(r[m-1],n,t)||o==="RIGHT_SIDE"&&m<r.length-1&&hp(r[m+1],t)&&e(r[m+1],n,t))return!0}}return!1}function n0(a,e,n,o){if(n===0)return!1;var t=cp(e,1)[0];if(!t)return!1;for(var l=mp(t,o),p=0;p<l.length;++p){var u=t[l[p]];if(Array.isArray(u)){var r=n<0?u.length+n:n-1;if(r>=0&&r<u.length&&u[r]===a)return!0}}return!1}function s0(a,e,n,o){if(e){var t=[],l=Vt(e),p=function u(r,m){if(r==null||sn(r)!="object")return[];m==null&&(m=r);for(var i=r.subject?[m]:[],c=Object.keys(r),h=0;h<c.length;++h){var s=c[h],f=r[s];i.push.apply(i,iP(u(f,s==="left"?f:m)))}return i}(e).map(Vt);Bn.traverse(a,{enter:function(u,r){if(r!=null&&t.unshift(r),l(u,t,o))if(p.length)for(var m=0,i=p.length;m<i;++m){p[m](u,t,o)&&n(u,r,t);for(var c=0,h=t.length;c<h;++c){var s=t.slice(c+1);p[m](t[c],s,o)&&n(t[c],r,s)}}else n(u,r,t)},leave:function(){t.shift()},keys:o&&o.visitorKeys,fallback:o&&o.fallback||"iteration"})}}function a0(a,e,n){var o=[];return s0(a,e,function(t){o.push(t)},n),o}function i0(a){return oP.parse(a)}function Pr(a,e,n){return a0(a,i0(e),n)}Pr.parse=i0,Pr.match=a0,Pr.traverse=s0,Pr.matches=function(a,e,n,o){return!e||!!a&&(n||(n=[]),Vt(e)(a,n,o))},Pr.query=Pr;var dp,o0;function lP(){if(o0)return dp;o0=1;const a=Pr;class e{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(c,h,s,f,g,d){this.source=c,this.isExit=h,this.root=s,this.nodeTypes=f,this.attributeCount=g,this.identifierCount=d}compare(c){return this.attributeCount-c.attributeCount||this.identifierCount-c.identifierCount||(this.source<=c.source?-1:1)}}const n=new Map;function o(...i){return[...new Set(i.flat())]}function t(...i){if(i.length===0)return[];let c=[...new Set(i[0])];for(const h of i.slice(1))c=c.filter(s=>h.includes(s));return c}function l(i){let c=0,h=0;function s(g){switch(g.type){case"identifier":return h++,[g.value];case"not":return g.selectors.map(s),null;case"matches":{const d=g.selectors.map(s);return d.every(Boolean)?o(...d):null}case"compound":{const d=g.selectors.map(s).filter(E=>E);return d.length?t(...d):null}case"attribute":case"field":case"nth-child":case"nth-last-child":return c++,null;case"child":case"descendant":case"sibling":case"adjacent":return s(g.left),s(g.right);case"class":return g.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}return{nodeTypes:s(i),attributeCount:c,identifierCount:h}}function p(i){return i==="*"?{type:"wildcard",value:"*"}:/^[a-z]+$/iu.test(i)?{type:"identifier",value:i}:null}function u(i){try{return a.parse(i)}catch(c){throw c.location&&c.location.start&&typeof c.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${i}" at position ${c.location.start.offset}: ${c.message}`):c}}function r(i){if(n.has(i))return n.get(i);const c=i.replace(/:exit$/u,""),h=p(c)??u(c),{nodeTypes:s,attributeCount:f,identifierCount:g}=l(h),d=new e(i,i.endsWith(":exit"),h,s,f,g);return n.set(i,d),d}function m(i,c,h,s){return a.matches(i,c,h,s)}return dp={parse:r,matches:m,ESQueryParsedSelector:e},dp}var gp,l0;function uP(){if(l0)return gp;l0=1;const{parse:a,matches:e}=lP(),n=Wr(),o=1,t=2;function l(r,m){return r.compare(m)}class p{constructor(m,i){this.visitor=m,this.esqueryOptions=i,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],m.forEachName(c=>{const h=a(c);if(h.nodeTypes){const f=h.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;h.nodeTypes.forEach(g=>{f.has(g)||f.set(g,[]),f.get(g).push(h)});return}(h.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(h)}),this.anyTypeEnterSelectors.sort(l),this.anyTypeExitSelectors.sort(l),this.enterSelectorsByNodeType.forEach(c=>c.sort(l)),this.exitSelectorsByNodeType.forEach(c=>c.sort(l))}matches(m,i,c){return e(m,c.root,i,this.esqueryOptions)}calculateSelectors(m,i,c){const h=this.esqueryOptions?.nodeTypeKey||"type",s=[],f=(c?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(m[h])||[],g=c?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let d=0,E=0;for(;d<f.length||E<g.length;){const S=d<f.length,x=E<g.length,T=g[E],C=f[d],v=x&&S&&T.compare(C)<0;!S||v?(E++,this.matches(m,i,T)&&s.push(T.source)):(d++,this.matches(m,i,C)&&s.push(C.source))}return s}}class u{#e;static instances=new WeakMap;constructor(m){this.#e=m}static getInstance(m){return this.instances.has(m)||this.instances.set(m,new this(m)),this.instances.get(m)}traverseSync(m,i,{steps:c}={}){const h=new p(i,{visitorKeys:m.visitorKeys??this.#e.visitorKeys,fallback:n.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),s=[];for(const f of c??m.traverse())switch(f.kind){case o:{try{f.phase===1?(h.calculateSelectors(f.target,s,!1).forEach(g=>{i.callSync(g,f.target)}),s.unshift(f.target)):(s.shift(),h.calculateSelectors(f.target,s,!0).forEach(g=>{i.callSync(g,f.target)}))}catch(g){throw g.currentNode=f.target,g}break}case t:{i.callSync(f.target,...f.args);break}default:throw new Error(`Invalid traversal step found: "${f.kind}".`)}}}return gp={SourceCodeTraverser:u},gp}var yp,u0;function cP(){if(u0)return yp;u0=1;function a(n,o){return{range:[n,n],text:o}}class e{#e;constructor({sourceCode:o}){this.#e=o}insertTextAfter(o,t){const l=this.#e.getRange(o);return this.insertTextAfterRange(l,t)}insertTextAfterRange(o,t){return a(o[1],t)}insertTextBefore(o,t){const l=this.#e.getRange(o);return this.insertTextBeforeRange(l,t)}insertTextBeforeRange(o,t){return a(o[0],t)}replaceText(o,t){const l=this.#e.getRange(o);return this.replaceTextRange(l,t)}replaceTextRange(o,t){return{range:o,text:t}}remove(o){const t=this.#e.getRange(o);return this.removeRange(t)}removeRange(o){return{range:o,text:""}}}return yp={RuleFixer:e},yp}var vp,c0;function fP(){if(c0)return vp;c0=1;function a(){return/\{\{([^{}]+?)\}\}/gu}function e(n,o){if(!o)return n;const t=a();return n.replace(t,(l,p)=>{const u=p.trim();return u in o?o[u]:l})}return vp={getPlaceholderMatcher:a,interpolate:e},vp}var Ep,f0;function pP(){if(f0)return Ep;f0=1;const a=Pn(),{RuleFixer:e}=cP(),{interpolate:n}=fP(),o=Md,t={start:{line:1,column:0},end:{line:1,column:1}};function l({line:C,column:v,endLine:A,endColumn:b},w){const k=w.columnStart===1?0:1,R=w.lineStart===1?0:1,F=A===void 0?A:A+R,L=b===void 0?b:b+k;return{line:C+R,column:v+k,endLine:F,endColumn:L}}function p(C){return Object.hasOwn(o.rules,C)?`Rule '${C}' was removed and replaced by: ${o.rules[C].join(", ")}`:`Definition for rule '${C}' was not found.`}function u(C,v,A){const{ruleId:b=null,loc:w=t,message:k=p(C.ruleId)}=C;return{ruleId:b,message:k,...l({line:w.start.line,column:w.start.column,endLine:w.end.line,endColumn:w.end.column},A),severity:v,nodeType:null}}function r(...C){return C.length===1?Object.assign({},C[0]):typeof C[1]=="string"?{node:C[0],message:C[1],data:C[2],fix:C[3]}:{node:C[0],loc:C[1],message:C[2],data:C[3],fix:C[4]}}function m(C){C.node?a(typeof C.node=="object","Node must be an object"):a(C.loc,"Node must be provided when reporting error if location is not provided")}function i(C){return C.loc.start?C.loc:{start:C.loc,end:null}}function c(C){return C?{range:[C.range[0],C.range[1]],text:C.text}:null}function h(C){C&&a(C.range&&typeof C.range[0]=="number"&&typeof C.range[1]=="number",`Fix has invalid range: ${JSON.stringify(C,null,2)}`)}function s(C,v){return C.range[0]-v.range[0]||C.range[1]-v.range[1]}function f(C,v){for(const F of C)h(F);if(C.length===0)return null;if(C.length===1)return c(C[0]);C.sort(s);const A=v.text,b=C[0].range[0],w=C.at(-1).range[1];let k="",R=Number.MIN_SAFE_INTEGER;for(const F of C)a(F.range[0]>=R,"Fix objects must not be overlapped in a report."),F.range[0]>=0&&(k+=A.slice(Math.max(0,b,R),F.range[0])),k+=F.text,R=F.range[1];return k+=A.slice(Math.max(0,b,R),w),{range:[b,w],text:k}}function g(C,v){if(typeof C.fix!="function")return null;const A=new e({sourceCode:v}),b=C.fix(A);return b&&Symbol.iterator in b?f(Array.from(b),v):(h(b),c(b))}function d(C,v,A){return!C.suggest||!Array.isArray(C.suggest)?[]:C.suggest.map(b=>{const w=b.desc||A[b.messageId];return{...b,desc:n(w,b.data),fix:g(b,v)}}).filter(({fix:b})=>b)}function E(C){const{language:v}=C,A=v.columnStart===1?0:1,b=v.lineStart===1?0:1,w={ruleId:C.ruleId,severity:C.severity,message:C.message,line:C.loc.start.line+b,column:C.loc.start.column+A,nodeType:C.node&&C.node.type||null};return C.messageId&&(w.messageId=C.messageId),C.loc.end&&(w.endLine=C.loc.end.line+b,w.endColumn=C.loc.end.column+A),C.fix&&(w.fix=C.fix),C.suggestions&&C.suggestions.length>0&&(w.suggestions=C.suggestions),w}function S(C,v){C&&Array.isArray(C)&&C.forEach(A=>{if(A.messageId){const{messageId:b}=A;if(!v)throw new TypeError(`context.report() called with a suggest option with a messageId '${b}', but no messages were present in the rule metadata.`);if(!v[b])throw new TypeError(`context.report() called with a suggest option with a messageId '${b}' which is not present in the 'messages' config: ${JSON.stringify(v,null,2)}`);if(A.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!A.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof A.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${A}`)})}function x(C,v){if(C.messageId){if(!v)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const A=C.messageId;if(C.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!v||!Object.hasOwn(v,A))throw new TypeError(`context.report() called with a messageId of '${A}' which is not present in the 'messages' config: ${JSON.stringify(v,null,2)}`);return v[A]}if(C.message)return C.message;throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}class T{messages=[];#e;#t;#r;#n;constructor({ruleMapper:v,sourceCode:A,language:b,disableFixes:w=!1}){this.#e=v,this.#t=A,this.#r=b,this.#n=w}addRuleMessage(v,A,...b){const w=r(...b),R=this.#e(v)?.meta?.messages;m(w);const F=x(w,R);return S(w.suggest,R),this.messages.push(E({ruleId:v,severity:A,node:w.node,message:n(F,w.data),messageId:w.messageId,loc:w.loc?i(w):this.#t.getLoc(w.node),fix:this.#n?null:g(w,this.#t),suggestions:this.#n?[]:d(w,this.#t,R),language:this.#r})),this.messages.at(-1)}addError(v){const A=u(v,2,this.#r);return this.messages.push(A),A}addFatal(v){const A=u(v,2,this.#r);return A.fatal=!0,this.messages.push(A),A}addWarning(v){const A=u(v,1,this.#r);return this.messages.push(A),A}}return Ep={FileReport:T,updateLocationInformation:l},Ep}var Sp,p0;function mP(){if(p0)return Sp;p0=1;const a=pn,e=qn(),n=Wr(),o=hn(),t=ex(),l=rx,{Legacy:{ConfigOps:p,ConfigValidator:u,environments:r}}=x1(),m=ra(),{SourceCode:i}=bd(),c=hw(),{ConfigCommentParser:h}=vd(),s=HI(),f=KI(),{SourceCodeVisitor:g}=XI(),d=JI(),{FlatConfigArray:E}=ZI(),{startTime:S,endTime:x}=Nb(),{assertIsRuleSeverity:T}=Ka(),{normalizeSeverityToString:C,normalizeSeverityToNumber:v}=Td(),{deepMergeArrays:A}=wd(),b=qb(),{activeFlags:w,inactiveFlags:k,getInactivityReasonMessage:R}=eP(),F=kr()("eslint:linter"),L=10,P="espree",O=5,q=new h,N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:_}=ci(),{VFile:G}=zb(),{ParserService:B}=tP(),{FileContext:z}=rP(),{ProcessorService:H}=nP(),{containsDifferentProperty:ce}=sP(),{Config:re}=ri(),{WarningService:Fe}=aP(),{SourceCodeTraverser:X}=uP(),{FileReport:I,updateLocationInformation:W}=pP();function oe(ve){return ve===o||ve[N]===o}function ie(ve,Pe,{exportedVariables:ee,enabledGlobals:te}){for(const Z of new Set([...Object.keys(Pe),...Object.keys(te)])){const fe=Pe[Z]===void 0?void 0:p.normalizeConfigGlobal(Pe[Z]),Le=te[Z]&&te[Z].value||fe,me=te[Z]&&te[Z].comments;if(Le==="off")continue;let V=ve.set.get(Z);V||(V=new e.Variable(Z,ve),ve.variables.push(V),ve.set.set(Z,V)),V.eslintImplicitGlobalSetting=fe,V.eslintExplicitGlobal=me!==void 0,V.eslintExplicitGlobalComments=me,V.writeable=Le==="writable"}Object.keys(ee).forEach(Z=>{const fe=ve.set.get(Z);fe&&(fe.eslintUsed=!0,fe.eslintExported=!0)}),ve.through=ve.through.filter(Z=>{const fe=Z.identifier.name,De=ve.set.get(fe);return De?(Z.resolved=De,De.references.push(Z),!1):!0})}function se(ve){return Array.isArray(ve)?ve:[ve]}function de(ve,Pe,ee,te,Z,fe,De){const Le=ve.rules?.[te],me=Le?se(Le):["off"],V=C(me[0]),ne=C(Z[0]);if(!(V===ne))return;const Ce=Le?`is already configured to '${V}'`:"is not enabled so can't be turned off";let qe;if(me.length===1&&Z.length===1||V==="off"?qe=`Unused inline config ('${te}' ${Ce}).`:ce(Z.slice(1),me.slice(1))||(qe=fe.length===1?`Unused inline config ('${te}' ${Ce}).`:`Unused inline config ('${te}' ${Ce} with the same options).`),qe){const _e=v(De),Ke={message:qe,loc:Pe};_e===1?ee.addWarning(Ke):_e===2&&ee.addError(Ke)}}function be({type:ve,value:Pe,justification:ee,node:te},Z,fe,De,Le){const me=Object.keys(q.parseListConfig(Pe)),V=me.length?me:[null],ne=[],ue={node:te,value:Pe,ruleIds:me};for(const Ce of V){const qe=De.getLoc(te);if(Ce===null||Z(Ce))if(ve==="disable-next-line"){const{line:_e,column:Ke}=W(qe.end,fe);ne.push({parentDirective:ue,type:ve,line:_e,column:Ke,ruleId:Ce,justification:ee})}else{const{line:_e,column:Ke}=W(qe.start,fe);ne.push({parentDirective:ue,type:ve,line:_e,column:Ke,ruleId:Ce,justification:ee})}else Le.addError({ruleId:Ce,loc:qe})}return ne}function xe(ve,Pe,ee,te,Z){const fe={},De=Object.create(null),Le={},me=[],V=new u({builtInRules:s});return ve.getInlineConfigNodes().filter(ne=>ne.type!=="Shebang").forEach(ne=>{const ue=q.parseDirective(ne.value);if(!ue)return;const{label:Ce,value:qe,justification:_e}=ue,Ke=/^eslint-disable-(next-)?line$/u.test(Ce);if(ne.type==="Line"&&!Ke)return;const Je=ve.getLoc(ne);if(ee){const pe=ne.type==="Block"?`/*${Ce}*/`:`//${Ce}`;Z.addWarning({ruleId:null,message:`'${pe}' has no effect because you have 'noInlineConfig' setting in ${ee}.`,loc:Je});return}if(Ce==="eslint-disable-line"&&Je.start.line!==Je.end.line){const pe=`${Ce} comment should not span multiple lines.`;Z.addError({message:pe,loc:Je});return}switch(Ce){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const pe=Ce.slice(7),le=be({type:pe,value:qe,justification:_e,node:ne},Pe,b,ve,Z);me.push(...le);break}case"exported":Object.assign(Le,q.parseListConfig(qe));break;case"globals":case"global":for(const[pe,le]of Object.entries(q.parseStringConfig(qe))){let ye;try{ye=p.normalizeConfigGlobal(le)}catch(Re){Z.addError({loc:Je,message:Re.message});continue}De[pe]?(De[pe].comments.push(ne),De[pe].value=ye):De[pe]={comments:[ne],value:ye}}break;case"eslint":{const pe=q.parseJSONLikeConfig(qe);pe.ok?Object.keys(pe.config).forEach(le=>{const ye=Pe(le),Re=pe.config[le];if(!ye){Z.addError({ruleId:le,loc:Je});return}if(Object.hasOwn(fe,le)){Z.addError({message:`Rule "${le}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Je});return}let Oe=se(Re);Oe.length===1&&te.rules&&Object.hasOwn(te.rules,le)&&(Oe=[Oe[0],...se(te.rules[le]).slice(1)]);try{V.validateRuleOptions(ye,le,Oe)}catch(it){if(it.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw it;Z.addError({ruleId:le,message:it.message,loc:Je});return}fe[le]=Oe}):Z.addFatal({loc:Je,message:pe.error.message});break}}}),{configuredRules:fe,enabledGlobals:De,exportedVariables:Le,disableDirectives:me}}function Te(ve,Pe,ee,te){const Z=[];if(ve.getDisableDirectives){const{directives:fe,problems:De}=ve.getDisableDirectives();Array.isArray(De)&&De.forEach(Le=>te.addError(Le)),fe.forEach(Le=>{const me=be(Le,Pe,ee,ve,te);Z.push(...me)})}return Z}function J(ve,Pe){return oe(ve)&&Pe==="latest"?o.latestEcmaVersion:Pe>=2015?Pe-2009:Pe}function Q(ve){switch(ve){case 3:return 3;case 5:case void 0:return 5;default:if(typeof ve=="number")return ve>=2015?ve:ve+2009}return _}const ke=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function $(ve){let Pe,ee;for(ke.lastIndex=0;(Pe=ke.exec(ve))!==null;)Pe[0].endsWith("*/")&&(ee=Object.assign(ee||{},q.parseListConfig(q.parseDirective(Pe[0].slice(2,-2)).value)));return ee}function ae(ve){const Pe=ve.split(a.sep),ee=Pe.lastIndexOf("<text>");return ee===-1?ve:Pe.slice(ee).join(a.sep)}function Ie(ve,Pe){const ee=Pe.linterOptions||Pe,te=ee.noInlineConfig===!0,Z=ve.allowInlineConfig===!1,fe=Pe.configNameOfNoInlineConfig?` (${Pe.configNameOfNoInlineConfig})`:"";let De=ve.reportUnusedDisableDirectives;typeof De=="boolean"&&(De=De?"error":"off"),typeof De!="string"&&(typeof ee.reportUnusedDisableDirectives=="boolean"?De=ee.reportUnusedDisableDirectives?"warn":"off":De=ee.reportUnusedDisableDirectives===void 0?"off":C(ee.reportUnusedDisableDirectives));const Le=ee.reportUnusedInlineConfigs===void 0?"off":C(ee.reportUnusedInlineConfigs);let me=ve.ruleFilter;return typeof me!="function"&&(me=()=>!0),{filename:ae(ve.filename||"<input>"),allowInlineConfig:!Z,warnInlineConfig:te&&!Z?`your config${fe}`:null,reportUnusedDisableDirectives:De,reportUnusedInlineConfigs:Le,disableFixes:!!ve.disableFixes,stats:ve.stats,ruleFilter:me}}function Ne(ve,Pe,ee){const te=ee.filter(De=>De.parserOptions).reduce((De,Le)=>t(De,Le.parserOptions),{}),Z=t(te,Pe||{});return Z.sourceType==="module"&&(Z.ecmaFeatures=Object.assign({},Z.ecmaFeatures,{globalReturn:!1})),Z.ecmaVersion=J(ve,Z.ecmaVersion),Z}function Be({globals:ve,parser:Pe,parserOptions:ee}){const{ecmaVersion:te,sourceType:Z}=ee;return{globals:ve,ecmaVersion:Q(te),sourceType:Z,parser:Pe,parserOptions:ee}}function j(ve,Pe){return Object.assign(Object.create(null),...Pe.filter(ee=>ee.globals).map(ee=>ee.globals),ve)}function Qe(ve,Pe,ee){const{type:te,key:Z}=Pe;ee.times||(ee.times={passes:[{}]});const fe=ee.fixPasses;fe>ee.times.passes.length-1&&ee.times.passes.push({}),Z?(ee.times.passes[fe][te]??={},ee.times.passes[fe][te][Z]??={total:0},ee.times.passes[fe][te][Z].total+=ve):(ee.times.passes[fe][te]??={total:0},ee.times.passes[fe][te].total+=ve)}function ut(ve,Pe){return Array.isArray(ve)?A(Pe,ve.slice(1)):Pe??[]}function rt(ve,Pe,ee){const Z=Pe.parserOptions.ecmaFeatures||{},fe=Pe.ecmaVersion||O;return e.analyze(ve,{ignoreEval:!0,nodejsScope:Z.globalReturn,impliedStrict:Z.impliedStrict,ecmaVersion:typeof fe=="number"?fe:6,sourceType:Pe.sourceType||"script",childVisitorKeys:n.KEYS,fallback:m.getKeys})}function ze(ve,Pe){if(!ve||typeof ve!="object"||typeof ve.create!="function")throw new TypeError(`Error while loading rule '${Pe.id}': Rule must be an object with a \`create\` method`);try{return ve.create(Pe)}catch(ee){throw ee.message=`Error while loading rule '${Pe.id}': ${ee.message}`,ee}}function Xe(ve,Pe,ee,te,Z,fe,De,Le,me,V,ne,ue,Ce,qe,_e){const Ke=new g,Je=new z({cwd:V,filename:Le,physicalFilename:ne||Le,sourceCode:ve,parserOptions:{...fe.parserOptions},parserPath:te,languageOptions:fe,settings:De}),pe=ve.traverse();return Object.keys(Pe).forEach(ye=>{const Re=re.getRuleNumericSeverity(Pe[ye]);if(Re===0||ue&&!ue({ruleId:ye,severity:Re}))return;const Oe=ee(ye);if(!Oe){_e.addError({ruleId:ye});return}const it=Je.extend({id:ye,options:ut(Pe[ye],me?Oe.meta?.defaultOptions:void 0),report(...Ye){const st=_e.addRuleMessage(ye,Re,...Ye);if(st.fix&&!(Oe.meta&&Oe.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(st.suggestions&&!(Oe.meta&&Oe.meta.hasSuggestions===!0))throw Oe.meta&&Oe.meta.docs&&typeof Oe.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),Ge=d.enabled||Ce?d.time(ye,ze,Ce)(Oe,it):ze(Oe,it),Ze=Ce?Ge.result:Ge;Ce&&Qe(Ge.tdiff,{type:"rules",key:ye},qe);function lt(Ye){return function(...mt){try{const yt=Ye(...mt),pt=Ce?yt.result:yt;return Ce&&Qe(yt.tdiff,{type:"rules",key:ye},qe),pt}catch(yt){throw yt.ruleId=ye,yt}}}if(typeof Ze>"u"||Ze===null)throw new Error(`The create() function for rule '${ye}' did not return an object.`);Object.keys(Ze).forEach(Ye=>{const st=d.enabled||Ce?d.time(ye,Ze[Ye],Ce):Ze[Ye];Ke.add(Ye,lt(st))})}),X.getInstance(Z).traverseSync(ve,Ke,{steps:pe}),_e}function ht(ve){if(typeof ve=="object"){const{hasBOM:Pe,text:ee}=ve;return(Pe?"\uFEFF":"")+ee}return String(ve)}function dt(ve,Pe){return ve.lastConfigArray&&ve.lastConfigArray.pluginEnvironments.get(Pe)||r.get(Pe)||null}function at(ve,Pe){return ve.lastConfigArray&&ve.lastConfigArray.pluginRules.get(Pe)||ve.ruleMap.get(Pe)}function tt(ve){if(ve)return ve;if(typeof Ft=="object")return Ft.cwd()}const we=new WeakMap;function Ee(ve){const{configType:Pe}=we.get(ve);if(Pe==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Se{constructor({cwd:Pe,configType:ee="flat",flags:te=[],warningService:Z=new Fe}={}){const fe=[];te.forEach(De=>{if(k.has(De)){const Le=k.get(De),me=R(Le),V=`The flag '${De}' is inactive: ${me}`;if(typeof Le.replacedBy>"u")throw new Error(V);typeof Le.replacedBy=="string"&&fe.push(Le.replacedBy),Z.emitInactiveFlagWarning(De,V);return}if(!w.has(De))throw new Error(`Unknown flag '${De}'.`);fe.push(De)}),we.set(this,{cwd:tt(Pe),flags:fe,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ee,parserMap:new Map([["espree",o]]),ruleMap:new s,warningService:Z}),this.version=l.version}static get version(){return l.version}hasFlag(Pe){return we.get(this).flags.includes(Pe)}#e(Pe,ee,te){const Z=we.get(this),fe=ee||{},De=Ie(te,fe);let Le=P,me=o;if(typeof fe.parser=="object"&&fe.parser!==null)Le=fe.parser.filePath,me=fe.parser.definition;else if(typeof fe.parser=="string"){if(!Z.parserMap.has(fe.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${fe.parser}' was not found.`,line:0,column:0,nodeType:null}];Le=fe.parser,me=Z.parserMap.get(fe.parser)}const V=De.allowInlineConfig&&!De.warnInlineConfig?$(Pe.body):{},ne=Object.assign({builtin:!0},fe.env,V),ue=Object.keys(ne).filter(Re=>ne[Re]).map(Re=>dt(Z,Re)).filter(Re=>Re),Ce=Ne(me,fe.parserOptions||{},ue),qe=j(fe.globals||{},ue),_e=fe.settings||{},Ke=Be({globals:fe.globals,parser:me,parserOptions:Ce});if(Z.lastSourceCode)Z.lastSourceCode.scopeManager||(Z.lastSourceCode=new i({text:Z.lastSourceCode.text,ast:Z.lastSourceCode.ast,hasBOM:Z.lastSourceCode.hasBOM,parserServices:Z.lastSourceCode.parserServices,visitorKeys:Z.lastSourceCode.visitorKeys,scopeManager:rt(Z.lastSourceCode.ast,Ke)}));else{let Re;De.stats&&(Re=S());const it=new B().parseSync(Pe,{language:b,languageOptions:Ke});if(De.stats){const Ge=x(Re);Qe(Ge,{type:"parse"},Z)}if(!it.ok)return it.errors;Z.lastSourceCode=it.sourceCode}const Je=Z.lastSourceCode,pe=new I({ruleMapper:Re=>at(Z,Re),language:b,sourceCode:Je,disableFixes:De.disableFixes}),le=De.allowInlineConfig?xe(Je,Re=>at(Z,Re),De.warnInlineConfig,fe,pe):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ie(Je.scopeManager.scopes[0],qe,{exportedVariables:le.exportedVariables,enabledGlobals:le.enabledGlobals});const ye=Object.assign({},fe.rules,le.configuredRules);try{Xe(Je,ye,Re=>at(Z,Re),Le,b,Ke,_e,De.filename,!0,Z.cwd,te.physicalFilename,null,De.stats,Z,pe)}catch(Re){if(Re.message+=`
|
|
129
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return ue}}))};var V},H=Xe("'",!1),ce=/^[^\\']/,re=ht(["\\","'"],!0,!1),Fe=/^[0-9]/,X=ht([["0","9"]],!1,!1),I=Xe("type(",!1),W=/^[^ )]/,oe=ht([" ",")"],!0,!1),ie=Xe(")",!1),se=/^[imsu]/,de=ht(["i","m","s","u"],!1,!1),be=Xe("/",!1),xe=/^[^\/]/,Te=ht(["/"],!0,!1),J=Xe(":not(",!1),Q=Xe(":matches(",!1),ke=Xe(":has(",!1),$=Xe(":first-child",!1),ae=Xe(":last-child",!1),Ie=Xe(":nth-child(",!1),Ne=Xe(":nth-last-child(",!1),Be=Xe(":",!1),j=0,Qe=[{line:1,column:1}],ut=0,rt=[],ze={};if("startRule"in o){if(!(o.startRule in m))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');i=m[o.startRule]}function Xe(me,V){return{type:"literal",text:me,ignoreCase:V}}function ht(me,V,ne){return{type:"class",parts:me,inverted:V,ignoreCase:ne}}function dt(me){var V,ne=Qe[me];if(ne)return ne;for(V=me-1;!Qe[V];)V--;for(ne={line:(ne=Qe[V]).line,column:ne.column};V<me;)n.charCodeAt(V)===10?(ne.line++,ne.column=1):ne.column++,V++;return Qe[me]=ne,ne}function at(me,V){var ne=dt(me),ue=dt(V);return{start:{offset:me,line:ne.line,column:ne.column},end:{offset:V,line:ue.line,column:ue.column}}}function tt(me){j<ut||(j>ut&&(ut=j,rt=[]),rt.push(me))}function we(){var me,V,ne,ue,Ce=30*j+0,qe=ze[Ce];return qe?(j=qe.nextPos,qe.result):(me=j,(V=Ee())!==r&&(ne=Pe())!==r&&Ee()!==r?me=V=(ue=ne).length===1?ue[0]:{type:"matches",selectors:ue}:(j=me,me=r),me===r&&(me=j,(V=Ee())!==r&&(V=void 0),me=V),ze[Ce]={nextPos:j,result:me},me)}function Ee(){var me,V,ne=30*j+1,ue=ze[ne];if(ue)return j=ue.nextPos,ue.result;for(me=[],n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c));V!==r;)me.push(V),n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c));return ze[ne]={nextPos:j,result:me},me}function Se(){var me,V,ne,ue=30*j+2,Ce=ze[ue];if(Ce)return j=Ce.nextPos,Ce.result;if(V=[],h.test(n.charAt(j))?(ne=n.charAt(j),j++):(ne=r,tt(s)),ne!==r)for(;ne!==r;)V.push(ne),h.test(n.charAt(j))?(ne=n.charAt(j),j++):(ne=r,tt(s));else V=r;return V!==r&&(V=V.join("")),me=V,ze[ue]={nextPos:j,result:me},me}function ve(){var me,V,ne,ue=30*j+3,Ce=ze[ue];return Ce?(j=Ce.nextPos,Ce.result):(me=j,(V=Ee())!==r?(n.charCodeAt(j)===62?(ne=">",j++):(ne=r,tt(f)),ne!==r&&Ee()!==r?me=V="child":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,(V=Ee())!==r?(n.charCodeAt(j)===126?(ne="~",j++):(ne=r,tt(g)),ne!==r&&Ee()!==r?me=V="sibling":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,(V=Ee())!==r?(n.charCodeAt(j)===43?(ne="+",j++):(ne=r,tt(d)),ne!==r&&Ee()!==r?me=V="adjacent":(j=me,me=r)):(j=me,me=r),me===r&&(me=j,n.charCodeAt(j)===32?(V=" ",j++):(V=r,tt(c)),V!==r&&(ne=Ee())!==r?me=V="descendant":(j=me,me=r)))),ze[ue]={nextPos:j,result:me},me)}function Pe(){var me,V,ne,ue,Ce,qe,_e,Ke,Je=30*j+4,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(me=j,(V=ee())!==r){for(ne=[],ue=j,(Ce=Ee())!==r?(n.charCodeAt(j)===44?(qe=",",j++):(qe=r,tt(E)),qe!==r&&(_e=Ee())!==r&&(Ke=ee())!==r?ue=Ce=[Ce,qe,_e,Ke]:(j=ue,ue=r)):(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,(Ce=Ee())!==r?(n.charCodeAt(j)===44?(qe=",",j++):(qe=r,tt(E)),qe!==r&&(_e=Ee())!==r&&(Ke=ee())!==r?ue=Ce=[Ce,qe,_e,Ke]:(j=ue,ue=r)):(j=ue,ue=r);ne!==r?me=V=[V].concat(ne.map(function(le){return le[3]})):(j=me,me=r)}else j=me,me=r;return ze[Je]={nextPos:j,result:me},me}function ee(){var me,V,ne,ue,Ce,qe,_e,Ke=30*j+5,Je=ze[Ke];if(Je)return j=Je.nextPos,Je.result;if(me=j,(V=te())!==r){for(ne=[],ue=j,(Ce=ve())!==r&&(qe=te())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,(Ce=ve())!==r&&(qe=te())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ne!==r?(_e=V,me=V=ne.reduce(function(pe,le){return{type:le[0],left:pe,right:le[1]}},_e)):(j=me,me=r)}else j=me,me=r;return ze[Ke]={nextPos:j,result:me},me}function te(){var me,V,ne,ue,Ce,qe,_e,Ke=30*j+6,Je=ze[Ke];if(Je)return j=Je.nextPos,Je.result;if(me=j,n.charCodeAt(j)===33?(V="!",j++):(V=r,tt(S)),V===r&&(V=null),V!==r){if(ne=[],(ue=Z())!==r)for(;ue!==r;)ne.push(ue),ue=Z();else ne=r;ne!==r?(Ce=V,_e=(qe=ne).length===1?qe[0]:{type:"compound",selectors:qe},Ce&&(_e.subject=!0),me=V=_e):(j=me,me=r)}else j=me,me=r;return ze[Ke]={nextPos:j,result:me},me}function Z(){var me,V=30*j+7,ne=ze[V];return ne?(j=ne.nextPos,ne.result):((me=function(){var ue,Ce,qe=30*j+8,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.charCodeAt(j)===42?(Ce="*",j++):(Ce=r,tt(x)),Ce!==r&&(Ce={type:"wildcard",value:Ce}),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e=30*j+9,Ke=ze[_e];return Ke?(j=Ke.nextPos,Ke.result):(ue=j,n.charCodeAt(j)===35?(Ce="#",j++):(Ce=r,tt(T)),Ce===r&&(Ce=null),Ce!==r&&(qe=Se())!==r?ue=Ce={type:"identifier",value:qe}:(j=ue,ue=r),ze[_e]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+10,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.charCodeAt(j)===91?(Ce="[",j++):(Ce=r,tt(C)),Ce!==r&&Ee()!==r&&(qe=function(){var pe,le,ye,Re,Oe=30*j+14,it=ze[Oe];return it?(j=it.nextPos,it.result):(pe=j,(le=fe())!==r&&Ee()!==r&&(ye=function(){var Ge,Ze,lt,Ye=30*j+12,st=ze[Ye];return st?(j=st.nextPos,st.result):(Ge=j,n.charCodeAt(j)===33?(Ze="!",j++):(Ze=r,tt(S)),Ze===r&&(Ze=null),Ze!==r?(n.charCodeAt(j)===61?(lt="=",j++):(lt=r,tt(w)),lt!==r?(Ze=k(Ze),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r),ze[Ye]={nextPos:j,result:Ge},Ge)}())!==r&&Ee()!==r?((Re=function(){var Ge,Ze,lt,Ye,st,mt=30*j+18,yt=ze[mt];if(yt)return j=yt.nextPos,yt.result;if(Ge=j,n.substr(j,5)==="type("?(Ze="type(",j+=5):(Ze=r,tt(I)),Ze!==r)if(Ee()!==r){if(lt=[],W.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(oe)),Ye!==r)for(;Ye!==r;)lt.push(Ye),W.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(oe));else lt=r;lt!==r&&(Ye=Ee())!==r?(n.charCodeAt(j)===41?(st=")",j++):(st=r,tt(ie)),st!==r?(Ze={type:"type",value:lt.join("")},Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;else j=Ge,Ge=r;return ze[mt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt,Ye,st,mt,yt=30*j+20,pt=ze[yt];if(pt)return j=pt.nextPos,pt.result;if(Ge=j,n.charCodeAt(j)===47?(Ze="/",j++):(Ze=r,tt(be)),Ze!==r){if(lt=[],xe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(Te)),Ye!==r)for(;Ye!==r;)lt.push(Ye),xe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(Te));else lt=r;lt!==r?(n.charCodeAt(j)===47?(Ye="/",j++):(Ye=r,tt(be)),Ye!==r?((st=function(){var vt,Ct,xt=30*j+19,Rt=ze[xt];if(Rt)return j=Rt.nextPos,Rt.result;if(vt=[],se.test(n.charAt(j))?(Ct=n.charAt(j),j++):(Ct=r,tt(de)),Ct!==r)for(;Ct!==r;)vt.push(Ct),se.test(n.charAt(j))?(Ct=n.charAt(j),j++):(Ct=r,tt(de));else vt=r;return ze[xt]={nextPos:j,result:vt},vt}())===r&&(st=null),st!==r?(mt=st,Ze={type:"regexp",value:new RegExp(lt.join(""),mt?mt.join(""):"")},Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[yt]={nextPos:j,result:Ge},Ge}()),Re!==r?(le=P(le,ye,Re),pe=le):(j=pe,pe=r)):(j=pe,pe=r),pe===r&&(pe=j,(le=fe())!==r&&Ee()!==r&&(ye=function(){var Ge,Ze,lt,Ye=30*j+11,st=ze[Ye];return st?(j=st.nextPos,st.result):(Ge=j,A.test(n.charAt(j))?(Ze=n.charAt(j),j++):(Ze=r,tt(b)),Ze===r&&(Ze=null),Ze!==r?(n.charCodeAt(j)===61?(lt="=",j++):(lt=r,tt(w)),lt!==r?(Ze=k(Ze),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r),Ge===r&&(R.test(n.charAt(j))?(Ge=n.charAt(j),j++):(Ge=r,tt(F))),ze[Ye]={nextPos:j,result:Ge},Ge)}())!==r&&Ee()!==r?((Re=function(){var Ge,Ze,lt,Ye,st,mt,yt=30*j+15,pt=ze[yt];if(pt)return j=pt.nextPos,pt.result;if(Ge=j,n.charCodeAt(j)===34?(Ze='"',j++):(Ze=r,tt(O)),Ze!==r){for(lt=[],q.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(N)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));Ye!==r;)lt.push(Ye),q.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(N)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));lt!==r?(n.charCodeAt(j)===34?(Ye='"',j++):(Ye=r,tt(O)),Ye!==r?(Ze=z(lt),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;if(Ge===r)if(Ge=j,n.charCodeAt(j)===39?(Ze="'",j++):(Ze=r,tt(H)),Ze!==r){for(lt=[],ce.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(re)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));Ye!==r;)lt.push(Ye),ce.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(re)),Ye===r&&(Ye=j,n.charCodeAt(j)===92?(st="\\",j++):(st=r,tt(_)),st!==r?(n.length>j?(mt=n.charAt(j),j++):(mt=r,tt(G)),mt!==r?(st=B(st,mt),Ye=st):(j=Ye,Ye=r)):(j=Ye,Ye=r));lt!==r?(n.charCodeAt(j)===39?(Ye="'",j++):(Ye=r,tt(H)),Ye!==r?(Ze=z(lt),Ge=Ze):(j=Ge,Ge=r)):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[yt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt,Ye,st,mt,yt,pt=30*j+16,vt=ze[pt];if(vt)return j=vt.nextPos,vt.result;for(Ge=j,Ze=j,lt=[],Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));Ye!==r;)lt.push(Ye),Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));if(lt!==r?(n.charCodeAt(j)===46?(Ye=".",j++):(Ye=r,tt(L)),Ye!==r?Ze=lt=[lt,Ye]:(j=Ze,Ze=r)):(j=Ze,Ze=r),Ze===r&&(Ze=null),Ze!==r){if(lt=[],Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X)),Ye!==r)for(;Ye!==r;)lt.push(Ye),Fe.test(n.charAt(j))?(Ye=n.charAt(j),j++):(Ye=r,tt(X));else lt=r;lt!==r?(mt=lt,yt=(st=Ze)?[].concat.apply([],st).join(""):"",Ze={type:"literal",value:parseFloat(yt+mt.join(""))},Ge=Ze):(j=Ge,Ge=r)}else j=Ge,Ge=r;return ze[pt]={nextPos:j,result:Ge},Ge}())===r&&(Re=function(){var Ge,Ze,lt=30*j+17,Ye=ze[lt];return Ye?(j=Ye.nextPos,Ye.result):((Ze=Se())!==r&&(Ze={type:"literal",value:Ze}),Ge=Ze,ze[lt]={nextPos:j,result:Ge},Ge)}()),Re!==r?(le=P(le,ye,Re),pe=le):(j=pe,pe=r)):(j=pe,pe=r),pe===r&&(pe=j,(le=fe())!==r&&(le={type:"attribute",name:le}),pe=le)),ze[Oe]={nextPos:j,result:pe},pe)}())!==r&&Ee()!==r?(n.charCodeAt(j)===93?(_e="]",j++):(_e=r,tt(v)),_e!==r?ue=Ce=qe:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je,pe,le,ye=30*j+21,Re=ze[ye];if(Re)return j=Re.nextPos,Re.result;if(ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r)if((qe=Se())!==r){for(_e=[],Ke=j,n.charCodeAt(j)===46?(Je=".",j++):(Je=r,tt(L)),Je!==r&&(pe=Se())!==r?Ke=Je=[Je,pe]:(j=Ke,Ke=r);Ke!==r;)_e.push(Ke),Ke=j,n.charCodeAt(j)===46?(Je=".",j++):(Je=r,tt(L)),Je!==r&&(pe=Se())!==r?Ke=Je=[Je,pe]:(j=Ke,Ke=r);_e!==r?(le=qe,Ce={type:"field",name:_e.reduce(function(Oe,it){return Oe+it[0]+it[1]},le)},ue=Ce):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[ye]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+22,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,5)===":not("?(Ce=":not(",j+=5):(Ce=r,tt(J)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"not",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+23,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,9)===":matches("?(Ce=":matches(",j+=9):(Ce=r,tt(Q)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"matches",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke=30*j+24,Je=ze[Ke];return Je?(j=Je.nextPos,Je.result):(ue=j,n.substr(j,5)===":has("?(Ce=":has(",j+=5):(Ce=r,tt(ke)),Ce!==r&&Ee()!==r&&(qe=Pe())!==r&&Ee()!==r?(n.charCodeAt(j)===41?(_e=")",j++):(_e=r,tt(ie)),_e!==r?ue=Ce={type:"has",selectors:qe}:(j=ue,ue=r)):(j=ue,ue=r),ze[Ke]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe=30*j+25,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.substr(j,12)===":first-child"?(Ce=":first-child",j+=12):(Ce=r,tt($)),Ce!==r&&(Ce=De(1)),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe=30*j+26,_e=ze[qe];return _e?(j=_e.nextPos,_e.result):(n.substr(j,11)===":last-child"?(Ce=":last-child",j+=11):(Ce=r,tt(ae)),Ce!==r&&(Ce=Le(1)),ue=Ce,ze[qe]={nextPos:j,result:ue},ue)}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je=30*j+27,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(ue=j,n.substr(j,11)===":nth-child("?(Ce=":nth-child(",j+=11):(Ce=r,tt(Ie)),Ce!==r)if(Ee()!==r){if(qe=[],Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X)),_e!==r)for(;_e!==r;)qe.push(_e),Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X));else qe=r;qe!==r&&(_e=Ee())!==r?(n.charCodeAt(j)===41?(Ke=")",j++):(Ke=r,tt(ie)),Ke!==r?(Ce=De(parseInt(qe.join(""),10)),ue=Ce):(j=ue,ue=r)):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[Je]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e,Ke,Je=30*j+28,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(ue=j,n.substr(j,16)===":nth-last-child("?(Ce=":nth-last-child(",j+=16):(Ce=r,tt(Ne)),Ce!==r)if(Ee()!==r){if(qe=[],Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X)),_e!==r)for(;_e!==r;)qe.push(_e),Fe.test(n.charAt(j))?(_e=n.charAt(j),j++):(_e=r,tt(X));else qe=r;qe!==r&&(_e=Ee())!==r?(n.charCodeAt(j)===41?(Ke=")",j++):(Ke=r,tt(ie)),Ke!==r?(Ce=Le(parseInt(qe.join(""),10)),ue=Ce):(j=ue,ue=r)):(j=ue,ue=r)}else j=ue,ue=r;else j=ue,ue=r;return ze[Je]={nextPos:j,result:ue},ue}())===r&&(me=function(){var ue,Ce,qe,_e=30*j+29,Ke=ze[_e];return Ke?(j=Ke.nextPos,Ke.result):(ue=j,n.charCodeAt(j)===58?(Ce=":",j++):(Ce=r,tt(Be)),Ce!==r&&(qe=Se())!==r?ue=Ce={type:"class",name:qe}:(j=ue,ue=r),ze[_e]={nextPos:j,result:ue},ue)}()),ze[V]={nextPos:j,result:me},me)}function fe(){var me,V,ne,ue,Ce,qe,_e,Ke,Je=30*j+13,pe=ze[Je];if(pe)return j=pe.nextPos,pe.result;if(me=j,(V=Se())!==r){for(ne=[],ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r&&(qe=Se())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ue!==r;)ne.push(ue),ue=j,n.charCodeAt(j)===46?(Ce=".",j++):(Ce=r,tt(L)),Ce!==r&&(qe=Se())!==r?ue=Ce=[Ce,qe]:(j=ue,ue=r);ne!==r?(_e=V,Ke=ne,me=V=[].concat.apply([_e],Ke).join("")):(j=me,me=r)}else j=me,me=r;return ze[Je]={nextPos:j,result:me},me}function De(me){return{type:"nth-child",index:{type:"literal",value:me}}}function Le(me){return{type:"nth-last-child",index:{type:"literal",value:me}}}if((t=i())!==r&&j===n.length)return t;throw t!==r&&j<n.length&&tt({type:"end"}),l=rt,p=ut<n.length?n.charAt(ut):null,u=ut<n.length?at(ut,ut+1):at(ut,ut),new e(e.buildMessage(l,p),l,p,u)}}}())});function tr(a,e){for(var n=0;n<e.length;++n){if(a==null)return a;a=a[e[n]]}return a}var pp=typeof WeakMap=="function"?new WeakMap:null;function Vt(a){if(a==null)return function(){return!0};if(pp!=null){var e=pp.get(a);return e!=null||(e=e0(a),pp.set(a,e)),e}return e0(a)}function e0(a){switch(a.type){case"wildcard":return function(){return!0};case"identifier":var e=a.value.toLowerCase();return function(v,A,b){var w=b&&b.nodeTypeKey||"type";return e===v[w].toLowerCase()};case"field":var n=a.name.split(".");return function(v,A){return function b(w,k,R,F){for(var L=k,P=F;P<R.length;++P){if(L==null)return!1;var O=L[R[P]];if(Array.isArray(O)){for(var q=0;q<O.length;++q)if(b(w,O[q],R,P+1))return!0;return!1}L=O}return w===L}(v,A[n.length-1],n,0)};case"matches":var o=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<o.length;++w)if(o[w](v,A,b))return!0;return!1};case"compound":var t=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<t.length;++w)if(!t[w](v,A,b))return!1;return!0};case"not":var l=a.selectors.map(Vt);return function(v,A,b){for(var w=0;w<l.length;++w)if(l[w](v,A,b))return!1;return!0};case"has":var p=a.selectors.map(Vt);return function(v,A,b){var w=!1,k=[];return Bn.traverse(v,{enter:function(R,F){F!=null&&k.unshift(F);for(var L=0;L<p.length;++L)if(p[L](R,k,b))return w=!0,void this.break()},leave:function(){k.shift()},keys:b&&b.visitorKeys,fallback:b&&b.fallback||"iteration"}),w};case"child":var u=Vt(a.left),r=Vt(a.right);return function(v,A,b){return!!(A.length>0&&r(v,A,b))&&u(A[0],A.slice(1),b)};case"descendant":var m=Vt(a.left),i=Vt(a.right);return function(v,A,b){if(i(v,A,b)){for(var w=0,k=A.length;w<k;++w)if(m(A[w],A.slice(w+1),b))return!0}return!1};case"attribute":var c=a.name.split(".");switch(a.operator){case void 0:return function(v){return tr(v,c)!=null};case"=":switch(a.value.type){case"regexp":return function(v){var A=tr(v,c);return typeof A=="string"&&a.value.value.test(A)};case"literal":var h="".concat(a.value.value);return function(v){return h==="".concat(tr(v,c))};case"type":return function(v){return a.value.value===sn(tr(v,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"!=":switch(a.value.type){case"regexp":return function(v){return!a.value.value.test(tr(v,c))};case"literal":var s="".concat(a.value.value);return function(v){return s!=="".concat(tr(v,c))};case"type":return function(v){return a.value.value!==sn(tr(v,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"<=":return function(v){return tr(v,c)<=a.value.value};case"<":return function(v){return tr(v,c)<a.value.value};case">":return function(v){return tr(v,c)>a.value.value};case">=":return function(v){return tr(v,c)>=a.value.value}}throw new Error("Unknown operator: ".concat(a.operator));case"sibling":var f=Vt(a.left),g=Vt(a.right);return function(v,A,b){return g(v,A,b)&&t0(v,f,A,"LEFT_SIDE",b)||a.left.subject&&f(v,A,b)&&t0(v,g,A,"RIGHT_SIDE",b)};case"adjacent":var d=Vt(a.left),E=Vt(a.right);return function(v,A,b){return E(v,A,b)&&r0(v,d,A,"LEFT_SIDE",b)||a.right.subject&&d(v,A,b)&&r0(v,E,A,"RIGHT_SIDE",b)};case"nth-child":var S=a.index.value,x=Vt(a.right);return function(v,A,b){return x(v,A,b)&&n0(v,A,S,b)};case"nth-last-child":var T=-a.index.value,C=Vt(a.right);return function(v,A,b){return C(v,A,b)&&n0(v,A,T,b)};case"class":return function(v,A,b){if(b&&b.matchClass)return b.matchClass(a.name,v,A);if(b&&b.nodeTypeKey)return!1;switch(a.name.toLowerCase()){case"statement":if(v.type.slice(-9)==="Statement")return!0;case"declaration":return v.type.slice(-11)==="Declaration";case"pattern":if(v.type.slice(-7)==="Pattern")return!0;case"expression":return v.type.slice(-10)==="Expression"||v.type.slice(-7)==="Literal"||v.type==="Identifier"&&(A.length===0||A[0].type!=="MetaProperty")||v.type==="MetaProperty";case"function":return v.type==="FunctionDeclaration"||v.type==="FunctionExpression"||v.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(a.name))}}throw new Error("Unknown selector type: ".concat(a.type))}function mp(a,e){var n=e&&e.nodeTypeKey||"type",o=a[n];return e&&e.visitorKeys&&e.visitorKeys[o]?e.visitorKeys[o]:Bn.VisitorKeys[o]?Bn.VisitorKeys[o]:e&&typeof e.fallback=="function"?e.fallback(a):Object.keys(a).filter(function(t){return t!==n})}function hp(a,e){var n=e&&e.nodeTypeKey||"type";return a!==null&&sn(a)==="object"&&typeof a[n]=="string"}function t0(a,e,n,o,t){var l=cp(n,1)[0];if(!l)return!1;for(var p=mp(l,t),u=0;u<p.length;++u){var r=l[p[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;var i=void 0,c=void 0;o==="LEFT_SIDE"?(i=0,c=m):(i=m+1,c=r.length);for(var h=i;h<c;++h)if(hp(r[h],t)&&e(r[h],n,t))return!0}}return!1}function r0(a,e,n,o,t){var l=cp(n,1)[0];if(!l)return!1;for(var p=mp(l,t),u=0;u<p.length;++u){var r=l[p[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;if(o==="LEFT_SIDE"&&m>0&&hp(r[m-1],t)&&e(r[m-1],n,t)||o==="RIGHT_SIDE"&&m<r.length-1&&hp(r[m+1],t)&&e(r[m+1],n,t))return!0}}return!1}function n0(a,e,n,o){if(n===0)return!1;var t=cp(e,1)[0];if(!t)return!1;for(var l=mp(t,o),p=0;p<l.length;++p){var u=t[l[p]];if(Array.isArray(u)){var r=n<0?u.length+n:n-1;if(r>=0&&r<u.length&&u[r]===a)return!0}}return!1}function s0(a,e,n,o){if(e){var t=[],l=Vt(e),p=function u(r,m){if(r==null||sn(r)!="object")return[];m==null&&(m=r);for(var i=r.subject?[m]:[],c=Object.keys(r),h=0;h<c.length;++h){var s=c[h],f=r[s];i.push.apply(i,iP(u(f,s==="left"?f:m)))}return i}(e).map(Vt);Bn.traverse(a,{enter:function(u,r){if(r!=null&&t.unshift(r),l(u,t,o))if(p.length)for(var m=0,i=p.length;m<i;++m){p[m](u,t,o)&&n(u,r,t);for(var c=0,h=t.length;c<h;++c){var s=t.slice(c+1);p[m](t[c],s,o)&&n(t[c],r,s)}}else n(u,r,t)},leave:function(){t.shift()},keys:o&&o.visitorKeys,fallback:o&&o.fallback||"iteration"})}}function a0(a,e,n){var o=[];return s0(a,e,function(t){o.push(t)},n),o}function i0(a){return oP.parse(a)}function Pr(a,e,n){return a0(a,i0(e),n)}Pr.parse=i0,Pr.match=a0,Pr.traverse=s0,Pr.matches=function(a,e,n,o){return!e||!!a&&(n||(n=[]),Vt(e)(a,n,o))},Pr.query=Pr;var dp,o0;function lP(){if(o0)return dp;o0=1;const a=Pr;class e{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(c,h,s,f,g,d){this.source=c,this.isExit=h,this.root=s,this.nodeTypes=f,this.attributeCount=g,this.identifierCount=d}compare(c){return this.attributeCount-c.attributeCount||this.identifierCount-c.identifierCount||(this.source<=c.source?-1:1)}}const n=new Map;function o(...i){return[...new Set(i.flat())]}function t(...i){if(i.length===0)return[];let c=[...new Set(i[0])];for(const h of i.slice(1))c=c.filter(s=>h.includes(s));return c}function l(i){let c=0,h=0;function s(g){switch(g.type){case"identifier":return h++,[g.value];case"not":return g.selectors.map(s),null;case"matches":{const d=g.selectors.map(s);return d.every(Boolean)?o(...d):null}case"compound":{const d=g.selectors.map(s).filter(E=>E);return d.length?t(...d):null}case"attribute":case"field":case"nth-child":case"nth-last-child":return c++,null;case"child":case"descendant":case"sibling":case"adjacent":return s(g.left),s(g.right);case"class":return g.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}return{nodeTypes:s(i),attributeCount:c,identifierCount:h}}function p(i){return i==="*"?{type:"wildcard",value:"*"}:/^[a-z]+$/iu.test(i)?{type:"identifier",value:i}:null}function u(i){try{return a.parse(i)}catch(c){throw c.location&&c.location.start&&typeof c.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${i}" at position ${c.location.start.offset}: ${c.message}`):c}}function r(i){if(n.has(i))return n.get(i);const c=i.replace(/:exit$/u,""),h=p(c)??u(c),{nodeTypes:s,attributeCount:f,identifierCount:g}=l(h),d=new e(i,i.endsWith(":exit"),h,s,f,g);return n.set(i,d),d}function m(i,c,h,s){return a.matches(i,c,h,s)}return dp={parse:r,matches:m,ESQueryParsedSelector:e},dp}var gp,l0;function uP(){if(l0)return gp;l0=1;const{parse:a,matches:e}=lP(),n=Wr(),o=1,t=2;function l(r,m){return r.compare(m)}class p{constructor(m,i){this.visitor=m,this.esqueryOptions=i,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],m.forEachName(c=>{const h=a(c);if(h.nodeTypes){const f=h.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;h.nodeTypes.forEach(g=>{f.has(g)||f.set(g,[]),f.get(g).push(h)});return}(h.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(h)}),this.anyTypeEnterSelectors.sort(l),this.anyTypeExitSelectors.sort(l),this.enterSelectorsByNodeType.forEach(c=>c.sort(l)),this.exitSelectorsByNodeType.forEach(c=>c.sort(l))}matches(m,i,c){return e(m,c.root,i,this.esqueryOptions)}calculateSelectors(m,i,c){const h=this.esqueryOptions?.nodeTypeKey||"type",s=[],f=(c?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(m[h])||[],g=c?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let d=0,E=0;for(;d<f.length||E<g.length;){const S=d<f.length,x=E<g.length,T=g[E],C=f[d],v=x&&S&&T.compare(C)<0;!S||v?(E++,this.matches(m,i,T)&&s.push(T.source)):(d++,this.matches(m,i,C)&&s.push(C.source))}return s}}class u{#e;static instances=new WeakMap;constructor(m){this.#e=m}static getInstance(m){return this.instances.has(m)||this.instances.set(m,new this(m)),this.instances.get(m)}traverseSync(m,i,{steps:c}={}){const h=new p(i,{visitorKeys:m.visitorKeys??this.#e.visitorKeys,fallback:n.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),s=[];for(const f of c??m.traverse())switch(f.kind){case o:{try{f.phase===1?(h.calculateSelectors(f.target,s,!1).forEach(g=>{i.callSync(g,f.target)}),s.unshift(f.target)):(s.shift(),h.calculateSelectors(f.target,s,!0).forEach(g=>{i.callSync(g,f.target)}))}catch(g){throw g.currentNode=f.target,g}break}case t:{i.callSync(f.target,...f.args);break}default:throw new Error(`Invalid traversal step found: "${f.kind}".`)}}}return gp={SourceCodeTraverser:u},gp}var yp,u0;function cP(){if(u0)return yp;u0=1;function a(n,o){return{range:[n,n],text:o}}class e{#e;constructor({sourceCode:o}){this.#e=o}insertTextAfter(o,t){const l=this.#e.getRange(o);return this.insertTextAfterRange(l,t)}insertTextAfterRange(o,t){return a(o[1],t)}insertTextBefore(o,t){const l=this.#e.getRange(o);return this.insertTextBeforeRange(l,t)}insertTextBeforeRange(o,t){return a(o[0],t)}replaceText(o,t){const l=this.#e.getRange(o);return this.replaceTextRange(l,t)}replaceTextRange(o,t){return{range:o,text:t}}remove(o){const t=this.#e.getRange(o);return this.removeRange(t)}removeRange(o){return{range:o,text:""}}}return yp={RuleFixer:e},yp}var vp,c0;function fP(){if(c0)return vp;c0=1;function a(){return/\{\{([^{}]+)\}\}/gu}function e(n,o){if(!o)return n;const t=a();return n.replace(t,(l,p)=>{const u=p.trim();return u in o?o[u]:l})}return vp={getPlaceholderMatcher:a,interpolate:e},vp}var Ep,f0;function pP(){if(f0)return Ep;f0=1;const a=Pn(),{RuleFixer:e}=cP(),{interpolate:n}=fP(),o=Md,t={start:{line:1,column:0},end:{line:1,column:1}};function l({line:C,column:v,endLine:A,endColumn:b},w){const k=w.columnStart===1?0:1,R=w.lineStart===1?0:1,F=A===void 0?A:A+R,L=b===void 0?b:b+k;return{line:C+R,column:v+k,endLine:F,endColumn:L}}function p(C){return Object.hasOwn(o.rules,C)?`Rule '${C}' was removed and replaced by: ${o.rules[C].join(", ")}`:`Definition for rule '${C}' was not found.`}function u(C,v,A){const{ruleId:b=null,loc:w=t,message:k=p(C.ruleId)}=C;return{ruleId:b,message:k,...l({line:w.start.line,column:w.start.column,endLine:w.end.line,endColumn:w.end.column},A),severity:v,nodeType:null}}function r(...C){return C.length===1?Object.assign({},C[0]):typeof C[1]=="string"?{node:C[0],message:C[1],data:C[2],fix:C[3]}:{node:C[0],loc:C[1],message:C[2],data:C[3],fix:C[4]}}function m(C){C.node?a(typeof C.node=="object","Node must be an object"):a(C.loc,"Node must be provided when reporting error if location is not provided")}function i(C){return C.loc.start?C.loc:{start:C.loc,end:null}}function c(C){return C?{range:[C.range[0],C.range[1]],text:C.text}:null}function h(C){C&&a(C.range&&typeof C.range[0]=="number"&&typeof C.range[1]=="number",`Fix has invalid range: ${JSON.stringify(C,null,2)}`)}function s(C,v){return C.range[0]-v.range[0]||C.range[1]-v.range[1]}function f(C,v){for(const F of C)h(F);if(C.length===0)return null;if(C.length===1)return c(C[0]);C.sort(s);const A=v.text,b=C[0].range[0],w=C.at(-1).range[1];let k="",R=Number.MIN_SAFE_INTEGER;for(const F of C)a(F.range[0]>=R,"Fix objects must not be overlapped in a report."),F.range[0]>=0&&(k+=A.slice(Math.max(0,b,R),F.range[0])),k+=F.text,R=F.range[1];return k+=A.slice(Math.max(0,b,R),w),{range:[b,w],text:k}}function g(C,v){if(typeof C.fix!="function")return null;const A=new e({sourceCode:v}),b=C.fix(A);return b&&Symbol.iterator in b?f(Array.from(b),v):(h(b),c(b))}function d(C,v,A){return!C.suggest||!Array.isArray(C.suggest)?[]:C.suggest.map(b=>{const w=b.desc||A[b.messageId];return{...b,desc:n(w,b.data),fix:g(b,v)}}).filter(({fix:b})=>b)}function E(C){const{language:v}=C,A=v.columnStart===1?0:1,b=v.lineStart===1?0:1,w={ruleId:C.ruleId,severity:C.severity,message:C.message,line:C.loc.start.line+b,column:C.loc.start.column+A,nodeType:C.node&&C.node.type||null};return C.messageId&&(w.messageId=C.messageId),C.loc.end&&(w.endLine=C.loc.end.line+b,w.endColumn=C.loc.end.column+A),C.fix&&(w.fix=C.fix),C.suggestions&&C.suggestions.length>0&&(w.suggestions=C.suggestions),w}function S(C,v){C&&Array.isArray(C)&&C.forEach(A=>{if(A.messageId){const{messageId:b}=A;if(!v)throw new TypeError(`context.report() called with a suggest option with a messageId '${b}', but no messages were present in the rule metadata.`);if(!v[b])throw new TypeError(`context.report() called with a suggest option with a messageId '${b}' which is not present in the 'messages' config: ${JSON.stringify(v,null,2)}`);if(A.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!A.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof A.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${A}`)})}function x(C,v){if(C.messageId){if(!v)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const A=C.messageId;if(C.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!v||!Object.hasOwn(v,A))throw new TypeError(`context.report() called with a messageId of '${A}' which is not present in the 'messages' config: ${JSON.stringify(v,null,2)}`);return v[A]}if(C.message)return C.message;throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}class T{messages=[];#e;#t;#r;#n;constructor({ruleMapper:v,sourceCode:A,language:b,disableFixes:w=!1}){this.#e=v,this.#t=A,this.#r=b,this.#n=w}addRuleMessage(v,A,...b){const w=r(...b),R=this.#e(v)?.meta?.messages;m(w);const F=x(w,R);return S(w.suggest,R),this.messages.push(E({ruleId:v,severity:A,node:w.node,message:n(F,w.data),messageId:w.messageId,loc:w.loc?i(w):this.#t.getLoc(w.node),fix:this.#n?null:g(w,this.#t),suggestions:this.#n?[]:d(w,this.#t,R),language:this.#r})),this.messages.at(-1)}addError(v){const A=u(v,2,this.#r);return this.messages.push(A),A}addFatal(v){const A=u(v,2,this.#r);return A.fatal=!0,this.messages.push(A),A}addWarning(v){const A=u(v,1,this.#r);return this.messages.push(A),A}}return Ep={FileReport:T,updateLocationInformation:l},Ep}var Sp,p0;function mP(){if(p0)return Sp;p0=1;const a=pn,e=qn(),n=Wr(),o=hn(),t=ex(),l=rx,{Legacy:{ConfigOps:p,ConfigValidator:u,environments:r}}=x1(),m=ra(),{SourceCode:i}=bd(),c=hw(),{ConfigCommentParser:h}=vd(),s=HI(),f=KI(),{SourceCodeVisitor:g}=XI(),d=JI(),{FlatConfigArray:E}=ZI(),{startTime:S,endTime:x}=Nb(),{assertIsRuleSeverity:T}=Ka(),{normalizeSeverityToString:C,normalizeSeverityToNumber:v}=Td(),{deepMergeArrays:A}=wd(),b=qb(),{activeFlags:w,inactiveFlags:k,getInactivityReasonMessage:R}=eP(),F=kr()("eslint:linter"),L=10,P="espree",O=5,q=new h,N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:_}=ci(),{VFile:G}=zb(),{ParserService:B}=tP(),{FileContext:z}=rP(),{ProcessorService:H}=nP(),{containsDifferentProperty:ce}=sP(),{Config:re}=ri(),{WarningService:Fe}=aP(),{SourceCodeTraverser:X}=uP(),{FileReport:I,updateLocationInformation:W}=pP();function oe(ve){return ve===o||ve[N]===o}function ie(ve,Pe,{exportedVariables:ee,enabledGlobals:te}){for(const Z of new Set([...Object.keys(Pe),...Object.keys(te)])){const fe=Pe[Z]===void 0?void 0:p.normalizeConfigGlobal(Pe[Z]),Le=te[Z]&&te[Z].value||fe,me=te[Z]&&te[Z].comments;if(Le==="off")continue;let V=ve.set.get(Z);V||(V=new e.Variable(Z,ve),ve.variables.push(V),ve.set.set(Z,V)),V.eslintImplicitGlobalSetting=fe,V.eslintExplicitGlobal=me!==void 0,V.eslintExplicitGlobalComments=me,V.writeable=Le==="writable"}Object.keys(ee).forEach(Z=>{const fe=ve.set.get(Z);fe&&(fe.eslintUsed=!0,fe.eslintExported=!0)}),ve.through=ve.through.filter(Z=>{const fe=Z.identifier.name,De=ve.set.get(fe);return De?(Z.resolved=De,De.references.push(Z),!1):!0})}function se(ve){return Array.isArray(ve)?ve:[ve]}function de(ve,Pe,ee,te,Z,fe,De){const Le=ve.rules?.[te],me=Le?se(Le):["off"],V=C(me[0]),ne=C(Z[0]);if(!(V===ne))return;const Ce=Le?`is already configured to '${V}'`:"is not enabled so can't be turned off";let qe;if(me.length===1&&Z.length===1||V==="off"?qe=`Unused inline config ('${te}' ${Ce}).`:ce(Z.slice(1),me.slice(1))||(qe=fe.length===1?`Unused inline config ('${te}' ${Ce}).`:`Unused inline config ('${te}' ${Ce} with the same options).`),qe){const _e=v(De),Ke={message:qe,loc:Pe};_e===1?ee.addWarning(Ke):_e===2&&ee.addError(Ke)}}function be({type:ve,value:Pe,justification:ee,node:te},Z,fe,De,Le){const me=Object.keys(q.parseListConfig(Pe)),V=me.length?me:[null],ne=[],ue={node:te,value:Pe,ruleIds:me};for(const Ce of V){const qe=De.getLoc(te);if(Ce===null||Z(Ce))if(ve==="disable-next-line"){const{line:_e,column:Ke}=W(qe.end,fe);ne.push({parentDirective:ue,type:ve,line:_e,column:Ke,ruleId:Ce,justification:ee})}else{const{line:_e,column:Ke}=W(qe.start,fe);ne.push({parentDirective:ue,type:ve,line:_e,column:Ke,ruleId:Ce,justification:ee})}else Le.addError({ruleId:Ce,loc:qe})}return ne}function xe(ve,Pe,ee,te,Z){const fe={},De=Object.create(null),Le={},me=[],V=new u({builtInRules:s});return ve.getInlineConfigNodes().filter(ne=>ne.type!=="Shebang").forEach(ne=>{const ue=q.parseDirective(ne.value);if(!ue)return;const{label:Ce,value:qe,justification:_e}=ue,Ke=/^eslint-disable-(?:next-)?line$/u.test(Ce);if(ne.type==="Line"&&!Ke)return;const Je=ve.getLoc(ne);if(ee){const pe=ne.type==="Block"?`/*${Ce}*/`:`//${Ce}`;Z.addWarning({ruleId:null,message:`'${pe}' has no effect because you have 'noInlineConfig' setting in ${ee}.`,loc:Je});return}if(Ce==="eslint-disable-line"&&Je.start.line!==Je.end.line){const pe=`${Ce} comment should not span multiple lines.`;Z.addError({message:pe,loc:Je});return}switch(Ce){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const pe=Ce.slice(7),le=be({type:pe,value:qe,justification:_e,node:ne},Pe,b,ve,Z);me.push(...le);break}case"exported":Object.assign(Le,q.parseListConfig(qe));break;case"globals":case"global":for(const[pe,le]of Object.entries(q.parseStringConfig(qe))){let ye;try{ye=p.normalizeConfigGlobal(le)}catch(Re){Z.addError({loc:Je,message:Re.message});continue}De[pe]?(De[pe].comments.push(ne),De[pe].value=ye):De[pe]={comments:[ne],value:ye}}break;case"eslint":{const pe=q.parseJSONLikeConfig(qe);pe.ok?Object.keys(pe.config).forEach(le=>{const ye=Pe(le),Re=pe.config[le];if(!ye){Z.addError({ruleId:le,loc:Je});return}if(Object.hasOwn(fe,le)){Z.addError({message:`Rule "${le}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Je});return}let Oe=se(Re);Oe.length===1&&te.rules&&Object.hasOwn(te.rules,le)&&(Oe=[Oe[0],...se(te.rules[le]).slice(1)]);try{V.validateRuleOptions(ye,le,Oe)}catch(it){if(it.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw it;Z.addError({ruleId:le,message:it.message,loc:Je});return}fe[le]=Oe}):Z.addFatal({loc:Je,message:pe.error.message});break}}}),{configuredRules:fe,enabledGlobals:De,exportedVariables:Le,disableDirectives:me}}function Te(ve,Pe,ee,te){const Z=[];if(ve.getDisableDirectives){const{directives:fe,problems:De}=ve.getDisableDirectives();Array.isArray(De)&&De.forEach(Le=>te.addError(Le)),fe.forEach(Le=>{const me=be(Le,Pe,ee,ve,te);Z.push(...me)})}return Z}function J(ve,Pe){return oe(ve)&&Pe==="latest"?o.latestEcmaVersion:Pe>=2015?Pe-2009:Pe}function Q(ve){switch(ve){case 3:return 3;case 5:case void 0:return 5;default:if(typeof ve=="number")return ve>=2015?ve:ve+2009}return _}const ke=/\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;function $(ve){let Pe,ee;for(ke.lastIndex=0;(Pe=ke.exec(ve))!==null;)Pe[0].endsWith("*/")&&(ee=Object.assign(ee||{},q.parseListConfig(q.parseDirective(Pe[0].slice(2,-2)).value)));return ee}function ae(ve){const Pe=ve.split(a.sep),ee=Pe.lastIndexOf("<text>");return ee===-1?ve:Pe.slice(ee).join(a.sep)}function Ie(ve,Pe){const ee=Pe.linterOptions||Pe,te=ee.noInlineConfig===!0,Z=ve.allowInlineConfig===!1,fe=Pe.configNameOfNoInlineConfig?` (${Pe.configNameOfNoInlineConfig})`:"";let De=ve.reportUnusedDisableDirectives;typeof De=="boolean"&&(De=De?"error":"off"),typeof De!="string"&&(typeof ee.reportUnusedDisableDirectives=="boolean"?De=ee.reportUnusedDisableDirectives?"warn":"off":De=ee.reportUnusedDisableDirectives===void 0?"off":C(ee.reportUnusedDisableDirectives));const Le=ee.reportUnusedInlineConfigs===void 0?"off":C(ee.reportUnusedInlineConfigs);let me=ve.ruleFilter;return typeof me!="function"&&(me=()=>!0),{filename:ae(ve.filename||"<input>"),allowInlineConfig:!Z,warnInlineConfig:te&&!Z?`your config${fe}`:null,reportUnusedDisableDirectives:De,reportUnusedInlineConfigs:Le,disableFixes:!!ve.disableFixes,stats:ve.stats,ruleFilter:me}}function Ne(ve,Pe,ee){const te=ee.filter(De=>De.parserOptions).reduce((De,Le)=>t(De,Le.parserOptions),{}),Z=t(te,Pe||{});return Z.sourceType==="module"&&(Z.ecmaFeatures=Object.assign({},Z.ecmaFeatures,{globalReturn:!1})),Z.ecmaVersion=J(ve,Z.ecmaVersion),Z}function Be({globals:ve,parser:Pe,parserOptions:ee}){const{ecmaVersion:te,sourceType:Z}=ee;return{globals:ve,ecmaVersion:Q(te),sourceType:Z,parser:Pe,parserOptions:ee}}function j(ve,Pe){return Object.assign(Object.create(null),...Pe.filter(ee=>ee.globals).map(ee=>ee.globals),ve)}function Qe(ve,Pe,ee){const{type:te,key:Z}=Pe;ee.times||(ee.times={passes:[{}]});const fe=ee.fixPasses;fe>ee.times.passes.length-1&&ee.times.passes.push({}),Z?(ee.times.passes[fe][te]??={},ee.times.passes[fe][te][Z]??={total:0},ee.times.passes[fe][te][Z].total+=ve):(ee.times.passes[fe][te]??={total:0},ee.times.passes[fe][te].total+=ve)}function ut(ve,Pe){return Array.isArray(ve)?A(Pe,ve.slice(1)):Pe??[]}function rt(ve,Pe,ee){const Z=Pe.parserOptions.ecmaFeatures||{},fe=Pe.ecmaVersion||O;return e.analyze(ve,{ignoreEval:!0,nodejsScope:Z.globalReturn,impliedStrict:Z.impliedStrict,ecmaVersion:typeof fe=="number"?fe:6,sourceType:Pe.sourceType||"script",childVisitorKeys:n.KEYS,fallback:m.getKeys})}function ze(ve,Pe){if(!ve||typeof ve!="object"||typeof ve.create!="function")throw new TypeError(`Error while loading rule '${Pe.id}': Rule must be an object with a \`create\` method`);try{return ve.create(Pe)}catch(ee){throw ee.message=`Error while loading rule '${Pe.id}': ${ee.message}`,ee}}function Xe(ve,Pe,ee,te,Z,fe,De,Le,me,V,ne,ue,Ce,qe,_e){const Ke=new g,Je=new z({cwd:V,filename:Le,physicalFilename:ne||Le,sourceCode:ve,parserOptions:{...fe.parserOptions},parserPath:te,languageOptions:fe,settings:De}),pe=ve.traverse();return Object.keys(Pe).forEach(ye=>{const Re=re.getRuleNumericSeverity(Pe[ye]);if(Re===0||ue&&!ue({ruleId:ye,severity:Re}))return;const Oe=ee(ye);if(!Oe){_e.addError({ruleId:ye});return}const it=Je.extend({id:ye,options:ut(Pe[ye],me?Oe.meta?.defaultOptions:void 0),report(...Ye){const st=_e.addRuleMessage(ye,Re,...Ye);if(st.fix&&!(Oe.meta&&Oe.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(st.suggestions&&!(Oe.meta&&Oe.meta.hasSuggestions===!0))throw Oe.meta&&Oe.meta.docs&&typeof Oe.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),Ge=d.enabled||Ce?d.time(ye,ze,Ce)(Oe,it):ze(Oe,it),Ze=Ce?Ge.result:Ge;Ce&&Qe(Ge.tdiff,{type:"rules",key:ye},qe);function lt(Ye){return function(...mt){try{const yt=Ye(...mt),pt=Ce?yt.result:yt;return Ce&&Qe(yt.tdiff,{type:"rules",key:ye},qe),pt}catch(yt){throw yt.ruleId=ye,yt}}}if(typeof Ze>"u"||Ze===null)throw new Error(`The create() function for rule '${ye}' did not return an object.`);Object.keys(Ze).forEach(Ye=>{const st=d.enabled||Ce?d.time(ye,Ze[Ye],Ce):Ze[Ye];Ke.add(Ye,lt(st))})}),X.getInstance(Z).traverseSync(ve,Ke,{steps:pe}),_e}function ht(ve){if(typeof ve=="object"){const{hasBOM:Pe,text:ee}=ve;return(Pe?"\uFEFF":"")+ee}return String(ve)}function dt(ve,Pe){return ve.lastConfigArray&&ve.lastConfigArray.pluginEnvironments.get(Pe)||r.get(Pe)||null}function at(ve,Pe){return ve.lastConfigArray&&ve.lastConfigArray.pluginRules.get(Pe)||ve.ruleMap.get(Pe)}function tt(ve){if(ve)return ve;if(typeof Ft=="object")return Ft.cwd()}const we=new WeakMap;function Ee(ve){const{configType:Pe}=we.get(ve);if(Pe==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Se{constructor({cwd:Pe,configType:ee="flat",flags:te=[],warningService:Z=new Fe}={}){const fe=[];te.forEach(De=>{if(k.has(De)){const Le=k.get(De),me=R(Le),V=`The flag '${De}' is inactive: ${me}`;if(typeof Le.replacedBy>"u")throw new Error(V);typeof Le.replacedBy=="string"&&fe.push(Le.replacedBy),Z.emitInactiveFlagWarning(De,V);return}if(!w.has(De))throw new Error(`Unknown flag '${De}'.`);fe.push(De)}),we.set(this,{cwd:tt(Pe),flags:fe,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ee,parserMap:new Map([["espree",o]]),ruleMap:new s,warningService:Z}),this.version=l.version}static get version(){return l.version}hasFlag(Pe){return we.get(this).flags.includes(Pe)}#e(Pe,ee,te){const Z=we.get(this),fe=ee||{},De=Ie(te,fe);let Le=P,me=o;if(typeof fe.parser=="object"&&fe.parser!==null)Le=fe.parser.filePath,me=fe.parser.definition;else if(typeof fe.parser=="string"){if(!Z.parserMap.has(fe.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${fe.parser}' was not found.`,line:0,column:0,nodeType:null}];Le=fe.parser,me=Z.parserMap.get(fe.parser)}const V=De.allowInlineConfig&&!De.warnInlineConfig?$(Pe.body):{},ne=Object.assign({builtin:!0},fe.env,V),ue=Object.keys(ne).filter(Re=>ne[Re]).map(Re=>dt(Z,Re)).filter(Re=>Re),Ce=Ne(me,fe.parserOptions||{},ue),qe=j(fe.globals||{},ue),_e=fe.settings||{},Ke=Be({globals:fe.globals,parser:me,parserOptions:Ce});if(Z.lastSourceCode)Z.lastSourceCode.scopeManager||(Z.lastSourceCode=new i({text:Z.lastSourceCode.text,ast:Z.lastSourceCode.ast,hasBOM:Z.lastSourceCode.hasBOM,parserServices:Z.lastSourceCode.parserServices,visitorKeys:Z.lastSourceCode.visitorKeys,scopeManager:rt(Z.lastSourceCode.ast,Ke)}));else{let Re;De.stats&&(Re=S());const it=new B().parseSync(Pe,{language:b,languageOptions:Ke});if(De.stats){const Ge=x(Re);Qe(Ge,{type:"parse"},Z)}if(!it.ok)return it.errors;Z.lastSourceCode=it.sourceCode}const Je=Z.lastSourceCode,pe=new I({ruleMapper:Re=>at(Z,Re),language:b,sourceCode:Je,disableFixes:De.disableFixes}),le=De.allowInlineConfig?xe(Je,Re=>at(Z,Re),De.warnInlineConfig,fe,pe):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ie(Je.scopeManager.scopes[0],qe,{exportedVariables:le.exportedVariables,enabledGlobals:le.enabledGlobals});const ye=Object.assign({},fe.rules,le.configuredRules);try{Xe(Je,ye,Re=>at(Z,Re),Le,b,Ke,_e,De.filename,!0,Z.cwd,te.physicalFilename,null,De.stats,Z,pe)}catch(Re){if(Re.message+=`
|
|
130
130
|
Occurred while linting ${De.filename}`,F("An error occurred while traversing"),F("Filename:",De.filename),Re.currentNode){const{line:Oe}=Je.getLoc(Re.currentNode).start;F("Line:",Oe),Re.message+=`:${Oe}`}throw F("Parser Options:",Ce),F("Parser Path:",Le),F("Settings:",_e),Re.ruleId&&(Re.message+=`
|
|
131
131
|
Rule: "${Re.ruleId}"`),Re}return c({language:b,sourceCode:Je,directives:le.disableDirectives,disableFixes:De.disableFixes,problems:pe.messages.sort((Re,Oe)=>Re.line-Oe.line||Re.column-Oe.column),reportUnusedDisableDirectives:De.reportUnusedDisableDirectives})}_verifyWithoutProcessors(Pe,ee,te){const Z=we.get(this),fe=ae(te.filename||"<input>");let De;typeof Pe=="string"?(Z.lastSourceCode=null,De=Pe):(Z.lastSourceCode=Pe,De=Pe.text);const Le=new G(fe,De,{physicalPath:te.physicalFilename});return this.#e(Le,ee,te)}verify(Pe,ee,te){F("Verify");const{configType:Z,cwd:fe}=we.get(this),De=typeof te=="string"?{filename:te}:te||{},Le=ee??{};if(Z!=="eslintrc"){let me=Le;return(!Array.isArray(Le)||typeof Le.getConfig!="function")&&(me=new E(Le,{basePath:fe}),me.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(Pe,me,De,!0))}return typeof Le.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(Pe,Le,De)):De.preprocess||De.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(Pe,Le,De)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(Pe,Le,De))}_verifyWithFlatConfigArrayAndProcessor(Pe,ee,te,Z){const fe=we.get(this),De=te.filename||"<input>",Le=ae(De),me=te.physicalFilename||Le,V=ht(Pe),ne=new G(Le,V,{physicalPath:me}),ue=te.preprocess||(ye=>[ye]),Ce=te.postprocess||(ye=>ye.flat()),qe=new H,_e=qe.preprocessSync(ne,{processor:{preprocess:ue,postprocess:Ce}});if(!_e.ok)return _e.errors;const Ke=te.filterCodeBlock||(ye=>ye.endsWith(".js")),Je=a.extname(De),{files:pe}=_e,le=pe.map(ye=>(F("A code block was found: %o",ye.path||"(unnamed)"),typeof ye=="string"?this._verifyWithFlatConfigArrayAndWithoutProcessors(ye,ee,te):Ke(ye.path,ye.body)?Z&&(V!==ye.rawBody||a.extname(ye.path)!==Je)?(F("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(ye.rawBody,Z,{...te,filename:ye.path,physicalFilename:ye.physicalPath})):(fe.lastSourceCode=null,this.#t(ye,ee,{...te,filename:ye.path,physicalFilename:ye.physicalPath})):(F("This code block was skipped."),[])));return qe.postprocessSync(ne,le,{processor:{preprocess:ue,postprocess:Ce}})}#t(Pe,ee,te){const Z=we.get(this),fe=ee||{},{settings:De={},languageOptions:Le}=fe,me=Ie(te,fe);if(Z.lastSourceCode)Z.lastSourceCode.scopeManager===null&&(Z.lastSourceCode=new i({text:Z.lastSourceCode.text,ast:Z.lastSourceCode.ast,hasBOM:Z.lastSourceCode.hasBOM,parserServices:Z.lastSourceCode.parserServices,visitorKeys:Z.lastSourceCode.visitorKeys,scopeManager:rt(Z.lastSourceCode.ast,Le)}));else{let _e;me.stats&&(_e=S());const Je=new B().parseSync(Pe,fe);if(me.stats){const pe=x(_e);Qe(pe,{type:"parse"},Z)}if(!Je.ok)return Je.errors;Z.lastSourceCode=Je.sourceCode}const V=Z.lastSourceCode,ne=new I({ruleMapper:_e=>fe.getRuleDefinition(_e),language:fe.language,sourceCode:V,disableFixes:me.disableFixes});V.applyLanguageOptions?.(Le);const ue={rules:{}};if(me.allowInlineConfig)if(me.warnInlineConfig)V.getInlineConfigNodes&&V.getInlineConfigNodes().forEach(_e=>{const Ke=V.getLoc(_e),Je=V.getRange(_e);ne.addWarning({message:`'${V.text.slice(Je[0],Je[1])}' has no effect because you have 'noInlineConfig' setting in ${me.warnInlineConfig}.`,loc:Ke})});else{const _e=V.applyInlineConfig?.();if(_e){_e.problems.forEach(Ke=>{ne.addFatal(Ke)});for(const{config:Ke,loc:Je}of _e.configs)Object.keys(Ke.rules).forEach(pe=>{const le=fe.getRuleDefinition(pe),ye=Ke.rules[pe];if(!le){ne.addError({ruleId:pe,loc:Je});return}if(Object.hasOwn(ue.rules,pe)){ne.addError({message:`Rule "${pe}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Je});return}try{const Re=se(ye);let Oe=Re;T(pe,Oe[0]);let it=!0;if(Oe.length===1&&fe.rules&&Object.hasOwn(fe.rules,pe))Oe=[Oe[0],...fe.rules[pe].slice(1)],fe.rules[pe][0]>0&&(it=!1);else{const Ge=Oe.slice(1),Ze=A(le.meta?.defaultOptions,Ge);Ze.length&&(Oe=[Oe[0],...Ze])}me.reportUnusedInlineConfigs!=="off"&&de(fe,Je,ne,pe,Oe,Re,me.reportUnusedInlineConfigs),it&&fe.validateRulesConfig({[pe]:Oe}),ue.rules[pe]=Oe}catch(Re){if(Re.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw Re;let Oe=Re.message.slice(Re.message.startsWith('Key "rules":')?Re.message.indexOf(":",12)+1:Re.message.indexOf(":")+1).trim();Re.messageTemplate&&(Oe+=` You passed "${ye}".`),ne.addError({ruleId:pe,message:`Inline configuration for rule "${pe}" is invalid:
|
|
132
132
|
${Oe}
|