eslint-plugin-sukka 6.13.2 → 6.14.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/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- let e,t;import*as r from"node:path";import*as n from"node:fs";import*as u from"module";import{createRule as a,isParserWithTypeInformation as i,ensureParserWithTypeInformation as o}from"@eslint-sukka/shared";import{AST_NODE_TYPES as s,ASTUtils as d,AST_TOKEN_TYPES as l,TSESLint as c,ESLintUtils as f}from"@typescript-eslint/utils";import*as p from"typescript";import{SymbolFlags as h,TypeFlags as m,SyntaxKind as g}from"typescript";import{getTypeName as y}from"@typescript-eslint/type-utils";var b,v,x,E,C,A,S,D,_,w,k,I,T,F,P,B,j,L,O,R,M,N,$,U,V,z,q,W,G,Z,H,K,X,J,Q,Y,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,eh,em,eg,ey,eb,ev,ex,eE,eC,eA,eS,eD,e_,ew,ek,eI,eT,eF,eP,eB,ej,eL,eO,eR,eM,eN,e$,eU,eV,ez,eq,eW,eG,eZ,eH,eK,eX,eJ,eQ,eY,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta,ti,to,ts,td,tl,tc,tf,tp,th,tm,tg,ty,tb,tv,tx,tE,tC,tA,tS,tD,t_,tw,tk,tI,tT,tF,tP,tB,tj,tL,tO,tR,tM,tN,t$,tU,tV,tz,tq,tW,tG,tZ,tH,tK,tX,tJ,tQ,tY,t0,t1,t2,t3,t4,t5,t8,t6,t9,t7,re,rt,rr,rn,ru,ra,ri,ro,rs,rd,rl,rc,rf,rp,rh,rm,rg,ry,rb,rv,rx,rE,rC,rA,rS,rD,r_,rw,rk,rI,rT,rF,rP,rB,rj,rL,rO,rR,rM,rN,r$,rU,rV,rz,rq,rW,rG,rZ,rH,rK,rX,rJ,rQ,rY,r0,r1,r2,r3,r4,r5,r8,r6,r9,r7,ne,nt,nr,nn,nu,na,ni,no,ns,nd,nl,nc,nf,np,nh,nm,ng,ny,nb,nv,nx,nE,nC,nA,nS,nD,n_,nw,nk,nI,nT,nF,nP,nB,nj,nL,nO,nR,nM,nN,n$,nU,nV,nz,nq,nW,nG,nZ,nH,nK,nX,nJ,nQ,nY,n0,n1,n2,n3,n4,n5,n8,n6,n9,n7,ue,ut,ur,un,uu,ua,ui,uo,us,ud,ul,uc,uf,up,uh,um,ug,uy,ub,uv,ux,uE,uC,uA,uS,uD,u_,uw,uk,uI,uT,uF,uP,uB,uj,uL,uO,uR,uM,uN,u$,uU,uV,uz,uq,uW,uG,uZ,uH,uK,uX,uJ,uQ,uY,u0,u1,u2,u3,u4,u5,u8,u6,u9,u7,ae,at,ar,an,au,aa,ai,ao,as,ad,al,ac,af,ap,ah,am,ag,ay,ab,av,ax,aE,aC,aA,aS,aD,a_,aw,ak,aI,aT,aF,aP,aB,aj,aL,aO,aR,aM,aN,a$,aU,aV,az,aq,aW,aG,aZ,aH,aK,aX,aJ,aQ,aY,a0,a1,a2,a3,a4,a5,a8,a6,a9,a7,ie,it,ir,iu,ia,ii,io,is,id,il,ic,ip,ih,im,ig,iy,ib,iv,ix,iE,iC,iA,iS,iD,i_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ik(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var iI=ik(r),iT={version:"56.0.1"};function iF(){return v?b:(v=1,b=function(e){let t=iI.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v${iT.version}/docs/rules/${t}.md`})}var iP=iw(iF());let iB=e=>!!e&&Symbol.iterator in e;class ij extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let iL={abort(){throw new ij("Fix aborted.")}};function iO(e){return t=>{let r=e(t,iL);if(iB(r))try{return[...r]}catch(e){if(e instanceof ij)return null;throw e}return r}}function iR(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function iM(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function iN(e){return e?.type==="MemberExpression"}function i$(e){return e?.type==="AwaitExpression"}function iU(e,t){return!!iM(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function iV(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function iz(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function iq(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function iW({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}function iG(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var iZ=iW({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!iU(t.callee.property,"flatMap")||!(iz(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(iq(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&iq(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let iH=new Set(["href","pathname","search","hash","origin"]);var iK=iW({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(iU(e,t))return e;for(;iN(e);){if(iU(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=iX(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=iX(t.parent);if(iH.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function iX(e){if(iN(e)&&iM(e.property))return e.property.name}var iJ=iW({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),iQ=iW({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});let iY=/^toLocale(?<name>Upper|Lower)Case$/g;var i0=iW({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!iN(t.callee)||!iM(t.callee.property))return;let{property:r}=t.callee,n=iY.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function i1(e){return JSON.stringify(e)}var i2=iW({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=i1(t.quasis[0].value.cooked),u=iR(t,e=>"Property"===e.type&&e.key===t);return u?e.replaceText(u,`${n}: ${r.getText(u.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});let i3=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var i4=iW({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=i3.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of n){let n=r.parent;if(n?.type==="BinaryExpression"&&"instanceof"===n.operator&&n.right===r){if("Array"===r.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let u=r.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:u},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${i1(u)}`)})}}}}}}});let i5=/\P{ASCII}/u;function i8(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function i6(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=i9(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${i7(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(i9(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function i9(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${i7(t)}}`:`\\u${i7(t)}`})}function i7(e){return e.toString(16).padStart(4,"0").toUpperCase()}iW({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):i5,only:e?.only}),create:(e,{pattern:t,only:r})=>i8(t,(n,u)=>{if(r&&r!==u)return;let a=i6(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});let oe=/[\u061C\u202A-\u202E\u2066-\u2069]/;var ot=iW({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>i8(oe,(t,r)=>{let n=RegExp(oe.source,"gu"),u={kind:r,text:i9(t.value,n)},a=i6(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});let or=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var on=iW({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>i8(or,t=>{let r=i6(t,RegExp(or.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),ou=iW({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(oa);if(!n)return;let u=t[t.indexOf(n)-1];u&&"VariableDeclaration"===u.type&&1===u.declarations.length&&u.declarations.some(({init:e,id:t})=>null!==e&&iq(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:a}=u.declarations[0];if(!(t&&a&&n.argument))return null;let i=!i$(t)||iR(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${i$(t)?`Promise<${n}>`:n}`})(r.getText(i));return[e.remove(u),e.replaceText(n.argument,o)]})})}})});function oa(e){return"ReturnStatement"===e.type&&iM(e.argument)}var oi=iW({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!iz(t))return;let n=function(e,t){let r=t.find(oo);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>iq(r.argument,e)));if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function oo(e){return"ReturnStatement"===e.type&&iM(e.argument)}var os=iW({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u;if(!iz(n)||!(1===r.length&&function(e,t){if(!("IfStatement"===e.type&&null===e.alternate))return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let a=(u=r[0],function*(t){let r;if("IfStatement"!==u.type)return;let{test:n,consequent:a}=u;yield t.insertTextBefore(n,"!("),yield t.insertTextAfter(n,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(u,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),od=iW({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return iU(e,"XMLHttpRequest")})(t)||iU(t.callee,"ActiveXObject")&&iV(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return iU(e,t)||iN(e)&&iU(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return iU(e,r)&&iN(t)&&iU(t.property,"load")||iN(e)&&iU(e.object,r)&&iU(e.property,["ajax","get","post","getJSON","getScript"])}(t)||ol(t,"axios")||ol(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function ol(e,t){return iU(e.callee,"require")&&iV(e.arguments[0],t)}let oc=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var of=iW({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!oc.has(t.callee.name)||function(e){if(!iU(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||iV(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),op=iW({name:"string/no-unneeded-to-string",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `String#toString()` when simpler alternatives exist",recommended:"stylistic",requiresTypeChecking:!0},schema:[],messages:{invalid:"Disallow use `.toString()` in string"}},create(e){iG(e.sourceCode.parserServices);let{program:t,esTreeNodeToTSNodeMap:r}=e.sourceCode.parserServices,n=t.getTypeChecker();return{CallExpression(t){if("MemberExpression"!==t.callee.type)return;let{object:u,property:a}=t.callee;(iU(a,"toString")||iV(a,"toString"))&&function(e,t){let r=e.getTypeAtLocation(t);if(r.isStringLiteral()||"string"===e.typeToString(r))return!0;let n=r.getSymbol();return n&&"String"===e.symbolToString(n)}(n,r.get(u))&&e.report({node:a,messageId:"invalid",fix:r=>r.replaceText(t,e.sourceCode.getText(u))})}}}}),oh=iW({name:"type/no-force-cast-via-top-type",meta:{type:"problem",docs:{description:"Disallowing cast a type `T` to unrelated or incompatible type `Q` via `T as any as Q`",recommended:"recommended"},schema:[],messages:{invalid:"Don't cast this expression to another type by `as {{type}} as T`"}},create:e=>({TSAsExpression(t){var r,n;if(!("TSAnyKeyword"===(r=t.typeAnnotation).type||"TSUnknownKeyword"===r.type)||!((n=t.parent)&&"TSAsExpression"===n.type&&"TSTypeReference"===n.typeAnnotation.type))return;let u="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:u}})}})});let om=new Set(["BigInt","Boolean","Number","String","Symbol"]);var og=iW({name:"type/no-wrapper-type-reference",meta:{type:"problem",fixable:"code",docs:{description:"Disallow wrapper type for type reference",recommended:"recommended"},schema:[],messages:{instead:"Use {{name}} instead"}},create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!om.has(t.typeName.name))return;let r=t.typeName.name.toLowerCase();e.report({node:t,messageId:"instead",data:{name:r},fix:e=>e.replaceText(t.typeName,r)})}})}),oy=iW({name:"no-default-error",meta:{type:"problem",docs:{description:"Restrict the usage of default (unextended) error",recommended:"strict",requiresTypeChecking:!0},schema:[],messages:{invalid:"Default error object should not be used in this project"}},create(e){iG(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,n=r.getTypeChecker();function u(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let n=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(n)}(n,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&u(e.argument)},NewExpression:u,CallExpression:u}}});let ob={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"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],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"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],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"]};for(let e of Object.keys(ob))Object.freeze(ob[e]);Object.freeze(ob);let ov=new Set(["parent","leadingComments","trailingComments"]);function ox(e){return!ov.has(e)&&"_"!==e[0]}function oE(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function oC(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=oE(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function oA(e){return t=>!e(t)}function oS(e,t){return"Punctuator"===e.type&&e.value===t}function oD(e){return oS(e,"=>")}function o_(e){return oS(e,",")}function ow(e){return oS(e,";")}function ok(e){return oS(e,":")}function oI(e){return oS(e,"(")}function oT(e){return oS(e,")")}function oF(e){return oS(e,"[")}function oP(e){return oS(e,"]")}function oB(e){return oS(e,"{")}function oj(e){return oS(e,"}")}function oL(e){return["Block","Line","Shebang"].includes(e.type)}let oO=oA(oD),oR=oA(o_),oM=oA(ow),oN=oA(ok),o$=oA(oI),oU=oA(oT),oV=oA(oF),oz=oA(oP),oq=oA(oB),oW=oA(oj),oG=oA(oL);function oZ(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,oD);n=r.loc.start,u=r.loc.end}else n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(e.id?t.getTokenAfter(e.id,oI):t.getFirstToken(e,oI)).loc.start;return{start:{...n},end:{...u}}}let oH="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},oK=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),oX=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),oJ=new Set([Object.freeze,Object.preventExtensions,Object.seal]),oQ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function oY(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=o1(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=o1(u,t);if(null==e)return null;r.push(e.value)}}return r}let o0=Object.freeze({ArrayExpression(e,t){let r=oY(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?o1(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=o1(e.left,t),n=o1(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=oY(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=o1(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=o2(r,t);if(null!=a){let e=u.value,t=a.value;if(oX.has(e[t]))return{value:e[t](...n)};if(oJ.has(e[t]))return{value:n[0]}}}}else{let u=o1(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(oX.has(t))return{value:t(...n)};if(oJ.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=o1(e.test,t);return null!=r?r.value?o1(e.consequent,t):o1(e.alternate,t):null},ExpressionStatement:(e,t)=>o1(e.expression,t),Identifier(e,t){if(null!=t){let r=oC(t,e);if(null!=r&&0===r.defs.length&&oK.has(r.name)&&r.name in oH)return{value:oH[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return o1(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=o1(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=o1(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=o1(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=o2(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of oQ)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=o1(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=o1(e.callee,t),n=oY(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(oX.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=o2(n,t),u=o1(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=o1(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>o1(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=o1(e.tag,t),n=oY(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=oY(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n],t+=e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let r=o1(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function o1(e,t){return null!=e&&Object.hasOwnProperty.call(o0,e.type)?o0[e.type](e,t):null}function o2(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?o1(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function o3(e,t=null){try{return o1(e,t)}catch(e){return null}}function o4(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let r=o3(e,t);return r&&String(r.value)}function o5(e,t){switch(e.type){case"MemberExpression":if(e.computed)return o4(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return o4(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function o8(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=o5(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}let o6=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),o9=Object.freeze(new Set(["-","+","!","~"]));function o7(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let se=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(ox)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(o7(e)&&this.$visit(e,t,r))return!0}else if(o7(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&o6.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&o9.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function st(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return se.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||ob)}function sr(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&oI(i)&&oT(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,oI);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,oI);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}let sn=/\$(?:[$&`']|[1-9][0-9]?)/gu,su=new WeakMap;class sa{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");su.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=su.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(sn,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}let si=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,so=Function.call.bind(Object.hasOwnProperty),ss=Symbol("read"),sd=Symbol("call"),sl=Symbol("construct"),sc=Symbol("esm"),sf={require:{[sd]:!0}};function sp(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class sh{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);sp(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);sp(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(sf)){let r=o4(t.arguments[0]);if(null==r||!so(e,r))continue;let n=e[r],u=[r];n[ss]&&(yield{node:t,path:u,type:ss,info:n[ss]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!si.test(t.type)||null==t.source)continue;let r=t.source.value;if(!so(e,r))continue;let n=e[r],u=[r];if(n[ss]&&(yield{node:t,path:u,type:ss,info:n[ss]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[ss]&&(yield{node:t,path:u.concat(e),type:ss,info:r[ss]})}else for(let e of t.specifiers){let t=so(n,sc),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(sm),(e.path.length>=2||e.type!==ss)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[ss]&&(yield{node:e,path:t,type:ss,info:r[ss]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=o5(u);if(null==e||!so(r,e))return;t=t.concat(e);let n=r[e];n[ss]&&(yield{node:u,path:t,type:ss,info:n[ss]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[sd]&&(yield{node:u,path:t,type:sd,info:r[sd]});return}if("NewExpression"===u.type){u.callee===n&&r[sl]&&(yield{node:u,path:t,type:sl,info:r[sl]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=oC(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=o5(n);if(null==e||!so(r,e))continue;let u=t.concat(e),a=r[e];a[ss]&&(yield{node:n,path:u,type:ss,info:a[ss]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!so(r,u))return;t=t.concat(u);let a=r[u];a[ss]&&(yield{node:e,path:t,type:ss,info:a[ss]}),yield*this._iterateVariableReferences(oC(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(oC(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!so(r,n))return;t=t.concat(n);let u=r[n];u[ss]&&(yield{node:e,path:t,type:ss,info:u[ss]})}}}function sm(e,t){return!(1===t&&"default"===e)}sh.READ=ss,sh.CALL=sd,sh.CONSTRUCT=sl,sh.ESM=sc;var sg=ik(Object.freeze({__proto__:null,CALL:sd,CONSTRUCT:sl,ESM:sc,PatternMatcher:sa,READ:ss,ReferenceTracker:sh,default:{CALL:sd,CONSTRUCT:sl,ESM:sc,findVariable:oC,getFunctionHeadLocation:oZ,getFunctionNameWithKind:o8,getInnermostScope:oE,getPropertyName:o5,getStaticValue:o3,getStringIfConstant:o4,hasSideEffect:st,isArrowToken:oD,isClosingBraceToken:oj,isClosingBracketToken:oP,isClosingParenToken:oT,isColonToken:ok,isCommaToken:o_,isCommentToken:oL,isNotArrowToken:oO,isNotClosingBraceToken:oW,isNotClosingBracketToken:oz,isNotClosingParenToken:oU,isNotColonToken:oN,isNotCommaToken:oR,isNotCommentToken:oG,isNotOpeningBraceToken:oq,isNotOpeningBracketToken:oV,isNotOpeningParenToken:o$,isNotSemicolonToken:oM,isOpeningBraceToken:oB,isOpeningBracketToken:oF,isOpeningParenToken:oI,isParenthesized:sr,isSemicolonToken:ow,PatternMatcher:sa,READ:ss,ReferenceTracker:sh},findVariable:oC,getFunctionHeadLocation:oZ,getFunctionNameWithKind:o8,getInnermostScope:oE,getPropertyName:o5,getStaticValue:o3,getStringIfConstant:o4,hasSideEffect:st,isArrowToken:oD,isClosingBraceToken:oj,isClosingBracketToken:oP,isClosingParenToken:oT,isColonToken:ok,isCommaToken:o_,isCommentToken:oL,isNotArrowToken:oO,isNotClosingBraceToken:oW,isNotClosingBracketToken:oz,isNotClosingParenToken:oU,isNotColonToken:oN,isNotCommaToken:oR,isNotCommentToken:oG,isNotOpeningBraceToken:oq,isNotOpeningBracketToken:oV,isNotOpeningParenToken:o$,isNotSemicolonToken:oM,isOpeningBraceToken:oB,isOpeningBracketToken:oF,isOpeningParenToken:oI,isParenthesized:sr,isSemicolonToken:ow})),sy=iw(function(){if(E)return x;E=1;let{isParenthesized:e}=sg,t="too-deep",r="should-parenthesized";return x={create:n=>({ConditionalExpression(u){if([u.test,u.consequent,u.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:a}=n,i=a.getAncestors(u).reverse(),o=i.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==o||e(u,a)?o>1?{node:o>2?i[o-3]:u,messageId:t}:void 0:{node:u,messageId:r,fix:e=>[e.insertTextBefore(u,"("),e.insertTextAfter(u,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[t]:"Do not nest ternary expressions.",[r]:"Nest ternary expression should be parenthesized."}}}}());function sb(){if(A)return C;A=1;let{isParenthesized:e,isOpeningParenToken:t,isClosingParenToken:r}=sg;function n(t,r){let n=0;for(;e(n+1,t,r);)n++;return n}function u(e,u){let a=n(e,u);return 0===a?[]:[...u.getTokensBefore(e,{count:a,filter:t}),...u.getTokensAfter(e,{count:a,filter:r})]}function a(e,t){let r=u(e,t),[n]=(r[0]||e).range,[,a]=(r.at(-1)||e).range;return[n,a]}return C={isParenthesized:e,getParenthesizedTimes:n,getParentheses:u,getParenthesizedRange:a,getParenthesizedText:function(e,t){let[r,n]=a(e,t);return t.text.slice(r,n)}}}function sv(){if(D)return S;function e(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}return D=1,S={isLiteral:e,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:t=>e(t,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex}}function sx(){if(w)return _;function e(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}return w=1,_={isCallExpression:(t,r)=>e(t,r,["CallExpression"]),isNewExpression:(t,r)=>{if("boolean"==typeof r?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return e(t,r,["NewExpression"])},isCallOrNewExpression:(t,r)=>e(t,r,["CallExpression","NewExpression"])}}function sE(){return R?O:(R=1,O=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])}function sC(){return U?$:(U=1,$=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))})}function sA(){if(K)return H;K=1;let{isStringLiteral:e}=sv(),{isCallExpression:t}=sx();return H=r=>t(r,{name:"require",argumentsLength:1,optional:!1})&&e(r.arguments[0])}function sS(){if(J)return X;function e(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}return J=1,X={isNodeMatchesNameOrPath:e,isNodeMatches:function(t,r){return r.some(r=>e(t,r))}}}function sD(){if(en)return er;en=1;let{isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a}=sv(),{isNewExpression:i,isCallExpression:o,isCallOrNewExpression:s}=sx();return er={isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a,isArrowFunctionBody:I?k:(I=1,k=function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e}),isCallExpression:o,isCallOrNewExpression:s,isDirective:F?T:(F=1,T=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive),isEmptyNode:B?P:(B=1,P=function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))}),isExpressionStatement:L?j:(L=1,j=function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}),isFunction:function(){if(N)return M;N=1;let e=sE();return M=function(t){return e.includes(t.type)}}(),isMemberExpression:sC(),isMethodCall:function(){if(z)return V;z=1;let e=sC(),{isCallExpression:t}=sx();return V=function(r,n){"string"==typeof n&&(n={methods:[n]}),Array.isArray(n)&&(n={methods:n});let{optionalCall:u,optionalMember:a,method:i,methods:o}={method:"",methods:[],...n};return t(r,{argumentsLength:n.argumentsLength,minimumArguments:n.minimumArguments,maximumArguments:n.maximumArguments,allowSpreadElement:n.allowSpreadElement,optional:u})&&e(r.callee,{object:n.object,objects:n.objects,computed:n.computed,property:i,properties:o,optional:a})}}(),isNegativeOne:function(){if(W)return q;W=1;let{isNumberLiteral:e}=sv();return q=function(t){return t?.type==="UnaryExpression"&&"-"===t.operator&&e(t.argument)&&1===t.argument.value}}(),isNewExpression:i,isReferenceIdentifier:Z?G:(Z=1,G=function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)}),isStaticRequire:sA(),isTaggedTemplateLiteral:function(){if(Y)return Q;Y=1;let{isNodeMatches:e}=sS();return Q=function(t,r){return"TemplateLiteral"===t.type&&"TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t&&(!r||e(t.parent.tag,r))}}(),isUndefined:et?ee:(et=1,ee=function(e){return"Identifier"===e.type&&"undefined"===e.name}),functionTypes:sE()}}function s_(){return eo?ei:(eo=1,ei=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator))}var sw={},sk={},sI={};function sT(){var e,t;return ef||(ef=1,Object.defineProperty(sw,"__esModule",{value:!0}),Object.defineProperty(sw,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(sw,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(sw,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(sw,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(sw,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(sw,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(sw,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(sw,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(el)return sk;el=1,Object.defineProperty(sk,"__esModule",{value:!0}),sk.isIdentifierChar=s,sk.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!o(n))return!1}else if(!s(n))return!1}return!t},sk.isIdentifierStart=o;let e="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r=RegExp("["+e+"]"),n=RegExp("["+e+t+"]");e=t=null;let u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function i(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function o(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):i(e,u)))}function s(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):i(e,u)||i(e,a))))}return sk}(),t=function(){if(ec)return sI;ec=1,Object.defineProperty(sI,"__esModule",{value:!0}),sI.isKeyword=function(e){return t.has(e)},sI.isReservedWord=u,sI.isStrictBindOnlyReservedWord=i,sI.isStrictBindReservedWord=function(e,t){return a(e,t)||i(e)},sI.isStrictReservedWord=a;let e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},t=new Set(e.keyword),r=new Set(e.strict),n=new Set(e.strictBind);function u(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return u(e,t)||r.has(e)}function i(e){return n.has(e)}return sI}()),sw}function sF(){if(eg)return em;eg=1;let e=t=>[t,...t.childScopes.flatMap(t=>e(t))];return em=e}function sP(){if(eb)return ey;eb=1;let e=sF();return ey=t=>[...new Set(e(t).flatMap(({references:e})=>e))]}function sB(){if(ex)return ev;ex=1;let{isIdentifierName:e,isStrictReservedWord:t,isKeyword:r}=sT(),n=eh?ep:(eh=1,ep=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}}),u=sP(),a=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),i=n=>"string"==typeof n&&!r(n)&&!t(n,!0)&&e(n)&&"arguments"!==n&&!a.has(n),o=(e,t)=>u(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),s=(e,t)=>!t.some(t=>n(e,t)||o(e,t)),d=()=>!0;return ev=function(e,t,r=d){if(i(e)||i(e+="_")){for(;!s(e,t)||!r(e,t);)e+="_";return e}}}function sj(){if(eS)return eA;eS=1;let e=function(){if(eC)return eE;eC=1;let e={},t=e.hasOwnProperty,r=(e,r)=>{for(let n in e)t.call(e,n)&&r(n,e[n])},n=(e,t)=>(t&&r(t,(t,r)=>{e[t]=r}),e),u=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},a=e=>"\\u"+("0000"+e).slice(-4),i=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},o=e.toString,s=Array.isArray,d=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),l=e=>"[object Object]"==o.call(e),c=e=>"string"==typeof e||"[object String]"==o.call(e),f=e=>"number"==typeof e||"[object Number]"==o.call(e),p=e=>"function"==typeof e,h=e=>"[object Map]"==o.call(e),m=e=>"[object Set]"==o.call(e),g={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},y=/[\\\b\f\n\r\t]/,b=/[0-9]/,v=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,x=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,E=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,C=(e,t)=>{let o;let A=()=>{T=I,++t.indentLevel,I=t.indent.repeat(t.indentLevel)},S={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},D=t&&t.json;D&&(S.quotes="double",S.wrap=!0),"single"!=(t=n(S,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let _="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",w=t.compact,k=t.lowercaseHex,I=t.indent.repeat(t.indentLevel),T="",F=t.__inline1__,P=t.__inline2__,B=w?"":"\n",j=!0,L="binary"==t.numbers,O="octal"==t.numbers,R="decimal"==t.numbers,M="hexadecimal"==t.numbers;if(D&&e&&p(e.toJSON)&&(e=e.toJSON()),!c(e)){if(h(e))return 0==e.size?"new Map()":(w||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+C(Array.from(e),t)+")");if(m(e))return 0==e.size?"new Set()":"new Set("+C(Array.from(e),t)+")";if(d(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+C(Array.from(e),t)+")";if(s(e))return(o=[],t.wrap=!0,F&&(t.__inline1__=!1,t.__inline2__=!0),P||A(),u(e,e=>{j=!1,P&&(t.__inline2__=!1),o.push((w||P?"":I)+C(e,t))}),j)?"[]":P?"["+o.join(", ")+"]":"["+B+o.join(","+B)+B+(w?"":T)+"]";if(f(e)){if(D)return JSON.stringify(e);if(R)return String(e);if(M){let t=e.toString(16);return k||(t=t.toUpperCase()),"0x"+t}if(L)return"0b"+e.toString(2);if(O)return"0o"+e.toString(8)}else if(l(e))return(o=[],t.wrap=!0,A(),r(e,(e,r)=>{j=!1,o.push((w?"":I)+C(e,t)+":"+(w?"":" ")+C(r,t))}),j)?"{}":"{"+B+o.join(","+B)+B+(w?"":T)+"}";else return D?JSON.stringify(e)||"null":String(e)}let N=t.escapeEverything?x:E;return o=e.replace(N,(e,r,n,u,o,s)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+i((e-55296)*1024+n-56320+65536,k)+"}":a(i(e,k))+a(i(n,k))}if(n)return a(i(n.charCodeAt(0),k));if("\0"==e&&!D&&!b.test(s.charAt(o+1)))return"\\0";if(u)return u==_||t.escapeEverything?"\\"+u:u;if(y.test(e))return g[e];if(t.minimal&&!v.test(e))return e;let d=i(e.charCodeAt(0),k);return D||d.length>2?a(d):"\\x"+("00"+d).slice(-2)}),"`"==_&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext&&(o=o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,D?"\\u003C!--":"\\x3C!--")),t.wrap&&(o=_+o+_),o};return C.version="3.0.2",eE=C}();return eA=function(t,r="'"){if("string"!=typeof t)throw TypeError("Unexpected string.");return e(t,{quotes:'"'===r?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})}}function sL(){if(e_)return eD;e_=1;let{isOpeningParenToken:e,isCommaToken:t}=sg;return eD=function(r,n){let u=r.getTokenAfter(n.callee,e),[a,i]=r.getLastTokens(n,2);return{openingParenthesisToken:u,closingParenthesisToken:i,trailingCommaToken:t(a)?a:void 0}}}function sO(){return eT?eI:(eT=1,eI=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])])}function sR(){return eO?eL:(eO=1,eL=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e)}function sM(){return eq?ez:(eq=1,ez=function(e,t){return e.loc.start.line===t.loc.start.line})}function sN(){if(eH)return eZ;eH=1;let{getStaticValue:e}=sg;function t(r){let n;switch(r?.type){case"MemberExpression":n=r.property;break;case"ChainExpression":return t(r.expression);case"Property":case"MethodDefinition":n=r.key}if(n){if("Identifier"===n.type&&!r.computed)return n.name;let t=e(n);if(!t)return;return String(t.value)}}return eZ=function e(r,n){if(r.type!==n.type)return"ChainExpression"===r.type?e(r.expression,n):"ChainExpression"===n.type&&e(r,n.expression);switch(r.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return r.name===n.name;case"Literal":return r.regex||n.regex?!!(r.regex&&n.regex&&r.regex.pattern===n.regex.pattern&&r.regex.flags===n.regex.flags):r.bigint||n.bigint?r.bigint===n.bigint:r.value===n.value;case"ChainExpression":return e(r.expression,n.expression);case"MemberExpression":{let u=t(r);if(void 0!==u)return e(r.object,n.object)&&u===t(n);return r.computed===n.computed&&e(r.object,n.object)&&e(r.property,n.property)}default:return!1}}}function s$(){return eX?eK:(eX=1,eK=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0})}function sU(){if(e0)return eY;e0=1;let e=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),t=new Set(["[","(","/","`","+","-","*",",","."]);return eY=function(r,n,u){if(""===u||u&&!t.has(u.charAt(0))||!r)return!1;let{type:a,value:i,range:o}=r,s=n.getNodeByRangeIndex(o[0]);if("Punctuator"===a){if(";"===i)return!1;if("]"===i)return!0;if(")"===i){switch(s.type){case"IfStatement":if(n.getTokenBefore(s.consequent)===r)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(s.body&&n.getTokenBefore(s.body)===r)return!1}return!0}}return!!e.has(a)||("Template"===a?i.endsWith("`"):"ObjectExpression"===s.type||"Identifier"===a&&("of"!==i||"ForOfStatement"!==s.type)&&("await"!==i||"AwaitExpression"!==s.type))}}function sV(){if(e2)return e1;e2=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sg;return e1=function(r,n){if(r.arguments.length>0)return!0;let[u,a]=n.getLastTokens(r,2);return e(u)&&t(a)&&r.callee.range[1]<r.range[1]}}function sz(){if(e4)return e3;e4=1;let{isNumberLiteral:e,isBigIntLiteral:t}=sD(),r=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n=e=>r.test(e);return e3={isDecimalIntegerNode:t=>e(t)&&n(t.raw),isDecimalInteger:n,isNumeric:r=>e(r)||t(r),isLegacyOctal:t=>e(t)&&/^0\d+$/.test(t.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}}}function sq(){if(e8)return e5;e8=1;let e=sV(),{isDecimalIntegerNode:t}=sz();return e5=function(r,n){switch(r.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!e(r,n);case"Literal":if(t(r))return!0;return!1;default:return!0}}}var sW={exports:{}};function sG(){return ta?tu:(ta=1,tu=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}})}function sZ(){if(td)return ts;td=1;let{isParenthesized:e,getParenthesizedTimes:t,getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u}=sb(),{isArrayPrototypeProperty:a,isObjectPrototypeProperty:i}=function(){if(ea)return eu;ea=1;let{isMemberExpression:e}=sD();function t(t,r){let{object:n,property:u,properties:a}={property:"",properties:[],...r};if(!e(t,{property:u,properties:a,optional:!1}))return;let i=t.object;return e(i,{object:n,property:"prototype",optional:!1})||"Array"===n&&"ArrayExpression"===i.type&&0===i.elements.length||"Object"===n&&"ObjectExpression"===i.type&&0===i.properties.length}return eu={isArrayPrototypeProperty:(e,r)=>t(e,{...r,object:"Array"}),isObjectPrototypeProperty:(e,r)=>t(e,{...r,object:"Object"})}}(),{isNodeMatches:o,isNodeMatchesNameOrPath:s}=sS(),{isBooleanNode:d,getBooleanAncestor:l}=function(){if(ed)return es;ed=1;let e=s_(),t=e=>e?.type==="UnaryExpression"&&"!"===e.operator,r=e=>t(e.parent)&&e.parent.argument===e,n=e=>u(e.parent)&&e.parent.arguments[0]===e,u=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,a=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);return es={isBooleanNode:function i(o){if(t(o)||r(o)||u(o)||n(o))return!0;let{parent:s}=o;return!!a(s)||("IfStatement"===s.type||"ConditionalExpression"===s.type||"WhileStatement"===s.type||"DoWhileStatement"===s.type||"ForStatement"===s.type)&&s.test===o||!!e(s)&&i(s)},getBooleanAncestor:function(e){let t=!1;for(;;)if(r(e))t=!t,e=e.parent;else if(n(e))e=e.parent;else break;return{node:e,isNegative:t}}}}();return ts={avoidCapture:sB(),escapeString:sj(),getBooleanAncestor:l,getCallExpressionArgumentsText:function(){if(ek)return ew;ek=1;let e=sL();return ew=function(t,r){let{openingParenthesisToken:n,closingParenthesisToken:u}=e(t,r);return t.text.slice(n.range[1],u.range[0])}}(),getCallExpressionTokens:sL(),getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u,getParenthesizedTimes:t,getReferences:sP(),getScopes:sF(),getVariableIdentifiers:sO(),hasOptionalChainElement:function(){if(eP)return eF;eP=1;let e=e=>"MemberExpression"===e.type||"CallExpression"===e.type;return eF=function t(r){return!!e(r)&&(!!r.optional||"MemberExpression"===r.type&&t(r.object))}}(),isArrayPrototypeProperty:a,isBooleanNode:d,isFunctionSelfUsedInside:function(){if(ej)return eB;ej=1;let{findVariable:e}=sg,t=(t,r)=>{let{references:n=[]}=e(t,r)||{};return n};return eB=function(e,r){if(r.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:n,id:u}=e;return"ArrowFunctionExpression"!==n&&(!!(r.thisFound||t(r,"arguments").some(({from:e})=>e===r))||!!u&&t(r,u).length>0)}}(),isLeftHandSide:sR(),isLogicalExpression:s_(),isMethodNamed:eM?eR:(eM=1,eR=(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t),isNodeMatches:o,isNodeMatchesNameOrPath:s,isNodeValueNotDomNode:function(){if(e$)return eN;e$=1;let{isUndefined:e}=sD(),t=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]);return eN=r=>t.has(r.type)||e(r)}(),isNodeValueNotFunction:function(){if(eV)return eU;eV=1;let{isUndefined:e,isCallExpression:t,isMethodCall:r}=sD(),n=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),u=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);return eU=a=>n.has(a.type)||u.has(a.type)||e(a)||t(a)&&!r(a,{method:"bind",optionalCall:!1,optionalMember:!1})}(),isObjectPrototypeProperty:i,isOnSameLine:sM(),isParenthesized:e,isSameIdentifier:eG?eW:(eG=1,eW=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name),isSameReference:sN(),isShadowed:s$(),isValueNotUsable:function(){if(eQ)return eJ;eQ=1;let{isExpressionStatement:e}=sD();return eJ=t=>e(t.parent)}(),needsSemicolon:sU(),shouldAddParenthesesToMemberExpressionObject:sq(),shouldAddParenthesesToCallExpressionCallee:e9?e6:(e9=1,e6=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type}),shouldAddParenthesesToAwaitExpressionArgument:te?e7:(te=1,e7=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type}),singular:function(){var e;if(tn)return tr;tn=1;let{singular:t}=(tt||(tt=1,e=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},sW.exports=e()),sW.exports);return tr=e=>{let r=t(e);if(r!==e)return r}}(),toLocation:sG(),getAncestor:to?ti:(to=1,ti=function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e})}}sW.exports;var sH=iw(function(){if(tc)return tl;tc=1;let{findVariable:e}=sg,{getAncestor:t}=sZ(),{isStaticRequire:r,isStringLiteral:n,isMemberExpression:u}=sD(),a="prefer-event-target",i=new Set(["@angular/core","eventemitter3"]),o=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function s(e){let t;return!!e&&(r(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(n(t)&&i.has(t.value)))}return tl={create:r=>({Identifier(n){if(!("EventEmitter"===n.name&&(("ClassDeclaration"===n.parent.type||"ClassExpression"===n.parent.type)&&n.parent.superClass===n||"NewExpression"===n.parent.type&&n.parent.callee===n)))return;let d=r.sourceCode.getScope(n);if(!function(e){if(!e)return!1;let r=t(e,"ImportDeclaration");return!!(i.has(r?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&o(e.parent.parent)&&s(e.parent.parent.parent.init)||o(e)&&u(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&s(e.parent.init.object))}(e(d,n)?.defs[0]?.name))return{node:n,messageId:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[a]:"Prefer `EventTarget` over `EventEmitter`."}}}}()),sK=iw(function(){if(tm)return th;tm=1;let e=sj(),t=tp?tf:(tp=1,tf={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"}),{isNumberLiteral:r}=sD(),n="prefer-keyboard-event-key",u=new Set(["keyCode","charCode","which"]),a=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,i=(e,t)=>{let r=s(t,"CallExpression",a),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},o=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,s=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},d=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},l=n=>u=>{let a=d(n,3);if(!a||"IfStatement"!==a.type)return;let{type:i,operator:o,right:s}=a.test;if(!("BinaryExpression"===i&&("=="===o||"==="===o)&&r(s)))return;let l=t[s.value]||String.fromCodePoint(s.value);if(l)return[u.replaceText(n,"key"),u.replaceText(s,e(l))]},c=e=>({messageId:n,data:{name:e.name},node:e,fix:l(e)});return th={create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=i(e,t);if(r&&n&&n.some(e=>o(t,e.identifier)))return c(t)},Property(t){let r=t.value.name;if(!u.has(r))return;let{event:n,references:a}=i(e,t);if(!n)return;let o=s(t,"VariableDeclarator"),d=o?.init;if(a&&a.some(e=>e.identifier===d))return c(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return c(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[n]:"Use `.key` instead of `.{{name}}`."}}}}()),sX=iw(function(){if(ty)return tg;ty=1;let{isMemberExpression:e}=sD(),t="error",r="suggestion";return tg={create:()=>({MemberExpression(n){if(!e(n,{property:"innerText"}))return;let u=n.property;return{node:u,messageId:t,suggest:[{messageId:r,fix:e=>e.replaceText(u,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:t,suggest:[{messageId:r,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[t]:"Prefer `.textContent` over `.innerText`.",[r]:"Switch to `.textContent`."}}}}());function sJ(){if(tI)return tk;tI=1;let{isSemicolonToken:e}=sg;return tk=function*(t,r,n){if("ReturnStatement"!==r.type&&"ThrowStatement"!==r.type)return;let u=n.getFirstToken(r);yield t.insertTextAfter(u," (");let a=n.getLastToken(r);if(!e(a)){yield t.insertTextAfter(r,")");return}yield t.insertTextBefore(a,")")}}function sQ(){return tF?tT:(tF=1,tT=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])})}function sY(){if(tR)return tO;tR=1;let{getParenthesizedRange:e}=sb(),t=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;return tO=function*(r,n,u){let a=e(n,u),i=u.getTokenBefore({range:a},{includeComments:!0});i&&a[0]===i.range[1]&&t(i)&&(yield r.insertTextAfter(i," "));let o=u.getTokenAfter({range:a},{includeComments:!0});o&&a[1]===o.range[0]&&t(o)&&(yield r.insertTextBefore(o," "))}}function s0(){if(tU)return t$;tU=1;let{getParenthesizedRange:e}=sb();return t$=function(t,r,n){let[,u]=e(r.object,n),[,a]=r.range;return t.removeRange([u,a])}}function s1(){return tZ?tG:(tZ=1,tG=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value)}function s2(){return tJ?tX:(tJ=1,tX=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1])}function s3(){if(t3)return t2;t3=1;let e=s1(),t=function(){if(tK)return tH;tK=1;let e=s1();return tH=t=>"AssignmentPattern"===t.parent.type&&t.parent.left===t&&e(t.parent)}(),r=function(){if(tY)return tQ;tY=1;let e=s2();return tQ=t=>{let{type:r,local:n,imported:u}=t.parent;return"ImportSpecifier"===r&&e(n,u)&&n===t}}(),n=function(){if(t1)return t0;t1=1;let e=s2();return t0=t=>{let{type:r,local:n,exported:u}=t.parent;return"ExportSpecifier"===r&&e(n,u)&&n===t}}();return t2=function(u,a,i){return e(u)||t(u)?i.replaceText(u,`${u.name}: ${a}`):r(u)?i.replaceText(u,`${u.name} as ${a}`):n(u)?i.replaceText(u,`${a} as ${u.name}`):u.typeAnnotation?i.replaceTextRange([u.range[0],u.typeAnnotation.range[0]],`${a}${u.optional?"?":""}`):i.replaceText(u,a)}}function s4(){return rt?re:(rt=1,re={extendFixRange:tv?tb:(tv=1,tb=function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}),removeParentheses:function(){if(tE)return tx;tE=1;let{getParentheses:e}=sb();return tx=function*(t,r,n){for(let u of e(t,n))yield r.remove(u)}}(),appendArgument:function(){if(tA)return tC;tA=1;let{isCommaToken:e}=sg;return tC=function(t,r,n,u){if("CallExpression"!==r.type)throw Error(`Unexpected node "${r.type}".`);let[a,i]=u.getLastTokens(r,2);return r.arguments.length>0&&(n=e(a)?` ${n},`:`, ${n}`),t.insertTextBefore(i,n)}}(),removeArgument:function(){if(tD)return tS;tD=1;let{isCommaToken:e}=sg,{getParentheses:t}=sb();return tS=function(r,n,u){let a=n.parent,i=a.arguments.indexOf(n),o=t(n,u),s=o[0]||n,d=o.at(-1)||n,[l]=s.range,[,c]=d.range;if(0!==i&&(l=u.getTokenBefore(s).range[0]),1===a.arguments.length){let t=u.getTokenBefore(d);e(t)&&(c=t[1])}return r.replaceTextRange([l,c],"")}}(),replaceArgument:function(){if(tw)return t_;tw=1;let{getParenthesizedRange:e}=sb();return t_=function(t,r,n,u){return t.replaceTextRange(e(r,u),n)}}(),switchNewExpressionToCallExpression:function(){if(tB)return tP;tB=1;let e=sV(),{isParenthesized:t}=sb(),r=sM(),n=sJ(),u=sQ();return tP=function*(a,i,o){let s=i.getFirstToken(a);yield o.remove(s),yield u(s,i,o),e(a,i)||(yield o.insertTextAfter(a,"()")),r(s,a.callee)||t(a,i)||(yield*n(o,a.parent,i))}}(),switchCallExpressionToNewExpression:function(){if(tN)return tM;tN=1;let{isParenthesized:e}=sb(),t=tL?tj:(tL=1,tj=function(e){return"MemberExpression"===e.type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(e)}),r=sY();return tM=function*(n,u,a){yield*r(a,n,u),yield a.insertTextBefore(n,"new ");let{callee:i}=n;!e(i,u)&&t(i)&&(yield a.insertTextBefore(i,"("),yield a.insertTextAfter(i,")"))}}(),removeMemberExpressionProperty:s0(),removeMethodCall:function(){if(tz)return tV;tz=1;let{getParenthesizedRange:e}=sb(),t=s0();return tV=function*(r,n,u){let a=n.callee;yield t(r,a,u);let[,i]=e(a,u),[,o]=n.range;yield r.removeRange([i,o])}}(),replaceTemplateElement:tW?tq:(tW=1,tq=(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)}),replaceReferenceIdentifier:s3(),renameVariable:function(){if(t5)return t4;t5=1;let e=sO(),t=s3();return t4=(r,n,u)=>e(r).map(e=>t(e,n,u))}(),replaceNodeOrTokenAndSpacesBefore:function(){if(t6)return t8;t6=1;let{getParentheses:e}=sb();return t8=function* t(r,n,u,a,i=a){for(let n of e(r,i))yield*t(n,"",u,a,i);let[o,s]=r.range,[d]=a.text.slice(0,o).match(/\s*$/),[l]=d.match(/(?:\r?\n|\r){0,1}/);o-=d.length,yield u.replaceTextRange([o,s],`${l}${n}`)}}(),removeSpacesAfter:sQ(),fixSpaceAroundKeyword:sY(),replaceStringLiteral:t7?t9:(t7=1,t9=function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)}),addParenthesizesToReturnOrThrowExpression:sJ()})}var s5=iw(function(){if(rn)return rr;rn=1;let{appendArgument:e}=s4(),{isMethodCall:t}=sD(),{isArrayPrototypeProperty:r}=sZ(),n="require-array-join-separator";return rr={create:u=>({CallExpression(a){if(!(t(a,{method:"join",argumentsLength:0,optionalCall:!1})||t(a,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&r(a.callee.object,{property:"join"})))return;let{sourceCode:i}=u,[o,s]=i.getLastTokens(a,2),d=1===a.arguments.length;return{loc:{start:o.loc[d?"end":"start"],end:s.loc.end},messageId:n,fix:t=>e(t,a,"','",i)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[n]:"Missing the separator argument."}}}}()),s8=iw(function(){if(ra)return ru;ra=1;let{getStaticValue:e,getPropertyName:t}=sg,{isMethodCall:r}=sD(),n="no-thenable-object",u="no-thenable-export",a="no-thenable-class",i=(t,r)=>e(t,r.sourceCode.getScope(t))?.value==="then",o=(e,r)=>{try{return"then"===t(e,r.sourceCode.getScope(e))}catch{}return!1},s=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&o(r,t)&&(yield r.key)},messageId:n},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,r){"then"===t(e,r.sourceCode.getScope(e))&&(yield e.key)},messageId:a},{selector:"MemberExpression",*getNodes(e,r){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===t(e,r.sourceCode.getScope(e))&&(yield e.property)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(!(r(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,n]=e.arguments;i(n,t)&&(yield n)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(r(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;i(e,t)&&(yield e)}}},messageId:n},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:u},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:u},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:u}];return ru={create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of s)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[n]:"Do not add `then` to an object.",[u]:"Do not export `then`.",[a]:"Do not add `then` to a class."}}}}()),s6=iw(function(){if(ro)return ri;ro=1;let{getFunctionHeadLocation:e}=sg,{isMethodCall:t}=sD(),r="no-invalid-remove-event-listener";return ri={create:n=>({CallExpression(u){if(!(t(u,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==u.arguments[0].type&&("FunctionExpression"===u.arguments[1].type||"ArrowFunctionExpression"===u.arguments[1].type||t(u.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,a]=u.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(a.type)?{node:a,loc:e(a,n.sourceCode),messageId:r}:{node:a.callee.property,messageId:r}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[r]:"The listener argument should be a function reference."}}}}()),s9=iw(function(){if(rd)return rs;rd=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sg,{getReferences:r,isNodeMatches:n}=sZ(),{functionTypes:u}=sD(),a="consistent-function-scoping",i=(e,t)=>e&&t&&(e===t||e.block===t.block),o=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),s=e=>e.block?.parent?.callee&&n(e.block.parent.callee,o),d=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>d(e))),l=new Set(["FunctionExpression","ArrowFunctionExpression"]),c=e=>l.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;return rs={create:n=>{let{checkArrowFunctions:o}={checkArrowFunctions:!0,...n.options[0]},{sourceCode:l}=n,{scopeManager:f}=l,p=[];n.on(u,()=>{p.push(!1)}),n.on("JSXElement",()=>{p.length>0&&(p[p.length-1]=!0)}),n.onExit(u,n=>{if(!(p.pop()||"ArrowFunctionExpression"===n.type&&!o||function(e,t){let n=t.acquire(e);if(!n||d(n))return!0;let u=e.parent;"VariableDeclarator"===u.type&&(u=u.parent),"VariableDeclaration"===u.type&&(u=u.parent),"BlockStatement"===u.type&&(u=u.parent);let a=t.acquire(u);return!!(!a||"global"===a.type||s(a)||c(u))||function(e,t,n){let u=e=>e.some(e=>{if(i(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&i(t,r.scope)}),a=e=>e.some(e=>i(t,n.acquire(e.node))),o=r=>r.some(r=>{if(!r.parent||"FunctionDeclaration"!==r.parent.type||n.acquire(r))return!1;let u=n.acquire(r.parent);return!(!u||i(e,u))&&i(t,u.upper)});return r(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||a(e.defs)||o(e.identifiers))}(n,a,t)}(n,f)))return{node:n,loc:e(n,l),messageId:a,data:{functionNameWithKind:t(n,l)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[a]:"Move {{functionNameWithKind}} to the outer scope."}}}}()),s7=iw(function(){if(rp)return rf;rp=1;let{getStaticValue:e}=sg,{switchNewExpressionToCallExpression:t}=s4(),r=function(){if(rc)return rl;rc=1;let{getStaticValue:e}=sg,{isNumberLiteral:t}=sD(),r=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),n=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,u=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),a=e=>r(e,"Math",u),i=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),o=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Math",i),s=e=>n(e,"Number"),d=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),l=e=>r(e,"Number",d),c=new Set(["parseFloat","parseInt"]),f=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Number",c),p=e=>n(e,"parseInt")||n(e,"parseFloat"),h=(t,r)=>"number"==typeof e(t,r)?.value,m=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,g=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);return rl=function r(n,u){if(t(n)||a(n)||o(n)||s(n)||l(n)||f(n)||p(n)||m(n))return!0;switch(n.type){case"AssignmentExpression":{let{operator:e}=n;if("="===e&&r(n.right,u))return!0}case"BinaryExpression":{let{operator:e}=n;if("AssignmentExpression"===n.type&&(e=e.slice(0,-1)),"+"===e&&r(n.left,u)&&r(n.right,u)||">>>"===e||g.has(e)&&(r(n.left,u)||r(n.right,u)))return!0;break}case"UnaryExpression":{let{operator:e}=n;if("+"===e||("-"===e||"~"===e)&&r(n.argument,u))return!0;break}case"UpdateExpression":if(r(n.argument,u))return!0;break;case"ConditionalExpression":{let t=r(n.consequent,u),a=r(n.alternate,u);if(t&&a)return!0;let i=e(n.test,u);if(null!==i&&(i.value&&t||!i.value&&a))return!0;break}case"SequenceExpression":if(r(n.expressions.at(-1),u))return!0}return h(n,u)}}(),{isNewExpression:n}=sD(),u="error",a="error-unknown",i="suggestion",o=(t,n)=>{if(1!==t.length)return"from";let[u]=t;if("SpreadElement"===u.type)return;if("ArrayExpression"===u.type||"TemplateLiteral"===u.type)return"from";if(r(u,n))return"alloc";let a=e(u,n);if(a){let{value:e}=a;if("string"==typeof e||Array.isArray(e))return"from"}};function s(e,r,n){return function*(u){yield u.insertTextAfter(e.callee,`.${n}`),yield*t(e,r,u)}}return rf={create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!n(e,{name:"Buffer"}))return;let r=o(e.arguments,t.getScope(e));return r?{node:e,messageId:u,data:{method:r},fix:s(e,t,r)}:{node:e,messageId:a,suggest:["from","alloc"].map(r=>({messageId:i,data:{replacement:r},fix:s(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[a]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[i]:"Switch to `Buffer.{{replacement}}()`."}}}}()),de=iw(function(){if(rm)return rh;rm=1;let e=sG(),{isStringLiteral:t,isMethodCall:r}=sD(),n="no-console-spaces",u=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),a=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);return rh={create:i=>{let{sourceCode:o}=i,s=(t,r,u)=>{let a="leading"===u?t.range[0]+1:t.range[1]-2,i=[a,a+1];return{loc:e(i,o),messageId:n,data:{method:r,position:u},fix:e=>e.removeRange(i)}};return{*CallExpression(e){if(!r(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:i}=e,{length:d}=i;for(let[e,r]of i.entries()){if(!t(r)&&"TemplateLiteral"!==r.type)continue;let i=o.getText(r).slice(1,-1);0!==e&&u(i)&&(yield s(r,n,"leading")),e!==d-1&&a(i)&&(yield s(r,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[n]:"Do not use {{position}} space between `console.{{method}}` parameters."}}}}()),dt=iw(function(){if(ry)return rg;ry=1;let{isEmptyNode:e,isDirective:t}=sD(),r="no-empty-file",n=r=>e(r,t),u=e=>"Line"===e.type&&e.value.startsWith("/"),a=e=>e.some(e=>u(e));return rg={create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!n(e)))return;let{sourceCode:u}=e;if(!a(u.getAllComments()))return{node:t,messageId:r}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[r]:"Empty files are not allowed."}}}}()),dr=iw(function(){if(rv)return rb;rv=1;let{isParenthesized:e,getParenthesizedRange:t}=sb(),{removeParentheses:r}=s4(),n="no-useless-fallback-in-spread";return rb={create:u=>({ObjectExpression(a){if(0===a.properties.length&&"LogicalExpression"===a.parent.type&&a.parent.right===a&&("||"===a.parent.operator||"??"===a.parent.operator)&&"SpreadElement"===a.parent.parent.type&&a.parent.parent.argument===a.parent&&"ObjectExpression"===a.parent.parent.parent.type&&a.parent.parent.parent.properties.includes(a.parent.parent))return{node:a,messageId:n,*fix(n){let{sourceCode:i}=u,o=a.parent,{left:s}=o,d=e(s,i),[,l]=d?t(s,i):s.range,[,c]=o.range;yield n.removeRange([l,c]),(d||"SequenceExpression"!==s.type)&&(yield*r(o,n,i))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[n]:"The empty object is useless."}}}}()),dn=iw(function(){if(rE)return rx;rE=1;let{isMethodCall:e,isMemberExpression:t}=sD(),{getParenthesizedRange:r,isSameReference:n,isLogicalExpression:u}=sZ(),a=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&t(e.left,{property:"length",optional:!1})&&u(e.parent);return rx={create:t=>{let i=[],o=new Set,s=new Set,d=new Set,l=new Set;return{BinaryExpression(e){if(a(e)){let{operator:t}=e;"==="===t?o.add(e):(">"===t||"!=="===t)&&s.add(e)}},CallExpression(t){e(t,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===t.callee.property.type&&("some"===t.callee.property.name?d.add(t):"every"===t.callee.property.name&&l.add(t))},LogicalExpression(e){u(e)&&i.push(e)},*"Program:exit"(){for(let e of new Set(i.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,r,u)=>(function({node:e,operator:t,siblings:r}){return"||"===t&&o.has(e)&&r.some(t=>l.has(t)&&n(e.left.object,t.callee.object))||"&&"===t&&s.has(e)&&r.some(t=>d.has(t)&&n(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[u[r-1],u[r+1]].filter(Boolean)}))})(e))))yield{loc:{start:e.left.property.loc.start,end:e.loc.end},messageId:o.has(e)?"zero":"non-zero",fix(n){let{sourceCode:u}=t,{left:a,right:i}=e.parent,o=r(a,u),s=r(i,u),d=[];return a===e?(d[0]=o[0],d[1]=s[0]):(d[0]=o[1],d[1]=s[1]),n.removeRange(d)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}}}()),du=iw(function(){if(rA)return rC;rA=1;let{getParenthesizedRange:e}=sZ(),{isFunction:t,isMethodCall:r}=sD();return rC={create:n=>{let{sourceCode:u}=n;return{CallExpression(n){if(!(r(n,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===n.parent.type&&n.parent.body===n||"ReturnStatement"===n.parent.type&&n.parent.argument===n||"YieldExpression"===n.parent.type&&!n.parent.delegate&&n.parent.argument===n)))return;let{functionNode:a,isInTryStatement:i}=function(e){let r,n=!1;for(;e;e=e.parent){if(t(e)){r=e;break}"TryStatement"===e.type&&(n=!0)}return{functionNode:r,isInTryStatement:n}}(n);if(a&&(a.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(a)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(n,function(t,r,n){if(t.arguments.length>1)return;let{callee:u,parent:a,arguments:[i]}=t;if(i?.type==="SpreadElement")return;let o="reject"===u.property.name,s="YieldExpression"===a.type;if(!o||!r&&(!s||"ExpressionStatement"===a.parent.type))return function(r){let u="ArrowFunctionExpression"===a.type,d=i?n.getText(i):"";if(i?.type==="SequenceExpression"&&(d=`(${d})`),o){if(d||="undefined",d=`throw ${d}`,s)return r.replaceTextRange(e(a,n),d);if(d+=";",u)return d=`{ ${d} }`,r.replaceTextRange(e(t,n),d)}else s?d=`yield${d?" ":""}${d}`:"ReturnStatement"===a.type?d=`return${d?" ":""}${d};`:(i?.type==="ObjectExpression"&&(d=`(${d})`),d||="{}");return r.replaceText(u?t:a,d)}}(n,i,u))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}}}()),da=iw(function(){if(rD)return rS;rD=1;let{isParenthesized:e}=sg,t=sU(),{isDecimalInteger:r}=sz(),n=sG(),{fixSpaceAroundKeyword:u}=s4(),{isNumberLiteral:a}=sD(),i="zero-fraction",o="dangling-dot";return rS={create:s=>({Literal(d){if(!a(d))return;let{raw:l}=d,c=l.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!c)return;let{before:f,dotAndFractions:p,after:h}=c.groups,m=(f+p.replaceAll(/[.0_]+$/g,"")||"0")+h;if(m===l)return;let g="."===p,y=d.range[0]+f.length+p.length,b=y-(l.length-m.length),{sourceCode:v}=s;return{loc:n([b,y],v),messageId:g?o:i,*fix(n){let a=m;"MemberExpression"===d.parent.type&&d.parent.object===d&&r(m)&&!e(d,v)&&(a=`(${a})`,t(v.getTokenBefore(d),v,a)&&(a=`;${a}`)),yield n.replaceText(d,a),yield*u(n,d,v)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[i]:"Don't use a zero fraction in the number.",[o]:"Don't use a dangling dot in the number."}}}}()),di=iw(function(){if(rw)return r_;rw=1;let{isCommaToken:e,isOpeningBraceToken:t,isClosingBraceToken:r}=sg,{isStringLiteral:n}=sD(),u="error",a="suggestion",i=Symbol.for("default"),o=Symbol("NAMESPACE_SPECIFIER_NAME"),s=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},d=e=>"type"===e.exportKind||"type"===e.parent.exportKind,l=e=>"type"===e.importKind||"type"===e.parent.importKind;function*c(t,n,u){switch(t.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(t,n,u){let{parent:a}=t,{specifiers:i}=a;if(1===i.length){yield*c(a,n,u);return}switch(t.type){case"ImportSpecifier":if(!i.some(e=>e!==t&&e.type===t.type)){let a=u.getTokenAfter(t,r),i=u.getTokenBefore(t,e);yield n.replaceTextRange([i.range[0],a.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield n.remove(t);let r=u.getTokenAfter(t);e(r)&&(yield n.remove(r))}}}(t,n,u);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield n.remove(t)}}function f(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}return r_={create:function(e){let{sourceCode:r}=e,{ignoreUsedVariables:p}={ignoreUsedVariables:!1,...e.options[0]},h=new Set,m=[];return{ImportDeclaration(e){e.specifiers.length>0&&h.add(e)},ExportNamedDeclaration(e){n(e.source)&&m.push(e)},*"Program:exit"(e){for(let n of h){let h=r.getDeclaredVariables(n);if(h.some(e=>1!==e.defs.length||e.defs[0].parent!==n)||(h=h.map(e=>{let t=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:l(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:i,text:"default",...n};case"ImportSpecifier":return{name:s(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:o,text:"*",...n}}}(e,r),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:i,text:"default",isTypeExport:d(r)};case"ExportSpecifier":return{node:r,name:s(r.exported),text:t.getText(r.exported),isTypeExport:d(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==o||u.name!==i)&&r.push(u)}return r}(t,r);return{variable:e,imported:t,exports:n}}),p&&h.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let g=p&&h.some(({variable:e})=>0===e.references.length);for(let{imported:n,exports:i}of h)for(let s of i){let i={node:s.node,messageId:u,data:{exported:s.text}},d=function({sourceCode:e,imported:r,exported:n,exportDeclarations:u,program:a}){let i;let s=r.declaration,d=s.source.value,l=r.isTypeImport||n.isTypeExport;return l&&(i=u.find(({source:e,exportKind:t})=>e.value===d&&"type"===t)),i||=u.find(({source:e,exportKind:t})=>e.value===d&&"type"!==t),function*(u){if(r.name===o)yield u.insertTextAfter(a,`
1
+ import*as e from"node:path";import*as t from"node:fs";import*as r from"module";import{createRule as n,isParserWithTypeInformation as u,ensureParserWithTypeInformation as a}from"@eslint-sukka/shared";import{AST_NODE_TYPES as i,ASTUtils as o,AST_TOKEN_TYPES as s,TSESLint as d,ESLintUtils as l}from"@typescript-eslint/utils";import*as c from"typescript";import{SymbolFlags as f,TypeFlags as p,SyntaxKind as m}from"typescript";import{RegExpParser as g}from"@eslint-community/regexpp";import{getTypeName as y}from"@typescript-eslint/type-utils";var h,b,x,v,E,A,C,D,S,w,T,F,_,k,I,P,B,j,O,R,L,N,M,$,U,z,W,q,V,Z,G,K,H,J,X,Y,Q,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,em,eg,ey,eh,eb,ex,ev,eE,eA,eC,eD,eS,ew,eT,eF,e_,ek,eI,eP,eB,ej,eO,eR,eL,eN,eM,e$,eU,ez,eW,eq,eV,eZ,eG,eK,eH,eJ,eX,eY,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta,ti,to,ts,td,tl,tc,tf,tp,tm,tg,ty,th,tb,tx,tv,tE,tA,tC,tD,tS,tw,tT,tF,t_,tk,tI,tP,tB,tj,tO,tR,tL,tN,tM,t$,tU,tz,tW,tq,tV,tZ,tG,tK,tH,tJ,tX,tY,tQ,t0,t1,t2,t3,t4,t5,t8,t6,t9,t7,re,rt,rr,rn,ru,ra,ri,ro,rs,rd,rl,rc,rf,rp,rm,rg,ry,rh,rb,rx,rv,rE,rA,rC,rD,rS,rw,rT,rF,r_,rk,rI,rP,rB,rj,rO,rR,rL,rN,rM,r$,rU,rz,rW,rq,rV,rZ,rG,rK,rH,rJ,rX,rY,rQ,r0,r1,r2,r3,r4,r5,r8,r6,r9,r7,ne,nt,nr,nn,nu,na,ni,no,ns,nd,nl,nc,nf,np,nm,ng,ny,nh,nb,nx,nv,nE,nA,nC,nD,nS,nw,nT,nF,n_,nk,nI,nP,nB,nj,nO,nR,nL,nN,nM,n$,nU,nz,nW,nq,nV,nZ,nG,nK,nH,nJ,nX,nY,nQ,n0,n1,n2,n3,n4,n5,n8,n6,n9,n7,ue,ut,ur,un,uu,ua,ui,uo,us,ud,ul,uc,uf,up,um,ug,uy,uh,ub,ux,uv,uE,uA,uC,uD,uS,uw,uT,uF,u_,uk,uI,uP,uB,uj,uO,uR,uL,uN,uM,u$,uU,uz,uW,uq,uV,uZ,uG,uK,uH,uJ,uX,uY,uQ,u0,u1,u2,u3,u4,u5,u8,u6,u9,u7,ae,at,ar,an,au,aa,ai,ao,as,ad,al,ac,af,ap,am,ag,ay,ah,ab,ax,av,aE,aA,aC,aD,aS,aw,aT,aF,a_,ak,aI,aP,aB,aj,aO,aR,aL,aN,aM,a$,aU,az,aW,aq,aV,aZ,aG,aK,aH,aJ,aX,aY,aQ,a0,a1,a2,a3,a4,a5,a8,a6,a9,a7,ie,it,ir,iu,ia,ii,io,is,id,il,ic,ip,im,ig,iy,ih,ib,ix,iv,iE,iA,iC,iD,iS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iT(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var iF=iT(e),i_={version:"56.0.1"};function ik(){return b?h:(b=1,h=function(e){let t=iF.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v${i_.version}/docs/rules/${t}.md`})}var iI=iw(ik());let iP=e=>!!e&&Symbol.iterator in e;class iB extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let ij={abort(){throw new iB("Fix aborted.")}};function iO(e){return t=>{let r=e(t,ij);if(iP(r))try{return[...r]}catch(e){if(e instanceof iB)return null;throw e}return r}}function iR(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function iL(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function iN(e){return e?.type==="MemberExpression"}function iM(e){return e?.type==="AwaitExpression"}function i$(e,t){return!!iL(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function iU(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function iz(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function iW(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function iq({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}function iV(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var iZ=iq({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!i$(t.callee.property,"flatMap")||!(iz(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(iW(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&iW(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let iG=new Set(["href","pathname","search","hash","origin"]);var iK=iq({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(i$(e,t))return e;for(;iN(e);){if(i$(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=iH(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=iH(t.parent);if(iG.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function iH(e){if(iN(e)&&iL(e.property))return e.property.name}var iJ=iq({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),iX=iq({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});let iY=/^toLocale(?<name>Upper|Lower)Case$/g;var iQ=iq({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!iN(t.callee)||!iL(t.callee.property))return;let{property:r}=t.callee,n=iY.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function i0(e){return JSON.stringify(e)}var i1=iq({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r,n,u,a;let i=(r=e.sourceCode,(u=n=t,u.parent?.type!=="TaggedTemplateExpression"&&1===u.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(u.quasis[0])&&0===u.expressions.length)?e=>{let t=i0(n.quasis[0].value.cooked),u=iR(n,e=>"Property"===e.type&&e.key===n);return u?e.replaceText(u,`${t}: ${r.getText(u.value)}`):e.replaceText(n,t)}:2===(a=n).quasis.length&&a.quasis.every(({value:e})=>""===e.cooked)&&1===a.expressions.length?e=>e.replaceText(n,r.getText(n.expressions[0])):void 0);i&&e.report({node:t,messageId:"invalid",fix:i})}})});let i2=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var i3=iq({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=i2.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:a}of n){var r,u;let n=a.parent;if(r=n,u=a,r?.type==="BinaryExpression"&&"instanceof"===r.operator&&r.right===u){if("Array"===a.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let r=a.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:r},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${i0(r)}`)})}}}}}}});let i4=/\P{ASCII}/u;function i5(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function i8(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=i6(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${i9(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(i6(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function i6(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${i9(t)}}`:`\\u${i9(t)}`})}function i9(e){return e.toString(16).padStart(4,"0").toUpperCase()}iq({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):i4,only:e?.only}),create:(e,{pattern:t,only:r})=>i5(t,(n,u)=>{if(r&&r!==u)return;let a=i8(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});let i7=/[\u061C\u202A-\u202E\u2066-\u2069]/;var oe=iq({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>i5(i7,(t,r)=>{let n=RegExp(i7.source,"gu"),u={kind:r,text:i6(t.value,n)},a=i8(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});let ot=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var or=iq({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>i5(ot,t=>{let r=i8(t,RegExp(ot.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),on=iq({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r,n,u,a,i;let o=t.find(ou);if(!o)return;let s=t[t.indexOf(o)-1];r=s,n=o,r&&"VariableDeclaration"===r.type&&1===r.declarations.length&&r.declarations.some(({init:e,id:t})=>null!==e&&iW(n.argument,t))&&e.report({node:o,messageId:"invalid",fix:(u=e.sourceCode,a=s,i=o,e=>{var t;let{init:r,id:n}=a.declarations[0];if(!(r&&n&&i.argument))return null;let o=!iM(t=r)||iR(t,"TryStatement")?t:t.argument,s=(e=>{if(!n.typeAnnotation)return e;let t=u.getText(n.typeAnnotation.typeAnnotation);return`(${e}) as ${iM(r)?`Promise<${t}>`:t}`})(u.getText(o));return[e.remove(a),e.replaceText(i.argument,s)]})})}})});function ou(e){return"ReturnStatement"===e.type&&iL(e.argument)}var oa=iq({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!iz(t))return;let n=function(e,t){let r=t.find(oi);if(!r)return;let n=t.find(e=>{var t,n;return t=e,n=r,"VariableDeclaration"===t.type&&"const"!==t.kind&&t.declarations.some(({id:e})=>iW(n.argument,e))});if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function oi(e){return"ReturnStatement"===e.type&&iL(e.argument)}var oo=iq({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u,a;if(!iz(n)||!(1===r.length&&function(e,t){if("IfStatement"!==e.type||null!==e.alternate)return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let i=(u=e,a=r[0],function*(e){let t;if("IfStatement"!==a.type)return;let{test:r,consequent:n}=a;yield e.insertTextBefore(r,"!("),yield e.insertTextAfter(r,")"),yield e.replaceText(n,"return;");let i=(t=u.sourceCode.getText(n),"BlockStatement"===n.type?t.slice(1,-1):t);yield e.insertTextAfter(a,i)});e.report({node:r[0],messageId:"prefer",fix:i})}})}),os=iq({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){var r;((function({callee:e}){return i$(e,"XMLHttpRequest")})(t)||i$((r=t).callee,"ActiveXObject")&&iU(r.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return i$(e,t)||iN(e)&&i$(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return i$(e,r)&&iN(t)&&i$(t.property,"load")||iN(e)&&i$(e.object,r)&&i$(e.property,["ajax","get","post","getJSON","getScript"])}(t)||od(t,"axios")||od(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function od(e,t){return i$(e.callee,"require")&&iU(e.arguments[0],t)}let ol=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var oc=iq({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!ol.has(t.callee.name)||function(e){if(!i$(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||iU(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),of=iq({name:"string/no-unneeded-to-string",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `String#toString()` when simpler alternatives exist",recommended:"stylistic",requiresTypeChecking:!0},schema:[],messages:{invalid:"Disallow use `.toString()` in string"}},create(e){iV(e.sourceCode.parserServices);let{program:t,esTreeNodeToTSNodeMap:r}=e.sourceCode.parserServices,n=t.getTypeChecker();return{CallExpression(t){if("MemberExpression"!==t.callee.type)return;let{object:u,property:a}=t.callee;(i$(a,"toString")||iU(a,"toString"))&&function(e,t){let r=e.getTypeAtLocation(t);if(r.isStringLiteral()||"string"===e.typeToString(r))return!0;let n=r.getSymbol();return n&&"String"===e.symbolToString(n)}(n,r.get(u))&&e.report({node:a,messageId:"invalid",fix:r=>r.replaceText(t,e.sourceCode.getText(u))})}}}}),op=iq({name:"type/no-force-cast-via-top-type",meta:{type:"problem",docs:{description:"Disallowing cast a type `T` to unrelated or incompatible type `Q` via `T as any as Q`",recommended:"recommended"},schema:[],messages:{invalid:"Don't cast this expression to another type by `as {{type}} as T`"}},create:e=>({TSAsExpression(t){var r,n;if("TSAnyKeyword"!==(r=t.typeAnnotation).type&&"TSUnknownKeyword"!==r.type||!((n=t.parent)&&"TSAsExpression"===n.type&&"TSTypeReference"===n.typeAnnotation.type))return;let u="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:u}})}})});let om=new Set(["BigInt","Boolean","Number","String","Symbol"]);var og=iq({name:"type/no-wrapper-type-reference",meta:{type:"problem",fixable:"code",docs:{description:"Disallow wrapper type for type reference",recommended:"recommended"},schema:[],messages:{instead:"Use {{name}} instead"}},create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!om.has(t.typeName.name))return;let r=t.typeName.name.toLowerCase();e.report({node:t,messageId:"instead",data:{name:r},fix:e=>e.replaceText(t.typeName,r)})}})}),oy=iq({name:"no-default-error",meta:{type:"problem",docs:{description:"Restrict the usage of default (unextended) error",recommended:"strict",requiresTypeChecking:!0},schema:[],messages:{invalid:"Default error object should not be used in this project"}},create(e){iV(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,n=r.getTypeChecker();function u(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let n=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(n)}(n,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&u(e.argument)},NewExpression:u,CallExpression:u}}});let oh={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"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],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"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],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"]};for(let e of Object.keys(oh))Object.freeze(oh[e]);Object.freeze(oh);let ob=new Set(["parent","leadingComments","trailingComments"]);function ox(e){return!ob.has(e)&&"_"!==e[0]}function ov(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function oE(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=ov(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function oA(e){return t=>!e(t)}function oC(e,t){return"Punctuator"===e.type&&e.value===t}function oD(e){return oC(e,"=>")}function oS(e){return oC(e,",")}function ow(e){return oC(e,";")}function oT(e){return oC(e,":")}function oF(e){return oC(e,"(")}function o_(e){return oC(e,")")}function ok(e){return oC(e,"[")}function oI(e){return oC(e,"]")}function oP(e){return oC(e,"{")}function oB(e){return oC(e,"}")}function oj(e){return["Block","Line","Shebang"].includes(e.type)}let oO=oA(oD),oR=oA(oS),oL=oA(ow),oN=oA(oT),oM=oA(oF),o$=oA(o_),oU=oA(ok),oz=oA(oI),oW=oA(oP),oq=oA(oB),oV=oA(oj);function oZ(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,oD);n=r.loc.start,u=r.loc.end}else{var a,i;n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(a=e,i=t,a.id?i.getTokenAfter(a.id,oF):i.getFirstToken(a,oF)).loc.start}return{start:{...n},end:{...u}}}let oG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},oK=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),oH=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),oJ=new Set([Object.freeze,Object.preventExtensions,Object.seal]),oX=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function oY(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=o0(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=o0(u,t);if(null==e)return null;r.push(e.value)}}return r}let oQ=Object.freeze({ArrayExpression(e,t){let r=oY(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?o0(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=o0(e.left,t),n=o0(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=oY(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=o0(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=o1(r,t);if(null!=a){let e=u.value,t=a.value;if(oH.has(e[t]))return{value:e[t](...n)};if(oJ.has(e[t]))return{value:n[0]}}}}else{let u=o0(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(oH.has(t))return{value:t(...n)};if(oJ.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=o0(e.test,t);return null!=r?r.value?o0(e.consequent,t):o0(e.alternate,t):null},ExpressionStatement:(e,t)=>o0(e.expression,t),Identifier(e,t){if(null!=t){let r=oE(t,e);if(null!=r&&0===r.defs.length&&oK.has(r.name)&&r.name in oG)return{value:oG[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return o0(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=o0(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=o0(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=o0(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=o1(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of oX)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=o0(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=o0(e.callee,t),n=oY(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(oH.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=o1(n,t),u=o0(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=o0(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>o0(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=o0(e.tag,t),n=oY(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=oY(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n],t+=e.quasis[n+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let r=o0(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function o0(e,t){return null!=e&&Object.hasOwnProperty.call(oQ,e.type)?oQ[e.type](e,t):null}function o1(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?o0(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function o2(e,t=null){try{return o0(e,t)}catch(e){return null}}function o3(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let r=o2(e,t);return r&&String(r.value)}function o4(e,t){switch(e.type){case"MemberExpression":if(e.computed)return o3(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return o3(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function o5(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=o4(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}let o8=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),o6=Object.freeze(new Set(["-","+","!","~"]));function o9(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let o7=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(ox)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(o9(e)&&this.$visit(e,t,r))return!0}else if(o9(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&o8.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&o6.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function se(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return o7.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||oh)}function st(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&oF(i)&&o_(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,oF);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,oF);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}let sr=/\$(?:[$&`']|[1-9][0-9]?)/gu,sn=new WeakMap;class su{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");sn.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=sn.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(sr,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}let sa=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,si=Function.call.bind(Object.hasOwnProperty),so=Symbol("read"),ss=Symbol("call"),sd=Symbol("construct"),sl=Symbol("esm"),sc={require:{[ss]:!0}};function sf(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class sp{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);!sf(u)&&(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);!sf(n)&&(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(sc)){let r=o3(t.arguments[0]);if(null==r||!si(e,r))continue;let n=e[r],u=[r];n[so]&&(yield{node:t,path:u,type:so,info:n[so]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!sa.test(t.type)||null==t.source)continue;let r=t.source.value;if(!si(e,r))continue;let n=e[r],u=[r];if(n[so]&&(yield{node:t,path:u,type:so,info:n[so]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[so]&&(yield{node:t,path:u.concat(e),type:so,info:r[so]})}else for(let e of t.specifiers){let t=si(n,sl),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(sm),(e.path.length>=2||e.type!==so)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[so]&&(yield{node:e,path:t,type:so,info:r[so]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=o4(u);if(null==e||!si(r,e))return;t=t.concat(e);let n=r[e];n[so]&&(yield{node:u,path:t,type:so,info:n[so]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[ss]&&(yield{node:u,path:t,type:ss,info:r[ss]});return}if("NewExpression"===u.type){u.callee===n&&r[sd]&&(yield{node:u,path:t,type:sd,info:r[sd]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=oE(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=o4(n);if(null==e||!si(r,e))continue;let u=t.concat(e),a=r[e];a[so]&&(yield{node:n,path:u,type:so,info:a[so]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!si(r,u))return;t=t.concat(u);let a=r[u];a[so]&&(yield{node:e,path:t,type:so,info:a[so]}),yield*this._iterateVariableReferences(oE(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(oE(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!si(r,n))return;t=t.concat(n);let u=r[n];u[so]&&(yield{node:e,path:t,type:so,info:u[so]})}}}function sm(e,t){return 1!==t||"default"!==e}sp.READ=so,sp.CALL=ss,sp.CONSTRUCT=sd,sp.ESM=sl;var sg=Object.freeze({__proto__:null,CALL:ss,CONSTRUCT:sd,ESM:sl,PatternMatcher:su,READ:so,ReferenceTracker:sp,default:{CALL:ss,CONSTRUCT:sd,ESM:sl,findVariable:oE,getFunctionHeadLocation:oZ,getFunctionNameWithKind:o5,getInnermostScope:ov,getPropertyName:o4,getStaticValue:o2,getStringIfConstant:o3,hasSideEffect:se,isArrowToken:oD,isClosingBraceToken:oB,isClosingBracketToken:oI,isClosingParenToken:o_,isColonToken:oT,isCommaToken:oS,isCommentToken:oj,isNotArrowToken:oO,isNotClosingBraceToken:oq,isNotClosingBracketToken:oz,isNotClosingParenToken:o$,isNotColonToken:oN,isNotCommaToken:oR,isNotCommentToken:oV,isNotOpeningBraceToken:oW,isNotOpeningBracketToken:oU,isNotOpeningParenToken:oM,isNotSemicolonToken:oL,isOpeningBraceToken:oP,isOpeningBracketToken:ok,isOpeningParenToken:oF,isParenthesized:st,isSemicolonToken:ow,PatternMatcher:su,READ:so,ReferenceTracker:sp},findVariable:oE,getFunctionHeadLocation:oZ,getFunctionNameWithKind:o5,getInnermostScope:ov,getPropertyName:o4,getStaticValue:o2,getStringIfConstant:o3,hasSideEffect:se,isArrowToken:oD,isClosingBraceToken:oB,isClosingBracketToken:oI,isClosingParenToken:o_,isColonToken:oT,isCommaToken:oS,isCommentToken:oj,isNotArrowToken:oO,isNotClosingBraceToken:oq,isNotClosingBracketToken:oz,isNotClosingParenToken:o$,isNotColonToken:oN,isNotCommaToken:oR,isNotCommentToken:oV,isNotOpeningBraceToken:oW,isNotOpeningBracketToken:oU,isNotOpeningParenToken:oM,isNotSemicolonToken:oL,isOpeningBraceToken:oP,isOpeningBracketToken:ok,isOpeningParenToken:oF,isParenthesized:st,isSemicolonToken:ow}),sy=iT(sg),sh=iw(function(){if(v)return x;v=1;let{isParenthesized:e}=sy,t="too-deep",r="should-parenthesized";return x={create:n=>({ConditionalExpression(u){if([u.test,u.consequent,u.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:a}=n,i=a.getAncestors(u).reverse(),o=i.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==o||e(u,a)?o>1?{node:o>2?i[o-3]:u,messageId:t}:void 0:{node:u,messageId:r,fix:e=>[e.insertTextBefore(u,"("),e.insertTextAfter(u,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[t]:"Do not nest ternary expressions.",[r]:"Nest ternary expression should be parenthesized."}}}}());function sb(){if(A)return E;A=1;let{isParenthesized:e,isOpeningParenToken:t,isClosingParenToken:r}=sy;function n(t,r){let n=0;for(;e(n+1,t,r);)n++;return n}function u(e,u){let a=n(e,u);return 0===a?[]:[...u.getTokensBefore(e,{count:a,filter:t}),...u.getTokensAfter(e,{count:a,filter:r})]}function a(e,t){let r=u(e,t),[n]=(r[0]||e).range,[,a]=(r.at(-1)||e).range;return[n,a]}return E={isParenthesized:e,getParenthesizedTimes:n,getParentheses:u,getParenthesizedRange:a,getParenthesizedText:function(e,t){let[r,n]=a(e,t);return t.text.slice(r,n)}}}function sx(){if(D)return C;function e(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}return D=1,C={isLiteral:e,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:t=>e(t,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex}}function sv(){if(w)return S;function e(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}return w=1,S={isCallExpression:(t,r)=>e(t,r,["CallExpression"]),isNewExpression:(t,r)=>{if("boolean"==typeof r?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return e(t,r,["NewExpression"])},isCallOrNewExpression:(t,r)=>e(t,r,["CallExpression","NewExpression"])}}function sE(){return R?O:(R=1,O=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])}function sA(){return $?M:($=1,M=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))})}function sC(){if(K)return G;K=1;let{isStringLiteral:e}=sx(),{isCallExpression:t}=sv();return G=r=>t(r,{name:"require",argumentsLength:1,optional:!1})&&e(r.arguments[0])}function sD(){if(J)return H;function e(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}return J=1,H={isNodeMatchesNameOrPath:e,isNodeMatches:function(t,r){return r.some(r=>e(t,r))}}}function sS(){if(er)return et;er=1;let{isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a}=sx(),{isNewExpression:i,isCallExpression:o,isCallOrNewExpression:s}=sv();return et={isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a,isArrowFunctionBody:F?T:(F=1,T=function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e}),isCallExpression:o,isCallOrNewExpression:s,isDirective:k?_:(k=1,_=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive),isEmptyNode:P?I:(P=1,I=function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))}),isExpressionStatement:j?B:(j=1,B=function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}),isFunction:function(){if(N)return L;N=1;let e=sE();return L=function(t){return e.includes(t.type)}}(),isMemberExpression:sA(),isMethodCall:function(){if(z)return U;z=1;let e=sA(),{isCallExpression:t}=sv();return U=function(r,n){"string"==typeof n&&(n={methods:[n]}),Array.isArray(n)&&(n={methods:n});let{optionalCall:u,optionalMember:a,method:i,methods:o}={method:"",methods:[],...n};return t(r,{argumentsLength:n.argumentsLength,minimumArguments:n.minimumArguments,maximumArguments:n.maximumArguments,allowSpreadElement:n.allowSpreadElement,optional:u})&&e(r.callee,{object:n.object,objects:n.objects,computed:n.computed,property:i,properties:o,optional:a})}}(),isNegativeOne:function(){if(q)return W;q=1;let{isNumberLiteral:e}=sx();return W=function(t){return t?.type==="UnaryExpression"&&"-"===t.operator&&e(t.argument)&&1===t.argument.value}}(),isNewExpression:i,isReferenceIdentifier:Z?V:(Z=1,V=function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)}),isStaticRequire:sC(),isTaggedTemplateLiteral:function(){if(Y)return X;Y=1;let{isNodeMatches:e}=sD();return X=function(t,r){return"TemplateLiteral"===t.type&&"TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t&&(!r||e(t.parent.tag,r))}}(),isUndefined:ee?Q:(ee=1,Q=function(e){return"Identifier"===e.type&&"undefined"===e.name}),functionTypes:sE()}}function sw(){return ei?ea:(ei=1,ea=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator))}var sT={},sF={},s_={};function sk(){var e,t;return ec?sT:(ec=1,Object.defineProperty(sT,"__esModule",{value:!0}),Object.defineProperty(sT,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(sT,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(sT,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(sT,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(sT,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(sT,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(sT,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(sT,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(ed)return sF;ed=1,Object.defineProperty(sF,"__esModule",{value:!0}),sF.isIdentifierChar=s,sF.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!o(n))return!1}else if(!s(n))return!1}return!t},sF.isIdentifierStart=o;let e="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r=RegExp("["+e+"]"),n=RegExp("["+e+t+"]");e=t=null;let u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function i(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function o(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):i(e,u)))}function s(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):i(e,u)||i(e,a))))}return sF}(),t=function(){if(el)return s_;el=1,Object.defineProperty(s_,"__esModule",{value:!0}),s_.isKeyword=function(e){return t.has(e)},s_.isReservedWord=u,s_.isStrictBindOnlyReservedWord=i,s_.isStrictBindReservedWord=function(e,t){return a(e,t)||i(e)},s_.isStrictReservedWord=a;let e={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},t=new Set(e.keyword),r=new Set(e.strict),n=new Set(e.strictBind);function u(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return u(e,t)||r.has(e)}function i(e){return n.has(e)}return s_}(),sT)}function sI(){if(eg)return em;eg=1;let e=t=>[t,...t.childScopes.flatMap(t=>e(t))];return em=e}function sP(){if(eh)return ey;eh=1;let e=sI();return ey=t=>[...new Set(e(t).flatMap(({references:e})=>e))]}function sB(){if(ex)return eb;ex=1;let{isIdentifierName:e,isStrictReservedWord:t,isKeyword:r}=sk(),n=ep?ef:(ep=1,ef=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}}),u=sP(),a=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),i=n=>"string"==typeof n&&!r(n)&&!t(n,!0)&&e(n)&&"arguments"!==n&&!a.has(n),o=(e,t)=>u(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),s=(e,t)=>!t.some(t=>n(e,t)||o(e,t)),d=()=>!0;return eb=function(e,t,r=d){if(i(e)||i(e+="_")){for(;!s(e,t)||!r(e,t);)e+="_";return e}}}function sj(){if(eC)return eA;eC=1;let e=function(){if(eE)return ev;eE=1;let e={},t=e.hasOwnProperty,r=(e,r)=>{for(let n in e)t.call(e,n)&&r(n,e[n])},n=(e,t)=>(t&&r(t,(t,r)=>{e[t]=r}),e),u=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},a=e=>"\\u"+("0000"+e).slice(-4),i=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},o=e.toString,s=Array.isArray,d=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),l=e=>"[object Object]"==o.call(e),c=e=>"string"==typeof e||"[object String]"==o.call(e),f=e=>"number"==typeof e||"[object Number]"==o.call(e),p=e=>"function"==typeof e,m=e=>"[object Map]"==o.call(e),g=e=>"[object Set]"==o.call(e),y={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},h=/[\\\b\f\n\r\t]/,b=/[0-9]/,x=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,v=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,E=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,A=(e,t)=>{let o;let C=()=>{k=_,++t.indentLevel,_=t.indent.repeat(t.indentLevel)},D={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},S=t&&t.json;S&&(D.quotes="double",D.wrap=!0),"single"!=(t=n(D,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let w="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",T=t.compact,F=t.lowercaseHex,_=t.indent.repeat(t.indentLevel),k="",I=t.__inline1__,P=t.__inline2__,B=T?"":"\n",j=!0,O="binary"==t.numbers,R="octal"==t.numbers,L="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(S&&e&&p(e.toJSON)&&(e=e.toJSON()),!c(e)){if(m(e))return 0==e.size?"new Map()":(T||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+A(Array.from(e),t)+")");if(g(e))return 0==e.size?"new Set()":"new Set("+A(Array.from(e),t)+")";if(d(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+A(Array.from(e),t)+")";if(s(e))return(o=[],t.wrap=!0,I&&(t.__inline1__=!1,t.__inline2__=!0),P||C(),u(e,e=>{j=!1,P&&(t.__inline2__=!1),o.push((T||P?"":_)+A(e,t))}),j)?"[]":P?"["+o.join(", ")+"]":"["+B+o.join(","+B)+B+(T?"":k)+"]";if(f(e)){if(S)return JSON.stringify(e);if(L)return String(e);if(N){let t=e.toString(16);return F||(t=t.toUpperCase()),"0x"+t}if(O)return"0b"+e.toString(2);if(R)return"0o"+e.toString(8)}else if(l(e))return(o=[],t.wrap=!0,C(),r(e,(e,r)=>{j=!1,o.push((T?"":_)+A(e,t)+":"+(T?"":" ")+A(r,t))}),j)?"{}":"{"+B+o.join(","+B)+B+(T?"":k)+"}";else return S?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?v:E;return o=e.replace(M,(e,r,n,u,o,s)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+i((e-55296)*1024+n-56320+65536,F)+"}":a(i(e,F))+a(i(n,F))}if(n)return a(i(n.charCodeAt(0),F));if("\0"==e&&!S&&!b.test(s.charAt(o+1)))return"\\0";if(u)return u==w||t.escapeEverything?"\\"+u:u;if(h.test(e))return y[e];if(t.minimal&&!x.test(e))return e;let d=i(e.charCodeAt(0),F);return S||d.length>2?a(d):"\\x"+("00"+d).slice(-2)}),"`"==w&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext&&(o=o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,S?"\\u003C!--":"\\x3C!--")),t.wrap&&(o=w+o+w),o};return A.version="3.0.2",ev=A}();return eA=function(t,r="'"){if("string"!=typeof t)throw TypeError("Unexpected string.");return e(t,{quotes:'"'===r?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})}}function sO(){if(eS)return eD;eS=1;let{isOpeningParenToken:e,isCommaToken:t}=sy;return eD=function(r,n){let u=r.getTokenAfter(n.callee,e),[a,i]=r.getLastTokens(n,2);return{openingParenthesisToken:u,closingParenthesisToken:i,trailingCommaToken:t(a)?a:void 0}}}function sR(){return e_?eF:(e_=1,eF=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])])}function sL(){return eO?ej:(eO=1,ej=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e)}function sN(){return eW?ez:(eW=1,ez=function(e,t){return e.loc.start.line===t.loc.start.line})}function sM(){if(eG)return eZ;eG=1;let{getStaticValue:e}=sy;function t(r){let n;switch(r?.type){case"MemberExpression":n=r.property;break;case"ChainExpression":return t(r.expression);case"Property":case"MethodDefinition":n=r.key}if(n){if("Identifier"===n.type&&!r.computed)return n.name;let t=e(n);if(!t)return;return String(t.value)}}return eZ=function e(r,n){if(r.type!==n.type)return"ChainExpression"===r.type?e(r.expression,n):"ChainExpression"===n.type&&e(r,n.expression);switch(r.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return r.name===n.name;case"Literal":return r.regex||n.regex?!!(r.regex&&n.regex&&r.regex.pattern===n.regex.pattern&&r.regex.flags===n.regex.flags):r.bigint||n.bigint?r.bigint===n.bigint:r.value===n.value;case"ChainExpression":return e(r.expression,n.expression);case"MemberExpression":{let u=t(r);if(void 0!==u)return e(r.object,n.object)&&u===t(n);return r.computed===n.computed&&e(r.object,n.object)&&e(r.property,n.property)}default:return!1}}}function s$(){return eH?eK:(eH=1,eK=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0})}function sU(){if(eQ)return eY;eQ=1;let e=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),t=new Set(["[","(","/","`","+","-","*",",","."]);return eY=function(r,n,u){if(""===u||u&&!t.has(u.charAt(0))||!r)return!1;let{type:a,value:i,range:o}=r,s=n.getNodeByRangeIndex(o[0]);if("Punctuator"===a){if(";"===i)return!1;if("]"===i)return!0;if(")"===i){switch(s.type){case"IfStatement":if(n.getTokenBefore(s.consequent)===r)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(s.body&&n.getTokenBefore(s.body)===r)return!1}return!0}}return!!e.has(a)||("Template"===a?i.endsWith("`"):"ObjectExpression"===s.type||"Identifier"===a&&("of"!==i||"ForOfStatement"!==s.type)&&("await"!==i||"AwaitExpression"!==s.type))}}function sz(){if(e1)return e0;e1=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sy;return e0=function(r,n){if(r.arguments.length>0)return!0;let[u,a]=n.getLastTokens(r,2);return e(u)&&t(a)&&r.callee.range[1]<r.range[1]}}function sW(){if(e3)return e2;e3=1;let{isNumberLiteral:e,isBigIntLiteral:t}=sS(),r=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n=e=>r.test(e);return e2={isDecimalIntegerNode:t=>e(t)&&n(t.raw),isDecimalInteger:n,isNumeric:r=>e(r)||t(r),isLegacyOctal:t=>e(t)&&/^0\d+$/.test(t.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}}}function sq(){if(e5)return e4;e5=1;let e=sz(),{isDecimalIntegerNode:t}=sW();return e4=function(r,n){switch(r.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!e(r,n);case"Literal":if(t(r))return!0;return!1;default:return!0}}}var sV={exports:{}},sZ=sV.exports;function sG(){return tu?tn:(tu=1,tn=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}})}function sK(){if(ts)return to;ts=1;let{isParenthesized:e,getParenthesizedTimes:t,getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u}=sb(),{isArrayPrototypeProperty:a,isObjectPrototypeProperty:i}=function(){if(eu)return en;eu=1;let{isMemberExpression:e}=sS();function t(t,r){let{object:n,property:u,properties:a}={property:"",properties:[],...r};if(!e(t,{property:u,properties:a,optional:!1}))return;let i=t.object;return e(i,{object:n,property:"prototype",optional:!1})||"Array"===n&&"ArrayExpression"===i.type&&0===i.elements.length||"Object"===n&&"ObjectExpression"===i.type&&0===i.properties.length}return en={isArrayPrototypeProperty:(e,r)=>t(e,{...r,object:"Array"}),isObjectPrototypeProperty:(e,r)=>t(e,{...r,object:"Object"})}}(),{isNodeMatches:o,isNodeMatchesNameOrPath:s}=sD(),{isBooleanNode:d,getBooleanAncestor:l}=function(){if(es)return eo;es=1;let e=sw(),t=e=>e?.type==="UnaryExpression"&&"!"===e.operator,r=e=>t(e.parent)&&e.parent.argument===e,n=e=>u(e.parent)&&e.parent.arguments[0]===e,u=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,a=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);return eo={isBooleanNode:function i(o){if(t(o)||r(o)||u(o)||n(o))return!0;let{parent:s}=o;return!!a(s)||("IfStatement"===s.type||"ConditionalExpression"===s.type||"WhileStatement"===s.type||"DoWhileStatement"===s.type||"ForStatement"===s.type)&&s.test===o||!!e(s)&&i(s)},getBooleanAncestor:function(e){let t=!1;for(;;)if(r(e))t=!t,e=e.parent;else if(n(e))e=e.parent;else break;return{node:e,isNegative:t}}}}();return to={avoidCapture:sB(),escapeString:sj(),getBooleanAncestor:l,getCallExpressionArgumentsText:function(){if(eT)return ew;eT=1;let e=sO();return ew=function(t,r){let{openingParenthesisToken:n,closingParenthesisToken:u}=e(t,r);return t.text.slice(n.range[1],u.range[0])}}(),getCallExpressionTokens:sO(),getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u,getParenthesizedTimes:t,getReferences:sP(),getScopes:sI(),getVariableIdentifiers:sR(),hasOptionalChainElement:function(){if(eI)return ek;eI=1;let e=e=>"MemberExpression"===e.type||"CallExpression"===e.type;return ek=function t(r){return!!e(r)&&(!!r.optional||"MemberExpression"===r.type&&t(r.object))}}(),isArrayPrototypeProperty:a,isBooleanNode:d,isFunctionSelfUsedInside:function(){if(eB)return eP;eB=1;let{findVariable:e}=sy,t=(t,r)=>{let{references:n=[]}=e(t,r)||{};return n};return eP=function(e,r){if(r.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:n,id:u}=e;return"ArrowFunctionExpression"!==n&&(!!(r.thisFound||t(r,"arguments").some(({from:e})=>e===r))||!!u&&!!(t(r,u).length>0))}}(),isLeftHandSide:sL(),isLogicalExpression:sw(),isMethodNamed:eL?eR:(eL=1,eR=(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t),isNodeMatches:o,isNodeMatchesNameOrPath:s,isNodeValueNotDomNode:function(){if(eM)return eN;eM=1;let{isUndefined:e}=sS(),t=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]);return eN=r=>t.has(r.type)||e(r)}(),isNodeValueNotFunction:function(){if(eU)return e$;eU=1;let{isUndefined:e,isCallExpression:t,isMethodCall:r}=sS(),n=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),u=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);return e$=a=>n.has(a.type)||u.has(a.type)||e(a)||t(a)&&!r(a,{method:"bind",optionalCall:!1,optionalMember:!1})}(),isObjectPrototypeProperty:i,isOnSameLine:sN(),isParenthesized:e,isSameIdentifier:eV?eq:(eV=1,eq=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name),isSameReference:sM(),isShadowed:s$(),isValueNotUsable:function(){if(eX)return eJ;eX=1;let{isExpressionStatement:e}=sS();return eJ=t=>e(t.parent)}(),needsSemicolon:sU(),shouldAddParenthesesToMemberExpressionObject:sq(),shouldAddParenthesesToCallExpressionCallee:e6?e8:(e6=1,e8=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type}),shouldAddParenthesesToAwaitExpressionArgument:e7?e9:(e7=1,e9=function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type}),singular:function(){if(tr)return tt;tr=1;let{singular:e}=function(){var e;return te?sV.exports:(te=1,e=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},sV.exports=e(),sV.exports)}();return tt=t=>{let r=e(t);if(r!==t)return r}}(),toLocation:sG(),getAncestor:ti?ta:(ti=1,ta=function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e})}}var sH=iw(function(){if(tl)return td;tl=1;let{findVariable:e}=sy,{getAncestor:t}=sK(),{isStaticRequire:r,isStringLiteral:n,isMemberExpression:u}=sS(),a="prefer-event-target",i=new Set(["@angular/core","eventemitter3"]),o=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function s(e){let t;return!!e&&(r(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(n(t)&&i.has(t.value)))}return td={create:r=>({Identifier(n){if("EventEmitter"!==n.name||("ClassDeclaration"!==n.parent.type&&"ClassExpression"!==n.parent.type||n.parent.superClass!==n)&&("NewExpression"!==n.parent.type||n.parent.callee!==n))return;let d=r.sourceCode.getScope(n);if(!function(e){if(!e)return!1;let r=t(e,"ImportDeclaration");return!!(i.has(r?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&o(e.parent.parent)&&s(e.parent.parent.parent.init)||o(e)&&u(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&s(e.parent.init.object))}(e(d,n)?.defs[0]?.name))return{node:n,messageId:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[a]:"Prefer `EventTarget` over `EventEmitter`."}}}}()),sJ=iw(function(){if(tm)return tp;tm=1;let e=sj(),t=tf?tc:(tf=1,tc={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"}),{isNumberLiteral:r}=sS(),n="prefer-keyboard-event-key",u=new Set(["keyCode","charCode","which"]),a=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,i=(e,t)=>{let r=s(t,"CallExpression",a),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},o=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,s=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},d=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},l=n=>u=>{let a=d(n,3);if(!a||"IfStatement"!==a.type)return;let{type:i,operator:o,right:s}=a.test;if(!("BinaryExpression"===i&&("=="===o||"==="===o)&&r(s)))return;let l=t[s.value]||String.fromCodePoint(s.value);if(l)return[u.replaceText(n,"key"),u.replaceText(s,e(l))]},c=e=>({messageId:n,data:{name:e.name},node:e,fix:l(e)});return tp={create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=i(e,t);if(r&&n&&n.some(e=>o(t,e.identifier)))return c(t)},Property(t){let r=t.value.name;if(!u.has(r))return;let{event:n,references:a}=i(e,t);if(!n)return;let o=s(t,"VariableDeclarator"),d=o?.init;if(a&&a.some(e=>e.identifier===d))return c(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return c(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[n]:"Use `.key` instead of `.{{name}}`."}}}}()),sX=iw(function(){if(ty)return tg;ty=1;let{isMemberExpression:e}=sS(),t="error",r="suggestion";return tg={create:()=>({MemberExpression(n){if(!e(n,{property:"innerText"}))return;let u=n.property;return{node:u,messageId:t,suggest:[{messageId:r,fix:e=>e.replaceText(u,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:t,suggest:[{messageId:r,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[t]:"Prefer `.textContent` over `.innerText`.",[r]:"Switch to `.textContent`."}}}}());function sY(){if(tF)return tT;tF=1;let{isSemicolonToken:e}=sy;return tT=function*(t,r,n){if("ReturnStatement"!==r.type&&"ThrowStatement"!==r.type)return;let u=n.getFirstToken(r);yield t.insertTextAfter(u," (");let a=n.getLastToken(r);if(!e(a)){yield t.insertTextAfter(r,")");return}yield t.insertTextBefore(a,")")}}function sQ(){return tk?t_:(tk=1,t_=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])})}function s0(){if(tR)return tO;tR=1;let{getParenthesizedRange:e}=sb(),t=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;return tO=function*(r,n,u){let a=e(n,u),i=u.getTokenBefore({range:a},{includeComments:!0});i&&a[0]===i.range[1]&&t(i)&&(yield r.insertTextAfter(i," "));let o=u.getTokenAfter({range:a},{includeComments:!0});o&&a[1]===o.range[0]&&t(o)&&(yield r.insertTextBefore(o," "))}}function s1(){if(t$)return tM;t$=1;let{getParenthesizedRange:e}=sb();return tM=function(t,r,n){let[,u]=e(r.object,n),[,a]=r.range;return t.removeRange([u,a])}}function s2(){return tZ?tV:(tZ=1,tV=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value)}function s3(){return tJ?tH:(tJ=1,tH=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1])}function s4(){if(t2)return t1;t2=1;let e=s2(),t=function(){if(tK)return tG;tK=1;let e=s2();return tG=t=>"AssignmentPattern"===t.parent.type&&t.parent.left===t&&e(t.parent)}(),r=function(){if(tY)return tX;tY=1;let e=s3();return tX=t=>{let{type:r,local:n,imported:u}=t.parent;return"ImportSpecifier"===r&&e(n,u)&&n===t}}(),n=function(){if(t0)return tQ;t0=1;let e=s3();return tQ=t=>{let{type:r,local:n,exported:u}=t.parent;return"ExportSpecifier"===r&&e(n,u)&&n===t}}();return t1=function(u,a,i){return e(u)||t(u)?i.replaceText(u,`${u.name}: ${a}`):r(u)?i.replaceText(u,`${u.name} as ${a}`):n(u)?i.replaceText(u,`${a} as ${u.name}`):u.typeAnnotation?i.replaceTextRange([u.range[0],u.typeAnnotation.range[0]],`${a}${u.optional?"?":""}`):i.replaceText(u,a)}}function s5(){return re?t7:(re=1,t7={extendFixRange:tb?th:(tb=1,th=function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}),removeParentheses:function(){if(tv)return tx;tv=1;let{getParentheses:e}=sb();return tx=function*(t,r,n){for(let u of e(t,n))yield r.remove(u)}}(),appendArgument:function(){if(tA)return tE;tA=1;let{isCommaToken:e}=sy;return tE=function(t,r,n,u){if("CallExpression"!==r.type)throw Error(`Unexpected node "${r.type}".`);let[a,i]=u.getLastTokens(r,2);return r.arguments.length>0&&(n=e(a)?` ${n},`:`, ${n}`),t.insertTextBefore(i,n)}}(),removeArgument:function(){if(tD)return tC;tD=1;let{isCommaToken:e}=sy,{getParentheses:t}=sb();return tC=function(r,n,u){let a=n.parent,i=a.arguments.indexOf(n),o=t(n,u),s=o[0]||n,d=o.at(-1)||n,[l]=s.range,[,c]=d.range;if(0!==i&&(l=u.getTokenBefore(s).range[0]),1===a.arguments.length){let t=u.getTokenBefore(d);e(t)&&(c=t[1])}return r.replaceTextRange([l,c],"")}}(),replaceArgument:function(){if(tw)return tS;tw=1;let{getParenthesizedRange:e}=sb();return tS=function(t,r,n,u){return t.replaceTextRange(e(r,u),n)}}(),switchNewExpressionToCallExpression:function(){if(tP)return tI;tP=1;let e=sz(),{isParenthesized:t}=sb(),r=sN(),n=sY(),u=sQ();return tI=function*(a,i,o){let s=i.getFirstToken(a);yield o.remove(s),yield u(s,i,o),e(a,i)||(yield o.insertTextAfter(a,"()")),r(s,a.callee)||t(a,i)||(yield*n(o,a.parent,i))}}(),switchCallExpressionToNewExpression:function(){if(tN)return tL;tN=1;let{isParenthesized:e}=sb(),t=tj?tB:(tj=1,tB=function(e){return"MemberExpression"===e.type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(e)}),r=s0();return tL=function*(n,u,a){yield*r(a,n,u),yield a.insertTextBefore(n,"new ");let{callee:i}=n;!e(i,u)&&t(i)&&(yield a.insertTextBefore(i,"("),yield a.insertTextAfter(i,")"))}}(),removeMemberExpressionProperty:s1(),removeMethodCall:function(){if(tz)return tU;tz=1;let{getParenthesizedRange:e}=sb(),t=s1();return tU=function*(r,n,u){let a=n.callee;yield t(r,a,u);let[,i]=e(a,u),[,o]=n.range;yield r.removeRange([i,o])}}(),replaceTemplateElement:tq?tW:(tq=1,tW=(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)}),replaceReferenceIdentifier:s4(),renameVariable:function(){if(t4)return t3;t4=1;let e=sR(),t=s4();return t3=(r,n,u)=>e(r).map(e=>t(e,n,u))}(),replaceNodeOrTokenAndSpacesBefore:function(){if(t8)return t5;t8=1;let{getParentheses:e}=sb();return t5=function* t(r,n,u,a,i=a){for(let n of e(r,i))yield*t(n,"",u,a,i);let[o,s]=r.range,[d]=a.text.slice(0,o).match(/\s*$/),[l]=d.match(/(?:\r?\n|\r){0,1}/);o-=d.length,yield u.replaceTextRange([o,s],`${l}${n}`)}}(),removeSpacesAfter:sQ(),fixSpaceAroundKeyword:s0(),replaceStringLiteral:t9?t6:(t9=1,t6=function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)}),addParenthesizesToReturnOrThrowExpression:sY()})}var s8=iw(function(){if(rr)return rt;rr=1;let{appendArgument:e}=s5(),{isMethodCall:t}=sS(),{isArrayPrototypeProperty:r}=sK(),n="require-array-join-separator";return rt={create:u=>({CallExpression(a){if(!(t(a,{method:"join",argumentsLength:0,optionalCall:!1})||t(a,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&r(a.callee.object,{property:"join"})))return;let{sourceCode:i}=u,[o,s]=i.getLastTokens(a,2),d=1===a.arguments.length;return{loc:{start:o.loc[d?"end":"start"],end:s.loc.end},messageId:n,fix:t=>e(t,a,"','",i)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[n]:"Missing the separator argument."}}}}()),s6=iw(function(){if(ru)return rn;ru=1;let{getStaticValue:e,getPropertyName:t}=sy,{isMethodCall:r}=sS(),n="no-thenable-object",u="no-thenable-export",a="no-thenable-class",i=(t,r)=>e(t,r.sourceCode.getScope(t))?.value==="then",o=(e,r)=>{try{return"then"===t(e,r.sourceCode.getScope(e))}catch{}return!1},s=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&o(r,t)&&(yield r.key)},messageId:n},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,r){"then"===t(e,r.sourceCode.getScope(e))&&(yield e.key)},messageId:a},{selector:"MemberExpression",*getNodes(e,r){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===t(e,r.sourceCode.getScope(e))&&(yield e.property)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(!(r(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,n]=e.arguments;i(n,t)&&(yield n)},messageId:n},{selector:"CallExpression",*getNodes(e,t){if(r(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;i(e,t)&&(yield e)}}},messageId:n},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:u},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:u},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:u}];return rn={create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of s)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[n]:"Do not add `then` to an object.",[u]:"Do not export `then`.",[a]:"Do not add `then` to a class."}}}}()),s9=iw(function(){if(ri)return ra;ri=1;let{getFunctionHeadLocation:e}=sy,{isMethodCall:t}=sS(),r="no-invalid-remove-event-listener";return ra={create:n=>({CallExpression(u){if(!(t(u,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==u.arguments[0].type&&("FunctionExpression"===u.arguments[1].type||"ArrowFunctionExpression"===u.arguments[1].type||t(u.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,a]=u.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(a.type)?{node:a,loc:e(a,n.sourceCode),messageId:r}:{node:a.callee.property,messageId:r}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[r]:"The listener argument should be a function reference."}}}}()),s7=iw(function(){if(rs)return ro;rs=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sy,{getReferences:r,isNodeMatches:n}=sK(),{functionTypes:u}=sS(),a="consistent-function-scoping",i=(e,t)=>e&&t&&(e===t||e.block===t.block),o=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),s=e=>e.block?.parent?.callee&&n(e.block.parent.callee,o),d=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>d(e))),l=new Set(["FunctionExpression","ArrowFunctionExpression"]),c=e=>l.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;return ro={create:n=>{let{checkArrowFunctions:o}={checkArrowFunctions:!0,...n.options[0]},{sourceCode:l}=n,{scopeManager:f}=l,p=[];n.on(u,()=>{p.push(!1)}),n.on("JSXElement",()=>{p.length>0&&(p[p.length-1]=!0)}),n.onExit(u,n=>{if(!(p.pop()||"ArrowFunctionExpression"===n.type&&!o||function(e,t){let n=t.acquire(e);if(!n||d(n))return!0;let u=e.parent;"VariableDeclarator"===u.type&&(u=u.parent),"VariableDeclaration"===u.type&&(u=u.parent),"BlockStatement"===u.type&&(u=u.parent);let a=t.acquire(u);return!!(!a||"global"===a.type||s(a)||c(u))||function(e,t,n){let u=e=>e.some(e=>{if(i(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&i(t,r.scope)}),a=e=>e.some(e=>i(t,n.acquire(e.node))),o=r=>r.some(r=>{if(!r.parent||"FunctionDeclaration"!==r.parent.type||n.acquire(r))return!1;let u=n.acquire(r.parent);return!(!u||i(e,u))&&i(t,u.upper)});return r(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||a(e.defs)||o(e.identifiers))}(n,a,t)}(n,f)))return{node:n,loc:e(n,l),messageId:a,data:{functionNameWithKind:t(n,l)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[a]:"Move {{functionNameWithKind}} to the outer scope."}}}}()),de=iw(function(){if(rf)return rc;rf=1;let{getStaticValue:e}=sy,{switchNewExpressionToCallExpression:t}=s5(),r=function(){if(rl)return rd;rl=1;let{getStaticValue:e}=sy,{isNumberLiteral:t}=sS(),r=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),n=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,u=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),a=e=>r(e,"Math",u),i=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),o=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Math",i),s=e=>n(e,"Number"),d=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),l=e=>r(e,"Number",d),c=new Set(["parseFloat","parseInt"]),f=e=>"CallExpression"===e.type&&!e.optional&&r(e.callee,"Number",c),p=e=>n(e,"parseInt")||n(e,"parseFloat"),m=(t,r)=>"number"==typeof e(t,r)?.value,g=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,y=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);return rd=function r(n,u){if(t(n)||a(n)||o(n)||s(n)||l(n)||f(n)||p(n)||g(n))return!0;switch(n.type){case"AssignmentExpression":{let{operator:e}=n;if("="===e&&r(n.right,u))return!0}case"BinaryExpression":{let{operator:e}=n;if("AssignmentExpression"===n.type&&(e=e.slice(0,-1)),"+"===e&&r(n.left,u)&&r(n.right,u)||">>>"===e||y.has(e)&&(r(n.left,u)||r(n.right,u)))return!0;break}case"UnaryExpression":{let{operator:e}=n;if("+"===e||("-"===e||"~"===e)&&r(n.argument,u))return!0;break}case"UpdateExpression":if(r(n.argument,u))return!0;break;case"ConditionalExpression":{let t=r(n.consequent,u),a=r(n.alternate,u);if(t&&a)return!0;let i=e(n.test,u);if(null!==i&&(i.value&&t||!i.value&&a))return!0;break}case"SequenceExpression":if(r(n.expressions.at(-1),u))return!0}return m(n,u)}}(),{isNewExpression:n}=sS(),u="error",a="error-unknown",i="suggestion",o=(t,n)=>{if(1!==t.length)return"from";let[u]=t;if("SpreadElement"===u.type)return;if("ArrayExpression"===u.type||"TemplateLiteral"===u.type)return"from";if(r(u,n))return"alloc";let a=e(u,n);if(a){let{value:e}=a;if("string"==typeof e||Array.isArray(e))return"from"}};function s(e,r,n){return function*(u){yield u.insertTextAfter(e.callee,`.${n}`),yield*t(e,r,u)}}return rc={create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!n(e,{name:"Buffer"}))return;let r=o(e.arguments,t.getScope(e));return r?{node:e,messageId:u,data:{method:r},fix:s(e,t,r)}:{node:e,messageId:a,suggest:["from","alloc"].map(r=>({messageId:i,data:{replacement:r},fix:s(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[a]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[i]:"Switch to `Buffer.{{replacement}}()`."}}}}()),dt=iw(function(){if(rm)return rp;rm=1;let e=sG(),{isStringLiteral:t,isMethodCall:r}=sS(),n="no-console-spaces",u=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),a=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);return rp={create:i=>{let{sourceCode:o}=i,s=(t,r,u)=>{let a="leading"===u?t.range[0]+1:t.range[1]-2,i=[a,a+1];return{loc:e(i,o),messageId:n,data:{method:r,position:u},fix:e=>e.removeRange(i)}};return{*CallExpression(e){if(!r(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:i}=e,{length:d}=i;for(let[e,r]of i.entries()){if(!t(r)&&"TemplateLiteral"!==r.type)continue;let i=o.getText(r).slice(1,-1);0!==e&&u(i)&&(yield s(r,n,"leading")),e!==d-1&&a(i)&&(yield s(r,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[n]:"Do not use {{position}} space between `console.{{method}}` parameters."}}}}()),dr=iw(function(){if(ry)return rg;ry=1;let{isEmptyNode:e,isDirective:t}=sS(),r="no-empty-file",n=r=>e(r,t),u=e=>"Line"===e.type&&e.value.startsWith("/"),a=e=>e.some(e=>u(e));return rg={create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!n(e)))return;let{sourceCode:u}=e;if(!a(u.getAllComments()))return{node:t,messageId:r}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[r]:"Empty files are not allowed."}}}}()),dn=iw(function(){if(rb)return rh;rb=1;let{isParenthesized:e,getParenthesizedRange:t}=sb(),{removeParentheses:r}=s5(),n="no-useless-fallback-in-spread";return rh={create:u=>({ObjectExpression(a){if(0===a.properties.length&&"LogicalExpression"===a.parent.type&&a.parent.right===a&&("||"===a.parent.operator||"??"===a.parent.operator)&&"SpreadElement"===a.parent.parent.type&&a.parent.parent.argument===a.parent&&"ObjectExpression"===a.parent.parent.parent.type&&a.parent.parent.parent.properties.includes(a.parent.parent))return{node:a,messageId:n,*fix(n){let{sourceCode:i}=u,o=a.parent,{left:s}=o,d=e(s,i),[,l]=d?t(s,i):s.range,[,c]=o.range;yield n.removeRange([l,c]),(d||"SequenceExpression"!==s.type)&&(yield*r(o,n,i))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[n]:"The empty object is useless."}}}}()),du=iw(function(){if(rv)return rx;rv=1;let{isMethodCall:e,isMemberExpression:t}=sS(),{getParenthesizedRange:r,isSameReference:n,isLogicalExpression:u}=sK(),a=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&t(e.left,{property:"length",optional:!1})&&u(e.parent);return rx={create:t=>{let i=[],o=new Set,s=new Set,d=new Set,l=new Set;return{BinaryExpression(e){if(a(e)){let{operator:t}=e;"==="===t?o.add(e):(">"===t||"!=="===t)&&s.add(e)}},CallExpression(t){e(t,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===t.callee.property.type&&("some"===t.callee.property.name?d.add(t):"every"===t.callee.property.name&&l.add(t))},LogicalExpression(e){u(e)&&i.push(e)},*"Program:exit"(){for(let e of new Set(i.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,r,u)=>(function({node:e,operator:t,siblings:r}){return"||"===t&&o.has(e)&&r.some(t=>l.has(t)&&n(e.left.object,t.callee.object))||"&&"===t&&s.has(e)&&r.some(t=>d.has(t)&&n(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[u[r-1],u[r+1]].filter(Boolean)}))})(e))))yield{loc:{start:e.left.property.loc.start,end:e.loc.end},messageId:o.has(e)?"zero":"non-zero",fix(n){let{sourceCode:u}=t,{left:a,right:i}=e.parent,o=r(a,u),s=r(i,u),d=[];return a===e?(d[0]=o[0],d[1]=s[0]):(d[0]=o[1],d[1]=s[1]),n.removeRange(d)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}}}()),da=iw(function(){if(rA)return rE;rA=1;let{getParenthesizedRange:e}=sK(),{isFunction:t,isMethodCall:r}=sS();return rE={create:n=>{let{sourceCode:u}=n;return{CallExpression(n){if(!(r(n,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===n.parent.type&&n.parent.body===n||"ReturnStatement"===n.parent.type&&n.parent.argument===n||"YieldExpression"===n.parent.type&&!n.parent.delegate&&n.parent.argument===n)))return;let{functionNode:a,isInTryStatement:i}=function(e){let r,n=!1;for(;e;e=e.parent){if(t(e)){r=e;break}"TryStatement"===e.type&&(n=!0)}return{functionNode:r,isInTryStatement:n}}(n);if(a&&(a.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(a)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(n,function(t,r,n){if(t.arguments.length>1)return;let{callee:u,parent:a,arguments:[i]}=t;if(i?.type==="SpreadElement")return;let o="reject"===u.property.name,s="YieldExpression"===a.type;if(!o||!r&&(!s||"ExpressionStatement"===a.parent.type))return function(r){let u="ArrowFunctionExpression"===a.type,d=i?n.getText(i):"";if(i?.type==="SequenceExpression"&&(d=`(${d})`),o){if(d||="undefined",d=`throw ${d}`,s)return r.replaceTextRange(e(a,n),d);if(d+=";",u)return d=`{ ${d} }`,r.replaceTextRange(e(t,n),d)}else s?d=`yield${d?" ":""}${d}`:"ReturnStatement"===a.type?d=`return${d?" ":""}${d};`:(i?.type==="ObjectExpression"&&(d=`(${d})`),d||="{}");return r.replaceText(u?t:a,d)}}(n,i,u))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}}}()),di=iw(function(){if(rD)return rC;rD=1;let{isParenthesized:e}=sy,t=sU(),{isDecimalInteger:r}=sW(),n=sG(),{fixSpaceAroundKeyword:u}=s5(),{isNumberLiteral:a}=sS(),i="zero-fraction",o="dangling-dot";return rC={create:s=>({Literal(d){if(!a(d))return;let{raw:l}=d,c=l.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!c)return;let{before:f,dotAndFractions:p,after:m}=c.groups,g=(f+p.replaceAll(/[.0_]+$/g,"")||"0")+m;if(g===l)return;let y="."===p,h=d.range[0]+f.length+p.length,b=h-(l.length-g.length),{sourceCode:x}=s;return{loc:n([b,h],x),messageId:y?o:i,*fix(n){let a=g;"MemberExpression"===d.parent.type&&d.parent.object===d&&r(g)&&!e(d,x)&&(a=`(${a})`,t(x.getTokenBefore(d),x,a)&&(a=`;${a}`)),yield n.replaceText(d,a),yield*u(n,d,x)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[i]:"Don't use a zero fraction in the number.",[o]:"Don't use a dangling dot in the number."}}}}()),ds=iw(function(){if(rw)return rS;rw=1;let{isCommaToken:e,isOpeningBraceToken:t,isClosingBraceToken:r}=sy,{isStringLiteral:n}=sS(),u="error",a="suggestion",i=Symbol.for("default"),o=Symbol("NAMESPACE_SPECIFIER_NAME"),s=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},d=e=>"type"===e.exportKind||"type"===e.parent.exportKind,l=e=>"type"===e.importKind||"type"===e.parent.importKind;function*c(t,n,u){switch(t.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(t,n,u){let{parent:a}=t,{specifiers:i}=a;if(1===i.length){yield*c(a,n,u);return}switch(t.type){case"ImportSpecifier":if(!i.some(e=>e!==t&&e.type===t.type)){let a=u.getTokenAfter(t,r),i=u.getTokenBefore(t,e);yield n.replaceTextRange([i.range[0],a.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield n.remove(t);let r=u.getTokenAfter(t);e(r)&&(yield n.remove(r))}}}(t,n,u);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield n.remove(t)}}function f(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}return rS={create:function(e){let{sourceCode:r}=e,{ignoreUsedVariables:p}={ignoreUsedVariables:!1,...e.options[0]},m=new Set,g=[];return{ImportDeclaration(e){e.specifiers.length>0&&m.add(e)},ExportNamedDeclaration(e){n(e.source)&&g.push(e)},*"Program:exit"(e){for(let n of m){let m=r.getDeclaredVariables(n);if(m.some(e=>1!==e.defs.length||e.defs[0].parent!==n)||(m=m.map(e=>{let t=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:l(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:i,text:"default",...n};case"ImportSpecifier":return{name:s(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:o,text:"*",...n}}}(e,r),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:i,text:"default",isTypeExport:d(r)};case"ExportSpecifier":return{node:r,name:s(r.exported),text:t.getText(r.exported),isTypeExport:d(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==o||u.name!==i)&&r.push(u)}return r}(t,r);return{variable:e,imported:t,exports:n}}),p&&m.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let y=p&&m.some(({variable:e})=>0===e.references.length);for(let{imported:n,exports:i}of m)for(let s of i){let i={node:s.node,messageId:u,data:{exported:s.text}},d=function({sourceCode:e,imported:r,exported:n,exportDeclarations:u,program:a}){let i;let s=r.declaration,d=s.source.value,l=r.isTypeImport||n.isTypeExport;return l&&(i=u.find(({source:e,exportKind:t})=>e.value===d&&"type"===t)),i||=u.find(({source:e,exportKind:t})=>e.value===d&&"type"!==t),function*(u){if(r.name===o)yield u.insertTextAfter(a,`
2
2
  export * as ${n.text} ${f(s,e)}`);else{let o=n.name===r.name?n.text:`${r.text} as ${n.text}`;if(l&&(!i||"type"!==i.exportKind)&&(o=`type ${o}`),i){let r=i.specifiers.at(-1);if(r)yield u.insertTextAfter(r,`, ${o}`);else{let r=e.getFirstToken(i,t);yield u.insertTextAfter(r,o)}}else yield u.insertTextAfter(a,`
3
- export {${o}} ${f(s,e)}`)}1===r.variable.references.length&&(yield*c(r.node,u,e)),yield*c(n.node,u,e)}}({sourceCode:r,imported:n,exported:s,exportDeclarations:m,program:e});g?i.suggest=[{messageId:a,fix:d}]:i.fix=d,yield i}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[u]:"Use `export…from` to re-export `{{exported}}`.",[a]:"Switch to `export…from`."}}}}()),ds=iw(function(){if(rI)return rk;rI=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sg,{functionTypes:r}=sD(),n="prefer-native-coercion-functions",u=new Set(["String","Number","BigInt","Boolean","Symbol"]),a=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),i=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&u.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,o=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,s=e=>o(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&a.has(e.parent.callee.property.name);return rk={create:u=>{u.on(r,r=>{if(r.async||r.generator||0===r.params.length||"Identifier"!==r.params[0].type||("MethodDefinition"===r.parent.type&&("constructor"===r.parent.kind||"set"===r.parent.kind)||"Property"===r.parent.type&&"set"===r.parent.kind)&&r.parent.value===r)return;let a=function(e){if(s(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(r)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&i(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(r);if(!a)return;let{sourceCode:o}=u,{replacementFunction:d,fix:l}=a;return a={node:r,loc:e(r,o),messageId:n,data:{functionNameWithKind:t(r,o),replacementFunction:d}},!l||1!==r.params.length||o.getCommentsInside(r).length>0||(a.fix=l),a})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[n]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}}}());function dd(){if(rF)return rT;rF=1;let{ReferenceTracker:e}=sg,t=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};class r{#e={};#t;#r;constructor({object:r,objects:n=[r],filter:u,handle:a,type:i=e.READ}){for(let e of n)Object.assign(this.#e,t(e,i));this.#t=u,this.#r=a}*track(t){for(let r of new e(t).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(r))continue;let e=this.#r(r);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}}return Object.assign(r,{READ:e.READ,CALL:e.CALL,CONSTRUCT:e.CONSTRUCT}),rT={GlobalReferenceTracker:r}}var dl=iw(function(){if(rB)return rP;rB=1;let{GlobalReferenceTracker:e}=dd(),t="no-document-cookie",r=new e({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:t})});return rP={create:e=>r.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[t]:"Do not use `document.cookie` directly."}}}}()),dc=iw(function(){if(rR)return rO;rR=1;let{isParenthesized:e}=sg,t=function(){if(rL)return rj;rL=1;let e=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];return rj=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...e("AnimationStart"),...e("AnimationEnd"),...e("AnimationIteration"),...e("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"])}(),{isUndefined:r,isNullLiteral:n,isStaticRequire:u}=sD(),a="prefer-add-event-listener",i={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},o=e=>e.property.name,s=e=>e.slice(2),d=(t,r,n,u)=>{let a=s(o(u)),i=r.getText(u.object);e(u.object,r)&&(i=`(${i})`);let d=r.getText(n.right);e(n.right,r)&&(d=`(${d})`);let l=`${i}.addEventListener('${a}', ${d})`;return t.replaceText(n,l)},l=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),c=e=>r(e)||n(e);return rO={create:e=>{let r,n;let f=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),p=new WeakMap;return{onCodePathStart(e,t){n={node:t,upper:n,returnsSomething:!1}},onCodePathEnd(){p.set(n.node,n.returnsSomething),n=n.upper},CallExpression(e){u(e)&&!r&&f.has(e.arguments[0].value)&&(r=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!r&&f.has(e.value)&&(r=!0)},ReturnStatement(e){n.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(n){let u;if(r)return;let{left:f,right:h,operator:m}=n;if("MemberExpression"!==f.type||f.computed)return;let g=o(f);if(!g||!g.startsWith("on"))return;let y=s(g);if(!t.has(y))return;let b="addEventListener",v="";return c(h)?b="removeEventListener":"beforeunload"!==y||l(h,p)?"message"===y?v=i.message:"error"===y?v=i.error:"="===m&&"ExpressionStatement"===n.parent.type&&n.parent.expression===n&&(u=t=>d(t,e.sourceCode,n,f)):v=i.beforeunload,{node:f.property,messageId:a,data:{replacement:b,method:g,extra:v?` ${v}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[a]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}}}()),df=iw(function(){if(rU)return r$;rU=1;let e=function(){if(rN)return rM;rN=1;let{hasSideEffect:e,isParenthesized:t,findVariable:r}=sg,{isMethodCall:n}=sD(),{isSameIdentifier:u,isFunctionSelfUsedInside:a}=sZ(),i=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(u(e.left,t)||u(e.right,t)),o=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&i(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,e.params[0]),s=({type:e,name:t},r)=>"Identifier"===e&&t===r;return rM=function({method:u,replacement:i}){let d=`prefer-${i}-over-${u}/`,l=`${d}error`,c=`${d}suggestion`;return{messages:{[l]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${i}()\` instead of \`.${u}()\` when checking value existence.`})[u],[c]:`Replace \`.${u}()\` with \`.${i}()\`.`},listen:function(d){let{sourceCode:f}=d,{scopeManager:p}=f;d.on("CallExpression",d=>{let h,m;if(!n(d,{method:u,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!o(d.arguments[0]))return;let[g]=d.arguments,y="BinaryExpression"===g.body.type?g.body:g.body.body[0].argument,[b]=g.params,{left:v,right:x}=y,{name:E}=b;if(s(v,E))h=x,m=v;else{if(!s(x,E))return;h=v,m=x}let C=p.acquire(g);if(r(C,b).references.some(({identifier:e})=>e!==m)||a(g,C))return;let A=d.callee.property,S={node:A,messageId:l,suggest:[]},D=function*(e){let r=f.getText(h);t(h,f)&&!t(g,f)&&(r=`(${r})`),yield e.replaceText(A,i),yield e.replaceText(g,r)};return e(h,f)?S.suggest.push({messageId:c,fix:D}):S.fix=D,S})}}}}(),t=e({method:"findIndex",replacement:"indexOf"}),r=e({method:"findLastIndex",replacement:"lastIndexOf"});return r$={create(e){t.listen(e),r.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...t.messages,...r.messages}}}}()),dp=iw(function(){if(rz)return rV;rz=1;let{isMethodCall:e}=sD(),t="error";return rV={create:()=>({CallExpression(r){if(!e(r,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=r.callee.property,u=n.name;return{node:n,messageId:t,data:{method:u,replacement:"readAsArrayBuffer"===u?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[t]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}}}()),dh=iw(function(){if(rW)return rq;rW=1;let{isMethodCall:e,isCallExpression:t,isNewExpression:r}=sD(),{fixSpaceAroundKeyword:n}=s4(),u="prefer-date",a="prefer-date-now-over-methods",i="prefer-date-now-over-number-data-object",o=e=>r(e,{name:"Date",argumentsLength:0}),s=(e,t,r)=>({node:e,messageId:u,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*n(t,e,r))},...t});return rq={create:r=>({CallExpression(r){if(e(r,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&o(r.callee.object)){let e=r.callee.property;return s(r,{node:e,messageId:a,data:{method:e.name}})}if(t(r,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&o(r.arguments[0])){let{name:e}=r.callee;return"Number"===e?s(r,{messageId:i}):s(r.arguments[0])}},UnaryExpression(e){if(("+"===e.operator||"-"===e.operator)&&o(e.argument))return s("-"===e.operator?e.argument:e,{},r.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&o(e.right))return s(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])o(t)&&(yield s(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[u]:"Prefer `Date.now()` over `new Date()`.",[a]:"Prefer `Date.now()` over `Date#{{method}}()`.",[i]:"Prefer `Date.now()` over `Number(new Date())`."}}}}()),dm=iw(function(){if(rZ)return rG;rZ=1;let{isIdentifierName:e}=sT(),{escapeString:t,hasOptionalChainElement:r,isValueNotUsable:n}=sZ(),{isMethodCall:u,isStringLiteral:a,isExpressionStatement:i}=sD(),o="prefer-dom-node-dataset",s=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());return rG={create:d=>({CallExpression(l){if(!((u(l,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||u(l,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&a(l.arguments[0])))return;let c=l.callee.property.name;if(("AwaitExpression"!==l.parent.type||l.parent.argument!==l||"getAttribute"!==c)&&l.arguments[0].value.toLowerCase().startsWith("data-"))return{node:l,messageId:o,data:{method:l.callee.property.name},fix:function(u,a){let o=u.callee.property.name;if(!("setAttribute"===o&&r(u.callee))&&("setAttribute"!==o||n(u))&&("removeAttribute"!==o||i(u.parent)))return r=>{let[n]=u.arguments,i=s(n.value.toLowerCase().slice(5)),{sourceCode:d}=a,l="",c=`${d.getText(u.callee.object)}.dataset`;switch(o){case"setAttribute":case"getAttribute":case"removeAttribute":l=e(i)?`.${i}`:`[${t(i,n.raw.charAt(0))}]`,l=`${c}${l}`,"setAttribute"===o?l+=` = ${d.getText(u.arguments[1])}`:"removeAttribute"===o&&(l=`delete ${l}`);break;case"hasAttribute":l=`Object.hasOwn(${c}, ${t(i,n.raw.charAt(0))})`}return r.replaceText(u,l)}}(l,d)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `.dataset` over `{{method}}(…)`."}}}}()),dg=iw(function(){if(rK)return rH;rK=1;let{getParenthesizedText:e,getParenthesizedRange:t,isSameReference:r}=sZ(),{isLiteral:n,isMethodCall:u}=sD(),{replaceNodeOrTokenAndSpacesBefore:a,removeParentheses:i}=s4(),o="prefer-modern-math-apis",s=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,d=(e,t)=>"CallExpression"===e.type&&!e.optional&&s(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function l({constantName:t,replacementMethod:r}){let n=`Math.${r}(…)`;return function(u,a){let i,l;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(d(u.left,"log")&&s(u.right,t)?(i=u.left,l=`Math.log(…) * Math.${t}`):d(u.right,"log")&&s(u.left,t)&&(i=u.right,l=`Math.${t} * Math.log(…)`),!i))return;let[c]=i.arguments;return{node:u,messageId:o,data:{replacement:n,description:l},fix:t=>t.replaceText(u,`Math.${r}(${e(c,a.sourceCode)})`)}}}function c({constantName:t,replacementMethod:r}){let n={messageId:o,data:{replacement:`Math.${r}(…)`,description:`Math.log(…) / Math.${t}`}};return function(u,a){if(!("BinaryExpression"===u.type&&"/"===u.operator&&d(u.left,"log")&&s(u.right,t)))return;let[i]=u.left.arguments;return{...n,node:u,fix:t=>t.replaceText(u,`Math.${r}(${e(i,a.sourceCode)})`)}}}let f=[l({constantName:"LOG10E",replacementMethod:"log10"}),l({constantName:"LOG2E",replacementMethod:"log2"}),c({constantName:"LN10",replacementMethod:"log10"}),c({constantName:"LN2",replacementMethod:"log2"})],p=e=>"BinaryExpression"===e.type&&"+"===e.operator,h=e=>"BinaryExpression"===e.type&&("*"===e.operator&&r(e.left,e.right)||"**"===e.operator&&n(e.right,2)),m=e=>p(e)?[e.left,e.right].flatMap(e=>m(e)):[e];return rH={create:e=>{let r=[];return{CallExpression(r){if(!u(r,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=m(r.arguments[0]);if(n.some(e=>!h(e)))return;let s=1===n.length?"abs":"hypot",d=new Set(1===n.length?[]:n.map(e=>e.parent));return{node:r.callee.property,messageId:o,data:{replacement:`Math.${s}(…)`,description:"Math.sqrt(…)"},*fix(u){let{sourceCode:o}=e;for(let e of(yield u.replaceText(r.callee.property,s),d)){let t=o.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*a(t,",",u,o),yield*i(e,u,o)}for(let e of n)yield u.removeRange([t(e.left,o)[1],e.range[1]])}}},BinaryExpression(e){r.push(e)},*"Program:exit"(){for(let t of r)for(let r of f){let n=r(t,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `{{replacement}}` over `{{description}}`."}}}}()),dy=ik(n);function db(){if(rJ)return rX;rJ=1;let e=iF(),t=e=>"function"==typeof e?.[Symbol.iterator];class r extends Error{}let n={abort(){throw new r("Fix aborted.")}};function u(e){return u=>{let a=e(u,n);if(t(a))try{return[...a]}catch(e){if(e instanceof r)return;throw e}return a}}let a=new Set;function i(e){if(a.has(e))return e;let r=r=>{let n={},a=(e,t)=>{n[e]??=[],n[e].push(t)};for(let[t,n]of Object.entries(e(new Proxy(r,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))a(t,n);return Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{for(let a of n)!function(e,r){if(e){for(let n of(t(e)||(e=[e]),e))if(n){if(n.fix&&=u(n.fix),Array.isArray(n.suggest))for(let e of n.suggest)e.fix&&=u(e.fix),e.data={...n.data,...e.data};r.report(n)}}}(a(...e),r)}]))};return a.add(r),r}function o(t){let r=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${t}`);return{meta:{schema:[],...r.meta,docs:{...r.meta.docs,url:e(t)}},create:i(r.create)}}return rX={loadRule:o,loadRules:function(){return Object.fromEntries(dy.readdirSync(iI.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=iI.basename(e.name,".js");return[t,o(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=i(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return a.add(n),n}}}var dv=iw(function(){if(rY)return rQ;rY=1;let{checkVueTemplate:e}=db(),{isNumberLiteral:t,isBigIntLiteral:r}=sD(),n="number-literal-case",u=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};return rQ={create:e(()=>({Literal(e){let{raw:a}=e,i=a;if(t(e)?i=u(a):r(e)&&(i=u(a.slice(0,-1))+"n"),a!==i)return{node:e,messageId:n,fix:t=>t.replaceText(e,i)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[n]:"Invalid number literal casing."}}}}()),dx=iw(function(){if(r1)return r0;r1=1;let{GlobalReferenceTracker:e}=dd(),{replaceReferenceIdentifier:t}=s4(),{fixSpaceAroundKeyword:r}=s4(),n=sR(),u="error",a="suggestion",i={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},o=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};return r0={create:s=>{let{checkInfinity:d,checkNaN:l}={checkInfinity:!1,checkNaN:!0,...s.options[0]},{sourceCode:c}=s;return new e({objects:Object.keys(i).filter(e=>(!!d||"Infinity"!==e)&&(!!l||"NaN"!==e)),handle:e=>(function({node:e,path:[n]},s){let{parent:d}=e,l=n;"Infinity"===n&&(l=o(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let c={node:e,messageId:u,data:{description:n,property:l}};if("NEGATIVE_INFINITY"===l)return c.node=d,c.data.description="-Infinity",c.fix=function*(e){yield e.replaceText(d,"Number.NEGATIVE_INFINITY"),yield*r(e,d,s)},c;let f=r=>t(e,`Number.${l}`,r,s);return i[n]?c.fix=f:c.suggest=[{messageId:a,fix:f}],c})(e,c),filter:({node:e})=>!n(e)}).createListeners(s)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[u]:"Prefer `Number.{{property}}` over `{{description}}`.",[a]:"Replace `{{description}}` with `Number.{{property}}`."}}}}()),dE=iw(function(){if(r3)return r2;r3=1;let{getPropertyName:e}=sg,{isNullLiteral:t,isMethodCall:r}=sD(),n="prefer-reflect-apply",u=(e,r)=>(t(e)||"ThisExpression"===e.type)&&("ArrayExpression"===r.type||"Identifier"===r.type&&"arguments"===r.name),a=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,i=(t,r)=>{if("apply"===e(t.callee)&&2===t.arguments.length&&u(t.arguments[0],t.arguments[1]))return e=>e.replaceText(t,a(r,t.callee.object,t.arguments[0],t.arguments[1]))},o=(t,r)=>{if("call"===e(t.callee)&&"apply"===e(t.callee.object)&&"prototype"===e(t.callee.object.object)&&t.callee.object.object.object?.type==="Identifier"&&"Function"===t.callee.object.object.object.name&&3===t.arguments.length&&u(t.arguments[1],t.arguments[2]))return e=>e.replaceText(t,a(r,t.arguments[0],t.arguments[1],t.arguments[2]))};return r2={create:e=>({CallExpression(t){if(!r(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:u}=e,a=i(t,u)||o(t,u);if(a)return{node:t,messageId:n,fix:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `Reflect.apply()` over `Function#apply()`."}}}}()),dC=iw(function(){if(r5)return r4;r5=1;let{findVariable:e}=sg,{fixSpaceAroundKeyword:t}=s4(),{isNewExpression:r,isMemberExpression:n}=sD(),u="prefer-set-size",a=e=>r(e,{name:"Set"});return r4={create:r=>{let{sourceCode:i}=r;return{MemberExpression(r){if(!n(r,{property:"length",optional:!1})||"ArrayExpression"!==r.object.type||1!==r.object.elements.length||r.object.elements[0]?.type!=="SpreadElement")return;let o=r.object.elements[0].argument;if(function(t,r){if(a(t))return!0;if("Identifier"!==t.type)return!1;let n=e(r,t);if(!n||1!==n.defs.length)return!1;let[u]=n.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let i=u.node;return"VariableDeclarator"===i.type&&"Identifier"===i.id.type&&a(u.node.init)}(o,i.getScope(o)))return{node:r.property,messageId:u,fix:function(e,r){let{object:n,property:u}=r,a=n.elements[0].argument;if(!(e.getCommentsInside(n).length>e.getCommentsInside(a).length))return function*(i){yield i.replaceText(u,"size"),yield i.replaceText(n,e.getText(a)),yield*t(i,r,e)}}(i,r)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[u]:"Prefer using `Set#size` instead of `Array#length`."}}}}()),dA={exports:{}},dS=iw(function(){var e,t,r,n;if(r9)return r6;r9=1;let{getStaticValue:u}=sg,{parse:a}=(r8||(r8=1,r=String.fromCodePoint||(e=String.fromCharCode,t=Math.floor,function(){var r,n,u=[],a=-1,i=arguments.length;if(!i)return"";for(var o="";++a<i;){var s=Number(arguments[a]);if(!isFinite(s)||s<0||s>1114111||t(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?u.push(s):(s-=65536,r=(s>>10)+55296,n=s%1024+56320,u.push(r,n)),(a+1==i||u.length>16384)&&(o+=e.apply(null,u),u.length=0)}return o}),n={parse:function(e,t,n){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function a(e,t){return e.range[0]=t,u(e)}function i(e,t){return u({type:"anchor",kind:e,range:[X-t,X]})}function o(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,n]})}function s(e,t,r,n){return n=n||0,o(e,t,X-(r.length+n),X)}function d(e){var t,r=e[0],n=r.charCodeAt(0);return K&&1===r.length&&n>=55296&&n<=56319&&(t=y().charCodeAt(0))>=56320&&t<=57343?o("symbol",(n-55296)*1024+t-56320+65536,++X-2,X):o("symbol",n,X-1,X)}function l(e,t,r,n,a){return null==n&&(r=X-1,n=X),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function c(e,t,r,n){return u({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,n]})}function f(e,t,r,n){return e.codePoint>t.codePoint&&V("invalid range in character class",e.raw+"-"+t.raw,r,n),u({type:"characterClassRange",min:e,max:t,range:[r,n]})}function p(e){return"alternative"===e.type?e.body:[e]}function h(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){g(e)||V("character",e)}function g(t){if(e.indexOf(t,X)===X)return h(t.length)}function y(){return e[X]}function b(t){return e.indexOf(t,X)===X}function v(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,h(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(C());g("|");)e.push(C());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,X]})}function C(){for(var t,r=[],s=X;t=function(){if(X>=e.length||b("|")||b(")"))return null;var t=g("^")?i("start",1):g("$")?i("end",1):g("\\b")?i("boundary",2):g("\\B")?i("not-boundary",2):A("(?=","lookahead","(?!","negativeLookahead");if(!t){var r=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return d(t);if(g("."))return u({type:"dot",range:[X-1,X]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return o("symbol",92,X-1,X);V("atomEscape")}return t}if(t=L())return t;if(n.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(n.namedGroups&&g("(?<")){var t,r,a,i,s,l,c=P();m(">");var f=S("normal",c.range[0]-3);return f.name=c,f}else return n.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,h(2),i=x(/^[sim]+/),g("-")?(r=x(/^[sim]+/))||V("Invalid flags for modifiers group"):i||V("Invalid flags for modifiers group"),((s=(i=i?i[0]:"")+(r=r?r[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(s))&&V("flags cannot be duplicated for modifiers group"),m(":"),(l=S("ignore",a)).modifierFlags={enabling:i,disabling:r},l):A("(?:","ignore","(","normal")}();if(!r){var s,l,c=X;(s=D()||!1)&&(X=c,V("Expected atom")),!K&&(l=x(/^{/))?r=d(l):V("Expected atom")}t=r}return(s=D()||!1)?(s.body=p(t),a(s,t.range[0]),s):t}();)r.push(t);return 1===r.length?r[0]:u({type:"alternative",body:r,range:[s,X]})}function A(e,t,r,n){var u=null,a=X;if(g(e))u=t;else{if(!g(r))return!1;u=n}return S(u,a)}function S(e,t){var r=E();r||V("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,X]});return"normal"==e&&W&&q++,n}function D(){var e,t,r,n,u=X;return g("*")?e=l(0,void 0,void 0,void 0,"*"):g("+")?e=l(1,void 0,void 0,void 0,"+"):g("?")?e=l(0,1,void 0,void 0,"?"):(n=x(/^\{([0-9]+)\}/))?e=l(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),\}/))?e=l(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&V("numbers out of order in {} quantifier","",u,X),e=l(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&V("iterations outside JS safe integer range in quantifier","",u,X),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function _(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=X;X++;var a=w(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",u(e)):X=n}}return e}function w(e){var t,r,i=X;if(r=function(e){var t,r,n=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=q&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(z.push(o),W?G=!0:k(n,X),h(-t[0].length),t=x(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):a(t=d(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&k(n,X),/^0{1,3}$/.test(r))?s("null",0,"0",r.length):s("octal",parseInt(r,8),r,1))}(e)||function(){if(n.namedGroups&&x(/^k<(?=.*?>)/)){var e=P();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return r;if(e){if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))V("\\B not possible inside of CharacterClass","",i);else if(!K&&(r=x(/^c([0-9])/)))return s("controlLetter",r[1]+16,r[1],2);else if(!K&&(r=x(/^c_/)))return s("controlLetter",31,"_",2);if(K&&g("-"))return s("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[X-2,X]}):n.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?u({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(n.unicodeSet&&H&&g("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=N();)t.push(e);return u({type:"classString",characters:t,range:[r,X]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,X]})}())||T()}function k(e,t){K&&V("Invalid decimal escape in unicode mode",null,e,t)}function I(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?_(s("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?s("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function T(){var e,t,r,u=X;if(r=x(/^[fnrtv]/)){var a=0;switch(r[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return s("singleEscape",a,"\\"+r[0])}return(r=x(/^c([a-zA-Z])/))?s("controlLetter",r[1].charCodeAt(0)%32,r[1],2):(r=x(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(r[1],16),r[1],2):(r=I())?((!r||r.codePoint>1114111)&&V("Invalid escape sequence",null,u,X),r):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&n.lookbehind?null:s("identifier",(e=h()).charCodeAt(0),e,1):null)}function F(t){var n=y(),u=X;if("\\"===n){h();var a=I();return a&&t(a.codePoint)||V("Invalid escape sequence",null,u,X),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[X+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return h(),i>65535&&h(),n}function P(){var e,t=X,r=F(B);for(r||V("Invalid identifier");e=F(j);)r+=e;return u({type:"identifier",value:r,range:[t,X]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\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\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\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-\u1878\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\u1C90-\u1CBA\u1CBD-\u1CBF\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-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\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\uDF2D-\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-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\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-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(r(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\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[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(r(e))}function L(){var e,t=X;return(e=x(/^\[\^/))?(e=O(),m("]"),c(e,!0,t,X)):g("[")?(e=O(),m("]"),c(e,!1,t,X)):null}function O(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=M(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&V("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=M("union"===e));return{kind:e,body:t}}():((t=R())||V("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=d(g("-")),(a=R())||V("classAtom"),n=X;var r,n,u,a,i,o,s=O();return(s||V("classRanges"),"codePoint"in t&&"codePoint"in a?u=[f(t,a,r,n)]:K?V("invalid character class"):u=[t,i,a],"empty"===s.type)?u:u.concat(s.body)}return(o=R())||V("classAtom"),(u=b("]")?o:e(o))||V("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||V("nonEmptyClassRanges"),{kind:"union",body:e})}function R(){var e;return g("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):g("\\")?((e=w(!0))||V("classEscape"),_(e)):void 0}function M(e){var t,r,n=X;if(g("\\")){if(r=w(!0))t=r;else{if(r=U())return r;V("Invalid escape","\\"+y(),n)}}else if(r=$())t=r;else{if(r=L())return r;V("Invalid character",y())}if(e&&b("-")&&!v("-")){if(m("-"),r=N())return f(t,r,n,X);V("Invalid range end",y())}return t}function N(){if(g("\\")){var e,t=X;if(e=U())return e;V("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return d(e)}function U(){var e;if(g("b"))return s("singleEscape",8,"\\b");if(g("B"))V("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=T())return e;else return null}function V(t,r,n,u){n=null==n?X:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}n||(n={});var z=[],q=0,W=!0,G=!1,Z=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=Z||H,X=0;if(H&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(Z&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&V("Could not parse entire input - got stuck","",J.range[1]),G=G||z.some(function(e){return e<=q}))?(X=0,W=!1,E()):J}},dA.exports?dA.exports=n:window.regjsparser=n),dA.exports),i=sj(),{isRegexLiteral:o,isNewExpression:s,isMethodCall:d}=sD(),l="method",c="pattern",f=(e,t)=>{if(o(e))return e.regex.flags.includes("g");if(s(e,{name:"RegExp"})&&e.arguments[0]?.type!=="SpreadElement"&&e.arguments[1]?.type==="Literal"&&"string"==typeof e.arguments[1].value)return e.arguments[1].value.includes("g");let r=u(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global};return r6={create:e=>({CallExpression(t){if(!d(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!f(r,e.sourceCode.getScope(r)))return;let u=n.name,s=function(e){let t;if(!o(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=a(r,n,{unicodePropertyEscape:n.includes("u"),unicodeSet:n.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let u="alternative"===t.type?t.body:[t];if(!u.some(e=>"value"!==e.type))return i(String.fromCodePoint(...u.map(e=>e.codePoint)))}(r);if("replaceAll"===u){if(!s)return;return{node:r,messageId:c,data:{replacement:s.length<20?s:"a string literal"},fix:e=>e.replaceText(r,s)}}return{node:n,messageId:l,*fix(e){yield e.insertTextAfter(n,"All"),s&&(yield e.replaceText(r,s))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[l]:"Prefer `String#replaceAll()` over `String#replace()`.",[c]:"This pattern can be replaced with {{replacement}}."}}}}()),dD=iw(function(){if(ne)return r7;ne=1;let{getStaticValue:e}=sg,{getParenthesizedText:t,getParenthesizedRange:r}=sb(),{replaceArgument:n}=s4(),{isNumberLiteral:u,isMethodCall:a}=sD(),i=e=>u(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-i(e.argument):void 0,o=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;return r7={create:s=>({CallExpression(d){if(!a(d,{methods:["substr","substring"]}))return;let l=d.callee.property.name;return{node:d,messageId:l,*fix(a,{abort:c}){if(yield a.replaceText(d.callee.property,"slice"),0!==d.arguments.length){if(d.arguments.length>2||d.arguments.some(e=>"SpreadElement"===e.type))return c();yield*("substr"===l?function*({node:t,fixer:a,context:s,abort:d}){let l=t.arguments,[c,f]=l;if(!f)return;let{sourceCode:p}=s,h=e(c,p.getScope(t)),m=r(f,p),g=e=>n(a,f,e,p);if(h?.value===0){if(u(f)||o(f))return;if("number"==typeof i(f)){yield g(Math.max(0,i(f)));return}yield a.insertTextBeforeRange(m,"Math.max(0, "),yield a.insertTextAfterRange(m,")");return}if(l.every(e=>u(e))){yield g(c.value+f.value);return}return d()}:function*({node:e,fixer:u,context:a,abort:s}){let{sourceCode:d}=a,[l,c]=e.arguments,f=l?i(l):void 0,p=t(l,d),h=e=>n(u,l,e,d);if(!c){if(o(l))return;if(void 0!==f){yield h(Math.max(0,f));return}let e=r(l,d);yield u.insertTextBeforeRange(e,"Math.max(0, "),yield u.insertTextAfterRange(e,")");return}let m=i(c),g=t(c,d),y=e=>n(u,c,e,d);if(void 0!==f&&void 0!==m){let e=[Math.max(0,f),Math.max(0,m)];f>m&&e.reverse(),e[0]!==f&&(yield h(e[0])),e[1]!==m&&(yield y(e[1]));return}if(0===f||0===m){yield h(0),yield y(`Math.max(0, ${0===f?g:p})`);return}return s()})({node:d,fixer:a,context:s,abort:c})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}}}()),d_=iw(function(){if(nr)return nt;nr=1;let{isMethodCall:e}=sD(),t="prefer-string-trim-start-end";return nt={create:()=>({CallExpression(r){if(!e(r,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let n=r.callee.property,u=n.name,a="trimLeft"===u?"trimStart":"trimEnd";return{node:n,messageId:t,data:{method:u,replacement:a},fix:e=>e.replaceText(n,a)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[t]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}}}()),dw=iw(function(){if(nu)return nn;nu=1;let{isParenthesized:e,getParenthesizedRange:t,toLocation:r}=sZ(),n="no-unreadable-iife";return nn={create:u=>({CallExpression(a){let{sourceCode:i}=u;if("ArrowFunctionExpression"===a.callee.type&&"BlockStatement"!==a.callee.body.type&&e(a.callee.body,i))return{node:a,loc:r(t(a.callee.body,i),i),messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[n]:"IIFE with parenthesized arrow function body is considered unreadable."}}}}()),dk=iw(function(){if(ni)return na;ni=1;let{switchCallExpressionToNewExpression:e}=s4(),t="throw-new-error",r=/^(?:[A-Z][\da-z]*)*Error$/;return na={create:n=>({CallExpression(u){let{callee:a}=u;if("Identifier"===a.type&&r.test(a.name)||"MemberExpression"===a.type&&!a.computed&&"Identifier"===a.property.type&&r.test(a.property.name))return{node:u,messageId:t,fix:t=>e(u,n.sourceCode,t)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[t]:"Use `new` when creating an error."}}}}());function dI(){if(nC)return nE;function e(e){return e?t[e.type](e):""}nC=1;var t={RegExp:function(t){return"/"+e(t.body)+"/"+t.flags},Alternative:function(t){return(t.expressions||[]).map(e).join("")},Disjunction:function(t){return e(t.left)+"|"+e(t.right)},Group:function(t){var r=e(t.expression);return t.capturing?t.name?"(?<"+(t.nameRaw||t.name)+">"+r+")":"("+r+")":"(?:"+r+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(t){switch(t.kind){case"^":case"$":case"\\b":case"\\B":return t.kind;case"Lookahead":var r=e(t.assertion);if(t.negative)return"(?!"+r+")";return"(?="+r+")";case"Lookbehind":var n=e(t.assertion);if(t.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+t.kind)}},CharacterClass:function(t){var r=t.expressions.map(e).join("");return t.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(t){return e(t.from)+"-"+e(t.to)},Repetition:function(t){return""+e(t.expression)+e(t.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};return nE={generate:e}}function dT(){if(nk)return nw;nk=1;var e=function(){if(n_)return nD;n_=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=void 0,n={},u=void 0,a=void 0;function i(e,t){return n.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var o=[[-1,1,function(e,t){a=i(t,t),u=e}],[0,4,function(e,t,r,n,o,s,d,l){a=i(o,l),u=I({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},T(o,l||d))}],[1,1,function(e,t){a=i(t,t),u=e}],[1,0,function(){a=null,u=""}],[2,1,function(e,t){a=i(t,t),u=e}],[2,2,function(e,t,r,n){a=i(r,n),u=e+t}],[3,1,function(e,t){a=i(t,t),u=e}],[4,1,function(e,t){a=i(t,t),u=e}],[4,3,function(e,t,r,n,o,s){a=i(n,s);var d=null;o&&(d=T(n||o,s||o)),u=I({type:"Disjunction",left:e,right:r},d)}],[5,1,function(e,t){if(a=i(t,t),0===e.length){u=null;return}u=1===e.length?I(e[0],a):I({type:"Alternative",expressions:e},a)}],[6,0,function(){a=null,u=[]}],[6,2,function(e,t,r,n){a=i(r,n),u=e.concat(t)}],[7,1,function(e,t){a=i(t,t),u=I(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=I({type:"Repetition",expression:e,quantifier:t},a))}],[8,1,function(e,t){a=i(t,t),u={kind:"^"}}],[8,1,function(e,t){a=i(t,t),u={kind:"$"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\b"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\B"}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[10,1,function(e,t){u=C(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=C(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=C(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=C(e,"unicode",a=i(t,t))}],[10,1,function(e,t){u=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&E.isGeneralCategoryValue(u),o=-1===n&&E.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!E.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!E.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return I({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:E.getCanonicalName(u)||u,canonicalValue:E.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){u=C(e,"control",a=i(t,t))}],[10,1,function(e,t){u=C(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=C(e,"oct",a=i(t,t))}],[10,1,function(e,t){var r,n;r=a=i(t,t),u=(n=Number(e.slice(1)))>0&&n<=g?I({type:"Backreference",kind:"number",number:n,reference:n},r):C(e,"decimal",r)}],[10,1,function(e,t){u=C(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=C(e,"meta",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),u=function(e,t){var r=e.slice(3,-1),n=k(r);if(y.hasOwnProperty(n))return I({type:"Backreference",kind:"name",number:y[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[C(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(A))||(c=e.match(S))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(C(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(C(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){a=i(t,t),u=e}],[11,0],[12,1,function(e,t){a=i(t,t),u=e}],[12,2,function(e,t,r,n){a=i(r,n),e.greedy=!1,u=e}],[13,1,function(e,t){u=I({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=I({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=I({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=v(e);u=I({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=I({type:"Quantifier",kind:"Range",from:v(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=v(e);u=I({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},a)}],[14,1,function(e,t){a=i(t,t),u=e}],[14,1,function(e,t){a=i(t,t),u=e}],[15,3,function(e,t,r,o,s,d){a=i(o,d);var l=String(e),c=k(l);if(!n.options.allowGroupNameDuplicates&&y.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');y[c]=e.groupNumber,u=I({type:"Group",capturing:!0,name:c,nameRaw:l,number:e.groupNumber,expression:t},a)}],[15,3,function(e,t,r,n,o,s){a=i(n,s),u=I({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=I({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=I({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=I({type:"CharacterClass",expressions:t},a=i(n,s))}],[18,0,function(){a=null,u=[]}],[18,1,function(e,t){a=i(t,t),u=e}],[19,1,function(e,t){a=i(t,t),u=[e]}],[19,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[19,4,function(e,t,r,n,o,s,d,l){a=i(o,l),x(e,r),u=[I({type:"ClassRange",from:e,to:r},T(o,d))],n&&(u=u.concat(n))}],[20,1,function(e,t){a=i(t,t),u=e}],[20,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[20,4,function(e,t,r,n,o,s,d,l){a=i(o,l),x(e,r),u=[I({type:"ClassRange",from:e,to:r},T(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=C(e,"simple",a=i(t,t))}],[21,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){u=C(e,"meta",a=i(t,t))}]],s={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},d=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],l=[],c=void 0,f=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\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\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\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\udf2d-\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-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\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\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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\udf2d-\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-\ude35\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\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\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\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\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[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===r);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+r);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\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\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\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\udf2d-\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-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\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\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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\udf2d-\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-\ude35\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\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\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\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\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[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r=r.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],p={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},h={type:"$",value:""};c={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(h);for(var e=this._string.slice(this._cursor),n=p[this.getCurrentState()],u=0;u<n.length;u++){var a=f[n[u]],i=this._match(e,a[0]);if(""===e&&""===i&&this._cursor++,null!==i){(r=i).length;var o=a[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var s,d=o.slice(1);o=o[0],d.length>0&&(s=this._tokensQueue).unshift.apply(s,t(d))}return this.onToken(this._toToken(o,r))}}if(this.isEOF())return this._cursor++,h;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},n.lexer=c,n.tokenizer=c,n.options={captureLocations:!0};var m={setOptions:function(e){return n.options=e,this},getOptions:function(){return n.options},parse:function(e,i){if(!c)throw Error("Tokenizer instance wasn't specified.");c.initString(e);var f=n.options;i&&(n.options=Object.assign({},n.options,i)),m.onParseBegin(e,c,n.options),l.length=0,l.push(0);var p=c.getNextToken(),h=null;do{p||(n.options=f,P());var g=l[l.length-1],y=s[p.type];d[g].hasOwnProperty(y)||(n.options=f,F(p));var b=d[g][y];if("s"===b[0]){var v=null;n.options.captureLocations&&(v={startOffset:p.startOffset,endOffset:p.endOffset,startLine:p.startLine,endLine:p.endLine,startColumn:p.startColumn,endColumn:p.endColumn}),h=this.onShift(p),l.push({symbol:s[h.type],semanticValue:h.value,loc:v},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var x=o[b.slice(1)],E="function"==typeof x[2],C=E?[]:null,A=E&&n.options.captureLocations?[]:null;if(0!==x[1])for(var S=x[1];S-- >0;){l.pop();var D=l.pop();E&&(C.unshift(D.semanticValue),A&&A.unshift(D.loc))}var _={symbol:x[0]};if(E){r=h?h.value:null,h&&h.value.length;var w=null!==A?C.concat(A):C;x[2].apply(x,t(w)),_.semanticValue=u,A&&(_.loc=a)}var k=l[l.length-1],I=x[0];l.push(_,d[k][I])}else if("acc"===b){l.pop();var T=l.pop();if((1!==l.length||0!==l[0]||c.hasMoreTokens())&&(n.options=f,F(p)),T.hasOwnProperty("semanticValue"))return n.options=f,m.onParseEnd(T.semanticValue),T.semanticValue;return m.onParseEnd(),n.options=f,!0}}while(c.hasMoreTokens()||l.length>1)},setTokenizer:function(e){return c=e,m},getTokenizer:function(){return c},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},g=0,y={},b="";function v(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function x(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}m.onParseBegin=function(e,t){b=e,g=0,y={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},m.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++g),e};var E=function(){if(nS)return nA;nS=1;var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},t=s(e),r={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},n=s(r),u={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},a=s(u),i={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},o=s(i);function s(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function d(e){return u.hasOwnProperty(e)||a.hasOwnProperty(e)}function l(e){return i.hasOwnProperty(e)||o.hasOwnProperty(e)}return nA={isAlias:function(e){return t.hasOwnProperty(e)||n.hasOwnProperty(e)},isValidName:function(u){return e.hasOwnProperty(u)||t.hasOwnProperty(u)||r.hasOwnProperty(u)||n.hasOwnProperty(u)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?d(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&l(t)},isGeneralCategoryValue:d,isScriptCategoryValue:l,isBinaryPropertyName:function(e){return r.hasOwnProperty(e)||n.hasOwnProperty(e)},getCanonicalName:function(e){return t.hasOwnProperty(e)?t[e]:n.hasOwnProperty(e)?n[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:o.hasOwnProperty(e)?o[e]:n.hasOwnProperty(e)?n[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:e,NON_BINARY_ALIASES_TO_PROP_NAMES:t,BINARY_PROP_NAMES_TO_ALIASES:r,BINARY_ALIASES_TO_PROP_NAMES:n,GENERAL_CATEGORY_VALUE_TO_ALIASES:u,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:i,SCRIPT_VALUE_ALIASES_TO_VALUE:o}}();function C(t,r,n){var u=void 0,a=void 0;switch(r){case"decimal":u=String.fromCodePoint(a=Number(t.slice(1)));break;case"oct":u=String.fromCodePoint(a=parseInt(t.slice(1),8));break;case"hex":case"unicode":if(t.lastIndexOf("\\u")>0){var i=e(t.split("\\u").slice(1),2),o=i[0],s=i[1];u=String.fromCodePoint(a=((o=parseInt(o,16))-55296)*1024+((s=parseInt(s,16))-56320)+65536)}else{if((a=parseInt(t.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+t);u=String.fromCodePoint(a)}break;case"meta":switch(t){case"\\t":a=(u=" ").codePointAt(0);break;case"\\n":a=(u="\n").codePointAt(0);break;case"\\r":a=(u="\r").codePointAt(0);break;case"\\v":a=(u="\v").codePointAt(0);break;case"\\f":a=(u="\f").codePointAt(0);break;case"\\b":a=(u="\b").codePointAt(0);case"\\0":u="\0",a=0;case".":u=".",a=NaN;break;default:a=NaN}break;case"simple":a=(u=t).codePointAt(0)}return I({type:"Char",value:t,kind:r,symbol:u,codePoint:a},n)}var A=/^\\u[0-9a-fA-F]{4}/,S=/^\\u\{[0-9a-fA-F]{1,}\}/,D=/\\u\{[0-9a-fA-F]{1,}\}/;function _(e,t){if(D.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var w=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function k(e){return e.replace(RegExp(w,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function I(e,t){return n.options.captureLocations&&(e.loc={source:b.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function T(e,t){return n.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function F(e){"$"===e.type&&P(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function P(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}return nD=m}(),t=e.parse.bind(e);return e.parse=function(e,r){return t(""+e,r)},e.setOptions({captureLocations:!1}),nw=e}function dF(){if(nT)return nI;nT=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t="expressions",r="expression",n=function(){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.node=e,this.parentPath=t,this.parent=t?t.node:null,this.property=r,this.index=u}return e(n,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=u?(a||(a=t),this._enforceProp(a),this.node[a][u]=e,i=n.getForNode(e,this,a,u)):(a||(a=r),this._enforceProp(a),this.node[a]=e,i=n.getForNode(e,this,a,null)),i}},{key:"appendChild",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r||(r=t),this._enforceProp(r);var n=this.node[r].length;return this.setChild(e,n,r)}},{key:"insertChildAt",value:function(e,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this._enforceProp(u),this.node[u].splice(r,0,e),r<=n.getTraversingIndex()&&n.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{key:"remove",value:function(){if(!this.isRemoved()&&(n.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=n.getTraversingIndex()&&n.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(e,t){for(var r=n.getForNode(e),u=0;u<e[t].length;u++)n.getForNode(e[t][u],r,t,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(e){return(n.registry.delete(this.node),this.node=e,this.parent)?(null!==this.index?this.parent[this.property][this.index]=e:this.parent[this.property]=e,n.getForNode(e,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?n.getForNode(this.node.expressions[e],this,t,e):this.node.expression&&0==e?n.getForNode(this.node.expression,this,r):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,u)===JSON.stringify(e.node,u)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:u,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index-1],n.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index+1],n.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!e)return null;n.registry.has(e)||n.registry.set(e,new n(e,t,r,-1==u?null:u));var a=n.registry.get(e);return null!==t&&(a.parentPath=t,a.parent=a.parentPath.node),null!==r&&(a.property=r),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){n.registry||(n.registry=new Map),n.registry.clear()}},{key:"updateTraversingIndex",value:function(e){return n.traversingIndexStack[n.traversingIndexStack.length-1]+=e}},{key:"getTraversingIndex",value:function(){return n.traversingIndexStack[n.traversingIndexStack.length-1]}}]),n}();function u(e,t){if("loc"!==e)return t}return n.initRegistry(),n.traversingIndexStack=[],nI=n}function dP(){if(nP)return nF;nP=1;var e=dF();return nF={traverse:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(t,r,n,u){var a=e.getForNode(r);return e.getForNode(t,a,n,u)}Array.isArray(r)||(r=[r]),r=r.filter(function(e){return"function"!=typeof e.shouldRun||e.shouldRun(t)}),e.initRegistry(),r.forEach(function(e){"function"==typeof e.init&&e.init(t)}),function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.pre,u=r.post,a=r.skipProperty;!function t(r,i,o,s){if(r&&"string"==typeof r.type){var d=void 0;if(n&&(d=n(r,i,o,s)),!1!==d){for(var l in i&&i[o]&&(r=isNaN(s)?i[o]:i[o][s]),r)if(r.hasOwnProperty(l)){if(a?a(l,r):"$"===l[0])continue;var c=r[l];if(Array.isArray(c)){var f=0;for(e.traversingIndexStack.push(f);f<c.length;)t(c[f],r,l,f),f=e.updateTraversingIndex(1);e.traversingIndexStack.pop()}else t(c,r,l)}}u&&u(r,i,o,s)}}(t,null)}(t,{pre:function(e,t,a,i){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var h=p["*"](o);if(!1===h)return!1}}else p["*"](e,t,a,i)}var m=void 0;if("function"==typeof p[e.type]?m=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(m=p[e.type].pre),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,t,a,i){if(e){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,h=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(h=p[e.type].post),h){if(o){if(!o.isRemoved()){var m=h.call(p,o);if(!1===m)return!1}}else h.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})}}}function dB(){if(nj)return nB;nj=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=dI(),r=dT(),n=dP(),u=function(){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this._ast=e,this._source=null,this._string=null,this._regexp=null,this._extra=t}return e(r,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=t.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=t.generate(this._ast)),this._string}}]),r}();return nB={TransformResult:u,transform:function(e,t){var a=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(a=r.parse(e,{captureLocations:!0})),n.traverse(a,t),new u(a)}}}function dj(){return nH?nZ:(nH=1,nZ={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}})}function dL(){return uh?up:(uh=1,up={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function dO(){if(ug)return um;ug=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r=dL(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return um=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.in=e,this.out=t}return t(r,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)n!==u&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var t=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var r=new Set,a=new Set;(function n(u){if(!r.has(u)){r.add(u),u.number=r.size,t._transitionTable[u.number]={},u.accepting&&t._acceptingStates.add(u);var i=u.getTransitions(),o=!0,s=!1,d=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,p=e(f,2),h=p[0],m=p[1],g=[];a.add(h);var y=!0,b=!1,v=void 0;try{for(var x,E=m[Symbol.iterator]();!(y=(x=E.next()).done);y=!0){var C=x.value;n(C),g.push(C.number)}}catch(e){b=!0,v=e}finally{try{!y&&E.return&&E.return()}finally{if(b)throw v}}t._transitionTable[u.number][h]=g}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}}})(this.in),r.forEach(function(e){delete t._transitionTable[e.number][n],t._transitionTable[e.number][u]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(e.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),r}()}function dR(){if(u_)return uD;u_=1;var e=dO(),t=function(){if(uS)return uA;uS=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=function(){if(uC)return uE;uC=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return uE=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this._transitions=new Map,this.accepting=void 0!==r&&r}return e(t,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),t}()}(),r=dL().EPSILON;return uA=function(t){function n(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),e(n,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,u=!1,a=void 0;try{for(var i,o=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)if(i.value.matches("",t))return!0}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return!1}var s=e[0],d=e.slice(1),l=this.getTransitionsOnSymbol(s),c=!0,f=!1,p=void 0;try{for(var h,m=l[Symbol.iterator]();!(c=(h=m.next()).done);c=!0)if(h.value.matches(d))return!0}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}var g=!0,y=!1,b=void 0;try{for(var v,x=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(g=(v=x.next()).done);g=!0)if(v.value.matches(e,t))return!0}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(r),n=e._epsilonClosure=new Set;n.add(e);var u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;n.has(d)||(n.add(d),d.getEpsilonClosure().forEach(function(e){return n.add(e)}))}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}}(),this._epsilonClosure}}]),n}(t)}(),r=dL().EPSILON;function n(r){var n=new t,u=new t({accepting:!0});return new e(n.addTransition(r,u),u)}return uD={alt:function(t){for(var n=arguments.length,u=Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];var i=!0,o=!1,s=void 0;try{for(var d,l=u[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c,f=d.value;(c=t).out.accepting=!1,f.out.accepting=!0,c.out.addTransition(r,f.in),t=new e(c.in,f.out)}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return t},char:n,e:function(){return n(r)},or:function(n){for(var u=arguments.length,a=Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var o=!0,s=!1,d=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;n=function(n,u){var a=new t,i=new t;return a.addTransition(r,n.in),a.addTransition(r,u.in),i.accepting=!0,n.out.accepting=!1,u.out.accepting=!1,n.out.addTransition(r,i),u.out.addTransition(r,i),new e(a,i)}(n,f)}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return n},rep:function(e){return e.in.addTransition(r,e.out),e.out.addTransition(r,e.in),e},repExplicit:function(n){var u=new t,a=new t({accepting:!0});return u.addTransition(r,n.in),u.addTransition(r,a),n.out.accepting=!1,n.out.addTransition(r,a),a.addTransition(r,n.in),new e(u,a)},plusRep:function(e){return e.out.addTransition(r,e.in),e},questionRep:function(e){return e.in.addTransition(r,e.out),e}}}var dM=iw(function(){if(uM)return uR;uM=1;let e=function(){if(nf)return nc;nf=1;let e=function(){if(ns)return no;ns=1;var e=/[|\\{}()[\]^$+*?.]/g;return no=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=nl?nd:(nl=1,nd=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]])),r=(e,t)=>!t||t.split("").every(t=>e.includes(t));return nc=(n,u)=>{if(u=u||"","string"!=typeof n)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof n}\``);if("string"!=typeof u)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof u}\``);for(let a of t){let t=a[0],i=a[1];r(u,i.flags)&&(n=n.replace(RegExp(e(t),"g"),i.value))}return n}}(),{optimize:t}=uO?uL:(uO=1,uL=function(){if(uj)return uB;uj=1;var e=function(){if(nO)return nL;nO=1;var e=nx?nv:(nx=1,nv={dotAll:nh?np:(nh=1,np={_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="￿";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}}),namedCapturingGroups:ng?nm:(ng=1,nm={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}}),xFlag:nb?ny:(nb=1,ny={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=dB();return nL={transform:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=n.length>0?n:Object.keys(e),a=void 0,i={};return u.forEach(function(n){if(!e.hasOwnProperty(n))throw Error("Unknown compat-transform: "+n+". Available transforms are: "+Object.keys(e).join(", "));var u=e[n];r=(a=t.transform(r,u)).getAST(),"function"==typeof u.getExtra&&(i[n]=u.getExtra())}),a.setExtra(i),a}}}(),t=dI(),r=function(){if(uf)return uc;uf=1;var e=nM?nR:(nM=1,nR=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r}),t=dT(),r=dB(),n=ul?ud:(ul=1,ud=new Map([["charSurrogatePairToSingleUnicode",n$?nN:(n$=1,nN={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}})],["charCodeToSimpleChar",nV?nU:(nV=1,nU={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,u=r.to,n.codePoint>=48&&n.codePoint<=57&&u.codePoint>=48&&u.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&u.codePoint>=65&&u.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&u.codePoint>=97&&u.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,u,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}})],["charCaseInsensitiveLowerCaseTransform",nq?nz:(nq=1,nz={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,u=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===u.type){if(!this._AZClassRanges.has(u)&&(t=u.from,r=u.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(u)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},u=n.lead,a=n.trail;return"\\u"+"0".repeat(4-u.length)+u+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}})],["charClassRemoveDuplicates",nG?nW:(nG=1,nW={CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}})],["quantifiersMerge",function(){if(nX)return nK;nX=1;var e=dj().increaseQuantifierByOne;function t(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function r(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}return nK={Repetition:function(n){var u=n.node;if("Alternative"===n.parent.type&&n.index){var a=n.getPreviousSibling();if(a){if("Repetition"===a.node.type){if(!a.getChild().hasEqualSource(n.getChild()))return;var i=r(a.node.quantifier),o=i.from,s=i.to,d=r(u.quantifier),l=d.from,c=d.to;if(a.node.quantifier.greedy!==u.quantifier.greedy&&!t(a.node.quantifier)&&!t(u.quantifier))return;u.quantifier.kind="Range",u.quantifier.from=o+l,s&&c?u.quantifier.to=s+c:delete u.quantifier.to,(t(a.node.quantifier)||t(u.quantifier))&&(u.quantifier.greedy=!0),a.remove()}else{if(!a.hasEqualSource(n.getChild()))return;e(u.quantifier),a.remove()}}}}}}()],["quantifierRangeToSymbol",nQ?nJ:(nQ=1,nJ={Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}})],["charClassClassrangesToChars",n0?nY:(n0=1,nY={ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}})],["charClassToMeta",function(){if(n2)return n1;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}n2=1,n1={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var r,a,i,o,s,d,l,c,f;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),r=this._hasIFlag,a=this._hasUFlag,i=e.node,o=null,s=null,d=null,l=null,c=null,f=null,i.expressions.forEach(function(t,i){n(t,"\\d")?o=e.getChild(i):"ClassRange"===t.type&&"a"===t.from.value&&"z"===t.to.value?s=e.getChild(i):"ClassRange"===t.type&&"A"===t.from.value&&"Z"===t.to.value?d=e.getChild(i):"Char"===t.type&&"_"===t.value&&"simple"===t.kind?l=e.getChild(i):r&&a&&u(t,383)?c=e.getChild(i):r&&a&&u(t,8490)&&(f=e.getChild(i))}),o&&(s&&d||r&&(s||d))&&l&&(!a||!r||c&&f)&&(o.replace({type:"Char",value:"\\w",kind:"meta"}),s&&s.remove(),d&&d.remove(),l.remove(),c&&c.remove(),f&&f.remove()),function(e){var r=e.node;if(!(r.expressions.length<t.length)&&t.every(function(e){return r.expressions.some(function(t){return e(t)})})){var u=r.expressions.find(function(e){return n(e,"\\n")});u.value="\\s",u.symbol=void 0,u.codePoint=NaN,r.expressions.map(function(r,n){return t.some(function(e){return e(r)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}};var t=[function(e){return r(e," ")}].concat(e(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return n(t,e)}})),e([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return u(t,e)}})),[function(e){return"ClassRange"===e.type&&u(e.from,8192)&&u(e.to,8202)}]);function r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function n(e,t){return r(e,t,"meta")}function u(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}return n1}()],["charClassToSingleChar",n4?n3:(n4=1,n3={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}})],["charEscapeUnescape",function(){if(n8)return n5;function e(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function t(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}return n8=1,n5={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(r){var n,u,a,i,o=r.node;o.escaped&&(n=this._hasXFlag,u=r.node.value,a=r.index,("CharacterClass"!==(i=r.parent).type&&"ClassRange"!==i.type?"{"===u?function(r,n){if(null==r)return!1;var u=e(r+1,n),a=r+u+1,i=a<n.expressions.length&&n.expressions[a];if(u){if(t(i,"}"))return!0;if(t(i,","))return u=e(a+1,n),t(i=(a=a+u+1)<n.expressions.length&&n.expressions[a],"}")}return!1}(a,i):"}"===u?function(r,n){if(null==r)return!1;var u=e(r-1,n,!0),a=r-u-1,i=a>=0&&n.expressions[a];return!!(u&&t(i,"{"))||!!t(i,",")&&(u=e(a-1,n,!0),i=(a=a-u-1)<n.expressions.length&&n.expressions[a],u&&t(i,"{"))}(a,i):!!(n&&/[ #]/.test(u))||/[*[()+?^$./\\|]/.test(u):"^"===u?0===a&&!i.negative:"-"===u||/[\]\\]/.test(u))||delete o.escaped)}}}()],["charClassClassrangesMerge",function(){if(n9)return n6;function e(e,u){var a=t(e),i=t(u);if(a===i){if("ClassRange"===e.type&&"ClassRange"!==u.type)return -1;if("ClassRange"===u.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===u.type)return t(e.to)-t(u.to);if(r(e)&&r(u)||n(e)&&n(u))return e.value<u.value?-1:1}return a-i}function t(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function n(e){return"Char"===e.type&&"control"===e.kind}function u(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function a(e){return e.codePoint>=48&&e.codePoint<=57}function i(e,t){return a(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function o(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(i(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}return n9=1,n6={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(t){var n=t.node.expressions,s=[];n.forEach(function(e){r(e)&&s.push(e.value)}),n.sort(e);for(var d=0;d<n.length;d++){var l,c=n[d];if(function(e,t,n){for(var o=0;o<t.length;o++)if(function e(t,n,o){return"ClassRange"===t.type?e(t.from,n,o)&&e(t.to,n,o):!!("\\S"===n&&(r(t,"\\w")||r(t,"\\d"))||"\\D"===n&&(r(t,"\\W")||r(t,"\\s"))||"\\w"===n&&r(t,"\\d")||"\\W"===n&&r(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===n?u(t):"\\S"===n?!u(t):"\\d"===n?a(t):"\\D"===n?!a(t):"\\w"===n?i(t,o):"\\W"===n&&!i(t,o))}(e,t[o],n))return!0;return!1}(c,s,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(o(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(c,n[d-1])||(l=n[d+1])&&"ClassRange"===l.type&&o(c)&&l.from.codePoint===c.codePoint+1&&(l.from=c,1))n.splice(d,1),d--;else{var f=function(e,t,r){if(!o(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(o(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(c,d,n);n.splice(d-f+1,f),d-=f}}}}}()],["disjunctionRemoveDuplicates",function(){if(ue)return n7;ue=1;var e=dF(),t=dj(),r=t.disjunctionToList,n=t.listToDisjunction;return n7={Disjunction:function(t){var u=t.node,a={},i=r(u).filter(function(t){var r=t?e.getForNode(t).jsonEncode():"null";return!a.hasOwnProperty(r)&&(a[r]=t,!0)});t.replace(n(i))}}}()],["groupSingleCharsToCharClass",function(){if(ur)return ut;ur=1;var e={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};return ut={Disjunction:function(t){var r=t.node,n=t.parent;if(e[n.type]){var u=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(r,u)&&u.size){var a={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};e[n.type](t.getParent(),a)}}}}}()],["removeEmptyGroup",uu?un:(uu=1,un={Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}})],["ungroup",function(){if(ui)return ua;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return ui=1,ua={Group:function(t){var r=t.node,n=t.parent,u=t.getChild();if(!r.capturing&&u&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(t)&&("Disjunction"!==u.node.type||"RegExp"===n.type)&&("Repetition"!==n.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var a=t.getParent();"Alternative"===a.node.type&&a.replace({type:"Alternative",expressions:[].concat(e(n.expressions.slice(0,t.index)),e(u.node.expressions),e(n.expressions.slice(t.index+1)))})}else t.replace(u.node)}}}}()],["combineRepeatingPatterns",function(){if(us)return uo;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}us=1;var t=dF(),r=dj().increaseQuantifierByOne;return uo={Alternative:function(n){for(var u=n.node,a=1;a<u.expressions.length;){var i=n.getChild(a);if((a=Math.max(1,function(r,n,u){for(var a=r.node,i=Math.ceil(u/2),o=0;o<i;){var s=u-2*o-1,d=void 0,l=void 0;if(0===o?(d=n,l=r.getChild(s)):(d=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(u-o,u)),[n.node])}),l=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(s,u-o)))})),d.hasEqualSource(l)){for(var c=0;c<2*o+1;c++)r.getChild(s).remove();return n.replace({type:"Repetition",expression:0===o&&"Repetition"!==d.node.type?d.node:{type:"Group",capturing:!1,expression:d.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),s}o++}return u}(n,i,a)))>=u.expressions.length||(i=n.getChild(a),(a=Math.max(1,function(n,u,a){for(var i=n.node,o=0;o<a;){var s=n.getChild(o);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var d=s.getChild(),l=void 0;if("Group"!==d.node.type||d.node.capturing||(d=d.getChild()),o+1===a?"Group"!==(l=u).node.type||l.node.capturing||(l=l.getChild()):l=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(o+1,a+1)))}),d.hasEqualSource(l)){for(var c=o;c<a;c++)n.getChild(o+1).remove();return r(s.node.quantifier),o}}o++}return a}(n,i,a)))>=u.expressions.length))break;i=n.getChild(a),a=Math.max(1,function(n,u,a){var i=n.node;if("Repetition"===u.node.type&&u.node.quantifier.greedy){var o=u.getChild(),s=void 0;"Group"!==o.node.type||o.node.capturing||(o=o.getChild());var d=void 0;if("Alternative"===o.node.type?(d=o.node.expressions.length,s=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(a-d,a)))})):(d=1,"Group"!==(s=n.getChild(a-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(o)){for(var l=a-d;l<a;l++)n.getChild(a-d).remove();return r(u.node.quantifier),a-d}}return a}(n,i,a)),a++}}}}()]]));return uc={optimize:function(u){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.whitelist,o=void 0===i?[]:i,s=a.blacklist,d=void 0===s?[]:s,l=(o.length>0?o:Array.from(n.keys())).filter(function(e){return!d.includes(e)}),c=u;u instanceof RegExp&&(u=""+u),"string"==typeof u&&(c=t.parse(u));var f=new r.TransformResult(c),p=void 0;do p=f.toString(),c=e(f.getAST()),l.forEach(function(t){if(!n.has(t))throw Error("Unknown optimization-transform: "+t+". Available transforms are: "+Array.from(n.keys()).join(", "));var u=n.get(t),a=r.transform(c,u);a.toString()!==f.toString()&&(a.toString().length<=f.toString().length?f=a:c=e(f.getAST()))});while(f.toString()!==p);return f}}}(),n=dT(),u=dB(),a=dP(),i=function(){if(uT)return uI;uT=1;var e=dO(),t=function(){if(ux)return uv;ux=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=function(){if(ub)return uy;ub=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=null;return uy={minimize:function(n){var u=n.getTransitionTable(),a=Object.keys(u),i=n.getAlphabet(),o=n.getAcceptingStateNumbers();r={};var s=new Set;a.forEach(function(e){e=Number(e),o.has(e)?r[e]=o:(s.add(e),r[e]=s)});var d=[[s,o].filter(function(e){return e.size>0})],l=void 0,c=void 0;for(l=d[d.length-1],c=d[d.length-2];!function(e,r){if(!r||e.length!==r.length)return!1;for(var n=0;n<e.length;n++){var u=e[n],a=r[n];if(u.size!==a.size||[].concat(t(u)).sort().join(",")!==[].concat(t(a)).sort().join(","))return!1}return!0}(l,c);)!function(){var e={},n=!0,a=!1,o=void 0;try{for(var s,f=l[Symbol.iterator]();!(n=(s=f.next()).done);n=!0){var p=s.value,h={},m=Array.isArray(p)?p:Array.from(p),g=m[0],y=m.slice(1);h[g]=new Set([g]);var b=!0,v=!1,x=void 0;try{e:for(var E,C=y[Symbol.iterator]();!(b=(E=C.next()).done);b=!0){var A=E.value,S=!0,D=!1,_=void 0;try{for(var w,k=Object.keys(h)[Symbol.iterator]();!(S=(w=k.next()).done);S=!0){var I=w.value;if(function(e,t,n,u){var a=!0,i=!1,o=void 0;try{for(var s,d=u[Symbol.iterator]();!(a=(s=d.next()).done);a=!0){var l=s.value;if(!function(e,t,n,u){if(!r[e]||!r[t])return!1;var a=n[e][u],i=n[t][u];return!a&&!i||r[e].has(a)&&r[t].has(i)}(e,t,n,l))return!1}}catch(e){i=!0,o=e}finally{try{!a&&d.return&&d.return()}finally{if(i)throw o}}return!0}(A,I,u,i)){h[I].add(A),h[A]=h[I];continue e}}}catch(e){D=!0,_=e}finally{try{!S&&k.return&&k.return()}finally{if(D)throw _}}h[A]=new Set([A])}}catch(e){v=!0,x=e}finally{try{!b&&C.return&&C.return()}finally{if(v)throw x}}Object.assign(e,h)}}catch(e){a=!0,o=e}finally{try{!n&&f.return&&f.return()}finally{if(a)throw o}}r=e;var T=new Set(Object.keys(e).map(function(t){return e[t]}));d.push([].concat(t(T))),l=d[d.length-1],c=d[d.length-2]}();var f=new Map,p=1;l.forEach(function(e){return f.set(e,p++)});var h={},m=new Set,g=!0,y=!1,b=void 0;try{for(var v,x=f.entries()[Symbol.iterator]();!(g=(v=x.next()).done);g=!0){var E=v.value,C=e(E,2),A=C[0],S=C[1];h[S]={};var D=!0,_=!1,w=void 0;try{for(var k,I=i[Symbol.iterator]();!(D=(k=I.next()).done);D=!0){var T=k.value;!function(e,t){var r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;o.has(s)&&m.add(t)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(A,S);var F=void 0,P=!0,B=!1,j=void 0;try{for(var L,O=A[Symbol.iterator]();!(P=(L=O.next()).done)&&!(F=u[L.value][T]);P=!0);}catch(e){B=!0,j=e}finally{try{!P&&O.return&&O.return()}finally{if(B)throw j}}F&&(h[S][T]=f.get(r[F]))}}catch(e){_=!0,w=e}finally{try{!D&&I.return&&I.return()}finally{if(_)throw w}}}}catch(e){y=!0,b=e}finally{try{!g&&x.return&&x.return()}finally{if(y)throw b}}return n.setTransitionTable(h),n.setAcceptingStateNumbers(m),n}}}(),n=dL().EPSILON_CLOSURE;return uv=function(){function u(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,u),this._nfa=e}return e(u,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,r.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var r=this._nfa.getTransitionTable(),u=Object.keys(r);this._acceptingStateNumbers=new Set;for(var a=[r[u[0]][n]],i=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),s={};a.length>0;){var d=a.shift(),l=d.join(",");s[l]={};var c=!0,f=!1,p=void 0;try{for(var h,m=i[Symbol.iterator]();!(c=(h=m.next()).done);c=!0){var g=h.value,y=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var a,i=o[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(d);var b=!0,v=!1,x=void 0;try{for(var E,C=d[Symbol.iterator]();!(b=(E=C.next()).done);b=!0){var A=r[E.value][g];if(A){var S=!0,D=!1,_=void 0;try{for(var w,k=A[Symbol.iterator]();!(S=(w=k.next()).done);S=!0){var I=w.value;r[I]&&y.push.apply(y,t(r[I][n]))}}catch(e){D=!0,_=e}finally{try{!S&&k.return&&k.return()}finally{if(D)throw _}}}}}catch(e){v=!0,x=e}finally{try{!b&&C.return&&C.return()}finally{if(v)throw x}}var T=new Set(y),F=[].concat(t(T));if(F.length>0){var P=F.join(",");s[l][g]=P,s.hasOwnProperty(P)||a.unshift(F)}}}catch(e){f=!0,p=e}finally{try{!c&&m.return&&m.return()}finally{if(f)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),u}()}(),r=function(){if(uk)return uw;uk=1;var e=dT(),t=dR(),r=t.alt,n=t.char,u=t.or,a=t.rep,i=t.plusRep,o=t.questionRep;function s(e){if(e&&!d[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d[e.type](e):""}var d={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return s(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(s);return r.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return u(s(e.left),s(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return a(s(e.expression));case"+":return i(s(e.expression));case"?":return o(s(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return n(e.value)},Group:function(e){return s(e.expression)}};return uw={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return uI={NFA:e,DFA:t,builders:dR(),toNFA:function(e){return r.build(e)},toDFA:function(e){return new t(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}}}(),o=function(){if(uP)return uF;uP=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return uF={RegExpTree:function(){function t(e,r){var n=r.flags,u=r.groups,a=r.source;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this._re=e,this._groups=u,this.flags=n,this.source=a||e.source,this.dotAll=n.includes("s"),this.global=e.global,this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,this.sticky=e.sticky,this.unicode=e.unicode}return e(t,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),t}()}}().RegExpTree;return uB={parser:n,fa:i,TransformResult:u.TransformResult,parse:function(e,t){return n.parse(""+e,t)},traverse:function(e,t,r){return a.traverse(e,t,r)},transform:function(e,t){return u.transform(e,t)},generate:function(e){return t.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=n.blacklist;return r.optimize(e,{whitelist:t,blacklist:u})},compatTranspile:function(t,r){return e.transform(t,r)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new o(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}}}()),r=sj(),{isStringLiteral:n,isNewExpression:u,isRegexLiteral:a}=sD(),i="better-regex",o="better-regex/parse-error";return uR={create:s=>{let{sortCharacterClasses:d}=s.options[0]||{},l=[];return!1===d&&l.push("charClassClassrangesMerge"),{Literal(e){if(!a(e))return;let{raw:r,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=r;try{u=t(r,void 0,{blacklist:l}).toString()}catch(t){return{node:e,messageId:o,data:{original:r,error:t.message}}}if(r===u)return;let s={node:e,messageId:i,data:{original:r,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(s,{fix:t=>t.replaceText(e,u)}):s},NewExpression(t){if(!u(t,{name:"RegExp",minimumArguments:1}))return;let[a,o]=t.arguments;if(!n(a))return;let s=a.value,d=e(s,n(o)?o.value:"");if(s!==d)return{node:t,messageId:i,data:{original:s,optimized:d},fix:e=>e.replaceText(a,r(d,a.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!1},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[i]:"{{original}} can be optimized to {{optimized}}.",[o]:"Problem parsing {{original}}: {{error}}"}}}}()),dN=iw(function(){if(u$)return uN;u$=1;let{replaceTemplateElement:e}=s4(),{isRegexLiteral:t,isStringLiteral:r,isTaggedTemplateLiteral:n}=sD(),u="escape-case",a=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,i=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,o=({node:e,original:t,regex:r=a,fix:n})=>{let i=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(i!==t)return{node:e,messageId:u,fix:t=>n?n(t,i):t.replaceText(e,i)}};return uN={create:u=>{u.on("Literal",e=>{if(r(e))return o({node:e,original:e.raw})}),u.on("Literal",e=>{if(t(e))return o({node:e,original:e.raw,regex:i})}),u.on("TemplateElement",t=>{if(!n(t.parent,["String.raw"]))return o({node:t,original:t.value.raw,fix:(r,n)=>e(r,t,n)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[u]:"Use uppercase characters for the value of the escape sequence."}}}}()),d$=iw(function(){if(uV)return uU;uV=1;let{replaceTemplateElement:e}=s4(),{isStringLiteral:t,isRegexLiteral:r,isTaggedTemplateLiteral:n}=sD(),u="no-hex-escape";function a(t,r,n){let a=n.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(n!==a)return{node:r,messageId:u,fix:t=>"TemplateElement"===r.type?e(t,r,a):t.replaceText(r,a)}}return uU={create:e=>({Literal(n){if(t(n)||r(n))return a(e,n,n.raw)},TemplateElement(t){if(!n(t.parent,["String.raw"]))return a(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[u]:"Use Unicode escapes instead of hexadecimal escapes."}}}}()),dU=iw(function(){if(uq)return uz;uq=1;let{getPropertyName:e,ReferenceTracker:t}=sg,{fixSpaceAroundKeyword:r}=s4(),{isMemberExpression:n,isMethodCall:u}=sD(),a=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];return uz={create:function(i){let{sourceCode:o}=i,s=[];i.on("CallExpression",e=>{s.push(e)}),i.on("Program:exit",function*(i){let d=new WeakMap;for(let{node:e,path:r}of new t(o.getScope(i)).iterateGlobalReferences(Object.fromEntries(a.map(e=>[e,{[t.READ]:!0}]))))d.set(e,r);for(let t of s)yield function(t,{sourceCode:a,globalReferences:i}){let o;u(t,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?o=t.arguments[0]:u(t,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(o=t.callee.object);let{isGlobalReference:s,constructorName:d,methodName:l}=function(t,{sourceCode:r,globalReferences:u}){if(!t)return;if(u.has(t))return{isGlobalReference:!0,constructorName:"Object",methodName:u.get(t).at(-1)};if(!n(t,{optional:!1}))return;let a=t.object;if(!(("ArrayExpression"!==a.type||0!==a.elements.length)&&("ObjectExpression"!==a.type||0!==a.properties.length)))return{constructorName:"ArrayExpression"===a.type?"Array":"Object",methodName:e(t,r.getScope(t))}}(o,{sourceCode:a,globalReferences:i})??{};if(d)return{node:o,messageId:l?"known-method":"unknown-method",data:{constructorName:d,methodName:l},*fix(e){if(s){yield e.replaceText(o,`${d}.prototype.${l}`);return}if(n(o)){let n=o.object;yield e.replaceText(n,`${d}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*r(e,t,a))}}}}(t,{sourceCode:o,globalReferences:d})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}}}()),dV=iw(function(){if(uG)return uW;uG=1;let{getStaticValue:e}=sg,t=s$(),{isCallOrNewExpression:r}=sD(),n="missing-message",u="message-is-empty-string",a="message-is-not-a-string",i=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];return uW={create:o=>{o.on(["CallExpression","NewExpression"],s=>{if(!r(s,{names:i,optional:!1}))return;let d=o.sourceCode.getScope(s);if(t(d,s.callee))return;let l=s.callee.name,c=+("AggregateError"===l),f=s.arguments;if(f.some((e,t)=>t<=c&&"SpreadElement"===e.type))return;let p=f[c];if(!p)return{node:s,messageId:n,data:{constructorName:l}};if("ArrayExpression"===p.type||"ObjectExpression"===p.type)return{node:p,messageId:a};let h=e(p,d);if(!h)return;let{value:m}=h;return"string"!=typeof m?{node:p,messageId:a}:""===m?{node:p,messageId:u}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[n]:"Pass a message to the `{{constructorName}}` constructor.",[u]:"Error message should not be an empty string.",[a]:"Error message should be a string."}}}}()),dz=iw(function(){if(uH)return uZ;uH=1;let{checkVueTemplate:e}=db(),{getParenthesizedRange:t}=sb(),{replaceNodeOrTokenAndSpacesBefore:r,fixSpaceAroundKeyword:n}=s4(),u=e=>"instanceof"===e.value&&"Keyword"===e.type,a="no-instanceof-array";return uZ={create:e(e=>{let{sourceCode:i}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:o,right:s}=e,d=i,l=d.getTokenAfter(o,u);return!l&&i.parserServices.getTemplateBodyTokenStore&&(l=(d=i.parserServices.getTemplateBodyTokenStore()).getTokenAfter(o,u)),{node:l,messageId:a,*fix(u){yield*n(u,e,i);let a=t(o,d);yield u.insertTextBeforeRange(a,"Array.isArray("),yield u.insertTextAfterRange(a,")"),yield*r(l,"",u,i,d),yield*r(s,"",u,i,d)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[a]:"Use `Array.isArray()` instead of `instanceof Array`."}}}}()),dq=iw(function(){if(uX)return uK;uX=1;let{isNewExpression:e}=sD(),t="prefer-type-error",r=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),n=new Set(["isNaN","isFinite"]),u=(e,t,u)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===u&&r.has(e.name)||!1===u&&n.has(e.name)),a=e=>e.parent&&e.parent.body&&1===e.parent.body.length,i=(e,t)=>!!u(e.property,t,!0)||"MemberExpression"===e.object.type&&i(e.object,t),o=(e,t)=>{switch(e.type){case"Identifier":return u(e,t,!1);case"MemberExpression":return i(e,t);case"CallExpression":return o(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&o(e.argument);case"BinaryExpression":return"instanceof"===e.operator||o(e.left,t)||o(e.right,t);case"LogicalExpression":return o(e.left,t)&&o(e.right,t);default:return!1}},s=e=>"IfStatement"===e.type&&o(e.test);return uK={create:()=>({ThrowStatement(r){if(e(r.argument,{name:"Error"})&&a(r)&&r.parent.parent&&s(r.parent.parent)){let e=r.argument.callee;return{node:e,messageId:t,fix:t=>t.insertTextBefore(e,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[t]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}}}()),dW=iw(function(){if(uQ)return uJ;uQ=1;let e=sB(),t=sR(),{isCallOrNewExpression:r}=sD(),n="consistentDestructuring",u="consistentDestructuringSuggest",a=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},i=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};return uJ={create:o=>{let{sourceCode:s}=o,d=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&a(e.init)&&d.set(s.getText(e.init),{scope:s.getScope(e),variables:s.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(a){if(a.computed||r(a.parent)&&a.parent.callee===a||t(a))return;let o=d.get(s.getText(a.object));if(!o)return;let{scope:l,objectPattern:c}=o,f=s.getScope(a);if(!i(f,l))return;let p=c.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),h=c.properties.at(-1),m=h&&"RestElement"===h.type,g=s.getText(a),y=s.getText(a.property),b=p.find(e=>e.key.name===y);if(!b&&(m||e(y,[f])!==y))return;if("MemberExpression"===a.parent.type)return{node:a,messageId:n};let v=b?b.value.name:y;return{node:a,messageId:n,suggest:[{messageId:u,data:{expression:g,property:v},*fix(e){let{properties:t}=c,r=t.at(-1);yield e.replaceText(a,v),b||(yield r?e.insertTextAfter(r,`, ${v}`):e.replaceText(c,`{${v}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[n]:"Use destructured variables over properties.",[u]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}}());function dG(){return u0?uY:(u0=1,uY=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"])}var dZ=iw(function(){if(u4)return u3;u4=1;let{GlobalReferenceTracker:e}=dd(),t=u2?u1:(u2=1,u1={enforceNew:["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...dG()],disallowNew:["BigInt","Boolean","Number","String","Symbol"]}),{switchCallExpressionToNewExpression:r,switchNewExpressionToCallExpression:n}=s4();return u3={create:u=>{let{sourceCode:a}=u,i=new e({objects:t.disallowNew,type:e.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=function*(t){yield*n(e,r,t)}),u})(e,a)}),o=new e({objects:t.enforceNew,type:e.CALL,handle:e=>(function({node:e,path:[t]},n){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>r(e,n,t)}})(e,a)});return{*"Program:exit"(e){let t=a.getScope(e);yield*i.track(t),yield*o.track(t)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}}}()),dH=iw(function(){if(u9)return u6;u9=1;let{hasSideEffect:e,isSemicolonToken:t}=sg,{getCallExpressionTokens:r,getCallExpressionArgumentsText:n}=sZ(),u=sN(),{isNodeMatches:a}=sS(),i=u8?u5:(u8=1,u5=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}}),{isMethodCall:o}=sD(),s="error",d="suggestion",l=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&o(e,{method:"push",optionalCall:!1,optionalMember:!1});return u6={create:function(o){let{ignore:c}={ignore:[],...o.options[0]},f=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...c],{sourceCode:p}=o;return{CallExpression(o){if(!l(o))return;let c=o.callee.object;if(a(c,f))return;let h=function(e,t){let r=i(e.parent,t)?.expression;if(l(r))return r}(o,p);if(!h||!u(h.callee.object,c))return;let m=o.arguments,g={node:o.callee.property,messageId:s},y=function*(e){if(m.length>0){let t=n(p,o),{trailingCommaToken:u,closingParenthesisToken:a}=r(p,h);yield u?e.insertTextAfter(u,` ${t}`):e.insertTextBefore(a,h.arguments.length>0?`, ${t}`:t)}let u=h.parent,a=o.parent,i=!t(p.getLastToken(u))&&t(p.getLastToken(a));yield e.replaceTextRange([u.range[1],a.range[1]],i?";":"")};return m.some(t=>e(t,p))?g.suggest=[{messageId:d,fix:y}]:g.fix=y,g}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[s]:"Do not call `Array#push()` multiple times.",[d]:"Merge with previous one."}}}}()),dK=iw(function(){if(ae)return u7;ae=1;let{isStaticRequire:e,isMethodCall:t,isLiteral:r}=sD(),n="no-process-exit",u=e=>r(e,"node:worker_threads")||r(e,"worker_threads");return u7={create:r=>{let a;if(0===r.sourceCode.lines[0].indexOf("#!"))return{};let i=!1,o=[];r.on("CallExpression",t=>{e(t)&&u(t.arguments[0])&&(i=!0)}),r.on("ImportDeclaration",e=>{"Literal"===e.source.type&&u(e.source)&&(i=!0)}),r.on("CallExpression",e=>{t(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(a=e)}),r.onExit("CallExpression",e=>{e===a&&(a=void 0)}),r.on("CallExpression",e=>{!a&&t(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&o.push(e)}),r.onExit("Program",function*(){if(!i)for(let e of o)yield{node:e,messageId:n}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[n]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}}()),dX=iw(function(){if(ar)return at;ar=1;let{isCommaToken:e}=sg,{isMethodCall:t,isExpressionStatement:r}=sD(),{getParenthesizedText:n,isParenthesized:u,needsSemicolon:a,shouldAddParenthesesToAwaitExpressionArgument:i}=sZ(),o="no-single-promise-in-promise-methods/error",s="no-single-promise-in-promise-methods/unwrap",d="no-single-promise-in-promise-methods/use-promise-resolve",l=["all","any","race"],c=e=>t(e,{object:"Promise",methods:l,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,f=(e,t)=>r=>{let[a]=e.arguments[0].elements,o=n(a,t);return!u(a,t)&&i(a)&&(o=`(${o})`),r.replaceText(e,o)},p=(e,t)=>r=>{let[i]=e.arguments[0].elements,o=n(i,t);return u(i,t)||"Identifier"===i.type||"MemberExpression"===i.type||(o=`(${o})`),a(t.getTokenBefore(e),t,o)&&(o=`;${o}`),r.replaceText(e,o)},h=(t,r)=>function*(n){let u=t.callee.property;yield n.replaceText(u,"resolve");let[a]=t.arguments,i=r.getFirstToken(a),[o,s]=r.getLastTokens(a,2);yield n.remove(i),yield n.remove(s),e(o)&&(yield n.remove(o))};return at={create:e=>({CallExpression(t){if(!c(t))return;let n=t.callee.property.name,u={node:t.arguments[0],messageId:o,data:{method:n}},{sourceCode:a}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==n||r(t.parent.parent))?u.fix=f(t,a):"all"===n||(u.suggest=[{messageId:s,fix:p(t,a)},{messageId:d,fix:h(t,a)}]),u}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[o]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[s]:"Use the value directly.",[d]:"Switch to `Promise.resolve(…)`."}}}}());function dJ(){return ai?aa:(ai=1,aa=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
4
- Please open an issue at ${i}.`)})}var dQ=iw(function(){if(as)return ao;as=1;let{isSemicolonToken:e}=sg,t=au?an:(au=1,an=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}}),r=dJ(),{removeSpacesAfter:n}=s4(),u="no-static-only-class",a=({type:e,value:t})=>"Punctuator"===e&&"="===t,i=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,o=e=>"PropertyDefinition"===e.type,s=e=>"MethodDefinition"===e.type;return ao={create:function(d){d.on(["ClassDeclaration","ClassExpression"],l=>{if(l.superClass||l.decorators&&l.decorators.length>0||"ClassBody"!==l.body.type||0===l.body.body.length||l.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:d}=e;return!(!o(e)&&!s(e)||!r||t||"PrivateIdentifier"===d.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:c}=d;return{node:l,loc:t(l,c),messageId:u,fix:function(t,u){let{type:s,id:d,body:l,declare:c,abstract:f,implements:p,parent:h}=t;if(c||f||Array.isArray(p)&&p.length>0||"ClassExpression"===s&&d)return;let m=i(t);if(!m||!d){for(let e of l.body)if(o(e)&&(e.typeAnnotation||e.value&&u.getText(e.value).includes("this")))return;return function*(i){let d=u.getFirstToken(t);if(r(d,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),m||"ClassExpression"===s){if("ClassExpression"===s&&"ReturnStatement"===h.type&&l.loc.start.line!==h.loc.start.line&&u.text.slice(d.range[1],l.range[0]).trim()){yield i.replaceText(d,"{");let e=u.getFirstToken(l);yield i.remove(e)}else yield i.replaceText(d,""),yield n(d,u,i)}else yield i.replaceText(d,"const"),yield i.insertTextBefore(l,"= "),yield i.insertTextAfter(l,";");for(let t of l.body)yield*function*(t,u,i){let s=u.getFirstToken(t);r(s,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield i.remove(s),yield n(s,u,i);let d=o(t)?u.getLastToken(t):u.getTokenAfter(t),l=e(d);if(o(t)){let{key:e,value:r}=t;if(r){let t=u.getTokenAfter(e,a);yield i.replaceText(t,":")}else l?yield i.insertTextBefore(d,": undefined"):yield i.insertTextAfter(t,": undefined")}yield l?i.replaceText(d,","):i.insertTextAfter(t,",")}(t,u,i)}}}(l,c)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[u]:"Use an object instead of a class with only static members."}}}}()),dY=iw(function(){if(al)return ad;al=1;let{isParenthesized:e}=sg,t=sq(),{fixSpaceAroundKeyword:r}=s4(),n="no-unreadable-array-destructuring",u=(e,t,r)=>null===e&&null===r[t+1];return ad={create:a=>{let{sourceCode:i}=a;return{ArrayPattern(a){let{elements:o,parent:s}=a;if(o.length<3||!o.some((e,t,r)=>u(e,t,r)))return;let d={node:a,messageId:n},l=o.filter(e=>null!==e);if("VariableDeclarator"===s.type&&s.id===a&&null!==s.init&&1===l.length){let[n]=l;"AssignmentPattern"!==n.type&&(d.fix=function*(u){let d=o.indexOf(n),l="RestElement"===n.type,c=l?n.argument:n;yield u.replaceText(a,i.getText(c));let f=l?`.slice(${d})`:`[${d}]`,p=s.init;!e(p,i)&&t(p,i)?(yield u.insertTextBefore(p,"("),yield u.insertTextAfter(s,`)${f}`)):yield u.insertTextAfter(s,f),yield*r(u,a,i)})}return d}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[n]:"Array destructuring may not contain consecutive ignored values."}}}}()),d0=iw(function(){if(af)return ac;af=1;let{isCommaToken:e}=sg,t=dG(),{removeParentheses:r,fixSpaceAroundKeyword:n,addParenthesizesToReturnOrThrowExpression:u}=s4(),{isParenthesized:a,isOnSameLine:i}=sZ(),{isNewExpression:o,isMethodCall:s,isCallOrNewExpression:d}=sD(),l="spread-in-list",c="iterable-to-array",f="iterable-to-array-in-for-of",p="iterable-to-array-in-yield-star",h="clone-array",m=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",g={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*y(t,r,o){let[s,d,l]=o.getFirstTokens(r,3);yield t.remove(s),yield t.remove(d);let[c,f]=o.getLastTokens(r,2);yield t.remove(f),e(c)&&(yield t.remove(c));let{parent:p}=r;if(("ReturnStatement"===p.type||"ThrowStatement"===p.type)&&p.argument===r&&!i(s,l)&&!a(r,o)){yield*u(t,p,o);return}yield*n(t,r,o)}return ac={create:n=>{let{sourceCode:u}=n;n.on(["ArrayExpression","ObjectExpression"],t=>{if(!("SpreadElement"===t.parent.type&&t.parent.argument===t&&("ObjectExpression"===t.type&&"ObjectExpression"===t.parent.parent.type&&t.parent.parent.properties.includes(t.parent)||"ArrayExpression"===t.type&&("ArrayExpression"===t.parent.parent.type&&t.parent.parent.elements.includes(t.parent)||d(t.parent.parent)&&t.parent.parent.arguments.includes(t.parent)))))return;let n=t.parent,a=u.getFirstToken(n),i=n.parent.type;return{node:a,messageId:l,data:{argumentType:"ArrayExpression"===t.type?"array":"object",parentDescription:g[i]},*fix(n){let o;yield n.remove(a),yield*r(t,n,u);let s=u.getFirstToken(t);yield n.remove(s);let[d,l]=u.getLastTokens(t,2);if(yield n.remove(l),e(d)&&(yield n.remove(d)),"CallExpression"===i||"NewExpression"===i)for(let[r,a]of(o=u.getFirstToken(t),t.elements.map((r,n,a)=>{if(n===a.length-1){let r=u.getLastToken(t,{skip:1});return e(r)?r:void 0}let i=u.getTokenAfter(r||o,e);return o=i,i})).entries())t.elements[r]||(yield n.insertTextBefore(a,"undefined"))}}}),n.on("ArrayExpression",e=>{if(!m(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(o(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||o(r,{names:t,minimumArguments:1})||s(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{objects:["Array",...t],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",a=c;switch(r.type){case"ForOfStatement":a=f;break;case"YieldExpression":a=p;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:a,data:{parentDescription:n},fix:t=>y(t,e,u)}}),n.on("ArrayExpression",e=>{if(!m(e))return;let t=e.elements[0].argument;if(!(s(t,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||s(t,{method:"split",optionalCall:!1,optionalMember:!1})||s(t,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===t.type&&s(t.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(t,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||o(t,{name:"Array"})))return;let r={node:e,messageId:h};return o(t,{name:"Array"})||"CallExpression"===t.type&&"MemberExpression"===t.callee.type&&"Identifier"===t.callee.property.type&&"slice"===t.callee.property.name?r:Object.assign(r,{fix:t=>y(t,e,u)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[l]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[c]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[f]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[p]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[h]:"Unnecessarily cloning an array."}}}}()),d1=iw(function(){if(ag)return am;ag=1;let{isEmptyNode:e}=sD(),t=function(){if(ah)return ap;ah=1;let{isColonToken:e}=sg;return ap=function(t,r){let n=t.test||r.getFirstToken(t),u=r.getTokenAfter(n,e);return{start:t.loc.start,end:u.loc.end}}}(),r="no-useless-switch-case/error",n="no-useless-switch-case/suggestion",u=t=>t.consequent.every(t=>e(t));return am={create:e=>({*SwitchStatement(a){let{cases:i}=a;if(!(i.length<2)&&null===i.at(-1).test)for(let a=i.length-2;a>=0;a--){let o=i[a];if(!u(o))break;yield{node:o,loc:t(o,e.sourceCode),messageId:r,suggest:[{messageId:n,fix:e=>e.remove(o)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Useless case in switch statement.",[n]:"Remove this case."}}}}()),d2=iw(function(){if(ab)return ay;ab=1;let{isCommaToken:e}=sg,{replaceNodeOrTokenAndSpacesBefore:t}=s4(),{isUndefined:r,isFunction:n}=sD(),u="no-useless-undefined",a=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),i=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),a.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"useRef"===t||"ref"===t},o=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},s=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,d=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);return ay={create:a=>{let{sourceCode:l}=a,c=(e,t,r)=>{if(r){let t=o(l.getScope(e));if(t?.returnType)return}return{node:e,messageId:u,fix:t}},f={checkArguments:!0,checkArrowFunctionBody:!0,...a.options[0]},p=(e,r)=>t(e,"",r,l);a.on("Identifier",e=>{if(r(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return c(e,t=>p(e,t),!0)}),a.on("Identifier",e=>{if(r(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return c(e,t=>p(e,t))}),f.checkArrowFunctionBody&&a.on("Identifier",e=>{if(r(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return c(e,r=>t(e," {}",r,l),!0)}),a.on("Identifier",e=>{if(r(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return c(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),a.on("Identifier",e=>{if(r(e)&&"AssignmentPattern"===e.parent.type&&e.parent.right===e)return c(e,function*(t){let r=e.parent,{left:u}=r;yield t.removeRange([u.range[1],e.range[1]]),(u.typeAnnotation||d(a))&&!u.optional&&n(r.parent)&&r.parent.params.includes(r)&&(yield u.typeAnnotation?t.insertTextBefore(u.typeAnnotation,"?"):t.insertTextAfter(u,"?"))},!0)}),f.checkArguments&&a.on("CallExpression",t=>{if(i(t.callee))return;let n=t.arguments;if(s(t)&&1!==n.length)return;let a=[];for(let e=n.length-1;e>=0;e--){let t=n[e];if(r(t))a.unshift(t);else break}if(0===a.length)return;let o=a[0],d=a.at(-1);return{messageId:u,loc:{start:o.loc.start,end:d.loc.end},fix(t){let r=o.range[0],u=d.range[1],i=n[n.length-a.length-1];if(i)r=i.range[1];else{let t=l.getTokenAfter(d);e(t)&&(u=t.range[1])}return t.removeRange([r,u])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[u]:"Do not use useless `undefined`."}}}}()),d3=iw(function(){if(ax)return av;ax=1;let e=sz(),{isBigIntLiteral:t}=sD(),r="numeric-separators-style";function n(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}let u={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},a=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});return av={create:a=>{let{onlyIfContainsSeparator:i,binary:o,octal:s,hexadecimal:d,number:l}={onlyIfContainsSeparator:!1,...a.options[0]},c={"0b":{onlyIfContainsSeparator:i,...u.binary,...o},"0o":{onlyIfContainsSeparator:i,...u.octal,...s},"0x":{onlyIfContainsSeparator:i,...u.hexadecimal,...d},"":{onlyIfContainsSeparator:i,...u.number,...l}};return{Literal(u){if(!e.isNumeric(u)||e.isLegacyOctal(u))return;let{raw:a}=u,i=a,o="";t(u)&&(i=a.slice(0,-1),o="n");let s=i.replaceAll("_",""),{prefix:d,data:l}=e.getPrefix(s),{onlyIfContainsSeparator:f}=c[d.toLowerCase()];if(f&&!a.includes("_"))return;let p=function(t,{prefix:r,data:u},a){let i=a[r.toLowerCase()];if(r)return r+n(u,i);let{number:o,mark:s,sign:d,power:l}=e.parseNumber(t);return function(t,r){let{integer:u,dot:a,fractional:i}=e.parseFloatNumber(t);return n(u,r)+a+n(i,r,!0)}(o,i)+s+d+n(l,a[""])}(s,{prefix:d,data:l},c)+o;if(a!==p)return{node:u,messageId:r,fix:e=>e.replaceText(u,p)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(u).map(([e,t])=>[e,a(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[r]:"Invalid group length in numeric value."}}}}()),d4=iw(function(){if(aC)return aE;aC=1;let{isParenthesized:e,findVariable:t}=sg,{extendFixRange:r,removeMemberExpressionProperty:n,removeMethodCall:u,renameVariable:a}=s4(),{isLeftHandSide:i,singular:o,getScopes:s,avoidCapture:d,getVariableIdentifiers:l}=sZ(),{isMethodCall:c}=sD(),f="error-zero-index",p="error-shift",h="error-pop",m="error-at-zero",g="error-at-minus-one",y="error-destructuring-declaration",b="error-destructuring-assignment",v="error-variable",x="suggest-nullish-coalescing-operator",E="suggest-logical-or-operator",C=e=>c(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),A=(t,r)=>{if("AssignmentExpression"!==t.type||e(t,r))return!1;let{left:n}=D(t),[u]=n.elements,{type:a}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===a||"ObjectPattern"===a},S=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,D=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*_(e,t,r){let{left:n}=D(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),A(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let w=e=>"AssignmentPattern"===D(e).left.elements[0].type,k=(t,r,n,u)=>{let{left:a,right:i}=D(t),[o]=a.elements,s=o.right,d=r.getText(s);return(e(s,r)||S(s,u))&&(d=`(${d})`),n.insertTextAfter(i,` ${u} ${d}`)},I=(e,t)=>{let r,n;let{property:u}=D(t).right.callee;return w(t)?r=[{operator:"??",messageId:x},{operator:"||",messageId:E}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield k(t,e,r,n),yield*_(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*_(t,e,r)},{fix:n,suggest:r}},T=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,F=e=>{let{left:t,right:r}=D(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};return aE={create:e=>{let{sourceCode:x}=e,{checkFromLast:E}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&C(e.object)&&!i(e))return{node:e.object.callee.property,messageId:f,fix:t=>[t.replaceText(e.object.callee.property,"find"),n(t,e,x)]}}),e.on("CallExpression",e=>{if(c(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:p,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,x)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&C(e.init))return{node:e.init.callee.property,messageId:y,...I(x,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&C(e.right))return{node:e.right.callee.property,messageId:b,...I(x,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&C(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let u=x.getScope(e),i=t(u,e.id),c=l(i).filter(t=>t!==e.id);if(0===c.length)return;let f=[],p=[];for(let e of c)if(T(e))f.push(e.parent);else{if(!F(e))return;p.push(e.parent)}let h={node:e.init.callee.property,messageId:v};return p.some(e=>w(e))||(h.fix=function*(t){yield t.replaceText(e.init.callee.property,"find");let l=o(e.id.name);if(l){let e=d(l,s(u));yield*a(i,e,t),yield*r(t,x.ast.range)}for(let e of f)yield n(t,e,x);for(let e of p)yield*_(e,x,t)}),h}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:m,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,x)]}}),E&&(e.on("CallExpression",e=>{if(c(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:h,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,x)]}}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&C(e.callee.object))return{node:e.callee.object.callee.property,messageId:g,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,x)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[v]:"Prefer `.find(…)` over `.filter(…)`.",[f]:"Prefer `.find(…)` over `.filter(…)[0]`.",[m]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[p]:"Prefer `.find(…)` over `.filter(…).shift()`.",[h]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[g]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[y]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[b]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[x]:"Replace `.filter(…)` with `.find(…) ?? …`.",[E]:"Replace `.filter(…)` with `.find(…) || …`."}}}}()),d5=iw(function(){if(aS)return aA;aS=1;let{isNodeMatches:e}=sS(),{isMethodCall:t}=sD(),{removeMethodCall:r}=s4(),n="prefer-array-flat-map",u=["React.Children","Children"];return aA={create:a=>({CallExpression(i){if(!(t(i,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===i.arguments.length||1===i.arguments.length&&"Literal"===i.arguments[0].type&&"1"===i.arguments[0].raw)&&t(i.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let o=i.callee.object;if(e(o.callee.object,u))return;let{sourceCode:s}=a,d=o.callee.property;return{node:i,loc:{start:d.loc.start,end:i.loc.end},messageId:n,*fix(e){yield*r(e,i,s),yield e.replaceText(d,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}}}()),d8=iw(function(){if(a_)return aD;a_=1;let{getParenthesizedText:e,isArrayPrototypeProperty:t,isNodeMatches:r,isNodeMatchesNameOrPath:n,isParenthesized:u,isSameIdentifier:a,needsSemicolon:i,shouldAddParenthesesToMemberExpressionObject:o}=sZ(),{fixSpaceAroundKeyword:s}=s4(),{isMethodCall:d,isCallExpression:l}=sD(),c="prefer-array-flat",f=e=>"ArrayExpression"===e.type&&0===e.elements.length,p={testFunction(e){if(!d(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&a(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},h={testFunction(e){if(!d(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&f(r)))return!1;let n=t.body,[u,i]=t.params;return d(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&a(u,n.callee.object)&&a(i,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&a(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},m={testFunction:e=>d(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},g={testFunction(e){if(!(d(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&t(e.callee.object,{property:"concat"})))return!1;let[r,n]=e.arguments;return f(r)&&("call"===e.callee.property.name||"SpreadElement"!==n.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},y=["_.flatten","lodash.flatten","underscore.flatten"];return aD={create:function(t){let{functions:a}={functions:[],...t.options[0]},d=[...a,...y],f=[p,h,m,g,{testFunction:e=>l(e,{argumentsLength:1,optional:!1})&&r(e.callee,d),getArrayNode:e=>e.arguments[0],description:e=>`${d.find(t=>n(e.callee,t)).trim()}()`}];return{*CallExpression(r){for(let{testFunction:n,description:a,getArrayNode:d,shouldSwitchToArray:l}of f){if(!n(r))continue;let f=d(r),p={description:"string"==typeof a?a:a(r)},h={node:r,messageId:c,data:p},{sourceCode:m}=t;m.getCommentsInside(r).length===m.getCommentsInside(f).length&&(h.fix=function(t,r,n,a){return"function"==typeof a&&(a=a(t)),function*(d){let l=e(r,n);a?l=`[${l}]`:!u(r,n)&&o(r,n)&&(l=`(${l})`),l=`${l}.flat()`,i(n.getTokenBefore(t),n,l)&&(l=`;${l}`),yield d.replaceText(t,l),yield*s(d,t,n)}}(r,f,m,l)),yield h}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[c]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}}}()),d6=iw(function(){if(ak)return aw;ak=1;let{checkVueTemplate:e}=db(),{isBooleanNode:t,getParenthesizedRange:r,isNodeValueNotFunction:n}=sZ(),{removeMemberExpressionProperty:u}=s4(),{isLiteral:a,isUndefined:i,isMethodCall:o,isMemberExpression:s}=sD(),d="some",l="some-suggestion",c="filter",f=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&i(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&a(e.parent.right,null)),p=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,h=e=>a(e,0);return aw={create:e(e=>{e.on("CallExpression",n=>{if(!o(n,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let u=f(n);if(!u&&!t(n))return;let a=n.callee.property;return{node:a,messageId:d,data:{method:a.name},suggest:[{messageId:l,*fix(t){if(yield t.replaceText(a,"some"),!u)return;let i=r(n,e.sourceCode);yield t.replaceTextRange([i[1],n.parent.range[1]],""),"!="!==n.parent.operator&&"!=="!==n.parent.operator&&(yield t.insertTextBeforeRange(i,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(o(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&p(n)||[">=","<"].includes(u)&&h(n))))return;let a=r.callee.property;return{node:a,messageId:d,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&s(t.left,{property:"length",optional:!1})&&o(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let a=t.left.object,[i]=a.arguments;if(!i||n(i))return;let d=a.callee.property;return{node:d,messageId:c,*fix(n){yield n.replaceText(d,"some");let{sourceCode:a}=e,i=t.left;yield u(n,i,a),yield n.removeRange([r(i,a)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[d]:"Prefer `.some(…)` over `.{{method}}(…)`.",[l]:"Replace `.{{method}}(…)` with `.some(…)`.",[c]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}}}()),d9=iw(function(){if(aT)return aI;aT=1;let{isMethodCall:e}=sD(),t=t=>e(t,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":e(t,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;return aI={create:()=>({CallExpression(e){let r=t(e);if(!r)return;let n=e.callee.property,u=n.name;return{node:n,messageId:`error/${u}`,suggest:[{messageId:`suggestion/${r}`,fix:e=>e.replaceText(n,r)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}}}()),d7=iw(function(){if(aP)return aF;aP=1;let{findVariable:e}=sg,{functionTypes:t}=sD(),r="preferDefaultParameters",n="preferDefaultParametersSuggest",u=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,a=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(a(e,t))return!0}else if(a(e,n))return!0}return!1},i=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(a(e,n))return!0}return!1},o=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,s=(e,t)=>{let r=e.at(-1);return t&&t===r},d=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},l=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};return aF={create:a=>{let{sourceCode:c}=a,f=[],p=(t,a,p,h)=>{let m=f.at(-1);if(!m||!u(a,p))return;let{name:g}=a,{left:{name:y},right:{raw:b}}=p;if(h&&g!==y)return;let v=e(c.getScope(t),y);if(!v)return;let{references:x}=v,{params:E}=m,C=E.find(e=>"Identifier"===e.type&&e.name===y);if(i(c,m,t)||o(h,x,a)||!s(E,C))return;let A=d(c,m)?`(${g} = ${b})`:`${g} = ${b}`;return{node:t,messageId:r,suggest:[{messageId:n,fix:e=>[e.replaceText(C,A),l(e,c,t)]}]}};a.on(t,e=>{f.push(e)}),a.onExit(t,()=>{f.pop()}),a.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return p(e.parent,e.left,e.right,!0)}),a.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return p(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[r]:"Prefer default parameters over reassignment.",[n]:"Replace reassignment with default parameter."}}}}()),le=iw(function(){if(aO)return aL;aO=1;let{isParenthesized:e,getParenthesizedText:t}=sb(),r=sN(),n=aj?aB:(aj=1,aB=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)}),u=sU(),a="prefer-logical-operator-over-ternary/error",i="prefer-logical-operator-over-ternary/suggestion";function o(e,t,n){if(r(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return o(e.argument,t.argument,n);case"LogicalExpression":return e.operator===t.operator&&o(e.left,t.left,n)&&o(e.right,t.right,n);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&o(e.argument,t.argument,n);case"UpdateExpression":return!1}return n.getText(e)===n.getText(t)}function s({sourceCode:r,conditionalExpression:o,left:s,right:d}){return{node:o,messageId:a,suggest:["??","||"].map(a=>({messageId:i,data:{operator:a},fix:i=>(function({fixer:r,sourceCode:a,conditionalExpression:i,left:o,right:s,operator:d}){let l=[o,s].map((r,u)=>{let i=e(r,a),o=i?t(r,a):a.getText(r);return!i&&n(r,{operator:d,property:0===u?"left":"right"})&&(o=`(${o})`),o}).join(` ${d} `);return u(a.getTokenBefore(i),a,l)&&(l=`;${l}`),r.replaceText(i,l)})({fixer:i,sourceCode:r,conditionalExpression:o,left:s,right:d,operator:a})}))}}return aL={create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return o(r,n,t)?s({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&o(r.argument,u,t)?s({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Prefer using a logical operator over a ternary.",[i]:"Switch to `{{operator}}` operator."}}}}()),lt=iw(function(){if(aM)return aR;aM=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sg,r=dJ(),n="with-name",u="without-name";return aR={create:a=>({CatchClause(i){let o=i.param;if(!o)return;let{sourceCode:s}=a;if(s.getDeclaredVariables(o.parent).some(e=>e.references.length>0))return;let{type:d,name:l,parent:c}=o;return{node:o,messageId:"Identifier"===d?n:u,data:{name:l},*fix(n){let u=s.getTokenBefore(o);r(u,{test:e,expected:"(",ruleId:"prefer-optional-catch-binding"});let a=s.getTokenAfter(o);r(a,{test:t,expected:")",ruleId:"prefer-optional-catch-binding"}),yield n.remove(u),yield n.remove(o),yield n.remove(a);let[,i]=a.range,[d]=c.body.range,l=s.text.slice(i,d),f=l.length-l.trimStart().length;0!==f&&(yield n.removeRange([i,i+f]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[n]:"Remove unused catch binding `{{name}}`.",[u]:"Remove unused catch binding."}}}}()),lr=iw(function(){if(a$)return aN;a$=1;let{isParenthesized:e,getStaticValue:t}=sg,{checkVueTemplate:r}=db(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=sD(),{isBooleanNode:i,shouldAddParenthesesToMemberExpressionObject:o}=sZ(),s="regexp-exec",d="string-match",l="suggestion",c=[{type:s,test:e=>a(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:d,test:e=>a(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(t,{stringNode:r,methodNode:n,regexpNode:u},a){yield t.replaceText(n,"test");let i=a.getText(r);e(u,a)||"SequenceExpression"!==r.type||(i=`(${i})`),yield t.replaceText(u,i);let s=a.getText(u);!e(r,a)&&o(u,a)&&(s=`(${s})`),yield t.replaceText(r,s)}}],f=e=>n(e)||u(e,{name:"RegExp"}),p=(e,r)=>{if(n(e))return!e.regex.flags.includes("g");let u=t(e,r);if(!u)return!1;let{value:a}=u;return"[object RegExp]"===Object.prototype.toString.call(a)&&!a.global};return aN={create:r(e=>({*CallExpression(t){if(i(t))for(let{type:r,test:n,getNodes:u,fix:a}of c){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:d}=i;if("Literal"===d.type&&!d.regex)continue;let c={node:r===s?o:t,messageId:r},{sourceCode:h}=e,m=e=>a(e,i,h);f(d)||p(d,h.getScope(d))?c.fix=m:c.suggest=[{messageId:l,fix:m}],yield c}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[s]:"Prefer `.test(…)` over `.exec(…)`.",[d]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[l]:"Switch to `RegExp#test(…)`."}}}}()),ln=iw(function(){if(aV)return aU;aV=1;let{findVariable:e}=sg,{getVariableIdentifiers:t}=sZ(),{isCallOrNewExpression:r,isMethodCall:n}=sD(),u="error",a="suggestion",i=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],o=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},s=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),d=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(s.has(n.type))return!0;n=n.parent}return!1};return aU={create:s=>({Identifier(l){let{parent:c}=l;if(!("VariableDeclarator"===c.type&&c.id===l&&c.init&&"VariableDeclaration"===c.parent.type&&c.parent.declarations.includes(c)&&!("ExportNamedDeclaration"===c.parent.parent.type&&c.parent.parent.declaration===c.parent)&&("ArrayExpression"===c.init.type||r(c.init,{name:"Array",optional:!1})||n(c.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||n(c.init,{methods:i,optionalCall:!1,optionalMember:!1}))))return;let f=e(s.sourceCode.getScope(l),l);if(!f)return;let p=t(f).filter(e=>e!==l);if(0===p.length||p.some(e=>!o(e))||1===p.length&&p.every(e=>!d(e,l)))return;let h={node:l,messageId:u,data:{name:l.name}},m=function*(e){for(let t of(yield e.insertTextBefore(l.parent.init,"new Set("),yield e.insertTextAfter(l.parent.init,")"),p))yield e.replaceText(t.parent.property,"has")};return l.typeAnnotation?h.suggest=[{messageId:a,fix:m}]:h.fix=m,h}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[a]:"Switch `{{name}}` to `Set`."}}}}()),lu=iw(function(){if(aq)return az;aq=1;let{isStringLiteral:e,isDirective:t}=sD(),{fixSpaceAroundKeyword:r}=s4(),n="prefer-string-raw";return az={create:u=>{u.on("Literal",a=>{if(!e(a)||t(a.parent)||("ImportDeclaration"===a.parent.type||"ExportNamedDeclaration"===a.parent.type||"ExportAllDeclaration"===a.parent.type)&&a.parent.source===a||"Property"===a.parent.type&&!a.parent.computed&&a.parent.key===a||"JSXAttribute"===a.parent.type&&a.parent.value===a||"TSEnumMember"===a.parent.type&&(a.parent.initializer===a||a.parent.id===a))return;let{raw:i}=a;if("\\"===i.at(-2)||!i.includes("\\\\")||i.includes("`")||i.includes("${")||a.loc.start.line!==a.loc.end.line)return;let o=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(i);if(o===a.value)return{node:a,messageId:n,*fix(e){yield e.replaceText(a,`String.raw\`${o}\``),yield*r(e,a,u.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[n]:"`String.raw` should be used to avoid escaping `\\`."}}}}()),la=iw(function(){if(aH)return aZ;aH=1;let{hasSideEffect:e}=sg,t=sN(),r=aG?aW:(aG=1,aW=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]}),n="prefer-switch",u=(e,r)=>e===r||t(e,r),a=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),i=e=>{for(;e.parent;e=e.parent)if(a.has(e.type))return e},o=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];return aZ={create:t=>{let a={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...t.options[0]},{sourceCode:s}=t,d=new Set,l=[],c=new Set;return{IfStatement(e){d.add(e)},BreakStatement(e){e.label||l.push(e)},*"Program:exit"(){for(let t of d){if(c.has(t))continue;let{discriminant:d,ifStatements:f}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,a=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===a.length)break;if(!t){let[{left:e,right:r}]=a;t=[e,r]}let i=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>u(e,r)||u(e,n))).length)break;return t}(a,t);if(0===i.length)break;t=i,r.push({statement:e,compareExpressions:a})}return{ifStatements:r,discriminant:t&&t[0]}}(t);if(!d||f.length<a.minimumCases)continue;for(let{statement:e}of f)c.add(e);let p={loc:{start:t.loc.start,end:t.consequent.loc.start},messageId:n};e(d,s)||f.some(({statement:e})=>(function(e,t){for(let r of e){if(!o(r,t))continue;let e=i(r);if(!e||o(t,e))return!0}return!1})(l,e))||(p.fix=function({discriminant:e,ifStatements:t},n,a){let i=n.getText(e);return function*(o){let s=t[0].statement,d=r(s,n);yield o.insertTextBefore(s,`switch (${i}) {`);let l=t.at(-1).statement;if(l.alternate){let{alternate:e}=l;yield o.insertTextBefore(e,`
3
+ export {${o}} ${f(s,e)}`)}1===r.variable.references.length&&(yield*c(r.node,u,e)),yield*c(n.node,u,e)}}({sourceCode:r,imported:n,exported:s,exportDeclarations:g,program:e});y?i.suggest=[{messageId:a,fix:d}]:i.fix=d,yield i}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[u]:"Use `export…from` to re-export `{{exported}}`.",[a]:"Switch to `export…from`."}}}}()),dd=iw(function(){if(rF)return rT;rF=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sy,{functionTypes:r}=sS(),n="prefer-native-coercion-functions",u=new Set(["String","Number","BigInt","Boolean","Symbol"]),a=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),i=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&u.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,o=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,s=e=>o(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&a.has(e.parent.callee.property.name);return rT={create:u=>{u.on(r,r=>{if(r.async||r.generator||0===r.params.length||"Identifier"!==r.params[0].type||("MethodDefinition"===r.parent.type&&("constructor"===r.parent.kind||"set"===r.parent.kind)||"Property"===r.parent.type&&"set"===r.parent.kind)&&r.parent.value===r)return;let a=function(e){if(s(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(r)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&i(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(r);if(!a)return;let{sourceCode:o}=u,{replacementFunction:d,fix:l}=a;return a={node:r,loc:e(r,o),messageId:n,data:{functionNameWithKind:t(r,o),replacementFunction:d}},!l||1!==r.params.length||o.getCommentsInside(r).length>0||(a.fix=l),a})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[n]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}}}());function dl(){if(rk)return r_;rk=1;let{ReferenceTracker:e}=sy,t=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r};class r{#e={};#t;#r;constructor({object:r,objects:n=[r],filter:u,handle:a,type:i=e.READ}){for(let e of n)Object.assign(this.#e,t(e,i));this.#t=u,this.#r=a}*track(t){for(let r of new e(t).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(r))continue;let e=this.#r(r);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}}return Object.assign(r,{READ:e.READ,CALL:e.CALL,CONSTRUCT:e.CONSTRUCT}),r_={GlobalReferenceTracker:r}}var dc=iw(function(){if(rP)return rI;rP=1;let{GlobalReferenceTracker:e}=dl(),t="no-document-cookie",r=new e({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:t})});return rI={create:e=>r.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[t]:"Do not use `document.cookie` directly."}}}}()),df=iw(function(){if(rR)return rO;rR=1;let{isParenthesized:e}=sy,t=function(){if(rj)return rB;rj=1;let e=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];return rB=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...e("AnimationStart"),...e("AnimationEnd"),...e("AnimationIteration"),...e("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"])}(),{isUndefined:r,isNullLiteral:n,isStaticRequire:u}=sS(),a="prefer-add-event-listener",i={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},o=e=>e.property.name,s=e=>e.slice(2),d=(t,r,n,u)=>{let a=s(o(u)),i=r.getText(u.object);e(u.object,r)&&(i=`(${i})`);let d=r.getText(n.right);e(n.right,r)&&(d=`(${d})`);let l=`${i}.addEventListener('${a}', ${d})`;return t.replaceText(n,l)},l=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),c=e=>r(e)||n(e);return rO={create:e=>{let r,n;let f=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),p=new WeakMap;return{onCodePathStart(e,t){n={node:t,upper:n,returnsSomething:!1}},onCodePathEnd(){p.set(n.node,n.returnsSomething),n=n.upper},CallExpression(e){u(e)&&!r&&f.has(e.arguments[0].value)&&(r=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!r&&f.has(e.value)&&(r=!0)},ReturnStatement(e){n.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(n){let u;if(r)return;let{left:f,right:m,operator:g}=n;if("MemberExpression"!==f.type||f.computed)return;let y=o(f);if(!y||!y.startsWith("on"))return;let h=s(y);if(!t.has(h))return;let b="addEventListener",x="";return c(m)?b="removeEventListener":"beforeunload"!==h||l(m,p)?"message"===h?x=i.message:"error"===h?x=i.error:"="===g&&"ExpressionStatement"===n.parent.type&&n.parent.expression===n&&(u=t=>d(t,e.sourceCode,n,f)):x=i.beforeunload,{node:f.property,messageId:a,data:{replacement:b,method:y,extra:x?` ${x}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[a]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}}}()),dp=iw(function(){if(r$)return rM;r$=1;let e=function(){if(rN)return rL;rN=1;let{hasSideEffect:e,isParenthesized:t,findVariable:r}=sy,{isMethodCall:n}=sS(),{isSameIdentifier:u,isFunctionSelfUsedInside:a}=sK(),i=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(u(e.left,t)||u(e.right,t)),o=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&i(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&i(e.body.body[0].argument,e.params[0]),s=({type:e,name:t},r)=>"Identifier"===e&&t===r;return rL=function({method:u,replacement:i}){let d=`prefer-${i}-over-${u}/`,l=`${d}error`,c=`${d}suggestion`;return{messages:{[l]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${i}()\` instead of \`.${u}()\` when checking value existence.`})[u],[c]:`Replace \`.${u}()\` with \`.${i}()\`.`},listen:function(d){let{sourceCode:f}=d,{scopeManager:p}=f;d.on("CallExpression",d=>{let m,g;if(!n(d,{method:u,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!o(d.arguments[0]))return;let[y]=d.arguments,h="BinaryExpression"===y.body.type?y.body:y.body.body[0].argument,[b]=y.params,{left:x,right:v}=h,{name:E}=b;if(s(x,E))m=v,g=x;else{if(!s(v,E))return;m=x,g=v}let A=p.acquire(y);if(r(A,b).references.some(({identifier:e})=>e!==g)||a(y,A))return;let C=d.callee.property,D={node:C,messageId:l,suggest:[]},S=function*(e){let r=f.getText(m);t(m,f)&&!t(y,f)&&(r=`(${r})`),yield e.replaceText(C,i),yield e.replaceText(y,r)};return e(m,f)?D.suggest.push({messageId:c,fix:S}):D.fix=S,D})}}}}(),t=e({method:"findIndex",replacement:"indexOf"}),r=e({method:"findLastIndex",replacement:"lastIndexOf"});return rM={create(e){t.listen(e),r.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...t.messages,...r.messages}}}}()),dm=iw(function(){if(rz)return rU;rz=1;let{isMethodCall:e}=sS(),t="error";return rU={create:()=>({CallExpression(r){if(!e(r,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=r.callee.property,u=n.name;return{node:n,messageId:t,data:{method:u,replacement:"readAsArrayBuffer"===u?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[t]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}}}()),dg=iw(function(){if(rq)return rW;rq=1;let{isMethodCall:e,isCallExpression:t,isNewExpression:r}=sS(),{fixSpaceAroundKeyword:n}=s5(),u="prefer-date",a="prefer-date-now-over-methods",i="prefer-date-now-over-number-data-object",o=e=>r(e,{name:"Date",argumentsLength:0}),s=(e,t,r)=>({node:e,messageId:u,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*n(t,e,r))},...t});return rW={create:r=>({CallExpression(r){if(e(r,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&o(r.callee.object)){let e=r.callee.property;return s(r,{node:e,messageId:a,data:{method:e.name}})}if(t(r,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&o(r.arguments[0])){let{name:e}=r.callee;return"Number"===e?s(r,{messageId:i}):s(r.arguments[0])}},UnaryExpression(e){if(("+"===e.operator||"-"===e.operator)&&o(e.argument))return s("-"===e.operator?e.argument:e,{},r.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&o(e.right))return s(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])o(t)&&(yield s(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[u]:"Prefer `Date.now()` over `new Date()`.",[a]:"Prefer `Date.now()` over `Date#{{method}}()`.",[i]:"Prefer `Date.now()` over `Number(new Date())`."}}}}()),dy=iw(function(){if(rZ)return rV;rZ=1;let{isIdentifierName:e}=sk(),{escapeString:t,hasOptionalChainElement:r,isValueNotUsable:n}=sK(),{isMethodCall:u,isStringLiteral:a,isExpressionStatement:i}=sS(),o="prefer-dom-node-dataset",s=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());return rV={create:d=>({CallExpression(l){if(!((u(l,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||u(l,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&a(l.arguments[0])))return;let c=l.callee.property.name;if(("AwaitExpression"!==l.parent.type||l.parent.argument!==l||"getAttribute"!==c)&&l.arguments[0].value.toLowerCase().startsWith("data-"))return{node:l,messageId:o,data:{method:l.callee.property.name},fix:function(u,a){let o=u.callee.property.name;if(!("setAttribute"===o&&r(u.callee))&&("setAttribute"!==o||n(u))&&("removeAttribute"!==o||i(u.parent)))return r=>{let[n]=u.arguments,i=s(n.value.toLowerCase().slice(5)),{sourceCode:d}=a,l="",c=`${d.getText(u.callee.object)}.dataset`;switch(o){case"setAttribute":case"getAttribute":case"removeAttribute":l=e(i)?`.${i}`:`[${t(i,n.raw.charAt(0))}]`,l=`${c}${l}`,"setAttribute"===o?l+=` = ${d.getText(u.arguments[1])}`:"removeAttribute"===o&&(l=`delete ${l}`);break;case"hasAttribute":l=`Object.hasOwn(${c}, ${t(i,n.raw.charAt(0))})`}return r.replaceText(u,l)}}(l,d)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `.dataset` over `{{method}}(…)`."}}}}()),dh=iw(function(){if(rK)return rG;rK=1;let{getParenthesizedText:e,getParenthesizedRange:t,isSameReference:r}=sK(),{isLiteral:n,isMethodCall:u}=sS(),{replaceNodeOrTokenAndSpacesBefore:a,removeParentheses:i}=s5(),o="prefer-modern-math-apis",s=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,d=(e,t)=>"CallExpression"===e.type&&!e.optional&&s(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function l({constantName:t,replacementMethod:r}){let n=`Math.${r}(…)`;return function(u,a){let i,l;if("BinaryExpression"!==u.type||"*"!==u.operator||(d(u.left,"log")&&s(u.right,t)?(i=u.left,l=`Math.log(…) * Math.${t}`):d(u.right,"log")&&s(u.left,t)&&(i=u.right,l=`Math.${t} * Math.log(…)`),!i))return;let[c]=i.arguments;return{node:u,messageId:o,data:{replacement:n,description:l},fix:t=>t.replaceText(u,`Math.${r}(${e(c,a.sourceCode)})`)}}}function c({constantName:t,replacementMethod:r}){let n={messageId:o,data:{replacement:`Math.${r}(…)`,description:`Math.log(…) / Math.${t}`}};return function(u,a){if(!("BinaryExpression"===u.type&&"/"===u.operator&&d(u.left,"log")&&s(u.right,t)))return;let[i]=u.left.arguments;return{...n,node:u,fix:t=>t.replaceText(u,`Math.${r}(${e(i,a.sourceCode)})`)}}}let f=[l({constantName:"LOG10E",replacementMethod:"log10"}),l({constantName:"LOG2E",replacementMethod:"log2"}),c({constantName:"LN10",replacementMethod:"log10"}),c({constantName:"LN2",replacementMethod:"log2"})],p=e=>"BinaryExpression"===e.type&&"+"===e.operator,m=e=>"BinaryExpression"===e.type&&("*"===e.operator&&r(e.left,e.right)||"**"===e.operator&&n(e.right,2)),g=e=>p(e)?[e.left,e.right].flatMap(e=>g(e)):[e];return rG={create:e=>{let r=[];return{CallExpression(r){if(!u(r,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let n=g(r.arguments[0]);if(n.some(e=>!m(e)))return;let s=1===n.length?"abs":"hypot",d=new Set(1===n.length?[]:n.map(e=>e.parent));return{node:r.callee.property,messageId:o,data:{replacement:`Math.${s}(…)`,description:"Math.sqrt(…)"},*fix(u){let{sourceCode:o}=e;for(let e of(yield u.replaceText(r.callee.property,s),d)){let t=o.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*a(t,",",u,o),yield*i(e,u,o)}for(let e of n)yield u.removeRange([t(e.left,o)[1],e.range[1]])}}},BinaryExpression(e){r.push(e)},*"Program:exit"(){for(let t of r)for(let r of f){let n=r(t,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[o]:"Prefer `{{replacement}}` over `{{description}}`."}}}}()),db=iT(t);function dx(){if(rJ)return rH;rJ=1;let e=ik(),t=e=>"function"==typeof e?.[Symbol.iterator];class r extends Error{}let n={abort(){throw new r("Fix aborted.")}};function u(e){return u=>{let a=e(u,n);if(t(a))try{return[...a]}catch(e){if(e instanceof r)return;throw e}return a}}let a=new Set;function i(e){if(a.has(e))return e;let r=r=>{let n={},a=(e,t)=>{n[e]??=[],n[e].push(t)};for(let[t,n]of Object.entries(e(new Proxy(r,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])a(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))a(t,n);return Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{for(let a of n)!function(e,r){if(e){for(let n of(t(e)||(e=[e]),e))if(n){if(n.fix&&=u(n.fix),Array.isArray(n.suggest))for(let e of n.suggest)e.fix&&=u(e.fix),e.data={...n.data,...e.data};r.report(n)}}}(a(...e),r)}]))};return a.add(r),r}function o(t){let r=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${t}`);return{meta:{schema:[],...r.meta,docs:{...r.meta.docs,url:e(t)}},create:i(r.create)}}return rH={loadRule:o,loadRules:function(){return Object.fromEntries(db.readdirSync(iF.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=iF.basename(e.name,".js");return[t,o(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=i(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return a.add(n),n}}}var dv=iw(function(){if(rY)return rX;rY=1;let{checkVueTemplate:e}=dx(),{isNumberLiteral:t,isBigIntLiteral:r}=sS(),n="number-literal-case",u=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};return rX={create:e(()=>({Literal(e){let{raw:a}=e,i=a;if(t(e)?i=u(a):r(e)&&(i=u(a.slice(0,-1))+"n"),a!==i)return{node:e,messageId:n,fix:t=>t.replaceText(e,i)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[n]:"Invalid number literal casing."}}}}()),dE=iw(function(){if(r0)return rQ;r0=1;let{GlobalReferenceTracker:e}=dl(),{replaceReferenceIdentifier:t}=s5(),{fixSpaceAroundKeyword:r}=s5(),n=sL(),u="error",a="suggestion",i={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},o=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};return rQ={create:s=>{let{checkInfinity:d,checkNaN:l}={checkInfinity:!1,checkNaN:!0,...s.options[0]},{sourceCode:c}=s;return new e({objects:Object.keys(i).filter(e=>(!!d||"Infinity"!==e)&&(!!l||"NaN"!==e)),handle:e=>(function({node:e,path:[n]},s){let{parent:d}=e,l=n;"Infinity"===n&&(l=o(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let c={node:e,messageId:u,data:{description:n,property:l}};if("NEGATIVE_INFINITY"===l)return c.node=d,c.data.description="-Infinity",c.fix=function*(e){yield e.replaceText(d,"Number.NEGATIVE_INFINITY"),yield*r(e,d,s)},c;let f=r=>t(e,`Number.${l}`,r,s);return i[n]?c.fix=f:c.suggest=[{messageId:a,fix:f}],c})(e,c),filter:({node:e})=>!n(e)}).createListeners(s)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[u]:"Prefer `Number.{{property}}` over `{{description}}`.",[a]:"Replace `{{description}}` with `Number.{{property}}`."}}}}()),dA=iw(function(){if(r2)return r1;r2=1;let{getPropertyName:e}=sy,{isNullLiteral:t,isMethodCall:r}=sS(),n="prefer-reflect-apply",u=(e,r)=>(t(e)||"ThisExpression"===e.type)&&("ArrayExpression"===r.type||"Identifier"===r.type&&"arguments"===r.name),a=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,i=(t,r)=>{if("apply"===e(t.callee)&&2===t.arguments.length&&u(t.arguments[0],t.arguments[1]))return e=>e.replaceText(t,a(r,t.callee.object,t.arguments[0],t.arguments[1]))},o=(t,r)=>{if("call"===e(t.callee)&&"apply"===e(t.callee.object)&&"prototype"===e(t.callee.object.object)&&t.callee.object.object.object?.type==="Identifier"&&"Function"===t.callee.object.object.object.name&&3===t.arguments.length&&u(t.arguments[1],t.arguments[2]))return e=>e.replaceText(t,a(r,t.arguments[0],t.arguments[1],t.arguments[2]))};return r1={create:e=>({CallExpression(t){if(!r(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:u}=e,a=i(t,u)||o(t,u);if(a)return{node:t,messageId:n,fix:a}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `Reflect.apply()` over `Function#apply()`."}}}}()),dC=iw(function(){if(r4)return r3;r4=1;let{findVariable:e}=sy,{fixSpaceAroundKeyword:t}=s5(),{isNewExpression:r,isMemberExpression:n}=sS(),u="prefer-set-size",a=e=>r(e,{name:"Set"});return r3={create:r=>{let{sourceCode:i}=r;return{MemberExpression(r){if(!n(r,{property:"length",optional:!1})||"ArrayExpression"!==r.object.type||1!==r.object.elements.length||r.object.elements[0]?.type!=="SpreadElement")return;let o=r.object.elements[0].argument;if(function(t,r){if(a(t))return!0;if("Identifier"!==t.type)return!1;let n=e(r,t);if(!n||1!==n.defs.length)return!1;let[u]=n.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let i=u.node;return"VariableDeclarator"===i.type&&"Identifier"===i.id.type&&a(u.node.init)}(o,i.getScope(o)))return{node:r.property,messageId:u,fix:function(e,r){let{object:n,property:u}=r,a=n.elements[0].argument;if(!(e.getCommentsInside(n).length>e.getCommentsInside(a).length))return function*(i){yield i.replaceText(u,"size"),yield i.replaceText(n,e.getText(a)),yield*t(i,r,e)}}(i,r)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[u]:"Prefer using `Set#size` instead of `Array#length`."}}}}()),dD={exports:{}},dS=iw(function(){if(r6)return r8;r6=1;let{getStaticValue:e}=sy,{parse:t}=function(){var e,t,r,n;return r5?dD.exports:(r5=1,r=String.fromCodePoint||(e=String.fromCharCode,t=Math.floor,function(){var r,n,u=[],a=-1,i=arguments.length;if(!i)return"";for(var o="";++a<i;){var s=Number(arguments[a]);if(!isFinite(s)||s<0||s>1114111||t(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?u.push(s):(s-=65536,r=(s>>10)+55296,n=s%1024+56320,u.push(r,n)),(a+1==i||u.length>16384)&&(o+=e.apply(null,u),u.length=0)}return o}),n={parse:function(e,t,n){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function a(e,t){return e.range[0]=t,u(e)}function i(e,t){return u({type:"anchor",kind:e,range:[J-t,J]})}function o(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,n]})}function s(e,t,r,n){return n=n||0,o(e,t,J-(r.length+n),J)}function d(e){var t,r=e[0],n=r.charCodeAt(0);return H&&1===r.length&&n>=55296&&n<=56319&&(t=h().charCodeAt(0))>=56320&&t<=57343?o("symbol",(n-55296)*1024+t-56320+65536,++J-2,J):o("symbol",n,J-1,J)}function l(e,t,r,n,a){return null==n&&(r=J-1,n=J),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function c(e,t,r,n){return u({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,n]})}function f(e,t,r,n){return e.codePoint>t.codePoint&&z("invalid range in character class",e.raw+"-"+t.raw,r,n),u({type:"characterClassRange",min:e,max:t,range:[r,n]})}function p(e){return"alternative"===e.type?e.body:[e]}function m(t){t=t||1;var r=e.substring(J,J+t);return J+=t||1,r}function g(e){y(e)||z("character",e)}function y(t){if(e.indexOf(t,J)===J)return m(t.length)}function h(){return e[J]}function b(t){return e.indexOf(t,J)===J}function x(t){return e[J+1]===t}function v(t){var r=e.substring(J).match(t);return r&&(r.range=[],r.range[0]=J,m(r[0].length),r.range[1]=J),r}function E(){var e=[],t=J;for(e.push(A());y("|");)e.push(A());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,J]})}function A(){for(var t,r=[],s=J;t=function(){if(J>=e.length||b("|")||b(")"))return null;var t=y("^")?i("start",1):y("$")?i("end",1):y("\\b")?i("boundary",2):y("\\B")?i("not-boundary",2):C("(?=","lookahead","(?!","negativeLookahead");if(!t){var r=function(){if((t=v(/^[^^$\\.*+?()[\]{}|]/))||!H&&(t=v(/^(?:]|})/)))return d(t);if(y("."))return u({type:"dot",range:[J-1,J]});if(y("\\")){if(!(t=T())){if(!H&&"c"==h())return o("symbol",92,J-1,J);z("atomEscape")}return t}if(t=O())return t;else if(n.lookbehind&&(t=C("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;else if(n.namedGroups&&y("(?<")){var t,r,a,i,s,l,c=P();g(">");var f=D("normal",c.range[0]-3);return f.name=c,f}else{if(!n.modifiers||e.indexOf("(?")!=J||":"==e[J+2])return C("(?:","ignore","(","normal");return a=J,m(2),i=v(/^[sim]+/),y("-")?(r=v(/^[sim]+/))||z("Invalid flags for modifiers group"):i||z("Invalid flags for modifiers group"),((s=(i=i?i[0]:"")+(r=r?r[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(s))&&z("flags cannot be duplicated for modifiers group"),g(":"),(l=D("ignore",a)).modifierFlags={enabling:i,disabling:r},l}}();if(!r){var s,l,c=J;(s=S()||!1)&&(J=c,z("Expected atom")),!H&&(l=v(/^{/))?r=d(l):z("Expected atom")}t=r}return(s=S()||!1)?(s.body=p(t),a(s,t.range[0]),s):t}();)r.push(t);return 1===r.length?r[0]:u({type:"alternative",body:r,range:[s,J]})}function C(e,t,r,n){var u=null,a=J;if(y(e))u=t;else{if(!y(r))return!1;u=n}return D(u,a)}function D(e,t){var r=E();r||z("Expected disjunction"),g(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,J]});return"normal"==e&&V&&q++,n}function S(){var e,t,r,n,u=J;return y("*")?e=l(0,void 0,void 0,void 0,"*"):y("+")?e=l(1,void 0,void 0,void 0,"+"):y("?")?e=l(0,1,void 0,void 0,"?"):(n=v(/^\{([0-9]+)\}/))?e=l(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=v(/^\{([0-9]+),\}/))?e=l(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=v(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&z("numbers out of order in {} quantifier","",u,J),e=l(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&z("iterations outside JS safe integer range in quantifier","",u,J),e&&y("?")&&(e.greedy=!1,e.range[1]+=1),e}function w(e){if(H){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&x("u")){var n=J;J++;var a=T(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",u(e)):J=n}}return e}n||(n={});function T(e){var t,r,i=J;if(r=function(e){var t,r,n=J;if(t=v(/^(?!0)\d+/)){r=t[0];var i,o=parseInt(t[0],10);return o<=q&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[J-1-i.length,J]}):(W.push(o),V?Z=!0:F(n,J),m(-t[0].length),t=v(/^[0-7]{1,3}/))?s("octal",parseInt(t[0],8),t[0],1):a(t=d(v(/^[89]/)),t.range[0]-1)}return!!(t=v(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&F(n,J),/^0{1,3}$/.test(r))?s("null",0,"0",r.length):s("octal",parseInt(r,8),r,1))}(e)||function(){if(n.namedGroups&&v(/^k<(?=.*?>)/)){var e=P();return g(">"),u({type:"reference",name:e,range:[e.range[0]-3,J]})}}())return r;if(e){if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))z("\\B not possible inside of CharacterClass","",i);else if(!H&&(r=v(/^c([0-9])/)))return s("controlLetter",r[1]+16,r[1],2);else if(!H&&(r=v(/^c_/)))return s("controlLetter",31,"_",2);if(H&&y("-"))return s("singleEscape",45,"\\-")}return((t=v(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[J-2,J]}):n.unicodePropertyEscape&&H&&(t=v(/^([pP])\{([^\}]+)\}/))?u({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(n.unicodeSet&&K&&y("q{"))&&function(){var e=J-3,t=[];do t.push(function(){for(var e,t=[],r=J;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,J]})}());while(y("|"));return g("}"),u({type:"classStrings",strings:t,range:[e,J]})}())||k()}function F(e,t){H&&z("Invalid decimal escape in unicode mode",null,e,t)}function _(){var e;return(e=v(/^u([0-9a-fA-F]{4})/))?w(s("unicodeEscape",parseInt(e[1],16),e[1],2)):H&&(e=v(/^u\{([0-9a-fA-F]+)\}/))?s("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function k(){var e,t,r,u=J;if(r=v(/^[fnrtv]/)){var a=0;switch(r[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return s("singleEscape",a,"\\"+r[0])}if(r=v(/^c([a-zA-Z])/))return s("controlLetter",r[1].charCodeAt(0)%32,r[1],2);if(r=v(/^x([0-9a-fA-F]{2})/))return s("hexadecimalEscape",parseInt(r[1],16),r[1],2);if(r=_())return(!r||r.codePoint>1114111)&&z("Invalid escape sequence",null,u,J),r;return t=h(),H&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!H&&"c"!==t?"k"===t&&n.lookbehind?null:s("identifier",(e=m()).charCodeAt(0),e,1):null}function I(t){var n=h(),u=J;if("\\"===n){m();var a=_();return a&&t(a.codePoint)||z("Invalid escape sequence",null,u,J),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[J+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return m(),i>65535&&m(),n}function P(){var e,t=J,r=I(B);for(r||z("Invalid identifier");e=I(j);)r+=e;return u({type:"identifier",value:r,range:[t,J]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\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\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\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-\u1878\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\u1C90-\u1CBA\u1CBD-\u1CBF\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-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\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\uDF2D-\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-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\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-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(r(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\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[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(r(e))}function O(){var e,t=J;return(e=v(/^\[\^/))?(e=R(),g("]"),c(e,!0,t,J)):y("[")?(e=R(),g("]"),c(e,!1,t,J)):null}function R(){var e,t;return b("]")?{kind:"union",body:[]}:K?function(){var e,t=[],r=N(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(g("&"),g("&"),b("&")&&z("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(g("-"),g("-")),t.push(r=N("union"===e));return{kind:e,body:t}}():((t=L())||z("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!x("]")){r=t.range[0],i=d(y("-")),(a=L())||z("classAtom"),n=J;var r,n,u,a,i,o,s=R();return(s||z("classRanges"),"codePoint"in t&&"codePoint"in a?u=[f(t,a,r,n)]:H?z("invalid character class"):u=[t,i,a],"empty"===s.type)?u:u.concat(s.body)}return(o=L())||z("classAtom"),(u=b("]")?o:e(o))||z("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||z("nonEmptyClassRanges"),{kind:"union",body:e})}function L(){var e;return y("-")?d("-"):(e=v(/^[^\\\]-]/))?d(e[0]):y("\\")?((e=T(!0))||z("classEscape"),w(e)):void 0}function N(e){var t,r,n=J;if(y("\\")){if(r=T(!0))t=r;else{if(r=U())return r;z("Invalid escape","\\"+h(),n)}}else if(r=$())t=r;else{if(r=O())return r;z("Invalid character",h())}if(e&&b("-")&&!x("-")){if(g("-"),r=M())return f(t,r,n,J);z("Invalid range end",h())}return t}function M(){if(y("\\")){var e,t=J;if(e=U())return e;z("Invalid escape","\\"+h(),t)}return $()}function $(){var e;if(e=v(/^[^()[\]{}/\-\\|]/))return d(e)}function U(){var e;if(y("b"))return s("singleEscape",8,"\\b");if(y("B"))z("\\B not possible inside of ClassContents","",J-2);else if(e=v(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=k())return e;else return null}function z(t,r,n,u){n=null==n?J:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}var W=[],q=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),K=-1!==(t||"").indexOf("v"),H=G||K,J=0;if(K&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&K)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var X=E();return(X.range[1]!==e.length&&z("Could not parse entire input - got stuck","",X.range[1]),Z=Z||W.some(function(e){return e<=q}))?(J=0,V=!1,E()):X}},dD.exports?dD.exports=n:window.regjsparser=n,dD.exports)}(),r=sj(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=sS(),i="method",o="pattern",s=(t,r)=>{if(n(t))return t.regex.flags.includes("g");if(u(t,{name:"RegExp"})&&t.arguments[0]?.type!=="SpreadElement"&&t.arguments[1]?.type==="Literal"&&"string"==typeof t.arguments[1].value)return t.arguments[1].value.includes("g");let a=e(t,r);if(!a)return!1;let{value:i}=a;return"[object RegExp]"===Object.prototype.toString.call(i)&&i.global};return r8={create:e=>({CallExpression(u){if(!a(u,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[d],callee:{property:l}}=u;if(!s(d,e.sourceCode.getScope(d)))return;let c=l.name,f=function(e){let u;if(!n(e))return;let{pattern:a,flags:i}=e.regex;if("g"!==i.replace("u","").replace("v",""))return;try{u=t(a,i,{unicodePropertyEscape:i.includes("u"),unicodeSet:i.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let o="alternative"===u.type?u.body:[u];if(!o.some(e=>"value"!==e.type))return r(String.fromCodePoint(...o.map(e=>e.codePoint)))}(d);if("replaceAll"===c){if(!f)return;return{node:d,messageId:o,data:{replacement:f.length<20?f:"a string literal"},fix:e=>e.replaceText(d,f)}}return{node:l,messageId:i,*fix(e){yield e.insertTextAfter(l,"All"),f&&(yield e.replaceText(d,f))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[i]:"Prefer `String#replaceAll()` over `String#replace()`.",[o]:"This pattern can be replaced with {{replacement}}."}}}}()),dw=iw(function(){if(r7)return r9;r7=1;let{getStaticValue:e}=sy,{getParenthesizedText:t,getParenthesizedRange:r}=sb(),{replaceArgument:n}=s5(),{isNumberLiteral:u,isMethodCall:a}=sS(),i=e=>u(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-i(e.argument):void 0,o=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;return r9={create:s=>({CallExpression(d){if(!a(d,{methods:["substr","substring"]}))return;let l=d.callee.property.name;return{node:d,messageId:l,*fix(a,{abort:c}){if(yield a.replaceText(d.callee.property,"slice"),0!==d.arguments.length){if(d.arguments.length>2||d.arguments.some(e=>"SpreadElement"===e.type))return c();yield*("substr"===l?function*({node:t,fixer:a,context:s,abort:d}){let l=t.arguments,[c,f]=l;if(!f)return;let{sourceCode:p}=s,m=e(c,p.getScope(t)),g=r(f,p),y=e=>n(a,f,e,p);if(m?.value===0){if(u(f)||o(f))return;if("number"==typeof i(f)){yield y(Math.max(0,i(f)));return}yield a.insertTextBeforeRange(g,"Math.max(0, "),yield a.insertTextAfterRange(g,")");return}if(l.every(e=>u(e))){yield y(c.value+f.value);return}return d()}:function*({node:e,fixer:u,context:a,abort:s}){let{sourceCode:d}=a,[l,c]=e.arguments,f=l?i(l):void 0,p=t(l,d),m=e=>n(u,l,e,d);if(!c){if(o(l))return;if(void 0!==f){yield m(Math.max(0,f));return}let e=r(l,d);yield u.insertTextBeforeRange(e,"Math.max(0, "),yield u.insertTextAfterRange(e,")");return}let g=i(c),y=t(c,d),h=e=>n(u,c,e,d);if(void 0!==f&&void 0!==g){let e=[Math.max(0,f),Math.max(0,g)];f>g&&e.reverse(),e[0]!==f&&(yield m(e[0])),e[1]!==g&&(yield h(e[1]));return}if(0===f||0===g){yield m(0),yield h(`Math.max(0, ${0===f?y:p})`);return}return s()})({node:d,fixer:a,context:s,abort:c})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}}}()),dT=iw(function(){if(nt)return ne;nt=1;let{isMethodCall:e}=sS(),t="prefer-string-trim-start-end";return ne={create:()=>({CallExpression(r){if(!e(r,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let n=r.callee.property,u=n.name,a="trimLeft"===u?"trimStart":"trimEnd";return{node:n,messageId:t,data:{method:u,replacement:a},fix:e=>e.replaceText(n,a)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[t]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}}}()),dF=iw(function(){if(nn)return nr;nn=1;let{isParenthesized:e,getParenthesizedRange:t,toLocation:r}=sK(),n="no-unreadable-iife";return nr={create:u=>({CallExpression(a){let{sourceCode:i}=u;if("ArrowFunctionExpression"===a.callee.type&&"BlockStatement"!==a.callee.body.type&&e(a.callee.body,i))return{node:a,loc:r(t(a.callee.body,i),i),messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[n]:"IIFE with parenthesized arrow function body is considered unreadable."}}}}()),d_=iw(function(){if(na)return nu;na=1;let{switchCallExpressionToNewExpression:e}=s5(),t="throw-new-error",r=/^(?:[A-Z][\da-z]*)*Error$/;return nu={create:n=>({CallExpression(u){let{callee:a}=u;if("Identifier"===a.type&&r.test(a.name)||"MemberExpression"===a.type&&!a.computed&&"Identifier"===a.property.type&&r.test(a.property.name))return{node:u,messageId:t,fix:t=>e(u,n.sourceCode,t)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[t]:"Use `new` when creating an error."}}}}());function dk(){if(nE)return nv;function e(e){return e?t[e.type](e):""}nE=1;var t={RegExp:function(t){return"/"+e(t.body)+"/"+t.flags},Alternative:function(t){return(t.expressions||[]).map(e).join("")},Disjunction:function(t){return e(t.left)+"|"+e(t.right)},Group:function(t){var r=e(t.expression);return t.capturing?t.name?"(?<"+(t.nameRaw||t.name)+">"+r+")":"("+r+")":"(?:"+r+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(t){switch(t.kind){case"^":case"$":case"\\b":case"\\B":return t.kind;case"Lookahead":var r=e(t.assertion);if(t.negative)return"(?!"+r+")";return"(?="+r+")";case"Lookbehind":var n=e(t.assertion);if(t.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+t.kind)}},CharacterClass:function(t){var r=t.expressions.map(e).join("");return t.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(t){return e(t.from)+"-"+e(t.to)},Repetition:function(t){return""+e(t.expression)+e(t.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){var t=e.negative?"P":"p",r=void 0;return"\\"+t+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};return nv={generate:e}}function dI(){if(nT)return nw;nT=1;var e=function(){if(nS)return nD;nS=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=void 0,n={},u=void 0,a=void 0;function i(e,t){return n.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var o=[[-1,1,function(e,t){a=i(t,t),u=e}],[0,4,function(e,t,r,n,o,s,d,l){a=i(o,l),u=_({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},k(o,l||d))}],[1,1,function(e,t){a=i(t,t),u=e}],[1,0,function(){a=null,u=""}],[2,1,function(e,t){a=i(t,t),u=e}],[2,2,function(e,t,r,n){a=i(r,n),u=e+t}],[3,1,function(e,t){a=i(t,t),u=e}],[4,1,function(e,t){a=i(t,t),u=e}],[4,3,function(e,t,r,n,o,s){a=i(n,s);var d=null;o&&(d=k(n||o,s||o)),u=_({type:"Disjunction",left:e,right:r},d)}],[5,1,function(e,t){if(a=i(t,t),0===e.length){u=null;return}u=1===e.length?_(e[0],a):_({type:"Alternative",expressions:e},a)}],[6,0,function(){a=null,u=[]}],[6,2,function(e,t,r,n){a=i(r,n),u=e.concat(t)}],[7,1,function(e,t){a=i(t,t),u=_(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=_({type:"Repetition",expression:e,quantifier:t},a))}],[8,1,function(e,t){a=i(t,t),u={kind:"^"}}],[8,1,function(e,t){a=i(t,t),u={kind:"$"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\b"}}],[8,1,function(e,t){a=i(t,t),u={kind:"\\B"}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,o,s){a=i(n,s),u={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[9,1,function(e,t){a=i(t,t),u=e}],[10,1,function(e,t){u=A(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=A(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=A(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=A(e,"unicode",a=i(t,t))}],[10,1,function(e,t){u=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&E.isGeneralCategoryValue(u),o=-1===n&&E.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!E.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!E.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return _({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:E.getCanonicalName(u)||u,canonicalValue:E.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){u=A(e,"control",a=i(t,t))}],[10,1,function(e,t){u=A(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=A(e,"oct",a=i(t,t))}],[10,1,function(e,t){var r,n,o;r=e,n=a=i(t,t),u=(o=Number(r.slice(1)))>0&&o<=y?_({type:"Backreference",kind:"number",number:o,reference:o},n):A(r,"decimal",n)}],[10,1,function(e,t){u=A(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=A(e,"meta",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),u=function(e,t){var r=e.slice(3,-1),n=F(r);if(h.hasOwnProperty(n))return _({type:"Backreference",kind:"name",number:h[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[A(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(C))||(c=e.match(D))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(A(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(A(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){a=i(t,t),u=e}],[11,0],[12,1,function(e,t){a=i(t,t),u=e}],[12,2,function(e,t,r,n){a=i(r,n),e.greedy=!1,u=e}],[13,1,function(e,t){u=_({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=_({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=_({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=x(e);u=_({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=_({type:"Quantifier",kind:"Range",from:x(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=x(e);u=_({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},a)}],[14,1,function(e,t){a=i(t,t),u=e}],[14,1,function(e,t){a=i(t,t),u=e}],[15,3,function(e,t,r,o,s,d){a=i(o,d);var l=String(e),c=F(l);if(!n.options.allowGroupNameDuplicates&&h.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');h[c]=e.groupNumber,u=_({type:"Group",capturing:!0,name:c,nameRaw:l,number:e.groupNumber,expression:t},a)}],[15,3,function(e,t,r,n,o,s){a=i(n,s),u=_({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=_({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=_({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=_({type:"CharacterClass",expressions:t},a=i(n,s))}],[18,0,function(){a=null,u=[]}],[18,1,function(e,t){a=i(t,t),u=e}],[19,1,function(e,t){a=i(t,t),u=[e]}],[19,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[19,4,function(e,t,r,n,o,s,d,l){a=i(o,l),v(e,r),u=[_({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[20,1,function(e,t){a=i(t,t),u=e}],[20,2,function(e,t,r,n){a=i(r,n),u=[e].concat(t)}],[20,4,function(e,t,r,n,o,s,d,l){a=i(o,l),v(e,r),u=[_({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=A(e,"simple",a=i(t,t))}],[21,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){a=i(t,t),u=e}],[22,1,function(e,t){u=A(e,"meta",a=i(t,t))}]],s={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},d=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],l=[],c=void 0,f=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\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\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\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\udf2d-\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-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\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\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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\udf2d-\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-\ude35\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\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\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\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\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[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return w(r.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===r);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+r);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\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\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\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\udf2d-\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-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\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\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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\udf2d-\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-\ude35\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\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\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\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\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[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\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\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\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]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return w(r=r.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],p={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},m={type:"$",value:""};c={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(m);for(var e=this._string.slice(this._cursor),n=p[this.getCurrentState()],u=0;u<n.length;u++){var a=f[n[u]],i=this._match(e,a[0]);if(""===e&&""===i&&this._cursor++,null!==i){(r=i).length;var o=a[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var s,d=o.slice(1);o=o[0],d.length>0&&(s=this._tokensQueue).unshift.apply(s,t(d))}return this.onToken(this._toToken(o,r))}}if(this.isEOF())return this._cursor++,m;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t+":")+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},n.lexer=c,n.tokenizer=c,n.options={captureLocations:!0};var g={setOptions:function(e){return n.options=e,this},getOptions:function(){return n.options},parse:function(e,i){if(!c)throw Error("Tokenizer instance wasn't specified.");c.initString(e);var f=n.options;i&&(n.options=Object.assign({},n.options,i)),g.onParseBegin(e,c,n.options),l.length=0,l.push(0);var p=c.getNextToken(),m=null;do{p||(n.options=f,P());var y=l[l.length-1],h=s[p.type];d[y].hasOwnProperty(h)||(n.options=f,I(p));var b=d[y][h];if("s"===b[0]){var x=null;n.options.captureLocations&&(x={startOffset:p.startOffset,endOffset:p.endOffset,startLine:p.startLine,endLine:p.endLine,startColumn:p.startColumn,endColumn:p.endColumn}),m=this.onShift(p),l.push({symbol:s[m.type],semanticValue:m.value,loc:x},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var v=o[b.slice(1)],E="function"==typeof v[2],A=E?[]:null,C=E&&n.options.captureLocations?[]:null;if(0!==v[1])for(var D=v[1];D-- >0;){l.pop();var S=l.pop();E&&(A.unshift(S.semanticValue),C&&C.unshift(S.loc))}var w={symbol:v[0]};if(E){r=m?m.value:null,m&&m.value.length;var T=null!==C?A.concat(C):A;v[2].apply(v,t(T)),w.semanticValue=u,C&&(w.loc=a)}var F=l[l.length-1],_=v[0];l.push(w,d[F][_])}else if("acc"===b){l.pop();var k=l.pop();if((1!==l.length||0!==l[0]||c.hasMoreTokens())&&(n.options=f,I(p)),k.hasOwnProperty("semanticValue"))return n.options=f,g.onParseEnd(k.semanticValue),k.semanticValue;return g.onParseEnd(),n.options=f,!0}}while(c.hasMoreTokens()||l.length>1)},setTokenizer:function(e){return c=e,g},getTokenizer:function(){return c},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},y=0,h={},b="";function x(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function v(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}g.onParseBegin=function(e,t){b=e,y=0,h={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},g.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++y),e};var E=function(){if(nC)return nA;nC=1;var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},t=s(e),r={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},n=s(r),u={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},a=s(u),i={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},o=s(i);function s(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function d(e){return u.hasOwnProperty(e)||a.hasOwnProperty(e)}function l(e){return i.hasOwnProperty(e)||o.hasOwnProperty(e)}return nA={isAlias:function(e){return t.hasOwnProperty(e)||n.hasOwnProperty(e)},isValidName:function(u){return e.hasOwnProperty(u)||t.hasOwnProperty(u)||r.hasOwnProperty(u)||n.hasOwnProperty(u)},isValidValue:function(e,t){var r,n;return"General_Category"===(r=e)||"gc"==r?d(t):("Script"===(n=e)||"Script_Extensions"===n||"sc"===n||"scx"===n)&&l(t)},isGeneralCategoryValue:d,isScriptCategoryValue:l,isBinaryPropertyName:function(e){return r.hasOwnProperty(e)||n.hasOwnProperty(e)},getCanonicalName:function(e){return t.hasOwnProperty(e)?t[e]:n.hasOwnProperty(e)?n[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:o.hasOwnProperty(e)?o[e]:n.hasOwnProperty(e)?n[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:e,NON_BINARY_ALIASES_TO_PROP_NAMES:t,BINARY_PROP_NAMES_TO_ALIASES:r,BINARY_ALIASES_TO_PROP_NAMES:n,GENERAL_CATEGORY_VALUE_TO_ALIASES:u,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:i,SCRIPT_VALUE_ALIASES_TO_VALUE:o}}();function A(t,r,n){var u=void 0,a=void 0;switch(r){case"decimal":u=String.fromCodePoint(a=Number(t.slice(1)));break;case"oct":u=String.fromCodePoint(a=parseInt(t.slice(1),8));break;case"hex":case"unicode":if(t.lastIndexOf("\\u")>0){var i=e(t.split("\\u").slice(1),2),o=i[0],s=i[1];u=String.fromCodePoint(a=((o=parseInt(o,16))-55296)*1024+((s=parseInt(s,16))-56320)+65536)}else{if((a=parseInt(t.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+t);u=String.fromCodePoint(a)}break;case"meta":switch(t){case"\\t":a=(u=" ").codePointAt(0);break;case"\\n":a=(u="\n").codePointAt(0);break;case"\\r":a=(u="\r").codePointAt(0);break;case"\\v":a=(u="\v").codePointAt(0);break;case"\\f":a=(u="\f").codePointAt(0);break;case"\\b":a=(u="\b").codePointAt(0);case"\\0":u="\0",a=0;case".":u=".",a=NaN;break;default:a=NaN}break;case"simple":a=(u=t).codePointAt(0)}return _({type:"Char",value:t,kind:r,symbol:u,codePoint:a},n)}var C=/^\\u[0-9a-fA-F]{4}/,D=/^\\u\{[0-9a-fA-F]{1,}\}/,S=/\\u\{[0-9a-fA-F]{1,}\}/;function w(e,t){if(S.test(e)&&"u"!==t&&"xu"!==t&&"u_class"!==t)throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var T=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function F(e){return e.replace(RegExp(T,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function _(e,t){return n.options.captureLocations&&(e.loc={source:b.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function k(e,t){return n.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function I(e){"$"===e.type&&P(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function P(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}return nD=g}(),t=e.parse.bind(e);return e.parse=function(e,r){return t(""+e,r)},e.setOptions({captureLocations:!1}),nw=e}function dP(){if(n_)return nF;n_=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t="expressions",r="expression",n=function(){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.node=e,this.parentPath=t,this.parent=t?t.node:null,this.property=r,this.index=u}return e(n,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(e){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=u?(a||(a=t),this._enforceProp(a),this.node[a][u]=e,i=n.getForNode(e,this,a,u)):(a||(a=r),this._enforceProp(a),this.node[a]=e,i=n.getForNode(e,this,a,null)),i}},{key:"appendChild",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;r||(r=t),this._enforceProp(r);var n=this.node[r].length;return this.setChild(e,n,r)}},{key:"insertChildAt",value:function(e,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this._enforceProp(u),this.node[u].splice(r,0,e),r<=n.getTraversingIndex()&&n.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{key:"remove",value:function(){if(!this.isRemoved()){if(n.registry.delete(this.node),this.node=null,this.parent){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=n.getTraversingIndex()&&n.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}}},{key:"_rebuildIndex",value:function(e,t){for(var r=n.getForNode(e),u=0;u<e[t].length;u++)n.getForNode(e[t][u],r,t,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(e){return(n.registry.delete(this.node),this.node=e,this.parent)?(null!==this.index?this.parent[this.property][this.index]=e:this.parent[this.property]=e,n.getForNode(e,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?n.getForNode(this.node.expressions[e],this,t,e):this.node.expression&&0==e?n.getForNode(this.node.expression,this,r):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,u)===JSON.stringify(e.node,u)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:u,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index-1],n.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?n.getForNode(this.parent[this.property][this.index+1],n.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!e)return null;n.registry.has(e)||n.registry.set(e,new n(e,t,r,-1==u?null:u));var a=n.registry.get(e);return null!==t&&(a.parentPath=t,a.parent=a.parentPath.node),null!==r&&(a.property=r),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){n.registry||(n.registry=new Map),n.registry.clear()}},{key:"updateTraversingIndex",value:function(e){return n.traversingIndexStack[n.traversingIndexStack.length-1]+=e}},{key:"getTraversingIndex",value:function(){return n.traversingIndexStack[n.traversingIndexStack.length-1]}}]),n}();function u(e,t){if("loc"!==e)return t}return n.initRegistry(),n.traversingIndexStack=[],nF=n}function dB(){if(nI)return nk;nI=1;var e=dP();return nk={traverse:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(t,r,n,u){var a=e.getForNode(r);return e.getForNode(t,a,n,u)}Array.isArray(r)||(r=[r]),r=r.filter(function(e){return"function"!=typeof e.shouldRun||e.shouldRun(t)}),e.initRegistry(),r.forEach(function(e){"function"==typeof e.init&&e.init(t)}),function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.pre,u=r.post,a=r.skipProperty;!function t(r,i,o,s){if(r&&"string"==typeof r.type){var d=void 0;if(n&&(d=n(r,i,o,s)),!1!==d){for(var l in i&&i[o]&&(r=isNaN(s)?i[o]:i[o][s]),r)if(r.hasOwnProperty(l)){if(a?a(l,r):"$"===l[0])continue;var c=r[l];if(Array.isArray(c)){var f=0;for(e.traversingIndexStack.push(f);f<c.length;)t(c[f],r,l,f),f=e.updateTraversingIndex(1);e.traversingIndexStack.pop()}else t(c,r,l)}}u&&u(r,i,o,s)}}(t,null)}(t,{pre:function(e,t,a,i){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,t,a,i)}var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g){if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,t,a,i){if(e){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,t,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})}}}function dj(){if(nB)return nP;nB=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=dk(),r=dI(),n=dB(),u=function(){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this._ast=e,this._source=null,this._string=null,this._regexp=null,this._extra=t}return e(r,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=t.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=t.generate(this._ast)),this._string}}]),r}();return nP={TransformResult:u,transform:function(e,t){var a=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(a=r.parse(e,{captureLocations:!0})),n.traverse(a,t),new u(a)}}}function dO(){return nG?nZ:(nG=1,nZ={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}})}function dR(){return up?uf:(up=1,uf={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function dL(){if(ug)return um;ug=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r=dR(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return um=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.in=e,this.out=t}return t(r,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)n!==u&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var t=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var r=new Set,a=new Set;(function n(u){if(!r.has(u)){r.add(u),u.number=r.size,t._transitionTable[u.number]={},u.accepting&&t._acceptingStates.add(u);var i=u.getTransitions(),o=!0,s=!1,d=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,p=e(f,2),m=p[0],g=p[1],y=[];a.add(m);var h=!0,b=!1,x=void 0;try{for(var v,E=g[Symbol.iterator]();!(h=(v=E.next()).done);h=!0){var A=v.value;n(A),y.push(A.number)}}catch(e){b=!0,x=e}finally{try{!h&&E.return&&E.return()}finally{if(b)throw x}}t._transitionTable[u.number][m]=y}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}}})(this.in),r.forEach(function(e){delete t._transitionTable[e.number][n],t._transitionTable[e.number][u]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(e.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),r}()}function dN(){if(uS)return uD;uS=1;var e=dL(),t=function(){if(uC)return uA;uC=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=function(){if(uE)return uv;uE=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return uv=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this._transitions=new Map,this.accepting=void 0!==r&&r}return e(t,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),t}()}(),r=dR().EPSILON;return uA=function(t){function n(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),e(n,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,u=!1,a=void 0;try{for(var i,o=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)if(i.value.matches("",t))return!0}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return!1}var s=e[0],d=e.slice(1),l=this.getTransitionsOnSymbol(s),c=!0,f=!1,p=void 0;try{for(var m,g=l[Symbol.iterator]();!(c=(m=g.next()).done);c=!0)if(m.value.matches(d))return!0}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}var y=!0,h=!1,b=void 0;try{for(var x,v=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(y=(x=v.next()).done);y=!0)if(x.value.matches(e,t))return!0}catch(e){h=!0,b=e}finally{try{!y&&v.return&&v.return()}finally{if(h)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(r),n=e._epsilonClosure=new Set;n.add(e);var u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;n.has(d)||(n.add(d),d.getEpsilonClosure().forEach(function(e){return n.add(e)}))}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}}(),this._epsilonClosure}}]),n}(t)}(),r=dR().EPSILON;function n(r){var n=new t,u=new t({accepting:!0});return new e(n.addTransition(r,u),u)}return uD={alt:function(t){for(var n=arguments.length,u=Array(n>1?n-1:0),a=1;a<n;a++)u[a-1]=arguments[a];var i=!0,o=!1,s=void 0;try{for(var d,l=u[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c,f=d.value;(c=t).out.accepting=!1,f.out.accepting=!0,c.out.addTransition(r,f.in),t=new e(c.in,f.out)}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return t},char:n,e:function(){return n(r)},or:function(n){for(var u=arguments.length,a=Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var o=!0,s=!1,d=void 0;try{for(var l,c=a[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;n=function(n,u){var a=new t,i=new t;return a.addTransition(r,n.in),a.addTransition(r,u.in),i.accepting=!0,n.out.accepting=!1,u.out.accepting=!1,n.out.addTransition(r,i),u.out.addTransition(r,i),new e(a,i)}(n,f)}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return n},rep:function(e){return e.in.addTransition(r,e.out),e.out.addTransition(r,e.in),e},repExplicit:function(n){var u=new t,a=new t({accepting:!0});return u.addTransition(r,n.in),u.addTransition(r,a),n.out.accepting=!1,n.out.addTransition(r,a),a.addTransition(r,n.in),new e(u,a)},plusRep:function(e){return e.out.addTransition(r,e.in),e},questionRep:function(e){return e.in.addTransition(r,e.out),e}}}var dM=iw(function(){if(uL)return uR;uL=1;let e=function(){if(nc)return nl;nc=1;let e=function(){if(no)return ni;no=1;var e=/[|\\{}()[\]^$+*?.]/g;return ni=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=nd?ns:(nd=1,ns=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]])),r=(e,t)=>!t||t.split("").every(t=>e.includes(t));return nl=(n,u)=>{if(u=u||"","string"!=typeof n)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof n}\``);if("string"!=typeof u)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof u}\``);for(let a of t){let t=a[0],i=a[1];r(u,i.flags)&&(n=n.replace(RegExp(e(t),"g"),i.value))}return n}}(),{optimize:t}=uO?uj:(uO=1,uj=function(){if(uB)return uP;uB=1;var e=function(){if(nO)return nj;nO=1;var e=nx?nb:(nx=1,nb={dotAll:np?nf:(np=1,nf={_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="￿";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}}),namedCapturingGroups:ng?nm:(ng=1,nm={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}}),xFlag:nh?ny:(nh=1,ny={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=dj();return nj={transform:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=n.length>0?n:Object.keys(e),a=void 0,i={};return u.forEach(function(n){if(!e.hasOwnProperty(n))throw Error("Unknown compat-transform: "+n+". Available transforms are: "+Object.keys(e).join(", "));var u=e[n];r=(a=t.transform(r,u)).getAST(),"function"==typeof u.getExtra&&(i[n]=u.getExtra())}),a.setExtra(i),a}}}(),t=dk(),r=function(){if(uc)return ul;uc=1;var e=nL?nR:(nL=1,nR=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r}),t=dI(),r=dj(),n=ud?us:(ud=1,us=new Map([["charSurrogatePairToSingleUnicode",nM?nN:(nM=1,nN={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;!("unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint))&&(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}})],["charCodeToSimpleChar",nU?n$:(nU=1,n$={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(u=(n=r).from,a=n.to,u.codePoint>=48&&u.codePoint<=57&&a.codePoint>=48&&a.codePoint<=57||u.codePoint>=65&&u.codePoint<=90&&a.codePoint>=65&&a.codePoint<=90||u.codePoint>=97&&u.codePoint<=122&&a.codePoint>=97&&a.codePoint<=122))&&(i=t.codePoint)>=32&&i<=126){var n,u,a,i,o,s,d=String.fromCodePoint(t.codePoint),l={type:"Char",kind:"simple",value:d,symbol:d,codePoint:t.codePoint};o=d,("ClassRange"===(s=r.type)||"CharacterClass"===s?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(l.escaped=!0),e.replace(l)}}})],["charCaseInsensitiveLowerCaseTransform",nW?nz:(nW=1,nz={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n,u=e.node,a=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===a.type){if(!this._AZClassRanges.has(a)&&(r=(t=a).from,n=t.to,!(r.codePoint>=65)||!(r.codePoint<=90)||!(n.codePoint>=65)||!(n.codePoint<=90)))return;this._AZClassRanges.add(a)}var i=u.symbol.toLowerCase();i!==u.symbol&&(u.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n,u={lead:(Math.floor(((n=r)-65536)/1024)+55296).toString(16),trail:((n-65536)%1024+56320).toString(16)},a=u.lead,i=u.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-i.length)+i}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var o=r.toString(16);return"\\u"+"0".repeat(4-o.length)+o}return e}(i,u),u.symbol=i,u.codePoint=i.codePointAt(0))}}})],["charClassRemoveDuplicates",nV?nq:(nV=1,nq={CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}})],["quantifiersMerge",function(){if(nH)return nK;nH=1;var e=dO().increaseQuantifierByOne;function t(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function r(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}return nK={Repetition:function(n){var u=n.node;if("Alternative"===n.parent.type&&n.index){var a=n.getPreviousSibling();if(a){if("Repetition"===a.node.type){if(!a.getChild().hasEqualSource(n.getChild()))return;var i=r(a.node.quantifier),o=i.from,s=i.to,d=r(u.quantifier),l=d.from,c=d.to;if(a.node.quantifier.greedy!==u.quantifier.greedy&&!t(a.node.quantifier)&&!t(u.quantifier))return;u.quantifier.kind="Range",u.quantifier.from=o+l,s&&c?u.quantifier.to=s+c:delete u.quantifier.to,(t(a.node.quantifier)||t(u.quantifier))&&(u.quantifier.greedy=!0),a.remove()}else{if(!a.hasEqualSource(n.getChild()))return;e(u.quantifier),a.remove()}}}}}}()],["quantifierRangeToSymbol",nX?nJ:(nX=1,nJ={Quantifier:function(e){if("Range"===e.node.kind){var t,r,n,u;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(u=(n=e).node).from&&1===u.to&&n.parentPath.replace(n.parentPath.node.expression)}}})],["charClassClassrangesToChars",nQ?nY:(nQ=1,nY={ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}})],["charClassToMeta",function(){if(n1)return n0;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}n1=1,n0={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var r,a,i,o,s,d,l,c,f,p;(function(e){e.node.expressions.forEach(function(t,r){var n;"ClassRange"===(n=t).type&&"0"===n.from.value&&"9"===n.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),r=e,a=this._hasIFlag,i=this._hasUFlag,o=r.node,s=null,d=null,l=null,c=null,f=null,p=null,o.expressions.forEach(function(e,t){var o,m,g;n(e,"\\d")?s=r.getChild(t):"ClassRange"===(o=e).type&&"a"===o.from.value&&"z"===o.to.value?d=r.getChild(t):"ClassRange"===(m=e).type&&"A"===m.from.value&&"Z"===m.to.value?l=r.getChild(t):"Char"===(g=e).type&&"_"===g.value&&"simple"===g.kind?c=r.getChild(t):a&&i&&u(e,383)?f=r.getChild(t):a&&i&&u(e,8490)&&(p=r.getChild(t))}),s&&(d&&l||a&&(d||l))&&c&&(!i||!a||f&&p)&&(s.replace({type:"Char",value:"\\w",kind:"meta"}),d&&d.remove(),l&&l.remove(),c.remove(),f&&f.remove(),p&&p.remove()),function(e){var r=e.node;if(!(r.expressions.length<t.length)&&t.every(function(e){return r.expressions.some(function(t){return e(t)})})){var u=r.expressions.find(function(e){return n(e,"\\n")});u.value="\\s",u.symbol=void 0,u.codePoint=NaN,r.expressions.map(function(r,n){return t.some(function(e){return e(r)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}};var t=[function(e){return r(e," ")}].concat(e(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return n(t,e)}})),e([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return u(t,e)}})),[function(e){return"ClassRange"===e.type&&u(e.from,8192)&&u(e.to,8202)}]);function r(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function n(e,t){return r(e,t,"meta")}function u(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}return n0}()],["charClassToSingleChar",n3?n2:(n3=1,n2={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}})],["charEscapeUnescape",function(){if(n5)return n4;function e(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function t(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}return n5=1,n4={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(r){var n,u,a,i,o,s,d,l,c,f,p,m,g=r.node;if(g.escaped){n=r,u=this._hasXFlag,a=n.node.value,i=n.index,("CharacterClass"!==(o=n.parent).type&&"ClassRange"!==o.type?(s=a,d=i,l=o,c=u,"{"===s?function(r,n){if(null==r)return!1;var u=e(r+1,n),a=r+u+1,i=a<n.expressions.length&&n.expressions[a];if(u){if(t(i,"}"))return!0;if(t(i,","))return u=e(a+1,n),t(i=(a=a+u+1)<n.expressions.length&&n.expressions[a],"}")}return!1}(d,l):"}"===s?function(r,n){if(null==r)return!1;var u=e(r-1,n,!0),a=r-u-1,i=a>=0&&n.expressions[a];return!!(u&&t(i,"{"))||!!t(i,",")&&(u=e(a-1,n,!0),i=(a=a-u-1)<n.expressions.length&&n.expressions[a],u&&t(i,"{"))}(d,l):!!(c&&/[ #]/.test(s))||/[*[()+?^$./\\|]/.test(s)):(f=a,p=i,m=o,"^"===f?0===p&&!m.negative:"-"===f||/[\]\\]/.test(f)))||delete g.escaped}}}}()],["charClassClassrangesMerge",function(){if(n6)return n8;function e(e,u){var a=t(e),i=t(u);if(a===i){if("ClassRange"===e.type&&"ClassRange"!==u.type)return -1;if("ClassRange"===u.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===u.type)return t(e.to)-t(u.to);if(r(e)&&r(u)||n(e)&&n(u))return e.value<u.value?-1:1}return a-i}function t(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function n(e){return"Char"===e.type&&"control"===e.kind}function u(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function a(e){return e.codePoint>=48&&e.codePoint<=57}function i(e,t){return a(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function o(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(i(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}return n6=1,n8={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(t){var n=t.node.expressions,s=[];n.forEach(function(e){r(e)&&s.push(e.value)}),n.sort(e);for(var d=0;d<n.length;d++){var l,c,f=n[d];if(function(e,t,n){for(var o=0;o<t.length;o++)if(function e(t,n,o){return"ClassRange"===t.type?e(t.from,n,o)&&e(t.to,n,o):!!("\\S"===n&&(r(t,"\\w")||r(t,"\\d"))||"\\D"===n&&(r(t,"\\W")||r(t,"\\s"))||"\\w"===n&&r(t,"\\d")||"\\W"===n&&r(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===n?u(t):"\\S"===n?!u(t):"\\d"===n?a(t):"\\D"===n?!a(t):"\\w"===n?i(t,o):"\\W"===n&&!i(t,o))}(e,t[o],n))return!0;return!1}(f,s,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(o(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(f,n[d-1])||(l=f,(c=n[d+1])&&"ClassRange"===c.type&&o(l)&&c.from.codePoint===l.codePoint+1&&(c.from=l,1)))n.splice(d,1),d--;else{var p=function(e,t,r){if(!o(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(o(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(f,d,n);n.splice(d-p+1,p),d-=p}}}}}()],["disjunctionRemoveDuplicates",function(){if(n7)return n9;n7=1;var e=dP(),t=dO(),r=t.disjunctionToList,n=t.listToDisjunction;return n9={Disjunction:function(t){var u=t.node,a={},i=r(u).filter(function(t){var r=t?e.getForNode(t).jsonEncode():"null";return!a.hasOwnProperty(r)&&(a[r]=t,!0)});t.replace(n(i))}}}()],["groupSingleCharsToCharClass",function(){if(ut)return ue;ut=1;var e={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};return ue={Disjunction:function(t){var r=t.node,n=t.parent;if(e[n.type]){var u=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(r,u)&&u.size){var a={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};e[n.type](t.getParent(),a)}}}}}()],["removeEmptyGroup",un?ur:(un=1,ur={Group:function(e){var t=e.node,r=e.parent,n=e.getChild();!t.capturing&&!n&&("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}})],["ungroup",function(){if(ua)return uu;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return ua=1,uu={Group:function(t){var r=t.node,n=t.parent,u=t.getChild();if(!r.capturing&&u&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(t)&&("Disjunction"!==u.node.type||"RegExp"===n.type)&&("Repetition"!==n.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var a=t.getParent();"Alternative"===a.node.type&&a.replace({type:"Alternative",expressions:[].concat(e(n.expressions.slice(0,t.index)),e(u.node.expressions),e(n.expressions.slice(t.index+1)))})}else t.replace(u.node)}}}}()],["combineRepeatingPatterns",function(){if(uo)return ui;function e(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}uo=1;var t=dP(),r=dO().increaseQuantifierByOne;return ui={Alternative:function(n){for(var u=n.node,a=1;a<u.expressions.length;){var i=n.getChild(a);if((a=Math.max(1,function(r,n,u){for(var a=r.node,i=Math.ceil(u/2),o=0;o<i;){var s=u-2*o-1,d=void 0,l=void 0;if(0===o?(d=n,l=r.getChild(s)):(d=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(u-o,u)),[n.node])}),l=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(s,u-o)))})),d.hasEqualSource(l)){for(var c=0;c<2*o+1;c++)r.getChild(s).remove();return n.replace({type:"Repetition",expression:0===o&&"Repetition"!==d.node.type?d.node:{type:"Group",capturing:!1,expression:d.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),s}o++}return u}(n,i,a)))>=u.expressions.length||(i=n.getChild(a),(a=Math.max(1,function(n,u,a){for(var i=n.node,o=0;o<a;){var s=n.getChild(o);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var d=s.getChild(),l=void 0;if("Group"!==d.node.type||d.node.capturing||(d=d.getChild()),o+1===a?"Group"!==(l=u).node.type||l.node.capturing||(l=l.getChild()):l=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(o+1,a+1)))}),d.hasEqualSource(l)){for(var c=o;c<a;c++)n.getChild(o+1).remove();return r(s.node.quantifier),o}}o++}return a}(n,i,a)))>=u.expressions.length))break;i=n.getChild(a),a=Math.max(1,function(n,u,a){var i=n.node;if("Repetition"===u.node.type&&u.node.quantifier.greedy){var o=u.getChild(),s=void 0;"Group"!==o.node.type||o.node.capturing||(o=o.getChild());var d=void 0;if("Alternative"===o.node.type?(d=o.node.expressions.length,s=t.getForNode({type:"Alternative",expressions:[].concat(e(i.expressions.slice(a-d,a)))})):(d=1,"Group"!==(s=n.getChild(a-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(o)){for(var l=a-d;l<a;l++)n.getChild(a-d).remove();return r(u.node.quantifier),a-d}}return a}(n,i,a)),a++}}}}()]]));return ul={optimize:function(u){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.whitelist,o=void 0===i?[]:i,s=a.blacklist,d=void 0===s?[]:s,l=(o.length>0?o:Array.from(n.keys())).filter(function(e){return!d.includes(e)}),c=u;u instanceof RegExp&&(u=""+u),"string"==typeof u&&(c=t.parse(u));var f=new r.TransformResult(c),p=void 0;do p=f.toString(),c=e(f.getAST()),l.forEach(function(t){if(!n.has(t))throw Error("Unknown optimization-transform: "+t+". Available transforms are: "+Array.from(n.keys()).join(", "));var u=n.get(t),a=r.transform(c,u);a.toString()!==f.toString()&&(a.toString().length<=f.toString().length?f=a:c=e(f.getAST()))});while(f.toString()!==p);return f}}}(),n=dI(),u=dj(),a=dB(),i=function(){if(u_)return uF;u_=1;var e=dL(),t=function(){if(ux)return ub;ux=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=function(){if(uh)return uy;uh=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var r=null;return uy={minimize:function(n){var u=n.getTransitionTable(),a=Object.keys(u),i=n.getAlphabet(),o=n.getAcceptingStateNumbers();r={};var s=new Set;a.forEach(function(e){e=Number(e),o.has(e)?r[e]=o:(s.add(e),r[e]=s)});var d=[[s,o].filter(function(e){return e.size>0})],l=void 0,c=void 0;for(l=d[d.length-1],c=d[d.length-2];!function(e,r){if(!r||e.length!==r.length)return!1;for(var n=0;n<e.length;n++){var u=e[n],a=r[n];if(u.size!==a.size||[].concat(t(u)).sort().join(",")!==[].concat(t(a)).sort().join(","))return!1}return!0}(l,c);)!function(){var e={},n=!0,a=!1,o=void 0;try{for(var s,f=l[Symbol.iterator]();!(n=(s=f.next()).done);n=!0){var p=s.value,m={},g=Array.isArray(p)?p:Array.from(p),y=g[0],h=g.slice(1);m[y]=new Set([y]);var b=!0,x=!1,v=void 0;try{e:for(var E,A=h[Symbol.iterator]();!(b=(E=A.next()).done);b=!0){var C=E.value,D=!0,S=!1,w=void 0;try{for(var T,F=Object.keys(m)[Symbol.iterator]();!(D=(T=F.next()).done);D=!0){var _=T.value;if(function(e,t,n,u){var a=!0,i=!1,o=void 0;try{for(var s,d=u[Symbol.iterator]();!(a=(s=d.next()).done);a=!0){var l=s.value;if(!function(e,t,n,u){if(!r[e]||!r[t])return!1;var a=n[e][u],i=n[t][u];return!a&&!i||r[e].has(a)&&r[t].has(i)}(e,t,n,l))return!1}}catch(e){i=!0,o=e}finally{try{!a&&d.return&&d.return()}finally{if(i)throw o}}return!0}(C,_,u,i)){m[_].add(C),m[C]=m[_];continue e}}}catch(e){S=!0,w=e}finally{try{!D&&F.return&&F.return()}finally{if(S)throw w}}m[C]=new Set([C])}}catch(e){x=!0,v=e}finally{try{!b&&A.return&&A.return()}finally{if(x)throw v}}Object.assign(e,m)}}catch(e){a=!0,o=e}finally{try{!n&&f.return&&f.return()}finally{if(a)throw o}}r=e;var k=new Set(Object.keys(e).map(function(t){return e[t]}));d.push([].concat(t(k))),l=d[d.length-1],c=d[d.length-2]}();var f=new Map,p=1;l.forEach(function(e){return f.set(e,p++)});var m={},g=new Set,y=!0,h=!1,b=void 0;try{for(var x,v=f.entries()[Symbol.iterator]();!(y=(x=v.next()).done);y=!0){var E=x.value,A=e(E,2),C=A[0],D=A[1];m[D]={};var S=!0,w=!1,T=void 0;try{for(var F,_=i[Symbol.iterator]();!(S=(F=_.next()).done);S=!0){var k=F.value;!function(e,t){var r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;o.has(s)&&g.add(t)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(C,D);var I=void 0,P=!0,B=!1,j=void 0;try{for(var O,R=C[Symbol.iterator]();!(P=(O=R.next()).done)&&!(I=u[O.value][k]);P=!0);}catch(e){B=!0,j=e}finally{try{!P&&R.return&&R.return()}finally{if(B)throw j}}I&&(m[D][k]=f.get(r[I]))}}catch(e){w=!0,T=e}finally{try{!S&&_.return&&_.return()}finally{if(w)throw T}}}}catch(e){h=!0,b=e}finally{try{!y&&v.return&&v.return()}finally{if(h)throw b}}return n.setTransitionTable(m),n.setAcceptingStateNumbers(g),n}}}(),n=dR().EPSILON_CLOSURE;return ub=function(){function u(e){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,u),this._nfa=e}return e(u,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,r.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var r=this._nfa.getTransitionTable(),u=Object.keys(r);this._acceptingStateNumbers=new Set;for(var a=[r[u[0]][n]],i=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),s={};a.length>0;){var d=a.shift(),l=d.join(",");s[l]={};var c=!0,f=!1,p=void 0;try{for(var m,g=i[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var y=m.value,h=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var a,i=o[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(d);var b=!0,x=!1,v=void 0;try{for(var E,A=d[Symbol.iterator]();!(b=(E=A.next()).done);b=!0){var C=r[E.value][y];if(C){var D=!0,S=!1,w=void 0;try{for(var T,F=C[Symbol.iterator]();!(D=(T=F.next()).done);D=!0){var _=T.value;r[_]&&h.push.apply(h,t(r[_][n]))}}catch(e){S=!0,w=e}finally{try{!D&&F.return&&F.return()}finally{if(S)throw w}}}}}catch(e){x=!0,v=e}finally{try{!b&&A.return&&A.return()}finally{if(x)throw v}}var k=new Set(h),I=[].concat(t(k));if(I.length>0){var P=I.join(",");s[l][y]=P,s.hasOwnProperty(P)||a.unshift(I)}}}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),u}()}(),r=function(){if(uT)return uw;uT=1;var e=dI(),t=dN(),r=t.alt,n=t.char,u=t.or,a=t.rep,i=t.plusRep,o=t.questionRep;function s(e){if(e&&!d[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d[e.type](e):""}var d={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return s(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(s);return r.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return u(s(e.left),s(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return a(s(e.expression));case"+":return i(s(e.expression));case"?":return o(s(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return n(e.value)},Group:function(e){return s(e.expression)}};return uw={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return uF={NFA:e,DFA:t,builders:dN(),toNFA:function(e){return r.build(e)},toDFA:function(e){return new t(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}}}(),o=function(){if(uI)return uk;uI=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return uk={RegExpTree:function(){function t(e,r){var n=r.flags,u=r.groups,a=r.source;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this._re=e,this._groups=u,this.flags=n,this.source=a||e.source,this.dotAll=n.includes("s"),this.global=e.global,this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,this.sticky=e.sticky,this.unicode=e.unicode}return e(t,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),t}()}}().RegExpTree;return uP={parser:n,fa:i,TransformResult:u.TransformResult,parse:function(e,t){return n.parse(""+e,t)},traverse:function(e,t,r){return a.traverse(e,t,r)},transform:function(e,t){return u.transform(e,t)},generate:function(e){return t.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=n.blacklist;return r.optimize(e,{whitelist:t,blacklist:u})},compatTranspile:function(t,r){return e.transform(t,r)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new o(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}}}()),r=sj(),{isStringLiteral:n,isNewExpression:u,isRegexLiteral:a}=sS(),i="better-regex",o="better-regex/parse-error";return uR={create:s=>{let{sortCharacterClasses:d}=s.options[0]||{},l=[];return!1===d&&l.push("charClassClassrangesMerge"),{Literal(e){if(!a(e))return;let{raw:r,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=r;try{u=t(r,void 0,{blacklist:l}).toString()}catch(t){return{node:e,messageId:o,data:{original:r,error:t.message}}}if(r===u)return;let s={node:e,messageId:i,data:{original:r,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(s,{fix:t=>t.replaceText(e,u)}):s},NewExpression(t){if(!u(t,{name:"RegExp",minimumArguments:1}))return;let[a,o]=t.arguments;if(!n(a))return;let s=a.value,d=e(s,n(o)?o.value:"");if(s!==d)return{node:t,messageId:i,data:{original:s,optimized:d},fix:e=>e.replaceText(a,r(d,a.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!1},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[i]:"{{original}} can be optimized to {{optimized}}.",[o]:"Problem parsing {{original}}: {{error}}"}}}}()),d$=iw(function(){if(uM)return uN;uM=1;let{replaceTemplateElement:e}=s5(),{isRegexLiteral:t,isStringLiteral:r,isTaggedTemplateLiteral:n}=sS(),u="escape-case",a=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,i=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,o=({node:e,original:t,regex:r=a,fix:n})=>{let i=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(i!==t)return{node:e,messageId:u,fix:t=>n?n(t,i):t.replaceText(e,i)}};return uN={create:u=>{u.on("Literal",e=>{if(r(e))return o({node:e,original:e.raw})}),u.on("Literal",e=>{if(t(e))return o({node:e,original:e.raw,regex:i})}),u.on("TemplateElement",t=>{if(!n(t.parent,["String.raw"]))return o({node:t,original:t.value.raw,fix:(r,n)=>e(r,t,n)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[u]:"Use uppercase characters for the value of the escape sequence."}}}}()),dU=iw(function(){if(uU)return u$;uU=1;let{replaceTemplateElement:e}=s5(),{isStringLiteral:t,isRegexLiteral:r,isTaggedTemplateLiteral:n}=sS(),u="no-hex-escape";function a(t,r,n){let a=n.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(n!==a)return{node:r,messageId:u,fix:t=>"TemplateElement"===r.type?e(t,r,a):t.replaceText(r,a)}}return u$={create:e=>({Literal(n){if(t(n)||r(n))return a(e,n,n.raw)},TemplateElement(t){if(!n(t.parent,["String.raw"]))return a(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[u]:"Use Unicode escapes instead of hexadecimal escapes."}}}}()),dz=iw(function(){if(uW)return uz;uW=1;let{getPropertyName:e,ReferenceTracker:t}=sy,{fixSpaceAroundKeyword:r}=s5(),{isMemberExpression:n,isMethodCall:u}=sS(),a=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];return uz={create:function(i){let{sourceCode:o}=i,s=[];i.on("CallExpression",e=>{s.push(e)}),i.on("Program:exit",function*(i){let d=new WeakMap;for(let{node:e,path:r}of new t(o.getScope(i)).iterateGlobalReferences(Object.fromEntries(a.map(e=>[e,{[t.READ]:!0}]))))d.set(e,r);for(let t of s)yield function(t,{sourceCode:a,globalReferences:i}){let o;u(t,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?o=t.arguments[0]:u(t,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(o=t.callee.object);let{isGlobalReference:s,constructorName:d,methodName:l}=function(t,{sourceCode:r,globalReferences:u}){if(!t)return;if(u.has(t))return{isGlobalReference:!0,constructorName:"Object",methodName:u.get(t).at(-1)};if(!n(t,{optional:!1}))return;let a=t.object;if("ArrayExpression"===a.type&&0===a.elements.length||"ObjectExpression"===a.type&&0===a.properties.length)return{constructorName:"ArrayExpression"===a.type?"Array":"Object",methodName:e(t,r.getScope(t))}}(o,{sourceCode:a,globalReferences:i})??{};if(d)return{node:o,messageId:l?"known-method":"unknown-method",data:{constructorName:d,methodName:l},*fix(e){if(s){yield e.replaceText(o,`${d}.prototype.${l}`);return}if(n(o)){let n=o.object;yield e.replaceText(n,`${d}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*r(e,t,a))}}}}(t,{sourceCode:o,globalReferences:d})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}}}()),dW=iw(function(){if(uV)return uq;uV=1;let{getStaticValue:e}=sy,t=s$(),{isCallOrNewExpression:r}=sS(),n="missing-message",u="message-is-empty-string",a="message-is-not-a-string",i=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];return uq={create:o=>{o.on(["CallExpression","NewExpression"],s=>{if(!r(s,{names:i,optional:!1}))return;let d=o.sourceCode.getScope(s);if(t(d,s.callee))return;let l=s.callee.name,c=+("AggregateError"===l),f=s.arguments;if(f.some((e,t)=>t<=c&&"SpreadElement"===e.type))return;let p=f[c];if(!p)return{node:s,messageId:n,data:{constructorName:l}};if("ArrayExpression"===p.type||"ObjectExpression"===p.type)return{node:p,messageId:a};let m=e(p,d);if(!m)return;let{value:g}=m;return"string"!=typeof g?{node:p,messageId:a}:""===g?{node:p,messageId:u}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[n]:"Pass a message to the `{{constructorName}}` constructor.",[u]:"Error message should not be an empty string.",[a]:"Error message should be a string."}}}}()),dq=iw(function(){if(uG)return uZ;uG=1;let{checkVueTemplate:e}=dx(),{getParenthesizedRange:t}=sb(),{replaceNodeOrTokenAndSpacesBefore:r,fixSpaceAroundKeyword:n}=s5(),u=e=>"instanceof"===e.value&&"Keyword"===e.type,a="no-instanceof-array";return uZ={create:e(e=>{let{sourceCode:i}=e;return{BinaryExpression(e){if("instanceof"!==e.operator||"Identifier"!==e.right.type||"Array"!==e.right.name)return;let{left:o,right:s}=e,d=i,l=d.getTokenAfter(o,u);return!l&&i.parserServices.getTemplateBodyTokenStore&&(l=(d=i.parserServices.getTemplateBodyTokenStore()).getTokenAfter(o,u)),{node:l,messageId:a,*fix(u){yield*n(u,e,i);let a=t(o,d);yield u.insertTextBeforeRange(a,"Array.isArray("),yield u.insertTextAfterRange(a,")"),yield*r(l,"",u,i,d),yield*r(s,"",u,i,d)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[a]:"Use `Array.isArray()` instead of `instanceof Array`."}}}}()),dV=iw(function(){if(uH)return uK;uH=1;let{isNewExpression:e}=sS(),t="prefer-type-error",r=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),n=new Set(["isNaN","isFinite"]),u=(e,t,u)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===u&&r.has(e.name)||!1===u&&n.has(e.name)),a=e=>e.parent&&e.parent.body&&1===e.parent.body.length,i=(e,t)=>!!u(e.property,t,!0)||"MemberExpression"===e.object.type&&i(e.object,t),o=(e,t)=>{switch(e.type){case"Identifier":return u(e,t,!1);case"MemberExpression":return i(e,t);case"CallExpression":return o(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&o(e.argument);case"BinaryExpression":return"instanceof"===e.operator||o(e.left,t)||o(e.right,t);case"LogicalExpression":return o(e.left,t)&&o(e.right,t);default:return!1}},s=e=>"IfStatement"===e.type&&o(e.test);return uK={create:()=>({ThrowStatement(r){if(e(r.argument,{name:"Error"})&&a(r)&&r.parent.parent&&s(r.parent.parent)){let e=r.argument.callee;return{node:e,messageId:t,fix:t=>t.insertTextBefore(e,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[t]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}}}()),dZ=iw(function(){if(uX)return uJ;uX=1;let e=sB(),t=sL(),{isCallOrNewExpression:r}=sS(),n="consistentDestructuring",u="consistentDestructuringSuggest",a=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},i=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};return uJ={create:o=>{let{sourceCode:s}=o,d=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&a(e.init)&&d.set(s.getText(e.init),{scope:s.getScope(e),variables:s.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(a){if(a.computed||r(a.parent)&&a.parent.callee===a||t(a))return;let o=d.get(s.getText(a.object));if(!o)return;let{scope:l,objectPattern:c}=o,f=s.getScope(a);if(!i(f,l))return;let p=c.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),m=c.properties.at(-1),g=m&&"RestElement"===m.type,y=s.getText(a),h=s.getText(a.property),b=p.find(e=>e.key.name===h);if(!b&&(g||e(h,[f])!==h))return;if("MemberExpression"===a.parent.type)return{node:a,messageId:n};let x=b?b.value.name:h;return{node:a,messageId:n,suggest:[{messageId:u,data:{expression:y,property:x},*fix(e){let{properties:t}=c,r=t.at(-1);yield e.replaceText(a,x),b||(yield r?e.insertTextAfter(r,`, ${x}`):e.replaceText(c,`{${x}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[n]:"Use destructured variables over properties.",[u]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}}());function dG(){return uQ?uY:(uQ=1,uY=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"])}var dK=iw(function(){if(u3)return u2;u3=1;let{GlobalReferenceTracker:e}=dl(),t=u1?u0:(u1=1,u0={enforceNew:["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...dG()],disallowNew:["BigInt","Boolean","Number","String","Symbol"]}),{switchCallExpressionToNewExpression:r,switchNewExpressionToCallExpression:n}=s5();return u2={create:u=>{let{sourceCode:a}=u,i=new e({objects:t.disallowNew,type:e.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=function*(t){yield*n(e,r,t)}),u})(e,a)}),o=new e({objects:t.enforceNew,type:e.CALL,handle:e=>(function({node:e,path:[t]},n){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>r(e,n,t)}})(e,a)});return{*"Program:exit"(e){let t=a.getScope(e);yield*i.track(t),yield*o.track(t)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}}}()),dH=iw(function(){if(u6)return u8;u6=1;let{hasSideEffect:e,isSemicolonToken:t}=sy,{getCallExpressionTokens:r,getCallExpressionArgumentsText:n}=sK(),u=sM(),{isNodeMatches:a}=sD(),i=u5?u4:(u5=1,u4=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}}),{isMethodCall:o}=sS(),s="error",d="suggestion",l=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&o(e,{method:"push",optionalCall:!1,optionalMember:!1});return u8={create:function(o){let{ignore:c}={ignore:[],...o.options[0]},f=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...c],{sourceCode:p}=o;return{CallExpression(o){if(!l(o))return;let c=o.callee.object;if(a(c,f))return;let m=function(e,t){let r=i(e.parent,t)?.expression;if(l(r))return r}(o,p);if(!m||!u(m.callee.object,c))return;let g=o.arguments,y={node:o.callee.property,messageId:s},h=function*(e){if(g.length>0){let t=n(p,o),{trailingCommaToken:u,closingParenthesisToken:a}=r(p,m);yield u?e.insertTextAfter(u,` ${t}`):e.insertTextBefore(a,m.arguments.length>0?`, ${t}`:t)}let u=m.parent,a=o.parent,i=!t(p.getLastToken(u))&&t(p.getLastToken(a));yield e.replaceTextRange([u.range[1],a.range[1]],i?";":"")};return g.some(t=>e(t,p))?y.suggest=[{messageId:d,fix:h}]:y.fix=h,y}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[s]:"Do not call `Array#push()` multiple times.",[d]:"Merge with previous one."}}}}()),dJ=iw(function(){if(u7)return u9;u7=1;let{isStaticRequire:e,isMethodCall:t,isLiteral:r}=sS(),n="no-process-exit",u=e=>r(e,"node:worker_threads")||r(e,"worker_threads");return u9={create:r=>{let a;if(0===r.sourceCode.lines[0].indexOf("#!"))return{};let i=!1,o=[];r.on("CallExpression",t=>{e(t)&&u(t.arguments[0])&&(i=!0)}),r.on("ImportDeclaration",e=>{"Literal"===e.source.type&&u(e.source)&&(i=!0)}),r.on("CallExpression",e=>{t(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(a=e)}),r.onExit("CallExpression",e=>{e===a&&(a=void 0)}),r.on("CallExpression",e=>{!a&&t(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&o.push(e)}),r.onExit("Program",function*(){if(!i)for(let e of o)yield{node:e,messageId:n}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[n]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}}()),dX=iw(function(){if(at)return ae;at=1;let{isCommaToken:e}=sy,{isMethodCall:t,isExpressionStatement:r}=sS(),{getParenthesizedText:n,isParenthesized:u,needsSemicolon:a,shouldAddParenthesesToAwaitExpressionArgument:i}=sK(),o="no-single-promise-in-promise-methods/error",s="no-single-promise-in-promise-methods/unwrap",d="no-single-promise-in-promise-methods/use-promise-resolve",l=["all","any","race"],c=e=>t(e,{object:"Promise",methods:l,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,f=(e,t)=>r=>{let[a]=e.arguments[0].elements,o=n(a,t);return!u(a,t)&&i(a)&&(o=`(${o})`),r.replaceText(e,o)},p=(e,t)=>r=>{let[i]=e.arguments[0].elements,o=n(i,t);return u(i,t)||"Identifier"===i.type||"MemberExpression"===i.type||(o=`(${o})`),a(t.getTokenBefore(e),t,o)&&(o=`;${o}`),r.replaceText(e,o)},m=(t,r)=>function*(n){let u=t.callee.property;yield n.replaceText(u,"resolve");let[a]=t.arguments,i=r.getFirstToken(a),[o,s]=r.getLastTokens(a,2);yield n.remove(i),yield n.remove(s),e(o)&&(yield n.remove(o))};return ae={create:e=>({CallExpression(t){if(!c(t))return;let n=t.callee.property.name,u={node:t.arguments[0],messageId:o,data:{method:n}},{sourceCode:a}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==n||r(t.parent.parent))?u.fix=f(t,a):"all"===n||(u.suggest=[{messageId:s,fix:p(t,a)},{messageId:d,fix:m(t,a)}]),u}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[o]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[s]:"Use the value directly.",[d]:"Switch to `Promise.resolve(…)`."}}}}());function dY(){return aa?au:(aa=1,au=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
4
+ Please open an issue at ${i}.`)})}var dQ=iw(function(){if(ao)return ai;ao=1;let{isSemicolonToken:e}=sy,t=an?ar:(an=1,ar=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}}),r=dY(),{removeSpacesAfter:n}=s5(),u="no-static-only-class",a=({type:e,value:t})=>"Punctuator"===e&&"="===t,i=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,o=e=>"PropertyDefinition"===e.type,s=e=>"MethodDefinition"===e.type;return ai={create:function(d){d.on(["ClassDeclaration","ClassExpression"],l=>{if(l.superClass||l.decorators&&l.decorators.length>0||"ClassBody"!==l.body.type||0===l.body.body.length||l.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:d}=e;return!(!o(e)&&!s(e)||!r||t||"PrivateIdentifier"===d.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:c}=d;return{node:l,loc:t(l,c),messageId:u,fix:function(t,u){let{type:s,id:d,body:l,declare:c,abstract:f,implements:p,parent:m}=t;if(c||f||Array.isArray(p)&&p.length>0||"ClassExpression"===s&&d)return;let g=i(t);if(!g||!d){for(let e of l.body)if(o(e)&&(e.typeAnnotation||e.value&&u.getText(e.value).includes("this")))return;return function*(i){let d=u.getFirstToken(t);if(r(d,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),g||"ClassExpression"===s){if("ClassExpression"===s&&"ReturnStatement"===m.type&&l.loc.start.line!==m.loc.start.line&&u.text.slice(d.range[1],l.range[0]).trim()){yield i.replaceText(d,"{");let e=u.getFirstToken(l);yield i.remove(e)}else yield i.replaceText(d,""),yield n(d,u,i)}else yield i.replaceText(d,"const"),yield i.insertTextBefore(l,"= "),yield i.insertTextAfter(l,";");for(let t of l.body)yield*function*(t,u,i){let s=u.getFirstToken(t);r(s,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield i.remove(s),yield n(s,u,i);let d=o(t)?u.getLastToken(t):u.getTokenAfter(t),l=e(d);if(o(t)){let{key:e,value:r}=t;if(r){let t=u.getTokenAfter(e,a);yield i.replaceText(t,":")}else l?yield i.insertTextBefore(d,": undefined"):yield i.insertTextAfter(t,": undefined")}yield l?i.replaceText(d,","):i.insertTextAfter(t,",")}(t,u,i)}}}(l,c)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[u]:"Use an object instead of a class with only static members."}}}}()),d0=iw(function(){if(ad)return as;ad=1;let{isParenthesized:e}=sy,t=sq(),{fixSpaceAroundKeyword:r}=s5(),n="no-unreadable-array-destructuring",u=(e,t,r)=>null===e&&null===r[t+1];return as={create:a=>{let{sourceCode:i}=a;return{ArrayPattern(a){let{elements:o,parent:s}=a;if(o.length<3||!o.some((e,t,r)=>u(e,t,r)))return;let d={node:a,messageId:n},l=o.filter(e=>null!==e);if("VariableDeclarator"===s.type&&s.id===a&&null!==s.init&&1===l.length){let[n]=l;"AssignmentPattern"!==n.type&&(d.fix=function*(u){let d=o.indexOf(n),l="RestElement"===n.type,c=l?n.argument:n;yield u.replaceText(a,i.getText(c));let f=l?`.slice(${d})`:`[${d}]`,p=s.init;!e(p,i)&&t(p,i)?(yield u.insertTextBefore(p,"("),yield u.insertTextAfter(s,`)${f}`)):yield u.insertTextAfter(s,f),yield*r(u,a,i)})}return d}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[n]:"Array destructuring may not contain consecutive ignored values."}}}}()),d1=iw(function(){if(ac)return al;ac=1;let{isCommaToken:e}=sy,t=dG(),{removeParentheses:r,fixSpaceAroundKeyword:n,addParenthesizesToReturnOrThrowExpression:u}=s5(),{isParenthesized:a,isOnSameLine:i}=sK(),{isNewExpression:o,isMethodCall:s,isCallOrNewExpression:d}=sS(),l="spread-in-list",c="iterable-to-array",f="iterable-to-array-in-for-of",p="iterable-to-array-in-yield-star",m="clone-array",g=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",y={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*h(t,r,o){let[s,d,l]=o.getFirstTokens(r,3);yield t.remove(s),yield t.remove(d);let[c,f]=o.getLastTokens(r,2);yield t.remove(f),e(c)&&(yield t.remove(c));let{parent:p}=r;if(("ReturnStatement"===p.type||"ThrowStatement"===p.type)&&p.argument===r&&!i(s,l)&&!a(r,o)){yield*u(t,p,o);return}yield*n(t,r,o)}return al={create:n=>{let{sourceCode:u}=n;n.on(["ArrayExpression","ObjectExpression"],t=>{if(!("SpreadElement"===t.parent.type&&t.parent.argument===t&&("ObjectExpression"===t.type&&"ObjectExpression"===t.parent.parent.type&&t.parent.parent.properties.includes(t.parent)||"ArrayExpression"===t.type&&("ArrayExpression"===t.parent.parent.type&&t.parent.parent.elements.includes(t.parent)||d(t.parent.parent)&&t.parent.parent.arguments.includes(t.parent)))))return;let n=t.parent,a=u.getFirstToken(n),i=n.parent.type;return{node:a,messageId:l,data:{argumentType:"ArrayExpression"===t.type?"array":"object",parentDescription:y[i]},*fix(n){let o;yield n.remove(a),yield*r(t,n,u);let s=u.getFirstToken(t);yield n.remove(s);let[d,l]=u.getLastTokens(t,2);if(yield n.remove(l),e(d)&&(yield n.remove(d)),"CallExpression"===i||"NewExpression"===i)for(let[r,a]of(o=u.getFirstToken(t),t.elements.map((r,n,a)=>{if(n===a.length-1){let r=u.getLastToken(t,{skip:1});return e(r)?r:void 0}let i=u.getTokenAfter(r||o,e);return o=i,i})).entries())!t.elements[r]&&(yield n.insertTextBefore(a,"undefined"))}}}),n.on("ArrayExpression",e=>{if(!g(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(o(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||o(r,{names:t,minimumArguments:1})||s(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{objects:["Array",...t],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",a=c;switch(r.type){case"ForOfStatement":a=f;break;case"YieldExpression":a=p;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:a,data:{parentDescription:n},fix:t=>h(t,e,u)}}),n.on("ArrayExpression",e=>{if(!g(e))return;let t=e.elements[0].argument;if(!(s(t,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||s(t,{method:"split",optionalCall:!1,optionalMember:!1})||s(t,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===t.type&&s(t.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||s(t,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||o(t,{name:"Array"})))return;let r={node:e,messageId:m};return o(t,{name:"Array"})||"CallExpression"===t.type&&"MemberExpression"===t.callee.type&&"Identifier"===t.callee.property.type&&"slice"===t.callee.property.name?r:Object.assign(r,{fix:t=>h(t,e,u)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[l]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[c]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[f]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[p]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[m]:"Unnecessarily cloning an array."}}}}()),d2=iw(function(){if(ag)return am;ag=1;let{isEmptyNode:e}=sS(),t=function(){if(ap)return af;ap=1;let{isColonToken:e}=sy;return af=function(t,r){let n=t.test||r.getFirstToken(t),u=r.getTokenAfter(n,e);return{start:t.loc.start,end:u.loc.end}}}(),r="no-useless-switch-case/error",n="no-useless-switch-case/suggestion",u=t=>t.consequent.every(t=>e(t));return am={create:e=>({*SwitchStatement(a){let{cases:i}=a;if(!(i.length<2)&&null===i.at(-1).test)for(let a=i.length-2;a>=0;a--){let o=i[a];if(!u(o))break;yield{node:o,loc:t(o,e.sourceCode),messageId:r,suggest:[{messageId:n,fix:e=>e.remove(o)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Useless case in switch statement.",[n]:"Remove this case."}}}}()),d3=iw(function(){if(ah)return ay;ah=1;let{isCommaToken:e}=sy,{replaceNodeOrTokenAndSpacesBefore:t}=s5(),{isUndefined:r,isFunction:n}=sS(),u="no-useless-undefined",a=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),i=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),a.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"useRef"===t||"ref"===t},o=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},s=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,d=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);return ay={create:a=>{let{sourceCode:l}=a,c=(e,t,r)=>{if(r){let t=o(l.getScope(e));if(t?.returnType)return}return{node:e,messageId:u,fix:t}},f={checkArguments:!0,checkArrowFunctionBody:!0,...a.options[0]},p=(e,r)=>t(e,"",r,l);a.on("Identifier",e=>{if(r(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return c(e,t=>p(e,t),!0)}),a.on("Identifier",e=>{if(r(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return c(e,t=>p(e,t))}),f.checkArrowFunctionBody&&a.on("Identifier",e=>{if(r(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return c(e,r=>t(e," {}",r,l),!0)}),a.on("Identifier",e=>{if(r(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return c(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),a.on("Identifier",e=>{if(r(e)&&"AssignmentPattern"===e.parent.type&&e.parent.right===e)return c(e,function*(t){let r=e.parent,{left:u}=r;yield t.removeRange([u.range[1],e.range[1]]),(u.typeAnnotation||d(a))&&!u.optional&&n(r.parent)&&r.parent.params.includes(r)&&(yield u.typeAnnotation?t.insertTextBefore(u.typeAnnotation,"?"):t.insertTextAfter(u,"?"))},!0)}),f.checkArguments&&a.on("CallExpression",t=>{if(i(t.callee))return;let n=t.arguments;if(s(t)&&1!==n.length)return;let a=[];for(let e=n.length-1;e>=0;e--){let t=n[e];if(r(t))a.unshift(t);else break}if(0===a.length)return;let o=a[0],d=a.at(-1);return{messageId:u,loc:{start:o.loc.start,end:d.loc.end},fix(t){let r=o.range[0],u=d.range[1],i=n[n.length-a.length-1];if(i)r=i.range[1];else{let t=l.getTokenAfter(d);e(t)&&(u=t.range[1])}return t.removeRange([r,u])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[u]:"Do not use useless `undefined`."}}}}()),d4=iw(function(){if(ax)return ab;ax=1;let e=sW(),{isBigIntLiteral:t}=sS(),r="numeric-separators-style";function n(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}let u={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},a=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});return ab={create:a=>{let{onlyIfContainsSeparator:i,binary:o,octal:s,hexadecimal:d,number:l}={onlyIfContainsSeparator:!1,...a.options[0]},c={"0b":{onlyIfContainsSeparator:i,...u.binary,...o},"0o":{onlyIfContainsSeparator:i,...u.octal,...s},"0x":{onlyIfContainsSeparator:i,...u.hexadecimal,...d},"":{onlyIfContainsSeparator:i,...u.number,...l}};return{Literal(u){if(!e.isNumeric(u)||e.isLegacyOctal(u))return;let{raw:a}=u,i=a,o="";t(u)&&(i=a.slice(0,-1),o="n");let s=i.replaceAll("_",""),{prefix:d,data:l}=e.getPrefix(s),{onlyIfContainsSeparator:f}=c[d.toLowerCase()];if(f&&!a.includes("_"))return;let p=function(t,{prefix:r,data:u},a){let i=a[r.toLowerCase()];if(r)return r+n(u,i);let{number:o,mark:s,sign:d,power:l}=e.parseNumber(t);return function(t,r){let{integer:u,dot:a,fractional:i}=e.parseFloatNumber(t);return n(u,r)+a+n(i,r,!0)}(o,i)+s+d+n(l,a[""])}(s,{prefix:d,data:l},c)+o;if(a!==p)return{node:u,messageId:r,fix:e=>e.replaceText(u,p)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(u).map(([e,t])=>[e,a(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[r]:"Invalid group length in numeric value."}}}}()),d5=iw(function(){if(aE)return av;aE=1;let{isParenthesized:e,findVariable:t}=sy,{extendFixRange:r,removeMemberExpressionProperty:n,removeMethodCall:u,renameVariable:a}=s5(),{isLeftHandSide:i,singular:o,getScopes:s,avoidCapture:d,getVariableIdentifiers:l}=sK(),{isMethodCall:c}=sS(),f="error-zero-index",p="error-shift",m="error-pop",g="error-at-zero",y="error-at-minus-one",h="error-destructuring-declaration",b="error-destructuring-assignment",x="error-variable",v="suggest-nullish-coalescing-operator",E="suggest-logical-or-operator",A=e=>c(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),C=(t,r)=>{if("AssignmentExpression"!==t.type||e(t,r))return!1;let{left:n}=S(t),[u]=n.elements,{type:a}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===a||"ObjectPattern"===a},D=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,S=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*w(e,t,r){let{left:n}=S(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),C(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let T=e=>"AssignmentPattern"===S(e).left.elements[0].type,F=(t,r,n,u)=>{let{left:a,right:i}=S(t),[o]=a.elements,s=o.right,d=r.getText(s);return(e(s,r)||D(s,u))&&(d=`(${d})`),n.insertTextAfter(i,` ${u} ${d}`)},_=(e,t)=>{let r,n;let{property:u}=S(t).right.callee;return T(t)?r=[{operator:"??",messageId:v},{operator:"||",messageId:E}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield F(t,e,r,n),yield*w(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*w(t,e,r)},{fix:n,suggest:r}},k=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,I=e=>{let{left:t,right:r}=S(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};return av={create:e=>{let{sourceCode:v}=e,{checkFromLast:E}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&A(e.object)&&!i(e))return{node:e.object.callee.property,messageId:f,fix:t=>[t.replaceText(e.object.callee.property,"find"),n(t,e,v)]}}),e.on("CallExpression",e=>{if(c(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&A(e.callee.object))return{node:e.callee.object.callee.property,messageId:p,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,v)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&A(e.init))return{node:e.init.callee.property,messageId:h,..._(v,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&A(e.right))return{node:e.right.callee.property,messageId:b,..._(v,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&A(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&("ExportNamedDeclaration"!==e.parent.parent.type||e.parent.parent.declaration!==e.parent)))return;let u=v.getScope(e),i=t(u,e.id),c=l(i).filter(t=>t!==e.id);if(0===c.length)return;let f=[],p=[];for(let e of c)if(k(e))f.push(e.parent);else{if(!I(e))return;p.push(e.parent)}let m={node:e.init.callee.property,messageId:x};return p.some(e=>T(e))||(m.fix=function*(t){yield t.replaceText(e.init.callee.property,"find");let l=o(e.id.name);if(l){let e=d(l,s(u));yield*a(i,e,t),yield*r(t,v.ast.range)}for(let e of f)yield n(t,e,v);for(let e of p)yield*w(e,v,t)}),m}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&A(e.callee.object))return{node:e.callee.object.callee.property,messageId:g,fix:t=>[t.replaceText(e.callee.object.callee.property,"find"),...u(t,e,v)]}}),E&&(e.on("CallExpression",e=>{if(c(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&A(e.callee.object))return{node:e.callee.object.callee.property,messageId:m,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,v)]}}),e.on("CallExpression",e=>{if(c(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&A(e.callee.object))return{node:e.callee.object.callee.property,messageId:y,fix:t=>[t.replaceText(e.callee.object.callee.property,"findLast"),...u(t,e,v)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[x]:"Prefer `.find(…)` over `.filter(…)`.",[f]:"Prefer `.find(…)` over `.filter(…)[0]`.",[g]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[p]:"Prefer `.find(…)` over `.filter(…).shift()`.",[m]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[y]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[h]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[b]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[v]:"Replace `.filter(…)` with `.find(…) ?? …`.",[E]:"Replace `.filter(…)` with `.find(…) || …`."}}}}()),d8=iw(function(){if(aC)return aA;aC=1;let{isNodeMatches:e}=sD(),{isMethodCall:t}=sS(),{removeMethodCall:r}=s5(),n="prefer-array-flat-map",u=["React.Children","Children"];return aA={create:a=>({CallExpression(i){if(!(t(i,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===i.arguments.length||1===i.arguments.length&&"Literal"===i.arguments[0].type&&"1"===i.arguments[0].raw)&&t(i.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let o=i.callee.object;if(e(o.callee.object,u))return;let{sourceCode:s}=a,d=o.callee.property;return{node:i,loc:{start:d.loc.start,end:i.loc.end},messageId:n,*fix(e){yield*r(e,i,s),yield e.replaceText(d,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}}}()),d6=iw(function(){if(aS)return aD;aS=1;let{getParenthesizedText:e,isArrayPrototypeProperty:t,isNodeMatches:r,isNodeMatchesNameOrPath:n,isParenthesized:u,isSameIdentifier:a,needsSemicolon:i,shouldAddParenthesesToMemberExpressionObject:o}=sK(),{fixSpaceAroundKeyword:s}=s5(),{isMethodCall:d,isCallExpression:l}=sS(),c="prefer-array-flat",f=e=>"ArrayExpression"===e.type&&0===e.elements.length,p={testFunction(e){if(!d(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&a(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},m={testFunction(e){if(!d(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&f(r)))return!1;let n=t.body,[u,i]=t.params;return d(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&a(u,n.callee.object)&&a(i,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&a(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},g={testFunction:e=>d(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},y={testFunction(e){if(!(d(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&t(e.callee.object,{property:"concat"})))return!1;let[r,n]=e.arguments;return f(r)&&("call"===e.callee.property.name||"SpreadElement"!==n.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},h=["_.flatten","lodash.flatten","underscore.flatten"];return aD={create:function(t){let{functions:a}={functions:[],...t.options[0]},d=[...a,...h],f=[p,m,g,y,{testFunction:e=>l(e,{argumentsLength:1,optional:!1})&&r(e.callee,d),getArrayNode:e=>e.arguments[0],description:e=>`${d.find(t=>n(e.callee,t)).trim()}()`}];return{*CallExpression(r){for(let{testFunction:n,description:a,getArrayNode:d,shouldSwitchToArray:l}of f){if(!n(r))continue;let f=d(r),p={description:"string"==typeof a?a:a(r)},m={node:r,messageId:c,data:p},{sourceCode:g}=t;g.getCommentsInside(r).length===g.getCommentsInside(f).length&&(m.fix=function(t,r,n,a){return"function"==typeof a&&(a=a(t)),function*(d){let l=e(r,n);a?l=`[${l}]`:!u(r,n)&&o(r,n)&&(l=`(${l})`),l=`${l}.flat()`,i(n.getTokenBefore(t),n,l)&&(l=`;${l}`),yield d.replaceText(t,l),yield*s(d,t,n)}}(r,f,g,l)),yield m}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[c]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}}}()),d9=iw(function(){if(aT)return aw;aT=1;let{checkVueTemplate:e}=dx(),{isBooleanNode:t,getParenthesizedRange:r,isNodeValueNotFunction:n}=sK(),{removeMemberExpressionProperty:u}=s5(),{isLiteral:a,isUndefined:i,isMethodCall:o,isMemberExpression:s}=sS(),d="some",l="some-suggestion",c="filter",f=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&i(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&a(e.parent.right,null)),p=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,m=e=>a(e,0);return aw={create:e(e=>{e.on("CallExpression",n=>{if(!o(n,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let u=f(n);if(!u&&!t(n))return;let a=n.callee.property;return{node:a,messageId:d,data:{method:a.name},suggest:[{messageId:l,*fix(t){if(yield t.replaceText(a,"some"),!u)return;let i=r(n,e.sourceCode);yield t.replaceTextRange([i[1],n.parent.range[1]],""),"!="!==n.parent.operator&&"!=="!==n.parent.operator&&(yield t.insertTextBeforeRange(i,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(o(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&p(n)||[">=","<"].includes(u)&&m(n))))return;let a=r.callee.property;return{node:a,messageId:d,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&s(t.left,{property:"length",optional:!1})&&o(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let a=t.left.object,[i]=a.arguments;if(!i||n(i))return;let d=a.callee.property;return{node:d,messageId:c,*fix(n){yield n.replaceText(d,"some");let{sourceCode:a}=e,i=t.left;yield u(n,i,a),yield n.removeRange([r(i,a)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[d]:"Prefer `.some(…)` over `.{{method}}(…)`.",[l]:"Replace `.{{method}}(…)` with `.some(…)`.",[c]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}}}()),d7=iw(function(){if(a_)return aF;a_=1;let{isMethodCall:e}=sS(),t=t=>e(t,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":e(t,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;return aF={create:()=>({CallExpression(e){let r=t(e);if(!r)return;let n=e.callee.property,u=n.name;return{node:n,messageId:`error/${u}`,suggest:[{messageId:`suggestion/${r}`,fix:e=>e.replaceText(n,r)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}}}()),le=iw(function(){if(aI)return ak;aI=1;let{findVariable:e}=sy,{functionTypes:t}=sS(),r="preferDefaultParameters",n="preferDefaultParametersSuggest",u=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,a=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(a(e,t))return!0}else if(a(e,n))return!0}return!1},i=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(a(e,n))return!0}return!1},o=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&!!(t.length>1),s=(e,t)=>{let r=e.at(-1);return t&&t===r},d=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},l=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};return ak={create:a=>{let{sourceCode:c}=a,f=[],p=(t,a,p,m)=>{let g=f.at(-1);if(!g||!u(a,p))return;let{name:y}=a,{left:{name:h},right:{raw:b}}=p;if(m&&y!==h)return;let x=e(c.getScope(t),h);if(!x)return;let{references:v}=x,{params:E}=g,A=E.find(e=>"Identifier"===e.type&&e.name===h);if(i(c,g,t)||o(m,v,a)||!s(E,A))return;let C=d(c,g)?`(${y} = ${b})`:`${y} = ${b}`;return{node:t,messageId:r,suggest:[{messageId:n,fix:e=>[e.replaceText(A,C),l(e,c,t)]}]}};a.on(t,e=>{f.push(e)}),a.onExit(t,()=>{f.pop()}),a.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return p(e.parent,e.left,e.right,!0)}),a.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return p(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[r]:"Prefer default parameters over reassignment.",[n]:"Replace reassignment with default parameter."}}}}()),lt=iw(function(){if(aO)return aj;aO=1;let{isParenthesized:e,getParenthesizedText:t}=sb(),r=sM(),n=aB?aP:(aB=1,aP=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type||!1)}),u=sU(),a="prefer-logical-operator-over-ternary/error",i="prefer-logical-operator-over-ternary/suggestion";function o(e,t,n){if(r(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return o(e.argument,t.argument,n);case"LogicalExpression":return e.operator===t.operator&&o(e.left,t.left,n)&&o(e.right,t.right,n);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&o(e.argument,t.argument,n);case"UpdateExpression":return!1}return n.getText(e)===n.getText(t)}function s({sourceCode:r,conditionalExpression:o,left:s,right:d}){return{node:o,messageId:a,suggest:["??","||"].map(a=>({messageId:i,data:{operator:a},fix:i=>(function({fixer:r,sourceCode:a,conditionalExpression:i,left:o,right:s,operator:d}){let l=[o,s].map((r,u)=>{let i=e(r,a),o=i?t(r,a):a.getText(r);return!i&&n(r,{operator:d,property:0===u?"left":"right"})&&(o=`(${o})`),o}).join(` ${d} `);return u(a.getTokenBefore(i),a,l)&&(l=`;${l}`),r.replaceText(i,l)})({fixer:i,sourceCode:r,conditionalExpression:o,left:s,right:d,operator:a})}))}}return aj={create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return o(r,n,t)?s({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&o(r.argument,u,t)?s({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Prefer using a logical operator over a ternary.",[i]:"Switch to `{{operator}}` operator."}}}}()),lr=iw(function(){if(aL)return aR;aL=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sy,r=dY(),n="with-name",u="without-name";return aR={create:a=>({CatchClause(i){let o=i.param;if(!o)return;let{sourceCode:s}=a;if(s.getDeclaredVariables(o.parent).some(e=>e.references.length>0))return;let{type:d,name:l,parent:c}=o;return{node:o,messageId:"Identifier"===d?n:u,data:{name:l},*fix(n){let u=s.getTokenBefore(o);r(u,{test:e,expected:"(",ruleId:"prefer-optional-catch-binding"});let a=s.getTokenAfter(o);r(a,{test:t,expected:")",ruleId:"prefer-optional-catch-binding"}),yield n.remove(u),yield n.remove(o),yield n.remove(a);let[,i]=a.range,[d]=c.body.range,l=s.text.slice(i,d),f=l.length-l.trimStart().length;0!==f&&(yield n.removeRange([i,i+f]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[n]:"Remove unused catch binding `{{name}}`.",[u]:"Remove unused catch binding."}}}}()),ln=iw(function(){if(aM)return aN;aM=1;let{isParenthesized:e,getStaticValue:t}=sy,{checkVueTemplate:r}=dx(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=sS(),{isBooleanNode:i,shouldAddParenthesesToMemberExpressionObject:o}=sK(),s="regexp-exec",d="string-match",l="suggestion",c=[{type:s,test:e=>a(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:d,test:e=>a(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(t,{stringNode:r,methodNode:n,regexpNode:u},a){yield t.replaceText(n,"test");let i=a.getText(r);e(u,a)||"SequenceExpression"!==r.type||(i=`(${i})`),yield t.replaceText(u,i);let s=a.getText(u);!e(r,a)&&o(u,a)&&(s=`(${s})`),yield t.replaceText(r,s)}}],f=e=>n(e)||u(e,{name:"RegExp"}),p=(e,r)=>{if(n(e))return!e.regex.flags.includes("g");let u=t(e,r);if(!u)return!1;let{value:a}=u;return"[object RegExp]"===Object.prototype.toString.call(a)&&!a.global};return aN={create:r(e=>({*CallExpression(t){if(i(t))for(let{type:r,test:n,getNodes:u,fix:a}of c){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:d}=i;if("Literal"===d.type&&!d.regex)continue;let c={node:r===s?o:t,messageId:r},{sourceCode:m}=e,g=e=>a(e,i,m);f(d)||p(d,m.getScope(d))?c.fix=g:c.suggest=[{messageId:l,fix:g}],yield c}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[s]:"Prefer `.test(…)` over `.exec(…)`.",[d]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[l]:"Switch to `RegExp#test(…)`."}}}}()),lu=iw(function(){if(aU)return a$;aU=1;let{findVariable:e}=sy,{getVariableIdentifiers:t}=sK(),{isCallOrNewExpression:r,isMethodCall:n}=sS(),u="error",a="suggestion",i=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],o=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},s=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),d=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(s.has(n.type))return!0;n=n.parent}return!1};return a$={create:s=>({Identifier(l){let{parent:c}=l;if(!("VariableDeclarator"===c.type&&c.id===l&&c.init&&"VariableDeclaration"===c.parent.type&&c.parent.declarations.includes(c)&&("ExportNamedDeclaration"!==c.parent.parent.type||c.parent.parent.declaration!==c.parent)&&("ArrayExpression"===c.init.type||r(c.init,{name:"Array",optional:!1})||n(c.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||n(c.init,{methods:i,optionalCall:!1,optionalMember:!1}))))return;let f=e(s.sourceCode.getScope(l),l);if(!f)return;let p=t(f).filter(e=>e!==l);if(0===p.length||p.some(e=>!o(e))||1===p.length&&p.every(e=>!d(e,l)))return;let m={node:l,messageId:u,data:{name:l.name}},g=function*(e){for(let t of(yield e.insertTextBefore(l.parent.init,"new Set("),yield e.insertTextAfter(l.parent.init,")"),p))yield e.replaceText(t.parent.property,"has")};return l.typeAnnotation?m.suggest=[{messageId:a,fix:g}]:m.fix=g,m}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[a]:"Switch `{{name}}` to `Set`."}}}}()),la=iw(function(){if(aW)return az;aW=1;let{isStringLiteral:e,isDirective:t}=sS(),{fixSpaceAroundKeyword:r}=s5(),n="prefer-string-raw";return az={create:u=>{u.on("Literal",a=>{if(!e(a)||t(a.parent)||("ImportDeclaration"===a.parent.type||"ExportNamedDeclaration"===a.parent.type||"ExportAllDeclaration"===a.parent.type)&&a.parent.source===a||"Property"===a.parent.type&&!a.parent.computed&&a.parent.key===a||"JSXAttribute"===a.parent.type&&a.parent.value===a||"TSEnumMember"===a.parent.type&&(a.parent.initializer===a||a.parent.id===a))return;let{raw:i}=a;if("\\"===i.at(-2)||!i.includes("\\\\")||i.includes("`")||i.includes("${")||a.loc.start.line!==a.loc.end.line)return;let o=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(i);if(o===a.value)return{node:a,messageId:n,*fix(e){yield e.replaceText(a,`String.raw\`${o}\``),yield*r(e,a,u.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[n]:"`String.raw` should be used to avoid escaping `\\`."}}}}()),li=iw(function(){if(aG)return aZ;aG=1;let{hasSideEffect:e}=sy,t=sM(),r=aV?aq:(aV=1,aq=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]}),n="prefer-switch",u=(e,r)=>e===r||t(e,r),a=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),i=e=>{for(;e.parent;e=e.parent)if(a.has(e.type))return e},o=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];return aZ={create:t=>{let a={minimumCases:3,emptyDefaultCase:"no-default-comment",...t.options[0]},{sourceCode:s}=t,d=new Set,l=[],c=new Set;return{IfStatement(e){d.add(e)},BreakStatement(e){e.label||l.push(e)},*"Program:exit"(){for(let t of d){if(c.has(t))continue;let{discriminant:d,ifStatements:f}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,a=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===a.length)break;if(!t){let[{left:e,right:r}]=a;t=[e,r]}let i=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>u(e,r)||u(e,n))).length)break;return t}(a,t);if(0===i.length)break;t=i,r.push({statement:e,compareExpressions:a})}return{ifStatements:r,discriminant:t&&t[0]}}(t);if(!d||f.length<a.minimumCases)continue;for(let{statement:e}of f)c.add(e);let p={loc:{start:t.loc.start,end:t.consequent.loc.start},messageId:n};e(d,s)||f.some(({statement:e})=>(function(e,t){for(let r of e){if(!o(r,t))continue;let e=i(r);if(!e||o(t,e))return!0}return!1})(l,e))||(p.fix=function({discriminant:e,ifStatements:t},n,a){let i=n.getText(e);return function*(o){let s=t[0].statement,d=r(s,n);yield o.insertTextBefore(s,`switch (${i}) {`);let l=t.at(-1).statement;if(l.alternate){let{alternate:e}=l;yield o.insertTextBefore(e,`
5
5
  ${d}default: `)}else switch(a.emptyDefaultCase){case"no-default-comment":yield o.insertTextAfter(s,`
6
6
  ${d}// No default`);break;case"do-nothing-comment":yield o.insertTextAfter(s,`
7
7
  ${d}default:
@@ -12,7 +12,7 @@ ${n}break;
12
12
  ${n}`)}else yield t.insertTextAfter(e,`
13
13
  ${n}break;`)}(t,o,n,d),yield*function*(e,t,r){e&&"BlockStatement"!==e.type&&(yield t.insertTextBefore(e,`{
14
14
  ${r}`),yield t.insertTextAfter(e,`
15
- ${r}}`))}(t,o,d))}}}({discriminant:d,ifStatements:f},s,a)),yield p}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[n]:"Use `switch` instead of multiple `else-if`."}}}}()),li=iw(function(){if(aX)return aK;aX=1;let{appendArgument:e}=s4(),{isMethodCall:t}=sD(),r="require-number-to-fixed-digits-argument";return aK={create:n=>({CallExpression(u){if(!t(u,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===u.callee.object.type)return;let{sourceCode:a}=n,[i,o]=a.getLastTokens(u,2);return{loc:{start:i.loc.start,end:o.loc.end},messageId:r,fix:t=>e(t,u,"0",a)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[r]:"Missing the digits argument."}}}}());function lo(e){return(lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||ld(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ld(e,t){if(e){if("string"==typeof e)return ll(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ll(e,t):void 0}}function ll(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lc(e,t){return e(t={exports:{}},t.exports),t.exports}var lf=lc(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new c).traverse(e,t)}return r={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"},u={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"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,m,g,y,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(o)}for(m=y.length;(m-=1)>=0;)if(b=o[c=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!h(n,b[g])){if(p(s,y[m]))u=new l(b[g],[c,g],"Property",null);else{if(!f(b[g]))continue;u=new l(b[g],[c,g],null,null)}r.push(u)}}else if(f(b)){if(h(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,h,m,g,y,b,v,x,E;function C(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(x={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,h))&&c!==a&&c!==i&&c!==o&&(h.ref.replace(c),h.node=c),this.__state!==o&&c!==o||(C(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(v),n.push(h),this.__state!==i&&c!==i)){if(s=u.type||h.wrap,!(y=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");y=this.__fallback(u)}for(m=y.length;(m-=1)>=0;)if(b=u[E=y[m]]){if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(p(s,y[m]))h=new l(b[g],[E,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[E,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(h=n.pop(),void 0!==(c=this.__execute(t.leave,h))&&c!==a&&c!==i&&c!==o&&h.ref.replace(c),this.__state!==o&&c!==o||C(h),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,m(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,m(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),lp=lc(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.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(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.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(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},C=em("!",!1),A=em("*",!1),S=em("#",!1),D=em("[",!1),_=em("]",!1),w=/^[><!]/,k=eg([">","<","!"],!1,!1),I=em("=",!1),T=function(e){return(e||"")+"="},F=/^[><]/,P=eg([">","<"],!1,!1),B=em(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},L=em('"',!1),O=/^[^\\"]/,R=eg(["\\",'"'],!0,!1),M=em("\\",!1),N={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},V=em("'",!1),z=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,G=eg([["0","9"]],!1,!1),Z=em("type(",!1),H=/^[^ )]/,K=eg([" ",")"],!0,!1),X=em(")",!1),J=/^[imsu]/,Q=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),ee=/^[^\/]/,et=eg(["/"],!0,!1),er=em(":not(",!1),en=em(":matches(",!1),eu=em(":has(",!1),ea=em(":first-child",!1),ei=em(":last-child",!1),eo=em(":nth-child(",!1),es=em(":nth-last-child(",!1),ed=em(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],eh={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eA())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),eh[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=eh[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h));return eh[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=eh[u];if(a)return el=a.nextPos,a.result;if(r=[],m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g)),n!==c)for(;n!==c;)r.push(n),m.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(g));else r=c;return r!==c&&(r=r.join("")),e=r,eh[u]={nextPos:el,result:e},e}function eC(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(h)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),eh[u]={nextPos:el,result:e},e)}function eA(){var e,r,n,u,a,i,o,s,d=32*el+5,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eS(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eC())===c&&(t=null),t!==c&&(r=eD())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),eh[a]={nextPos:el,result:e},e)}function eD(){var e,t,r,n,u,a,i,o=32*el+7,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=e_())!==c){for(r=[],n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eC())!==c&&(a=e_())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}function e_(){var e,r,n,u,a,i,o,s=32*el+8,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(C)),r===c&&(r=null),r!==c){if(n=[],(u=ew())!==c)for(;u!==c;)n.push(u),u=ew();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s,d,l,f,p,h,m,g,y,b,v,ec,ef,ep,em,eg,ey,ev,eC,eD,e_,ew,eF,eP,eB,ej,eL,eO,eR,eM,eN,e$,eU,eV,ez,eq,eW,eG,eZ,eH,eK,eX,eJ,eQ,eY,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=eh[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=eh[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,eh[n]={nextPos:el,result:e},e))===c&&(tu=(d=eh[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(S)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),eh[s]={nextPos:el,result:a},a))===c&&(tu=(g=eh[m=32*el+12])?(el=g.nextPos,g.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(D)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=ek())!==c&&ex()!==c&&(v=(eC=eh[ev=32*el+14])?(el=eC.nextPos,eC.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(C)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(I)),ey!==c?em=eg=T(eg):(el=em,em=c)):(el=em,em=c),eh[ev]={nextPos:el,result:em},em))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(Z)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Y)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Y)),u!==c?((a=function(){var e,r,n=32*el+21,u=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Q));else e=c;return eh[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}()),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&ex()!==c&&(v=(eP=eh[eF=32*el+13])?(el=eP.nextPos,eP.result):(eD=el,w.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(k)),e_===c&&(e_=null),e_!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(I)),ew!==c?eD=e_=T(e_):(el=eD,eD=c)):(el=eD,eD=c),eD===c&&(F.test(t.charAt(el))?(eD=t.charAt(el),el++):(eD=c,eb(P))),eh[eF]={nextPos:el,result:eD},eD))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=eh[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(L)),r!==c){for(n=[],O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(R)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(M)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(N)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),O.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(R)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(M)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(N)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(L)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(V)),r!==c){for(n=[],z.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(M)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(N)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),z.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(M)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(N)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(V)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return eh[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=eh[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return eh[o]={nextPos:el,result:e},e}())===c&&(ec=(eO=eh[eL=32*el+19])?(el=eO.nextPos,eO.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,eh[eL]={nextPos:el,result:eB},eB)),ec!==c?y=b=j(b,v,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=ek())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ex()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(_)),h!==c?l=f=p:(el=l,l=c)):(el=l,l=c),eh[m]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}())===c&&(tu=(eV=eh[eU=32*el+24])?(el=eV.nextPos,eV.result):(eR=el,":not("===t.substr(el,5)?(eM=":not(",el+=5):(eM=c,eb(er)),eM!==c&&ex()!==c&&(eN=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(X)),e$!==c?eR=eM={type:"not",selectors:eN}:(el=eR,eR=c)):(el=eR,eR=c),eh[eU]={nextPos:el,result:eR},eR))===c&&(tu=(eH=eh[eZ=32*el+25])?(el=eH.nextPos,eH.result):(ez=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ex()!==c&&(eW=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eG=")",el++):(eG=c,eb(X)),eG!==c?ez=eq={type:"matches",selectors:eW}:(el=ez,ez=c)):(el=ez,ez=c),eh[eZ]={nextPos:el,result:ez},ez))===c&&(tu=(e0=eh[eY=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eX=":has(",el+=5):(eX=c,eb(eu)),eX!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=eh[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eQ=")",el++):(eQ=c,eb(X)),eQ!==c?eK=eX={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eY]={nextPos:el,result:eK},eK))===c&&(tu=(e4=eh[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=eI(1)),e1=e2,eh[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=eh[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=eT(1)),e5=e8,eh[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=eI(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=eh[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(G));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=eT(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return eh[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=eh[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),eh[tr]={nextPos:el,result:e7},e7)),eh[ta]={nextPos:el,result:tu},tu)}function ek(){var e,r,n,u,a,i,o,s=32*el+15,d=eh[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return eh[s]={nextPos:el,result:e},e}function eI(e){return{type:"nth-child",index:{type:"literal",value:e}}}function eT(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=ey(n),i=ey(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function lh(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var lm="function"==typeof WeakMap?new WeakMap:null;function lg(e){if(null==e)return function(){return!0};if(null!=lm){var t=lm.get(e);return null!=t||(t=ly(e),lm.set(e,t)),t}return ly(e)}function ly(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(lg);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(lg);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(lg);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(lg);return function(e,t,r){var n=!1,u=[];return lf.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=lg(e.left),s=lg(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=lg(e.left),l=lg(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=lh(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=lh(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(lh(e,c))};case"type":return function(t){return e.value.value===lo(lh(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(lh(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(lh(e,c))};case"type":return function(t){return e.value.value!==lo(lh(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return lh(t,c)<=e.value.value};case"<":return function(t){return lh(t,c)<e.value.value};case">":return function(t){return lh(t,c)>e.value.value};case">=":return function(t){return lh(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=lg(e.left),m=lg(e.right);return function(t,r,n){return m(t,r,n)&&lx(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&lx(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=lg(e.left),y=lg(e.right);return function(t,r,n){return y(t,r,n)&&lE(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&lE(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=lg(e.right);return function(e,t,r){return v(e,t,r)&&lC(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=lg(e.right);return function(e,t,r){return E(e,t,r)&&lC(e,t,x,r)};case"class":var C=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(C){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function lb(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:lf.VisitorKeys[n]?lf.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function lv(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===lo(e)&&"string"==typeof e[r]}function lx(e,t,r,n,u){var a=ls(r,1)[0];if(!a)return!1;for(var i=lb(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(lv(s[f],u)&&t(s[f],r,u))return!0}}return!1}function lE(e,t,r,n,u){var a=ls(r,1)[0];if(!a)return!1;for(var i=lb(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&lv(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&lv(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function lC(e,t,r,n){if(0===r)return!1;var u=ls(t,1)[0];if(!u)return!1;for(var a=lb(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function lA(e,t,r,n){if(t){var u=[],a=lg(t),i=(function e(t,r){if(null==t||"object"!=lo(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return ll(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||ld(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(lg);lf.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function lS(e,t,r){var n=[];return lA(e,t,function(e){n.push(e)},r),n}function lD(e){return lp.parse(e)}function l_(e,t,r){return lS(e,lD(t),r)}l_.parse=lD,l_.match=lS,l_.traverse=lA,l_.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),lg(t)(e,r,n))},l_.query=l_;var lw=ik(Object.freeze({__proto__:null,default:l_})),lk=iw(function(){if(a4)return a3;a4=1;let e=function(){if(a0)return aY;a0=1;let e=aQ?aJ:(aQ=1,aJ=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0});return aY=t=>{let r=e(t);if(0===r)return t;let n=RegExp(`^[ \\t]{${r}}`,"gm");return t.replace(n,"")}}(),t=a2?a1:(a2=1,a1=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}),{replaceTemplateElement:r}=s4(),{isMethodCall:n,isCallExpression:u,isTaggedTemplateLiteral:a}=sD(),{isNodeMatches:i}=sZ(),o="template-indent",s=e=>n(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&u(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),d=new Map,l=e=>(d.has(e)||d.set(e,lw.parse(e)),d.get(e));return a3={create:n=>{let{sourceCode:u}=n,d={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...n.options[0]};d.comments=d.comments.map(e=>e.toLowerCase());let c=n=>{let a;let i="__PLACEHOLDER__"+Math.random(),s=n.quasis.map(e=>u.getText(e).slice(1,e.tail?-1:-2)).join(i),l=s.match(/\r?\n/);if(!l)return;let c=l[0],f=u.lines[n.loc.start.line-1].match(/^(\s*)\S/),p=f?f[1]:"";a="string"==typeof d.indent?d.indent:"number"==typeof d.indent?" ".repeat(d.indent):p.startsWith(" ")?" ":" ";let h=e(s).replaceAll(RegExp(`^${c}|${c}[ ]*$`,"g"),""),m=c+t(h,1,{indent:p+a})+c+p;if(m!==s)return{node:n,messageId:o,fix:e=>m.split(i).map((t,u)=>r(e,n.quasis[u],t))}},f=e=>{if(d.comments.length>0){let t=u.getTokenBefore(e,{includeComments:!0});if(t?.type==="Block"&&d.comments.includes(t.value.trim().toLowerCase()))return!0}if(s(e)||d.tags.length>0&&a(e,d.tags)||d.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&i(e.parent.callee,d.functions))return!0;if(d.selectors.length>0){let t=u.getAncestors(e).reverse();if(d.selectors.some(r=>lw.matches(e,l(r),t)))return!0}return!1};return{TemplateLiteral(e){if(f(e))return c(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[o]:"Templates should be properly indented."}}}}()),lI=iw(function(){if(a8)return a5;a8=1;let{isMethodCall:e}=sD(),{removeSpacesAfter:t}=s4(),r="no-await-in-promise-methods/error",n="no-await-in-promise-methods/suggestion",u=["all","allSettled","any","race"],a=t=>e(t,{object:"Promise",methods:u,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type;return a5={create:e=>({*CallExpression(u){if(a(u))for(let a of u.arguments[0].elements)a?.type==="AwaitExpression"&&(yield{node:a,messageId:r,data:{method:u.callee.property.name},suggest:[{messageId:n,*fix(r){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(a);yield r.remove(u),yield t(u,n,r)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Promise in `Promise.{{method}}()` should not be awaited.",[n]:"Remove `await`."}}}}()),lT=iw(function(){if(a9)return a6;a9=1;let{fixSpaceAroundKeyword:e,addParenthesizesToReturnOrThrowExpression:t}=s4(),{needsSemicolon:r,isParenthesized:n,isOnSameLine:u}=sZ(),a="no-negation-in-equality-check/error",i="no-negation-in-equality-check/suggestion",o=new Set(["===","!==","==","!="]),s=e=>"BinaryExpression"===e.type&&o.has(e.operator),d=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;return a6={create:o=>({BinaryExpression(l){let{operator:c,left:f}=l;if(!(s(l)&&d(f)&&!d(f.argument)))return;let{sourceCode:p}=o,h=p.getFirstToken(f),m=`${c.startsWith("!")?"=":"!"}${c.slice(1)}`;return{node:h,messageId:a,suggest:[{messageId:i,data:{operator:m},*fix(a){yield*e(a,l,p);let i=p.getTokenAfter(h),{parent:o}=l;"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type||n(l,p)||u(p.getFirstToken(o),i)||(yield*t(a,o,p)),yield a.remove(h),r(p.getTokenBefore(h),p,i.value)&&(yield a.insertTextAfter(h,";"));let s=p.getTokenAfter(f,e=>"Punctuator"===e.type&&e.value===c);yield a.replaceText(s,m)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Negated expression is not allowed in equality check.",[i]:"Switch to '{{operator}}' check."}}}}()),lF=iw(function(){if(ie)return a7;ie=1;let{isMethodCall:e,isMemberExpression:t}=sD(),{removeArgument:r}=s4(),{isSameReference:n}=sZ(),u="no-length-as-slice-end";return a7={create:a=>{a.on("CallExpression",i=>{if(!e(i,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let o=i.arguments[1],s="ChainExpression"===o.type?o.expression:o;if(t(s,{property:"length",computed:!1})&&n(i.callee.object,s.object))return{node:s,messageId:u,fix:e=>r(e,o,a.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[u]:"Passing `….length` as the `end` argument is unnecessary."}}}}()),lP=iw(function(){if(ir)return it;ir=1;let{findVariable:e}=sg,t=sB(),{renameVariable:r}=s4(),{isMethodCall:n}=sD(),u="catch-error-name",a=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(n(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||n(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;return it={create:n=>{let i={name:"error",ignore:[],...n.options[0]},{name:o}=i,s=i.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),d=e=>e===o||s.some(t=>t.test(e))||e.endsWith(o)||e.endsWith(o.charAt(0).toUpperCase()+o.slice(1));return{Identifier(i){if(!("CatchClause"===i.parent.type&&i.parent.param===i)&&!a(i))return;let s=i.name;if(d(s)||d(s.replaceAll(/_+$/g,"")))return;let l=e(n.sourceCode.getScope(i),i);if(!l||"_"===s&&0===l.references.length)return;let c=t(o,[l.scope,...l.references.map(({from:e})=>e)]),f={node:i,messageId:u,data:{originalName:s,fixedName:c||o}};return c&&(f.fix=e=>r(l,c,e)),f}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[u]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}}()),lB={exports:{}};lB.exports;var lj=iw(function(){if(ii)return ia;ii=1;let{upperFirst:e}=(iu||(iu=1,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,h={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(h,{camelCase:()=>tO,defaultsDeep:()=>tY,kebabCase:()=>t0,lowerFirst:()=>t1,snakeCase:()=>t2,upperFirst:()=>ta}),e.exports=((e,t,r,n)=>{if("object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),h);var m="object"==typeof i_&&i_&&i_.Object===Object&&i_,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,C=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[C]=r:delete e[C]),u},S=Object.prototype.toString,D=b?b.toStringTag:void 0,_=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":D&&D in Object(e)?A(e):S.call(e)},w=function(e){return null!=e&&"object"==typeof e},k=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},I=Array.isArray,T=b?b.prototype:void 0,F=T?T.toString:void 0,P=function e(t){if("string"==typeof t)return t;if(I(t))return k(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==_(t))return F?F.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},B=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},j=function(e){return e},L=function(e){if(!B(e))return!1;var t=_(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},O=y["__core-js_shared__"],R=(r=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,N=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},$=/^\[object .+?Constructor\]$/,U=Object.prototype,V=Function.prototype.toString,z=U.hasOwnProperty,q=RegExp("^"+V.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=function(e,t){var r,n=null==e?void 0:e[t];return B(r=n)&&(!R||!(R in r))&&(L(r)?q:$).test(N(r))?n:void 0},G=Object.create,Z=function(){function e(){}return function(t){if(!B(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),H=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},K=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},X=Date.now,J=function(){try{var e=W(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=(n=J?function(e,t){return J(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:j,u=0,a=0,function(){var e=X(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),Y=/^(?:0|[1-9]\d*)$/,ee=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&Y.test(e))&&e>-1&&e%1==0&&e<t},et=function(e,t,r){"__proto__"==t&&J?J(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},er=function(e,t){return e===t||e!=e&&t!=t},en=Object.prototype.hasOwnProperty,eu=function(e,t,r){var n=e[t];en.call(e,t)&&er(n,r)&&(void 0!==r||t in e)||et(e,t,r)},ea=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?et(r,o,s):eu(r,o,s)}return r},ei=Math.max,eo=function(e,t){var r;return Q((r=ei(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=ei(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=j(a),H(e,this,i)}),e+"")},es=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},ed=function(e){return null!=e&&es(e.length)&&!L(e)},el=function(e,t,r){if(!B(r))return!1;var n=typeof t;return("number"==n?!!(ed(r)&&ee(t,r.length)):"string"==n&&t in r)&&er(r[t],e)},ec=Object.prototype,ef=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ec)},ep=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eh=function(e){return w(e)&&"[object Arguments]"==_(e)},em=Object.prototype,eg=em.hasOwnProperty,ey=em.propertyIsEnumerable,eb=eh(function(){return arguments}())?eh:function(e){return w(e)&&eg.call(e,"callee")&&!ey.call(e,"callee")},ev=t&&!t.nodeType&&t,ex=ev&&e&&!e.nodeType&&e,eE=ex&&ex.exports===ev?y.Buffer:void 0,eC=(eE?eE.isBuffer:void 0)||function(){return!1},eA={};eA["[object Float32Array]"]=eA["[object Float64Array]"]=eA["[object Int8Array]"]=eA["[object Int16Array]"]=eA["[object Int32Array]"]=eA["[object Uint8Array]"]=eA["[object Uint8ClampedArray]"]=eA["[object Uint16Array]"]=eA["[object Uint32Array]"]=!0,eA["[object Arguments]"]=eA["[object Array]"]=eA["[object ArrayBuffer]"]=eA["[object Boolean]"]=eA["[object DataView]"]=eA["[object Date]"]=eA["[object Error]"]=eA["[object Function]"]=eA["[object Map]"]=eA["[object Number]"]=eA["[object Object]"]=eA["[object RegExp]"]=eA["[object Set]"]=eA["[object String]"]=eA["[object WeakMap]"]=!1;var eS=t&&!t.nodeType&&t,eD=eS&&e&&!e.nodeType&&e,e_=eD&&eD.exports===eS&&m.process,ew=function(){try{var e=eD&&eD.require&&eD.require("util").types;if(e)return e;return e_&&e_.binding&&e_.binding("util")}catch(e){}}(),ek=ew&&ew.isTypedArray,eI=ek?function(e){return ek(e)}:function(e){return w(e)&&es(e.length)&&!!eA[_(e)]},eT=Object.prototype.hasOwnProperty,eF=function(e,t){var r=I(e),n=!r&&eb(e),u=!r&&!n&&eC(e),a=!r&&!n&&!u&&eI(e),i=r||n||u||a,o=i?ep(e.length,String):[],s=o.length;for(var d in e)(t||eT.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||ee(d,s)))&&o.push(d);return o},eP=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eB=Object.prototype.hasOwnProperty,ej=function(e){if(!B(e))return eP(e);var t=ef(e),r=[];for(var n in e)"constructor"==n&&(t||!eB.call(e,n))||r.push(n);return r},eL=function(e){return ed(e)?eF(e,!0):ej(e)},eO=W(Object,"create"),eR=Object.prototype.hasOwnProperty,eM=Object.prototype.hasOwnProperty;function eN(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eN.prototype.clear=function(){this.__data__=eO?eO(null):{},this.size=0},eN.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},eN.prototype.get=function(e){var t=this.__data__;if(eO){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eR.call(t,e)?t[e]:void 0},eN.prototype.has=function(e){var t=this.__data__;return eO?void 0!==t[e]:eM.call(t,e)},eN.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eO&&void 0===t?"__lodash_hash_undefined__":t,this};var e$=function(e,t){for(var r=e.length;r--;)if(er(e[r][0],t))return r;return -1},eU=Array.prototype.splice;function eV(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eV.prototype.clear=function(){this.__data__=[],this.size=0},eV.prototype.delete=function(e){var t=this.__data__,r=e$(t,e);return!(r<0)&&(r==t.length-1?t.pop():eU.call(t,r,1),--this.size,!0)},eV.prototype.get=function(e){var t=this.__data__,r=e$(t,e);return r<0?void 0:t[r][1]},eV.prototype.has=function(e){return e$(this.__data__,e)>-1},eV.prototype.set=function(e,t){var r=this.__data__,n=e$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var ez=W(y,"Map"),eq=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eW=function(e,t){var r=e.__data__;return eq(t)?r["string"==typeof t?"string":"hash"]:r.map};function eG(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eG.prototype.clear=function(){this.size=0,this.__data__={hash:new eN,map:new(ez||eV),string:new eN}},eG.prototype.delete=function(e){var t=eW(this,e).delete(e);return this.size-=+!!t,t},eG.prototype.get=function(e){return eW(this,e).get(e)},eG.prototype.has=function(e){return eW(this,e).has(e)},eG.prototype.set=function(e,t){var r=eW(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this};var eZ=function(e){return null==e?"":P(e)},eH=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eK=Object.prototype,eX=Function.prototype.toString,eJ=eK.hasOwnProperty,eQ=eX.call(Object),eY=function(e){if(!w(e)||"[object Object]"!=_(e))return!1;var t=eH(e);if(null===t)return!0;var r=eJ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eX.call(r)==eQ},e0=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e1=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e0(e,t,r)},e2=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e3=function(e){return e2.test(e)},e4="\ud800-\udfff",e5="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e8="\ud83c[\udffb-\udfff]",e6="[^"+e4+"]",e9="(?:\ud83c[\udde6-\uddff]){2}",e7="[\ud800-\udbff][\udc00-\udfff]",te="(?:"+e5+"|"+e8+")?",tt="[\\ufe0e\\ufe0f]?",tr="(?:\\u200d(?:"+[e6,e9,e7].join("|")+")"+tt+te+")*",tn=RegExp(e8+"(?="+e8+")|(?:"+[e6+e5+"?",e5,e9,e7,"["+e4+"]"].join("|")+")"+(tt+te+tr),"g"),tu=function(e){return function(t){var r,n=e3(t=eZ(t))?e3(r=t)?r.match(tn)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e1(n,1).join(""):t.slice(1);return u[e]()+a}},ta=tu("toUpperCase"),ti=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},to=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,td=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tf="\ud800-\udfff",tp="\\u2700-\\u27bf",th="a-z\\xdf-\\xf6\\xf8-\\xff",tm="A-Z\\xc0-\\xd6\\xd8-\\xde",tg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ty="['’]",tb="["+tg+"]",tv="["+th+"]",tx="[^"+tf+tg+"\\d+"+tp+th+tm+"]",tE="(?:\ud83c[\udde6-\uddff]){2}",tC="[\ud800-\udbff][\udc00-\udfff]",tA="["+tm+"]",tS="(?:"+tv+"|"+tx+")",tD="(?:"+tA+"|"+tx+")",t_="(?:"+ty+"(?:d|ll|m|re|s|t|ve))?",tw="(?:"+ty+"(?:D|LL|M|RE|S|T|VE))?",tk="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tI="[\\ufe0e\\ufe0f]?",tT="(?:\\u200d(?:"+["[^"+tf+"]",tE,tC].join("|")+")"+tI+tk+")*",tF="(?:"+["["+tp+"]",tE,tC].join("|")+")"+(tI+tk+tT),tP=RegExp([tA+"?"+tv+"+"+t_+"(?="+[tb,tA,"$"].join("|")+")",tD+"+"+tw+"(?="+[tb,tA+tS,"$"].join("|")+")",tA+"?"+tS+"+"+t_,tA+"+"+tw,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tF].join("|"),"g"),tB=function(e,t,r){if(e=eZ(e),void 0===(t=r?void 0:t)){var n;return(n=e,tc.test(n))?e.match(tP)||[]:e.match(tl)||[]}return e.match(t)||[]},tj=RegExp("['’]","g"),tL=function(e){return function(t){var r;return ti(tB(((r=eZ(r=t))&&r.replace(ts,to).replace(td,"")).replace(tj,"")),e,"")}},tO=tL(function(e,t,r){return t=t.toLowerCase(),e+(r?ta(eZ(t).toLowerCase()):t)});function tR(e){var t=this.__data__=new eV(e);this.size=t.size}tR.prototype.clear=function(){this.__data__=new eV,this.size=0},tR.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tR.prototype.get=function(e){return this.__data__.get(e)},tR.prototype.has=function(e){return this.__data__.has(e)},tR.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eV){var n=r.__data__;if(!ez||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eG(n)}return r.set(e,t),this.size=r.size,this};var tM=t&&!t.nodeType&&t,tN=tM&&e&&!e.nodeType&&e,t$=tN&&tN.exports===tM?y.Buffer:void 0,tU=t$?t$.allocUnsafe:void 0,tV=function(e,t){if(t)return e.slice();var r=e.length,n=tU?tU(r):new e.constructor(r);return e.copy(n),n},tz=y.Uint8Array,tq=function(e){var t=new e.constructor(e.byteLength);return new tz(t).set(new tz(e)),t},tW=function(e,t){var r=t?tq(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tG=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tZ=function(e,t,r){(void 0===r||er(e[t],r))&&(void 0!==r||t in e)||et(e,t,r)},tH=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tK=function(e,t,r,n,u,a,i){var o=tH(e,r),s=tH(t,r),d=i.get(s);if(d){tZ(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=I(s),p=!f&&eC(s),h=!f&&!p&&eI(s);(l=s,f||p||h)?I(o)?l=o:w(o)&&ed(o)?l=K(o):p?(c=!1,l=tV(s,!0)):h?(c=!1,l=tW(s,!0)):l=[]:eY(s)||eb(s)?(l=o,eb(o))?l=ea(o,eL(o)):(!B(o)||L(o))&&(l="function"!=typeof s.constructor||ef(s)?{}:Z(eH(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tZ(e,r,l)},tX=function e(t,r,n,u,a){t!==r&&tG(r,function(i,o){if(a||(a=new tR),B(i))tK(t,r,o,n,e,u,a);else{var s=u?u(tH(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tZ(t,o,s)}},eL)},tJ=function e(t,r,n,u,a,i){return B(t)&&B(r)&&(i.set(r,t),tX(t,r,void 0,e,i),i.delete(r)),t},tQ=(d=function(e,t,r,n){tX(e,t,r,n)},eo(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&el(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),tY=eo(function(e){return e.push(void 0,tJ),H(tQ,void 0,e)}),t0=tL(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t1=tu("toLowerCase"),t2=tL(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
15
+ ${r}}`))}(t,o,d))}}}({discriminant:d,ifStatements:f},s,a)),yield p}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[n]:"Use `switch` instead of multiple `else-if`."}}}}()),lo=iw(function(){if(aH)return aK;aH=1;let{appendArgument:e}=s5(),{isMethodCall:t}=sS(),r="require-number-to-fixed-digits-argument";return aK={create:n=>({CallExpression(u){if(!t(u,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===u.callee.object.type)return;let{sourceCode:a}=n,[i,o]=a.getLastTokens(u,2);return{loc:{start:i.loc.start,end:o.loc.end},messageId:r,fix:t=>e(t,u,"0",a)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[r]:"Missing the digits argument."}}}}());function ls(e){return(ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ld(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||ll(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ll(e,t){if(e){if("string"==typeof e)return lc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lc(e,t):void 0}}function lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function lf(e,t){return e(t={exports:{}},t.exports),t.exports}var lp=lf(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new c).traverse(e,t)}return r={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"},u={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"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,g,y,h,b,x;for(this.__initialize(e,t),x={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==x){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(x),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[c=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(n,b[y])){if(p(s,h[g]))u=new l(b[y],[c,y],"Property",null);else{if(!f(b[y]))continue;u=new l(b[y],[c,y],null,null)}r.push(u)}}else if(f(b)){if(m(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,m,g,y,h,b,x,v,E;function A(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),x={},r=this.__worklist,n=this.__leavelist,m=new l(e,null,null,new d(v={root:e},"root")),r.push(m),n.push(m);r.length;)if((m=r.pop())!==x){if(void 0!==(c=this.__execute(t.enter,m))&&c!==a&&c!==i&&c!==o&&(m.ref.replace(c),m.node=c),this.__state!==o&&c!==o||(A(m),m.node=null),this.__state===a||c===a)return v.root;if((u=m.node)&&(r.push(x),n.push(m),this.__state!==i&&c!==i)){if(s=u.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(u)}for(g=h.length;(g-=1)>=0;)if(b=u[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new l(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new l(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(m=n.pop(),void 0!==(c=this.__execute(t.leave,m))&&c!==a&&c!==i&&c!==o&&m.ref.replace(c),this.__state!==o&&c!==o||A(m),this.__state===a||c===a)break;return v.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,g(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,g(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),lm=lf(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.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(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.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(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ex},p=ex,m=eg(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=ey([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=eg(">",!1),b=eg("~",!1),x=eg("+",!1),v=eg(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},A=eg("!",!1),C=eg("*",!1),D=eg("#",!1),S=eg("[",!1),w=eg("]",!1),T=/^[><!]/,F=ey([">","<","!"],!1,!1),_=eg("=",!1),k=function(e){return(e||"")+"="},I=/^[><]/,P=ey([">","<"],!1,!1),B=eg(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},O=eg('"',!1),R=/^[^\\"]/,L=ey(["\\",'"'],!0,!1),N=eg("\\",!1),M={type:"any"},$=function(e,t){return e+t},U=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=eg("'",!1),W=/^[^\\']/,q=ey(["\\","'"],!0,!1),V=/^[0-9]/,Z=ey([["0","9"]],!1,!1),G=eg("type(",!1),K=/^[^ )]/,H=ey([" ",")"],!0,!1),J=eg(")",!1),X=/^[imsu]/,Y=ey(["i","m","s","u"],!1,!1),Q=eg("/",!1),ee=/^[^\/]/,et=ey(["/"],!0,!1),er=eg(":not(",!1),en=eg(":matches(",!1),eu=eg(":has(",!1),ea=eg(":first-child",!1),ei=eg(":last-child",!1),eo=eg(":nth-child(",!1),es=eg(":nth-last-child(",!1),ed=eg(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],em={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function eg(e,t){return{type:"literal",text:e,ignoreCase:t}}function ey(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function eh(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ex(){var e,t,r,n,u=32*el+0,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(t=ev())!==c&&(r=eC())!==c&&ev()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ev())!==c&&(t=void 0),e=t),em[u]={nextPos:el,result:e},e)}function ev(){var e,r,n=32*el+1,u=em[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));return em[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=em[u];if(a)return el=a.nextPos,a.result;if(r=[],g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y)),n!==c)for(;n!==c;)r.push(n),g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y));else r=c;return r!==c&&(r=r.join("")),e=r,em[u]={nextPos:el,result:e},e}function eA(){var e,r,n,u=32*el+3,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(r=ev())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(h)),n!==c&&ev()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ev())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ev()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ev())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(x)),n!==c&&ev()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m)),r!==c&&(n=ev())!==c?e=r="descendant":(el=e,e=c)))),em[u]={nextPos:el,result:e},e)}function eC(){var e,r,n,u,a,i,o,s,d=32*el+5,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}function eD(){var e,t,r,n,u,a=32*el+6,i=em[a];return i?(el=i.nextPos,i.result):(e=el,(t=eA())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),em[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=ew())!==c){for(r=[],n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s=32*el+8,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(A)),r===c&&(r=null),r!==c){if(n=[],(u=eT())!==c)for(;u!==c;)n.push(u),u=eT();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function eT(){var e,r,n,u,a,i,o,s,d,l,f,p,m,g,y,h,b,x,ec,ef,ep,eg,ey,eh,ex,eA,eS,ew,eT,eI,eP,eB,ej,eO,eR,eL,eN,eM,e$,eU,ez,eW,eq,eV,eZ,eG,eK,eH,eJ,eX,eY,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=em[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=em[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(C)),r!==c&&(r={type:"wildcard",value:r}),e=r,em[n]={nextPos:el,result:e},e))===c&&(tu=(d=em[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(D)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),em[s]={nextPos:el,result:a},a))===c&&(tu=(y=em[g=32*el+12])?(el=y.nextPos,y.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ev()!==c&&(p=(ep=em[ef=32*el+16])?(el=ep.nextPos,ep.result):(h=el,(b=eF())!==c&&ev()!==c&&(x=(eA=em[ex=32*el+14])?(el=eA.nextPos,eA.result):(eg=el,33===t.charCodeAt(el)?(ey="!",el++):(ey=c,eb(A)),ey===c&&(ey=null),ey!==c?(61===t.charCodeAt(el)?(eh="=",el++):(eh=c,eb(_)),eh!==c?eg=ey=k(ey):(el=eg,eg=c)):(el=eg,eg=c),em[ex]={nextPos:el,result:eg},eg))!==c&&ev()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(G)),r!==c){if(ev()!==c){if(n=[],K.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(H)),u!==c)for(;u!==c;)n.push(u),K.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(H));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=em[n];if(u)return el=u.nextPos,u.result;if(e=[],X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y));else e=c;return em[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}()),ec!==c?h=b=j(b,x,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=eF())!==c&&ev()!==c&&(x=(eP=em[eI=32*el+13])?(el=eP.nextPos,eP.result):(eS=el,T.test(t.charAt(el))?(ew=t.charAt(el),el++):(ew=c,eb(F)),ew===c&&(ew=null),ew!==c?(61===t.charCodeAt(el)?(eT="=",el++):(eT=c,eb(_)),eT!==c?eS=ew=k(ew):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(I.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(P))),em[eI]={nextPos:el,result:eS},eS))!==c&&ev()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(O)),r!==c){for(n=[],R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(O)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(z)),r!==c){for(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(q)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(z)),u!==c?e=r=U(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return em[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=em[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}())===c&&(ec=(eR=em[eO=32*el+19])?(el=eR.nextPos,eR.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,em[eO]={nextPos:el,result:eB},eB)),ec!==c?h=b=j(b,x,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=eF())!==c&&(b={type:"attribute",name:b}),h=b)),em[ef]={nextPos:el,result:h},h))!==c&&ev()!==c?(93===t.charCodeAt(el)?(m="]",el++):(m=c,eb(w)),m!==c?l=f=p:(el=l,l=c)):(el=l,l=c),em[g]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[s]={nextPos:el,result:e},e}())===c&&(tu=(ez=em[eU=32*el+24])?(el=ez.nextPos,ez.result):(eL=el,":not("===t.substr(el,5)?(eN=":not(",el+=5):(eN=c,eb(er)),eN!==c&&ev()!==c&&(eM=eC())!==c&&ev()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(J)),e$!==c?eL=eN={type:"not",selectors:eM}:(el=eL,eL=c)):(el=eL,eL=c),em[eU]={nextPos:el,result:eL},eL))===c&&(tu=(eK=em[eG=32*el+25])?(el=eK.nextPos,eK.result):(eW=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ev()!==c&&(eV=eC())!==c&&ev()!==c?(41===t.charCodeAt(el)?(eZ=")",el++):(eZ=c,eb(J)),eZ!==c?eW=eq={type:"matches",selectors:eV}:(el=eW,eW=c)):(el=eW,eW=c),em[eG]={nextPos:el,result:eW},eW))===c&&(tu=(e0=em[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eH=el,":has("===t.substr(el,5)?(eJ=":has(",el+=5):(eJ=c,eb(eu)),eJ!==c&&ev()!==c&&(eX=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eD())!==c){for(n=[],u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=eD())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}())!==c&&ev()!==c?(41===t.charCodeAt(el)?(eY=")",el++):(eY=c,eb(J)),eY!==c?eH=eJ={type:"has",selectors:eX}:(el=eH,eH=c)):(el=eH,eH=c),em[eQ]={nextPos:el,result:eH},eH))===c&&(tu=(e4=em[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=e_(1)),e1=e2,em[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=em[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=ek(1)),e5=e8,em[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ev()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=e_(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ev()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(J)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=em[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),em[tr]={nextPos:el,result:e7},e7)),em[ta]={nextPos:el,result:tu},tu)}function eF(){var e,r,n,u,a,i,o,s=32*el+15,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function e_(e){return{type:"nth-child",index:{type:"literal",value:e}}}function ek(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=eh(n),i=eh(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function lg(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var ly="function"==typeof WeakMap?new WeakMap:null;function lh(e){if(null==e)return function(){return!0};if(null!=ly){var t=ly.get(e);return null!=t||(t=lb(e),ly.set(e,t)),t}return lb(e)}function lb(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(lh);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(lh);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(lh);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(lh);return function(e,t,r){var n=!1,u=[];return lp.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=lh(e.left),s=lh(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=lh(e.left),l=lh(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=lg(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=lg(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(lg(e,c))};case"type":return function(t){return e.value.value===ls(lg(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(lg(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(lg(e,c))};case"type":return function(t){return e.value.value!==ls(lg(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return lg(t,c)<=e.value.value};case"<":return function(t){return lg(t,c)<e.value.value};case">":return function(t){return lg(t,c)>e.value.value};case">=":return function(t){return lg(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=lh(e.left),g=lh(e.right);return function(t,r,n){return g(t,r,n)&&lE(t,m,r,"LEFT_SIDE",n)||e.left.subject&&m(t,r,n)&&lE(t,g,r,"RIGHT_SIDE",n)};case"adjacent":var y=lh(e.left),h=lh(e.right);return function(t,r,n){return h(t,r,n)&&lA(t,y,r,"LEFT_SIDE",n)||e.right.subject&&y(t,r,n)&&lA(t,h,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,x=lh(e.right);return function(e,t,r){return x(e,t,r)&&lC(e,t,b,r)};case"nth-last-child":var v=-e.index.value,E=lh(e.right);return function(e,t,r){return E(e,t,r)&&lC(e,t,v,r)};case"class":var A=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(A){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function lx(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:lp.VisitorKeys[n]?lp.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function lv(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===ls(e)&&"string"==typeof e[r]}function lE(e,t,r,n,u){var a=ld(r,1)[0];if(!a)return!1;for(var i=lx(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(lv(s[f],u)&&t(s[f],r,u))return!0}}return!1}function lA(e,t,r,n,u){var a=ld(r,1)[0];if(!a)return!1;for(var i=lx(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&lv(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&lv(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function lC(e,t,r,n){if(0===r)return!1;var u=ld(t,1)[0];if(!u)return!1;for(var a=lx(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function lD(e,t,r,n){if(t){var u=[],a=lh(t),i=(function e(t,r){if(null==t||"object"!=ls(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return lc(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||ll(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(lh);lp.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function lS(e,t,r){var n=[];return lD(e,t,function(e){n.push(e)},r),n}function lw(e){return lm.parse(e)}function lT(e,t,r){return lS(e,lw(t),r)}lT.parse=lw,lT.match=lS,lT.traverse=lD,lT.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),lh(t)(e,r,n))},lT.query=lT;var lF=iT(Object.freeze({__proto__:null,default:lT})),l_=iw(function(){if(a3)return a2;a3=1;let e=function(){if(aQ)return aY;aQ=1;let e=aX?aJ:(aX=1,aJ=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0});return aY=t=>{let r=e(t);if(0===r)return t;let n=RegExp(`^[ \\t]{${r}}`,"gm");return t.replace(n,"")}}(),t=a1?a0:(a1=1,a0=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}),{replaceTemplateElement:r}=s5(),{isMethodCall:n,isCallExpression:u,isTaggedTemplateLiteral:a}=sS(),{isNodeMatches:i}=sK(),o="template-indent",s=e=>n(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&u(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),d=new Map,l=e=>(d.has(e)||d.set(e,lF.parse(e)),d.get(e));return a2={create:n=>{let{sourceCode:u}=n,d={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...n.options[0]};d.comments=d.comments.map(e=>e.toLowerCase());let c=n=>{let a;let i="__PLACEHOLDER__"+Math.random(),s=n.quasis.map(e=>u.getText(e).slice(1,e.tail?-1:-2)).join(i),l=s.match(/\r?\n/);if(!l)return;let c=l[0],f=u.lines[n.loc.start.line-1].match(/^(\s*)\S/),p=f?f[1]:"";a="string"==typeof d.indent?d.indent:"number"==typeof d.indent?" ".repeat(d.indent):p.startsWith(" ")?" ":" ";let m=e(s).replaceAll(RegExp(`^${c}|${c}[ ]*$`,"g"),""),g=c+t(m,1,{indent:p+a})+c+p;if(g!==s)return{node:n,messageId:o,fix:e=>g.split(i).map((t,u)=>r(e,n.quasis[u],t))}},f=e=>{if(d.comments.length>0){let t=u.getTokenBefore(e,{includeComments:!0});if(t?.type==="Block"&&d.comments.includes(t.value.trim().toLowerCase()))return!0}if(s(e)||d.tags.length>0&&a(e,d.tags)||d.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&i(e.parent.callee,d.functions))return!0;if(d.selectors.length>0){let t=u.getAncestors(e).reverse();if(d.selectors.some(r=>lF.matches(e,l(r),t)))return!0}return!1};return{TemplateLiteral(e){if(f(e))return c(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[o]:"Templates should be properly indented."}}}}()),lk=iw(function(){if(a5)return a4;a5=1;let{isMethodCall:e}=sS(),{removeSpacesAfter:t}=s5(),r="no-await-in-promise-methods/error",n="no-await-in-promise-methods/suggestion",u=["all","allSettled","any","race"],a=t=>e(t,{object:"Promise",methods:u,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type;return a4={create:e=>({*CallExpression(u){if(a(u))for(let a of u.arguments[0].elements)a?.type==="AwaitExpression"&&(yield{node:a,messageId:r,data:{method:u.callee.property.name},suggest:[{messageId:n,*fix(r){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(a);yield r.remove(u),yield t(u,n,r)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[r]:"Promise in `Promise.{{method}}()` should not be awaited.",[n]:"Remove `await`."}}}}()),lI=iw(function(){if(a6)return a8;a6=1;let{fixSpaceAroundKeyword:e,addParenthesizesToReturnOrThrowExpression:t}=s5(),{needsSemicolon:r,isParenthesized:n,isOnSameLine:u}=sK(),a="no-negation-in-equality-check/error",i="no-negation-in-equality-check/suggestion",o=new Set(["===","!==","==","!="]),s=e=>"BinaryExpression"===e.type&&o.has(e.operator),d=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;return a8={create:o=>({BinaryExpression(l){let{operator:c,left:f}=l;if(!(s(l)&&d(f)&&!d(f.argument)))return;let{sourceCode:p}=o,m=p.getFirstToken(f),g=`${c.startsWith("!")?"=":"!"}${c.slice(1)}`;return{node:m,messageId:a,suggest:[{messageId:i,data:{operator:g},*fix(a){yield*e(a,l,p);let i=p.getTokenAfter(m),{parent:o}=l;"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type||n(l,p)||u(p.getFirstToken(o),i)||(yield*t(a,o,p)),yield a.remove(m),r(p.getTokenBefore(m),p,i.value)&&(yield a.insertTextAfter(m,";"));let s=p.getTokenAfter(f,e=>"Punctuator"===e.type&&e.value===c);yield a.replaceText(s,g)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[a]:"Negated expression is not allowed in equality check.",[i]:"Switch to '{{operator}}' check."}}}}()),lP=iw(function(){if(a7)return a9;a7=1;let{isMethodCall:e,isMemberExpression:t}=sS(),{removeArgument:r}=s5(),{isSameReference:n}=sK(),u="no-length-as-slice-end";return a9={create:a=>{a.on("CallExpression",i=>{if(!e(i,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let o=i.arguments[1],s="ChainExpression"===o.type?o.expression:o;if(t(s,{property:"length",computed:!1})&&n(i.callee.object,s.object))return{node:s,messageId:u,fix:e=>r(e,o,a.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[u]:"Passing `….length` as the `end` argument is unnecessary."}}}}()),lB=iw(function(){if(it)return ie;it=1;let{findVariable:e}=sy,t=sB(),{renameVariable:r}=s5(),{isMethodCall:n}=sS(),u="catch-error-name",a=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(n(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||n(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;return ie={create:n=>{let i={name:"error",ignore:[],...n.options[0]},{name:o}=i,s=i.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),d=e=>e===o||s.some(t=>t.test(e))||e.endsWith(o)||e.endsWith(o.charAt(0).toUpperCase()+o.slice(1));return{Identifier(i){if(("CatchClause"!==i.parent.type||i.parent.param!==i)&&!a(i))return;let s=i.name;if(d(s)||d(s.replaceAll(/_+$/g,"")))return;let l=e(n.sourceCode.getScope(i),i);if(!l||"_"===s&&0===l.references.length)return;let c=t(o,[l.scope,...l.references.map(({from:e})=>e)]),f={node:i,messageId:u,data:{originalName:s,fixedName:c||o}};return c&&(f.fix=e=>r(l,c,e)),f}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[u]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}}()),lj={exports:{}};lj.exports;var lO=iw(function(){if(ia)return iu;ia=1;let{upperFirst:e}=(ir||(ir=1,!function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(m,{camelCase:()=>tL,defaultsDeep:()=>t0,kebabCase:()=>t1,lowerFirst:()=>t2,snakeCase:()=>t3,upperFirst:()=>ti}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),m);var g="object"==typeof iS&&iS&&iS.Object===Object&&iS,y="object"==typeof self&&self&&self.Object===Object&&self,h=g||y||Function("return this")(),b=h.Symbol,x=Object.prototype,v=x.hasOwnProperty,E=x.toString,A=b?b.toStringTag:void 0,C=function(e){var t=v.call(e,A),r=e[A];try{e[A]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[A]=r:delete e[A]),u},D=Object.prototype.toString,S=b?b.toStringTag:void 0,w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?C(e):D.call(e)},T=function(e){return null!=e&&"object"==typeof e},F=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},_=Array.isArray,k=b?b.prototype:void 0,I=k?k.toString:void 0,P=function e(t){if("string"==typeof t)return t;if(_(t))return F(t,e)+"";if("symbol"==typeof t||T(t)&&"[object Symbol]"==w(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},B=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},j=function(e){return e},O=function(e){if(!B(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},R=h["__core-js_shared__"],L=(r=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,M=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},$=/^\[object .+?Constructor\]$/,U=Object.prototype,z=Function.prototype.toString,W=U.hasOwnProperty,q=RegExp("^"+z.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=function(e){return!!B(e)&&(!L||!(L in e))&&(O(e)?q:$).test(M(e))},Z=function(e,t){var r=null==e?void 0:e[t];return V(r)?r:void 0},G=Object.create,K=function(){function e(){}return function(t){if(!B(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),H=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},J=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},X=Date.now,Y=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=(n=Y?function(e,t){return Y(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:j,u=0,a=0,function(){var e=X(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),ee=/^(?:0|[1-9]\d*)$/,et=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ee.test(e))&&e>-1&&e%1==0&&e<t},er=function(e,t,r){"__proto__"==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},en=function(e,t){return e===t||e!=e&&t!=t},eu=Object.prototype.hasOwnProperty,ea=function(e,t,r){var n=e[t];eu.call(e,t)&&en(n,r)&&(void 0!==r||t in e)||er(e,t,r)},ei=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?er(r,o,s):ea(r,o,s)}return r},eo=Math.max,es=function(e,t){var r;return Q((r=eo(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=eo(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=j(a),H(e,this,i)}),e+"")},ed=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff},el=function(e){return null!=e&&ed(e.length)&&!O(e)},ec=function(e,t,r){if(!B(r))return!1;var n=typeof t;return("number"==n?!!(el(r)&&et(t,r.length)):"string"==n&&t in r)&&en(r[t],e)},ef=Object.prototype,ep=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ef)},em=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},eg=function(e){return T(e)&&"[object Arguments]"==w(e)},ey=Object.prototype,eh=ey.hasOwnProperty,eb=ey.propertyIsEnumerable,ex=eg(function(){return arguments}())?eg:function(e){return T(e)&&eh.call(e,"callee")&&!eb.call(e,"callee")},ev=t&&!t.nodeType&&t,eE=ev&&e&&!e.nodeType&&e,eA=eE&&eE.exports===ev?h.Buffer:void 0,eC=(eA?eA.isBuffer:void 0)||function(){return!1},eD={};eD["[object Float32Array]"]=eD["[object Float64Array]"]=eD["[object Int8Array]"]=eD["[object Int16Array]"]=eD["[object Int32Array]"]=eD["[object Uint8Array]"]=eD["[object Uint8ClampedArray]"]=eD["[object Uint16Array]"]=eD["[object Uint32Array]"]=!0,eD["[object Arguments]"]=eD["[object Array]"]=eD["[object ArrayBuffer]"]=eD["[object Boolean]"]=eD["[object DataView]"]=eD["[object Date]"]=eD["[object Error]"]=eD["[object Function]"]=eD["[object Map]"]=eD["[object Number]"]=eD["[object Object]"]=eD["[object RegExp]"]=eD["[object Set]"]=eD["[object String]"]=eD["[object WeakMap]"]=!1;var eS=t&&!t.nodeType&&t,ew=eS&&e&&!e.nodeType&&e,eT=ew&&ew.exports===eS&&g.process,eF=function(){try{var e=ew&&ew.require&&ew.require("util").types;if(e)return e;return eT&&eT.binding&&eT.binding("util")}catch(e){}}(),e_=eF&&eF.isTypedArray,ek=e_?function(e){return e_(e)}:function(e){return T(e)&&ed(e.length)&&!!eD[w(e)]},eI=Object.prototype.hasOwnProperty,eP=function(e,t){var r=_(e),n=!r&&ex(e),u=!r&&!n&&eC(e),a=!r&&!n&&!u&&ek(e),i=r||n||u||a,o=i?em(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||et(d,s)))&&o.push(d);return o},eB=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},ej=Object.prototype.hasOwnProperty,eO=function(e){if(!B(e))return eB(e);var t=ep(e),r=[];for(var n in e)"constructor"==n&&(t||!ej.call(e,n))||r.push(n);return r},eR=function(e){return el(e)?eP(e,!0):eO(e)},eL=Z(Object,"create"),eN=Object.prototype.hasOwnProperty,eM=Object.prototype.hasOwnProperty;function e$(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}e$.prototype.clear=function(){this.__data__=eL?eL(null):{},this.size=0},e$.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},e$.prototype.get=function(e){var t=this.__data__;if(eL){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eN.call(t,e)?t[e]:void 0},e$.prototype.has=function(e){var t=this.__data__;return eL?void 0!==t[e]:eM.call(t,e)},e$.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eL&&void 0===t?"__lodash_hash_undefined__":t,this};var eU=function(e,t){for(var r=e.length;r--;)if(en(e[r][0],t))return r;return -1},ez=Array.prototype.splice;function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eW.prototype.clear=function(){this.__data__=[],this.size=0},eW.prototype.delete=function(e){var t=this.__data__,r=eU(t,e);return!(r<0)&&(r==t.length-1?t.pop():ez.call(t,r,1),--this.size,!0)},eW.prototype.get=function(e){var t=this.__data__,r=eU(t,e);return r<0?void 0:t[r][1]},eW.prototype.has=function(e){return eU(this.__data__,e)>-1},eW.prototype.set=function(e,t){var r=this.__data__,n=eU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eq=Z(h,"Map"),eV=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eZ=function(e,t){var r=e.__data__;return eV(t)?r["string"==typeof t?"string":"hash"]:r.map};function eG(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eG.prototype.clear=function(){this.size=0,this.__data__={hash:new e$,map:new(eq||eW),string:new e$}},eG.prototype.delete=function(e){var t=eZ(this,e).delete(e);return this.size-=+!!t,t},eG.prototype.get=function(e){return eZ(this,e).get(e)},eG.prototype.has=function(e){return eZ(this,e).has(e)},eG.prototype.set=function(e,t){var r=eZ(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this};var eK=function(e){return null==e?"":P(e)},eH=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eX=Function.prototype.toString,eY=eJ.hasOwnProperty,eQ=eX.call(Object),e0=function(e){if(!T(e)||"[object Object]"!=w(e))return!1;var t=eH(e);if(null===t)return!0;var r=eY.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eX.call(r)==eQ},e1=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e2=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e1(e,t,r)},e3=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e4=function(e){return e3.test(e)},e5="\ud800-\udfff",e8="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e6="\ud83c[\udffb-\udfff]",e9="[^"+e5+"]",e7="(?:\ud83c[\udde6-\uddff]){2}",te="[\ud800-\udbff][\udc00-\udfff]",tt="(?:"+e8+"|"+e6+")?",tr="[\\ufe0e\\ufe0f]?",tn="(?:\\u200d(?:"+[e9,e7,te].join("|")+")"+tr+tt+")*",tu=RegExp(e6+"(?="+e6+")|"+("(?:"+[e9+e8+"?",e8,e7,te,"["+e5+"]"].join("|"))+")"+(tr+tt+tn),"g"),ta=function(e){return function(t){var r,n=e4(t=eK(t))?e4(r=t)?r.match(tu)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e2(n,1).join(""):t.slice(1);return u[e]()+a}},ti=ta("toUpperCase"),to=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},ts=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tl=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tp="\ud800-\udfff",tm="\\u2700-\\u27bf",tg="a-z\\xdf-\\xf6\\xf8-\\xff",ty="A-Z\\xc0-\\xd6\\xd8-\\xde",th="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tb="['’]",tx="["+th+"]",tv="["+tg+"]",tE="[^"+tp+th+"\\d+"+tm+tg+ty+"]",tA="(?:\ud83c[\udde6-\uddff]){2}",tC="[\ud800-\udbff][\udc00-\udfff]",tD="["+ty+"]",tS="(?:"+tv+"|"+tE+")",tw="(?:"+tD+"|"+tE+")",tT="(?:"+tb+"(?:d|ll|m|re|s|t|ve))?",tF="(?:"+tb+"(?:D|LL|M|RE|S|T|VE))?",t_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tk="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+tp+"]",tA,tC].join("|")+")"+tk+t_+")*",tP="(?:"+["["+tm+"]",tA,tC].join("|")+")"+(tk+t_+tI),tB=RegExp([tD+"?"+tv+"+"+tT+"(?="+[tx,tD,"$"].join("|")+")",tw+"+"+tF+"(?="+[tx,tD+tS,"$"].join("|")+")",tD+"?"+tS+"+"+tT,tD+"+"+tF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tP].join("|"),"g"),tj=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tf.test(n))?e.match(tB)||[]:e.match(tc)||[]}return e.match(t)||[]},tO=RegExp("['’]","g"),tR=function(e){return function(t){var r;return to(tj(((r=eK(r=t))&&r.replace(td,ts).replace(tl,"")).replace(tO,"")),e,"")}},tL=tR(function(e,t,r){return t=t.toLowerCase(),e+(r?ti(eK(t).toLowerCase()):t)});function tN(e){var t=this.__data__=new eW(e);this.size=t.size}tN.prototype.clear=function(){this.__data__=new eW,this.size=0},tN.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tN.prototype.get=function(e){return this.__data__.get(e)},tN.prototype.has=function(e){return this.__data__.has(e)},tN.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eq||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eG(n)}return r.set(e,t),this.size=r.size,this};var tM=t&&!t.nodeType&&t,t$=tM&&e&&!e.nodeType&&e,tU=t$&&t$.exports===tM?h.Buffer:void 0,tz=tU?tU.allocUnsafe:void 0,tW=function(e,t){if(t)return e.slice();var r=e.length,n=tz?tz(r):new e.constructor(r);return e.copy(n),n},tq=h.Uint8Array,tV=function(e){var t=new e.constructor(e.byteLength);return new tq(t).set(new tq(e)),t},tZ=function(e,t){var r=t?tV(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tG=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||en(e[t],r))&&(void 0!==r||t in e)||er(e,t,r)},tH=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tH(e,r),s=tH(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=_(s),p=!f&&eC(s),m=!f&&!p&&ek(s);(l=s,f||p||m)?_(o)?l=o:T(o)&&el(o)?l=J(o):p?(c=!1,l=tW(s,!0)):m?(c=!1,l=tZ(s,!0)):l=[]:e0(s)||ex(s)?(l=o,ex(o))?l=ei(o,eR(o)):(!B(o)||O(o))&&(l="function"!=typeof s.constructor||ep(s)?{}:K(eH(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tX=function e(t,r,n,u,a){t!==r&&tG(r,function(i,o){if(a||(a=new tN),B(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tH(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eR)},tY=function e(t,r,n,u,a,i){return B(t)&&B(r)&&(i.set(r,t),tX(t,r,void 0,e,i),i.delete(r)),t},tQ=(d=function(e,t,r,n){tX(e,t,r,n)},es(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ec(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t0=es(function(e){return e.push(void 0,tY),H(tQ,void 0,e)}),t1=tR(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t2=ta("toLowerCase"),t3=tR(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
16
16
 
17
17
  lodash-es/lodash.js:
18
18
  (**
@@ -24,9 +24,9 @@ ${r}}`))}(t,o,d))}}}({discriminant:d,ifStatements:f},s,a)),yield p}}}},meta:{typ
24
24
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
25
25
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
26
26
  *)
27
- */}(lB,lB.exports)),lB.exports),t="invalidExport",r=/^(?:[A-Z][\da-z]*)*Error$/,n=t=>e(t).replace(/(?:error|)$/i,"Error"),u=e=>`
27
+ */}(lj,lj.exports)),lj.exports),t="invalidExport",r=/^(?:[A-Z][\da-z]*)*Error$/,n=t=>e(t).replace(/(?:error|)$/i,"Error"),u=e=>`
28
28
  constructor() {
29
29
  super();
30
30
  this.name = '${e}';
31
31
  }
32
- `,a=e=>{if(!e.superClass)return!1;let{name:t,type:n,property:u}=e.superClass;return"MemberExpression"===n&&({name:t}=u),r.test(t)},i=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,o=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},s=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*d(e,t){if(!a(t)||null===t.id)return;let{name:r}=t.id,d=n(r);r!==d&&(yield{node:t.id,message:`Invalid class name, use \`${d}\`.`});let{body:l,range:c}=t.body,f=l.find(e=>"constructor"===e.kind);if(!f){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([c[0],c[0]+1],u(r))};return}let p=f.value.body;if(!p)return;let h=p.body,m=h.find(e=>i(e)),g=h.findIndex(e=>o(e,"message"));if(m){if(-1!==g){let e=h[g];yield{node:m,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===m.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([m.range[0],m.range[0]+6],r.raw||r.name)}yield t.removeRange([0===g?p.range[0]:h[g-1].range[1],e.range[1]])}}}}else yield{node:p,message:"Missing call to `super()` in constructor."};let y=h.find(e=>o(e,"name"));if(y)y.expression.right.value!==r&&(yield{node:y?.expression.right??p,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=l.find(e=>s(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??p,message:`The \`name\` property should be set to \`${r}\`.`})}}let l=(e,r)=>{let n=r.left.property.name,u=r.right;if("ClassExpression"!==u.type||!a(u)||!u.id)return;let i=u.id.name;if(n!==i)return{node:r.left.property,messageId:t,fix:e=>e.replaceText(r.left.property,i)}};return ia={create:e=>{e.on("ClassDeclaration",t=>d(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return d(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return l(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[t]:"Exported error name should match error class"}}}}()),lL=iw(function(){if(is)return io;is=1;let{isParenthesized:e,isNotSemicolonToken:t}=sg,{needsSemicolon:r}=sZ(),{removeSpacesAfter:n}=s4(),u="no-lonely-if",a=e=>"IfStatement"===e.type&&!e.alternate,i=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function o(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}return io={create:s=>({IfStatement(d){var l;if(a(d)&&("BlockStatement"===d.parent.type&&1===d.parent.body.length&&d.parent.body[0]===d&&a(d.parent.parent)&&d.parent.parent.consequent===d.parent||a(d.parent)&&d.parent.consequent===d))return{node:d,messageId:u,fix:(l=s.sourceCode,function*(u){let a=("BlockStatement"===d.parent.type?d.parent:d).parent,s={...a,...o(a,l)},c={...d,...o(d,l)};if(yield u.remove(c.ifToken),yield n(c.ifToken,l,u),s.openingBraceToken){yield u.remove(s.openingBraceToken),yield n(s.openingBraceToken,l,u),yield u.remove(s.closingBraceToken);let e=l.getTokenBefore(s.closingBraceToken,{includeComments:!0});yield n(e,l,u)}for(let{test:t,openingParenthesisToken:r,closingParenthesisToken:a}of(yield u.insertTextBefore(s.openingParenthesisToken,"("),yield u.insertTextAfter(c.closingParenthesisToken,`)${"EmptyStatement"===c.consequent.type?"":" "}`),yield u.insertTextAfter(s.closingParenthesisToken," && "),[s,c]))(e(t,l)||!i(t))&&(yield u.remove(r),yield u.remove(a)),yield n(a,l,u);if("BlockStatement"!==c.consequent.type){let e=l.getLastToken(c.consequent);if(t(e)){let t=l.getTokenAfter(s);t&&r(e,l,t.value)&&(yield u.insertTextBefore(t,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[u]:"Unexpected `if` as the only statement in a `if` block without `else`."}}}}()),lO=iw(function(){if(il)return id;il=1;let{isMethodCall:e,isNumberLiteral:t}=sD(),{getCallExpressionTokens:r}=sZ(),n="no-magic-array-flat-depth";return id={create:u=>({CallExpression(a){if(!e(a,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[i]=a.arguments;if(!t(i)||1===i.value)return;let{sourceCode:o}=u,{openingParenthesisToken:s,closingParenthesisToken:d}=r(o,a);if(!o.commentsExistBetween(s,d))return{node:i,messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[n]:"Magic number as depth is not allowed."}}}}()),lR=iw(function(){if(ip)return ic;ip=1;let{removeParentheses:e,fixSpaceAroundKeyword:t,addParenthesizesToReturnOrThrowExpression:r}=s4(),{getParenthesizedRange:n,isParenthesized:u}=sb(),a=sM(),i=sU(),o="no-negated-condition";return ic={create:s=>{s.on(["IfStatement","ConditionalExpression"],d=>{if("IfStatement"===d.type&&(!d.alternate||"IfStatement"===d.alternate.type))return;let{test:l}=d;if(!(("UnaryExpression"!==l.type||"!"!==l.operator)&&("BinaryExpression"!==l.type||"!="!==l.operator&&"!=="!==l.operator)))return{node:l,messageId:o,*fix(o){let{sourceCode:c}=s;if(yield*function*(t,r,n){let{test:u}=r;if("UnaryExpression"===u.type){let a=n.getFirstToken(u);"IfStatement"===r.type&&(yield*e(u.argument,t,n)),yield t.remove(a);return}let a=n.getTokenAfter(u.left,e=>"Punctuator"===e.type&&e.value===u.operator);yield t.replaceText(a,"="+a.value.slice(1))}(o,d,c),yield*function*(e,t,r){let u="IfStatement"===t.type,[a,i]=[t.consequent,t.alternate].map(e=>{let t=n(e,r),a=r.text.slice(...t);return u&&"BlockStatement"!==e.type&&(a=`{${a}}`),{range:t,text:a}});a.text!==i.text&&(yield e.replaceTextRange(a.range,i.text),yield e.replaceTextRange(i.range,a.text))}(o,d,c),"ConditionalExpression"!==d.type||"UnaryExpression"!==l.type)return;yield*t(o,d,c);let{parent:f}=d,[p,h]=c.getFirstTokens(l,2);if(("ReturnStatement"===f.type||"ThrowStatement"===f.type)&&f.argument===d&&!a(p,h)&&!u(d,c)&&!u(l,c)){yield*r(o,f,c);return}i(c.getTokenBefore(d),c,h.value)&&(yield o.insertTextBefore(d,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[o]:"Unexpected negated condition."}}}}()),lM=iw(function(){if(im)return ih;im=1;let{isFunction:e}=sD(),t="identifier",r="non-identifier";return ih={create:()=>({AssignmentPattern(n){if(!("ObjectExpression"===n.right.type&&n.right.properties.length>0&&e(n.parent)&&n.parent.params.includes(n)))return;let{left:u,right:a}=n;return"Identifier"===u.type?{node:u,messageId:t,data:{parameter:u.name}}:{node:a,messageId:r}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[t]:"Do not use an object literal as default for parameter `{{parameter}}`.",[r]:"Do not use an object literal as default."}}}}()),lN=iw(function(){if(iv)return ib;iv=1;let{getNegativeIndexLengthNode:e,removeLengthNode:t}=function(){if(iy)return ig;iy=1;let e=sN(),{getParenthesizedRange:t}=sb(),{isNumberLiteral:r}=sD(),n=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,u=e=>r(e)&&e.value>0;return ig={getNegativeIndexLengthNode:function t(r,a){if(!r)return;let{type:i,operator:o,left:s,right:d}=r;return"BinaryExpression"===i&&"-"===o&&u(d)?n(s)&&e(s.object,a)?s:t(s,a):void 0},removeLengthNode:function(e,r,n){let[u,a]=t(e,n);return r.removeRange([u,a+n.text.slice(a).match(/\S|$/).index])}}}(),r=dG(),{isLiteral:n}=sD(),u="prefer-negative-index",a=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...r])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(r)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...r])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...r])}]]),i=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};return ib={create:r=>({CallExpression(o){if("MemberExpression"!==o.callee.type)return;let s=function(e){let{callee:t,arguments:r}=e,u=t.property.name,o=t.object,s=r;if(a.has(u))return{method:u,target:o,argumentsNodes:s};if("call"!==u&&"apply"!==u)return;let d="apply"===u;if(u=i(t.object),!a.has(u))return;let{supportObjects:l}=a.get(u),c=t.object.object;if("ArrayExpression"===c.type&&0===c.elements.length||"slice"===u&&n(c,"")||"prototype"===i(c)&&"Identifier"===c.object.type&&l.has(c.object.name)){if([o]=r,d){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;s=e.elements}else s=r.slice(1);return{method:u,target:o,argumentsNodes:s}}}(o);if(!s)return;let{method:d,target:l,argumentsNodes:c}=s,{argumentsIndexes:f}=a.get(d),p=f.map(t=>e(c[t],l)).filter(Boolean);if(0!==p.length)return{node:o,messageId:u,data:{method:d},*fix(e){let{sourceCode:n}=r;for(let r of p)yield t(r,e,n)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[u]:"Prefer negative index over length minus index for `{{method}}`."}}}}()),l$=ik(u),lU=iw(function(){if(iD)return iS;iD=1;let e=function(){if(iA)return iC;iA=1;let e=new Set(function(){if(iE)return ix;iE=1;let{builtinModules:e}=l$,t=["sys"];return ix=(e||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!t.includes(e)).sort()}()),t="node:";return iC=r=>{if("string"!=typeof r)throw TypeError("Expected a string");r.startsWith(t)&&(r=r.slice(t.length));let n=r.indexOf("/");return -1!==n&&n!==r.length-1&&(r=r.slice(0,n)),e.has(r)}}(),{replaceStringLiteral:t}=s4(),r=sA(),n="prefer-node-protocol";return iS={create:()=>({Literal(u){if(!(("ImportDeclaration"===u.parent.type||"ExportNamedDeclaration"===u.parent.type||"ImportExpression"===u.parent.type)&&u.parent.source===u||r(u.parent)&&u.parent.arguments[0]===u))return;let{value:a}=u;if(!("string"!=typeof a||a.startsWith("node:")||/^bun(?::|$)/.test(a))&&e(a))return{node:u,messageId:n,data:{moduleName:a},fix:e=>t(e,u,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}}}());let lV=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),lz=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),lq=Symbol("rule-id-no-match");var lW=a({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=lV.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=lz.exec(e.trim());return t?t.groups?.ruleId:lq}(n.value);u===lq||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),lG=a({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===s.ArrowFunctionExpression||(t.parent?.type===s.ReturnStatement?!lZ(t.parent):(t.parent?.type===s.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===s.LogicalExpression&&t===t.parent.right||t.parent?.type===s.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!lZ(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+ +(" "===s)])}}]})}})});function lZ(e){let t=e;for(;!d.isFunction(t)&&t.type!==s.Program;){if(t.parent.type===s.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function lH(e){for(let t=0,r=e.length;t<r;t++){let r=e[t];if("\n"===r)break;if("\r"===r&&"\n"===e[t+1])return"\r\n"}return"\n"}var lK=a({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=lH(t);return{MemberExpression(n){let u=n.object.range[1],a=lX(t.slice(u));if(a.includes("\n")){let t=r+((lX(a).split(/\r\n|\n/u).at(-1)??"")+a.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function lX(e){return e.slice(0,e.length-e.trimStart().length)}var lJ=a({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){let r=e.sourceCode.getText(),n=t=>r.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),u=lH(r),a=`,${u}`,{maxLineLength:i=80,maxObjectSize:o=3}=t,s=e=>r.slice(e.range[1]).trimStart().startsWith("//");return{ObjectExpression(t){let d=t.properties.map(e=>n(e).trim());if(d.length>0){let n=e.sourceCode.getText(t),l=d.length>o||d.some(lQ)||t.properties.some(s),c=lQ(n),f=!n.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${u}${d.join(a)}${u}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var n;let u=e.sourceCode.getLocFromIndex(t.range[0]).column;return u+d.reduce((e,t)=>e+t.length,0)+2*(d.length-1)+4+("number"==typeof(n=t.range[1])?r.slice(n):r.slice(...n.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=i&&e.report({fix:()=>({range:t.range,text:`{${d.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function lQ(e){return e.includes("\n")}var lY=a({name:"prefer-single-boolean-return",meta:{messages:{replaceIfThenElseByReturn:"Replace this if-then-else flow by a single return statement.",suggest:"Replace with single return statement",suggestCast:'Replace with single return statement using "!!" cast',suggestBoolean:"Replace with single return statement without cast (condition should be boolean!)"},schema:[],type:"suggestion",hasSuggestions:!0,docs:{description:'Return of boolean expressions should not be wrapped into an "if-then-else" statement',recommended:"recommended"}},create:e=>({IfStatement(t){t.parent.type!==s.IfStatement&&l1(t.consequent)&&function(e){if(e.alternate)return l1(e.alternate);let{parent:t}=e;if(t.type===s.BlockStatement){let r=t.body.indexOf(e);return l0(t.body[r+1])}return!1}(t)&&e.report({messageId:"replaceIfThenElseByReturn",node:t,suggest:function(t){var r,n;let u=e=>r=>{let n=`return ${e};`;if(t.alternate)return r.replaceText(t,n);let u=t.parent,a=u.body.indexOf(t),i=u.body[a+1],o=[t.range[0],i.range[1]];return r.replaceTextRange(o,n)},a=!1===((r=t.consequent).type===s.BlockStatement?r.body[0]:r).argument.value,i=!(((n=t.test).type===s.UnaryExpression||n.type===s.BinaryExpression)&&["!","==","===","!=","!==","<","<=",">",">=","in","instanceof"].includes(n.operator)),o=e.sourceCode.getText(t.test);return a?[{messageId:"suggest",fix:u(`!(${o})`)}]:i?[{messageId:"suggestCast",fix:u(`!!(${o})`)},{messageId:"suggestBoolean",fix:u(o)}]:[{messageId:"suggest",fix:u(o)}]}(t)})}})});function l0(e){return e?.type===s.ReturnStatement&&e.argument?.type===s.Literal&&"boolean"==typeof e.argument.value}function l1(e){return void 0!==e&&(e.type===s.BlockStatement&&1===e.body.length&&l0(e.body[0])||l0(e))}function l2(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>l2(e,t[n],r)):!(Array.isArray(e)||Array.isArray(t))&&e.type===t.type&&(n=r.getTokens(e),u=r.getTokens(t),n.length===u.length&&n.every((e,t)=>e.value===u[t].value))}function l3(e){let t=!1;return{branches:e.cases.reduce((r,n,u)=>{var a;return n.test||(t=!0),(u===e.cases.length-1||n.consequent.length>0)&&r.push((a=n.consequent).length>0&&a[a.length-1].type===s.BreakStatement?a.slice(0,-1):a),r},[]),endsWithDefault:t}}a({name:"no-all-duplicated-branches",meta:{messages:{removeOrEditConditionalStructure:"Remove this conditional structure or edit its code blocks so that they're not all the same.",returnsTheSameValue:'This conditional operation returns the same value whether the condition is "true" or "false".'},schema:[],type:"problem",docs:{description:"All branches in a conditional structure should not have exactly the same implementation",recommended:"recommended"}},create(e){return{IfStatement(r){if(r.parent?.type!==s.IfStatement){let{branches:n,endsWithElse:u}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===s.IfStatement)t.push(n.consequent),n=n.alternate;else{t.push(n),r=!0;break}return{branches:t,endsWithElse:r}}(r);u&&t(n)&&e.report({messageId:"removeOrEditConditionalStructure",node:r})}},SwitchStatement(r){let{branches:n,endsWithDefault:u}=l3(r);u&&t(n)&&e.report({messageId:"removeOrEditConditionalStructure",node:r})},ConditionalExpression(r){t([r.consequent,r.alternate])&&e.report({messageId:"returnsTheSameValue",node:r})}};function t(t){return t.length>1&&t.slice(1).every((r,n)=>l2(r,t[n],e.sourceCode))}}});var l4=a({name:"no-duplicated-branches",meta:{schema:[],type:"suggestion",docs:{description:"Two branches in a conditional structure should not have exactly the same implementation",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1871/javascript"},messages:{sameConditionalBlock:"This {{type}}'s code block is the same as the block for the {{type}} on line {{line}}."}},create(e){return{IfStatement(u){!function(u){if(u.parent.type===s.IfStatement)return;let{branches:a,endsWithElse:i}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===s.IfStatement)t.push(n.consequent),n=n.alternate;else{t.push(n),r=!0;break}return{branches:t,endsWithElse:r}}(u);if(r(a,i)){a.slice(1).forEach((e,t)=>n(e,a[t],"branch"));return}for(let r=1;r<a.length;r++)if(t([a[r]]))for(let t=0;t<r&&!function(t,r){let u=l8(t,r,e.sourceCode);return u&&"loc"in r&&n(t,r,"branch"),u}(a[r],a[t]);t++);}(u)},SwitchStatement(u){!function(u){let{cases:a}=u,{endsWithDefault:i}=l3(u),o=a.filter(e=>l6(l5(e.consequent)).length>0);if(r(o.map(e=>l6(l5(e.consequent))),i)){o.slice(1).forEach((e,t)=>n(e,o[t],"case"));return}for(let r=1;r<a.length;r++){let u=l6(l5(a[r].consequent));if(t(u)){for(let t=0;t<r;t++)if(l8(u,l6(l5(a[t].consequent)),e.sourceCode)){n(a[r],a[t],"case");break}}}}(u)}};function t(t){if(t.length>0){let r=[...e.sourceCode.getTokens(t[0]),...e.sourceCode.getTokens(t[t.length-1])].filter(e=>"{"!==e.value&&"}"!==e.value);return r.length>0&&r[r.length-1].loc.end.line>r[0].loc.start.line}return!1}function r(t,r){return!r&&t.length>1&&t.slice(1).every((r,n)=>l8(r,t[n],e.sourceCode))}function n(t,r,n){let u=r.loc;e.report({messageId:"sameConditionalBlock",data:{type:n,line:String(u.start.line)},node:t})}}});function l5(e){if(1===e.length){let t=e[0];if(t.type===s.BlockStatement)return t.body}return e}function l8(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>l8(e,t[n],r)):!(Array.isArray(e)||Array.isArray(t))&&e.type===t.type&&(n=r.getTokens(e),u=r.getTokens(t),n.length===u.length&&n.every((e,t)=>e.value===u[t].value))}function l6(e){return e.length>0&&e[e.length-1].type===s.BreakStatement?e.slice(0,-1):e}var l9=a({name:"comma-or-logical-or-case",meta:{type:"problem",docs:{description:"Comma and logical OR operators should not be used in switch cases",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3616/javascript"},schema:[],messages:{specifyCase:'Explicitly specify {{nesting}} separate cases that fall through; currently this case clause only works for "{{expression}}".'}},create(e){function t(t,r,n){e.report({messageId:"specifyCase",data:{nesting:n.toString(),expression:String(r.type===s.Literal?r.value:e.sourceCode.getText(r))},node:t})}return{"SwitchCase > SequenceExpression":function(e){let r=e.expressions;t(e,r[r.length-1],r.length)},"SwitchCase > LogicalExpression":function(r){var n;if(!((n=function(t){let r=e.sourceCode.getAncestors(t);for(let e=r.length-1;e>=0;e--)if(r[e].type===s.SwitchStatement)return r[e];throw Error("A switch case should have an enclosing switch statement")}(r)).discriminant.type===s.Literal&&!0===n.discriminant.value)){let e=function e(t,r){if("||"===t.operator)return t.left.type===s.LogicalExpression?e(t.left,r+1):[t.left,r+1]}(r,0);e&&t(r,e[0],e[1]+1)}}}}}),l7=a({name:"no-element-overwrite",meta:{schema:[],type:"problem",docs:{description:"Collection elements should not be replaced unconditionally",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4143/javascript"},messages:{verifyIntendedIndex:'Verify this is the index that was intended; "{{index}}" was already set on line {{line}}.'}},create(e){return{SwitchCase(e){t(e.consequent)},BlockStatement(e){t(e.body)},Program(e){t(e.body.filter(e=>!(e&&(e.type===s.ImportDeclaration||e.type===s.ExportNamedDeclaration||e.type===s.ExportDefaultDeclaration||e.type===s.ExportAllDeclaration))))}};function t(t){let r;let n=new Map;t.forEach(t=>{let u=function(t){if(t.type===s.ExpressionStatement)return function(t){if(t.type===s.AssignmentExpression&&"="===t.operator&&t.left.type===s.MemberExpression&&t.left.computed){let{left:r,right:n}=t,u=ct(r.property);if(void 0!==u&&!function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);return void 0!==u.find((e,t)=>{if(ce(e,n[0]))for(let e=t,r=0;e<u.length&&r<n.length;e++,r++)if(ce(u[e],n[r])){if(r===n.length-1)return!0}else break;return!1})}(r.object,n))return{collectionNode:r.object,indexOrKey:u,node:t}}}(t.expression)||function(e){if(e.type===s.CallExpression&&e.callee.type===s.MemberExpression){let t=e.callee;if(t.property.type===s.Identifier){let r=t.property.name,n="add"===r&&1===e.arguments.length,u="set"===r&&2===e.arguments.length;if(n||u){let r=ct(e.arguments[0]);if(r)return{collectionNode:t.object,indexOrKey:r,node:e}}}}}(t.expression)}(t);if(u){r&&!l2(u.collectionNode,r,e.sourceCode)&&n.clear();let t=n.get(u.indexOrKey);t?.node.loc&&e.report({node:u.node,messageId:"verifyIntendedIndex",data:{index:u.indexOrKey,line:t.node.loc.start.line}}),n.set(u.indexOrKey,u),r=u.collectionNode}else n.clear()})}}});function ce(e,t){return e.value===t.value}function ct(e){if(e.type===s.Literal){let{value:t}=e;return"number"==typeof t||"string"==typeof t?String(t):void 0}if(e.type===s.Identifier)return e.name}var cr=a({name:"class-prototype",meta:{schema:[],type:"suggestion",docs:{description:'Class methods should be used instead of "prototype" assignments',recommended:"recommended"},messages:{declareClass:'Declare a "{{class}}" class and move this declaration of "{{declaration}}" into it.'}},create(e){let t=e.sourceCode.parserServices,r=i(t)?cn:ca;return{AssignmentExpression({left:n,right:u}){if(n.type===s.MemberExpression&&r(u,t)){let[t,r]=[n.object,n.property];if(t.type===s.MemberExpression&&r.type===s.Identifier){let[u,a]=[t.object,t.property];u.type===s.Identifier&&a.type===s.Identifier&&"prototype"===a.name&&e.report({messageId:"declareClass",data:{class:u.name,declaration:r.name},node:n})}}}}}});function cn(e,t){o(t);let r=t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e));return!!r.symbol&&(r.symbol.flags&h.Function)!=0}let cu=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function ca(e,t){return cu.has(e.type)}var ci=a({name:"bool-param-default",meta:{schema:[],type:"suggestion",docs:{description:"Optional boolean parameters should have default value"},messages:{provideDefault:"Provide a default value for '{{parameter}}' so that the logic of the function is more evident when this parameter is missing. Consider defining another function if providing default value is not possible."}},create:e=>({"FunctionDeclaration, FunctionExpression, ArrowFunctionExpression":t=>{for(let r of t.params)r.type===s.Identifier&&function(e){return!!e.optional&&!!e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===s.TSBooleanKeyword||function(e){if(e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===s.TSUnionType){let t=e.typeAnnotation.typeAnnotation.types;return 2===t.length&&t.some(e=>e.type===s.TSBooleanKeyword)&&t.some(e=>e.type===s.TSUndefinedKeyword)}return!1}(e)}(r)&&e.report({messageId:"provideDefault",data:{parameter:r.name},node:r})}})}),co=a({name:"call-argument-line",meta:{type:"suggestion",docs:{description:"Function call arguments should not start on new lines",recommended:"recommended"},schema:[],messages:{moveArguments:"Make those call arguments start on line {{line}}.",moveTemplateLiteral:"Make this template literal start on line {{line}}."}},create(e){let t=e.sourceCode;return{CallExpression(r){if(r.callee.type!==s.CallExpression&&1===r.arguments.length){let n=r.typeArguments??r.callee,u=(t.getLastTokenBetween(n,r.arguments[0],cs)??t.getLastToken(n)).loc.end.line,{start:a}=t.getTokenAfter(n,cd).loc;if(u!==a.line){let{end:n}=t.getLastToken(r).loc;n.line===a.line?e.report({messageId:"moveArguments",data:{line:u.toString()},loc:{start:a,end:n}}):e.report({messageId:"moveArguments",data:{line:u.toString()},loc:a})}}},TaggedTemplateExpression(r){let{quasi:n}=r,u=t.getTokenBefore(n);if(u&&n.loc&&u.loc.end.line!==n.loc.start.line){let t={start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}};e.report({messageId:"moveTemplateLiteral",data:{line:u.loc.start.line.toString()},loc:t})}}}}});function cs(e){return e.type===l.Punctuator&&")"===e.value}function cd(e){return!cs(e)}var cl=a({name:"track-todo-fixme-comment",meta:{type:"suggestion",docs:{description:'Track uses of "FIXME" and "TODO" tags',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1134/javascript"},schema:[],messages:{fixme:"Take the required action to fix the issue indicated by this comment.",todo:'Complete the task associated to this "TODO" comment.'}},create(e){function t(t,r){e.sourceCode.getAllComments().forEach(n=>{let u=n.value.toLowerCase();if(u.includes(t)){let a=u.split(/\r\n?|\n/);for(let u=0;u<a.length;u++){let i=a[u].indexOf(t);i>=0&&!function(e,t,r){let n=t+r.length,u=t>0&&cc.test(e.charAt(t-1)),a=n<=e.length-1&&cc.test(e.charAt(n));return u||a}(a[u],i,t)&&e.report({messageId:r,loc:function(e,t,r,n){let u=r.loc.start.line+e,a=(0===e?r.loc.start.column+2:0)+t;return{start:{line:u,column:a},end:{line:u,column:a+n.length}}}(u,i,n,t)})}}})}return{"Program:exit":()=>{t("fixme","fixme"),t("todo","todo")}}}});let cc=RegExp("\\p{Letter}","u"),cf=["Array","Map","Set","WeakSet","WeakMap"],cp=new Set(["copyWithin","pop","reverse","shift","sort","clear","delete","concat","flat","flatMap","includes","indexOf","join","lastIndexOf","slice","toSource","toString","toLocaleString","get","has","entries","every","filter","find","findIndex","forEach","keys","map","reduce","reduceRight","some","values"]);var ch=a({name:"no-empty-collection",meta:{schema:[],type:"problem",docs:{description:"Empty collections should not be accessed or iterated",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4158/javascript"},messages:{reviewUsageOfIdentifier:'Review this usage of "{{identifierName}}" as it can only be empty here.'}},create(e){let t=t=>{if(t.references.length<=1||t.defs.some(e=>e.type===c.Scope.DefinitionType.Parameter||e.type===c.Scope.DefinitionType.ImportBinding))return;let r=[],n=!1;for(let e of t.references)if(e.isWriteOnly()){if(!function(e){let t=cm(e.identifier,e=>e.type===s.VariableDeclarator||e.type===s.ExpressionStatement);if(t){if(t.type===s.VariableDeclarator&&t.init)return cb(t.init);if(t.type===s.ExpressionStatement){let{expression:r}=t;return r.type===s.AssignmentExpression&&cy(e,r.left)&&cb(r.right)}}return!1}(e))return;n=!0}else{if(!(function(e){let{parent:t}=e.identifier;if(t&&t.type===s.MemberExpression){let e=t.parent;if(e&&e.type===s.CallExpression)return cv(t.property,...cp)}return!1}(e)||function(e){let t=cm(e.identifier,e=>e.type===s.ForOfStatement||e.type===s.ForInStatement);return t&&t.right===e.identifier}(e)||function(e){let{parent:t}=e.identifier;return t&&t.type===s.MemberExpression&&t.computed&&!function(e){let t=cg(e,new Set),r=t.find(e=>e.type===s.AssignmentExpression);return!!r&&"="===r.operator&&[e,...t].includes(r.left)}(t)}(e)))return;r.push(e)}n&&r.forEach(t=>{e.report({messageId:"reviewUsageOfIdentifier",data:{identifierName:t.identifier.name},node:t.identifier})})},r=e=>{e.type!==c.Scope.ScopeType.global&&e.variables.forEach(t),e.childScopes.forEach(r)};return{"Program:exit":t=>{r(e.sourceCode.getScope(t))}}}});function cm(e,t){return cg(e,new Set).find(t)}function cg(e,t){let r=[],n=e.parent;for(;n&&(r.push(n),!t.has(n.type));)n=n.parent;return r}function cy(e,t){return t.type===s.Identifier&&t===e.identifier}function cb(e){return e&&e.type===s.ArrayExpression?0===e.elements.length:!!e&&(e.type===s.CallExpression||e.type===s.NewExpression)&&cv(e.callee,...cf)&&0===e.arguments.length}function cv(e,...t){return e?.type===s.Identifier&&(0===t.length||t.some(t=>t===e.name))}let cx=new Set(["!=","==","!==","==="]),cE=new Set(["!==","!="]),cC=new Set(["+=","-="]);var cA=a({name:"no-equals-in-for-termination",meta:{schema:[],messages:{replaceOperator:"Replace '{{operator}}' operator with one of '<=', '>=', '<', or '>' comparison operators."},type:"suggestion",docs:{description:'Equality operators should not be used in "for" loop termination conditions',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S888/javascript"}},create(e){function t(t,r){if(t.type===s.Identifier){var n;let u=(n=t.name,function(e,t){let r;for(;null==r&&null!=e;)r=e.variables.find(e=>e.name===t),e=e.upper;return r}(e.sourceCode.getScope(t),n)),a=r.range;if(u&&a)return u.references.some(e=>{var t;return(t=e.identifier).range&&t.range[0]>a[0]&&t.range[1]<a[1]})}return!1}return{ForStatement(r){if(!r.test||!r.update)return;let n=r.test;n.type===s.BinaryExpression&&cx.has(n.operator)&&function e(t){return!!cS(t)||t.type===s.UpdateExpression||t.type===s.SequenceExpression&&t.expressions.every(e)}(r.update)&&!(function(e){let t=e.test,r=[];return function e(t,r){let n;cS(t)?n=t.left:t.type===s.UpdateExpression?n=t.argument:t.type===s.SequenceExpression&&t.expressions.forEach(t=>e(t,r)),n&&n.type===s.Identifier&&r.push(n.name)}(e.update,r),t.left.type!==s.Identifier||!r.includes(t.left.name)}(r)||function(e){let r=e.init,n=e.test;if(r&&cD(n)){let u=function(e,r){if(e.type===s.UpdateExpression&&!t(e.argument,r)||function(e){if(cS(e)){let t=e.right;return t.type===s.Literal&&1===t.value}return!1}(e)&&!t(e.left,r)){if("++"===e.operator||"+="===e.operator)return 1;if("--"===e.operator||"-="===e.operator)return -1}return 0}(e.update,e.body);if(0!==u){let e=c_(r),t=c_(n);return void 0!==e&&void 0!==t&&u===Math.sign(t-e)}}return!1}(r))&&e.report({messageId:"replaceOperator",data:{operator:n.operator},node:n})}}}});function cS(e){return e.type===s.AssignmentExpression&&cC.has(e.operator)}function cD(e){return e.type===s.BinaryExpression&&cE.has(e.operator)}function c_(e){return cD(e)?cw(e.right):e.type===s.VariableDeclaration&&1===e.declarations.length?cw(e.declarations[0].init):e.type===s.AssignmentExpression?cw(e.right):void 0}function cw(e){if(e&&e.type===s.Literal&&"number"==typeof e.value)return e.value}var ck=a({name:"no-top-level-this",meta:{hasSuggestions:!0,schema:[],messages:{removeThis:'Remove the use of "this".',suggestRemoveThis:'Remove "this"',suggestUseGlobalThis:'Replace "this" with "globalThis" object'},type:"suggestion",docs:{description:'The global "this" object should not be used',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S2990/javascript"},fixable:"code"},create:e=>({'MemberExpression[object.type="ThisExpression"]':t=>{let r=e.sourceCode.getScope(t).variableScope.type,n=e.sourceCode.getAncestors(t).some(e=>e.type===s.ClassDeclaration||e.type===s.ClassExpression);if((r===c.Scope.ScopeType.global||r===c.Scope.ScopeType.module)&&!n){let r=[];if(!t.computed){let n=e.sourceCode.getText(t.property);r.push({messageId:"suggestRemoveThis",fix:e=>e.replaceText(t,n)},{messageId:"suggestUseGlobalThis",fix:e=>e.replaceText(t.object,"globalThis")})}e.report({messageId:"removeThis",node:t.object,suggest:r})}}})}),cI=a({name:"no-invariant-returns",meta:{schema:[],type:"suggestion",docs:{description:"Function returns should not be invariant",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3516/javascript",requiresTypeChecking:!1},messages:{refactorReturn:"Refactor this function to only return once or not always return the same value."}},create(e){let t=[],r=[],n=[],u=r=>(function(t,r){!(!r||n.some(e=>e.reachable)||r.containsReturnWithoutValue||r.returnStatements.length<=1||r.codePath.thrownSegments.length>0)&&function(e,t){let r=e[0],n=r?cP(r,t):void 0;if(void 0!==n)return e.slice(1).every(e=>cP(e,t)===n);if(r?.type===s.Identifier){let n=cT(r.name,t);if(n){let t=new Set(n.variable.references.slice(1).map(e=>e.identifier));return e.every(e=>t.has(e))}}return!1}(r.returnStatements.map(e=>e.argument),e.sourceCode.getScope(t))&&e.report({messageId:"refactorReturn",node:t})})(r,t[t.length-1]);return{onCodePathStart(e){t.push({codePath:e,containsReturnWithoutValue:!1,returnStatements:[]}),r.push(n),n=[]},onCodePathEnd(){t.pop(),n=r.pop()||[]},onCodePathSegmentStart(e){n.push(e)},onCodePathSegmentEnd(){n.pop()},ReturnStatement(e){if(t.length){let r=t[t.length-1];r.containsReturnWithoutValue=r.containsReturnWithoutValue||!e.argument,r.returnStatements.push(e)}},"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}});function cT(e,t){let r=t.set.get(e);if(r&&!r.references.slice(1).some(e=>e.isWrite()||function(e){let t=cm(e.identifier,e=>e.type===s.ExpressionStatement||cu.has(e.type));return t&&t.type===s.ExpressionStatement&&(cF(t,e)||t.expression.type===s.CallExpression)}(e))){let e=null;return 1===r.defs.length&&r.defs[0].type===c.Scope.DefinitionType.Variable&&(e=r.defs[0].node.init),{variable:r,initExpression:e}}return null}function cF(e,t,r=!0){return e.expression.type===s.AssignmentExpression&&function e(t,r,n=!0){return t.type===s.MemberExpression&&(cy(r,t.object)||n&&e(t.object,r,n))}(e.expression.left,t,r)}function cP(e,t){if(e){if(e.type===s.Literal)return e.value;if(e.type===s.UnaryExpression){let r=cP(e.argument,t);return void 0===r?void 0:function(e,t){switch(e){case"-":return-Number(t);case"+":return Number(t);case"~":return~Number(t);case"!":return!t;case"typeof":return typeof t}}(e.operator,r)}if(e.type===s.Identifier){let r=cT(e.name,t);if(r?.initExpression)return cP(r.initExpression,t)}}}function cB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e,t){let r=t.variables.find(t=>t.name===e.name);return!r&&t.upper&&(r=t.upper.variables.find(t=>t.name===e.name)),r}class cL extends Set{constructor(...e){super(...e),cB(this,"type","AssignedValues")}}let cO=e=>new cL([e]),cR={type:"UnknownValue"};class cM{add(e){e.resolved&&this.references.add(e)}propagate(e){this.in.clear(),this.segment.prevSegments.forEach(t=>{this.join(e.get(t.id).out)});let t=new Map;return this.references.forEach(e=>this.updateProgramState(e,t)),!function(e,t){if(e.size!==t.size)return!1;for(let[n,u]of e){var r;if(!t.has(n)||("AssignedValues"===(r=t.get(n)).type&&"AssignedValues"===u.type?!function(e,t){return e.size===t.size&&[...e].every(e=>t.has(e))}(r,u):r!==u))return!1}return!0}(this.out,t)&&(this.out=t,!0)}updateProgramState(e,t){let r=e.resolved;if(!r||!e.isWrite())return;if(!e.writeExpr){t.set(r,cR);return}let n=cN(r,e.writeExpr,t,e.from);t.set(r,n)}join(e){for(let[t,r]of e.entries()){let e=this.in.get(t)??new cL;"AssignedValues"===e.type&&"AssignedValues"===r.type?(r.forEach(t=>e.add(t)),this.in.set(t,e)):this.in.set(t,cR)}}constructor(e){cB(this,"segment",void 0),cB(this,"in",void 0),cB(this,"out",void 0),cB(this,"references",void 0),this.segment=e,this.in=new Map,this.out=new Map,this.references=new Set}}function cN(e,t,r,n){if(!t)return cR;switch(t.type){case s.Literal:return t.raw?cO(t.raw):cR;case s.Identifier:{let u=cj(t,n);if(u&&u!==e)return r.get(u)??cR;return cR}default:return cR}}class c${constructor(e){cB(this,"codePath",void 0),cB(this,"reachingDefinitionsMap",void 0),cB(this,"reachingDefinitionsStack",void 0),cB(this,"segments",void 0),cB(this,"assignmentStack",void 0),this.codePath=e,this.reachingDefinitionsMap=new Map,this.reachingDefinitionsStack=[],this.segments=new Map,this.assignmentStack=[]}}class cU{isRhs(e){return this.node.type===s.AssignmentExpression?this.node.right===e:this.node.init===e}isLhs(e){return this.node.type===s.AssignmentExpression?this.node.left===e:this.node.id===e}add(e){let t=e.identifier;for(;t;){if(this.isLhs(t)){this.lhs.add(e);break}if(this.isRhs(t)){this.rhs.add(e);break}t=t.parent}}constructor(e){cB(this,"node",void 0),cB(this,"lhs",void 0),cB(this,"rhs",void 0),this.node=e,this.lhs=new Set,this.rhs=new Set}}function cV(e){return e[e.length-1]}var cz=a({name:"no-redundant-assignments",meta:{schema:[],type:"suggestion",docs:{description:"Assignments should not be redundant",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4165/javascript"},messages:{reviewAssignment:'Review this redundant assignment: "{{symbol}}" already holds the assigned value along all execution paths.'}},create(e){let t=[],r=new Map,n=new Map,u=[],a=[];return{AssignmentExpression:o,"VariableDeclarator[init]":o,"AssignmentExpression:exit":i,"VariableDeclarator[init]:exit":i,Identifier(r){!(r.parent.type===s.TSEnumBody||r.parent.type===s.TSEnumDeclaration||r.parent.type===s.TSEnumMember||e.sourceCode.getAncestors(r).some(e=>e.type===s.TSEnumDeclaration))&&!function(r){let{ref:u,variable:a}=function e(t,r){if(null===r)return{ref:null,variable:null};let n=r.references.find(e=>e.identifier===t);if(n)return{ref:n,variable:n.resolved};let u=r.variables.find(e=>e.defs.find(e=>e.name===t));return u?{ref:null,variable:u}:e(t,r.upper)}(r,e.sourceCode.getScope(r));if(u&&l(u),a){let e=cV(t).codePath.id;n.has(a)?n.get(a).add(e):n.set(a,new Set([e]))}}(r)},"Program:exit":()=>{!function(e){let t=Array.from(e.values(),e=>e.segment);for(;t.length;){let r=t.pop();e.get(r.id).propagate(e)&&r.nextSegments.forEach(e=>t.push(e))}}(r),r.forEach(d),r.clear(),n.clear(),t.length=0},onCodePathSegmentStart(e){r.set(e.id,new cM(e)),a.push(e)},onCodePathStart(e){var r;r=new c$(e),t.push(r),u.push(a),a.length=0},onCodePathEnd(){t.pop(),u.pop()||(a.length=0)},onCodePathSegmentEnd(){a.pop()}};function i(){let e=cV(t).assignmentStack.pop();e.rhs.forEach(l),e.lhs.forEach(l)}function o(e){cV(t).assignmentStack.push(new cU(e))}function d(t){let r=new Map(t.in);t.references.forEach(t=>{let u=t.resolved;if(!u||!t.isWrite()||!function(e){let t=e.resolved;return t&&!(e.identifier.type===s.Identifier&&e.identifier.parent?.type===s.AssignmentPattern)&&!t.name.startsWith("_")&&!function(e){if(e?.parent){let t=e.parent;return t&&t.type===s.AssignmentExpression&&"="!==t.operator}return!1}(e.writeExpr)&&(e.writeExpr?.type!==s.Identifier||e.resolved!==cj(e.writeExpr,e.from))&&!t.defs.some(e=>e.type===c.Scope.DefinitionType.Parameter||e.type===c.Scope.DefinitionType.Variable&&!e.node.init)&&!(n.get(t).size>1)}(t))return;let a=r.get(u),i=cN(u,t.writeExpr,r,t.from);if(a?.type==="AssignedValues"&&1===a.size){let[r]=[...a];!function({resolved:t},r,n,u,a){if("UnknownValue"===u.type||1!==u.size)return;let[i]=[...u];1===t.references.filter(e=>e.isWrite()).length||n!==i||e.report({node:r,messageId:"reviewAssignment",data:{symbol:a}})}(t,t.writeExpr,r,i,u.name)}r.set(u,i)})}function l(e){let{assignmentStack:n}=cV(t);if(n.length>0)cV(n).add(e);else for(let t=0,n=a.length;t<n;t++)(function(e){let t;return r.has(e.id)?t=r.get(e.id):(t=new cM(e),r.set(e.id,t)),t})(a[t]).add(e)}}}),cq=a({name:"no-same-line-conditional",meta:{schema:[],type:"layout",docs:{description:"Conditionals should start on new lines",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3972/javascript"},fixable:"whitespace",messages:{sameLineCondition:'Move this "if" to a new line or add the missing "else".'}},create(e){function t(t){let{sourceCode:r}=e;t.reduce((e,r,n)=>{let u=t[n-1];return r.type===s.IfStatement&&u&&u.type===s.IfStatement?[{first:u,following:r},...e]:e},[]).forEach(t=>{let n=t.first,u=t.following;if(n.loc&&u.loc&&n.loc.end.line===u.loc.start.line&&n.loc.start.line!==u.loc.end.line){let t=r.getFirstToken(u);e.report({messageId:"sameLineCondition",loc:t.loc,fix:e=>e.replaceTextRange([n.range[1],u.range[0]],"\n"+" ".repeat(n.loc.start.column))})}})}return{Program:e=>t(e.body),BlockStatement:e=>t(e.body),SwitchCase:e=>t(e.consequent)}}}),cW=a({name:"no-small-switch",meta:{schema:[],messages:{replaceSwitch:'Replace this "switch" statement by "if" statements to increase readability.'},type:"suggestion",docs:{description:'"if" statements should be preferred over "switch" when simpler',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1301/javascript"}},create:e=>({SwitchStatement(t){let{cases:r}=t,n=r.some(e=>!e.test);if(r.length<2||2===r.length&&n){let r=e.sourceCode.getFirstToken(t);r&&e.report({messageId:"replaceSwitch",loc:r.loc})}}})});let cG=["Array","Map","Set","WeakSet","WeakMap"],cZ=["copyWithin","fill","pop","push","reverse","set","shift","sort","splice","unshift","add","clear","delete"];var cH=a({name:"no-unused-collection",meta:{schema:[],messages:{unusedCollection:"Either use this collection's contents or remove the collection."},type:"suggestion",docs:{description:"Collection contents should be used",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4030/javascript",requiresTypeChecking:!1}},create:e=>({"Program:exit":t=>{let r=[];(function e(t,r){t.type!==c.Scope.ScopeType.global&&t.variables.forEach(e=>{(function(e){if(function(e){if(!e.defs.length)return;let t=e.defs[0];return t.node.parent?.parent?.type.startsWith("Export")}(e)||e.references.length<=1)return!1;let t=!1;for(let r of e.references)if(r.isWriteOnly()){if(!function(e){let t=cm(e.identifier,e=>e.type===s.VariableDeclarator||e.type===s.ExpressionStatement);if(t){if(t.type===s.VariableDeclarator&&t.init)return cK(t.init);if(t.type===s.ExpressionStatement){let{expression:r}=t;return r.type===s.AssignmentExpression&&cy(e,r.left)&&cK(r.right)}}return!1}(r))return!1;t=!0}else if(function(e){let t=cm(e.identifier,e=>e.type===s.ExpressionStatement);return!t||!(cF(t,e,!1)||function(e,t){if(e.expression.type===s.CallExpression){let{callee:r}=e.expression;if(r.type===s.MemberExpression){let{property:e,object:n}=r;return cy(t,n)&&cv(e,...cZ)}}return!1}(t,e))}(r))return!1;return t})(e)&&r.push(e)}),t.childScopes.forEach(t=>{e(t,r)})})(e.sourceCode.getScope(t),r),r.forEach(t=>{e.report({messageId:"unusedCollection",node:t.identifiers[0]})})}})});function cK(e){return!!e&&e.type===s.ArrayExpression||!!e&&(e.type===s.CallExpression||e.type===s.NewExpression)&&cv(e.callee,...cG)}var cX=a({name:"no-useless-plusplus",meta:{schema:[],type:"problem",docs:{description:"Values should not be uselessly incremented",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S2123/javascript"},messages:{removeIncrement:"Remove this {{updateOperator}}rement or correct the code not to waste it."}},create(e){function t(t){let r="++"===t.operator?"inc":"dec";e.report({messageId:"removeIncrement",data:{updateOperator:r},node:t})}return{"ReturnStatement > UpdateExpression":function(r){let n=r.argument;!r.prefix&&n.type===s.Identifier&&e.sourceCode.getScope(r).variables.some(e=>e.identifiers.some(e=>e.name===n.name))&&t(r)},AssignmentExpression(e){let r=e.right;if(r.type===s.UpdateExpression&&!r.prefix){let n=e.left;n.type===s.Identifier&&r.argument.type===s.Identifier&&r.argument.name===n.name&&t(r)}}}}});let cJ=new Set(["map","filter","reduce","reduceRight","forEach"]);var cQ=a({name:"no-chain-array-higher-order-functions",meta:{type:"problem",fixable:"code",docs:{description:"Prefer `.reduce` over chaining `.filter`, `.map` methods",recommended:"recommended"},schema:[],messages:{detected:"Detected the chaining of array methods: {{methods}}. Reaplce with `.reduce` to reduce array iterations and improve the performance."}},create:e=>({MemberExpression(t){if(cY(t)){let r=t.parent;cY(r.parent)&&e.report({node:r,messageId:"detected",data:{methods:`arr.${t.property.name}().${r.parent.property.name}()`}})}}})});function cY(e){return e.type===s.MemberExpression&&!e.computed&&e.property.type===s.Identifier&&!!(cJ.has(e.property.name)&&e.parent.type===s.CallExpression)}function c0(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||c1(e)||c2(e,null!=t?t:t=c3("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 c1(t){return c2(t,null!=e?e:e=c3("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 c2(e,t){let r=0,n=t.length/2|0,u=0,a=0,i=0;for(;r<n;)if(a=t[2*(u=(r+n)/2|0)],i=t[2*u+1],e<a)n=u;else{if(!(e>i))return!0;r=u+1}return!1}function c3(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class c4{constructor(e,t,r,n,u,a,i,o){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n,this._raw2022=u,this._raw2023=a,this._raw2024=i,this._raw2025=o}get es2018(){var e;return null!==(e=this._set2018)&&void 0!==e?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return null!==(e=this._set2019)&&void 0!==e?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return null!==(e=this._set2020)&&void 0!==e?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return null!==(e=this._set2021)&&void 0!==e?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return null!==(e=this._set2022)&&void 0!==e?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return null!==(e=this._set2023)&&void 0!==e?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return null!==(e=this._set2024)&&void 0!==e?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return null!==(e=this._set2025)&&void 0!==e?e:this._set2025=new Set(this._raw2025.split(" "))}}let c5=new Set(["General_Category","gc"]),c8=new Set(["Script","Script_Extensions","sc","scx"]),c6=new c4("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","","","","","","",""),c9=new c4("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","",""),c7=new c4("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","","","",""),fe=new c4("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function ft(e,t,r){return c5.has(t)?e>=2018&&c6.es2018.has(r):!!c8.has(t)&&(e>=2018&&c9.es2018.has(r)||e>=2019&&c9.es2019.has(r)||e>=2020&&c9.es2020.has(r)||e>=2021&&c9.es2021.has(r)||e>=2022&&c9.es2022.has(r)||e>=2023&&c9.es2023.has(r))}function fr(e){return e>=65&&e<=90||e>=97&&e<=122}function fn(e){return e>=48&&e<=57}function fu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function fa(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function fi(e){return e>=55296&&e<=56319}function fo(e){return e>=56320&&e<=57343}function fs(e,t){return(e-55296)*1024+(t-56320)+65536}class fd{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class fl{constructor(e,t){this.parent=e,this.base=null!=t?t:this}separatedFrom(e){var t,r;return!!(this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent))||null!==(r=null===(t=this.parent)||void 0===t?void 0:t.separatedFrom(e))&&void 0!==r&&r}child(){return new fl(this,null)}sibling(){return new fl(this.parent,this.base)}}class fc{constructor(){this.branchID=new fl(null,null),this.groupNames=new Map}clear(){this.branchID=new fl(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){0!==e&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}}let ff={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},fp={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class fh{constructor(){this._impl=ff,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(e,t,r,n){this._impl=n?fp:ff,this._s=e,this._end=r,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class fm extends SyntaxError{constructor(e,t){super(e),this.index=t}}let fg=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),fy=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),fb=new Set([40,41,91,93,123,125,47,45,92,124]),fv=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),fx={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},fE=Object.fromEntries(Object.entries(fx).map(([e,t])=>[t,e]));function fC(e){return fr(e)||95===e}class fA{constructor(e){this._reader=new fh,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=null!=e?e:{},this._groupSpecifiers=this.ecmaVersion>=2025?new fc:new fd}validateLiteral(e,t=0,r=e.length){if(this._srcCtx={source:e,start:t,end:r,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let n=this.index,u=e.includes("u",n),a=e.includes("v",n);this.validateFlagsInternal(e,n,r),this.validatePatternInternal(e,t+1,n-1,{unicode:u,unicodeSets:a})}else if(t>=r)this.raise("Empty");else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){this._srcCtx={source:e,start:t,end:r,kind:"flags"},this.validateFlagsInternal(e,t,r)}validatePattern(e,t=0,r=e.length,n){this._srcCtx={source:e,start:t,end:r,kind:"pattern"},this.validatePatternInternal(e,t,r,n)}validatePatternInternal(e,t=0,r=e.length,n){let u=this._parseFlagsOptionToMode(n,r);this._unicodeMode=u.unicodeMode,this._nFlag=u.nFlag,this._unicodeSetsMode=u.unicodeSetsMode,this.reset(e,t,r),this.consumePattern(),this._nFlag||!(this.ecmaVersion>=2018)||this._groupSpecifiers.isEmpty()||(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,r){let n=this.parseFlags(e,t,r);this.onRegExpFlags(t,r,n)}_parseFlagsOptionToMode(e,t){let r=!1,n=!1;return e&&this.ecmaVersion>=2015&&("object"==typeof e?(r=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):r=e),r&&n&&this.raise("Invalid regular expression flags",{index:t+1,unicode:r,unicodeSets:n}),{unicodeMode:r||n,nFlag:r&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return null!==(e=this._options.ecmaVersion)&&void 0!==e?e:2025}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,r){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,r),this._options.onFlags&&this._options.onFlags(e,t,r.global,r.ignoreCase,r.multiline,r.unicode,r.sticky,r.dotAll,r.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onModifiersEnter(e){this._options.onModifiersEnter&&this._options.onModifiersEnter(e)}onModifiersLeave(e,t){this._options.onModifiersLeave&&this._options.onModifiersLeave(e,t)}onAddModifiers(e,t,r){this._options.onAddModifiers&&this._options.onAddModifiers(e,t,r)}onRemoveModifiers(e,t,r){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(e,t,r)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,u){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,u)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,u,a,i)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t,r){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,r)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,r){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,r)}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(e,t,r){this._reader.reset(e,t,r,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e,t){var r,n,u;throw function(e,t,r,n){let u="";if("literal"===e.kind){let t=e.source.slice(e.start,e.end);t&&(u=`: ${t}`)}else if("pattern"===e.kind){let r=e.source.slice(e.start,e.end),n=`${t.unicode?"u":""}${t.unicodeSets?"v":""}`;u=`: /${r}/${n}`}return new fm(`Invalid regular expression${u}: ${n}`,r)}(this._srcCtx,{unicode:null!==(r=null==t?void 0:t.unicode)&&void 0!==r?r:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:null!==(n=null==t?void 0:t.unicodeSets)&&void 0!==n?n:this._unicodeSetsMode},null!==(u=null==t?void 0:t.index)&&void 0!==u?u:this.index,e)}eatRegExpBody(){let e=this.index,t=!1,r=!1;for(;;){var n;let u=this.currentCodePoint;if(-1===u||10===(n=u)||13===n||8232===n||8233===n){let e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(92===u)r=!0;else if(91===u)t=!0;else if(93===u)t=!1;else if(47===u&&!t||42===u&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(-1!==this.currentCodePoint){41===t&&this.raise("Unmatched ')'"),92===t&&this.raise("\\ at end of pattern"),(93===t||125===t)&&this.raise("Lone quantifier brackets");let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,r=!1,n=0,u=0;for(;-1!==(u=this.currentCodePoint);)r?r=!1:92===u?r=!0:91===u?t=!0:93===u?t=!1:40!==u||t||63===this.nextCodePoint&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(123)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}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(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),r=!1;if(this.eat(61)||(r=this.eat(33))){let n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,r=0,n=0,u=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(63))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;({min:r,max:n}=this._lastRange)}return u=!this.eat(63),e||this.onQuantifier(t,this.index,r,n,u),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,r=t;if(this.eat(44)&&(r=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(125))return!e&&r<t&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:t,max:r},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return!!this.eat(46)&&(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0)}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return!!this.eat2(40,63)&&(this.onGroupEnter(e),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(58)||(this.rewind(e+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0)}consumeModifiers(){let e=this.index,t=this.eatModifiers(),r=this.index,n=this.eat(45);if(!t&&!n)return!1;this.onModifiersEnter(e);let u=this.parseModifiers(e,r);if(this.onAddModifiers(e,r,u),n){let e=this.index;this.eatModifiers()||t||58!==this.currentCodePoint||this.raise("Invalid empty flags");let r=this.parseModifiers(e,this.index);for(let[e]of Object.entries(r).filter(([,e])=>e))u[e]&&this.raise(`Duplicated flag '${String.fromCodePoint(fx[e])}'`);this.onRemoveModifiers(e,this.index,r)}return this.onModifiersLeave(e,this.index),!0}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())t=this._lastStrValue;else if(63===this.currentCodePoint)return this.rewind(e),!1}else if(63===this.currentCodePoint)return this.rewind(e),!1;return this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return 92===this.currentCodePoint&&99===this.nextCodePoint&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return!(-1===t||fg.has(t))&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return -1!==t&&94!==t&&36!==t&&92!==t&&46!==t&&42!==t&&43!==t&&63!==t&&40!==t&&41!==t&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){let e=this.index;if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(e)}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let t=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"digit",!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"space",!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(t-1,this.index,"word",!0),{};let r=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(r=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return r&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(t-1,this.index,"property",n.key,n.value,r,null!==(e=n.strings)&&void 0!==e&&e),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let r=this.consumeClassContents();return this.eat(93)||(-1===this.currentCodePoint&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}return null}consumeClassContents(){if(this._unicodeSetsMode)return 93===this.currentCodePoint?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let n=this._lastIntValue;if(-1===r||-1===n){e&&this.raise("Invalid character class");continue}r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(-1!==t&&92!==t&&93!==t)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&99===this.currentCodePoint)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&99===this.currentCodePoint&&(fn(t=this.nextCodePoint)||95===t)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,r=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(r=this.consumeClassSetOperand())t=r.mayContainStrings;else{let e=this.currentCodePoint;92===e&&(this.advance(),this.raise("Invalid escape")),e===this.nextCodePoint&&fy.has(e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(38,38)){for(;38!==this.currentCodePoint&&(r=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),r.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise("Invalid character in character class")}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let r=this.consumeClassSetOperand();if(r){r.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,r=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(-1===r||-1===t)&&this.raise("Invalid character class"),r>t&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,r,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let r=this.consumeClassContents();return this.eat(93)||this.raise("Unterminated character class"),t&&r.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,t),r}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,r=!1;do this.consumeClassString(t++).mayContainStrings&&(r=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:r};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let t=this.index,r=0;for(this.onStringAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeClassSetCharacter();)r++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:1!==r}}consumeClassSetCharacter(){var e;let t=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!fy.has(r))&&-1!==r&&!fb.has(r))return this._lastIntValue=r,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(e=this.currentCodePoint,fv.has(e))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(t,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(t,this.index,this._lastIntValue),!0;this.rewind(t)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))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(){var e,t;let r=this.index,n=!this._unicodeMode&&this.ecmaVersion>=2020,u=this.currentCodePoint;return(this.advance(),92===u&&this.eatRegExpUnicodeEscapeSequence(n)?u=this._lastIntValue:n&&fi(u)&&fo(this.currentCodePoint)&&(u=fs(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||c1(t)))||36===e||95===e)?(this._lastIntValue=u,!0):(this.index!==r&&this.rewind(r),!1)}eatRegExpIdentifierPart(){var e;let t=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return(this.advance(),92===n&&this.eatRegExpUnicodeEscapeSequence(r)?n=this._lastIntValue:r&&fi(n)&&fo(this.currentCodePoint)&&(n=fs(n,this.currentCodePoint),this.advance()),c0(e=n)||36===e||8204===e||8205===e)?(this._lastIntValue=n,!0):(this.index!==t&&this.rewind(t),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return!(48!==this.currentCodePoint||fn(this.nextCodePoint))&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){let e=this.currentCodePoint;return!!fr(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,r=e||this._unicodeMode;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(fi(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(fo(e))return this._lastIntValue=fs(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){var e;let t=this.index;return!!(this.eat(123)&&this.eatHexDigits()&&this.eat(125))&&(e=this._lastIntValue)>=0&&e<=1114111||(this.rewind(t),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return -1!==e&&(this._unicodeMode?fg.has(e)||47===e:this.strict?!c0(e):this._nFlag?!(99===e||107===e):99!==e)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(ft(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){var t;let e=this._lastStrValue;if(ft(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&c7.es2018.has(e)||t>=2019&&c7.es2019.has(e)||t>=2021&&c7.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&fe.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";fC(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";fC(e=this.currentCodePoint)||fn(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;fn(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+fa(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;fu(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+fa(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return e>=48&&e<=55?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let r=0;r<e;++r){let e=this.currentCodePoint;if(!fu(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+fa(e),this.advance()}return!0}eatModifiers(){var e;let t=!1;for(;105===(e=this.currentCodePoint)||109===e||115===e;)this.advance(),t=!0;return t}parseModifiers(e,t){let{ignoreCase:r,multiline:n,dotAll:u}=this.parseFlags(this._reader.source,e,t);return{ignoreCase:r,multiline:n,dotAll:u}}parseFlags(e,t,r){let n={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},u=new Set;u.add(103),u.add(105),u.add(109),this.ecmaVersion>=2015&&(u.add(117),u.add(121),this.ecmaVersion>=2018&&(u.add(115),this.ecmaVersion>=2022&&(u.add(100),this.ecmaVersion>=2024&&u.add(118))));for(let a=t;a<r;++a){let r=e.charCodeAt(a);if(u.has(r)){let u=fE[r];n[u]&&this.raise(`Duplicated flag '${e[a]}'`,{index:t}),n[u]=!0}else this.raise(`Invalid flag '${e[a]}'`,{index:t})}return n}}let fS={},fD={},f_={};function fw(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class fk{constructor(e){var t;this._node=fS,this._expressionBufferMap=new Map,this._flags=fD,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!(null==e?void 0:e.strict),this.ecmaVersion=null!==(t=null==e?void 0:e.ecmaVersion)&&void 0!==t?t:2025}get pattern(){if("Pattern"!==this._node.type)throw Error("UnknownError");return this._node}get flags(){if("Flags"!==this._flags.type)throw Error("UnknownError");return this._flags}onRegExpFlags(e,t,{global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}){this._flags={type:"Flags",parent:null,start:e,end:t,raw:this.source.slice(e,t),global:r,ignoreCase:n,multiline:u,unicode:a,sticky:i,dotAll:o,hasIndices:s,unicodeSets:d}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){for(let r of(this._node.end=t,this._node.raw=this.source.slice(e,t),this._backreferences)){let e=r.ref,t="number"==typeof e?[this._capturingGroups[e-1]]:this._capturingGroups.filter(t=>t.name===e);if(1===t.length){let e=t[0];r.ambiguous=!1,r.resolved=e}else r.ambiguous=!0,r.resolved=t;for(let e of t)e.references.push(r)}}onAlternativeEnter(e){let t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){let t=this._node;if("Alternative"!==t.type)throw Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",modifiers:null,alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onModifiersEnter(e){let t=this._node;if("Group"!==t.type)throw Error("UnknownError");this._node={type:"Modifiers",parent:t,start:e,end:e,raw:"",add:null,remove:null},t.modifiers=this._node}onModifiersLeave(e,t){let r=this._node;if("Modifiers"!==r.type||"Group"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onAddModifiers(e,t,{ignoreCase:r,multiline:n,dotAll:u}){let a=this._node;if("Modifiers"!==a.type)throw Error("UnknownError");a.add={type:"ModifierFlags",parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:r,multiline:n,dotAll:u}}onRemoveModifiers(e,t,{ignoreCase:r,multiline:n,dotAll:u}){let a=this._node;if("Modifiers"!==a.type)throw Error("UnknownError");a.remove={type:"ModifierFlags",parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:r,multiline:n,dotAll:u}}onCapturingGroupEnter(e,t){let r=this._node;if("Alternative"!==r.type)throw Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,u){let a=this._node;if("Alternative"!==a.type)throw Error("UnknownError");let i=a.elements.pop();if(null==i||"Quantifier"===i.type||"Assertion"===i.type&&"lookahead"!==i.kind)throw Error("UnknownError");let o={type:"Quantifier",parent:a,start:i.start,end:t,raw:this.source.slice(i.start,t),min:r,max:n,greedy:u,element:i};a.elements.push(o),i.parent=o}onLookaroundAssertionEnter(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(u)}onLookaroundAssertionLeave(e,t){let r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){let u=this._node;if("Alternative"!==u.type)throw Error("UnknownError");u.elements.push({type:"Assertion",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){let u=this._node;if("Alternative"!==u.type&&"CharacterClass"!==u.type)throw Error("UnknownError");u.elements.push({type:"CharacterSet",parent:u,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,u,a,i){let o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw Error("UnknownError");let s={type:"CharacterSet",parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:r,strings:null,key:n};if(i){if("CharacterClass"===o.type&&!o.unicodeSets||a||null!==u)throw Error("UnknownError");o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}else o.elements.push(Object.assign(Object.assign({},s),{parent:o,strings:i,value:u,negate:a}))}onCharacter(e,t,r){let n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type&&"StringAlternative"!==n.type)throw Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){let n=this._node;if("Alternative"!==n.type)throw Error("UnknownError");let u={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,ambiguous:!1,resolved:f_};n.elements.push(u),this._backreferences.push(u)}onCharacterClassEnter(e,t,r){let n=this._node,u={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:r,negate:t,elements:[]};if("Alternative"===n.type){let e=Object.assign(Object.assign({},u),{parent:n});this._node=e,n.elements.push(e)}else if("CharacterClass"===n.type&&n.unicodeSets&&r){let e=Object.assign(Object.assign({},u),{parent:n,unicodeSets:r});this._node=e,n.elements.push(e)}else throw Error("UnknownError")}onCharacterClassLeave(e,t){let r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type&&"CharacterClass"!==r.parent.type)throw Error("UnknownError");let n=r.parent;r.end=t,r.raw=this.source.slice(e,t),this._node=n;let u=this._expressionBufferMap.get(r);if(!u)return;if(r.elements.length>0)throw Error("UnknownError");this._expressionBufferMap.delete(r);let a={type:"ExpressionCharacterClass",parent:n,start:r.start,end:r.end,raw:r.raw,negate:r.negate,expression:u};if(u.parent=a,r!==n.elements.pop())throw Error("UnknownError");n.elements.push(a)}onCharacterClassRange(e,t){let r=this._node;if("CharacterClass"!==r.type)throw Error("UnknownError");let n=r.elements,u=n.pop();if(!u||"Character"!==u.type)throw Error("UnknownError");if(!r.unicodeSets){let e=n.pop();if(!e||"Character"!==e.type||45!==e.value)throw Error("UnknownError")}let a=n.pop();if(!a||"Character"!==a.type)throw Error("UnknownError");let i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:a,max:u};a.parent=i,u.parent=i,n.push(i)}onClassIntersection(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassSubtraction"===a.type||"ClassIntersection"!==a.type&&!fw(a)||!fw(u))throw Error("UnknownError");let i={type:"ClassIntersection",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassSubtraction(e,t){var r;let n=this._node;if("CharacterClass"!==n.type||!n.unicodeSets)throw Error("UnknownError");let u=n.elements.pop(),a=null!==(r=this._expressionBufferMap.get(n))&&void 0!==r?r:n.elements.pop();if(!a||!u||"ClassIntersection"===a.type||"ClassSubtraction"!==a.type&&!fw(a)||!fw(u))throw Error("UnknownError");let i={type:"ClassSubtraction",parent:n,start:e,end:t,raw:this.source.slice(e,t),left:a,right:u};a.parent=i,u.parent=i,this._expressionBufferMap.set(n,i)}onClassStringDisjunctionEnter(e){let t=this._node;if("CharacterClass"!==t.type||!t.unicodeSets)throw Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let r=this._node;if("ClassStringDisjunction"!==r.type||"CharacterClass"!==r.parent.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onStringAlternativeEnter(e){let t=this._node;if("ClassStringDisjunction"!==t.type)throw Error("UnknownError");this._node={type:"StringAlternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let r=this._node;if("StringAlternative"!==r.type)throw Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}}let fI=/^[!=]=/,fT=new class{constructor(e){this._state=new fk(e),this._validator=new fA(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);let n=this._state.pattern,u=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:u};return n.parent=a,u.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}};var fF=a({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){o(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){return"string"===y(r,t.getTypeAtLocation(e))}function a(e,t){let r=d.getStaticValue(e,n);return null!=r&&r.value===t}function i(e){let t=d.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function l(t,r){if(t.type===s.MemberExpression)return"length"===d.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=d.getStaticValue(t,n),a=d.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function c(e,t,r){return e.type===s.UnaryExpression&&"-"===e.operator&&l(e.argument,t)||e.type===s.BinaryExpression&&"-"===e.operator&&l(e.left,r)&&l(e.right,t)}function f(t){return[e.sourceCode.getTokenAfter(t.object,d.isNotClosingParenToken).range[0],t.range[1]]}function p(e){let t=d.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let o=function(e,t){let r=fT.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==o?null:{isEndsWith:i,isStartsWith:a,text:o}}function*h(e,t,r,n,u){let a=f(function e(t){let r;if(t.type===s.ChainExpression)return e(t.expression);if((r=t.type===s.CallExpression?t.callee:t).type!==s.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*m(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(f(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,o;let c=fP(t),f=c.type===s.CallExpression,p=null;if(c.type===s.CallExpression?(1===c.arguments.length&&(p=c.arguments[0]),c=fP(c)):p=t.property,null==p||!fB(c)||!u(t.object))return;let m=(r=p,o=t.object,r.type===s.BinaryExpression&&"-"===r.operator&&l(r.left,o)&&a(r.right,1)),g=!m&&a(p,0);if(!g&&!m)return;let y=c;g&&!f&&function(e){if(!i(e))return!1;let t=d.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(y.right)||e.report({node:c,messageId:g?"preferStartsWith":"preferEndsWith",fix:e=>i(y.right)?h(e,y,g?"start":"end",y.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=fP(t),n=fP(r);1===r.arguments.length&&fB(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>m(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=fP(t),n=fP(r);1===r.arguments.length&&fB(n)&&n.right.type===s.BinaryExpression&&"-"===n.right.operator&&l(n.right.left,t.object)&&l(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>m(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=fP(t),a=fP(r);if(!fB(a)||!function(e){let t=d.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?p(r.arguments[0]):null;if(null==i)return;let{isStartsWith:o,text:s}=i;e.report({node:r,messageId:o?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(f(t),`${t.optional?"?.":"."}${o?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(s)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=fP(t),n=fP(r);if(!fB(n)||!u(t.object))return;let i=!1,o=!1;if(1===r.arguments.length?c(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&l(r.arguments[1],n.right)?o=!0:(l(r.arguments[1],t.object)||a(r.arguments[1],0))&&c(r.arguments[0],n.right,t.object)&&(i=!0)),!o&&!i)return;let d="slice"===t.property.name;e.report({node:n,messageId:o?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==s.Literal||"string"!=typeof n.right.value))return null;if(o){if(!l(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===s.BinaryExpression&&"-"===e.operator&&l(e.left,t.object)&&l(e.right,n.right)||d&&e.type===s.UnaryExpression&&"-"===e.operator&&l(e.argument,n.right)))return null}return h(e,n,o?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=fP(t),n=1===r.arguments.length?p(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,i=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==s.Literal&&n.type!==s.TemplateLiteral&&n.type!==s.Identifier&&n.type!==s.MemberExpression&&n.type!==s.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${i}(${JSON.stringify(a)}`)}})}}}});function fP(e){return f.nullThrows(e.parent?.type===s.ChainExpression?e.parent.parent:e.parent,f.NullThrowsReasons.MissingParent)}function fB(e){return e.type===s.BinaryExpression&&fI.test(e.operator)}var fj=a({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=d.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===s.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===s.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===s.VariableDeclaration){let e=n.declarations[0].id;e.type===s.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===s.Identifier&&t(e,r)}}}}),fL=a({name:"no-for-in-iterable",meta:{schema:[],type:"suggestion",docs:{description:'"for in" should not be used with iterables',recommended:"strict",url:"https://sonarsource.github.io/rspec/#/rspec/S4139/javascript"},messages:{useForOf:'Use "for...of" to iterate over this "{{iterable}}".'}},create(e){let t=e.sourceCode.parserServices,r=e=>{var r;return o(t),e.symbol&&fR.has(e.symbol.name)||((r=e).flags&m.StringLike)>0||r.symbol?.name==="String"||function(e,t){for(let r of e.isUnion()?e.types:[e])if(!function(e,t){let r=t.program.getTypeChecker();return"isArrayType"in r&&"function"==typeof r.isArrayType&&r.isArrayType(e)}(r,t))return!1;return!0}(t.program.getTypeChecker().getBaseConstraintOfType(e)??e,t)};return{ForInStatement(n){o(t);let u=fO(n.right,t);if(r(u)){let t=u.symbol?u.symbol.name:"String";e.report({messageId:"useForOf",data:{iterable:t},loc:e.sourceCode.getFirstToken(n).loc})}}}}});function fO(e,t){return t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e))}let fR=new Set(["Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","Set","Map"]);var fM=a({name:"only-await-thenable",meta:{schema:[],type:"suggestion",docs:{description:'"await" should only be used with promises',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4123/javascript"},messages:{refactorAwait:"Refactor this redundant 'await' on a non-promise."}},create(e){let t=e.sourceCode.parserServices;return o(t),{AwaitExpression(r){let n=fO(r.argument,t);(function(e,t){var r;if(e.argument.type!==s.CallExpression)return!1;let n=(r=e.argument,t.program.getTypeChecker().getResolvedSignature(t.esTreeNodeToTSNodeMap.get(r)));return n?.declaration&&function(e){let t=new Set(["return","returns"]);if(!e.jsDoc)return!1;for(let r of e.jsDoc)if(r.tags?.some(e=>t.has(e.tagName.escapedText.toString())))return!0;return!1}(n.declaration)})(r,t)||function(e){let t=e.getProperty("then");return t?.declarations?.some(e=>e.kind===g.MethodSignature||e.kind===g.MethodDeclaration||e.kind===g.PropertyDeclaration)}(n)||n.flags&m.Any||n.flags&m.Unknown||n.flags&m.Union||e.report({messageId:"refactorAwait",node:r})}}}}),fN=a({name:"no-undefined-optional-parameters",meta:{schema:[],type:"suggestion",docs:{description:'"undefined" should not be passed as the value of optional parameters',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4623/javascript",requiresTypeChecking:!0},fixable:"code",hasSuggestions:!0,messages:{removeUndefined:'Remove this redundant "undefined".',suggestRemoveUndefined:"Remove this redundant argument"}},create(e){let t=e.sourceCode.parserServices;return o(t),{CallExpression(r){let{arguments:n}=r;if(0===n.length)return;let u=n[n.length-1];u.type===s.Identifier&&"undefined"===u.name&&function(e,t,r){let n=r.program.getTypeChecker().getResolvedSignature(r.esTreeNodeToTSNodeMap.get(t));if(n){let t=n.declaration;if(t&&f$.has(t.kind)){let{parameters:r}=t,n=r[e];return n&&(n.initializer||n.questionToken)}}return!1}(n.length-1,r,t)&&e.report({messageId:"removeUndefined",node:u,suggest:[{messageId:"suggestRemoveUndefined",fix(t){if(1===r.arguments.length){let n=e.sourceCode.getTokenAfter(r.callee),u=e.sourceCode.getLastToken(r),[,a]=n.range,[i]=u.range;return t.removeRange([a,i])}let[,a]=n[n.length-2].range,[,i]=u.range;return t.removeRange([a,i])}}]})}}}});let f$=new Set([g.FunctionDeclaration,g.FunctionExpression,g.ArrowFunction,g.MethodDeclaration,g.Constructor,g.GetAccessor,g.SetAccessor]);function fU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class fV{visit(e,t){let r=e=>{switch(e.type){case s.AwaitExpression:case s.CallExpression:case s.NewExpression:this.callLikeExpressions.push(e);break;case s.FunctionDeclaration:case s.FunctionExpression:case s.ArrowFunctionExpression:return}(function(e,t){let r=[],n=t[e.type];if(n?.length)for(let t of n){let n=e[t];Array.isArray(n)?r.push(...n):r.push(n)}return r.filter(Boolean)})(e,t.sourceCode.visitorKeys).forEach(r)};r(e)}constructor(){fU(this,"callLikeExpressions",[])}}fU(fV,"getCallExpressions",(e,t)=>{let r=new fV;return r.visit(e,t),r.callLikeExpressions});var fz={rules:{"array/no-unneeded-flat-map":iZ,"browser/prefer-location-assign":iK,"jsx/no-template-literal":iJ,"jsx/no-unneeded-nested":iQ,"string/no-locale-case":i0,"string/no-simple-template-literal":i2,"type/no-instanceof-wrapper":i4,"unicode/no-bidi":ot,"unicode/no-invisible":on,"ban-eslint-disable":lW,"no-redundant-variable":ou,"no-single-return":oi,"prefer-early-return":os,"prefer-fetch":od,"prefer-timer-id":of,"no-return-await":lG,"no-expression-empty-lines":lK,"object-format":lJ,"prefer-single-boolean-return":lY,"no-all-duplicated-branches":l4,"no-duplicated-branches":l4,"bool-param-default":ci,"call-argument-line":co,"class-prototype":cr,"comma-or-logical-or-case":l9,"track-todo-fixme-comment":cl,"no-element-overwrite":l7,"no-empty-collection":ch,"no-equals-in-for-termination":cA,"no-top-level-this":ck,"no-invariant-returns":cI,"no-redundant-assignments":cz,"no-same-line-conditional":cq,"no-small-switch":cW,"no-unused-collection":cH,"no-useless-plusplus":cX,"no-chain-array-higher-order-functions":cQ,"string/prefer-string-starts-ends-with":fF,"string/no-unneeded-to-string":op,"type/no-force-cast-via-top-type":oh,"type/no-wrapper-type-reference":og,"no-default-error":oy,"no-export-const-enum":fj,"no-for-in-iterable":fL,"only-await-thenable":fM,"no-undefined-optional-parameters":fN,"no-try-promise":a({name:"no-try-promise",meta:{schema:[],type:"problem",docs:{description:'Promise rejections should not be caught by "try" blocks',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4822/javascript",requiresTypeChecking:!0},messages:{addAwait:"Consider using 'await' for the promise{{ending}} inside this 'try' or replace it with 'Promise.prototype.catch(...)' usage{{ending}}.",removeTry:"Consider removing this 'try' statement as promise{{ending}} rejection is already captured by '.catch()' method."}},create(e){let t=e.sourceCode.parserServices;return o(t),{TryStatement(r){if(r.handler){let n=[],u=[],a=!1;fV.getCallExpressions(r.block,e).forEach(e=>{if(e.type===s.AwaitExpression||!function(e,t){let r=t.esTreeNodeToTSNodeMap.get(e),n=t.program.getTypeChecker().getTypeAtLocation(r).getProperty("then");return!!(n&&n.flags&h.Method)}(e,t)){a=!0;return}!(e.parent&&(e.parent.type===s.AwaitExpression||e.parent.type===s.YieldExpression)||e.parent&&e.parent.type===s.MemberExpression&&e.parent.property.type===s.Identifier&&"then"===e.parent.property.name||e.type===s.CallExpression&&e.callee.type===s.MemberExpression&&e.callee.property.type===s.Identifier&&"catch"===e.callee.property.name)&&(e.parent&&e.parent.type===s.MemberExpression&&e.parent.property.type===s.Identifier&&"catch"===e.parent.property.name?u:n).push(e)}),a||(function(t,r){if(r.length>0){let n=r.length>1?"s":"",u=e.sourceCode.getFirstToken(t);e.report({messageId:"addAwait",data:{ending:n},loc:u.loc})}}(r,n),function(t,r,n){if(0===r.length&&n.length>0){let r=n.length>1?"s":"",u=e.sourceCode.getFirstToken(t);e.report({messageId:"removeTry",data:{ending:r},loc:u.loc})}}(r,n,u))}}}}}),"no-useless-string-operation":a({name:"no-useless-string-operation",meta:{schema:[],messages:{uselessStringOp:"{{symbol}} is an immutable object; you must either store or return the result of the operation."},type:"problem",docs:{description:"Results of operations on strings should not be ignored",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1154/javascript"}},create(e){let t=e.sourceCode.parserServices;return{'ExpressionStatement > CallExpression[callee.type="MemberExpression"]':r=>{let{object:n,property:u}=r.callee;if(o(t),(fO(n,t).flags&p.TypeFlags.StringLike)!=0&&u.type===s.Identifier){let t;e.report({messageId:"uselessStringOp",data:{symbol:((t=e.sourceCode.getText(n)).length>30&&(t="String"),t)},node:u})}}}}}),...Object.entries({"unicorn/better-regex":dM,"unicorn/catch-error-name":lP,"unicorn/custom-error-definition":lj,"unicorn/no-nested-ternary":sy,"unicorn/prefer-event-target":sH,"unicorn/prefer-keyboard-event-key":sK,"unicorn/prefer-text-content":sX,"unicorn/require-array-join-separator":s5,"unicorn/no-thenable":s8,"unicorn/no-invalid-remove-event-listener":s6,"unicorn/consistent-function-scoping":s9,"unicorn/no-new-buffer":s7,"unicorn/no-console-spaces":de,"unicorn/no-empty-file":dt,"unicorn/no-useless-fallback-in-spread":dr,"unicorn/no-useless-length-check":dn,"unicorn/no-useless-promise-resolve-reject":du,"unicorn/no-zero-fractions":da,"unicorn/prefer-export-from":di,"unicorn/prefer-native-coercion-functions":ds,"unicorn/no-document-cookie":dl,"unicorn/prefer-add-event-listener":dc,"unicorn/prefer-array-index-of":df,"unicorn/prefer-blob-reading-methods":dp,"unicorn/prefer-date-now":dh,"unicorn/prefer-dom-node-dataset":dm,"unicorn/prefer-modern-math-apis":dg,"unicorn/number-literal-case":dv,"unicorn/prefer-number-properties":dx,"unicorn/prefer-reflect-apply":dE,"unicorn/prefer-set-size":dC,"unicorn/prefer-string-replace-all":dS,"unicorn/prefer-string-slice":dD,"unicorn/prefer-string-trim-start-end":d_,"unicorn/no-unreadable-iife":dw,"unicorn/throw-new-error":dk,"unicorn/escape-case":dN,"unicorn/no-hex-escape":d$,"unicorn/prefer-prototype-methods":dU,"unicorn/error-message":dV,"unicorn/no-instanceof-array":dz,"unicorn/prefer-type-error":dq,"unicorn/consistent-destructuring":dW,"unicorn/new-for-builtins":dZ,"unicorn/no-array-push-push":dH,"unicorn/no-process-exit":dK,"unicorn/no-static-only-class":dQ,"unicorn/no-unreadable-array-destructuring":dY,"unicorn/no-useless-spread":d0,"unicorn/no-useless-switch-case":d1,"unicorn/no-useless-undefined":d2,"unicorn/numeric-separators-style":d3,"unicorn/prefer-array-find":d4,"unicorn/prefer-array-flat-map":d5,"unicorn/prefer-array-flat":d8,"unicorn/prefer-array-some":d6,"unicorn/prefer-code-point":d9,"unicorn/prefer-default-parameters":d7,"unicorn/prefer-logical-operator-over-ternary":le,"unicorn/prefer-optional-catch-binding":lt,"unicorn/prefer-regexp-test":lr,"unicorn/prefer-set-has":ln,"unicorn/prefer-string-raw":lu,"unicorn/prefer-switch":la,"unicorn/require-number-to-fixed-digits-argument":li,"unicorn/template-indent":lk,"unicorn/no-single-promise-in-promise-methods":dX,"unicorn/no-await-in-promise-methods":lI,"unicorn/no-negation-in-equality-check":lT,"unicorn/no-length-as-slice-end":lF,"unicorn/no-lonely-if":lL,"unicorn/no-magic-array-flat-depth":lO,"unicorn/no-negated-condition":lR,"unicorn/no-object-as-default-parameter":lM,"unicorn/prefer-negative-index":lN,"unicorn/prefer-node-protocol":lU}).reduce((e,[t,r])=>{var n;return e[t]={...r,meta:{schema:[],...r.meta,docs:{description:"",...r.meta.docs,url:iP(t)},..."defaultOptions"in r?{defaultOptions:r.defaultOptions}:{}},create:(n=r.create,e=>{let t={},r=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(n(new Proxy(e,{get:(e,t,n)=>"on"===t?(e,t)=>{for(let n of Array.isArray(e)?e:[e])r(n,t)}:"onExit"===t?(e,t)=>{for(let n of Array.isArray(e)?e:[e])r(`${n}:exit`,t)}:Reflect.get(e,t,n)}),void 0)||{}))u&&r(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)n&&function(e,t){if(e){for(let r of(iB(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=iO(r.fix)),iB(r.suggest))for(let e of r.suggest)"fix"in e&&"function"==typeof e.fix&&(e.fix=iO(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})},e},{})}};export{fz as default};
32
+ `,a=e=>{if(!e.superClass)return!1;let{name:t,type:n,property:u}=e.superClass;return"MemberExpression"===n&&({name:t}=u),r.test(t)},i=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,o=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},s=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*d(e,t){if(!a(t)||null===t.id)return;let{name:r}=t.id,d=n(r);r!==d&&(yield{node:t.id,message:`Invalid class name, use \`${d}\`.`});let{body:l,range:c}=t.body,f=l.find(e=>"constructor"===e.kind);if(!f){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([c[0],c[0]+1],u(r))};return}let p=f.value.body;if(!p)return;let m=p.body,g=m.find(e=>i(e)),y=m.findIndex(e=>o(e,"message"));if(g){if(-1!==y){let e=m[y];yield{node:g,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===g.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([g.range[0],g.range[0]+6],r.raw||r.name)}yield t.removeRange([0===y?p.range[0]:m[y-1].range[1],e.range[1]])}}}}else yield{node:p,message:"Missing call to `super()` in constructor."};let h=m.find(e=>o(e,"name"));if(h)h.expression.right.value!==r&&(yield{node:h?.expression.right??p,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=l.find(e=>s(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??p,message:`The \`name\` property should be set to \`${r}\`.`})}}let l=(e,r)=>{let n=r.left.property.name,u=r.right;if("ClassExpression"!==u.type||!a(u)||!u.id)return;let i=u.id.name;if(n!==i)return{node:r.left.property,messageId:t,fix:e=>e.replaceText(r.left.property,i)}};return iu={create:e=>{e.on("ClassDeclaration",t=>d(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return d(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return l(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[t]:"Exported error name should match error class"}}}}()),lR=iw(function(){if(io)return ii;io=1;let{isParenthesized:e,isNotSemicolonToken:t}=sy,{needsSemicolon:r}=sK(),{removeSpacesAfter:n}=s5(),u="no-lonely-if",a=e=>"IfStatement"===e.type&&!e.alternate,i=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function o(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}return ii={create:s=>({IfStatement(d){var l;if(a(d)&&("BlockStatement"===d.parent.type&&1===d.parent.body.length&&d.parent.body[0]===d&&a(d.parent.parent)&&d.parent.parent.consequent===d.parent||a(d.parent)&&d.parent.consequent===d))return{node:d,messageId:u,fix:(l=s.sourceCode,function*(u){let a=("BlockStatement"===d.parent.type?d.parent:d).parent,s={...a,...o(a,l)},c={...d,...o(d,l)};if(yield u.remove(c.ifToken),yield n(c.ifToken,l,u),s.openingBraceToken){yield u.remove(s.openingBraceToken),yield n(s.openingBraceToken,l,u),yield u.remove(s.closingBraceToken);let e=l.getTokenBefore(s.closingBraceToken,{includeComments:!0});yield n(e,l,u)}for(let{test:t,openingParenthesisToken:r,closingParenthesisToken:a}of(yield u.insertTextBefore(s.openingParenthesisToken,"("),yield u.insertTextAfter(c.closingParenthesisToken,`)${"EmptyStatement"===c.consequent.type?"":" "}`),yield u.insertTextAfter(s.closingParenthesisToken," && "),[s,c]))(e(t,l)||!i(t))&&(yield u.remove(r),yield u.remove(a)),yield n(a,l,u);if("BlockStatement"!==c.consequent.type){let e=l.getLastToken(c.consequent);if(t(e)){let t=l.getTokenAfter(s);t&&r(e,l,t.value)&&(yield u.insertTextBefore(t,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[u]:"Unexpected `if` as the only statement in a `if` block without `else`."}}}}()),lL=iw(function(){if(id)return is;id=1;let{isMethodCall:e,isNumberLiteral:t}=sS(),{getCallExpressionTokens:r}=sK(),n="no-magic-array-flat-depth";return is={create:u=>({CallExpression(a){if(!e(a,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[i]=a.arguments;if(!t(i)||1===i.value)return;let{sourceCode:o}=u,{openingParenthesisToken:s,closingParenthesisToken:d}=r(o,a);if(!o.commentsExistBetween(s,d))return{node:i,messageId:n}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[n]:"Magic number as depth is not allowed."}}}}()),lN=iw(function(){if(ic)return il;ic=1;let{removeParentheses:e,fixSpaceAroundKeyword:t,addParenthesizesToReturnOrThrowExpression:r}=s5(),{getParenthesizedRange:n,isParenthesized:u}=sb(),a=sN(),i=sU(),o="no-negated-condition";return il={create:s=>{s.on(["IfStatement","ConditionalExpression"],d=>{if("IfStatement"===d.type&&(!d.alternate||"IfStatement"===d.alternate.type))return;let{test:l}=d;if("UnaryExpression"===l.type&&"!"===l.operator||"BinaryExpression"===l.type&&("!="===l.operator||"!=="===l.operator))return{node:l,messageId:o,*fix(o){let{sourceCode:c}=s;if(yield*function*(t,r,n){let{test:u}=r;if("UnaryExpression"===u.type){let a=n.getFirstToken(u);"IfStatement"===r.type&&(yield*e(u.argument,t,n)),yield t.remove(a);return}let a=n.getTokenAfter(u.left,e=>"Punctuator"===e.type&&e.value===u.operator);yield t.replaceText(a,"="+a.value.slice(1))}(o,d,c),yield*function*(e,t,r){let u="IfStatement"===t.type,[a,i]=[t.consequent,t.alternate].map(e=>{let t=n(e,r),a=r.text.slice(...t);return u&&"BlockStatement"!==e.type&&(a=`{${a}}`),{range:t,text:a}});a.text!==i.text&&(yield e.replaceTextRange(a.range,i.text),yield e.replaceTextRange(i.range,a.text))}(o,d,c),"ConditionalExpression"!==d.type||"UnaryExpression"!==l.type)return;yield*t(o,d,c);let{parent:f}=d,[p,m]=c.getFirstTokens(l,2);if(("ReturnStatement"===f.type||"ThrowStatement"===f.type)&&f.argument===d&&!a(p,m)&&!u(d,c)&&!u(l,c)){yield*r(o,f,c);return}i(c.getTokenBefore(d),c,m.value)&&(yield o.insertTextBefore(d,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[o]:"Unexpected negated condition."}}}}()),lM=iw(function(){if(im)return ip;im=1;let{isFunction:e}=sS(),t="identifier",r="non-identifier";return ip={create:()=>({AssignmentPattern(n){if(!("ObjectExpression"===n.right.type&&n.right.properties.length>0&&e(n.parent)&&n.parent.params.includes(n)))return;let{left:u,right:a}=n;return"Identifier"===u.type?{node:u,messageId:t,data:{parameter:u.name}}:{node:a,messageId:r}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[t]:"Do not use an object literal as default for parameter `{{parameter}}`.",[r]:"Do not use an object literal as default."}}}}()),l$=iw(function(){if(ib)return ih;ib=1;let{getNegativeIndexLengthNode:e,removeLengthNode:t}=function(){if(iy)return ig;iy=1;let e=sM(),{getParenthesizedRange:t}=sb(),{isNumberLiteral:r}=sS(),n=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,u=e=>r(e)&&e.value>0;return ig={getNegativeIndexLengthNode:function t(r,a){if(!r)return;let{type:i,operator:o,left:s,right:d}=r;return"BinaryExpression"===i&&"-"===o&&u(d)?n(s)&&e(s.object,a)?s:t(s,a):void 0},removeLengthNode:function(e,r,n){let[u,a]=t(e,n);return r.removeRange([u,a+n.text.slice(a).match(/\S|$/).index])}}}(),r=dG(),{isLiteral:n}=sS(),u="prefer-negative-index",a=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...r])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(r)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...r])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...r])}]]),i=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};return ih={create:r=>({CallExpression(o){if("MemberExpression"!==o.callee.type)return;let s=function(e){let{callee:t,arguments:r}=e,u=t.property.name,o=t.object,s=r;if(a.has(u))return{method:u,target:o,argumentsNodes:s};if("call"!==u&&"apply"!==u)return;let d="apply"===u;if(u=i(t.object),!a.has(u))return;let{supportObjects:l}=a.get(u),c=t.object.object;if("ArrayExpression"===c.type&&0===c.elements.length||"slice"===u&&n(c,"")||"prototype"===i(c)&&"Identifier"===c.object.type&&l.has(c.object.name)){if([o]=r,d){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;s=e.elements}else s=r.slice(1);return{method:u,target:o,argumentsNodes:s}}}(o);if(!s)return;let{method:d,target:l,argumentsNodes:c}=s,{argumentsIndexes:f}=a.get(d),p=f.map(t=>e(c[t],l)).filter(Boolean);if(0!==p.length)return{node:o,messageId:u,data:{method:d},*fix(e){let{sourceCode:n}=r;for(let r of p)yield t(r,e,n)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[u]:"Prefer negative index over length minus index for `{{method}}`."}}}}()),lU=iT(r),lz=iw(function(){if(iD)return iC;iD=1;let e=function(){if(iA)return iE;iA=1;let e=new Set(function(){if(iv)return ix;iv=1;let{builtinModules:e}=lU,t=["sys"];return ix=(e||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!t.includes(e)).sort()}()),t="node:";return iE=r=>{if("string"!=typeof r)throw TypeError("Expected a string");r.startsWith(t)&&(r=r.slice(t.length));let n=r.indexOf("/");return -1!==n&&n!==r.length-1&&(r=r.slice(0,n)),e.has(r)}}(),{replaceStringLiteral:t}=s5(),r=sC(),n="prefer-node-protocol";return iC={create:()=>({Literal(u){if(!(("ImportDeclaration"===u.parent.type||"ExportNamedDeclaration"===u.parent.type||"ImportExpression"===u.parent.type)&&u.parent.source===u||r(u.parent)&&u.parent.arguments[0]===u))return;let{value:a}=u;if(!("string"!=typeof a||a.startsWith("node:")||/^bun(?::|$)/.test(a))&&e(a))return{node:u,messageId:n,data:{moduleName:a},fix:e=>t(e,u,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[n]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}}}());let lW=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),lq=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),lV=Symbol("rule-id-no-match");var lZ=n({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=lW.exec(e);return t?.groups?.directive}(n.value);if(r&&("allow-with-description"!==t||!n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=lq.exec(e.trim());return t?t.groups?.ruleId:lV}(n.value);u===lV||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),lG=n({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){if(function e(t){return t.parent?.type===i.ArrowFunctionExpression||(t.parent?.type===i.ReturnStatement?!lK(t.parent):(t.parent?.type===i.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===i.LogicalExpression&&t===t.parent.right||t.parent?.type===i.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))}(t)&&!lK(t))e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+ +(" "===s)])}}]})}})});function lK(e){let t=e;for(;!o.isFunction(t)&&t.type!==i.Program;){if(t.parent.type===i.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function lH(e){for(let t=0,r=e.length;t<r;t++){let r=e[t];if("\n"===r)break;if("\r"===r&&"\n"===e[t+1])return"\r\n"}return"\n"}var lJ=n({name:"no-expression-empty-lines",meta:{messages:{unexpectedEmptyLine:"Unexpected empty line before"},docs:{description:"Disallows empty lines inside expressions."},fixable:"whitespace",type:"suggestion",schema:[]},create(e){let t=e.sourceCode.getText(),r=lH(t);return{MemberExpression(n){let u=n.object.range[1],a=lX(t.slice(u));if(a.includes("\n")){var i;let t=r+((lX(i=a).split(/\r\n|\n/u).at(-1)??"")+i.trimStart());a!==t&&e.report({fix:()=>({range:[u,u+a.length],text:t}),messageId:"unexpectedEmptyLine",node:n.property})}}}}});function lX(e){return e.slice(0,e.length-e.trimStart().length)}var lY=n({name:"object-format",meta:{fixable:"whitespace",schema:[{type:"object",properties:{maxLineLength:{type:"number",default:80},maxObjectSize:{type:"number",default:3}},additionalProperties:!1}],docs:{description:"Requires multiline or single-line object format.",recommended:"stylistic"},messages:{preferMultiline:"Prefer multiline object literal",preferSingleLine:"Prefer single-line object literal"},type:"layout"},create(e,t={}){var r;let n=e.sourceCode.getText(),u=t=>n.slice(Math.min(t.range[0],...e.sourceCode.getCommentsBefore(t).map(e=>e.range[0])),t.range[1]),a=lH(n),i=`,${a}`,{maxLineLength:o=80,maxObjectSize:s=3}=t,d=(r=n,e=>r.slice(e.range[1]).trimStart().startsWith("//"));return{ObjectExpression(t){let r=t.properties.map(e=>u(e).trim());if(r.length>0){let u=e.sourceCode.getText(t),l=r.length>s||r.some(lQ)||t.properties.some(d),c=lQ(u),f=!u.includes("\n");l&&f&&e.report({fix:()=>({range:t.range,text:`{${a}${r.join(i)}${a}}`}),messageId:"preferMultiline",node:t}),!l&&c&&function(){var u;let a=e.sourceCode.getLocFromIndex(t.range[0]).column,i=r.reduce((e,t)=>e+t.length,0);return a+i+2*(r.length-1)+4+("number"==typeof(u=t.range[1])?n.slice(u):n.slice(...u.range)).split(/\r\n|\n/u)[0].replace(/^((?: as const)?\S*).*/u,"$1").length}()<=o&&e.report({fix:()=>({range:t.range,text:`{${r.join(",")}}`}),messageId:"preferSingleLine",node:t})}}}}});function lQ(e){return e.includes("\n")}var l0=n({name:"prefer-single-boolean-return",meta:{messages:{replaceIfThenElseByReturn:"Replace this if-then-else flow by a single return statement.",suggest:"Replace with single return statement",suggestCast:'Replace with single return statement using "!!" cast',suggestBoolean:"Replace with single return statement without cast (condition should be boolean!)"},schema:[],type:"suggestion",hasSuggestions:!0,docs:{description:'Return of boolean expressions should not be wrapped into an "if-then-else" statement',recommended:"recommended"}},create:e=>({IfStatement(t){t.parent.type!==i.IfStatement&&l2(t.consequent)&&function(e){if(e.alternate)return l2(e.alternate);let{parent:t}=e;if(t.type===i.BlockStatement){let r=t.body.indexOf(e);return l1(t.body[r+1])}return!1}(t)&&e.report({messageId:"replaceIfThenElseByReturn",node:t,suggest:function(t){var r,n;let u=e=>r=>{let n=`return ${e};`;if(t.alternate)return r.replaceText(t,n);let u=t.parent,a=u.body.indexOf(t),i=u.body[a+1],o=[t.range[0],i.range[1]];return r.replaceTextRange(o,n)},a=!1===((r=t.consequent).type===i.BlockStatement?r.body[0]:r).argument.value,o=!(((n=t.test).type===i.UnaryExpression||n.type===i.BinaryExpression)&&["!","==","===","!=","!==","<","<=",">",">=","in","instanceof"].includes(n.operator)),s=e.sourceCode.getText(t.test);return a?[{messageId:"suggest",fix:u(`!(${s})`)}]:o?[{messageId:"suggestCast",fix:u(`!!(${s})`)},{messageId:"suggestBoolean",fix:u(s)}]:[{messageId:"suggest",fix:u(s)}]}(t)})}})});function l1(e){return e?.type===i.ReturnStatement&&e.argument?.type===i.Literal&&"boolean"==typeof e.argument.value}function l2(e){return void 0!==e&&(e.type===i.BlockStatement&&1===e.body.length&&l1(e.body[0])||l1(e))}function l3(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>l3(e,t[n],r)):!(Array.isArray(e)||Array.isArray(t))&&e.type===t.type&&(n=r.getTokens(e),u=r.getTokens(t),n.length===u.length&&n.every((e,t)=>e.value===u[t].value))}function l4(e){let t=!1;return{branches:e.cases.reduce((r,n,u)=>{var a;return n.test||(t=!0),(u===e.cases.length-1||n.consequent.length>0)&&r.push((a=n.consequent).length>0&&a[a.length-1].type===i.BreakStatement?a.slice(0,-1):a),r},[]),endsWithDefault:t}}n({name:"no-all-duplicated-branches",meta:{messages:{removeOrEditConditionalStructure:"Remove this conditional structure or edit its code blocks so that they're not all the same.",returnsTheSameValue:'This conditional operation returns the same value whether the condition is "true" or "false".'},schema:[],type:"problem",docs:{description:"All branches in a conditional structure should not have exactly the same implementation",recommended:"recommended"}},create(e){return{IfStatement(r){if(r.parent?.type!==i.IfStatement){let{branches:n,endsWithElse:u}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===i.IfStatement)t.push(n.consequent),n=n.alternate;else{t.push(n),r=!0;break}return{branches:t,endsWithElse:r}}(r);u&&t(n)&&e.report({messageId:"removeOrEditConditionalStructure",node:r})}},SwitchStatement(r){let{branches:n,endsWithDefault:u}=l4(r);u&&t(n)&&e.report({messageId:"removeOrEditConditionalStructure",node:r})},ConditionalExpression(r){t([r.consequent,r.alternate])&&e.report({messageId:"returnsTheSameValue",node:r})}};function t(t){return t.length>1&&t.slice(1).every((r,n)=>l3(r,t[n],e.sourceCode))}}});var l5=n({name:"no-duplicated-branches",meta:{schema:[],type:"suggestion",docs:{description:"Two branches in a conditional structure should not have exactly the same implementation",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1871/javascript"},messages:{sameConditionalBlock:"This {{type}}'s code block is the same as the block for the {{type}} on line {{line}}."}},create(e){return{IfStatement(u){!function(u){if(u.parent.type===i.IfStatement)return;let{branches:a,endsWithElse:o}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===i.IfStatement)t.push(n.consequent),n=n.alternate;else{t.push(n),r=!0;break}return{branches:t,endsWithElse:r}}(u);if(r(a,o)){a.slice(1).forEach((e,t)=>n(e,a[t],"branch"));return}for(let r=1;r<a.length;r++)if(t([a[r]]))for(let t=0;t<r&&!function(t,r){let u=l6(t,r,e.sourceCode);return u&&"loc"in r&&n(t,r,"branch"),u}(a[r],a[t]);t++);}(u)},SwitchStatement(u){!function(u){let{cases:a}=u,{endsWithDefault:i}=l4(u),o=a.filter(e=>l9(l8(e.consequent)).length>0);if(r(o.map(e=>l9(l8(e.consequent))),i)){o.slice(1).forEach((e,t)=>n(e,o[t],"case"));return}for(let r=1;r<a.length;r++){let u=l9(l8(a[r].consequent));if(t(u)){for(let t=0;t<r;t++)if(l6(u,l9(l8(a[t].consequent)),e.sourceCode)){n(a[r],a[t],"case");break}}}}(u)}};function t(t){if(t.length>0){let r=[...e.sourceCode.getTokens(t[0]),...e.sourceCode.getTokens(t[t.length-1])].filter(e=>"{"!==e.value&&"}"!==e.value);return r.length>0&&r[r.length-1].loc.end.line>r[0].loc.start.line}return!1}function r(t,r){return!r&&t.length>1&&t.slice(1).every((r,n)=>l6(r,t[n],e.sourceCode))}function n(t,r,n){let u=r.loc;e.report({messageId:"sameConditionalBlock",data:{type:n,line:String(u.start.line)},node:t})}}});function l8(e){if(1===e.length){let t=e[0];if(t.type===i.BlockStatement)return t.body}return e}function l6(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>l6(e,t[n],r)):!(Array.isArray(e)||Array.isArray(t))&&e.type===t.type&&(n=r.getTokens(e),u=r.getTokens(t),n.length===u.length&&n.every((e,t)=>e.value===u[t].value))}function l9(e){return e.length>0&&e[e.length-1].type===i.BreakStatement?e.slice(0,-1):e}var l7=n({name:"comma-or-logical-or-case",meta:{type:"problem",docs:{description:"Comma and logical OR operators should not be used in switch cases",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3616/javascript"},schema:[],messages:{specifyCase:'Explicitly specify {{nesting}} separate cases that fall through; currently this case clause only works for "{{expression}}".'}},create(e){function t(t,r,n){var u;e.report({messageId:"specifyCase",data:{nesting:n.toString(),expression:String((u=r).type===i.Literal?u.value:e.sourceCode.getText(u))},node:t})}return{"SwitchCase > SequenceExpression":function(e){let r=e.expressions;t(e,r[r.length-1],r.length)},"SwitchCase > LogicalExpression":function(r){var n;if((n=function(t){let r=e.sourceCode.getAncestors(t);for(let e=r.length-1;e>=0;e--)if(r[e].type===i.SwitchStatement)return r[e];throw Error("A switch case should have an enclosing switch statement")}(r)).discriminant.type!==i.Literal||!0!==n.discriminant.value){let e=function e(t,r){if("||"===t.operator)return t.left.type===i.LogicalExpression?e(t.left,r+1):[t.left,r+1]}(r,0);e&&t(r,e[0],e[1]+1)}}}}}),ce=n({name:"no-element-overwrite",meta:{schema:[],type:"problem",docs:{description:"Collection elements should not be replaced unconditionally",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4143/javascript"},messages:{verifyIntendedIndex:'Verify this is the index that was intended; "{{index}}" was already set on line {{line}}.'}},create(e){return{SwitchCase(e){t(e.consequent)},BlockStatement(e){t(e.body)},Program(e){t(e.body.filter(e=>{var t;return!((t=e)&&(t.type===i.ImportDeclaration||t.type===i.ExportNamedDeclaration||t.type===i.ExportDefaultDeclaration||t.type===i.ExportAllDeclaration))}))}};function t(t){let r;let n=new Map;t.forEach(t=>{let u=function(t){if(t.type===i.ExpressionStatement)return function(t){var r;if((r=t).type===i.AssignmentExpression&&"="===r.operator&&t.left.type===i.MemberExpression&&t.left.computed){let{left:r,right:n}=t,u=cr(r.property);if(void 0!==u&&!function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);return void 0!==u.find((e,t)=>{if(ct(e,n[0]))for(let e=t,r=0;e<u.length&&r<n.length;e++,r++)if(ct(u[e],n[r])){if(r===n.length-1)return!0}else break;return!1})}(r.object,n))return{collectionNode:r.object,indexOrKey:u,node:t}}}(t.expression)||function(e){if(e.type===i.CallExpression&&e.callee.type===i.MemberExpression){let t=e.callee;if(t.property.type===i.Identifier){let r=t.property.name,n="add"===r&&1===e.arguments.length,u="set"===r&&2===e.arguments.length;if(n||u){let r=cr(e.arguments[0]);if(r)return{collectionNode:t.object,indexOrKey:r,node:e}}}}}(t.expression)}(t);if(u){r&&!l3(u.collectionNode,r,e.sourceCode)&&n.clear();let t=n.get(u.indexOrKey);t?.node.loc&&e.report({node:u.node,messageId:"verifyIntendedIndex",data:{index:u.indexOrKey,line:t.node.loc.start.line}}),n.set(u.indexOrKey,u),r=u.collectionNode}else n.clear()})}}});function ct(e,t){return e.value===t.value}function cr(e){if(e.type===i.Literal){let{value:t}=e;return"number"==typeof t||"string"==typeof t?String(t):void 0}if(e.type===i.Identifier)return e.name}var cn=n({name:"class-prototype",meta:{schema:[],type:"suggestion",docs:{description:'Class methods should be used instead of "prototype" assignments',recommended:"recommended"},messages:{declareClass:'Declare a "{{class}}" class and move this declaration of "{{declaration}}" into it.'}},create(e){let t=e.sourceCode.parserServices,r=u(t)?cu:ci;return{AssignmentExpression({left:n,right:u}){if(n.type===i.MemberExpression&&r(u,t)){let[t,r]=[n.object,n.property];if(t.type===i.MemberExpression&&r.type===i.Identifier){let[u,a]=[t.object,t.property];u.type===i.Identifier&&a.type===i.Identifier&&"prototype"===a.name&&e.report({messageId:"declareClass",data:{class:u.name,declaration:r.name},node:n})}}}}}});function cu(e,t){a(t);let r=t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e));return!!r.symbol&&(r.symbol.flags&f.Function)!=0}let ca=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function ci(e,t){return ca.has(e.type)}var co=n({name:"bool-param-default",meta:{schema:[],type:"suggestion",docs:{description:"Optional boolean parameters should have default value"},messages:{provideDefault:"Provide a default value for '{{parameter}}' so that the logic of the function is more evident when this parameter is missing. Consider defining another function if providing default value is not possible."}},create:e=>({"FunctionDeclaration, FunctionExpression, ArrowFunctionExpression":t=>{for(let r of t.params)r.type===i.Identifier&&function(e){var t;return!!(t=e).optional&&!!t.typeAnnotation&&t.typeAnnotation.typeAnnotation.type===i.TSBooleanKeyword||function(e){if(e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===i.TSUnionType){let t=e.typeAnnotation.typeAnnotation.types;return 2===t.length&&t.some(e=>e.type===i.TSBooleanKeyword)&&t.some(e=>e.type===i.TSUndefinedKeyword)}return!1}(e)}(r)&&e.report({messageId:"provideDefault",data:{parameter:r.name},node:r})}})}),cs=n({name:"call-argument-line",meta:{type:"suggestion",docs:{description:"Function call arguments should not start on new lines",recommended:"recommended"},schema:[],messages:{moveArguments:"Make those call arguments start on line {{line}}.",moveTemplateLiteral:"Make this template literal start on line {{line}}."}},create(e){let t=e.sourceCode;return{CallExpression(r){if(r.callee.type!==i.CallExpression&&1===r.arguments.length){var n;let u=(n=r).typeArguments??n.callee,a=(t.getLastTokenBetween(u,r.arguments[0],cd)??t.getLastToken(u)).loc.end.line,{start:i}=t.getTokenAfter(u,cl).loc;if(a!==i.line){let{end:n}=t.getLastToken(r).loc;n.line===i.line?e.report({messageId:"moveArguments",data:{line:a.toString()},loc:{start:i,end:n}}):e.report({messageId:"moveArguments",data:{line:a.toString()},loc:i})}}},TaggedTemplateExpression(r){let{quasi:n}=r,u=t.getTokenBefore(n);if(u&&n.loc&&u.loc.end.line!==n.loc.start.line){let t={start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}};e.report({messageId:"moveTemplateLiteral",data:{line:u.loc.start.line.toString()},loc:t})}}}}});function cd(e){return e.type===s.Punctuator&&")"===e.value}function cl(e){return!cd(e)}var cc=n({name:"track-todo-fixme-comment",meta:{type:"suggestion",docs:{description:'Track uses of "FIXME" and "TODO" tags',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1134/javascript"},schema:[],messages:{fixme:"Take the required action to fix the issue indicated by this comment.",todo:'Complete the task associated to this "TODO" comment.'}},create(e){function t(t,r){e.sourceCode.getAllComments().forEach(n=>{let u=n.value.toLowerCase();if(u.includes(t)){let a=u.split(/\r\n?|\n/);for(let u=0;u<a.length;u++){let i=a[u].indexOf(t);i>=0&&!function(e,t,r){let n=t+r.length,u=t>0&&cf.test(e.charAt(t-1)),a=n<=e.length-1&&cf.test(e.charAt(n));return u||a}(a[u],i,t)&&e.report({messageId:r,loc:function(e,t,r,n){let u=r.loc.start.line+e,a=(0===e?r.loc.start.column+2:0)+t;return{start:{line:u,column:a},end:{line:u,column:a+n.length}}}(u,i,n,t)})}}})}return{"Program:exit":()=>{t("fixme","fixme"),t("todo","todo")}}}});let cf=RegExp("\\p{Letter}","u"),cp=["Array","Map","Set","WeakSet","WeakMap"],cm=new Set(["copyWithin","pop","reverse","shift","sort","clear","delete","concat","flat","flatMap","includes","indexOf","join","lastIndexOf","slice","toSource","toString","toLocaleString","get","has","entries","every","filter","find","findIndex","forEach","keys","map","reduce","reduceRight","some","values"]);var cg=n({name:"no-empty-collection",meta:{schema:[],type:"problem",docs:{description:"Empty collections should not be accessed or iterated",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4158/javascript"},messages:{reviewUsageOfIdentifier:'Review this usage of "{{identifierName}}" as it can only be empty here.'}},create(e){let t=t=>{if(t.references.length<=1||t.defs.some(e=>e.type===d.Scope.DefinitionType.Parameter||e.type===d.Scope.DefinitionType.ImportBinding))return;let r=[],n=!1;for(let e of t.references)if(e.isWriteOnly()){if(!function(e){let t=cy(e.identifier,e=>e.type===i.VariableDeclarator||e.type===i.ExpressionStatement);if(t){if(t.type===i.VariableDeclarator&&t.init)return cx(t.init);if(t.type===i.ExpressionStatement){let{expression:r}=t;return r.type===i.AssignmentExpression&&cb(e,r.left)&&cx(r.right)}}return!1}(e))return;n=!0}else{var u;if(!(function(e){let{parent:t}=e.identifier;if(t&&t.type===i.MemberExpression){let e=t.parent;if(e&&e.type===i.CallExpression)return cv(t.property,...cm)}return!1}(u=e)||function(e){let t=cy(e.identifier,e=>e.type===i.ForOfStatement||e.type===i.ForInStatement);return t&&t.right===e.identifier}(u)||function(e){let{parent:t}=e.identifier;return t&&t.type===i.MemberExpression&&t.computed&&!function(e){let t=ch(e,new Set),r=t.find(e=>e.type===i.AssignmentExpression);return!!r&&"="===r.operator&&[e,...t].includes(r.left)}(t)}(u)))return;r.push(e)}n&&r.forEach(t=>{e.report({messageId:"reviewUsageOfIdentifier",data:{identifierName:t.identifier.name},node:t.identifier})})},r=e=>{e.type!==d.Scope.ScopeType.global&&e.variables.forEach(t),e.childScopes.forEach(r)};return{"Program:exit":t=>{r(e.sourceCode.getScope(t))}}}});function cy(e,t){return ch(e,new Set).find(t)}function ch(e,t){let r=[],n=e.parent;for(;n&&(r.push(n),!t.has(n.type));)n=n.parent;return r}function cb(e,t){return t.type===i.Identifier&&t===e.identifier}function cx(e){return e&&e.type===i.ArrayExpression?0===e.elements.length:!!e&&(e.type===i.CallExpression||e.type===i.NewExpression)&&cv(e.callee,...cp)&&0===e.arguments.length}function cv(e,...t){return e?.type===i.Identifier&&(0===t.length||t.some(t=>t===e.name))}let cE=new Set(["!=","==","!==","==="]),cA=new Set(["!==","!="]),cC=new Set(["+=","-="]);var cD=n({name:"no-equals-in-for-termination",meta:{schema:[],messages:{replaceOperator:"Replace '{{operator}}' operator with one of '<=', '>=', '<', or '>' comparison operators."},type:"suggestion",docs:{description:'Equality operators should not be used in "for" loop termination conditions',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S888/javascript"}},create(e){function t(t,r){if(t.type===i.Identifier){var n;let u=(n=t.name,function(e,t){let r;for(;null==r&&null!=e;)r=e.variables.find(e=>e.name===t),e=e.upper;return r}(e.sourceCode.getScope(t),n)),a=r.range;if(u&&a)return u.references.some(e=>{var t,r;return t=e.identifier,r=a,t.range&&t.range[0]>r[0]&&t.range[1]<r[1]})}return!1}return{ForStatement(r){var n;if(!r.test||!r.update)return;let u=r.test;if((n=u).type===i.BinaryExpression&&cE.has(n.operator)&&function e(t){return!!cS(t)||t.type===i.UpdateExpression||t.type===i.SequenceExpression&&t.expressions.every(e)}(r.update)&&!(function(e){let t=e.test,r=[];return function e(t,r){let n;cS(t)?n=t.left:t.type===i.UpdateExpression?n=t.argument:t.type===i.SequenceExpression&&t.expressions.forEach(t=>e(t,r)),n&&n.type===i.Identifier&&r.push(n.name)}(e.update,r),t.left.type!==i.Identifier||!r.includes(t.left.name)}(r)||function(e){let r=e.init,n=e.test;if(r&&cw(n)){let u=function(e,r){var n,u;if(n=e,u=r,n.type===i.UpdateExpression&&!t(n.argument,u)||function(e){if(cS(e)){let t=e.right;return t.type===i.Literal&&1===t.value}return!1}(n)&&!t(n.left,u)){if("++"===e.operator||"+="===e.operator)return 1;if("--"===e.operator||"-="===e.operator)return -1}return 0}(e.update,e.body);if(0!==u){let e=cT(r),t=cT(n);return void 0!==e&&void 0!==t&&u===Math.sign(t-e)}}return!1}(r)))e.report({messageId:"replaceOperator",data:{operator:u.operator},node:u})}}}});function cS(e){return e.type===i.AssignmentExpression&&cC.has(e.operator)}function cw(e){return e.type===i.BinaryExpression&&cA.has(e.operator)}function cT(e){var t;return cw(e)?cF(e.right):(t=e).type===i.VariableDeclaration&&1===t.declarations.length?cF(e.declarations[0].init):e.type===i.AssignmentExpression?cF(e.right):void 0}function cF(e){if(e&&e.type===i.Literal&&"number"==typeof e.value)return e.value}var c_=n({name:"no-top-level-this",meta:{hasSuggestions:!0,schema:[],messages:{removeThis:'Remove the use of "this".',suggestRemoveThis:'Remove "this"',suggestUseGlobalThis:'Replace "this" with "globalThis" object'},type:"suggestion",docs:{description:'The global "this" object should not be used',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S2990/javascript"},fixable:"code"},create:e=>({'MemberExpression[object.type="ThisExpression"]':t=>{let r=e.sourceCode.getScope(t).variableScope.type,n=e.sourceCode.getAncestors(t).some(e=>e.type===i.ClassDeclaration||e.type===i.ClassExpression);if((r===d.Scope.ScopeType.global||r===d.Scope.ScopeType.module)&&!n){let r=[];if(!t.computed){let n=e.sourceCode.getText(t.property);r.push({messageId:"suggestRemoveThis",fix:e=>e.replaceText(t,n)},{messageId:"suggestUseGlobalThis",fix:e=>e.replaceText(t.object,"globalThis")})}e.report({messageId:"removeThis",node:t.object,suggest:r})}}})}),ck=n({name:"no-invariant-returns",meta:{schema:[],type:"suggestion",docs:{description:"Function returns should not be invariant",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3516/javascript",requiresTypeChecking:!1},messages:{refactorReturn:"Refactor this function to only return once or not always return the same value."}},create(e){let t=[],r=[],n=[],u=r=>(function(t,r){var u;if(!(!r||(u=r,n.some(e=>e.reachable)||u.containsReturnWithoutValue||u.returnStatements.length<=1||u.codePath.thrownSegments.length>0)))(function(e,t){let r=e[0],n=r?cB(r,t):void 0;if(void 0!==n)return e.slice(1).every(e=>cB(e,t)===n);if(r?.type===i.Identifier){let n=cI(r.name,t);if(n){let t=new Set(n.variable.references.slice(1).map(e=>e.identifier));return e.every(e=>t.has(e))}}return!1})(r.returnStatements.map(e=>e.argument),e.sourceCode.getScope(t))&&e.report({messageId:"refactorReturn",node:t})})(r,t[t.length-1]);return{onCodePathStart(e){t.push({codePath:e,containsReturnWithoutValue:!1,returnStatements:[]}),r.push(n),n=[]},onCodePathEnd(){t.pop(),n=r.pop()||[]},onCodePathSegmentStart(e){n.push(e)},onCodePathSegmentEnd(){n.pop()},ReturnStatement(e){if(t.length){let r=t[t.length-1];r.containsReturnWithoutValue=r.containsReturnWithoutValue||!e.argument,r.returnStatements.push(e)}},"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}});function cI(e,t){let r=t.set.get(e);if(r&&!r.references.slice(1).some(e=>e.isWrite()||function(e){let t=cy(e.identifier,e=>e.type===i.ExpressionStatement||ca.has(e.type));return t&&t.type===i.ExpressionStatement&&(cP(t,e)||t.expression.type===i.CallExpression)}(e))){let e=null;return 1===r.defs.length&&r.defs[0].type===d.Scope.DefinitionType.Variable&&(e=r.defs[0].node.init),{variable:r,initExpression:e}}return null}function cP(e,t,r=!0){return e.expression.type===i.AssignmentExpression&&function e(t,r,n=!0){return t.type===i.MemberExpression&&(cb(r,t.object)||n&&e(t.object,r,n))}(e.expression.left,t,r)}function cB(e,t){if(e){if(e.type===i.Literal)return e.value;if(e.type===i.UnaryExpression){let r=cB(e.argument,t);return void 0===r?void 0:function(e,t){switch(e){case"-":return-Number(t);case"+":return Number(t);case"~":return~Number(t);case"!":return!t;case"typeof":return typeof t}}(e.operator,r)}if(e.type===i.Identifier){let r=cI(e.name,t);if(r?.initExpression)return cB(r.initExpression,t)}}}function cj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e,t){let r=t.variables.find(t=>t.name===e.name);return!r&&t.upper&&(r=t.upper.variables.find(t=>t.name===e.name)),r}class cR extends Set{constructor(...e){super(...e),cj(this,"type","AssignedValues")}}let cL=e=>new cR([e]),cN={type:"UnknownValue"};class cM{add(e){e.resolved&&this.references.add(e)}propagate(e){this.in.clear(),this.segment.prevSegments.forEach(t=>{this.join(e.get(t.id).out)});let t=new Map;return this.references.forEach(e=>this.updateProgramState(e,t)),!function(e,t){if(e.size!==t.size)return!1;for(let[u,a]of e){var r,n;if(!t.has(u)||(r=t.get(u),n=a,"AssignedValues"===r.type&&"AssignedValues"===n.type?!function(e,t){return e.size===t.size&&[...e].every(e=>t.has(e))}(r,n):r!==n))return!1}return!0}(this.out,t)&&(this.out=t,!0)}updateProgramState(e,t){let r=e.resolved;if(!r||!e.isWrite())return;if(!e.writeExpr){t.set(r,cN);return}let n=c$(r,e.writeExpr,t,e.from);t.set(r,n)}join(e){for(let[t,r]of e.entries()){let e=this.in.get(t)??new cR;"AssignedValues"===e.type&&"AssignedValues"===r.type?(r.forEach(t=>e.add(t)),this.in.set(t,e)):this.in.set(t,cN)}}constructor(e){cj(this,"segment",void 0),cj(this,"in",void 0),cj(this,"out",void 0),cj(this,"references",void 0),this.segment=e,this.in=new Map,this.out=new Map,this.references=new Set}}function c$(e,t,r,n){if(!t)return cN;switch(t.type){case i.Literal:return t.raw?cL(t.raw):cN;case i.Identifier:{let u=cO(t,n);if(u&&u!==e)return r.get(u)??cN;return cN}default:return cN}}class cU{constructor(e){cj(this,"codePath",void 0),cj(this,"reachingDefinitionsMap",void 0),cj(this,"reachingDefinitionsStack",void 0),cj(this,"segments",void 0),cj(this,"assignmentStack",void 0),this.codePath=e,this.reachingDefinitionsMap=new Map,this.reachingDefinitionsStack=[],this.segments=new Map,this.assignmentStack=[]}}class cz{isRhs(e){return this.node.type===i.AssignmentExpression?this.node.right===e:this.node.init===e}isLhs(e){return this.node.type===i.AssignmentExpression?this.node.left===e:this.node.id===e}add(e){let t=e.identifier;for(;t;){if(this.isLhs(t)){this.lhs.add(e);break}if(this.isRhs(t)){this.rhs.add(e);break}t=t.parent}}constructor(e){cj(this,"node",void 0),cj(this,"lhs",void 0),cj(this,"rhs",void 0),this.node=e,this.lhs=new Set,this.rhs=new Set}}function cW(e){return e[e.length-1]}var cq=n({name:"no-redundant-assignments",meta:{schema:[],type:"suggestion",docs:{description:"Assignments should not be redundant",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4165/javascript"},messages:{reviewAssignment:'Review this redundant assignment: "{{symbol}}" already holds the assigned value along all execution paths.'}},create(e){let t=[],r=new Map,n=new Map,u=[],a=[];return{AssignmentExpression:s,"VariableDeclarator[init]":s,"AssignmentExpression:exit":o,"VariableDeclarator[init]:exit":o,Identifier(r){var u;if(!(r.parent.type===i.TSEnumBody||r.parent.type===i.TSEnumDeclaration||r.parent.type===i.TSEnumMember||(u=r,e.sourceCode.getAncestors(u).some(e=>e.type===i.TSEnumDeclaration))))!function(r){var u;let{ref:a,variable:i}=function e(t,r){if(null===r)return{ref:null,variable:null};let n=r.references.find(e=>e.identifier===t);if(n)return{ref:n,variable:n.resolved};let u=r.variables.find(e=>e.defs.find(e=>e.name===t));return u?{ref:null,variable:u}:e(t,r.upper)}(u=r,e.sourceCode.getScope(u));if(a&&c(a),i){let e=cW(t).codePath.id;n.has(i)?n.get(i).add(e):n.set(i,new Set([e]))}}(r)},"Program:exit":()=>{!function(e){let t=Array.from(e.values(),e=>e.segment);for(;t.length;){let r=t.pop();e.get(r.id).propagate(e)&&r.nextSegments.forEach(e=>t.push(e))}}(r),r.forEach(l),r.clear(),n.clear(),t.length=0},onCodePathSegmentStart(e){r.set(e.id,new cM(e)),a.push(e)},onCodePathStart(e){var r;r=new cU(e),t.push(r),u.push(a),a.length=0},onCodePathEnd(){t.pop(),u.pop()||(a.length=0)},onCodePathSegmentEnd(){a.pop()}};function o(){let e=cW(t).assignmentStack.pop();e.rhs.forEach(c),e.lhs.forEach(c)}function s(e){cW(t).assignmentStack.push(new cz(e))}function l(t){let r=new Map(t.in);t.references.forEach(t=>{let u=t.resolved;if(!u||!t.isWrite()||!function(e){var t;let r=e.resolved;return r&&(e.identifier.type!==i.Identifier||e.identifier.parent?.type!==i.AssignmentPattern)&&!r.name.startsWith("_")&&!function(e){if(e?.parent){let t=e.parent;return t&&t.type===i.AssignmentExpression&&"="!==t.operator}return!1}(e.writeExpr)&&(e.writeExpr?.type!==i.Identifier||e.resolved!==cO(e.writeExpr,e.from))&&!r.defs.some(e=>e.type===d.Scope.DefinitionType.Parameter||e.type===d.Scope.DefinitionType.Variable&&!e.node.init)&&(t=r,!(n.get(t).size>1))}(t))return;let a=r.get(u),o=c$(u,t.writeExpr,r,t.from);if(a?.type==="AssignedValues"&&1===a.size){let[r]=[...a];!function({resolved:t},r,n,u,a){if("UnknownValue"===u.type||1!==u.size)return;let[i]=[...u];1===t.references.filter(e=>e.isWrite()).length||n!==i||e.report({node:r,messageId:"reviewAssignment",data:{symbol:a}})}(t,t.writeExpr,r,o,u.name)}r.set(u,o)})}function c(e){let{assignmentStack:n}=cW(t);if(n.length>0)cW(n).add(e);else for(let t=0,n=a.length;t<n;t++)(function(e){let t;return r.has(e.id)?t=r.get(e.id):(t=new cM(e),r.set(e.id,t)),t})(a[t]).add(e)}}}),cV=n({name:"no-same-line-conditional",meta:{schema:[],type:"layout",docs:{description:"Conditionals should start on new lines",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S3972/javascript"},fixable:"whitespace",messages:{sameLineCondition:'Move this "if" to a new line or add the missing "else".'}},create(e){function t(t){var r;let{sourceCode:n}=e;(r=t).reduce((e,t,n)=>{let u=r[n-1];return t.type===i.IfStatement&&u&&u.type===i.IfStatement?[{first:u,following:t},...e]:e},[]).forEach(t=>{let r=t.first,u=t.following;if(r.loc&&u.loc&&r.loc.end.line===u.loc.start.line&&r.loc.start.line!==u.loc.end.line){let t=n.getFirstToken(u);e.report({messageId:"sameLineCondition",loc:t.loc,fix:e=>e.replaceTextRange([r.range[1],u.range[0]],"\n"+" ".repeat(r.loc.start.column))})}})}return{Program:e=>t(e.body),BlockStatement:e=>t(e.body),SwitchCase:e=>t(e.consequent)}}}),cZ=n({name:"no-small-switch",meta:{schema:[],messages:{replaceSwitch:'Replace this "switch" statement by "if" statements to increase readability.'},type:"suggestion",docs:{description:'"if" statements should be preferred over "switch" when simpler',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1301/javascript"}},create:e=>({SwitchStatement(t){let{cases:r}=t,n=r.some(e=>!e.test);if(r.length<2||2===r.length&&n){let r=e.sourceCode.getFirstToken(t);r&&e.report({messageId:"replaceSwitch",loc:r.loc})}}})});let cG=["Array","Map","Set","WeakSet","WeakMap"],cK=["copyWithin","fill","pop","push","reverse","set","shift","sort","splice","unshift","add","clear","delete"];var cH=n({name:"no-unused-collection",meta:{schema:[],messages:{unusedCollection:"Either use this collection's contents or remove the collection."},type:"suggestion",docs:{description:"Collection contents should be used",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4030/javascript",requiresTypeChecking:!1}},create:e=>({"Program:exit":t=>{let r=[];(function e(t,r){t.type!==d.Scope.ScopeType.global&&t.variables.forEach(e=>{(function(e){if(function(e){if(!e.defs.length)return;let t=e.defs[0];return t.node.parent?.parent?.type.startsWith("Export")}(e)||e.references.length<=1)return!1;let t=!1;for(let r of e.references)if(r.isWriteOnly()){if(!function(e){let t=cy(e.identifier,e=>e.type===i.VariableDeclarator||e.type===i.ExpressionStatement);if(t){if(t.type===i.VariableDeclarator&&t.init)return cJ(t.init);if(t.type===i.ExpressionStatement){let{expression:r}=t;return r.type===i.AssignmentExpression&&cb(e,r.left)&&cJ(r.right)}}return!1}(r))return!1;t=!0}else if(function(e){let t=cy(e.identifier,e=>e.type===i.ExpressionStatement);return!t||!cP(t,e,!1)&&!function(e,t){if(e.expression.type===i.CallExpression){let{callee:r}=e.expression;if(r.type===i.MemberExpression){let{property:e,object:n}=r;return cb(t,n)&&cv(e,...cK)}}return!1}(t,e)}(r))return!1;return t})(e)&&r.push(e)}),t.childScopes.forEach(t=>{e(t,r)})})(e.sourceCode.getScope(t),r),r.forEach(t=>{e.report({messageId:"unusedCollection",node:t.identifiers[0]})})}})});function cJ(e){return!!e&&e.type===i.ArrayExpression||!!e&&(e.type===i.CallExpression||e.type===i.NewExpression)&&cv(e.callee,...cG)}var cX=n({name:"no-useless-plusplus",meta:{schema:[],type:"problem",docs:{description:"Values should not be uselessly incremented",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S2123/javascript"},messages:{removeIncrement:"Remove this {{updateOperator}}rement or correct the code not to waste it."}},create(e){function t(t){let r="++"===t.operator?"inc":"dec";e.report({messageId:"removeIncrement",data:{updateOperator:r},node:t})}return{"ReturnStatement > UpdateExpression":function(r){var n;let u=r.argument;!r.prefix&&u.type===i.Identifier&&(n=u,e.sourceCode.getScope(r).variables.some(e=>e.identifiers.some(e=>e.name===n.name)))&&t(r)},AssignmentExpression(e){let r=e.right;if(r.type===i.UpdateExpression&&!r.prefix){let n=e.left;n.type===i.Identifier&&r.argument.type===i.Identifier&&r.argument.name===n.name&&t(r)}}}}});let cY=new Set(["map","filter","reduce","reduceRight","forEach"]);var cQ=n({name:"no-chain-array-higher-order-functions",meta:{type:"problem",fixable:"code",docs:{description:"Prefer `.reduce` over chaining `.filter`, `.map` methods",recommended:"recommended"},schema:[],messages:{detected:"Detected the chaining of array methods: {{methods}}. Reaplce with `.reduce` to reduce array iterations and improve the performance."}},create:e=>({MemberExpression(t){if(c0(t)){let r=t.parent;c0(r.parent)&&e.report({node:r,messageId:"detected",data:{methods:`arr.${t.property.name}().${r.parent.property.name}()`}})}}})});function c0(e){return e.type===i.MemberExpression&&!e.computed&&e.property.type===i.Identifier&&!!(cY.has(e.property.name)&&e.parent.type===i.CallExpression)}let c1=/^[!=]=/,c2=new g;var c3=n({name:"prefer-string-starts-ends-with",meta:{type:"suggestion",docs:{description:"Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings"},messages:{preferStartsWith:"Use 'String#startsWith' method instead.",preferEndsWith:"Use the 'String#endsWith' method instead."},schema:[],fixable:"code"},create(e){a(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){return"string"===y(r,t.getTypeAtLocation(e))}function s(e,t){let r=o.getStaticValue(e,n);return null!=r&&r.value===t}function d(e){let t=o.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function l(t,r){if(t.type===i.MemberExpression)return"length"===o.getPropertyName(t,n)&&function(t,r){let n=e.sourceCode.getTokens(t),u=e.sourceCode.getTokens(r);if(n.length!==u.length)return!1;for(let e=0,t=n.length;e<t;++e){let t=n[e],r=u[e];if(t.type!==r.type||t.value!==r.value)return!1}return!0}(t.object,r);let u=o.getStaticValue(t,n),a=o.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function c(e,t,r){return e.type===i.UnaryExpression&&"-"===e.operator&&l(e.argument,t)||e.type===i.BinaryExpression&&"-"===e.operator&&l(e.left,r)&&l(e.right,t)}function f(t){return[e.sourceCode.getTokenAfter(t.object,o.isNotClosingParenToken).range[0],t.range[1]]}function p(e){let t=o.getStaticValue(e,n);if(null==t||!(t.value instanceof RegExp))return null;let{source:r,flags:u}=t.value,a=r.startsWith("^"),i=r.endsWith("$");if(a===i||u.includes("i")||u.includes("m"))return null;let s=function(e,t){let r=c2.parsePattern(e,void 0,void 0,{unicode:t});if(1!==r.alternatives.length)return null;let n=r.alternatives[0].elements,u=n[0];return("Assertion"===u.type&&"start"===u.kind?n.shift():n.pop(),n.every(e=>"Character"===e.type))?String.fromCodePoint(...n.map(e=>e.value)):null}(r,u.includes("u"));return null==s?null:{isEndsWith:i,isStartsWith:a,text:s}}function*m(e,t,r,n,u){let a=f(function e(t){let r;if(t.type===i.ChainExpression)return e(t.expression);if((r=t.type===i.CallExpression?t.callee:t).type!==i.MemberExpression)throw Error(`Expected a MemberExpression, got ${r.type}`);return r}(t.left));n&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange([a[0],t.right.range[0]],`${u?"?.":"."}${r}sWith(`),yield e.replaceTextRange([t.right.range[1],t.range[1]],")")}function*g(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(f(n),`${i?"?.":"."}${u}sWith`),yield e.removeRange([r.range[1],t.range[1]])}return{'BinaryExpression > MemberExpression.left[computed=true], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false], BinaryExpression > ChainExpression.left > MemberExpression[computed=true], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]'(t){var r,a;let c=c4(t),f=c.type===i.CallExpression,p=null;if(c.type===i.CallExpression?(1===c.arguments.length&&(p=c.arguments[0]),c=c4(c)):p=t.property,null==p||!c5(c)||!u(t.object))return;let g=(r=p,a=t.object,r.type===i.BinaryExpression&&"-"===r.operator&&l(r.left,a)&&s(r.right,1)),y=!g&&s(p,0);if(!y&&!g)return;let h=c;!(y&&!f&&function(e){if(!d(e))return!1;let t=o.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value&&function(e){let t=e.codePointAt(0);return null!=t&&t>=0&&t<=127}(t.value)}(h.right))&&e.report({node:c,messageId:y?"preferStartsWith":"preferEndsWith",fix:e=>d(h.right)?m(e,h,y?"start":"end",h.operator.startsWith("!"),t.optional):null})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]'(t){let r=c4(t),n=c4(r);1===r.arguments.length&&c5(n)&&s(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>g(e,n,r,t,"start",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]'(t){let r=c4(t),n=c4(r);1===r.arguments.length&&c5(n)&&n.right.type===i.BinaryExpression&&"-"===n.right.operator&&l(n.right.left,t.object)&&l(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>g(e,n,r,t,"end",n.operator.startsWith("!"),t.optional)})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]'(t){let r=c4(t),a=c4(r);if(!c5(a)||!function(e){let t=o.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?p(r.arguments[0]):null;if(null==i)return;let{isStartsWith:s,text:d}=i;e.report({node:r,messageId:s?"preferStartsWith":"preferEndsWith",*fix(e){a.operator.startsWith("!")||(yield e.insertTextBefore(a,"!")),yield e.replaceTextRange(f(t),`${t.optional?"?.":"."}${s?"start":"end"}sWith`),yield e.replaceText(r.arguments[0],JSON.stringify(d)),yield e.removeRange([r.range[1],a.range[1]])}})},'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false], BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]'(t){let r=c4(t),n=c4(r);if(!c5(n)||!u(t.object))return;let a=!1,o=!1;if(1===r.arguments.length?c(r.arguments[0],n.right,t.object)&&(a=!0):2===r.arguments.length&&(s(r.arguments[0],0)&&l(r.arguments[1],n.right)?o=!0:(l(r.arguments[1],t.object)||s(r.arguments[1],0))&&c(r.arguments[0],n.right,t.object)&&(a=!0)),!o&&!a)return;let d="slice"===t.property.name;e.report({node:n,messageId:o?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==i.Literal||"string"!=typeof n.right.value))return null;if(o){if(!l(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===i.BinaryExpression&&"-"===e.operator&&l(e.left,t.object)&&l(e.right,n.right)||d&&e.type===i.UnaryExpression&&"-"===e.operator&&l(e.argument,n.right)))return null}return m(e,n,o?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=c4(t),n=1===r.arguments.length?p(t.object):null;if(null==n)return;let{isStartsWith:u,text:a}=n,o=u?"startsWith":"endsWith";e.report({node:r,messageId:u?"preferStartsWith":"preferEndsWith",*fix(e){let n=r.arguments[0],u=n.type!==i.Literal&&n.type!==i.TemplateLiteral&&n.type!==i.Identifier&&n.type!==i.MemberExpression&&n.type!==i.CallExpression;yield e.removeRange([r.range[0],n.range[0]]),u&&(yield e.insertTextBefore(n,"("),yield e.insertTextAfter(n,")")),yield e.insertTextAfter(n,`${t.optional?"?.":"."}${o}(${JSON.stringify(a)}`)}})}}}});function c4(e){return l.nullThrows(e.parent?.type===i.ChainExpression?e.parent.parent:e.parent,l.NullThrowsReasons.MissingParent)}function c5(e){return e.type===i.BinaryExpression&&c1.test(e.operator)}var c8=n({name:"no-export-const-enum",meta:{type:"suggestion",docs:{description:"Disallow using `const enum` expression as it can not be inlined and tree-shaken by swc/esbuild/babel/webpack/rollup/vite/bun/rspack"},messages:{noConstEnum:"Do not use `const enum` expression"},schema:[]},create(e){let t=(t,r)=>{let n=o.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===i.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===i.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===i.VariableDeclaration){let e=n.declarations[0].id;e.type===i.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===i.Identifier&&t(e,r)}}}}),c6=n({name:"no-for-in-iterable",meta:{schema:[],type:"suggestion",docs:{description:'"for in" should not be used with iterables',recommended:"strict",url:"https://sonarsource.github.io/rspec/#/rspec/S4139/javascript"},messages:{useForOf:'Use "for...of" to iterate over this "{{iterable}}".'}},create(e){let t=e.sourceCode.parserServices,r=e=>{var r,n,u,i;return a(t),(r=e).symbol&&c7.has(r.symbol.name)||((n=e).flags&p.StringLike)>0||n.symbol?.name==="String"||(u=e,function(e,t){var r;for(let n of(r=e).isUnion()?r.types:[r])if(!function(e,t){let r=t.program.getTypeChecker();return"isArrayType"in r&&"function"==typeof r.isArrayType&&r.isArrayType(e)}(n,t))return!1;return!0}((i=t).program.getTypeChecker().getBaseConstraintOfType(u)??u,i))};return{ForInStatement(n){a(t);let u=c9(n.right,t);if(r(u)){let t=u.symbol?u.symbol.name:"String";e.report({messageId:"useForOf",data:{iterable:t},loc:e.sourceCode.getFirstToken(n).loc})}}}}});function c9(e,t){return t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e))}let c7=new Set(["Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","Set","Map"]);var fe=n({name:"only-await-thenable",meta:{schema:[],type:"suggestion",docs:{description:'"await" should only be used with promises',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4123/javascript"},messages:{refactorAwait:"Refactor this redundant 'await' on a non-promise."}},create(e){let t=e.sourceCode.parserServices;return a(t),{AwaitExpression(r){let n=c9(r.argument,t);(function(e,t){var r,n;if(e.argument.type!==i.CallExpression)return!1;let u=(r=e.argument,(n=t).program.getTypeChecker().getResolvedSignature(n.esTreeNodeToTSNodeMap.get(r)));return u?.declaration&&function(e){let t=new Set(["return","returns"]);if(!e.jsDoc)return!1;for(let r of e.jsDoc)if(r.tags?.some(e=>t.has(e.tagName.escapedText.toString())))return!0;return!1}(u.declaration)})(r,t)||function(e){let t=e.getProperty("then");return t?.declarations?.some(e=>e.kind===m.MethodSignature||e.kind===m.MethodDeclaration||e.kind===m.PropertyDeclaration)}(n)||n.flags&p.Any||n.flags&p.Unknown||n.flags&p.Union||e.report({messageId:"refactorAwait",node:r})}}}}),ft=n({name:"no-undefined-optional-parameters",meta:{schema:[],type:"suggestion",docs:{description:'"undefined" should not be passed as the value of optional parameters',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4623/javascript",requiresTypeChecking:!0},fixable:"code",hasSuggestions:!0,messages:{removeUndefined:'Remove this redundant "undefined".',suggestRemoveUndefined:"Remove this redundant argument"}},create(e){let t=e.sourceCode.parserServices;return a(t),{CallExpression(r){var n;let{arguments:u}=r;if(0===u.length)return;let a=u[u.length-1];(n=a).type===i.Identifier&&"undefined"===n.name&&function(e,t,r){let n=r.program.getTypeChecker().getResolvedSignature(r.esTreeNodeToTSNodeMap.get(t));if(n){var u;let t=n.declaration;if(t&&(u=t,fr.has(u.kind))){let{parameters:r}=t,n=r[e];return n&&(n.initializer||n.questionToken)}}return!1}(u.length-1,r,t)&&e.report({messageId:"removeUndefined",node:a,suggest:[{messageId:"suggestRemoveUndefined",fix(t){if(1===r.arguments.length){let n=e.sourceCode.getTokenAfter(r.callee),u=e.sourceCode.getLastToken(r),[,a]=n.range,[i]=u.range;return t.removeRange([a,i])}let[,n]=u[u.length-2].range,[,i]=a.range;return t.removeRange([n,i])}}]})}}}});let fr=new Set([m.FunctionDeclaration,m.FunctionExpression,m.ArrowFunction,m.MethodDeclaration,m.Constructor,m.GetAccessor,m.SetAccessor]);function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class fu{visit(e,t){let r=e=>{switch(e.type){case i.AwaitExpression:case i.CallExpression:case i.NewExpression:this.callLikeExpressions.push(e);break;case i.FunctionDeclaration:case i.FunctionExpression:case i.ArrowFunctionExpression:return}(function(e,t){let r=[],n=t[e.type];if(n?.length)for(let t of n){let n=e[t];Array.isArray(n)?r.push(...n):r.push(n)}return r.filter(Boolean)})(e,t.sourceCode.visitorKeys).forEach(r)};r(e)}constructor(){fn(this,"callLikeExpressions",[])}}fn(fu,"getCallExpressions",(e,t)=>{let r=new fu;return r.visit(e,t),r.callLikeExpressions});var fa={rules:{"array/no-unneeded-flat-map":iZ,"browser/prefer-location-assign":iK,"jsx/no-template-literal":iJ,"jsx/no-unneeded-nested":iX,"string/no-locale-case":iQ,"string/no-simple-template-literal":i1,"type/no-instanceof-wrapper":i3,"unicode/no-bidi":oe,"unicode/no-invisible":or,"ban-eslint-disable":lZ,"no-redundant-variable":on,"no-single-return":oa,"prefer-early-return":oo,"prefer-fetch":os,"prefer-timer-id":oc,"no-return-await":lG,"no-expression-empty-lines":lJ,"object-format":lY,"prefer-single-boolean-return":l0,"no-all-duplicated-branches":l5,"no-duplicated-branches":l5,"bool-param-default":co,"call-argument-line":cs,"class-prototype":cn,"comma-or-logical-or-case":l7,"track-todo-fixme-comment":cc,"no-element-overwrite":ce,"no-empty-collection":cg,"no-equals-in-for-termination":cD,"no-top-level-this":c_,"no-invariant-returns":ck,"no-redundant-assignments":cq,"no-same-line-conditional":cV,"no-small-switch":cZ,"no-unused-collection":cH,"no-useless-plusplus":cX,"no-chain-array-higher-order-functions":cQ,"string/prefer-string-starts-ends-with":c3,"string/no-unneeded-to-string":of,"type/no-force-cast-via-top-type":op,"type/no-wrapper-type-reference":og,"no-default-error":oy,"no-export-const-enum":c8,"no-for-in-iterable":c6,"only-await-thenable":fe,"no-undefined-optional-parameters":ft,"no-try-promise":n({name:"no-try-promise",meta:{schema:[],type:"problem",docs:{description:'Promise rejections should not be caught by "try" blocks',recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S4822/javascript",requiresTypeChecking:!0},messages:{addAwait:"Consider using 'await' for the promise{{ending}} inside this 'try' or replace it with 'Promise.prototype.catch(...)' usage{{ending}}.",removeTry:"Consider removing this 'try' statement as promise{{ending}} rejection is already captured by '.catch()' method."}},create(e){let t=e.sourceCode.parserServices;return a(t),{TryStatement(r){if(r.handler){let n=[],u=[],a=!1;fu.getCallExpressions(r.block,e).forEach(e=>{var r,o,s,d;if(e.type===i.AwaitExpression||!function(e,t){let r=t.esTreeNodeToTSNodeMap.get(e),n=t.program.getTypeChecker().getTypeAtLocation(r).getProperty("then");return!!(n&&n.flags&f.Method)}(e,t)){a=!0;return}if(!((r=e).parent&&(r.parent.type===i.AwaitExpression||r.parent.type===i.YieldExpression)||(o=e).parent&&o.parent.type===i.MemberExpression&&o.parent.property.type===i.Identifier&&"then"===o.parent.property.name||(s=e).type===i.CallExpression&&s.callee.type===i.MemberExpression&&s.callee.property.type===i.Identifier&&"catch"===s.callee.property.name)){((d=e).parent&&d.parent.type===i.MemberExpression&&d.parent.property.type===i.Identifier&&"catch"===d.parent.property.name?u:n).push(e)}}),a||(function(t,r){if(r.length>0){let n=r.length>1?"s":"",u=e.sourceCode.getFirstToken(t);e.report({messageId:"addAwait",data:{ending:n},loc:u.loc})}}(r,n),function(t,r,n){if(0===r.length&&n.length>0){let r=n.length>1?"s":"",u=e.sourceCode.getFirstToken(t);e.report({messageId:"removeTry",data:{ending:r},loc:u.loc})}}(r,n,u))}}}}}),"no-useless-string-operation":n({name:"no-useless-string-operation",meta:{schema:[],messages:{uselessStringOp:"{{symbol}} is an immutable object; you must either store or return the result of the operation."},type:"problem",docs:{description:"Results of operations on strings should not be ignored",recommended:"recommended",url:"https://sonarsource.github.io/rspec/#/rspec/S1154/javascript"}},create(e){let t=e.sourceCode.parserServices;return{'ExpressionStatement > CallExpression[callee.type="MemberExpression"]':r=>{let{object:n,property:u}=r.callee;if(a(t),(c9(n,t).flags&c.TypeFlags.StringLike)!=0&&u.type===i.Identifier){let t;e.report({messageId:"uselessStringOp",data:{symbol:((t=e.sourceCode.getText(n)).length>30&&(t="String"),t)},node:u})}}}}}),...Object.entries({"unicorn/better-regex":dM,"unicorn/catch-error-name":lB,"unicorn/custom-error-definition":lO,"unicorn/no-nested-ternary":sh,"unicorn/prefer-event-target":sH,"unicorn/prefer-keyboard-event-key":sJ,"unicorn/prefer-text-content":sX,"unicorn/require-array-join-separator":s8,"unicorn/no-thenable":s6,"unicorn/no-invalid-remove-event-listener":s9,"unicorn/consistent-function-scoping":s7,"unicorn/no-new-buffer":de,"unicorn/no-console-spaces":dt,"unicorn/no-empty-file":dr,"unicorn/no-useless-fallback-in-spread":dn,"unicorn/no-useless-length-check":du,"unicorn/no-useless-promise-resolve-reject":da,"unicorn/no-zero-fractions":di,"unicorn/prefer-export-from":ds,"unicorn/prefer-native-coercion-functions":dd,"unicorn/no-document-cookie":dc,"unicorn/prefer-add-event-listener":df,"unicorn/prefer-array-index-of":dp,"unicorn/prefer-blob-reading-methods":dm,"unicorn/prefer-date-now":dg,"unicorn/prefer-dom-node-dataset":dy,"unicorn/prefer-modern-math-apis":dh,"unicorn/number-literal-case":dv,"unicorn/prefer-number-properties":dE,"unicorn/prefer-reflect-apply":dA,"unicorn/prefer-set-size":dC,"unicorn/prefer-string-replace-all":dS,"unicorn/prefer-string-slice":dw,"unicorn/prefer-string-trim-start-end":dT,"unicorn/no-unreadable-iife":dF,"unicorn/throw-new-error":d_,"unicorn/escape-case":d$,"unicorn/no-hex-escape":dU,"unicorn/prefer-prototype-methods":dz,"unicorn/error-message":dW,"unicorn/no-instanceof-array":dq,"unicorn/prefer-type-error":dV,"unicorn/consistent-destructuring":dZ,"unicorn/new-for-builtins":dK,"unicorn/no-array-push-push":dH,"unicorn/no-process-exit":dJ,"unicorn/no-static-only-class":dQ,"unicorn/no-unreadable-array-destructuring":d0,"unicorn/no-useless-spread":d1,"unicorn/no-useless-switch-case":d2,"unicorn/no-useless-undefined":d3,"unicorn/numeric-separators-style":d4,"unicorn/prefer-array-find":d5,"unicorn/prefer-array-flat-map":d8,"unicorn/prefer-array-flat":d6,"unicorn/prefer-array-some":d9,"unicorn/prefer-code-point":d7,"unicorn/prefer-default-parameters":le,"unicorn/prefer-logical-operator-over-ternary":lt,"unicorn/prefer-optional-catch-binding":lr,"unicorn/prefer-regexp-test":ln,"unicorn/prefer-set-has":lu,"unicorn/prefer-string-raw":la,"unicorn/prefer-switch":li,"unicorn/require-number-to-fixed-digits-argument":lo,"unicorn/template-indent":l_,"unicorn/no-single-promise-in-promise-methods":dX,"unicorn/no-await-in-promise-methods":lk,"unicorn/no-negation-in-equality-check":lI,"unicorn/no-length-as-slice-end":lP,"unicorn/no-lonely-if":lR,"unicorn/no-magic-array-flat-depth":lL,"unicorn/no-negated-condition":lN,"unicorn/no-object-as-default-parameter":lM,"unicorn/prefer-negative-index":l$,"unicorn/prefer-node-protocol":lz}).reduce((e,[t,r])=>{var n,u;return e[t]={...r,meta:{schema:[],...r.meta,docs:{description:"",...r.meta.docs,url:iI(t)},..."defaultOptions"in r?{defaultOptions:r.defaultOptions}:{}},create:(n=r.create,e=>{let t={},r=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(n(new Proxy(e,{get:(e,t,n)=>"on"===t?(e,t)=>{for(let n of Array.isArray(e)?e:[e])r(n,t)}:"onExit"===t?(e,t)=>{for(let n of Array.isArray(e)?e:[e])r(`${n}:exit`,t)}:Reflect.get(e,t,n)}),void 0)||{}))u&&r(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)n&&function(e,t){if(e){for(let r of(iP(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=iO(r.fix)),iP(r.suggest))for(let e of r.suggest)"fix"in e&&"function"==typeof e.fix&&(e.fix=iO(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})},e},{})}};export{fa as default};