eslint-plugin-sukka 6.13.2 → 6.13.3

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.cjs CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";let e,t;var r,n,u,a,i,o,s,d,l,c,f,p,h,m,g,y,b,E,v,x,S,A,C,_,D,w,T,P,k,I,F,O,B,N,j,L,R,M,$,U,V,z,q,W,Y,G,Z,K,H,X,J,Q,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,eh,em,eg,ey,eb,eE,ev,ex,eS,eA,eC,e_,eD,ew,eT,eP,ek,eI,eF,eO,eB,eN,ej,eL,eR,eM,e$,eU,eV,ez,eq,eW,eY,eG,eZ,eK,eH,eX,eJ,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,th,tm,tg,ty,tb,tE,tv,tx,tS,tA,tC,t_,tD,tw,tT,tP,tk,tI,tF,tO,tB,tN,tj,tL,tR,tM,t$,tU,tV,tz,tq,tW,tY,tG,tZ,tK,tH,tX,tJ,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,rh,rm,rg,ry,rb,rE,rv,rx,rS,rA,rC,r_,rD,rw,rT,rP,rk,rI,rF,rO,rB,rN,rj,rL,rR,rM,r$,rU,rV,rz,rq,rW,rY,rG,rZ,rK,rH,rX,rJ,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,nh,nm,ng,ny,nb,nE,nv,nx,nS,nA,nC,n_,nD,nw,nT,nP,nk,nI,nF,nO,nB,nN,nj,nL,nR,nM,n$,nU,nV,nz,nq,nW,nY,nG,nZ,nK,nH,nX,nJ,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,uh,um,ug,uy,ub,uE,uv,ux,uS,uA,uC,u_,uD,uw,uT,uP,uk,uI,uF,uO,uB,uN,uj,uL,uR,uM,u$,uU,uV,uz,uq,uW,uY,uG,uZ,uK,uH,uX,uJ,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,ah,am,ag,ay,ab,aE,av,ax,aS,aA,aC,a_,aD,aw,aT,aP,ak,aI,aF,aO,aB,aN,aj,aL,aR,aM,a$,aU,aV,az,aq,aW,aY,aG,aZ,aK,aH,aX,aJ,aQ,a0,a1,a2,a3,a4,a5,a8,a6,a9,a7,ie,it,ir,iu,ia,ii,io,is,id=require("node:path"),il=require("node:fs"),ic=require("module"),ip=require("@eslint-sukka/shared"),ih=require("@typescript-eslint/utils"),im=require("typescript"),ig=require("@typescript-eslint/type-utils");function iy(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var ib=iy(id),iE=iy(il),iv=iy(ic),ix=iy(im),iS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iC(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 i_=iC(ib),iD={version:"56.0.1"};function iw(){return n?r:(n=1,r=function(e){let t=i_.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v${iD.version}/docs/rules/${t}.md`})}var iT=iA(iw());const iP=e=>!!e&&Symbol.iterator in e;class ik extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}const iI={abort(){throw new ik("Fix aborted.")}};function iF(e){return t=>{let r=e(t,iI);if(iP(r))try{return[...r]}catch(e){if(e instanceof ik)return null;throw e}return r}}function iO(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 iB(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function iN(e){return e?.type==="MemberExpression"}function ij(e){return e?.type==="AwaitExpression"}function iL(e,t){return!!iB(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function iR(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 iM(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function i$(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function iU({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=iU({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||!iL(t.callee.property,"flatMap")||!(iM(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(i$(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&i$(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))}})}})});const iq=new Set(["href","pathname","search","hash","origin"]);var iW=iU({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(iL(e,t))return e;for(;iN(e);){if(iL(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=iY(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=iY(t.parent);if(iq.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function iY(e){if(iN(e)&&iB(e.property))return e.property.name}var iG=iU({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(""))}})}})}),iZ=iU({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))}})}}}});const iK=/^toLocale(?<name>Upper|Lower)Case$/g;var iH=iU({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)||!iB(t.callee.property))return;let{property:r}=t.callee,n=iK.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 iX(e){return JSON.stringify(e)}var iJ=iU({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=iX(t.quasis[0].value.cooked),u=iO(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})}})});const iQ=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var i0=iU({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=iQ.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)} === ${iX(u)}`)})}}}}}}});const i1=/\P{ASCII}/u;function i2(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 i3(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=i4(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${i5(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(i4(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function i4(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${i5(t)}}`:`\\u${i5(t)}`})}function i5(e){return e.toString(16).padStart(4,"0").toUpperCase()}iU({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"):i1,only:e?.only}),create:(e,{pattern:t,only:r})=>i2(t,(n,u)=>{if(r&&r!==u)return;let a=i3(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});const i8=/[\u061C\u202A-\u202E\u2066-\u2069]/;var i6=iU({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=>i2(i8,(t,r)=>{let n=RegExp(i8.source,"gu"),u={kind:r,text:i4(t.value,n)},a=i3(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});const i9=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 i7=iU({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>i2(i9,t=>{let r=i3(t,RegExp(i9.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),oe=iU({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(ot);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&&i$(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=!ij(t)||iO(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${ij(t)?`Promise<${n}>`:n}`})(r.getText(i));return[e.remove(u),e.replaceText(n.argument,o)]})})}})});function ot(e){return"ReturnStatement"===e.type&&iB(e.argument)}var or=iU({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(!iM(t))return;let n=function(e,t){let r=t.find(on);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>i$(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 on(e){return"ReturnStatement"===e.type&&iB(e.argument)}var ou=iU({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(!iM(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})}})}),oa=iU({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 iL(e,"XMLHttpRequest")})(t)||iL(t.callee,"ActiveXObject")&&iR(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return iL(e,t)||iN(e)&&iL(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return iL(e,r)&&iN(t)&&iL(t.property,"load")||iN(e)&&iL(e.object,r)&&iL(e.property,["ajax","get","post","getJSON","getScript"])}(t)||oi(t,"axios")||oi(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function oi(e,t){return iL(e.callee,"require")&&iR(e.arguments[0],t)}const oo=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var os=iU({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&&(!oo.has(t.callee.name)||function(e){if(!iL(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||iR(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 = ")}]}))}})}),od=iU({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;(iL(a,"toString")||iR(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))})}}}}),ol=iU({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}})}})});const oc=new Set(["BigInt","Boolean","Number","String","Symbol"]);var of=iU({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||!oc.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)})}})}),op=iU({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}}});const 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(const e of Object.keys(oh))Object.freeze(oh[e]);Object.freeze(oh);const om=new Set(["parent","leadingComments","trailingComments"]);function og(e){return!om.has(e)&&"_"!==e[0]}function oy(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 ob(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=oy(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function oE(e){return t=>!e(t)}function ov(e,t){return"Punctuator"===e.type&&e.value===t}function ox(e){return ov(e,"=>")}function oS(e){return ov(e,",")}function oA(e){return ov(e,";")}function oC(e){return ov(e,":")}function o_(e){return ov(e,"(")}function oD(e){return ov(e,")")}function ow(e){return ov(e,"[")}function oT(e){return ov(e,"]")}function oP(e){return ov(e,"{")}function ok(e){return ov(e,"}")}function oI(e){return["Block","Line","Shebang"].includes(e.type)}const oF=oE(ox),oO=oE(oS),oB=oE(oA),oN=oE(oC),oj=oE(o_),oL=oE(oD),oR=oE(ow),oM=oE(oT),o$=oE(oP),oU=oE(ok),oV=oE(oI);function oz(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,ox);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,o_):t.getFirstToken(e,o_)).loc.start;return{start:{...n},end:{...u}}}const oq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},oW=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"])),oY=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)),oG=new Set([Object.freeze,Object.preventExtensions,Object.seal]),oZ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function oK(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=oX(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=oX(u,t);if(null==e)return null;r.push(e.value)}}return r}const oH=Object.freeze({ArrayExpression(e,t){let r=oK(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?oX(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=oX(e.left,t),n=oX(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=oK(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=oX(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=oJ(r,t);if(null!=a){let e=u.value,t=a.value;if(oY.has(e[t]))return{value:e[t](...n)};if(oG.has(e[t]))return{value:n[0]}}}}else{let u=oX(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(oY.has(t))return{value:t(...n)};if(oG.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=oX(e.test,t);return null!=r?r.value?oX(e.consequent,t):oX(e.alternate,t):null},ExpressionStatement:(e,t)=>oX(e.expression,t),Identifier(e,t){if(null!=t){let r=ob(t,e);if(null!=r&&0===r.defs.length&&oW.has(r.name)&&r.name in oq)return{value:oq[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 oX(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=oX(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=oX(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=oX(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=oJ(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 oZ)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=oX(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=oX(e.callee,t),n=oK(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(oY.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=oJ(n,t),u=oX(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=oX(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>oX(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=oX(e.tag,t),n=oK(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=oK(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=oX(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 oX(e,t){return null!=e&&Object.hasOwnProperty.call(oH,e.type)?oH[e.type](e,t):null}function oJ(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?oX(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function oQ(e,t=null){try{return oX(e,t)}catch(e){return null}}function o0(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=oQ(e,t);return r&&String(r.value)}function o1(e,t){switch(e.type){case"MemberExpression":if(e.computed)return o0(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return o0(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 o2(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=o1(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(" ")}const o3=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),o4=Object.freeze(new Set(["-","+","!","~"]));function o5(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const o8=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(og)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(o5(e)&&this.$visit(e,t,r))return!0}else if(o5(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&o3.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&&o4.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function o6(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return o8.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||oh)}function o9(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&&o_(i)&&oD(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,o_);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,o_);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}const o7=/\$(?:[$&`']|[1-9][0-9]?)/gu,se=new WeakMap;class st{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.");se.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=se.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(o7,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}const sr=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,sn=Function.call.bind(Object.hasOwnProperty),su=Symbol("read"),sa=Symbol("call"),si=Symbol("construct"),so=Symbol("esm"),ss={require:{[sa]:!0}};function sd(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class sl{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);sd(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);sd(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(ss)){let r=o0(t.arguments[0]);if(null==r||!sn(e,r))continue;let n=e[r],u=[r];n[su]&&(yield{node:t,path:u,type:su,info:n[su]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!sr.test(t.type)||null==t.source)continue;let r=t.source.value;if(!sn(e,r))continue;let n=e[r],u=[r];if(n[su]&&(yield{node:t,path:u,type:su,info:n[su]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[su]&&(yield{node:t,path:u.concat(e),type:su,info:r[su]})}else for(let e of t.specifiers){let t=sn(n,so),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(sc),(e.path.length>=2||e.type!==su)&&(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[su]&&(yield{node:e,path:t,type:su,info:r[su]}),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=o1(u);if(null==e||!sn(r,e))return;t=t.concat(e);let n=r[e];n[su]&&(yield{node:u,path:t,type:su,info:n[su]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[sa]&&(yield{node:u,path:t,type:sa,info:r[sa]});return}if("NewExpression"===u.type){u.callee===n&&r[si]&&(yield{node:u,path:t,type:si,info:r[si]});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=ob(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=o1(n);if(null==e||!sn(r,e))continue;let u=t.concat(e),a=r[e];a[su]&&(yield{node:n,path:u,type:su,info:a[su]}),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(!sn(r,u))return;t=t.concat(u);let a=r[u];a[su]&&(yield{node:e,path:t,type:su,info:a[su]}),yield*this._iterateVariableReferences(ob(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(ob(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!sn(r,n))return;t=t.concat(n);let u=r[n];u[su]&&(yield{node:e,path:t,type:su,info:u[su]})}}}function sc(e,t){return!(1===t&&"default"===e)}sl.READ=su,sl.CALL=sa,sl.CONSTRUCT=si,sl.ESM=so;var sf=iC(Object.freeze({__proto__:null,CALL:sa,CONSTRUCT:si,ESM:so,PatternMatcher:st,READ:su,ReferenceTracker:sl,default:{CALL:sa,CONSTRUCT:si,ESM:so,findVariable:ob,getFunctionHeadLocation:oz,getFunctionNameWithKind:o2,getInnermostScope:oy,getPropertyName:o1,getStaticValue:oQ,getStringIfConstant:o0,hasSideEffect:o6,isArrowToken:ox,isClosingBraceToken:ok,isClosingBracketToken:oT,isClosingParenToken:oD,isColonToken:oC,isCommaToken:oS,isCommentToken:oI,isNotArrowToken:oF,isNotClosingBraceToken:oU,isNotClosingBracketToken:oM,isNotClosingParenToken:oL,isNotColonToken:oN,isNotCommaToken:oO,isNotCommentToken:oV,isNotOpeningBraceToken:o$,isNotOpeningBracketToken:oR,isNotOpeningParenToken:oj,isNotSemicolonToken:oB,isOpeningBraceToken:oP,isOpeningBracketToken:ow,isOpeningParenToken:o_,isParenthesized:o9,isSemicolonToken:oA,PatternMatcher:st,READ:su,ReferenceTracker:sl},findVariable:ob,getFunctionHeadLocation:oz,getFunctionNameWithKind:o2,getInnermostScope:oy,getPropertyName:o1,getStaticValue:oQ,getStringIfConstant:o0,hasSideEffect:o6,isArrowToken:ox,isClosingBraceToken:ok,isClosingBracketToken:oT,isClosingParenToken:oD,isColonToken:oC,isCommaToken:oS,isCommentToken:oI,isNotArrowToken:oF,isNotClosingBraceToken:oU,isNotClosingBracketToken:oM,isNotClosingParenToken:oL,isNotColonToken:oN,isNotCommaToken:oO,isNotCommentToken:oV,isNotOpeningBraceToken:o$,isNotOpeningBracketToken:oR,isNotOpeningParenToken:oj,isNotSemicolonToken:oB,isOpeningBraceToken:oP,isOpeningBracketToken:ow,isOpeningParenToken:o_,isParenthesized:o9,isSemicolonToken:oA})),sp=iA(function(){if(a)return u;a=1;let{isParenthesized:e}=sf,t="too-deep",r="should-parenthesized";return u={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 sh(){if(o)return i;o=1;let{isParenthesized:e,isOpeningParenToken:t,isClosingParenToken:r}=sf;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 i={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 sm(){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 sg(){if(c)return l;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 c=1,l={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 sy(){return x?v:(x=1,v=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])}function sb(){return _?C:(_=1,C=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 sE(){if(O)return F;O=1;let{isStringLiteral:e}=sm(),{isCallExpression:t}=sg();return F=r=>t(r,{name:"require",argumentsLength:1,optional:!1})&&e(r.arguments[0])}function sv(){if(N)return B;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 N=1,B={isNodeMatchesNameOrPath:e,isNodeMatches:function(t,r){return r.some(r=>e(t,r))}}}function sx(){if(U)return $;U=1;let{isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a}=sm(),{isNewExpression:i,isCallExpression:o,isCallOrNewExpression:s}=sg();return $={isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a,isArrowFunctionBody:p?f:(p=1,f=function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e}),isCallExpression:o,isCallOrNewExpression:s,isDirective:m?h:(m=1,h=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive),isEmptyNode:y?g:(y=1,g=function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))}),isExpressionStatement:E?b:(E=1,b=function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}),isFunction:function(){if(A)return S;A=1;let e=sy();return S=function(t){return e.includes(t.type)}}(),isMemberExpression:sb(),isMethodCall:function(){if(w)return D;w=1;let e=sb(),{isCallExpression:t}=sg();return D=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(P)return T;P=1;let{isNumberLiteral:e}=sm();return T=function(t){return t?.type==="UnaryExpression"&&"-"===t.operator&&e(t.argument)&&1===t.argument.value}}(),isNewExpression:i,isReferenceIdentifier:I?k:(I=1,k=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:sE(),isTaggedTemplateLiteral:function(){if(L)return j;L=1;let{isNodeMatches:e}=sv();return j=function(t,r){return"TemplateLiteral"===t.type&&"TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t&&(!r||e(t.parent.tag,r))}}(),isUndefined:M?R:(M=1,R=function(e){return"Identifier"===e.type&&"undefined"===e.name}),functionTypes:sy()}}function sS(){return W?q:(W=1,q=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator))}var sA={},sC={},s_={};function sD(){var e,t;return H||(H=1,Object.defineProperty(sA,"__esModule",{value:!0}),Object.defineProperty(sA,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(sA,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(sA,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(sA,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(sA,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(sA,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(sA,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(sA,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(Z)return sC;Z=1,Object.defineProperty(sC,"__esModule",{value:!0}),sC.isIdentifierChar=s,sC.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},sC.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 sC}(),t=function(){if(K)return s_;K=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_}()),sA}function sw(){if(ee)return Q;ee=1;let e=t=>[t,...t.childScopes.flatMap(t=>e(t))];return Q=e}function sT(){if(er)return et;er=1;let e=sw();return et=t=>[...new Set(e(t).flatMap(({references:e})=>e))]}function sP(){if(eu)return en;eu=1;let{isIdentifierName:e,isStrictReservedWord:t,isKeyword:r}=sD(),n=J?X:(J=1,X=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}}),u=sT(),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 en=function(e,t,r=d){if(i(e)||i(e+="_")){for(;!s(e,t)||!r(e,t);)e+="_";return e}}}function sk(){if(es)return eo;es=1;let e=function(){if(ei)return ea;ei=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]/,E=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,v=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,x=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,S=(e,t)=>{let o;let A=()=>{k=P,++t.indentLevel,P=t.indent.repeat(t.indentLevel)},C={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},_=t&&t.json;_&&(C.quotes="double",C.wrap=!0),"single"!=(t=n(C,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let D="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",w=t.compact,T=t.lowercaseHex,P=t.indent.repeat(t.indentLevel),k="",I=t.__inline1__,F=t.__inline2__,O=w?"":"\n",B=!0,N="binary"==t.numbers,j="octal"==t.numbers,L="decimal"==t.numbers,R="hexadecimal"==t.numbers;if(_&&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("+S(Array.from(e),t)+")");if(m(e))return 0==e.size?"new Set()":"new Set("+S(Array.from(e),t)+")";if(d(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+S(Array.from(e),t)+")";if(s(e))return(o=[],t.wrap=!0,I&&(t.__inline1__=!1,t.__inline2__=!0),F||A(),u(e,e=>{B=!1,F&&(t.__inline2__=!1),o.push((w||F?"":P)+S(e,t))}),B)?"[]":F?"["+o.join(", ")+"]":"["+O+o.join(","+O)+O+(w?"":k)+"]";if(f(e)){if(_)return JSON.stringify(e);if(L)return String(e);if(R){let t=e.toString(16);return T||(t=t.toUpperCase()),"0x"+t}if(N)return"0b"+e.toString(2);if(j)return"0o"+e.toString(8)}else if(l(e))return(o=[],t.wrap=!0,A(),r(e,(e,r)=>{B=!1,o.push((w?"":P)+S(e,t)+":"+(w?"":" ")+S(r,t))}),B)?"{}":"{"+O+o.join(","+O)+O+(w?"":k)+"}";else return _?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?v:x;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,T)+"}":a(i(e,T))+a(i(n,T))}if(n)return a(i(n.charCodeAt(0),T));if("\0"==e&&!_&&!b.test(s.charAt(o+1)))return"\\0";if(u)return u==D||t.escapeEverything?"\\"+u:u;if(y.test(e))return g[e];if(t.minimal&&!E.test(e))return e;let d=i(e.charCodeAt(0),T);return _||d.length>2?a(d):"\\x"+("00"+d).slice(-2)}),"`"==D&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext&&(o=o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,_?"\\u003C!--":"\\x3C!--")),t.wrap&&(o=D+o+D),o};return S.version="3.0.2",ea=S}();return eo=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 sI(){if(el)return ed;el=1;let{isOpeningParenToken:e,isCommaToken:t}=sf;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 sF(){return eh?ep:(eh=1,ep=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])])}function sO(){return ev?eE:(ev=1,eE=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 sB(){return eT?ew:(eT=1,ew=function(e,t){return e.loc.start.line===t.loc.start.line})}function sN(){if(eF)return eI;eF=1;let{getStaticValue:e}=sf;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 eI=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 sj(){return eB?eO:(eB=1,eO=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 sL(){if(eR)return eL;eR=1;let e=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),t=new Set(["[","(","/","`","+","-","*",",","."]);return eL=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 sR(){if(e$)return eM;e$=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sf;return eM=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 sM(){if(eV)return eU;eV=1;let{isNumberLiteral:e,isBigIntLiteral:t}=sx(),r=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n=e=>r.test(e);return eU={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 s$(){if(eq)return ez;eq=1;let e=sR(),{isDecimalIntegerNode:t}=sM();return ez=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 sU={exports:{}};function sV(){return eQ?eJ:(eQ=1,eJ=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(e3)return e2;e3=1;let{isParenthesized:e,getParenthesizedTimes:t,getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u}=sh(),{isArrayPrototypeProperty:a,isObjectPrototypeProperty:i}=function(){if(z)return V;z=1;let{isMemberExpression:e}=sx();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 V={isArrayPrototypeProperty:(e,r)=>t(e,{...r,object:"Array"}),isObjectPrototypeProperty:(e,r)=>t(e,{...r,object:"Object"})}}(),{isNodeMatches:o,isNodeMatchesNameOrPath:s}=sv(),{isBooleanNode:d,getBooleanAncestor:l}=function(){if(G)return Y;G=1;let e=sS(),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 Y={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 e2={avoidCapture:sP(),escapeString:sk(),getBooleanAncestor:l,getCallExpressionArgumentsText:function(){if(ef)return ec;ef=1;let e=sI();return ec=function(t,r){let{openingParenthesisToken:n,closingParenthesisToken:u}=e(t,r);return t.text.slice(n.range[1],u.range[0])}}(),getCallExpressionTokens:sI(),getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u,getParenthesizedTimes:t,getReferences:sT(),getScopes:sw(),getVariableIdentifiers:sF(),hasOptionalChainElement:function(){if(eg)return em;eg=1;let e=e=>"MemberExpression"===e.type||"CallExpression"===e.type;return em=function t(r){return!!e(r)&&(!!r.optional||"MemberExpression"===r.type&&t(r.object))}}(),isArrayPrototypeProperty:a,isBooleanNode:d,isFunctionSelfUsedInside:function(){if(eb)return ey;eb=1;let{findVariable:e}=sf,t=(t,r)=>{let{references:n=[]}=e(t,r)||{};return n};return ey=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:sO(),isLogicalExpression:sS(),isMethodNamed:eS?ex:(eS=1,ex=(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(eC)return eA;eC=1;let{isUndefined:e}=sx(),t=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]);return eA=r=>t.has(r.type)||e(r)}(),isNodeValueNotFunction:function(){if(eD)return e_;eD=1;let{isUndefined:e,isCallExpression:t,isMethodCall:r}=sx(),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:sB(),isParenthesized:e,isSameIdentifier:ek?eP:(ek=1,eP=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name),isSameReference:sN(),isShadowed:sj(),isValueNotUsable:function(){if(ej)return eN;ej=1;let{isExpressionStatement:e}=sx();return eN=t=>e(t.parent)}(),needsSemicolon:sL(),shouldAddParenthesesToMemberExpressionObject:s$(),shouldAddParenthesesToCallExpressionCallee:eY?eW:(eY=1,eW=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:eZ?eG:(eZ=1,eG=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(eX)return eH;eX=1;let{singular:t}=(eK||(eK=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},sU.exports=e()),sU.exports);return eH=e=>{let r=t(e);if(r!==e)return r}}(),toLocation:sV(),getAncestor:e1?e0:(e1=1,e0=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})}}sU.exports;var sq=iA(function(){if(e5)return e4;e5=1;let{findVariable:e}=sf,{getAncestor:t}=sz(),{isStaticRequire:r,isStringLiteral:n,isMemberExpression:u}=sx(),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 e4={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`."}}}}()),sW=iA(function(){if(e7)return e9;e7=1;let e=sk(),t=e6?e8:(e6=1,e8={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}=sx(),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 e9={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}}`."}}}}()),sY=iA(function(){if(tt)return te;tt=1;let{isMemberExpression:e}=sx(),t="error",r="suggestion";return te={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 sG(){if(tp)return tf;tp=1;let{isSemicolonToken:e}=sf;return tf=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 sZ(){return tm?th:(tm=1,th=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 sK(){if(tx)return tv;tx=1;let{getParenthesizedRange:e}=sh(),t=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;return tv=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 sH(){if(t_)return tC;t_=1;let{getParenthesizedRange:e}=sh();return tC=function(t,r,n){let[,u]=e(r.object,n),[,a]=r.range;return t.removeRange([u,a])}}function sX(){return tI?tk:(tI=1,tk=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value)}function sJ(){return tN?tB:(tN=1,tB=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1])}function sQ(){if(tU)return t$;tU=1;let e=sX(),t=function(){if(tO)return tF;tO=1;let e=sX();return tF=t=>"AssignmentPattern"===t.parent.type&&t.parent.left===t&&e(t.parent)}(),r=function(){if(tL)return tj;tL=1;let e=sJ();return tj=t=>{let{type:r,local:n,imported:u}=t.parent;return"ImportSpecifier"===r&&e(n,u)&&n===t}}(),n=function(){if(tM)return tR;tM=1;let e=sJ();return tR=t=>{let{type:r,local:n,exported:u}=t.parent;return"ExportSpecifier"===r&&e(n,u)&&n===t}}();return t$=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 s0(){return tK?tZ:(tK=1,tZ={extendFixRange:tn?tr:(tn=1,tr=function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}),removeParentheses:function(){if(ta)return tu;ta=1;let{getParentheses:e}=sh();return tu=function*(t,r,n){for(let u of e(t,n))yield r.remove(u)}}(),appendArgument:function(){if(to)return ti;to=1;let{isCommaToken:e}=sf;return ti=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}=sf,{getParentheses:t}=sh();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(tc)return tl;tc=1;let{getParenthesizedRange:e}=sh();return tl=function(t,r,n,u){return t.replaceTextRange(e(r,u),n)}}(),switchNewExpressionToCallExpression:function(){if(ty)return tg;ty=1;let e=sR(),{isParenthesized:t}=sh(),r=sB(),n=sG(),u=sZ();return tg=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(tA)return tS;tA=1;let{isParenthesized:e}=sh(),t=tE?tb:(tE=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=sK();return tS=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:sH(),removeMethodCall:function(){if(tw)return tD;tw=1;let{getParenthesizedRange:e}=sh(),t=sH();return tD=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:tP?tT:(tP=1,tT=(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)}),replaceReferenceIdentifier:sQ(),renameVariable:function(){if(tz)return tV;tz=1;let e=sF(),t=sQ();return tV=(r,n,u)=>e(r).map(e=>t(e,n,u))}(),replaceNodeOrTokenAndSpacesBefore:function(){if(tW)return tq;tW=1;let{getParentheses:e}=sh();return tq=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:sZ(),fixSpaceAroundKeyword:sK(),replaceStringLiteral:tG?tY:(tG=1,tY=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:sG()})}var s1=iA(function(){if(tX)return tH;tX=1;let{appendArgument:e}=s0(),{isMethodCall:t}=sx(),{isArrayPrototypeProperty:r}=sz(),n="require-array-join-separator";return tH={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."}}}}()),s2=iA(function(){if(tQ)return tJ;tQ=1;let{getStaticValue:e,getPropertyName:t}=sf,{isMethodCall:r}=sx(),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 tJ={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."}}}}()),s3=iA(function(){if(t1)return t0;t1=1;let{getFunctionHeadLocation:e}=sf,{isMethodCall:t}=sx(),r="no-invalid-remove-event-listener";return t0={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."}}}}()),s4=iA(function(){if(t3)return t2;t3=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sf,{getReferences:r,isNodeMatches:n}=sz(),{functionTypes:u}=sx(),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 t2={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."}}}}()),s5=iA(function(){if(t6)return t8;t6=1;let{getStaticValue:e}=sf,{switchNewExpressionToCallExpression:t}=s0(),r=function(){if(t5)return t4;t5=1;let{getStaticValue:e}=sf,{isNumberLiteral:t}=sx(),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 t4=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}=sx(),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 t8={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}}()`."}}}}()),s8=iA(function(){if(t7)return t9;t7=1;let e=sV(),{isStringLiteral:t,isMethodCall:r}=sx(),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 t9={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."}}}}()),s6=iA(function(){if(rt)return re;rt=1;let{isEmptyNode:e,isDirective:t}=sx(),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 re={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."}}}}()),s9=iA(function(){if(rn)return rr;rn=1;let{isParenthesized:e,getParenthesizedRange:t}=sh(),{removeParentheses:r}=s0(),n="no-useless-fallback-in-spread";return rr={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."}}}}()),s7=iA(function(){if(ra)return ru;ra=1;let{isMethodCall:e,isMemberExpression:t}=sx(),{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 ru={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."}}}}()),de=iA(function(){if(ro)return ri;ro=1;let{getParenthesizedRange:e}=sz(),{isFunction:t,isMethodCall:r}=sx();return ri={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)`."}}}}()),dt=iA(function(){if(rd)return rs;rd=1;let{isParenthesized:e}=sf,t=sL(),{isDecimalInteger:r}=sM(),n=sV(),{fixSpaceAroundKeyword:u}=s0(),{isNumberLiteral:a}=sx(),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:E}=s;return{loc:n([b,y],E),messageId:g?o:i,*fix(n){let a=m;"MemberExpression"===d.parent.type&&d.parent.object===d&&r(m)&&!e(d,E)&&(a=`(${a})`,t(E.getTokenBefore(d),E,a)&&(a=`;${a}`)),yield n.replaceText(d,a),yield*u(n,d,E)}}}}),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."}}}}()),dr=iA(function(){if(rc)return rl;rc=1;let{isCommaToken:e,isOpeningBraceToken:t,isClosingBraceToken:r}=sf,{isStringLiteral:n}=sx(),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 rl={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
+ "use strict";let e,t;var r,n,u,a,i,o,s,d,l,c,f,p,h,m,g,y,b,E,x,v,S,A,C,_,D,w,T,P,k,I,F,O,B,j,N,L,R,M,$,U,V,z,q,W,Y,G,Z,K,H,J,X,Q,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,eh,em,eg,ey,eb,eE,ex,ev,eS,eA,eC,e_,eD,ew,eT,eP,ek,eI,eF,eO,eB,ej,eN,eL,eR,eM,e$,eU,eV,ez,eq,eW,eY,eG,eZ,eK,eH,eJ,eX,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,th,tm,tg,ty,tb,tE,tx,tv,tS,tA,tC,t_,tD,tw,tT,tP,tk,tI,tF,tO,tB,tj,tN,tL,tR,tM,t$,tU,tV,tz,tq,tW,tY,tG,tZ,tK,tH,tJ,tX,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,rh,rm,rg,ry,rb,rE,rx,rv,rS,rA,rC,r_,rD,rw,rT,rP,rk,rI,rF,rO,rB,rj,rN,rL,rR,rM,r$,rU,rV,rz,rq,rW,rY,rG,rZ,rK,rH,rJ,rX,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,nh,nm,ng,ny,nb,nE,nx,nv,nS,nA,nC,n_,nD,nw,nT,nP,nk,nI,nF,nO,nB,nj,nN,nL,nR,nM,n$,nU,nV,nz,nq,nW,nY,nG,nZ,nK,nH,nJ,nX,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,uh,um,ug,uy,ub,uE,ux,uv,uS,uA,uC,u_,uD,uw,uT,uP,uk,uI,uF,uO,uB,uj,uN,uL,uR,uM,u$,uU,uV,uz,uq,uW,uY,uG,uZ,uK,uH,uJ,uX,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,ah,am,ag,ay,ab,aE,ax,av,aS,aA,aC,a_,aD,aw,aT,aP,ak,aI,aF,aO,aB,aj,aN,aL,aR,aM,a$,aU,aV,az,aq,aW,aY,aG,aZ,aK,aH,aJ,aX,aQ,a0,a1,a2,a3,a4,a5,a8,a6,a9,a7,ie,it,ir,iu,ia,ii,io,is,id=require("node:path"),il=require("node:fs"),ic=require("module"),ip=require("@eslint-sukka/shared"),ih=require("@typescript-eslint/utils"),im=require("typescript"),ig=require("@typescript-eslint/type-utils");function iy(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var ib=iy(id),iE=iy(il),ix=iy(ic),iv=iy(im),iS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iC(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 i_=iC(ib),iD={name:"eslint-plugin-unicorn",version:"56.0.1",description:"More than 100 powerful ESLint rules",license:"MIT",repository:"sindresorhus/eslint-plugin-unicorn",funding:"https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1",author:{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"https://sindresorhus.com"},main:"index.js",types:"index.d.ts",sideEffects:!1,engines:{node:">=18.18"},scripts:{"bundle-lodash":"echo \"export {defaultsDeep, camelCase, kebabCase, snakeCase, upperFirst, lowerFirst} from 'lodash-es';\" | npx esbuild --bundle --outfile=rules/utils/lodash.js --format=cjs","create-rule":"node ./scripts/create-rule.mjs && npm run fix:eslint-docs",fix:"run-p --continue-on-error fix:*","fix:eslint-docs":"eslint-doc-generator","fix:js":"npm run lint:js -- --fix","fix:markdown":"npm run lint:markdown -- --fix","fix:snapshots":"ava --update-snapshots",integration:"node ./test/integration/test.mjs",lint:"run-p --continue-on-error lint:*","lint:eslint-docs":"npm run fix:eslint-docs -- --check","lint:js":"xo","lint:markdown":'markdownlint "**/*.md"',"lint:package-json":"npmPkgJsonLint .","run-rules-on-codebase":"eslint --config=./eslint.dogfooding.config.mjs",smoke:"eslint-remote-tester --config ./test/smoke/eslint-remote-tester.config.mjs",test:"npm-run-all --continue-on-error lint test:*","test:js":"c8 ava"},files:["index.js","index.d.ts","rules","configs"],keywords:["eslint","eslintplugin","eslint-plugin","unicorn","linter","lint","style","xo"],dependencies:{"@babel/helper-validator-identifier":"^7.24.7","@eslint-community/eslint-utils":"^4.4.0","ci-info":"^4.0.0","clean-regexp":"^1.0.0","core-js-compat":"^3.38.1",esquery:"^1.6.0",globals:"^15.9.0","indent-string":"^4.0.0","is-builtin-module":"^3.2.1",jsesc:"^3.0.2",pluralize:"^8.0.0","read-pkg-up":"^7.0.1","regexp-tree":"^0.1.27",regjsparser:"^0.10.0",semver:"^7.6.3","strip-indent":"^3.0.0"},devDependencies:{"@babel/code-frame":"^7.24.7","@babel/core":"^7.25.2","@babel/eslint-parser":"^7.25.1","@eslint/eslintrc":"^3.1.0","@lubien/fixture-beta-package":"^1.0.0-beta.1","@typescript-eslint/parser":"^8.4.0",ava:"^6.1.3",c8:"^10.1.2",chalk:"^5.3.0",enquirer:"^2.4.1",eslint:"^9.10.0","eslint-ava-rule-tester":"^5.0.1","eslint-doc-generator":"1.7.0","eslint-plugin-eslint-plugin":"^6.2.0","eslint-plugin-internal-rules":"file:./scripts/internal-rules/","eslint-remote-tester":"^4.0.1","eslint-remote-tester-repositories":"^2.0.0",espree:"^10.1.0",execa:"^8.0.1",listr:"^0.14.3","lodash-es":"^4.17.21","markdownlint-cli":"^0.41.0",memoize:"^10.0.0","npm-package-json-lint":"^8.0.0","npm-run-all2":"^6.2.2",outdent:"^0.8.0","pretty-ms":"^9.1.0",typescript:"^5.5.4","vue-eslint-parser":"^9.4.3",xo:"^0.59.3",yaml:"^2.5.1"},peerDependencies:{eslint:">=8.56.0"},ava:{files:["test/*.mjs","test/unit/*.mjs"]},c8:{reporter:["text","lcov"]},xo:{extends:["plugin:internal-rules/all"],ignores:[".cache-eslint-remote-tester","eslint-remote-tester-results","rules/utils/lodash.js","test/integration/{fixtures,fixtures-local}/**"],rules:{"unicorn/escape-case":"off","unicorn/expiring-todo-comments":"off","unicorn/no-hex-escape":"off","unicorn/no-null":"error","unicorn/prefer-array-flat":["error",{functions:["flat","flatten"]}],"import/order":"off","func-names":"off"},overrides:[{files:["**/*.js"],parserOptions:{sourceType:"script"},rules:{strict:"error","unicorn/prefer-module":"off"}},{files:["rules/*.js"],plugins:["eslint-plugin"],extends:["plugin:eslint-plugin/all"],rules:{"eslint-plugin/require-meta-docs-description":["error",{pattern:".+"}],"eslint-plugin/require-meta-docs-url":"off","eslint-plugin/require-meta-has-suggestions":"off","eslint-plugin/require-meta-schema":"off","eslint-plugin/require-meta-schema-description":"off"}}]}};function iw(){return n?r:(n=1,r=function(e){let t=i_.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v${iD.version}/docs/rules/${t}.md`})}var iT=iA(iw());const iP=e=>!!e&&Symbol.iterator in e;class ik extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}const iI={abort(){throw new ik("Fix aborted.")}};function iF(e){return t=>{let r=e(t,iI);if(iP(r))try{return[...r]}catch(e){if(e instanceof ik)return null;throw e}return r}}function iO(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 iB(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function ij(e){return e?.type==="MemberExpression"}function iN(e){return e?.type==="AwaitExpression"}function iL(e,t){return!!iB(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function iR(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 iM(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function i$(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function iU({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=iU({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||!iL(t.callee.property,"flatMap")||!(iM(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(i$(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&i$(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))}})}})});const iq=new Set(["href","pathname","search","hash","origin"]);var iW=iU({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(iL(e,t))return e;for(;ij(e);){if(iL(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=iY(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=iY(t.parent);if(iq.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function iY(e){if(ij(e)&&iB(e.property))return e.property.name}var iG=iU({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(""))}})}})}),iZ=iU({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))}})}}}});const iK=/^toLocale(?<name>Upper|Lower)Case$/g;var iH=iU({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||!ij(t.callee)||!iB(t.callee.property))return;let{property:r}=t.callee,n=iK.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 iJ(e){return JSON.stringify(e)}var iX=iU({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=iJ(t.quasis[0].value.cooked),u=iO(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})}})});const iQ=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var i0=iU({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=iQ.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)} === ${iJ(u)}`)})}}}}}}});const i1=/\P{ASCII}/u;function i2(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 i3(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=i4(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${i5(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(i4(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function i4(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${i5(t)}}`:`\\u${i5(t)}`})}function i5(e){return e.toString(16).padStart(4,"0").toUpperCase()}iU({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"):i1,only:e?.only}),create:(e,{pattern:t,only:r})=>i2(t,(n,u)=>{if(r&&r!==u)return;let a=i3(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});const i8=/[\u061C\u202A-\u202E\u2066-\u2069]/;var i6=iU({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=>i2(i8,(t,r)=>{let n=RegExp(i8.source,"gu"),u={kind:r,text:i4(t.value,n)},a=i3(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});const i9=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 i7=iU({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>i2(i9,t=>{let r=i3(t,RegExp(i9.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),oe=iU({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(ot);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&&i$(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=!iN(t)||iO(t,"TryStatement")?t:t.argument,o=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${iN(t)?`Promise<${n}>`:n}`})(r.getText(i));return[e.remove(u),e.replaceText(n.argument,o)]})})}})});function ot(e){return"ReturnStatement"===e.type&&iB(e.argument)}var or=iU({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(!iM(t))return;let n=function(e,t){let r=t.find(on);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>i$(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 on(e){return"ReturnStatement"===e.type&&iB(e.argument)}var ou=iU({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(!iM(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})}})}),oa=iU({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 iL(e,"XMLHttpRequest")})(t)||iL(t.callee,"ActiveXObject")&&iR(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return iL(e,t)||ij(e)&&iL(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return iL(e,r)&&ij(t)&&iL(t.property,"load")||ij(e)&&iL(e.object,r)&&iL(e.property,["ajax","get","post","getJSON","getScript"])}(t)||oi(t,"axios")||oi(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function oi(e,t){return iL(e.callee,"require")&&iR(e.arguments[0],t)}const oo=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var os=iU({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&&(!oo.has(t.callee.name)||function(e){if(!iL(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||iR(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 = ")}]}))}})}),od=iU({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;(iL(a,"toString")||iR(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))})}}}}),ol=iU({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}})}})});const oc=new Set(["BigInt","Boolean","Number","String","Symbol"]);var of=iU({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||!oc.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)})}})}),op=iU({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}}});const 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(const e of Object.keys(oh))Object.freeze(oh[e]);Object.freeze(oh);const om=new Set(["parent","leadingComments","trailingComments"]);function og(e){return!om.has(e)&&"_"!==e[0]}function oy(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 ob(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=oy(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function oE(e){return t=>!e(t)}function ox(e,t){return"Punctuator"===e.type&&e.value===t}function ov(e){return ox(e,"=>")}function oS(e){return ox(e,",")}function oA(e){return ox(e,";")}function oC(e){return ox(e,":")}function o_(e){return ox(e,"(")}function oD(e){return ox(e,")")}function ow(e){return ox(e,"[")}function oT(e){return ox(e,"]")}function oP(e){return ox(e,"{")}function ok(e){return ox(e,"}")}function oI(e){return["Block","Line","Shebang"].includes(e.type)}const oF=oE(ov),oO=oE(oS),oB=oE(oA),oj=oE(oC),oN=oE(o_),oL=oE(oD),oR=oE(ow),oM=oE(oT),o$=oE(oP),oU=oE(ok),oV=oE(oI);function oz(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,ov);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,o_):t.getFirstToken(e,o_)).loc.start;return{start:{...n},end:{...u}}}const oq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},oW=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"])),oY=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)),oG=new Set([Object.freeze,Object.preventExtensions,Object.seal]),oZ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function oK(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=oJ(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=oJ(u,t);if(null==e)return null;r.push(e.value)}}return r}const oH=Object.freeze({ArrayExpression(e,t){let r=oK(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?oJ(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=oJ(e.left,t),n=oJ(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=oK(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=oJ(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=oX(r,t);if(null!=a){let e=u.value,t=a.value;if(oY.has(e[t]))return{value:e[t](...n)};if(oG.has(e[t]))return{value:n[0]}}}}else{let u=oJ(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(oY.has(t))return{value:t(...n)};if(oG.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=oJ(e.test,t);return null!=r?r.value?oJ(e.consequent,t):oJ(e.alternate,t):null},ExpressionStatement:(e,t)=>oJ(e.expression,t),Identifier(e,t){if(null!=t){let r=ob(t,e);if(null!=r&&0===r.defs.length&&oW.has(r.name)&&r.name in oq)return{value:oq[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 oJ(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=oJ(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=oJ(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=oJ(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=oX(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 oZ)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=oJ(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=oJ(e.callee,t),n=oK(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(oY.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=oX(n,t),u=oJ(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=oJ(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>oJ(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=oJ(e.tag,t),n=oK(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=oK(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=oJ(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 oJ(e,t){return null!=e&&Object.hasOwnProperty.call(oH,e.type)?oH[e.type](e,t):null}function oX(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?oJ(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function oQ(e,t=null){try{return oJ(e,t)}catch(e){return null}}function o0(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=oQ(e,t);return r&&String(r.value)}function o1(e,t){switch(e.type){case"MemberExpression":if(e.computed)return o0(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return o0(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 o2(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=o1(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(" ")}const o3=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),o4=Object.freeze(new Set(["-","+","!","~"]));function o5(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const o8=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(og)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(o5(e)&&this.$visit(e,t,r))return!0}else if(o5(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&o3.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&&o4.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function o6(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return o8.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||oh)}function o9(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&&o_(i)&&oD(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,o_);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,o_);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}const o7=/\$(?:[$&`']|[1-9][0-9]?)/gu,se=new WeakMap;class st{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.");se.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=se.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(o7,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}const sr=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,sn=Function.call.bind(Object.hasOwnProperty),su=Symbol("read"),sa=Symbol("call"),si=Symbol("construct"),so=Symbol("esm"),ss={require:{[sa]:!0}};function sd(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class sl{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);sd(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);sd(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(ss)){let r=o0(t.arguments[0]);if(null==r||!sn(e,r))continue;let n=e[r],u=[r];n[su]&&(yield{node:t,path:u,type:su,info:n[su]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!sr.test(t.type)||null==t.source)continue;let r=t.source.value;if(!sn(e,r))continue;let n=e[r],u=[r];if(n[su]&&(yield{node:t,path:u,type:su,info:n[su]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[su]&&(yield{node:t,path:u.concat(e),type:su,info:r[su]})}else for(let e of t.specifiers){let t=sn(n,so),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(sc),(e.path.length>=2||e.type!==su)&&(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[su]&&(yield{node:e,path:t,type:su,info:r[su]}),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=o1(u);if(null==e||!sn(r,e))return;t=t.concat(e);let n=r[e];n[su]&&(yield{node:u,path:t,type:su,info:n[su]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[sa]&&(yield{node:u,path:t,type:sa,info:r[sa]});return}if("NewExpression"===u.type){u.callee===n&&r[si]&&(yield{node:u,path:t,type:si,info:r[si]});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=ob(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=o1(n);if(null==e||!sn(r,e))continue;let u=t.concat(e),a=r[e];a[su]&&(yield{node:n,path:u,type:su,info:a[su]}),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(!sn(r,u))return;t=t.concat(u);let a=r[u];a[su]&&(yield{node:e,path:t,type:su,info:a[su]}),yield*this._iterateVariableReferences(ob(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(ob(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!sn(r,n))return;t=t.concat(n);let u=r[n];u[su]&&(yield{node:e,path:t,type:su,info:u[su]})}}}function sc(e,t){return 1!==t||"default"!==e}sl.READ=su,sl.CALL=sa,sl.CONSTRUCT=si,sl.ESM=so;var sf=iC(Object.freeze({__proto__:null,CALL:sa,CONSTRUCT:si,ESM:so,PatternMatcher:st,READ:su,ReferenceTracker:sl,default:{CALL:sa,CONSTRUCT:si,ESM:so,findVariable:ob,getFunctionHeadLocation:oz,getFunctionNameWithKind:o2,getInnermostScope:oy,getPropertyName:o1,getStaticValue:oQ,getStringIfConstant:o0,hasSideEffect:o6,isArrowToken:ov,isClosingBraceToken:ok,isClosingBracketToken:oT,isClosingParenToken:oD,isColonToken:oC,isCommaToken:oS,isCommentToken:oI,isNotArrowToken:oF,isNotClosingBraceToken:oU,isNotClosingBracketToken:oM,isNotClosingParenToken:oL,isNotColonToken:oj,isNotCommaToken:oO,isNotCommentToken:oV,isNotOpeningBraceToken:o$,isNotOpeningBracketToken:oR,isNotOpeningParenToken:oN,isNotSemicolonToken:oB,isOpeningBraceToken:oP,isOpeningBracketToken:ow,isOpeningParenToken:o_,isParenthesized:o9,isSemicolonToken:oA,PatternMatcher:st,READ:su,ReferenceTracker:sl},findVariable:ob,getFunctionHeadLocation:oz,getFunctionNameWithKind:o2,getInnermostScope:oy,getPropertyName:o1,getStaticValue:oQ,getStringIfConstant:o0,hasSideEffect:o6,isArrowToken:ov,isClosingBraceToken:ok,isClosingBracketToken:oT,isClosingParenToken:oD,isColonToken:oC,isCommaToken:oS,isCommentToken:oI,isNotArrowToken:oF,isNotClosingBraceToken:oU,isNotClosingBracketToken:oM,isNotClosingParenToken:oL,isNotColonToken:oj,isNotCommaToken:oO,isNotCommentToken:oV,isNotOpeningBraceToken:o$,isNotOpeningBracketToken:oR,isNotOpeningParenToken:oN,isNotSemicolonToken:oB,isOpeningBraceToken:oP,isOpeningBracketToken:ow,isOpeningParenToken:o_,isParenthesized:o9,isSemicolonToken:oA})),sp=iA(function(){if(a)return u;a=1;let{isParenthesized:e}=sf,t="too-deep",r="should-parenthesized";return u={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 sh(){if(o)return i;o=1;let{isParenthesized:e,isOpeningParenToken:t,isClosingParenToken:r}=sf;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 i={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 sm(){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 sg(){if(c)return l;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 c=1,l={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 sy(){return v?x:(v=1,x=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])}function sb(){return _?C:(_=1,C=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 sE(){if(O)return F;O=1;let{isStringLiteral:e}=sm(),{isCallExpression:t}=sg();return F=r=>t(r,{name:"require",argumentsLength:1,optional:!1})&&e(r.arguments[0])}function sx(){if(j)return B;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,B={isNodeMatchesNameOrPath:e,isNodeMatches:function(t,r){return r.some(r=>e(t,r))}}}function sv(){if(U)return $;U=1;let{isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a}=sm(),{isNewExpression:i,isCallExpression:o,isCallOrNewExpression:s}=sg();return $={isLiteral:e,isStringLiteral:t,isNumberLiteral:r,isBigIntLiteral:n,isNullLiteral:u,isRegexLiteral:a,isArrowFunctionBody:p?f:(p=1,f=function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e}),isCallExpression:o,isCallOrNewExpression:s,isDirective:m?h:(m=1,h=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive),isEmptyNode:y?g:(y=1,g=function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))}),isExpressionStatement:E?b:(E=1,b=function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}),isFunction:function(){if(A)return S;A=1;let e=sy();return S=function(t){return e.includes(t.type)}}(),isMemberExpression:sb(),isMethodCall:function(){if(w)return D;w=1;let e=sb(),{isCallExpression:t}=sg();return D=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(P)return T;P=1;let{isNumberLiteral:e}=sm();return T=function(t){return t?.type==="UnaryExpression"&&"-"===t.operator&&e(t.argument)&&1===t.argument.value}}(),isNewExpression:i,isReferenceIdentifier:I?k:(I=1,k=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:sE(),isTaggedTemplateLiteral:function(){if(L)return N;L=1;let{isNodeMatches:e}=sx();return N=function(t,r){return"TemplateLiteral"===t.type&&"TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t&&(!r||e(t.parent.tag,r))}}(),isUndefined:M?R:(M=1,R=function(e){return"Identifier"===e.type&&"undefined"===e.name}),functionTypes:sy()}}function sS(){return W?q:(W=1,q=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator))}var sA={},sC={},s_={};function sD(){var e,t;return H||(H=1,Object.defineProperty(sA,"__esModule",{value:!0}),Object.defineProperty(sA,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(sA,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(sA,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(sA,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(sA,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(sA,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(sA,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(sA,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(Z)return sC;Z=1,Object.defineProperty(sC,"__esModule",{value:!0}),sC.isIdentifierChar=s,sC.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},sC.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 sC}(),t=function(){if(K)return s_;K=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_}()),sA}function sw(){if(ee)return Q;ee=1;let e=t=>[t,...t.childScopes.flatMap(t=>e(t))];return Q=e}function sT(){if(er)return et;er=1;let e=sw();return et=t=>[...new Set(e(t).flatMap(({references:e})=>e))]}function sP(){if(eu)return en;eu=1;let{isIdentifierName:e,isStrictReservedWord:t,isKeyword:r}=sD(),n=X?J:(X=1,J=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}}),u=sT(),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 en=function(e,t,r=d){if(i(e)||i(e+="_")){for(;!s(e,t)||!r(e,t);)e+="_";return e}}}function sk(){if(es)return eo;es=1;let e=function(){if(ei)return ea;ei=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]/,E=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,x=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,v=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,S=(e,t)=>{let o;let A=()=>{k=P,++t.indentLevel,P=t.indent.repeat(t.indentLevel)},C={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},_=t&&t.json;_&&(C.quotes="double",C.wrap=!0),"single"!=(t=n(C,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let D="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",w=t.compact,T=t.lowercaseHex,P=t.indent.repeat(t.indentLevel),k="",I=t.__inline1__,F=t.__inline2__,O=w?"":"\n",B=!0,j="binary"==t.numbers,N="octal"==t.numbers,L="decimal"==t.numbers,R="hexadecimal"==t.numbers;if(_&&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("+S(Array.from(e),t)+")");if(m(e))return 0==e.size?"new Set()":"new Set("+S(Array.from(e),t)+")";if(d(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+S(Array.from(e),t)+")";if(s(e))return(o=[],t.wrap=!0,I&&(t.__inline1__=!1,t.__inline2__=!0),F||A(),u(e,e=>{B=!1,F&&(t.__inline2__=!1),o.push((w||F?"":P)+S(e,t))}),B)?"[]":F?"["+o.join(", ")+"]":"["+O+o.join(","+O)+O+(w?"":k)+"]";if(f(e)){if(_)return JSON.stringify(e);if(L)return String(e);if(R){let t=e.toString(16);return T||(t=t.toUpperCase()),"0x"+t}if(j)return"0b"+e.toString(2);if(N)return"0o"+e.toString(8)}else if(l(e))return(o=[],t.wrap=!0,A(),r(e,(e,r)=>{B=!1,o.push((w?"":P)+S(e,t)+":"+(w?"":" ")+S(r,t))}),B)?"{}":"{"+O+o.join(","+O)+O+(w?"":k)+"}";else return _?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?x:v;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,T)+"}":a(i(e,T))+a(i(n,T))}if(n)return a(i(n.charCodeAt(0),T));if("\0"==e&&!_&&!b.test(s.charAt(o+1)))return"\\0";if(u)return u==D||t.escapeEverything?"\\"+u:u;if(y.test(e))return g[e];if(t.minimal&&!E.test(e))return e;let d=i(e.charCodeAt(0),T);return _||d.length>2?a(d):"\\x"+("00"+d).slice(-2)}),"`"==D&&(o=o.replace(/\$\{/g,"\\${")),t.isScriptContext&&(o=o.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,_?"\\u003C!--":"\\x3C!--")),t.wrap&&(o=D+o+D),o};return S.version="3.0.2",ea=S}();return eo=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 sI(){if(el)return ed;el=1;let{isOpeningParenToken:e,isCommaToken:t}=sf;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 sF(){return eh?ep:(eh=1,ep=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])])}function sO(){return ex?eE:(ex=1,eE=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 sB(){return eT?ew:(eT=1,ew=function(e,t){return e.loc.start.line===t.loc.start.line})}function sj(){if(eF)return eI;eF=1;let{getStaticValue:e}=sf;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 eI=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 sN(){return eB?eO:(eB=1,eO=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 sL(){if(eR)return eL;eR=1;let e=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),t=new Set(["[","(","/","`","+","-","*",",","."]);return eL=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 sR(){if(e$)return eM;e$=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sf;return eM=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 sM(){if(eV)return eU;eV=1;let{isNumberLiteral:e,isBigIntLiteral:t}=sv(),r=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n=e=>r.test(e);return eU={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 s$(){if(eq)return ez;eq=1;let e=sR(),{isDecimalIntegerNode:t}=sM();return ez=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 sU={exports:{}};function sV(){return eQ?eX:(eQ=1,eX=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(e3)return e2;e3=1;let{isParenthesized:e,getParenthesizedTimes:t,getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u}=sh(),{isArrayPrototypeProperty:a,isObjectPrototypeProperty:i}=function(){if(z)return V;z=1;let{isMemberExpression:e}=sv();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 V={isArrayPrototypeProperty:(e,r)=>t(e,{...r,object:"Array"}),isObjectPrototypeProperty:(e,r)=>t(e,{...r,object:"Object"})}}(),{isNodeMatches:o,isNodeMatchesNameOrPath:s}=sx(),{isBooleanNode:d,getBooleanAncestor:l}=function(){if(G)return Y;G=1;let e=sS(),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 Y={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 e2={avoidCapture:sP(),escapeString:sk(),getBooleanAncestor:l,getCallExpressionArgumentsText:function(){if(ef)return ec;ef=1;let e=sI();return ec=function(t,r){let{openingParenthesisToken:n,closingParenthesisToken:u}=e(t,r);return t.text.slice(n.range[1],u.range[0])}}(),getCallExpressionTokens:sI(),getParentheses:r,getParenthesizedRange:n,getParenthesizedText:u,getParenthesizedTimes:t,getReferences:sT(),getScopes:sw(),getVariableIdentifiers:sF(),hasOptionalChainElement:function(){if(eg)return em;eg=1;let e=e=>"MemberExpression"===e.type||"CallExpression"===e.type;return em=function t(r){return!!e(r)&&(!!r.optional||"MemberExpression"===r.type&&t(r.object))}}(),isArrayPrototypeProperty:a,isBooleanNode:d,isFunctionSelfUsedInside:function(){if(eb)return ey;eb=1;let{findVariable:e}=sf,t=(t,r)=>{let{references:n=[]}=e(t,r)||{};return n};return ey=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:sO(),isLogicalExpression:sS(),isMethodNamed:eS?ev:(eS=1,ev=(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(eC)return eA;eC=1;let{isUndefined:e}=sv(),t=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]);return eA=r=>t.has(r.type)||e(r)}(),isNodeValueNotFunction:function(){if(eD)return e_;eD=1;let{isUndefined:e,isCallExpression:t,isMethodCall:r}=sv(),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:sB(),isParenthesized:e,isSameIdentifier:ek?eP:(ek=1,eP=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name),isSameReference:sj(),isShadowed:sN(),isValueNotUsable:function(){if(eN)return ej;eN=1;let{isExpressionStatement:e}=sv();return ej=t=>e(t.parent)}(),needsSemicolon:sL(),shouldAddParenthesesToMemberExpressionObject:s$(),shouldAddParenthesesToCallExpressionCallee:eY?eW:(eY=1,eW=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:eZ?eG:(eZ=1,eG=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(eJ)return eH;eJ=1;let{singular:t}=(eK||(eK=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},sU.exports=e()),sU.exports);return eH=e=>{let r=t(e);if(r!==e)return r}}(),toLocation:sV(),getAncestor:e1?e0:(e1=1,e0=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})}}sU.exports;var sq=iA(function(){if(e5)return e4;e5=1;let{findVariable:e}=sf,{getAncestor:t}=sz(),{isStaticRequire:r,isStringLiteral:n,isMemberExpression:u}=sv(),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 e4={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`."}}}}()),sW=iA(function(){if(e7)return e9;e7=1;let e=sk(),t=e6?e8:(e6=1,e8={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}=sv(),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 e9={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}}`."}}}}()),sY=iA(function(){if(tt)return te;tt=1;let{isMemberExpression:e}=sv(),t="error",r="suggestion";return te={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 sG(){if(tp)return tf;tp=1;let{isSemicolonToken:e}=sf;return tf=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 sZ(){return tm?th:(tm=1,th=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 sK(){if(tv)return tx;tv=1;let{getParenthesizedRange:e}=sh(),t=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;return tx=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 sH(){if(t_)return tC;t_=1;let{getParenthesizedRange:e}=sh();return tC=function(t,r,n){let[,u]=e(r.object,n),[,a]=r.range;return t.removeRange([u,a])}}function sJ(){return tI?tk:(tI=1,tk=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value)}function sX(){return tj?tB:(tj=1,tB=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1])}function sQ(){if(tU)return t$;tU=1;let e=sJ(),t=function(){if(tO)return tF;tO=1;let e=sJ();return tF=t=>"AssignmentPattern"===t.parent.type&&t.parent.left===t&&e(t.parent)}(),r=function(){if(tL)return tN;tL=1;let e=sX();return tN=t=>{let{type:r,local:n,imported:u}=t.parent;return"ImportSpecifier"===r&&e(n,u)&&n===t}}(),n=function(){if(tM)return tR;tM=1;let e=sX();return tR=t=>{let{type:r,local:n,exported:u}=t.parent;return"ExportSpecifier"===r&&e(n,u)&&n===t}}();return t$=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 s0(){return tK?tZ:(tK=1,tZ={extendFixRange:tn?tr:(tn=1,tr=function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}),removeParentheses:function(){if(ta)return tu;ta=1;let{getParentheses:e}=sh();return tu=function*(t,r,n){for(let u of e(t,n))yield r.remove(u)}}(),appendArgument:function(){if(to)return ti;to=1;let{isCommaToken:e}=sf;return ti=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}=sf,{getParentheses:t}=sh();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(tc)return tl;tc=1;let{getParenthesizedRange:e}=sh();return tl=function(t,r,n,u){return t.replaceTextRange(e(r,u),n)}}(),switchNewExpressionToCallExpression:function(){if(ty)return tg;ty=1;let e=sR(),{isParenthesized:t}=sh(),r=sB(),n=sG(),u=sZ();return tg=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(tA)return tS;tA=1;let{isParenthesized:e}=sh(),t=tE?tb:(tE=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=sK();return tS=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:sH(),removeMethodCall:function(){if(tw)return tD;tw=1;let{getParenthesizedRange:e}=sh(),t=sH();return tD=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:tP?tT:(tP=1,tT=(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)}),replaceReferenceIdentifier:sQ(),renameVariable:function(){if(tz)return tV;tz=1;let e=sF(),t=sQ();return tV=(r,n,u)=>e(r).map(e=>t(e,n,u))}(),replaceNodeOrTokenAndSpacesBefore:function(){if(tW)return tq;tW=1;let{getParentheses:e}=sh();return tq=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:sZ(),fixSpaceAroundKeyword:sK(),replaceStringLiteral:tG?tY:(tG=1,tY=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:sG()})}var s1=iA(function(){if(tJ)return tH;tJ=1;let{appendArgument:e}=s0(),{isMethodCall:t}=sv(),{isArrayPrototypeProperty:r}=sz(),n="require-array-join-separator";return tH={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."}}}}()),s2=iA(function(){if(tQ)return tX;tQ=1;let{getStaticValue:e,getPropertyName:t}=sf,{isMethodCall:r}=sv(),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 tX={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."}}}}()),s3=iA(function(){if(t1)return t0;t1=1;let{getFunctionHeadLocation:e}=sf,{isMethodCall:t}=sv(),r="no-invalid-remove-event-listener";return t0={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."}}}}()),s4=iA(function(){if(t3)return t2;t3=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sf,{getReferences:r,isNodeMatches:n}=sz(),{functionTypes:u}=sv(),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 t2={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."}}}}()),s5=iA(function(){if(t6)return t8;t6=1;let{getStaticValue:e}=sf,{switchNewExpressionToCallExpression:t}=s0(),r=function(){if(t5)return t4;t5=1;let{getStaticValue:e}=sf,{isNumberLiteral:t}=sv(),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 t4=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}=sv(),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 t8={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}}()`."}}}}()),s8=iA(function(){if(t7)return t9;t7=1;let e=sV(),{isStringLiteral:t,isMethodCall:r}=sv(),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 t9={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."}}}}()),s6=iA(function(){if(rt)return re;rt=1;let{isEmptyNode:e,isDirective:t}=sv(),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 re={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."}}}}()),s9=iA(function(){if(rn)return rr;rn=1;let{isParenthesized:e,getParenthesizedRange:t}=sh(),{removeParentheses:r}=s0(),n="no-useless-fallback-in-spread";return rr={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."}}}}()),s7=iA(function(){if(ra)return ru;ra=1;let{isMethodCall:e,isMemberExpression:t}=sv(),{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 ru={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."}}}}()),de=iA(function(){if(ro)return ri;ro=1;let{getParenthesizedRange:e}=sz(),{isFunction:t,isMethodCall:r}=sv();return ri={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)`."}}}}()),dt=iA(function(){if(rd)return rs;rd=1;let{isParenthesized:e}=sf,t=sL(),{isDecimalInteger:r}=sM(),n=sV(),{fixSpaceAroundKeyword:u}=s0(),{isNumberLiteral:a}=sv(),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:E}=s;return{loc:n([b,y],E),messageId:g?o:i,*fix(n){let a=m;"MemberExpression"===d.parent.type&&d.parent.object===d&&r(m)&&!e(d,E)&&(a=`(${a})`,t(E.getTokenBefore(d),E,a)&&(a=`;${a}`)),yield n.replaceText(d,a),yield*u(n,d,E)}}}}),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."}}}}()),dr=iA(function(){if(rc)return rl;rc=1;let{isCommaToken:e,isOpeningBraceToken:t,isClosingBraceToken:r}=sf,{isStringLiteral:n}=sv(),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 rl={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,`
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`."}}}}()),dn=iA(function(){if(rp)return rf;rp=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sf,{functionTypes:r}=sx(),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 rf={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 du(){if(rm)return rh;rm=1;let{ReferenceTracker:e}=sf,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}),rh={GlobalReferenceTracker:r}}var da=iA(function(){if(ry)return rg;ry=1;let{GlobalReferenceTracker:e}=du(),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 rg={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."}}}}()),di=iA(function(){if(rx)return rv;rx=1;let{isParenthesized:e}=sf,t=function(){if(rE)return rb;rE=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}=sx(),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 rv={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",E="";return c(h)?b="removeEventListener":"beforeunload"!==y||l(h,p)?"message"===y?E=i.message:"error"===y?E=i.error:"="===m&&"ExpressionStatement"===n.parent.type&&n.parent.expression===n&&(u=t=>d(t,e.sourceCode,n,f)):E=i.beforeunload,{node:f.property,messageId:a,data:{replacement:b,method:g,extra:E?` ${E}`:""},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}}"}}}}()),ds=iA(function(){if(r_)return rC;r_=1;let e=function(){if(rA)return rS;rA=1;let{hasSideEffect:e,isParenthesized:t,findVariable:r}=sf,{isMethodCall:n}=sx(),{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 rS=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:E,right:v}=y,{name:x}=b;if(s(E,x))h=v,m=E;else{if(!s(v,x))return;h=E,m=v}let S=p.acquire(g);if(r(S,b).references.some(({identifier:e})=>e!==m)||a(g,S))return;let A=d.callee.property,C={node:A,messageId:l,suggest:[]},_=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)?C.suggest.push({messageId:c,fix:_}):C.fix=_,C})}}}}(),t=e({method:"findIndex",replacement:"indexOf"}),r=e({method:"findLastIndex",replacement:"lastIndexOf"});return rC={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}}}}()),dd=iA(function(){if(rw)return rD;rw=1;let{isMethodCall:e}=sx(),t="error";return rD={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)`."}}}}()),dl=iA(function(){if(rP)return rT;rP=1;let{isMethodCall:e,isCallExpression:t,isNewExpression:r}=sx(),{fixSpaceAroundKeyword:n}=s0(),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 rT={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())`."}}}}()),dc=iA(function(){if(rI)return rk;rI=1;let{isIdentifierName:e}=sD(),{escapeString:t,hasOptionalChainElement:r,isValueNotUsable:n}=sz(),{isMethodCall:u,isStringLiteral:a,isExpressionStatement:i}=sx(),o="prefer-dom-node-dataset",s=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());return rk={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}}(…)`."}}}}()),df=iA(function(){if(rO)return rF;rO=1;let{getParenthesizedText:e,getParenthesizedRange:t,isSameReference:r}=sz(),{isLiteral:n,isMethodCall:u}=sx(),{replaceNodeOrTokenAndSpacesBefore:a,removeParentheses:i}=s0(),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 rF={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}}`."}}}}()),dp=iC(iE);function dh(){if(rN)return rB;rN=1;let e=iw(),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 rB={loadRule:o,loadRules:function(){return Object.fromEntries(dp.readdirSync(i_.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=i_.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 dm=iA(function(){if(rL)return rj;rL=1;let{checkVueTemplate:e}=dh(),{isNumberLiteral:t,isBigIntLiteral:r}=sx(),n="number-literal-case",u=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};return rj={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."}}}}()),dg=iA(function(){if(rM)return rR;rM=1;let{GlobalReferenceTracker:e}=du(),{replaceReferenceIdentifier:t}=s0(),{fixSpaceAroundKeyword:r}=s0(),n=sO(),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 rR={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}}`."}}}}()),dy=iA(function(){if(rU)return r$;rU=1;let{getPropertyName:e}=sf,{isNullLiteral:t,isMethodCall:r}=sx(),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 r$={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()`."}}}}()),db=iA(function(){if(rz)return rV;rz=1;let{findVariable:e}=sf,{fixSpaceAroundKeyword:t}=s0(),{isNewExpression:r,isMemberExpression:n}=sx(),u="prefer-set-size",a=e=>r(e,{name:"Set"});return rV={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`."}}}}()),dE={exports:{}},dv=iA(function(){var e,t,r,n;if(rY)return rW;rY=1;let{getStaticValue:u}=sf,{parse:a}=(rq||(rq=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:[H-t,H]})}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,H-(r.length+n),H)}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,++H-2,H):o("symbol",n,H-1,H)}function l(e,t,r,n,a){return null==n&&(r=H-1,n=H),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(H,H+t);return H+=t||1,r}function m(e){g(e)||V("character",e)}function g(t){if(e.indexOf(t,H)===H)return h(t.length)}function y(){return e[H]}function b(t){return e.indexOf(t,H)===H}function E(t){return e[H+1]===t}function v(t){var r=e.substring(H).match(t);return r&&(r.range=[],r.range[0]=H,h(r[0].length),r.range[1]=H),r}function x(){var e=[],t=H;for(e.push(S());g("|");)e.push(S());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,H]})}function S(){for(var t,r=[],s=H;t=function(){if(H>=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=v(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=v(/^(?:]|})/)))return d(t);if(g("."))return u({type:"dot",range:[H-1,H]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return o("symbol",92,H-1,H);V("atomEscape")}return t}if(t=N())return t;if(n.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(n.namedGroups&&g("(?<")){var t,r,a,i,s,l,c=F();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return n.modifiers&&e.indexOf("(?")==H&&":"!=e[H+2]?(a=H,h(2),i=v(/^[sim]+/),g("-")?(r=v(/^[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=C("ignore",a)).modifierFlags={enabling:i,disabling:r},l):A("(?:","ignore","(","normal")}();if(!r){var s,l,c=H;(s=_()||!1)&&(H=c,V("Expected atom")),!K&&(l=v(/^{/))?r=d(l):V("Expected atom")}t=r}return(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,H]})}function A(e,t,r,n){var u=null,a=H;if(g(e))u=t;else{if(!g(r))return!1;u=n}return C(u,a)}function C(e,t){var r=x();r||V("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,H]});return"normal"==e&&W&&q++,n}function _(){var e,t,r,n,u=H;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=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))&&V("numbers out of order in {} quantifier","",u,H),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,H),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function D(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&E("u")){var n=H;H++;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)):H=n}}return e}function w(e){var t,r,i=H;if(r=function(e){var t,r,n=H;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:[H-1-i.length,H]}):(z.push(o),W?Y=!0:T(n,H),h(-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])&&T(n,H),/^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=F();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,H]})}}())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=v(/^c([0-9])/)))return s("controlLetter",r[1]+16,r[1],2);else if(!K&&(r=v(/^c_/)))return s("controlLetter",31,"_",2);if(K&&g("-"))return s("singleEscape",45,"\\-")}return((t=v(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[H-2,H]}):n.unicodePropertyEscape&&K&&(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&&Z&&g("q{"))&&function(){var e=H-3,t=[];do t.push(function(){for(var e,t=[],r=H;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,H]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,H]})}())||k()}function T(e,t){K&&V("Invalid decimal escape in unicode mode",null,e,t)}function P(){var e;return(e=v(/^u([0-9a-fA-F]{4})/))?D(s("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(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=H;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])}return(r=v(/^c([a-zA-Z])/))?s("controlLetter",r[1].charCodeAt(0)%32,r[1],2):(r=v(/^x([0-9a-fA-F]{2})/))?s("hexadecimalEscape",parseInt(r[1],16),r[1],2):(r=P())?((!r||r.codePoint>1114111)&&V("Invalid escape sequence",null,u,H),r):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&n.lookbehind?null:s("identifier",(e=h()).charCodeAt(0),e,1):null)}function I(t){var n=y(),u=H;if("\\"===n){h();var a=P();return a&&t(a.codePoint)||V("Invalid escape sequence",null,u,H),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[H+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return h(),i>65535&&h(),n}function F(){var e,t=H,r=I(O);for(r||V("Invalid identifier");e=I(B);)r+=e;return u({type:"identifier",value:r,range:[t,H]})}function O(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 B(e){return O(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 N(){var e,t=H;return(e=v(/^\[\^/))?(e=j(),m("]"),c(e,!0,t,H)):g("[")?(e=j(),m("]"),c(e,!1,t,H)):null}function j(){var e,t;return b("]")?{kind:"union",body:[]}:Z?function(){var e,t=[],r=R(!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=R("union"===e));return{kind:e,body:t}}():((t=L())||V("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!E("]")){r=t.range[0],i=d(g("-")),(a=L())||V("classAtom"),n=H;var r,n,u,a,i,o,s=j();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=L())||V("classAtom"),(u=b("]")?o:e(o))||V("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||V("nonEmptyClassRanges"),{kind:"union",body:e})}function L(){var e;return g("-")?d("-"):(e=v(/^[^\\\]-]/))?d(e[0]):g("\\")?((e=w(!0))||V("classEscape"),D(e)):void 0}function R(e){var t,r,n=H;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=N())return r;V("Invalid character",y())}if(e&&b("-")&&!E("-")){if(m("-"),r=M())return f(t,r,n,H);V("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=H;if(e=U())return e;V("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=v(/^[^()[\]{}/\-\\|]/))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","",H-2);else if(e=v(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=k())return e;else return null}function V(t,r,n,u){n=null==n?H: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,Y=!1,G=-1!==(t||"").indexOf("u"),Z=-1!==(t||"").indexOf("v"),K=G||Z,H=0;if(Z&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&Z)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var X=x();return(X.range[1]!==e.length&&V("Could not parse entire input - got stuck","",X.range[1]),Y=Y||z.some(function(e){return e<=q}))?(H=0,W=!1,x()):X}},dE.exports?dE.exports=n:window.regjsparser=n),dE.exports),i=sk(),{isRegexLiteral:o,isNewExpression:s,isMethodCall:d}=sx(),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 rW={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}}."}}}}()),dx=iA(function(){if(rZ)return rG;rZ=1;let{getStaticValue:e}=sf,{getParenthesizedText:t,getParenthesizedRange:r}=sh(),{replaceArgument:n}=s0(),{isNumberLiteral:u,isMethodCall:a}=sx(),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 rG={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()`."}}}}()),dS=iA(function(){if(rH)return rK;rH=1;let{isMethodCall:e}=sx(),t="prefer-string-trim-start-end";return rK={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}}()`."}}}}()),dA=iA(function(){if(rJ)return rX;rJ=1;let{isParenthesized:e,getParenthesizedRange:t,toLocation:r}=sz(),n="no-unreadable-iife";return rX={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."}}}}()),dC=iA(function(){if(r0)return rQ;r0=1;let{switchCallExpressionToNewExpression:e}=s0(),t="throw-new-error",r=/^(?:[A-Z][\da-z]*)*Error$/;return rQ={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 d_(){if(ni)return na;function e(e){return e?t[e.type](e):""}ni=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 na={generate:e}}function dD(){if(nf)return nc;nf=1;var e=function(){if(nl)return nd;nl=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=P({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=P({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?P(e[0],a):P({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=P(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=P({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=S(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=S(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=S(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=S(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&&x.isGeneralCategoryValue(u),o=-1===n&&x.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!x.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!x.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return P({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:x.getCanonicalName(u)||u,canonicalValue:x.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){u=S(e,"control",a=i(t,t))}],[10,1,function(e,t){u=S(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=S(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?P({type:"Backreference",kind:"number",number:n,reference:n},r):S(e,"decimal",r)}],[10,1,function(e,t){u=S(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=S(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=T(r);if(y.hasOwnProperty(n))return P({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=[S(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(C))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(S(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(S(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=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=E(e);u=P({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=P({type:"Quantifier",kind:"Range",from:E(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=E(e);u=P({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=T(l);if(!n.options.allowGroupNameDuplicates&&y.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');y[c]=e.groupNumber,u=P({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=P({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=P({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=P({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=P({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=[P({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=[P({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=S(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=S(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 D(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 D(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,F());var g=l[l.length-1],y=s[p.type];d[g].hasOwnProperty(y)||(n.options=f,I(p));var b=d[g][y];if("s"===b[0]){var E=null;n.options.captureLocations&&(E={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:E},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var v=o[b.slice(1)],x="function"==typeof v[2],S=x?[]:null,A=x&&n.options.captureLocations?[]:null;if(0!==v[1])for(var C=v[1];C-- >0;){l.pop();var _=l.pop();x&&(S.unshift(_.semanticValue),A&&A.unshift(_.loc))}var D={symbol:v[0]};if(x){r=h?h.value:null,h&&h.value.length;var w=null!==A?S.concat(A):S;v[2].apply(v,t(w)),D.semanticValue=u,A&&(D.loc=a)}var T=l[l.length-1],P=v[0];l.push(D,d[T][P])}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,m.onParseEnd(k.semanticValue),k.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 E(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")}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 x=function(){if(ns)return no;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 no={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 S(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 P({type:"Char",value:t,kind:r,symbol:u,codePoint:a},n)}var A=/^\\u[0-9a-fA-F]{4}/,C=/^\\u\{[0-9a-fA-F]{1,}\}/,_=/\\u\{[0-9a-fA-F]{1,}\}/;function D(e,t){if(_.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 T(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 P(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&&F(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function F(){!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}),nc=e}function dw(){if(nh)return np;nh=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=[],np=n}function dT(){if(ng)return nm;ng=1;var e=dw();return nm={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 dP(){if(nb)return ny;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=d_(),r=dD(),n=dT(),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 ny={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 dk(){return nF?nI:(nF=1,nI={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 dI(){return n9?n6:(n9=1,n6={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function dF(){if(ue)return n7;ue=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=dI(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return n7=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,E=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var S=v.value;n(S),g.push(S.number)}}catch(e){b=!0,E=e}finally{try{!y&&x.return&&x.return()}finally{if(b)throw E}}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 dO(){if(ul)return ud;ul=1;var e=dF(),t=function(){if(us)return uo;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(ui)return ua;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 ua=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=dI().EPSILON;return uo=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 E,v=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(g=(E=v.next()).done);g=!0)if(E.value.matches(e,t))return!0}catch(e){y=!0,b=e}finally{try{!g&&v.return&&v.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=dI().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 dB=iA(function(){if(uS)return ux;uS=1;let e=function(){if(r8)return r5;r8=1;let e=function(){if(r2)return r1;r2=1;var e=/[|\\{}()[\]^$+*?.]/g;return r1=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=r4?r3:(r4=1,r3=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 r5=(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}=uv?uE:(uv=1,uE=function(){if(ub)return uy;ub=1;var e=function(){if(nv)return nE;nv=1;var e=nu?nn:(nu=1,nn={dotAll:r9?r6:(r9=1,r6={_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:ne?r7:(ne=1,r7={_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:nr?nt:(nr=1,nt={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=dP();return nE={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=d_(),r=function(){if(n8)return n5;n8=1;var e=nS?nx:(nS=1,nx=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=dD(),r=dP(),n=n4?n3:(n4=1,n3=new Map([["charSurrogatePairToSingleUnicode",nC?nA:(nC=1,nA={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",nD?n_:(nD=1,n_={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",nT?nw:(nT=1,nw={_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",nk?nP:(nk=1,nP={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(nB)return nO;nB=1;var e=dk().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 nO={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",nj?nN:(nj=1,nN={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",nR?nL:(nR=1,nL={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(n$)return nM;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}n$=1,nM={_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 nM}()],["charClassToSingleChar",nV?nU:(nV=1,nU={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(nq)return nz;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 nq=1,nz={_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(nY)return nW;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 nY=1,nW={_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(nZ)return nG;nZ=1;var e=dw(),t=dk(),r=t.disjunctionToList,n=t.listToDisjunction;return nG={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(nH)return nK;nH=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 nK={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",nJ?nX:(nJ=1,nX={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(n0)return nQ;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 n0=1,nQ={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(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;var t=dw(),r=dk().increaseQuantifierByOne;return n1={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 n5={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=dD(),u=dP(),a=dT(),i=function(){if(uh)return up;uh=1;var e=dF(),t=function(){if(uu)return un;uu=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(ur)return ut;ur=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 ut={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,E=!1,v=void 0;try{e:for(var x,S=y[Symbol.iterator]();!(b=(x=S.next()).done);b=!0){var A=x.value,C=!0,_=!1,D=void 0;try{for(var w,T=Object.keys(h)[Symbol.iterator]();!(C=(w=T.next()).done);C=!0){var P=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,P,u,i)){h[P].add(A),h[A]=h[P];continue e}}}catch(e){_=!0,D=e}finally{try{!C&&T.return&&T.return()}finally{if(_)throw D}}h[A]=new Set([A])}}catch(e){E=!0,v=e}finally{try{!b&&S.return&&S.return()}finally{if(E)throw v}}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 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 h={},m=new Set,g=!0,y=!1,b=void 0;try{for(var E,v=f.entries()[Symbol.iterator]();!(g=(E=v.next()).done);g=!0){var x=E.value,S=e(x,2),A=S[0],C=S[1];h[C]={};var _=!0,D=!1,w=void 0;try{for(var T,P=i[Symbol.iterator]();!(_=(T=P.next()).done);_=!0){var k=T.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,C);var I=void 0,F=!0,O=!1,B=void 0;try{for(var N,j=A[Symbol.iterator]();!(F=(N=j.next()).done)&&!(I=u[N.value][k]);F=!0);}catch(e){O=!0,B=e}finally{try{!F&&j.return&&j.return()}finally{if(O)throw B}}I&&(h[C][k]=f.get(r[I]))}}catch(e){D=!0,w=e}finally{try{!_&&P.return&&P.return()}finally{if(D)throw w}}}}catch(e){y=!0,b=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw b}}return n.setTransitionTable(h),n.setAcceptingStateNumbers(m),n}}}(),n=dI().EPSILON_CLOSURE;return un=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,E=!1,v=void 0;try{for(var x,S=d[Symbol.iterator]();!(b=(x=S.next()).done);b=!0){var A=r[x.value][g];if(A){var C=!0,_=!1,D=void 0;try{for(var w,T=A[Symbol.iterator]();!(C=(w=T.next()).done);C=!0){var P=w.value;r[P]&&y.push.apply(y,t(r[P][n]))}}catch(e){_=!0,D=e}finally{try{!C&&T.return&&T.return()}finally{if(_)throw D}}}}}catch(e){E=!0,v=e}finally{try{!b&&S.return&&S.return()}finally{if(E)throw v}}var k=new Set(y),I=[].concat(t(k));if(I.length>0){var F=I.join(",");s[l][g]=F,s.hasOwnProperty(F)||a.unshift(I)}}}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(uf)return uc;uf=1;var e=dD(),t=dO(),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 uc={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return up={NFA:e,DFA:t,builders:dO(),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(ug)return um;ug=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 um={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 uy={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=sk(),{isStringLiteral:n,isNewExpression:u,isRegexLiteral:a}=sx(),i="better-regex",o="better-regex/parse-error";return ux={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=iA(function(){if(uC)return uA;uC=1;let{replaceTemplateElement:e}=s0(),{isRegexLiteral:t,isStringLiteral:r,isTaggedTemplateLiteral:n}=sx(),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 uA={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."}}}}()),dj=iA(function(){if(uD)return u_;uD=1;let{replaceTemplateElement:e}=s0(),{isStringLiteral:t,isRegexLiteral:r,isTaggedTemplateLiteral:n}=sx(),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."}}}}()),dL=iA(function(){if(uT)return uw;uT=1;let{getPropertyName:e,ReferenceTracker:t}=sf,{fixSpaceAroundKeyword:r}=s0(),{isMemberExpression:n,isMethodCall:u}=sx(),a=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];return uw={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`."}}}}()),dR=iA(function(){if(uk)return uP;uk=1;let{getStaticValue:e}=sf,t=sj(),{isCallOrNewExpression:r}=sx(),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 uP={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."}}}}()),dM=iA(function(){if(uF)return uI;uF=1;let{checkVueTemplate:e}=dh(),{getParenthesizedRange:t}=sh(),{replaceNodeOrTokenAndSpacesBefore:r,fixSpaceAroundKeyword:n}=s0(),u=e=>"instanceof"===e.value&&"Keyword"===e.type,a="no-instanceof-array";return uI={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`."}}}}()),d$=iA(function(){if(uB)return uO;uB=1;let{isNewExpression:e}=sx(),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 uO={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."}}}}()),dU=iA(function(){if(uj)return uN;uj=1;let e=sP(),t=sO(),{isCallOrNewExpression:r}=sx(),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 uN={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 E=b?b.value.name:y;return{node:a,messageId:n,suggest:[{messageId:u,data:{expression:g,property:E},*fix(e){let{properties:t}=c,r=t.at(-1);yield e.replaceText(a,E),b||(yield r?e.insertTextAfter(r,`, ${E}`):e.replaceText(c,`{${E}}`))}}]}}}},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 dV(){return uR?uL:(uR=1,uL=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"])}var dz=iA(function(){if(uV)return uU;uV=1;let{GlobalReferenceTracker:e}=du(),t=u$?uM:(u$=1,uM={enforceNew:["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...dV()],disallowNew:["BigInt","Boolean","Number","String","Symbol"]}),{switchCallExpressionToNewExpression:r,switchNewExpressionToCallExpression:n}=s0();return uU={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}}()`."}}}}()),dq=iA(function(){if(uY)return uW;uY=1;let{hasSideEffect:e,isSemicolonToken:t}=sf,{getCallExpressionTokens:r,getCallExpressionArgumentsText:n}=sz(),u=sN(),{isNodeMatches:a}=sv(),i=uq?uz:(uq=1,uz=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}=sx(),s="error",d="suggestion",l=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&o(e,{method:"push",optionalCall:!1,optionalMember:!1});return uW={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."}}}}()),dW=iA(function(){if(uZ)return uG;uZ=1;let{isStaticRequire:e,isMethodCall:t,isLiteral:r}=sx(),n="no-process-exit",u=e=>r(e,"node:worker_threads")||r(e,"worker_threads");return uG={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."}}}}()),dY=iA(function(){if(uH)return uK;uH=1;let{isCommaToken:e}=sf,{isMethodCall:t,isExpressionStatement:r}=sx(),{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 uK={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 dG(){return u0?uQ:(u0=1,uQ=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 dZ=iA(function(){if(u2)return u1;u2=1;let{isSemicolonToken:e}=sf,t=uJ?uX:(uJ=1,uX=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=dG(),{removeSpacesAfter:n}=s0(),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 u1={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."}}}}()),dK=iA(function(){if(u4)return u3;u4=1;let{isParenthesized:e}=sf,t=s$(),{fixSpaceAroundKeyword:r}=s0(),n="no-unreadable-array-destructuring",u=(e,t,r)=>null===e&&null===r[t+1];return u3={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."}}}}()),dH=iA(function(){if(u8)return u5;u8=1;let{isCommaToken:e}=sf,t=dV(),{removeParentheses:r,fixSpaceAroundKeyword:n,addParenthesizesToReturnOrThrowExpression:u}=s0(),{isParenthesized:a,isOnSameLine:i}=sz(),{isNewExpression:o,isMethodCall:s,isCallOrNewExpression:d}=sx(),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 u5={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."}}}}()),dX=iA(function(){if(ae)return u7;ae=1;let{isEmptyNode:e}=sx(),t=function(){if(u9)return u6;u9=1;let{isColonToken:e}=sf;return u6=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 u7={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."}}}}()),dJ=iA(function(){if(ar)return at;ar=1;let{isCommaToken:e}=sf,{replaceNodeOrTokenAndSpacesBefore:t}=s0(),{isUndefined:r,isFunction:n}=sx(),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 at={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`."}}}}()),dQ=iA(function(){if(au)return an;au=1;let e=sM(),{isBigIntLiteral:t}=sx(),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 an={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."}}}}()),d0=iA(function(){if(ai)return aa;ai=1;let{isParenthesized:e,findVariable:t}=sf,{extendFixRange:r,removeMemberExpressionProperty:n,removeMethodCall:u,renameVariable:a}=s0(),{isLeftHandSide:i,singular:o,getScopes:s,avoidCapture:d,getVariableIdentifiers:l}=sz(),{isMethodCall:c}=sx(),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",E="error-variable",v="suggest-nullish-coalescing-operator",x="suggest-logical-or-operator",S=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}=_(t),[u]=n.elements,{type:a}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===a||"ObjectPattern"===a},C=(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,_=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*D(e,t,r){let{left:n}=_(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"===_(e).left.elements[0].type,T=(t,r,n,u)=>{let{left:a,right:i}=_(t),[o]=a.elements,s=o.right,d=r.getText(s);return(e(s,r)||C(s,u))&&(d=`(${d})`),n.insertTextAfter(i,` ${u} ${d}`)},P=(e,t)=>{let r,n;let{property:u}=_(t).right.callee;return w(t)?r=[{operator:"??",messageId:v},{operator:"||",messageId:x}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield T(t,e,r,n),yield*D(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*D(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}=_(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};return aa={create:e=>{let{sourceCode:v}=e,{checkFromLast:x}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&S(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})&&S(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&&S(e.init))return{node:e.init.callee.property,messageId:y,...P(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&&S(e.right))return{node:e.right.callee.property,messageId:b,...P(v,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&S(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 h={node:e.init.callee.property,messageId:E};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,v.ast.range)}for(let e of f)yield n(t,e,v);for(let e of p)yield*D(e,v,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&&S(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,v)]}}),x&&(e.on("CallExpression",e=>{if(c(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&S(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,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&&S(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,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:{[E]:"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(…)`.",[v]:"Replace `.filter(…)` with `.find(…) ?? …`.",[x]:"Replace `.filter(…)` with `.find(…) || …`."}}}}()),d1=iA(function(){if(as)return ao;as=1;let{isNodeMatches:e}=sv(),{isMethodCall:t}=sx(),{removeMethodCall:r}=s0(),n="prefer-array-flat-map",u=["React.Children","Children"];return ao={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()`."}}}}()),d2=iA(function(){if(al)return ad;al=1;let{getParenthesizedText:e,isArrayPrototypeProperty:t,isNodeMatches:r,isNodeMatchesNameOrPath:n,isParenthesized:u,isSameIdentifier:a,needsSemicolon:i,shouldAddParenthesesToMemberExpressionObject:o}=sz(),{fixSpaceAroundKeyword:s}=s0(),{isMethodCall:d,isCallExpression:l}=sx(),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."}}}}()),d3=iA(function(){if(af)return ac;af=1;let{checkVueTemplate:e}=dh(),{isBooleanNode:t,getParenthesizedRange:r,isNodeValueNotFunction:n}=sz(),{removeMemberExpressionProperty:u}=s0(),{isLiteral:a,isUndefined:i,isMethodCall:o,isMemberExpression:s}=sx(),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 ac={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}}}()),d4=iA(function(){if(ah)return ap;ah=1;let{isMethodCall:e}=sx(),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 ap={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()`."}}}}()),d5=iA(function(){if(ag)return am;ag=1;let{findVariable:e}=sf,{functionTypes:t}=sx(),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 am={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 E=e(c.getScope(t),y);if(!E)return;let{references:v}=E,{params:x}=m,S=x.find(e=>"Identifier"===e.type&&e.name===y);if(i(c,m,t)||o(h,v,a)||!s(x,S))return;let A=d(c,m)?`(${g} = ${b})`:`${g} = ${b}`;return{node:t,messageId:r,suggest:[{messageId:n,fix:e=>[e.replaceText(S,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."}}}}()),d8=iA(function(){if(av)return aE;av=1;let{isParenthesized:e,getParenthesizedText:t}=sh(),r=sN(),n=ab?ay:(ab=1,ay=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=sL(),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 aE={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."}}}}()),d6=iA(function(){if(aS)return ax;aS=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sf,r=dG(),n="with-name",u="without-name";return ax={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."}}}}()),d9=iA(function(){if(aC)return aA;aC=1;let{isParenthesized:e,getStaticValue:t}=sf,{checkVueTemplate:r}=dh(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=sx(),{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 aA={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(…)`."}}}}()),d7=iA(function(){if(aD)return a_;aD=1;let{findVariable:e}=sf,{getVariableIdentifiers:t}=sz(),{isCallOrNewExpression:r,isMethodCall:n}=sx(),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 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`."}}}}()),le=iA(function(){if(aT)return aw;aT=1;let{isStringLiteral:e,isDirective:t}=sx(),{fixSpaceAroundKeyword:r}=s0(),n="prefer-string-raw";return aw={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 `\\`."}}}}()),lt=iA(function(){if(aF)return aI;aF=1;let{hasSideEffect:e}=sf,t=sN(),r=ak?aP:(ak=1,aP=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 aI={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: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`."}}}}()),dn=iA(function(){if(rp)return rf;rp=1;let{getFunctionHeadLocation:e,getFunctionNameWithKind:t}=sf,{functionTypes:r}=sv(),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 rf={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 du(){if(rm)return rh;rm=1;let{ReferenceTracker:e}=sf,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}),rh={GlobalReferenceTracker:r}}var da=iA(function(){if(ry)return rg;ry=1;let{GlobalReferenceTracker:e}=du(),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 rg={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."}}}}()),di=iA(function(){if(rv)return rx;rv=1;let{isParenthesized:e}=sf,t=function(){if(rE)return rb;rE=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}=sv(),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 rx={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",E="";return c(h)?b="removeEventListener":"beforeunload"!==y||l(h,p)?"message"===y?E=i.message:"error"===y?E=i.error:"="===m&&"ExpressionStatement"===n.parent.type&&n.parent.expression===n&&(u=t=>d(t,e.sourceCode,n,f)):E=i.beforeunload,{node:f.property,messageId:a,data:{replacement:b,method:g,extra:E?` ${E}`:""},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}}"}}}}()),ds=iA(function(){if(r_)return rC;r_=1;let e=function(){if(rA)return rS;rA=1;let{hasSideEffect:e,isParenthesized:t,findVariable:r}=sf,{isMethodCall:n}=sv(),{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 rS=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:E,right:x}=y,{name:v}=b;if(s(E,v))h=x,m=E;else{if(!s(x,v))return;h=E,m=x}let S=p.acquire(g);if(r(S,b).references.some(({identifier:e})=>e!==m)||a(g,S))return;let A=d.callee.property,C={node:A,messageId:l,suggest:[]},_=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)?C.suggest.push({messageId:c,fix:_}):C.fix=_,C})}}}}(),t=e({method:"findIndex",replacement:"indexOf"}),r=e({method:"findLastIndex",replacement:"lastIndexOf"});return rC={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}}}}()),dd=iA(function(){if(rw)return rD;rw=1;let{isMethodCall:e}=sv(),t="error";return rD={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)`."}}}}()),dl=iA(function(){if(rP)return rT;rP=1;let{isMethodCall:e,isCallExpression:t,isNewExpression:r}=sv(),{fixSpaceAroundKeyword:n}=s0(),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 rT={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())`."}}}}()),dc=iA(function(){if(rI)return rk;rI=1;let{isIdentifierName:e}=sD(),{escapeString:t,hasOptionalChainElement:r,isValueNotUsable:n}=sz(),{isMethodCall:u,isStringLiteral:a,isExpressionStatement:i}=sv(),o="prefer-dom-node-dataset",s=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());return rk={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}}(…)`."}}}}()),df=iA(function(){if(rO)return rF;rO=1;let{getParenthesizedText:e,getParenthesizedRange:t,isSameReference:r}=sz(),{isLiteral:n,isMethodCall:u}=sv(),{replaceNodeOrTokenAndSpacesBefore:a,removeParentheses:i}=s0(),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 rF={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}}`."}}}}()),dp=iC(iE);function dh(){if(rj)return rB;rj=1;let e=iw(),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 rB={loadRule:o,loadRules:function(){return Object.fromEntries(dp.readdirSync(i_.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=i_.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 dm=iA(function(){if(rL)return rN;rL=1;let{checkVueTemplate:e}=dh(),{isNumberLiteral:t,isBigIntLiteral:r}=sv(),n="number-literal-case",u=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};return rN={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."}}}}()),dg=iA(function(){if(rM)return rR;rM=1;let{GlobalReferenceTracker:e}=du(),{replaceReferenceIdentifier:t}=s0(),{fixSpaceAroundKeyword:r}=s0(),n=sO(),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 rR={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}}`."}}}}()),dy=iA(function(){if(rU)return r$;rU=1;let{getPropertyName:e}=sf,{isNullLiteral:t,isMethodCall:r}=sv(),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 r$={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()`."}}}}()),db=iA(function(){if(rz)return rV;rz=1;let{findVariable:e}=sf,{fixSpaceAroundKeyword:t}=s0(),{isNewExpression:r,isMemberExpression:n}=sv(),u="prefer-set-size",a=e=>r(e,{name:"Set"});return rV={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`."}}}}()),dE={exports:{}},dx=iA(function(){var e,t,r,n;if(rY)return rW;rY=1;let{getStaticValue:u}=sf,{parse:a}=(rq||(rq=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:[H-t,H]})}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,H-(r.length+n),H)}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,++H-2,H):o("symbol",n,H-1,H)}function l(e,t,r,n,a){return null==n&&(r=H-1,n=H),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(H,H+t);return H+=t||1,r}function m(e){g(e)||V("character",e)}function g(t){if(e.indexOf(t,H)===H)return h(t.length)}function y(){return e[H]}function b(t){return e.indexOf(t,H)===H}function E(t){return e[H+1]===t}function x(t){var r=e.substring(H).match(t);return r&&(r.range=[],r.range[0]=H,h(r[0].length),r.range[1]=H),r}function v(){var e=[],t=H;for(e.push(S());g("|");)e.push(S());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,H]})}function S(){for(var t,r=[],s=H;t=function(){if(H>=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:[H-1,H]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return o("symbol",92,H-1,H);V("atomEscape")}return t}if(t=j())return t;if(n.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(n.namedGroups&&g("(?<")){var t,r,a,i,s,l,c=F();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return n.modifiers&&e.indexOf("(?")==H&&":"!=e[H+2]?(a=H,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=C("ignore",a)).modifierFlags={enabling:i,disabling:r},l):A("(?:","ignore","(","normal")}();if(!r){var s,l,c=H;(s=_()||!1)&&(H=c,V("Expected atom")),!K&&(l=x(/^{/))?r=d(l):V("Expected atom")}t=r}return(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,H]})}function A(e,t,r,n){var u=null,a=H;if(g(e))u=t;else{if(!g(r))return!1;u=n}return C(u,a)}function C(e,t){var r=v();r||V("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:p(r),range:[t,H]});return"normal"==e&&W&&q++,n}function _(){var e,t,r,n,u=H;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,H),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,H),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function D(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&E("u")){var n=H;H++;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)):H=n}}return e}function w(e){var t,r,i=H;if(r=function(e){var t,r,n=H;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:[H-1-i.length,H]}):(z.push(o),W?Y=!0:T(n,H),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])&&T(n,H),/^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=F();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,H]})}}())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:[H-2,H]}):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&&Z&&g("q{"))&&function(){var e=H-3,t=[];do t.push(function(){for(var e,t=[],r=H;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,H]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,H]})}())||k()}function T(e,t){K&&V("Invalid decimal escape in unicode mode",null,e,t)}function P(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?D(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 k(){var e,t,r,u=H;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=P())?((!r||r.codePoint>1114111)&&V("Invalid escape sequence",null,u,H),r):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&n.lookbehind?null:s("identifier",(e=h()).charCodeAt(0),e,1):null)}function I(t){var n=y(),u=H;if("\\"===n){h();var a=P();return a&&t(a.codePoint)||V("Invalid escape sequence",null,u,H),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[H+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return h(),i>65535&&h(),n}function F(){var e,t=H,r=I(O);for(r||V("Invalid identifier");e=I(B);)r+=e;return u({type:"identifier",value:r,range:[t,H]})}function O(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 B(e){return O(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 j(){var e,t=H;return(e=x(/^\[\^/))?(e=N(),m("]"),c(e,!0,t,H)):g("[")?(e=N(),m("]"),c(e,!1,t,H)):null}function N(){var e,t;return b("]")?{kind:"union",body:[]}:Z?function(){var e,t=[],r=R(!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=R("union"===e));return{kind:e,body:t}}():((t=L())||V("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!E("]")){r=t.range[0],i=d(g("-")),(a=L())||V("classAtom"),n=H;var r,n,u,a,i,o,s=N();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=L())||V("classAtom"),(u=b("]")?o:e(o))||V("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||V("nonEmptyClassRanges"),{kind:"union",body:e})}function L(){var e;return g("-")?d("-"):(e=x(/^[^\\\]-]/))?d(e[0]):g("\\")?((e=w(!0))||V("classEscape"),D(e)):void 0}function R(e){var t,r,n=H;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=j())return r;V("Invalid character",y())}if(e&&b("-")&&!E("-")){if(m("-"),r=M())return f(t,r,n,H);V("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=H;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","",H-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return s("identifier",e[0].codePointAt(0),e[0]);else if(e=k())return e;else return null}function V(t,r,n,u){n=null==n?H: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,Y=!1,G=-1!==(t||"").indexOf("u"),Z=-1!==(t||"").indexOf("v"),K=G||Z,H=0;if(Z&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&Z)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=v();return(J.range[1]!==e.length&&V("Could not parse entire input - got stuck","",J.range[1]),Y=Y||z.some(function(e){return e<=q}))?(H=0,W=!1,v()):J}},dE.exports?dE.exports=n:window.regjsparser=n),dE.exports),i=sk(),{isRegexLiteral:o,isNewExpression:s,isMethodCall:d}=sv(),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 rW={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}}."}}}}()),dv=iA(function(){if(rZ)return rG;rZ=1;let{getStaticValue:e}=sf,{getParenthesizedText:t,getParenthesizedRange:r}=sh(),{replaceArgument:n}=s0(),{isNumberLiteral:u,isMethodCall:a}=sv(),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 rG={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()`."}}}}()),dS=iA(function(){if(rH)return rK;rH=1;let{isMethodCall:e}=sv(),t="prefer-string-trim-start-end";return rK={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}}()`."}}}}()),dA=iA(function(){if(rX)return rJ;rX=1;let{isParenthesized:e,getParenthesizedRange:t,toLocation:r}=sz(),n="no-unreadable-iife";return rJ={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."}}}}()),dC=iA(function(){if(r0)return rQ;r0=1;let{switchCallExpressionToNewExpression:e}=s0(),t="throw-new-error",r=/^(?:[A-Z][\da-z]*)*Error$/;return rQ={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 d_(){if(ni)return na;function e(e){return e?t[e.type](e):""}ni=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 na={generate:e}}function dD(){if(nf)return nc;nf=1;var e=function(){if(nl)return nd;nl=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=P({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=P({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?P(e[0],a):P({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=P(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=P({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=S(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=S(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=S(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=S(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&&v.isGeneralCategoryValue(u),o=-1===n&&v.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!v.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!v.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return P({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:v.getCanonicalName(u)||u,canonicalValue:v.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){u=S(e,"control",a=i(t,t))}],[10,1,function(e,t){u=S(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=S(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?P({type:"Backreference",kind:"number",number:n,reference:n},r):S(e,"decimal",r)}],[10,1,function(e,t){u=S(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=S(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=T(r);if(y.hasOwnProperty(n))return P({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=[S(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(C))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(S(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(S(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=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=E(e);u=P({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=P({type:"Quantifier",kind:"Range",from:E(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=E(e);u=P({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=T(l);if(!n.options.allowGroupNameDuplicates&&y.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');y[c]=e.groupNumber,u=P({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=P({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=P({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=P({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=P({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=[P({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),x(e,r),u=[P({type:"ClassRange",from:e,to:r},k(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=S(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=S(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 D(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 D(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,F());var g=l[l.length-1],y=s[p.type];d[g].hasOwnProperty(y)||(n.options=f,I(p));var b=d[g][y];if("s"===b[0]){var E=null;n.options.captureLocations&&(E={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:E},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var x=o[b.slice(1)],v="function"==typeof x[2],S=v?[]:null,A=v&&n.options.captureLocations?[]:null;if(0!==x[1])for(var C=x[1];C-- >0;){l.pop();var _=l.pop();v&&(S.unshift(_.semanticValue),A&&A.unshift(_.loc))}var D={symbol:x[0]};if(v){r=h?h.value:null,h&&h.value.length;var w=null!==A?S.concat(A):S;x[2].apply(x,t(w)),D.semanticValue=u,A&&(D.loc=a)}var T=l[l.length-1],P=x[0];l.push(D,d[T][P])}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,m.onParseEnd(k.semanticValue),k.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 E(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 v=function(){if(ns)return no;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 no={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 S(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 P({type:"Char",value:t,kind:r,symbol:u,codePoint:a},n)}var A=/^\\u[0-9a-fA-F]{4}/,C=/^\\u\{[0-9a-fA-F]{1,}\}/,_=/\\u\{[0-9a-fA-F]{1,}\}/;function D(e,t){if(_.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 T(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 P(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&&F(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function F(){!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}),nc=e}function dw(){if(nh)return np;nh=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=[],np=n}function dT(){if(ng)return nm;ng=1;var e=dw();return nm={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 dP(){if(nb)return ny;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=d_(),r=dD(),n=dT(),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 ny={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 dk(){return nF?nI:(nF=1,nI={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 dI(){return n9?n6:(n9=1,n6={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function dF(){if(ue)return n7;ue=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=dI(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return n7=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,E=void 0;try{for(var x,v=m[Symbol.iterator]();!(y=(x=v.next()).done);y=!0){var S=x.value;n(S),g.push(S.number)}}catch(e){b=!0,E=e}finally{try{!y&&v.return&&v.return()}finally{if(b)throw E}}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 dO(){if(ul)return ud;ul=1;var e=dF(),t=function(){if(us)return uo;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(ui)return ua;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 ua=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=dI().EPSILON;return uo=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 E,x=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(g=(E=x.next()).done);g=!0)if(E.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=dI().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 dB=iA(function(){if(uS)return uv;uS=1;let e=function(){if(r8)return r5;r8=1;let e=function(){if(r2)return r1;r2=1;var e=/[|\\{}()[\]^$+*?.]/g;return r1=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=r4?r3:(r4=1,r3=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 r5=(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}=ux?uE:(ux=1,uE=function(){if(ub)return uy;ub=1;var e=function(){if(nx)return nE;nx=1;var e=nu?nn:(nu=1,nn={dotAll:r9?r6:(r9=1,r6={_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:ne?r7:(ne=1,r7={_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:nr?nt:(nr=1,nt={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=dP();return nE={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=d_(),r=function(){if(n8)return n5;n8=1;var e=nS?nv:(nS=1,nv=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=dD(),r=dP(),n=n4?n3:(n4=1,n3=new Map([["charSurrogatePairToSingleUnicode",nC?nA:(nC=1,nA={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",nD?n_:(nD=1,n_={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",nT?nw:(nT=1,nw={_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",nk?nP:(nk=1,nP={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(nB)return nO;nB=1;var e=dk().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 nO={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",nN?nj:(nN=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",nR?nL:(nR=1,nL={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(n$)return nM;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}n$=1,nM={_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 nM}()],["charClassToSingleChar",nV?nU:(nV=1,nU={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(nq)return nz;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 nq=1,nz={_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(nY)return nW;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 nY=1,nW={_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(nZ)return nG;nZ=1;var e=dw(),t=dk(),r=t.disjunctionToList,n=t.listToDisjunction;return nG={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(nH)return nK;nH=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 nK={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",nX?nJ:(nX=1,nJ={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(n0)return nQ;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 n0=1,nQ={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(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;var t=dw(),r=dk().increaseQuantifierByOne;return n1={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 n5={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=dD(),u=dP(),a=dT(),i=function(){if(uh)return up;uh=1;var e=dF(),t=function(){if(uu)return un;uu=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(ur)return ut;ur=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 ut={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,E=!1,x=void 0;try{e:for(var v,S=y[Symbol.iterator]();!(b=(v=S.next()).done);b=!0){var A=v.value,C=!0,_=!1,D=void 0;try{for(var w,T=Object.keys(h)[Symbol.iterator]();!(C=(w=T.next()).done);C=!0){var P=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,P,u,i)){h[P].add(A),h[A]=h[P];continue e}}}catch(e){_=!0,D=e}finally{try{!C&&T.return&&T.return()}finally{if(_)throw D}}h[A]=new Set([A])}}catch(e){E=!0,x=e}finally{try{!b&&S.return&&S.return()}finally{if(E)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 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 h={},m=new Set,g=!0,y=!1,b=void 0;try{for(var E,x=f.entries()[Symbol.iterator]();!(g=(E=x.next()).done);g=!0){var v=E.value,S=e(v,2),A=S[0],C=S[1];h[C]={};var _=!0,D=!1,w=void 0;try{for(var T,P=i[Symbol.iterator]();!(_=(T=P.next()).done);_=!0){var k=T.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,C);var I=void 0,F=!0,O=!1,B=void 0;try{for(var j,N=A[Symbol.iterator]();!(F=(j=N.next()).done)&&!(I=u[j.value][k]);F=!0);}catch(e){O=!0,B=e}finally{try{!F&&N.return&&N.return()}finally{if(O)throw B}}I&&(h[C][k]=f.get(r[I]))}}catch(e){D=!0,w=e}finally{try{!_&&P.return&&P.return()}finally{if(D)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=dI().EPSILON_CLOSURE;return un=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,E=!1,x=void 0;try{for(var v,S=d[Symbol.iterator]();!(b=(v=S.next()).done);b=!0){var A=r[v.value][g];if(A){var C=!0,_=!1,D=void 0;try{for(var w,T=A[Symbol.iterator]();!(C=(w=T.next()).done);C=!0){var P=w.value;r[P]&&y.push.apply(y,t(r[P][n]))}}catch(e){_=!0,D=e}finally{try{!C&&T.return&&T.return()}finally{if(_)throw D}}}}}catch(e){E=!0,x=e}finally{try{!b&&S.return&&S.return()}finally{if(E)throw x}}var k=new Set(y),I=[].concat(t(k));if(I.length>0){var F=I.join(",");s[l][g]=F,s.hasOwnProperty(F)||a.unshift(I)}}}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(uf)return uc;uf=1;var e=dD(),t=dO(),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 uc={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return up={NFA:e,DFA:t,builders:dO(),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(ug)return um;ug=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 um={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 uy={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=sk(),{isStringLiteral:n,isNewExpression:u,isRegexLiteral:a}=sv(),i="better-regex",o="better-regex/parse-error";return uv={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}}"}}}}()),dj=iA(function(){if(uC)return uA;uC=1;let{replaceTemplateElement:e}=s0(),{isRegexLiteral:t,isStringLiteral:r,isTaggedTemplateLiteral:n}=sv(),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 uA={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."}}}}()),dN=iA(function(){if(uD)return u_;uD=1;let{replaceTemplateElement:e}=s0(),{isStringLiteral:t,isRegexLiteral:r,isTaggedTemplateLiteral:n}=sv(),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."}}}}()),dL=iA(function(){if(uT)return uw;uT=1;let{getPropertyName:e,ReferenceTracker:t}=sf,{fixSpaceAroundKeyword:r}=s0(),{isMemberExpression:n,isMethodCall:u}=sv(),a=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];return uw={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`."}}}}()),dR=iA(function(){if(uk)return uP;uk=1;let{getStaticValue:e}=sf,t=sN(),{isCallOrNewExpression:r}=sv(),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 uP={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."}}}}()),dM=iA(function(){if(uF)return uI;uF=1;let{checkVueTemplate:e}=dh(),{getParenthesizedRange:t}=sh(),{replaceNodeOrTokenAndSpacesBefore:r,fixSpaceAroundKeyword:n}=s0(),u=e=>"instanceof"===e.value&&"Keyword"===e.type,a="no-instanceof-array";return uI={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`."}}}}()),d$=iA(function(){if(uB)return uO;uB=1;let{isNewExpression:e}=sv(),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 uO={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."}}}}()),dU=iA(function(){if(uN)return uj;uN=1;let e=sP(),t=sO(),{isCallOrNewExpression:r}=sv(),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 E=b?b.value.name:y;return{node:a,messageId:n,suggest:[{messageId:u,data:{expression:g,property:E},*fix(e){let{properties:t}=c,r=t.at(-1);yield e.replaceText(a,E),b||(yield r?e.insertTextAfter(r,`, ${E}`):e.replaceText(c,`{${E}}`))}}]}}}},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 dV(){return uR?uL:(uR=1,uL=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"])}var dz=iA(function(){if(uV)return uU;uV=1;let{GlobalReferenceTracker:e}=du(),t=u$?uM:(u$=1,uM={enforceNew:["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...dV()],disallowNew:["BigInt","Boolean","Number","String","Symbol"]}),{switchCallExpressionToNewExpression:r,switchNewExpressionToCallExpression:n}=s0();return uU={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}}()`."}}}}()),dq=iA(function(){if(uY)return uW;uY=1;let{hasSideEffect:e,isSemicolonToken:t}=sf,{getCallExpressionTokens:r,getCallExpressionArgumentsText:n}=sz(),u=sj(),{isNodeMatches:a}=sx(),i=uq?uz:(uq=1,uz=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}=sv(),s="error",d="suggestion",l=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&o(e,{method:"push",optionalCall:!1,optionalMember:!1});return uW={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."}}}}()),dW=iA(function(){if(uZ)return uG;uZ=1;let{isStaticRequire:e,isMethodCall:t,isLiteral:r}=sv(),n="no-process-exit",u=e=>r(e,"node:worker_threads")||r(e,"worker_threads");return uG={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."}}}}()),dY=iA(function(){if(uH)return uK;uH=1;let{isCommaToken:e}=sf,{isMethodCall:t,isExpressionStatement:r}=sv(),{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 uK={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 dG(){return u0?uQ:(u0=1,uQ=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 dZ=iA(function(){if(u2)return u1;u2=1;let{isSemicolonToken:e}=sf,t=uX?uJ:(uX=1,uJ=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=dG(),{removeSpacesAfter:n}=s0(),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 u1={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."}}}}()),dK=iA(function(){if(u4)return u3;u4=1;let{isParenthesized:e}=sf,t=s$(),{fixSpaceAroundKeyword:r}=s0(),n="no-unreadable-array-destructuring",u=(e,t,r)=>null===e&&null===r[t+1];return u3={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."}}}}()),dH=iA(function(){if(u8)return u5;u8=1;let{isCommaToken:e}=sf,t=dV(),{removeParentheses:r,fixSpaceAroundKeyword:n,addParenthesizesToReturnOrThrowExpression:u}=s0(),{isParenthesized:a,isOnSameLine:i}=sz(),{isNewExpression:o,isMethodCall:s,isCallOrNewExpression:d}=sv(),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 u5={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."}}}}()),dJ=iA(function(){if(ae)return u7;ae=1;let{isEmptyNode:e}=sv(),t=function(){if(u9)return u6;u9=1;let{isColonToken:e}=sf;return u6=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 u7={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."}}}}()),dX=iA(function(){if(ar)return at;ar=1;let{isCommaToken:e}=sf,{replaceNodeOrTokenAndSpacesBefore:t}=s0(),{isUndefined:r,isFunction:n}=sv(),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 at={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`."}}}}()),dQ=iA(function(){if(au)return an;au=1;let e=sM(),{isBigIntLiteral:t}=sv(),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 an={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."}}}}()),d0=iA(function(){if(ai)return aa;ai=1;let{isParenthesized:e,findVariable:t}=sf,{extendFixRange:r,removeMemberExpressionProperty:n,removeMethodCall:u,renameVariable:a}=s0(),{isLeftHandSide:i,singular:o,getScopes:s,avoidCapture:d,getVariableIdentifiers:l}=sz(),{isMethodCall:c}=sv(),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",E="error-variable",x="suggest-nullish-coalescing-operator",v="suggest-logical-or-operator",S=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}=_(t),[u]=n.elements,{type:a}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===a||"ObjectPattern"===a},C=(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,_=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*D(e,t,r){let{left:n}=_(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"===_(e).left.elements[0].type,T=(t,r,n,u)=>{let{left:a,right:i}=_(t),[o]=a.elements,s=o.right,d=r.getText(s);return(e(s,r)||C(s,u))&&(d=`(${d})`),n.insertTextAfter(i,` ${u} ${d}`)},P=(e,t)=>{let r,n;let{property:u}=_(t).right.callee;return w(t)?r=[{operator:"??",messageId:x},{operator:"||",messageId:v}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield T(t,e,r,n),yield*D(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*D(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}=_(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};return aa={create:e=>{let{sourceCode:x}=e,{checkFromLast:v}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&S(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})&&S(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&&S(e.init))return{node:e.init.callee.property,messageId:y,...P(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&&S(e.right))return{node:e.right.callee.property,messageId:b,...P(x,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&S(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(k(e))f.push(e.parent);else{if(!I(e))return;p.push(e.parent)}let h={node:e.init.callee.property,messageId:E};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*D(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&&S(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)]}}),v&&(e.on("CallExpression",e=>{if(c(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&S(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&&S(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:{[E]:"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(…) ?? …`.",[v]:"Replace `.filter(…)` with `.find(…) || …`."}}}}()),d1=iA(function(){if(as)return ao;as=1;let{isNodeMatches:e}=sx(),{isMethodCall:t}=sv(),{removeMethodCall:r}=s0(),n="prefer-array-flat-map",u=["React.Children","Children"];return ao={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()`."}}}}()),d2=iA(function(){if(al)return ad;al=1;let{getParenthesizedText:e,isArrayPrototypeProperty:t,isNodeMatches:r,isNodeMatchesNameOrPath:n,isParenthesized:u,isSameIdentifier:a,needsSemicolon:i,shouldAddParenthesesToMemberExpressionObject:o}=sz(),{fixSpaceAroundKeyword:s}=s0(),{isMethodCall:d,isCallExpression:l}=sv(),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."}}}}()),d3=iA(function(){if(af)return ac;af=1;let{checkVueTemplate:e}=dh(),{isBooleanNode:t,getParenthesizedRange:r,isNodeValueNotFunction:n}=sz(),{removeMemberExpressionProperty:u}=s0(),{isLiteral:a,isUndefined:i,isMethodCall:o,isMemberExpression:s}=sv(),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 ac={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}}}()),d4=iA(function(){if(ah)return ap;ah=1;let{isMethodCall:e}=sv(),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 ap={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()`."}}}}()),d5=iA(function(){if(ag)return am;ag=1;let{findVariable:e}=sf,{functionTypes:t}=sv(),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 am={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 E=e(c.getScope(t),y);if(!E)return;let{references:x}=E,{params:v}=m,S=v.find(e=>"Identifier"===e.type&&e.name===y);if(i(c,m,t)||o(h,x,a)||!s(v,S))return;let A=d(c,m)?`(${g} = ${b})`:`${g} = ${b}`;return{node:t,messageId:r,suggest:[{messageId:n,fix:e=>[e.replaceText(S,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."}}}}()),d8=iA(function(){if(ax)return aE;ax=1;let{isParenthesized:e,getParenthesizedText:t}=sh(),r=sj(),n=ab?ay:(ab=1,ay=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=sL(),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 aE={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."}}}}()),d6=iA(function(){if(aS)return av;aS=1;let{isOpeningParenToken:e,isClosingParenToken:t}=sf,r=dG(),n="with-name",u="without-name";return av={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."}}}}()),d9=iA(function(){if(aC)return aA;aC=1;let{isParenthesized:e,getStaticValue:t}=sf,{checkVueTemplate:r}=dh(),{isRegexLiteral:n,isNewExpression:u,isMethodCall:a}=sv(),{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 aA={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(…)`."}}}}()),d7=iA(function(){if(aD)return a_;aD=1;let{findVariable:e}=sf,{getVariableIdentifiers:t}=sz(),{isCallOrNewExpression:r,isMethodCall:n}=sv(),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 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`."}}}}()),le=iA(function(){if(aT)return aw;aT=1;let{isStringLiteral:e,isDirective:t}=sv(),{fixSpaceAroundKeyword:r}=s0(),n="prefer-string-raw";return aw={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 `\\`."}}}}()),lt=iA(function(){if(aF)return aI;aF=1;let{hasSideEffect:e}=sf,t=sj(),r=ak?aP:(ak=1,aP=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 aI={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,`
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`."}}}}()),lr=iA(function(){if(aB)return aO;aB=1;let{appendArgument:e}=s0(),{isMethodCall:t}=sx(),r="require-number-to-fixed-digits-argument";return aO={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 ln(e){return(ln="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 lu(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)||la(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 la(e,t){if(e){if("string"==typeof e)return li(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)?li(e,t):void 0}}function li(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 lo(e,t){return e(t={exports:{}},t.exports),t.exports}var ls=lo(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,E;for(this.__initialize(e,t),E={},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())!==E){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(E),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,E,v,x;function S(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),E={},r=this.__worklist,n=this.__leavelist,h=new l(e,null,null,new d(v={root:e},"root")),r.push(h),n.push(h);r.length;)if((h=r.pop())!==E){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||(S(h),h.node=null),this.__state===a||c===a)return v.root;if((u=h.node)&&(r.push(E),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[x=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],[x,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[x,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,x,null,new d(u,x)))}}}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||S(h),this.__state===a||c===a)break;return v.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)}),ld=lo(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:eE},p=eE,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),E=em("+",!1),v=em(",",!1),x=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},S=em("!",!1),A=em("*",!1),C=em("#",!1),_=em("[",!1),D=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),P=em("=",!1),k=function(e){return(e||"")+"="},I=/^[><]/,F=eg([">","<"],!1,!1),O=em(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},N=em('"',!1),j=/^[^\\"]/,L=eg(["\\",'"'],!0,!1),R=em("\\",!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}})}},V=em("'",!1),z=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,Y=eg([["0","9"]],!1,!1),G=em("type(",!1),Z=/^[^ )]/,K=eg([" ",")"],!0,!1),H=em(")",!1),X=/^[imsu]/,J=eg(["i","m","s","u"],!1,!1),Q=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 eE(){var e,t,r,n,u=32*el+0,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(t=ev())!==c&&(r=eA())!==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),eh[u]={nextPos:el,result:e},e)}function ev(){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 ex(){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 eS(){var e,r,n,u=32*el+3,a=eh[u];return a?(el=a.nextPos,a.result):(e=el,(r=ev())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(y)),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(E)),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(h)),r!==c&&(n=ev())!==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=e_())!==c){for(n=[],u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=e_())!==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=e_())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=x(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eC(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eS())===c&&(t=null),t!==c&&(r=e_())!==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 e_(){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=eD())!==c){for(r=[],n=el,(u=eS())!==c&&(a=eD())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eS())!==c&&(a=eD())!==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 eD(){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(S)),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,E,ec,ef,ep,em,eg,ey,eE,eS,e_,eD,ew,eI,eF,eO,eB,eN,ej,eL,eR,eM,e$,eU,eV,ez,eq,eW,eY,eG,eZ,eK,eH,eX,eJ,eQ,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(C)),i===c&&(i=null),i!==c&&(o=ex())!==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(_)),f!==c&&ev()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ev()!==c&&(E=(eS=eh[eE=32*el+14])?(el=eS.nextPos,eS.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(S)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(P)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[eE]={nextPos:el,result:em},em))!==c&&ev()!==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(G)),r!==c){if(ev()!==c){if(n=[],Z.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),Z.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(H)),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(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=eh[n];if(u)return el=u.nextPos,u.result;if(e=[],X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(J)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(J));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=B(b,E,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ev()!==c&&(E=(eF=eh[eI=32*el+13])?(el=eF.nextPos,eF.result):(e_=el,w.test(t.charAt(el))?(eD=t.charAt(el),el++):(eD=c,eb(T)),eD===c&&(eD=null),eD!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(P)),ew!==c?e_=eD=k(eD):(el=e_,e_=c)):(el=e_,e_=c),e_===c&&(I.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(F))),eh[eI]={nextPos:el,result:e_},e_))!==c&&ev()!==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(N)),r!==c){for(n=[],j.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(R)),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),j.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(R)),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(N)),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(R)),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),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(R)),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(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(Y));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(O)),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(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));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=(ej=eh[eN=32*el+19])?(el=ej.nextPos,ej.result):((eB=ex())!==c&&(eB={type:"literal",value:eB}),eO=eB,eh[eN]={nextPos:el,result:eO},eO)),ec!==c?y=b=B(b,E,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&(b={type:"attribute",name:b}),y=b)),eh[ef]={nextPos:el,result:y},y))!==c&&ev()!==c?(93===t.charCodeAt(el)?(h="]",el++):(h=c,eb(D)),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(O)),r!==c){if((n=ex())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(O)),i!==c&&(o=ex())!==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(O)),i!==c&&(o=ex())!==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):(eL=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ev()!==c&&(eM=eA())!==c&&ev()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(H)),e$!==c?eL=eR={type:"not",selectors:eM}:(el=eL,eL=c)):(el=eL,eL=c),eh[eU]={nextPos:el,result:eL},eL))===c&&(tu=(eZ=eh[eG=32*el+25])?(el=eZ.nextPos,eZ.result):(ez=el,":matches("===t.substr(el,9)?(eq=":matches(",el+=9):(eq=c,eb(en)),eq!==c&&ev()!==c&&(eW=eA())!==c&&ev()!==c?(41===t.charCodeAt(el)?(eY=")",el++):(eY=c,eb(H)),eY!==c?ez=eq={type:"matches",selectors:eW}:(el=ez,ez=c)):(el=ez,ez=c),eh[eG]={nextPos:el,result:ez},ez))===c&&(tu=(e0=eh[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eH=":has(",el+=5):(eH=c,eb(eu)),eH!==c&&ev()!==c&&(eX=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=eC())!==c){for(n=[],u=el,(a=ev())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(v)),i!==c&&(o=ev())!==c&&(s=eC())!==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=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=x(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}())!==c&&ev()!==c?(41===t.charCodeAt(el)?(eJ=")",el++):(eJ=c,eb(H)),eJ!==c?eK=eH={type:"has",selectors:eX}:(el=eK,eK=c)):(el=eK,eK=c),eh[eQ]={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=eP(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=ek(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(ev()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(H)),a!==c?e=r=eP(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(ev()!==c){if(n=[],W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));else n=c;n!==c&&(u=ev())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(H)),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 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=ex())!==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 eT(){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=ex())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(O)),a!==c&&(i=ex())!==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(O)),a!==c&&(i=ex())!==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 eP(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=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 ll(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var lc="function"==typeof WeakMap?new WeakMap:null;function lf(e){if(null==e)return function(){return!0};if(null!=lc){var t=lc.get(e);return null!=t||(t=lp(e),lc.set(e,t)),t}return lp(e)}function lp(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(lf);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(lf);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(lf);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(lf);return function(e,t,r){var n=!1,u=[];return ls.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=lf(e.left),s=lf(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=lf(e.left),l=lf(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!=ll(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=ll(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(ll(e,c))};case"type":return function(t){return e.value.value===ln(ll(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(ll(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(ll(e,c))};case"type":return function(t){return e.value.value!==ln(ll(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return ll(t,c)<=e.value.value};case"<":return function(t){return ll(t,c)<e.value.value};case">":return function(t){return ll(t,c)>e.value.value};case">=":return function(t){return ll(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=lf(e.left),m=lf(e.right);return function(t,r,n){return m(t,r,n)&&lg(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&lg(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=lf(e.left),y=lf(e.right);return function(t,r,n){return y(t,r,n)&&ly(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&ly(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,E=lf(e.right);return function(e,t,r){return E(e,t,r)&&lb(e,t,b,r)};case"nth-last-child":var v=-e.index.value,x=lf(e.right);return function(e,t,r){return x(e,t,r)&&lb(e,t,v,r)};case"class":var S=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(S){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 lh(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:ls.VisitorKeys[n]?ls.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function lm(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===ln(e)&&"string"==typeof e[r]}function lg(e,t,r,n,u){var a=lu(r,1)[0];if(!a)return!1;for(var i=lh(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(lm(s[f],u)&&t(s[f],r,u))return!0}}return!1}function ly(e,t,r,n,u){var a=lu(r,1)[0];if(!a)return!1;for(var i=lh(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&&lm(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&lm(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function lb(e,t,r,n){if(0===r)return!1;var u=lu(t,1)[0];if(!u)return!1;for(var a=lh(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 lE(e,t,r,n){if(t){var u=[],a=lf(t),i=(function e(t,r){if(null==t||"object"!=ln(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 li(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)||la(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(lf);ls.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 lv(e,t,r){var n=[];return lE(e,t,function(e){n.push(e)},r),n}function lx(e){return ld.parse(e)}function lS(e,t,r){return lv(e,lx(t),r)}lS.parse=lx,lS.match=lv,lS.traverse=lE,lS.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),lf(t)(e,r,n))},lS.query=lS;var lA=iC(Object.freeze({__proto__:null,default:lS})),lC=iA(function(){if(aV)return aU;aV=1;let e=function(){if(aR)return aL;aR=1;let e=aj?aN:(aj=1,aN=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0});return aL=t=>{let r=e(t);if(0===r)return t;let n=RegExp(`^[ \\t]{${r}}`,"gm");return t.replace(n,"")}}(),t=a$?aM:(a$=1,aM=(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}=s0(),{isMethodCall:n,isCallExpression:u,isTaggedTemplateLiteral:a}=sx(),{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,lA.parse(e)),d.get(e));return aU={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=>lA.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."}}}}()),l_=iA(function(){if(aq)return az;aq=1;let{isMethodCall:e}=sx(),{removeSpacesAfter:t}=s0(),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 az={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`."}}}}()),lD=iA(function(){if(aY)return aW;aY=1;let{fixSpaceAroundKeyword:e,addParenthesizesToReturnOrThrowExpression:t}=s0(),{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 aW={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."}}}}()),lw=iA(function(){if(aZ)return aG;aZ=1;let{isMethodCall:e,isMemberExpression:t}=sx(),{removeArgument:r}=s0(),{isSameReference:n}=sz(),u="no-length-as-slice-end";return aG={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."}}}}()),lT=iA(function(){if(aH)return aK;aH=1;let{findVariable:e}=sf,t=sP(),{renameVariable:r}=s0(),{isMethodCall:n}=sx(),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 aK={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}}`."}}}}()),lP={exports:{}};lP.exports;var lk=iA(function(){if(aQ)return aJ;aQ=1;let{upperFirst:e}=(aX||(aX=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:()=>tj,defaultsDeep:()=>tQ,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 iS&&iS&&iS.Object===Object&&iS,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,E=Object.prototype,v=E.hasOwnProperty,x=E.toString,S=b?b.toStringTag:void 0,A=function(e){var t=v.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var u=x.call(e);return n&&(t?e[S]=r:delete e[S]),u},C=Object.prototype.toString,_=b?b.toStringTag:void 0,D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?A(e):C.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=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},P=Array.isArray,k=b?b.prototype:void 0,I=k?k.toString:void 0,F=function e(t){if("string"==typeof t)return t;if(P(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==D(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},O=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},B=function(e){return e},N=function(e){if(!O(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=y["__core-js_shared__"],L=(r=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",R=Function.prototype.toString,M=function(e){if(null!=e){try{return R.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 O(r=n)&&(!L||!(L in r))&&(N(r)?q:$).test(M(r))?n:void 0},Y=Object.create,G=function(){function e(){}return function(t){if(!O(t))return{};if(Y)return Y(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Z=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},H=Date.now,X=function(){try{var e=W(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),J=(n=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:B,u=0,a=0,function(){var e=H(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),Q=/^(?:0|[1-9]\d*)$/,ee=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&Q.test(e))&&e>-1&&e%1==0&&e<t},et=function(e,t,r){"__proto__"==t&&X?X(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 J((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]=B(a),Z(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)&&!N(e)},el=function(e,t,r){if(!O(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]"==D(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")},eE=t&&!t.nodeType&&t,ev=eE&&e&&!e.nodeType&&e,ex=ev&&ev.exports===eE?y.Buffer:void 0,eS=(ex?ex.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 eC=t&&!t.nodeType&&t,e_=eC&&e&&!e.nodeType&&e,eD=e_&&e_.exports===eC&&m.process,ew=function(){try{var e=e_&&e_.require&&e_.require("util").types;if(e)return e;return eD&&eD.binding&&eD.binding("util")}catch(e){}}(),eT=ew&&ew.isTypedArray,eP=eT?function(e){return eT(e)}:function(e){return w(e)&&es(e.length)&&!!eA[D(e)]},ek=Object.prototype.hasOwnProperty,eI=function(e,t){var r=P(e),n=!r&&eb(e),u=!r&&!n&&eS(e),a=!r&&!n&&!u&&eP(e),i=r||n||u||a,o=i?ep(e.length,String):[],s=o.length;for(var d in e)(t||ek.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},eF=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eO=Object.prototype.hasOwnProperty,eB=function(e){if(!O(e))return eF(e);var t=ef(e),r=[];for(var n in e)"constructor"==n&&(t||!eO.call(e,n))||r.push(n);return r},eN=function(e){return ed(e)?eI(e,!0):eB(e)},ej=W(Object,"create"),eL=Object.prototype.hasOwnProperty,eR=Object.prototype.hasOwnProperty;function eM(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])}}eM.prototype.clear=function(){this.__data__=ej?ej(null):{},this.size=0},eM.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},eM.prototype.get=function(e){var t=this.__data__;if(ej){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eL.call(t,e)?t[e]:void 0},eM.prototype.has=function(e){var t=this.__data__;return ej?void 0!==t[e]:eR.call(t,e)},eM.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ej&&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 eY(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])}}eY.prototype.clear=function(){this.size=0,this.__data__={hash:new eM,map:new(ez||eV),string:new eM}},eY.prototype.delete=function(e){var t=eW(this,e).delete(e);return this.size-=+!!t,t},eY.prototype.get=function(e){return eW(this,e).get(e)},eY.prototype.has=function(e){return eW(this,e).has(e)},eY.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 eG=function(e){return null==e?"":F(e)},eZ=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eK=Object.prototype,eH=Function.prototype.toString,eX=eK.hasOwnProperty,eJ=eH.call(Object),eQ=function(e){if(!w(e)||"[object Object]"!=D(e))return!1;var t=eZ(e);if(null===t)return!0;var r=eX.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eH.call(r)==eJ},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=eG(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+"]",tE="["+th+"]",tv="[^"+tf+tg+"\\d+"+tp+th+tm+"]",tx="(?:\ud83c[\udde6-\uddff]){2}",tS="[\ud800-\udbff][\udc00-\udfff]",tA="["+tm+"]",tC="(?:"+tE+"|"+tv+")",t_="(?:"+tA+"|"+tv+")",tD="(?:"+ty+"(?:d|ll|m|re|s|t|ve))?",tw="(?:"+ty+"(?:D|LL|M|RE|S|T|VE))?",tT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tP="[\\ufe0e\\ufe0f]?",tk="(?:\\u200d(?:"+["[^"+tf+"]",tx,tS].join("|")+")"+tP+tT+")*",tI="(?:"+["["+tp+"]",tx,tS].join("|")+")"+(tP+tT+tk),tF=RegExp([tA+"?"+tE+"+"+tD+"(?="+[tb,tA,"$"].join("|")+")",t_+"+"+tw+"(?="+[tb,tA+tC,"$"].join("|")+")",tA+"?"+tC+"+"+tD,tA+"+"+tw,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tI].join("|"),"g"),tO=function(e,t,r){if(e=eG(e),void 0===(t=r?void 0:t)){var n;return(n=e,tc.test(n))?e.match(tF)||[]:e.match(tl)||[]}return e.match(t)||[]},tB=RegExp("['’]","g"),tN=function(e){return function(t){var r;return ti(tO(((r=eG(r=t))&&r.replace(ts,to).replace(td,"")).replace(tB,"")),e,"")}},tj=tN(function(e,t,r){return t=t.toLowerCase(),e+(r?ta(eG(t).toLowerCase()):t)});function tL(e){var t=this.__data__=new eV(e);this.size=t.size}tL.prototype.clear=function(){this.__data__=new eV,this.size=0},tL.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tL.prototype.get=function(e){return this.__data__.get(e)},tL.prototype.has=function(e){return this.__data__.has(e)},tL.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 eY(n)}return r.set(e,t),this.size=r.size,this};var tR=t&&!t.nodeType&&t,tM=tR&&e&&!e.nodeType&&e,t$=tM&&tM.exports===tR?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)},tY=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},tG=function(e,t,r){(void 0===r||er(e[t],r))&&(void 0!==r||t in e)||et(e,t,r)},tZ=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=tZ(e,r),s=tZ(t,r),d=i.get(s);if(d){tG(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=P(s),p=!f&&eS(s),h=!f&&!p&&eP(s);(l=s,f||p||h)?P(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=[]:eQ(s)||eb(s)?(l=o,eb(o))?l=ea(o,eN(o)):(!O(o)||N(o))&&(l="function"!=typeof s.constructor||ef(s)?{}:G(eZ(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tG(e,r,l)},tH=function e(t,r,n,u,a){t!==r&&tY(r,function(i,o){if(a||(a=new tL),O(i))tK(t,r,o,n,e,u,a);else{var s=u?u(tZ(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tG(t,o,s)}},eN)},tX=function e(t,r,n,u,a,i){return O(t)&&O(r)&&(i.set(r,t),tH(t,r,void 0,e,i),i.delete(r)),t},tJ=(d=function(e,t,r,n){tH(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})),tQ=eo(function(e){return e.push(void 0,tX),Z(tJ,void 0,e)}),t0=tN(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t1=tu("toLowerCase"),t2=tN(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`."}}}}()),lr=iA(function(){if(aB)return aO;aB=1;let{appendArgument:e}=s0(),{isMethodCall:t}=sv(),r="require-number-to-fixed-digits-argument";return aO={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 ln(e){return(ln="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 lu(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)||la(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 la(e,t){if(e){if("string"==typeof e)return li(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)?li(e,t):void 0}}function li(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 lo(e,t){return e(t={exports:{}},t.exports),t.exports}var ls=lo(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,E;for(this.__initialize(e,t),E={},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())!==E){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(E),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,E,x,v;function S(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),E={},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())!==E){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||(S(h),h.node=null),this.__state===a||c===a)return x.root;if((u=h.node)&&(r.push(E),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[v=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],[v,g],"Property",new d(b,g));else{if(!f(b[g]))continue;h=new l(b[g],[v,g],null,new d(b,g))}r.push(h)}}else f(b)&&r.push(new l(b,v,null,new d(u,v)))}}}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||S(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)}),ld=lo(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:eE},p=eE,h=em(" ",!1),m=/^[^ [\],():#!=><~+.]/,g=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),y=em(">",!1),b=em("~",!1),E=em("+",!1),x=em(",",!1),v=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},S=em("!",!1),A=em("*",!1),C=em("#",!1),_=em("[",!1),D=em("]",!1),w=/^[><!]/,T=eg([">","<","!"],!1,!1),P=em("=",!1),k=function(e){return(e||"")+"="},I=/^[><]/,F=eg([">","<"],!1,!1),O=em(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},j=em('"',!1),N=/^[^\\"]/,L=eg(["\\",'"'],!0,!1),R=em("\\",!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}})}},V=em("'",!1),z=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,Y=eg([["0","9"]],!1,!1),G=em("type(",!1),Z=/^[^ )]/,K=eg([" ",")"],!0,!1),H=em(")",!1),J=/^[imsu]/,X=eg(["i","m","s","u"],!1,!1),Q=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 eE(){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 ev(){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 eS(){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(E)),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=e_())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=e_())!==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=e_())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=v(r,n):(el=e,e=c)}else el=e,e=c;return eh[d]={nextPos:el,result:e},e}function eC(){var e,t,r,n,u,a=32*el+6,i=eh[a];return i?(el=i.nextPos,i.result):(e=el,(t=eS())===c&&(t=null),t!==c&&(r=e_())!==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 e_(){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=eD())!==c){for(r=[],n=el,(u=eS())!==c&&(a=eD())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eS())!==c&&(a=eD())!==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 eD(){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(S)),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,E,ec,ef,ep,em,eg,ey,eE,eS,e_,eD,ew,eI,eF,eO,eB,ej,eN,eL,eR,eM,e$,eU,eV,ez,eq,eW,eY,eG,eZ,eK,eH,eJ,eX,eQ,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(C)),i===c&&(i=null),i!==c&&(o=ev())!==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(_)),f!==c&&ex()!==c&&(p=(ep=eh[ef=32*el+16])?(el=ep.nextPos,ep.result):(y=el,(b=eT())!==c&&ex()!==c&&(E=(eS=eh[eE=32*el+14])?(el=eS.nextPos,eS.result):(em=el,33===t.charCodeAt(el)?(eg="!",el++):(eg=c,eb(S)),eg===c&&(eg=null),eg!==c?(61===t.charCodeAt(el)?(ey="=",el++):(ey=c,eb(P)),ey!==c?em=eg=k(eg):(el=em,em=c)):(el=em,em=c),eh[eE]={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(G)),r!==c){if(ex()!==c){if(n=[],Z.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),Z.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(H)),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(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=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(X)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(X));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=B(b,E,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==c&&ex()!==c&&(E=(eF=eh[eI=32*el+13])?(el=eF.nextPos,eF.result):(e_=el,w.test(t.charAt(el))?(eD=t.charAt(el),el++):(eD=c,eb(T)),eD===c&&(eD=null),eD!==c?(61===t.charCodeAt(el)?(ew="=",el++):(ew=c,eb(P)),ew!==c?e_=eD=k(eD):(el=e_,e_=c)):(el=e_,e_=c),e_===c&&(I.test(t.charAt(el))?(e_=t.charAt(el),el++):(e_=c,eb(F))),eh[eI]={nextPos:el,result:e_},e_))!==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(j)),r!==c){for(n=[],N.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(R)),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),N.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(R)),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(j)),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(R)),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),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(R)),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(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(Y));u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(O)),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(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));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=(eN=eh[ej=32*el+19])?(el=eN.nextPos,eN.result):((eB=ev())!==c&&(eB={type:"literal",value:eB}),eO=eB,eh[ej]={nextPos:el,result:eO},eO)),ec!==c?y=b=B(b,E,ec):(el=y,y=c)):(el=y,y=c),y===c&&(y=el,(b=eT())!==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(D)),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(O)),r!==c){if((n=ev())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(O)),i!==c&&(o=ev())!==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(O)),i!==c&&(o=ev())!==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):(eL=el,":not("===t.substr(el,5)?(eR=":not(",el+=5):(eR=c,eb(er)),eR!==c&&ex()!==c&&(eM=eA())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(H)),e$!==c?eL=eR={type:"not",selectors:eM}:(el=eL,eL=c)):(el=eL,eL=c),eh[eU]={nextPos:el,result:eL},eL))===c&&(tu=(eZ=eh[eG=32*el+25])?(el=eZ.nextPos,eZ.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)?(eY=")",el++):(eY=c,eb(H)),eY!==c?ez=eq={type:"matches",selectors:eW}:(el=ez,ez=c)):(el=ez,ez=c),eh[eG]={nextPos:el,result:ez},ez))===c&&(tu=(e0=eh[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eH=":has(",el+=5):(eH=c,eb(eu)),eH!==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=eC())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eC())!==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=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=v(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)?(eX=")",el++):(eX=c,eb(H)),eX!==c?eK=eH={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),eh[eQ]={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=eP(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=ek(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(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(H)),a!==c?e=r=eP(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(Y)),u!==c)for(;u!==c;)n.push(u),W.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Y));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(H)),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 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=ev())!==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 eT(){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=ev())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(O)),a!==c&&(i=ev())!==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(O)),a!==c&&(i=ev())!==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 eP(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=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 ll(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var lc="function"==typeof WeakMap?new WeakMap:null;function lf(e){if(null==e)return function(){return!0};if(null!=lc){var t=lc.get(e);return null!=t||(t=lp(e),lc.set(e,t)),t}return lp(e)}function lp(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(lf);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(lf);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(lf);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(lf);return function(e,t,r){var n=!1,u=[];return ls.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=lf(e.left),s=lf(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=lf(e.left),l=lf(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!=ll(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=ll(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(ll(e,c))};case"type":return function(t){return e.value.value===ln(ll(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(ll(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(ll(e,c))};case"type":return function(t){return e.value.value!==ln(ll(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return ll(t,c)<=e.value.value};case"<":return function(t){return ll(t,c)<e.value.value};case">":return function(t){return ll(t,c)>e.value.value};case">=":return function(t){return ll(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var h=lf(e.left),m=lf(e.right);return function(t,r,n){return m(t,r,n)&&lg(t,h,r,"LEFT_SIDE",n)||e.left.subject&&h(t,r,n)&&lg(t,m,r,"RIGHT_SIDE",n)};case"adjacent":var g=lf(e.left),y=lf(e.right);return function(t,r,n){return y(t,r,n)&&ly(t,g,r,"LEFT_SIDE",n)||e.right.subject&&g(t,r,n)&&ly(t,y,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,E=lf(e.right);return function(e,t,r){return E(e,t,r)&&lb(e,t,b,r)};case"nth-last-child":var x=-e.index.value,v=lf(e.right);return function(e,t,r){return v(e,t,r)&&lb(e,t,x,r)};case"class":var S=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(S){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 lh(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:ls.VisitorKeys[n]?ls.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function lm(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===ln(e)&&"string"==typeof e[r]}function lg(e,t,r,n,u){var a=lu(r,1)[0];if(!a)return!1;for(var i=lh(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(lm(s[f],u)&&t(s[f],r,u))return!0}}return!1}function ly(e,t,r,n,u){var a=lu(r,1)[0];if(!a)return!1;for(var i=lh(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&&lm(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&lm(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function lb(e,t,r,n){if(0===r)return!1;var u=lu(t,1)[0];if(!u)return!1;for(var a=lh(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 lE(e,t,r,n){if(t){var u=[],a=lf(t),i=(function e(t,r){if(null==t||"object"!=ln(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 li(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)||la(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(lf);ls.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 lx(e,t,r){var n=[];return lE(e,t,function(e){n.push(e)},r),n}function lv(e){return ld.parse(e)}function lS(e,t,r){return lx(e,lv(t),r)}lS.parse=lv,lS.match=lx,lS.traverse=lE,lS.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),lf(t)(e,r,n))},lS.query=lS;var lA=iC(Object.freeze({__proto__:null,default:lS})),lC=iA(function(){if(aV)return aU;aV=1;let e=function(){if(aR)return aL;aR=1;let e=aN?aj:(aN=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 aL=t=>{let r=e(t);if(0===r)return t;let n=RegExp(`^[ \\t]{${r}}`,"gm");return t.replace(n,"")}}(),t=a$?aM:(a$=1,aM=(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}=s0(),{isMethodCall:n,isCallExpression:u,isTaggedTemplateLiteral:a}=sv(),{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,lA.parse(e)),d.get(e));return aU={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=>lA.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."}}}}()),l_=iA(function(){if(aq)return az;aq=1;let{isMethodCall:e}=sv(),{removeSpacesAfter:t}=s0(),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 az={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`."}}}}()),lD=iA(function(){if(aY)return aW;aY=1;let{fixSpaceAroundKeyword:e,addParenthesizesToReturnOrThrowExpression:t}=s0(),{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 aW={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."}}}}()),lw=iA(function(){if(aZ)return aG;aZ=1;let{isMethodCall:e,isMemberExpression:t}=sv(),{removeArgument:r}=s0(),{isSameReference:n}=sz(),u="no-length-as-slice-end";return aG={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."}}}}()),lT=iA(function(){if(aH)return aK;aH=1;let{findVariable:e}=sf,t=sP(),{renameVariable:r}=s0(),{isMethodCall:n}=sv(),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 aK={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}}`."}}}}()),lP={exports:{}};lP.exports;var lk=iA(function(){if(aQ)return aX;aQ=1;let{upperFirst:e}=(aJ||(aJ=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:()=>tN,defaultsDeep:()=>tQ,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 iS&&iS&&iS.Object===Object&&iS,g="object"==typeof self&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=y.Symbol,E=Object.prototype,x=E.hasOwnProperty,v=E.toString,S=b?b.toStringTag:void 0,A=function(e){var t=x.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var u=v.call(e);return n&&(t?e[S]=r:delete e[S]),u},C=Object.prototype.toString,_=b?b.toStringTag:void 0,D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?A(e):C.call(e)},w=function(e){return null!=e&&"object"==typeof e},T=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},P=Array.isArray,k=b?b.prototype:void 0,I=k?k.toString:void 0,F=function e(t){if("string"==typeof t)return t;if(P(t))return T(t,e)+"";if("symbol"==typeof t||w(t)&&"[object Symbol]"==D(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},O=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},B=function(e){return e},j=function(e){if(!O(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},N=y["__core-js_shared__"],L=(r=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",R=Function.prototype.toString,M=function(e){if(null!=e){try{return R.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 O(r=n)&&(!L||!(L in r))&&(j(r)?q:$).test(M(r))?n:void 0},Y=Object.create,G=function(){function e(){}return function(t){if(!O(t))return{};if(Y)return Y(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Z=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},H=Date.now,J=function(){try{var e=W(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),X=(n=J?function(e,t){return J(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:B,u=0,a=0,function(){var e=H(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),Q=/^(?:0|[1-9]\d*)$/,ee=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&Q.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 X((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]=B(a),Z(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)&&!j(e)},el=function(e,t,r){if(!O(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]"==D(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")},eE=t&&!t.nodeType&&t,ex=eE&&e&&!e.nodeType&&e,ev=ex&&ex.exports===eE?y.Buffer:void 0,eS=(ev?ev.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 eC=t&&!t.nodeType&&t,e_=eC&&e&&!e.nodeType&&e,eD=e_&&e_.exports===eC&&m.process,ew=function(){try{var e=e_&&e_.require&&e_.require("util").types;if(e)return e;return eD&&eD.binding&&eD.binding("util")}catch(e){}}(),eT=ew&&ew.isTypedArray,eP=eT?function(e){return eT(e)}:function(e){return w(e)&&es(e.length)&&!!eA[D(e)]},ek=Object.prototype.hasOwnProperty,eI=function(e,t){var r=P(e),n=!r&&eb(e),u=!r&&!n&&eS(e),a=!r&&!n&&!u&&eP(e),i=r||n||u||a,o=i?ep(e.length,String):[],s=o.length;for(var d in e)(t||ek.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},eF=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eO=Object.prototype.hasOwnProperty,eB=function(e){if(!O(e))return eF(e);var t=ef(e),r=[];for(var n in e)"constructor"==n&&(t||!eO.call(e,n))||r.push(n);return r},ej=function(e){return ed(e)?eI(e,!0):eB(e)},eN=W(Object,"create"),eL=Object.prototype.hasOwnProperty,eR=Object.prototype.hasOwnProperty;function eM(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])}}eM.prototype.clear=function(){this.__data__=eN?eN(null):{},this.size=0},eM.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},eM.prototype.get=function(e){var t=this.__data__;if(eN){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eL.call(t,e)?t[e]:void 0},eM.prototype.has=function(e){var t=this.__data__;return eN?void 0!==t[e]:eR.call(t,e)},eM.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=eN&&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 eY(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])}}eY.prototype.clear=function(){this.size=0,this.__data__={hash:new eM,map:new(ez||eV),string:new eM}},eY.prototype.delete=function(e){var t=eW(this,e).delete(e);return this.size-=+!!t,t},eY.prototype.get=function(e){return eW(this,e).get(e)},eY.prototype.has=function(e){return eW(this,e).has(e)},eY.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 eG=function(e){return null==e?"":F(e)},eZ=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eK=Object.prototype,eH=Function.prototype.toString,eJ=eK.hasOwnProperty,eX=eH.call(Object),eQ=function(e){if(!w(e)||"[object Object]"!=D(e))return!1;var t=eZ(e);if(null===t)return!0;var r=eJ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eH.call(r)==eX},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=eG(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+"]",tE="["+th+"]",tx="[^"+tf+tg+"\\d+"+tp+th+tm+"]",tv="(?:\ud83c[\udde6-\uddff]){2}",tS="[\ud800-\udbff][\udc00-\udfff]",tA="["+tm+"]",tC="(?:"+tE+"|"+tx+")",t_="(?:"+tA+"|"+tx+")",tD="(?:"+ty+"(?:d|ll|m|re|s|t|ve))?",tw="(?:"+ty+"(?:D|LL|M|RE|S|T|VE))?",tT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tP="[\\ufe0e\\ufe0f]?",tk="(?:\\u200d(?:"+["[^"+tf+"]",tv,tS].join("|")+")"+tP+tT+")*",tI="(?:"+["["+tp+"]",tv,tS].join("|")+")"+(tP+tT+tk),tF=RegExp([tA+"?"+tE+"+"+tD+"(?="+[tb,tA,"$"].join("|")+")",t_+"+"+tw+"(?="+[tb,tA+tC,"$"].join("|")+")",tA+"?"+tC+"+"+tD,tA+"+"+tw,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tI].join("|"),"g"),tO=function(e,t,r){if(e=eG(e),void 0===(t=r?void 0:t)){var n;return(n=e,tc.test(n))?e.match(tF)||[]:e.match(tl)||[]}return e.match(t)||[]},tB=RegExp("['’]","g"),tj=function(e){return function(t){var r;return ti(tO(((r=eG(r=t))&&r.replace(ts,to).replace(td,"")).replace(tB,"")),e,"")}},tN=tj(function(e,t,r){return t=t.toLowerCase(),e+(r?ta(eG(t).toLowerCase()):t)});function tL(e){var t=this.__data__=new eV(e);this.size=t.size}tL.prototype.clear=function(){this.__data__=new eV,this.size=0},tL.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tL.prototype.get=function(e){return this.__data__.get(e)},tL.prototype.has=function(e){return this.__data__.has(e)},tL.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 eY(n)}return r.set(e,t),this.size=r.size,this};var tR=t&&!t.nodeType&&t,tM=tR&&e&&!e.nodeType&&e,t$=tM&&tM.exports===tR?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)},tY=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},tG=function(e,t,r){(void 0===r||er(e[t],r))&&(void 0!==r||t in e)||et(e,t,r)},tZ=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=tZ(e,r),s=tZ(t,r),d=i.get(s);if(d){tG(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=P(s),p=!f&&eS(s),h=!f&&!p&&eP(s);(l=s,f||p||h)?P(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=[]:eQ(s)||eb(s)?(l=o,eb(o))?l=ea(o,ej(o)):(!O(o)||j(o))&&(l="function"!=typeof s.constructor||ef(s)?{}:G(eZ(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tG(e,r,l)},tH=function e(t,r,n,u,a){t!==r&&tY(r,function(i,o){if(a||(a=new tL),O(i))tK(t,r,o,n,e,u,a);else{var s=u?u(tZ(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tG(t,o,s)}},ej)},tJ=function e(t,r,n,u,a,i){return O(t)&&O(r)&&(i.set(r,t),tH(t,r,void 0,e,i),i.delete(r)),t},tX=(d=function(e,t,r,n){tH(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})),tQ=eo(function(e){return e.push(void 0,tJ),Z(tX,void 0,e)}),t0=tj(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t1=tu("toLowerCase"),t2=tj(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
16
16
 
17
17
  lodash-es/lodash.js:
18
18
  (**
@@ -29,4 +29,4 @@ ${r}}`))}(t,o,d))}}}({discriminant:d,ifStatements:f},s,a)),yield p}}}},meta:{typ
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 aJ={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"}}}}()),lI=iA(function(){if(a1)return a0;a1=1;let{isParenthesized:e,isNotSemicolonToken:t}=sf,{needsSemicolon:r}=sz(),{removeSpacesAfter:n}=s0(),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 a0={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`."}}}}()),lF=iA(function(){if(a3)return a2;a3=1;let{isMethodCall:e,isNumberLiteral:t}=sx(),{getCallExpressionTokens:r}=sz(),n="no-magic-array-flat-depth";return a2={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."}}}}()),lO=iA(function(){if(a5)return a4;a5=1;let{removeParentheses:e,fixSpaceAroundKeyword:t,addParenthesizesToReturnOrThrowExpression:r}=s0(),{getParenthesizedRange:n,isParenthesized:u}=sh(),a=sB(),i=sL(),o="no-negated-condition";return a4={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."}}}}()),lB=iA(function(){if(a6)return a8;a6=1;let{isFunction:e}=sx(),t="identifier",r="non-identifier";return a8={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=iA(function(){if(it)return ie;it=1;let{getNegativeIndexLengthNode:e,removeLengthNode:t}=function(){if(a7)return a9;a7=1;let e=sN(),{getParenthesizedRange:t}=sh(),{isNumberLiteral:r}=sx(),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 a9={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=dV(),{isLiteral:n}=sx(),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 ie={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}}`."}}}}()),lj=iC(iv),lL=iA(function(){if(is)return io;is=1;let e=function(){if(ii)return ia;ii=1;let e=new Set(function(){if(iu)return ir;iu=1;let{builtinModules:e}=lj,t=["sys"];return ir=(e||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!t.includes(e)).sort()}()),t="node:";return ia=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}=s0(),r=sE(),n="prefer-node-protocol";return io={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}}`."}}}}());const lR=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),lM=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),l$=Symbol("rule-id-no-match");var lU=ip.createRule({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=lR.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=lM.exec(e.trim());return t?t.groups?.ruleId:l$}(n.value);u===l$||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),lV=ip.createRule({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===ih.AST_NODE_TYPES.ArrowFunctionExpression||(t.parent?.type===ih.AST_NODE_TYPES.ReturnStatement?!lz(t.parent):(t.parent?.type===ih.AST_NODE_TYPES.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===ih.AST_NODE_TYPES.LogicalExpression&&t===t.parent.right||t.parent?.type===ih.AST_NODE_TYPES.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(;!ih.ASTUtils.isFunction(t)&&t.type!==ih.AST_NODE_TYPES.Program;){if(t.parent.type===ih.AST_NODE_TYPES.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function lq(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 lW=ip.createRule({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=lq(t);return{MemberExpression(n){let u=n.object.range[1],a=lY(t.slice(u));if(a.includes("\n")){let t=r+((lY(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 lY(e){return e.slice(0,e.length-e.trimStart().length)}var lG=ip.createRule({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=lq(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(lZ)||t.properties.some(s),c=lZ(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 lZ(e){return e.includes("\n")}var lK=ip.createRule({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!==ih.AST_NODE_TYPES.IfStatement&&lX(t.consequent)&&function(e){if(e.alternate)return lX(e.alternate);let{parent:t}=e;if(t.type===ih.AST_NODE_TYPES.BlockStatement){let r=t.body.indexOf(e);return lH(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===ih.AST_NODE_TYPES.BlockStatement?r.body[0]:r).argument.value,i=!(((n=t.test).type===ih.AST_NODE_TYPES.UnaryExpression||n.type===ih.AST_NODE_TYPES.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 lH(e){return e?.type===ih.AST_NODE_TYPES.ReturnStatement&&e.argument?.type===ih.AST_NODE_TYPES.Literal&&"boolean"==typeof e.argument.value}function lX(e){return void 0!==e&&(e.type===ih.AST_NODE_TYPES.BlockStatement&&1===e.body.length&&lH(e.body[0])||lH(e))}function lJ(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>lJ(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 lQ(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===ih.AST_NODE_TYPES.BreakStatement?a.slice(0,-1):a),r},[]),endsWithDefault:t}}ip.createRule({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!==ih.AST_NODE_TYPES.IfStatement){let{branches:n,endsWithElse:u}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===ih.AST_NODE_TYPES.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}=lQ(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)=>lJ(r,t[n],e.sourceCode))}}});var l0=ip.createRule({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===ih.AST_NODE_TYPES.IfStatement)return;let{branches:a,endsWithElse:i}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===ih.AST_NODE_TYPES.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=l2(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}=lQ(u),o=a.filter(e=>l3(l1(e.consequent)).length>0);if(r(o.map(e=>l3(l1(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=l3(l1(a[r].consequent));if(t(u)){for(let t=0;t<r;t++)if(l2(u,l3(l1(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)=>l2(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 l1(e){if(1===e.length){let t=e[0];if(t.type===ih.AST_NODE_TYPES.BlockStatement)return t.body}return 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){return e.length>0&&e[e.length-1].type===ih.AST_NODE_TYPES.BreakStatement?e.slice(0,-1):e}var l4=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.SwitchStatement)return r[e];throw Error("A switch case should have an enclosing switch statement")}(r)).discriminant.type===ih.AST_NODE_TYPES.Literal&&!0===n.discriminant.value)){let e=function e(t,r){if("||"===t.operator)return t.left.type===ih.AST_NODE_TYPES.LogicalExpression?e(t.left,r+1):[t.left,r+1]}(r,0);e&&t(r,e[0],e[1]+1)}}}}}),l5=ip.createRule({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===ih.AST_NODE_TYPES.ImportDeclaration||e.type===ih.AST_NODE_TYPES.ExportNamedDeclaration||e.type===ih.AST_NODE_TYPES.ExportDefaultDeclaration||e.type===ih.AST_NODE_TYPES.ExportAllDeclaration))))}};function t(t){let r;let n=new Map;t.forEach(t=>{let u=function(t){if(t.type===ih.AST_NODE_TYPES.ExpressionStatement)return function(t){if(t.type===ih.AST_NODE_TYPES.AssignmentExpression&&"="===t.operator&&t.left.type===ih.AST_NODE_TYPES.MemberExpression&&t.left.computed){let{left:r,right:n}=t,u=l6(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(l8(e,n[0]))for(let e=t,r=0;e<u.length&&r<n.length;e++,r++)if(l8(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===ih.AST_NODE_TYPES.CallExpression&&e.callee.type===ih.AST_NODE_TYPES.MemberExpression){let t=e.callee;if(t.property.type===ih.AST_NODE_TYPES.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=l6(e.arguments[0]);if(r)return{collectionNode:t.object,indexOrKey:r,node:e}}}}}(t.expression)}(t);if(u){r&&!lJ(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 l8(e,t){return e.value===t.value}function l6(e){if(e.type===ih.AST_NODE_TYPES.Literal){let{value:t}=e;return"number"==typeof t||"string"==typeof t?String(t):void 0}if(e.type===ih.AST_NODE_TYPES.Identifier)return e.name}var l9=ip.createRule({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=ip.isParserWithTypeInformation(t)?l7:ct;return{AssignmentExpression({left:n,right:u}){if(n.type===ih.AST_NODE_TYPES.MemberExpression&&r(u,t)){let[t,r]=[n.object,n.property];if(t.type===ih.AST_NODE_TYPES.MemberExpression&&r.type===ih.AST_NODE_TYPES.Identifier){let[u,a]=[t.object,t.property];u.type===ih.AST_NODE_TYPES.Identifier&&a.type===ih.AST_NODE_TYPES.Identifier&&"prototype"===a.name&&e.report({messageId:"declareClass",data:{class:u.name,declaration:r.name},node:n})}}}}}});function l7(e,t){ip.ensureParserWithTypeInformation(t);let r=t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e));return!!r.symbol&&(r.symbol.flags&im.SymbolFlags.Function)!=0}const ce=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function ct(e,t){return ce.has(e.type)}var cr=ip.createRule({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===ih.AST_NODE_TYPES.Identifier&&function(e){return!!e.optional&&!!e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===ih.AST_NODE_TYPES.TSBooleanKeyword||function(e){if(e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===ih.AST_NODE_TYPES.TSUnionType){let t=e.typeAnnotation.typeAnnotation.types;return 2===t.length&&t.some(e=>e.type===ih.AST_NODE_TYPES.TSBooleanKeyword)&&t.some(e=>e.type===ih.AST_NODE_TYPES.TSUndefinedKeyword)}return!1}(e)}(r)&&e.report({messageId:"provideDefault",data:{parameter:r.name},node:r})}})}),cn=ip.createRule({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!==ih.AST_NODE_TYPES.CallExpression&&1===r.arguments.length){let n=r.typeArguments??r.callee,u=(t.getLastTokenBetween(n,r.arguments[0],cu)??t.getLastToken(n)).loc.end.line,{start:a}=t.getTokenAfter(n,ca).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 cu(e){return e.type===ih.AST_TOKEN_TYPES.Punctuator&&")"===e.value}function ca(e){return!cu(e)}var ci=ip.createRule({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&&co.test(e.charAt(t-1)),a=n<=e.length-1&&co.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")}}}});const co=RegExp("\\p{Letter}","u"),cs=["Array","Map","Set","WeakSet","WeakMap"],cd=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 cl=ip.createRule({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===ih.TSESLint.Scope.DefinitionType.Parameter||e.type===ih.TSESLint.Scope.DefinitionType.ImportBinding))return;let r=[],n=!1;for(let e of t.references)if(e.isWriteOnly()){if(!function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.VariableDeclarator||e.type===ih.AST_NODE_TYPES.ExpressionStatement);if(t){if(t.type===ih.AST_NODE_TYPES.VariableDeclarator&&t.init)return ch(t.init);if(t.type===ih.AST_NODE_TYPES.ExpressionStatement){let{expression:r}=t;return r.type===ih.AST_NODE_TYPES.AssignmentExpression&&cp(e,r.left)&&ch(r.right)}}return!1}(e))return;n=!0}else{if(!(function(e){let{parent:t}=e.identifier;if(t&&t.type===ih.AST_NODE_TYPES.MemberExpression){let e=t.parent;if(e&&e.type===ih.AST_NODE_TYPES.CallExpression)return cm(t.property,...cd)}return!1}(e)||function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ForOfStatement||e.type===ih.AST_NODE_TYPES.ForInStatement);return t&&t.right===e.identifier}(e)||function(e){let{parent:t}=e.identifier;return t&&t.type===ih.AST_NODE_TYPES.MemberExpression&&t.computed&&!function(e){let t=cf(e,new Set),r=t.find(e=>e.type===ih.AST_NODE_TYPES.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!==ih.TSESLint.Scope.ScopeType.global&&e.variables.forEach(t),e.childScopes.forEach(r)};return{"Program:exit":t=>{r(e.sourceCode.getScope(t))}}}});function cc(e,t){return cf(e,new Set).find(t)}function cf(e,t){let r=[],n=e.parent;for(;n&&(r.push(n),!t.has(n.type));)n=n.parent;return r}function cp(e,t){return t.type===ih.AST_NODE_TYPES.Identifier&&t===e.identifier}function ch(e){return e&&e.type===ih.AST_NODE_TYPES.ArrayExpression?0===e.elements.length:!!e&&(e.type===ih.AST_NODE_TYPES.CallExpression||e.type===ih.AST_NODE_TYPES.NewExpression)&&cm(e.callee,...cs)&&0===e.arguments.length}function cm(e,...t){return e?.type===ih.AST_NODE_TYPES.Identifier&&(0===t.length||t.some(t=>t===e.name))}const cg=new Set(["!=","==","!==","==="]),cy=new Set(["!==","!="]),cb=new Set(["+=","-="]);var cE=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.BinaryExpression&&cg.has(n.operator)&&function e(t){return!!cv(t)||t.type===ih.AST_NODE_TYPES.UpdateExpression||t.type===ih.AST_NODE_TYPES.SequenceExpression&&t.expressions.every(e)}(r.update)&&!(function(e){let t=e.test,r=[];return function e(t,r){let n;cv(t)?n=t.left:t.type===ih.AST_NODE_TYPES.UpdateExpression?n=t.argument:t.type===ih.AST_NODE_TYPES.SequenceExpression&&t.expressions.forEach(t=>e(t,r)),n&&n.type===ih.AST_NODE_TYPES.Identifier&&r.push(n.name)}(e.update,r),t.left.type!==ih.AST_NODE_TYPES.Identifier||!r.includes(t.left.name)}(r)||function(e){let r=e.init,n=e.test;if(r&&cx(n)){let u=function(e,r){if(e.type===ih.AST_NODE_TYPES.UpdateExpression&&!t(e.argument,r)||function(e){if(cv(e)){let t=e.right;return t.type===ih.AST_NODE_TYPES.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=cS(r),t=cS(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 cv(e){return e.type===ih.AST_NODE_TYPES.AssignmentExpression&&cb.has(e.operator)}function cx(e){return e.type===ih.AST_NODE_TYPES.BinaryExpression&&cy.has(e.operator)}function cS(e){return cx(e)?cA(e.right):e.type===ih.AST_NODE_TYPES.VariableDeclaration&&1===e.declarations.length?cA(e.declarations[0].init):e.type===ih.AST_NODE_TYPES.AssignmentExpression?cA(e.right):void 0}function cA(e){if(e&&e.type===ih.AST_NODE_TYPES.Literal&&"number"==typeof e.value)return e.value}var cC=ip.createRule({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===ih.AST_NODE_TYPES.ClassDeclaration||e.type===ih.AST_NODE_TYPES.ClassExpression);if((r===ih.TSESLint.Scope.ScopeType.global||r===ih.TSESLint.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})}}})}),c_=ip.createRule({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?cT(r,t):void 0;if(void 0!==n)return e.slice(1).every(e=>cT(e,t)===n);if(r?.type===ih.AST_NODE_TYPES.Identifier){let n=cD(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 cD(e,t){let r=t.set.get(e);if(r&&!r.references.slice(1).some(e=>e.isWrite()||function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ExpressionStatement||ce.has(e.type));return t&&t.type===ih.AST_NODE_TYPES.ExpressionStatement&&(cw(t,e)||t.expression.type===ih.AST_NODE_TYPES.CallExpression)}(e))){let e=null;return 1===r.defs.length&&r.defs[0].type===ih.TSESLint.Scope.DefinitionType.Variable&&(e=r.defs[0].node.init),{variable:r,initExpression:e}}return null}function cw(e,t,r=!0){return e.expression.type===ih.AST_NODE_TYPES.AssignmentExpression&&function e(t,r,n=!0){return t.type===ih.AST_NODE_TYPES.MemberExpression&&(cp(r,t.object)||n&&e(t.object,r,n))}(e.expression.left,t,r)}function cT(e,t){if(e){if(e.type===ih.AST_NODE_TYPES.Literal)return e.value;if(e.type===ih.AST_NODE_TYPES.UnaryExpression){let r=cT(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===ih.AST_NODE_TYPES.Identifier){let r=cD(e.name,t);if(r?.initExpression)return cT(r.initExpression,t)}}}function cP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(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 cI extends Set{constructor(...e){super(...e),cP(this,"type","AssignedValues")}}const cF=e=>new cI([e]),cO={type:"UnknownValue"};class cB{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,cO);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 cI;"AssignedValues"===e.type&&"AssignedValues"===r.type?(r.forEach(t=>e.add(t)),this.in.set(t,e)):this.in.set(t,cO)}}constructor(e){cP(this,"segment",void 0),cP(this,"in",void 0),cP(this,"out",void 0),cP(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 cO;switch(t.type){case ih.AST_NODE_TYPES.Literal:return t.raw?cF(t.raw):cO;case ih.AST_NODE_TYPES.Identifier:{let u=ck(t,n);if(u&&u!==e)return r.get(u)??cO;return cO}default:return cO}}class cj{constructor(e){cP(this,"codePath",void 0),cP(this,"reachingDefinitionsMap",void 0),cP(this,"reachingDefinitionsStack",void 0),cP(this,"segments",void 0),cP(this,"assignmentStack",void 0),this.codePath=e,this.reachingDefinitionsMap=new Map,this.reachingDefinitionsStack=[],this.segments=new Map,this.assignmentStack=[]}}class cL{isRhs(e){return this.node.type===ih.AST_NODE_TYPES.AssignmentExpression?this.node.right===e:this.node.init===e}isLhs(e){return this.node.type===ih.AST_NODE_TYPES.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){cP(this,"node",void 0),cP(this,"lhs",void 0),cP(this,"rhs",void 0),this.node=e,this.lhs=new Set,this.rhs=new Set}}function cR(e){return e[e.length-1]}var cM=ip.createRule({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===ih.AST_NODE_TYPES.TSEnumBody||r.parent.type===ih.AST_NODE_TYPES.TSEnumDeclaration||r.parent.type===ih.AST_NODE_TYPES.TSEnumMember||e.sourceCode.getAncestors(r).some(e=>e.type===ih.AST_NODE_TYPES.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&&d(u),a){let e=cR(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(s),r.clear(),n.clear(),t.length=0},onCodePathSegmentStart(e){r.set(e.id,new cB(e)),a.push(e)},onCodePathStart(e){var r;r=new cj(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=cR(t).assignmentStack.pop();e.rhs.forEach(d),e.lhs.forEach(d)}function o(e){cR(t).assignmentStack.push(new cL(e))}function s(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===ih.AST_NODE_TYPES.Identifier&&e.identifier.parent?.type===ih.AST_NODE_TYPES.AssignmentPattern)&&!t.name.startsWith("_")&&!function(e){if(e?.parent){let t=e.parent;return t&&t.type===ih.AST_NODE_TYPES.AssignmentExpression&&"="!==t.operator}return!1}(e.writeExpr)&&(e.writeExpr?.type!==ih.AST_NODE_TYPES.Identifier||e.resolved!==ck(e.writeExpr,e.from))&&!t.defs.some(e=>e.type===ih.TSESLint.Scope.DefinitionType.Parameter||e.type===ih.TSESLint.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 d(e){let{assignmentStack:n}=cR(t);if(n.length>0)cR(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 cB(e),r.set(e.id,t)),t})(a[t]).add(e)}}}),c$=ip.createRule({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===ih.AST_NODE_TYPES.IfStatement&&u&&u.type===ih.AST_NODE_TYPES.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)}}}),cU=ip.createRule({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})}}})});const cV=["Array","Map","Set","WeakSet","WeakMap"],cz=["copyWithin","fill","pop","push","reverse","set","shift","sort","splice","unshift","add","clear","delete"];var cq=ip.createRule({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!==ih.TSESLint.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=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.VariableDeclarator||e.type===ih.AST_NODE_TYPES.ExpressionStatement);if(t){if(t.type===ih.AST_NODE_TYPES.VariableDeclarator&&t.init)return cW(t.init);if(t.type===ih.AST_NODE_TYPES.ExpressionStatement){let{expression:r}=t;return r.type===ih.AST_NODE_TYPES.AssignmentExpression&&cp(e,r.left)&&cW(r.right)}}return!1}(r))return!1;t=!0}else if(function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ExpressionStatement);return!t||!(cw(t,e,!1)||function(e,t){if(e.expression.type===ih.AST_NODE_TYPES.CallExpression){let{callee:r}=e.expression;if(r.type===ih.AST_NODE_TYPES.MemberExpression){let{property:e,object:n}=r;return cp(t,n)&&cm(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 cW(e){return!!e&&e.type===ih.AST_NODE_TYPES.ArrayExpression||!!e&&(e.type===ih.AST_NODE_TYPES.CallExpression||e.type===ih.AST_NODE_TYPES.NewExpression)&&cm(e.callee,...cV)}var cY=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.UpdateExpression&&!r.prefix){let n=e.left;n.type===ih.AST_NODE_TYPES.Identifier&&r.argument.type===ih.AST_NODE_TYPES.Identifier&&r.argument.name===n.name&&t(r)}}}}});const cG=new Set(["map","filter","reduce","reduceRight","forEach"]);var cZ=ip.createRule({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(cK(t)){let r=t.parent;cK(r.parent)&&e.report({node:r,messageId:"detected",data:{methods:`arr.${t.property.name}().${r.parent.property.name}()`}})}}})});function cK(e){return e.type===ih.AST_NODE_TYPES.MemberExpression&&!e.computed&&e.property.type===ih.AST_NODE_TYPES.Identifier&&!!(cG.has(e.property.name)&&e.parent.type===ih.AST_NODE_TYPES.CallExpression)}function cH(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||cX(e)||cJ(e,null!=t?t:t=cQ("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 cX(t){return cJ(t,null!=e?e:e=cQ("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 cJ(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 cQ(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class c0{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(" "))}}const c1=new Set(["General_Category","gc"]),c2=new Set(["Script","Script_Extensions","sc","scx"]),c3=new c0("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","","","","","","",""),c4=new c0("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","",""),c5=new c0("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","","","",""),c8=new c0("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function c6(e,t,r){return c1.has(t)?e>=2018&&c3.es2018.has(r):!!c2.has(t)&&(e>=2018&&c4.es2018.has(r)||e>=2019&&c4.es2019.has(r)||e>=2020&&c4.es2020.has(r)||e>=2021&&c4.es2021.has(r)||e>=2022&&c4.es2022.has(r)||e>=2023&&c4.es2023.has(r))}function c9(e){return e>=65&&e<=90||e>=97&&e<=122}function c7(e){return e>=48&&e<=57}function fe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ft(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function fr(e){return e>=55296&&e<=56319}function fn(e){return e>=56320&&e<=57343}function fu(e,t){return(e-55296)*1024+(t-56320)+65536}class fa{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 fi{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 fi(this,null)}sibling(){return new fi(this.parent,this.base)}}class fo{constructor(){this.branchID=new fi(null,null),this.groupNames=new Map}clear(){this.branchID=new fi(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])}}const fs={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},fd={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class fl{constructor(){this._impl=fs,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?fd:fs,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 fc extends SyntaxError{constructor(e,t){super(e),this.index=t}}const ff=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),fp=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),fh=new Set([40,41,91,93,123,125,47,45,92,124]),fm=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),fg={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},fy=Object.fromEntries(Object.entries(fg).map(([e,t])=>[t,e]));function fb(e){return c9(e)||95===e}class fE{constructor(e){this._reader=new fl,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 fo:new fa}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 fc(`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(fg[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||ff.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&&(c7(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&&fp.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||!fp.has(r))&&-1!==r&&!fh.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,fm.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&&fr(u)&&fn(this.currentCodePoint)&&(u=fu(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||cX(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&&fr(n)&&fn(this.currentCodePoint)&&(n=fu(n,this.currentCodePoint),this.advance()),cH(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||c7(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!!c9(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(fr(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(fn(e))return this._lastIntValue=fu(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?ff.has(e)||47===e:this.strict?!cH(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(c6(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(c6(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&c5.es2018.has(e)||t>=2019&&c5.es2019.has(e)||t>=2021&&c5.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&c8.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";fb(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";fb(e=this.currentCodePoint)||c7(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;c7(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;fe(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+ft(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(!fe(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+ft(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=fy[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}}const fv={},fx={},fS={};function fA(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class fC{constructor(e){var t;this._node=fv,this._expressionBufferMap=new Map,this._flags=fx,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:fS};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&&!fA(a)||!fA(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&&!fA(a)||!fA(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}}const f_=/^[!=]=/,fD=new class{constructor(e){this._state=new fC(e),this._validator=new fE(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 fw=ip.createRule({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){ip.ensureParserWithTypeInformation(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){let n=t.getTypeAtLocation(e);return"string"===ig.getTypeName(r,n)}function a(e,t){let r=ih.ASTUtils.getStaticValue(e,n);return null!=r&&r.value===t}function i(e){let t=ih.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function o(t,r){if(t.type===ih.AST_NODE_TYPES.MemberExpression)return"length"===ih.ASTUtils.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=ih.ASTUtils.getStaticValue(t,n),a=ih.ASTUtils.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function s(e,t,r){return e.type===ih.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,t)||e.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,r)&&o(e.right,t)}function d(t){return[e.sourceCode.getTokenAfter(t.object,ih.ASTUtils.isNotClosingParenToken).range[0],t.range[1]]}function l(e){let t=ih.ASTUtils.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=fD.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*c(e,t,r,n,u){let a=d(function e(t){let r;if(t.type===ih.AST_NODE_TYPES.ChainExpression)return e(t.expression);if((r=t.type===ih.AST_NODE_TYPES.CallExpression?t.callee:t).type!==ih.AST_NODE_TYPES.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*f(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(d(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,s;let d=fT(t),l=d.type===ih.AST_NODE_TYPES.CallExpression,f=null;if(d.type===ih.AST_NODE_TYPES.CallExpression?(1===d.arguments.length&&(f=d.arguments[0]),d=fT(d)):f=t.property,null==f||!fP(d)||!u(t.object))return;let p=(r=f,s=t.object,r.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===r.operator&&o(r.left,s)&&a(r.right,1)),h=!p&&a(f,0);if(!h&&!p)return;let m=d;h&&!l&&function(e){if(!i(e))return!1;let t=ih.ASTUtils.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)}(m.right)||e.report({node:d,messageId:h?"preferStartsWith":"preferEndsWith",fix:e=>i(m.right)?c(e,m,h?"start":"end",m.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=fT(t),n=fT(r);1===r.arguments.length&&fP(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>f(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=fT(t),n=fT(r);1===r.arguments.length&&fP(n)&&n.right.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===n.right.operator&&o(n.right.left,t.object)&&o(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>f(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=fT(t),a=fT(r);if(!fP(a)||!function(e){let t=ih.ASTUtils.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?l(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(d(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=fT(t),n=fT(r);if(!fP(n)||!u(t.object))return;let i=!1,d=!1;if(1===r.arguments.length?s(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&o(r.arguments[1],n.right)?d=!0:(o(r.arguments[1],t.object)||a(r.arguments[1],0))&&s(r.arguments[0],n.right,t.object)&&(i=!0)),!d&&!i)return;let l="slice"===t.property.name;e.report({node:n,messageId:d?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==ih.AST_NODE_TYPES.Literal||"string"!=typeof n.right.value))return null;if(d){if(!o(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,t.object)&&o(e.right,n.right)||l&&e.type===ih.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,n.right)))return null}return c(e,n,d?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=fT(t),n=1===r.arguments.length?l(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!==ih.AST_NODE_TYPES.Literal&&n.type!==ih.AST_NODE_TYPES.TemplateLiteral&&n.type!==ih.AST_NODE_TYPES.Identifier&&n.type!==ih.AST_NODE_TYPES.MemberExpression&&n.type!==ih.AST_NODE_TYPES.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 fT(e){return ih.ESLintUtils.nullThrows(e.parent?.type===ih.AST_NODE_TYPES.ChainExpression?e.parent.parent:e.parent,ih.ESLintUtils.NullThrowsReasons.MissingParent)}function fP(e){return e.type===ih.AST_NODE_TYPES.BinaryExpression&&f_.test(e.operator)}var fk=ip.createRule({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=ih.ASTUtils.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===ih.AST_NODE_TYPES.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===ih.AST_NODE_TYPES.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===ih.AST_NODE_TYPES.VariableDeclaration){let e=n.declarations[0].id;e.type===ih.AST_NODE_TYPES.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===ih.AST_NODE_TYPES.Identifier&&t(e,r)}}}}),fI=ip.createRule({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 ip.ensureParserWithTypeInformation(t),e.symbol&&fO.has(e.symbol.name)||((r=e).flags&im.TypeFlags.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){ip.ensureParserWithTypeInformation(t);let u=fF(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 fF(e,t){return t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e))}const fO=new Set(["Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","Set","Map"]);var fB=ip.createRule({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 ip.ensureParserWithTypeInformation(t),{AwaitExpression(r){let n=fF(r.argument,t);(function(e,t){var r;if(e.argument.type!==ih.AST_NODE_TYPES.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===im.SyntaxKind.MethodSignature||e.kind===im.SyntaxKind.MethodDeclaration||e.kind===im.SyntaxKind.PropertyDeclaration)}(n)||n.flags&im.TypeFlags.Any||n.flags&im.TypeFlags.Unknown||n.flags&im.TypeFlags.Union||e.report({messageId:"refactorAwait",node:r})}}}}),fN=ip.createRule({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 ip.ensureParserWithTypeInformation(t),{CallExpression(r){let{arguments:n}=r;if(0===n.length)return;let u=n[n.length-1];u.type===ih.AST_NODE_TYPES.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&&fj.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])}}]})}}}});const fj=new Set([im.SyntaxKind.FunctionDeclaration,im.SyntaxKind.FunctionExpression,im.SyntaxKind.ArrowFunction,im.SyntaxKind.MethodDeclaration,im.SyntaxKind.Constructor,im.SyntaxKind.GetAccessor,im.SyntaxKind.SetAccessor]);function fL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class fR{visit(e,t){let r=e=>{switch(e.type){case ih.AST_NODE_TYPES.AwaitExpression:case ih.AST_NODE_TYPES.CallExpression:case ih.AST_NODE_TYPES.NewExpression:this.callLikeExpressions.push(e);break;case ih.AST_NODE_TYPES.FunctionDeclaration:case ih.AST_NODE_TYPES.FunctionExpression:case ih.AST_NODE_TYPES.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(){fL(this,"callLikeExpressions",[])}}fL(fR,"getCallExpressions",(e,t)=>{let r=new fR;return r.visit(e,t),r.callLikeExpressions});var fM={rules:{"array/no-unneeded-flat-map":iz,"browser/prefer-location-assign":iW,"jsx/no-template-literal":iG,"jsx/no-unneeded-nested":iZ,"string/no-locale-case":iH,"string/no-simple-template-literal":iJ,"type/no-instanceof-wrapper":i0,"unicode/no-bidi":i6,"unicode/no-invisible":i7,"ban-eslint-disable":lU,"no-redundant-variable":oe,"no-single-return":or,"prefer-early-return":ou,"prefer-fetch":oa,"prefer-timer-id":os,"no-return-await":lV,"no-expression-empty-lines":lW,"object-format":lG,"prefer-single-boolean-return":lK,"no-all-duplicated-branches":l0,"no-duplicated-branches":l0,"bool-param-default":cr,"call-argument-line":cn,"class-prototype":l9,"comma-or-logical-or-case":l4,"track-todo-fixme-comment":ci,"no-element-overwrite":l5,"no-empty-collection":cl,"no-equals-in-for-termination":cE,"no-top-level-this":cC,"no-invariant-returns":c_,"no-redundant-assignments":cM,"no-same-line-conditional":c$,"no-small-switch":cU,"no-unused-collection":cq,"no-useless-plusplus":cY,"no-chain-array-higher-order-functions":cZ,"string/prefer-string-starts-ends-with":fw,"string/no-unneeded-to-string":od,"type/no-force-cast-via-top-type":ol,"type/no-wrapper-type-reference":of,"no-default-error":op,"no-export-const-enum":fk,"no-for-in-iterable":fI,"only-await-thenable":fB,"no-undefined-optional-parameters":fN,"no-try-promise":ip.createRule({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 ip.ensureParserWithTypeInformation(t),{TryStatement(r){if(r.handler){let n=[],u=[],a=!1;fR.getCallExpressions(r.block,e).forEach(e=>{if(e.type===ih.AST_NODE_TYPES.AwaitExpression||!function(e,t){let r=t.esTreeNodeToTSNodeMap.get(e),n=t.program.getTypeChecker().getTypeAtLocation(r).getProperty("then");return!!(n&&n.flags&im.SymbolFlags.Method)}(e,t)){a=!0;return}!(e.parent&&(e.parent.type===ih.AST_NODE_TYPES.AwaitExpression||e.parent.type===ih.AST_NODE_TYPES.YieldExpression)||e.parent&&e.parent.type===ih.AST_NODE_TYPES.MemberExpression&&e.parent.property.type===ih.AST_NODE_TYPES.Identifier&&"then"===e.parent.property.name||e.type===ih.AST_NODE_TYPES.CallExpression&&e.callee.type===ih.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===ih.AST_NODE_TYPES.Identifier&&"catch"===e.callee.property.name)&&(e.parent&&e.parent.type===ih.AST_NODE_TYPES.MemberExpression&&e.parent.property.type===ih.AST_NODE_TYPES.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":ip.createRule({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(ip.ensureParserWithTypeInformation(t),(fF(n,t).flags&ix.TypeFlags.StringLike)!=0&&u.type===ih.AST_NODE_TYPES.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":dB,"unicorn/catch-error-name":lT,"unicorn/custom-error-definition":lk,"unicorn/no-nested-ternary":sp,"unicorn/prefer-event-target":sq,"unicorn/prefer-keyboard-event-key":sW,"unicorn/prefer-text-content":sY,"unicorn/require-array-join-separator":s1,"unicorn/no-thenable":s2,"unicorn/no-invalid-remove-event-listener":s3,"unicorn/consistent-function-scoping":s4,"unicorn/no-new-buffer":s5,"unicorn/no-console-spaces":s8,"unicorn/no-empty-file":s6,"unicorn/no-useless-fallback-in-spread":s9,"unicorn/no-useless-length-check":s7,"unicorn/no-useless-promise-resolve-reject":de,"unicorn/no-zero-fractions":dt,"unicorn/prefer-export-from":dr,"unicorn/prefer-native-coercion-functions":dn,"unicorn/no-document-cookie":da,"unicorn/prefer-add-event-listener":di,"unicorn/prefer-array-index-of":ds,"unicorn/prefer-blob-reading-methods":dd,"unicorn/prefer-date-now":dl,"unicorn/prefer-dom-node-dataset":dc,"unicorn/prefer-modern-math-apis":df,"unicorn/number-literal-case":dm,"unicorn/prefer-number-properties":dg,"unicorn/prefer-reflect-apply":dy,"unicorn/prefer-set-size":db,"unicorn/prefer-string-replace-all":dv,"unicorn/prefer-string-slice":dx,"unicorn/prefer-string-trim-start-end":dS,"unicorn/no-unreadable-iife":dA,"unicorn/throw-new-error":dC,"unicorn/escape-case":dN,"unicorn/no-hex-escape":dj,"unicorn/prefer-prototype-methods":dL,"unicorn/error-message":dR,"unicorn/no-instanceof-array":dM,"unicorn/prefer-type-error":d$,"unicorn/consistent-destructuring":dU,"unicorn/new-for-builtins":dz,"unicorn/no-array-push-push":dq,"unicorn/no-process-exit":dW,"unicorn/no-static-only-class":dZ,"unicorn/no-unreadable-array-destructuring":dK,"unicorn/no-useless-spread":dH,"unicorn/no-useless-switch-case":dX,"unicorn/no-useless-undefined":dJ,"unicorn/numeric-separators-style":dQ,"unicorn/prefer-array-find":d0,"unicorn/prefer-array-flat-map":d1,"unicorn/prefer-array-flat":d2,"unicorn/prefer-array-some":d3,"unicorn/prefer-code-point":d4,"unicorn/prefer-default-parameters":d5,"unicorn/prefer-logical-operator-over-ternary":d8,"unicorn/prefer-optional-catch-binding":d6,"unicorn/prefer-regexp-test":d9,"unicorn/prefer-set-has":d7,"unicorn/prefer-string-raw":le,"unicorn/prefer-switch":lt,"unicorn/require-number-to-fixed-digits-argument":lr,"unicorn/template-indent":lC,"unicorn/no-single-promise-in-promise-methods":dY,"unicorn/no-await-in-promise-methods":l_,"unicorn/no-negation-in-equality-check":lD,"unicorn/no-length-as-slice-end":lw,"unicorn/no-lonely-if":lI,"unicorn/no-magic-array-flat-depth":lF,"unicorn/no-negated-condition":lO,"unicorn/no-object-as-default-parameter":lB,"unicorn/prefer-negative-index":lN,"unicorn/prefer-node-protocol":lL}).reduce((e,[t,r])=>{var n;return e[t]={...r,meta:{schema:[],...r.meta,docs:{description:"",...r.meta.docs,url:iT(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=iF(r.fix)),iP(r.suggest))for(let e of r.suggest)"fix"in e&&"function"==typeof e.fix&&(e.fix=iF(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})},e},{})}};module.exports=fM;
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 aX={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"}}}}()),lI=iA(function(){if(a1)return a0;a1=1;let{isParenthesized:e,isNotSemicolonToken:t}=sf,{needsSemicolon:r}=sz(),{removeSpacesAfter:n}=s0(),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 a0={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`."}}}}()),lF=iA(function(){if(a3)return a2;a3=1;let{isMethodCall:e,isNumberLiteral:t}=sv(),{getCallExpressionTokens:r}=sz(),n="no-magic-array-flat-depth";return a2={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."}}}}()),lO=iA(function(){if(a5)return a4;a5=1;let{removeParentheses:e,fixSpaceAroundKeyword:t,addParenthesizesToReturnOrThrowExpression:r}=s0(),{getParenthesizedRange:n,isParenthesized:u}=sh(),a=sB(),i=sL(),o="no-negated-condition";return a4={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."}}}}()),lB=iA(function(){if(a6)return a8;a6=1;let{isFunction:e}=sv(),t="identifier",r="non-identifier";return a8={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."}}}}()),lj=iA(function(){if(it)return ie;it=1;let{getNegativeIndexLengthNode:e,removeLengthNode:t}=function(){if(a7)return a9;a7=1;let e=sj(),{getParenthesizedRange:t}=sh(),{isNumberLiteral:r}=sv(),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 a9={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=dV(),{isLiteral:n}=sv(),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 ie={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}}`."}}}}()),lN=iC(ix),lL=iA(function(){if(is)return io;is=1;let e=function(){if(ii)return ia;ii=1;let e=new Set(function(){if(iu)return ir;iu=1;let{builtinModules:e}=lN,t=["sys"];return ir=(e||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!t.includes(e)).sort()}()),t="node:";return ia=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}=s0(),r=sE(),n="prefer-node-protocol";return io={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}}`."}}}}());const lR=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),lM=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),l$=Symbol("rule-id-no-match");var lU=ip.createRule({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=lR.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=lM.exec(e.trim());return t?t.groups?.ruleId:l$}(n.value);u===l$||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),lV=ip.createRule({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===ih.AST_NODE_TYPES.ArrowFunctionExpression||(t.parent?.type===ih.AST_NODE_TYPES.ReturnStatement?!lz(t.parent):(t.parent?.type===ih.AST_NODE_TYPES.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===ih.AST_NODE_TYPES.LogicalExpression&&t===t.parent.right||t.parent?.type===ih.AST_NODE_TYPES.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(;!ih.ASTUtils.isFunction(t)&&t.type!==ih.AST_NODE_TYPES.Program;){if(t.parent.type===ih.AST_NODE_TYPES.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function lq(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 lW=ip.createRule({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=lq(t);return{MemberExpression(n){let u=n.object.range[1],a=lY(t.slice(u));if(a.includes("\n")){let t=r+((lY(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 lY(e){return e.slice(0,e.length-e.trimStart().length)}var lG=ip.createRule({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=lq(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(lZ)||t.properties.some(s),c=lZ(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 lZ(e){return e.includes("\n")}var lK=ip.createRule({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!==ih.AST_NODE_TYPES.IfStatement&&lJ(t.consequent)&&function(e){if(e.alternate)return lJ(e.alternate);let{parent:t}=e;if(t.type===ih.AST_NODE_TYPES.BlockStatement){let r=t.body.indexOf(e);return lH(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===ih.AST_NODE_TYPES.BlockStatement?r.body[0]:r).argument.value,i=!(((n=t.test).type===ih.AST_NODE_TYPES.UnaryExpression||n.type===ih.AST_NODE_TYPES.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 lH(e){return e?.type===ih.AST_NODE_TYPES.ReturnStatement&&e.argument?.type===ih.AST_NODE_TYPES.Literal&&"boolean"==typeof e.argument.value}function lJ(e){return void 0!==e&&(e.type===ih.AST_NODE_TYPES.BlockStatement&&1===e.body.length&&lH(e.body[0])||lH(e))}function lX(e,t,r){var n,u;return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>lX(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 lQ(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===ih.AST_NODE_TYPES.BreakStatement?a.slice(0,-1):a),r},[]),endsWithDefault:t}}ip.createRule({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!==ih.AST_NODE_TYPES.IfStatement){let{branches:n,endsWithElse:u}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===ih.AST_NODE_TYPES.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}=lQ(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)=>lX(r,t[n],e.sourceCode))}}});var l0=ip.createRule({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===ih.AST_NODE_TYPES.IfStatement)return;let{branches:a,endsWithElse:i}=function(e){let t=[e.consequent],r=!1,n=e.alternate;for(;n;)if(n.type===ih.AST_NODE_TYPES.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=l2(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}=lQ(u),o=a.filter(e=>l3(l1(e.consequent)).length>0);if(r(o.map(e=>l3(l1(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=l3(l1(a[r].consequent));if(t(u)){for(let t=0;t<r;t++)if(l2(u,l3(l1(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)=>l2(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 l1(e){if(1===e.length){let t=e[0];if(t.type===ih.AST_NODE_TYPES.BlockStatement)return t.body}return 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){return e.length>0&&e[e.length-1].type===ih.AST_NODE_TYPES.BreakStatement?e.slice(0,-1):e}var l4=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.SwitchStatement)return r[e];throw Error("A switch case should have an enclosing switch statement")}(r)).discriminant.type!==ih.AST_NODE_TYPES.Literal||!0!==n.discriminant.value){let e=function e(t,r){if("||"===t.operator)return t.left.type===ih.AST_NODE_TYPES.LogicalExpression?e(t.left,r+1):[t.left,r+1]}(r,0);e&&t(r,e[0],e[1]+1)}}}}}),l5=ip.createRule({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===ih.AST_NODE_TYPES.ImportDeclaration||e.type===ih.AST_NODE_TYPES.ExportNamedDeclaration||e.type===ih.AST_NODE_TYPES.ExportDefaultDeclaration||e.type===ih.AST_NODE_TYPES.ExportAllDeclaration))))}};function t(t){let r;let n=new Map;t.forEach(t=>{let u=function(t){if(t.type===ih.AST_NODE_TYPES.ExpressionStatement)return function(t){if(t.type===ih.AST_NODE_TYPES.AssignmentExpression&&"="===t.operator&&t.left.type===ih.AST_NODE_TYPES.MemberExpression&&t.left.computed){let{left:r,right:n}=t,u=l6(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(l8(e,n[0]))for(let e=t,r=0;e<u.length&&r<n.length;e++,r++)if(l8(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===ih.AST_NODE_TYPES.CallExpression&&e.callee.type===ih.AST_NODE_TYPES.MemberExpression){let t=e.callee;if(t.property.type===ih.AST_NODE_TYPES.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=l6(e.arguments[0]);if(r)return{collectionNode:t.object,indexOrKey:r,node:e}}}}}(t.expression)}(t);if(u){r&&!lX(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 l8(e,t){return e.value===t.value}function l6(e){if(e.type===ih.AST_NODE_TYPES.Literal){let{value:t}=e;return"number"==typeof t||"string"==typeof t?String(t):void 0}if(e.type===ih.AST_NODE_TYPES.Identifier)return e.name}var l9=ip.createRule({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=ip.isParserWithTypeInformation(t)?l7:ct;return{AssignmentExpression({left:n,right:u}){if(n.type===ih.AST_NODE_TYPES.MemberExpression&&r(u,t)){let[t,r]=[n.object,n.property];if(t.type===ih.AST_NODE_TYPES.MemberExpression&&r.type===ih.AST_NODE_TYPES.Identifier){let[u,a]=[t.object,t.property];u.type===ih.AST_NODE_TYPES.Identifier&&a.type===ih.AST_NODE_TYPES.Identifier&&"prototype"===a.name&&e.report({messageId:"declareClass",data:{class:u.name,declaration:r.name},node:n})}}}}}});function l7(e,t){ip.ensureParserWithTypeInformation(t);let r=t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e));return!!r.symbol&&(r.symbol.flags&im.SymbolFlags.Function)!=0}const ce=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function ct(e,t){return ce.has(e.type)}var cr=ip.createRule({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===ih.AST_NODE_TYPES.Identifier&&function(e){return!!e.optional&&!!e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===ih.AST_NODE_TYPES.TSBooleanKeyword||function(e){if(e.typeAnnotation&&e.typeAnnotation.typeAnnotation.type===ih.AST_NODE_TYPES.TSUnionType){let t=e.typeAnnotation.typeAnnotation.types;return 2===t.length&&t.some(e=>e.type===ih.AST_NODE_TYPES.TSBooleanKeyword)&&t.some(e=>e.type===ih.AST_NODE_TYPES.TSUndefinedKeyword)}return!1}(e)}(r)&&e.report({messageId:"provideDefault",data:{parameter:r.name},node:r})}})}),cn=ip.createRule({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!==ih.AST_NODE_TYPES.CallExpression&&1===r.arguments.length){let n=r.typeArguments??r.callee,u=(t.getLastTokenBetween(n,r.arguments[0],cu)??t.getLastToken(n)).loc.end.line,{start:a}=t.getTokenAfter(n,ca).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 cu(e){return e.type===ih.AST_TOKEN_TYPES.Punctuator&&")"===e.value}function ca(e){return!cu(e)}var ci=ip.createRule({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&&co.test(e.charAt(t-1)),a=n<=e.length-1&&co.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")}}}});const co=RegExp("\\p{Letter}","u"),cs=["Array","Map","Set","WeakSet","WeakMap"],cd=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 cl=ip.createRule({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===ih.TSESLint.Scope.DefinitionType.Parameter||e.type===ih.TSESLint.Scope.DefinitionType.ImportBinding))return;let r=[],n=!1;for(let e of t.references)if(e.isWriteOnly()){if(!function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.VariableDeclarator||e.type===ih.AST_NODE_TYPES.ExpressionStatement);if(t){if(t.type===ih.AST_NODE_TYPES.VariableDeclarator&&t.init)return ch(t.init);if(t.type===ih.AST_NODE_TYPES.ExpressionStatement){let{expression:r}=t;return r.type===ih.AST_NODE_TYPES.AssignmentExpression&&cp(e,r.left)&&ch(r.right)}}return!1}(e))return;n=!0}else{if(!(function(e){let{parent:t}=e.identifier;if(t&&t.type===ih.AST_NODE_TYPES.MemberExpression){let e=t.parent;if(e&&e.type===ih.AST_NODE_TYPES.CallExpression)return cm(t.property,...cd)}return!1}(e)||function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ForOfStatement||e.type===ih.AST_NODE_TYPES.ForInStatement);return t&&t.right===e.identifier}(e)||function(e){let{parent:t}=e.identifier;return t&&t.type===ih.AST_NODE_TYPES.MemberExpression&&t.computed&&!function(e){let t=cf(e,new Set),r=t.find(e=>e.type===ih.AST_NODE_TYPES.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!==ih.TSESLint.Scope.ScopeType.global&&e.variables.forEach(t),e.childScopes.forEach(r)};return{"Program:exit":t=>{r(e.sourceCode.getScope(t))}}}});function cc(e,t){return cf(e,new Set).find(t)}function cf(e,t){let r=[],n=e.parent;for(;n&&(r.push(n),!t.has(n.type));)n=n.parent;return r}function cp(e,t){return t.type===ih.AST_NODE_TYPES.Identifier&&t===e.identifier}function ch(e){return e&&e.type===ih.AST_NODE_TYPES.ArrayExpression?0===e.elements.length:!!e&&(e.type===ih.AST_NODE_TYPES.CallExpression||e.type===ih.AST_NODE_TYPES.NewExpression)&&cm(e.callee,...cs)&&0===e.arguments.length}function cm(e,...t){return e?.type===ih.AST_NODE_TYPES.Identifier&&(0===t.length||t.some(t=>t===e.name))}const cg=new Set(["!=","==","!==","==="]),cy=new Set(["!==","!="]),cb=new Set(["+=","-="]);var cE=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.BinaryExpression&&cg.has(n.operator)&&function e(t){return!!cx(t)||t.type===ih.AST_NODE_TYPES.UpdateExpression||t.type===ih.AST_NODE_TYPES.SequenceExpression&&t.expressions.every(e)}(r.update)&&!(function(e){let t=e.test,r=[];return function e(t,r){let n;cx(t)?n=t.left:t.type===ih.AST_NODE_TYPES.UpdateExpression?n=t.argument:t.type===ih.AST_NODE_TYPES.SequenceExpression&&t.expressions.forEach(t=>e(t,r)),n&&n.type===ih.AST_NODE_TYPES.Identifier&&r.push(n.name)}(e.update,r),t.left.type!==ih.AST_NODE_TYPES.Identifier||!r.includes(t.left.name)}(r)||function(e){let r=e.init,n=e.test;if(r&&cv(n)){let u=function(e,r){if(e.type===ih.AST_NODE_TYPES.UpdateExpression&&!t(e.argument,r)||function(e){if(cx(e)){let t=e.right;return t.type===ih.AST_NODE_TYPES.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=cS(r),t=cS(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 cx(e){return e.type===ih.AST_NODE_TYPES.AssignmentExpression&&cb.has(e.operator)}function cv(e){return e.type===ih.AST_NODE_TYPES.BinaryExpression&&cy.has(e.operator)}function cS(e){return cv(e)?cA(e.right):e.type===ih.AST_NODE_TYPES.VariableDeclaration&&1===e.declarations.length?cA(e.declarations[0].init):e.type===ih.AST_NODE_TYPES.AssignmentExpression?cA(e.right):void 0}function cA(e){if(e&&e.type===ih.AST_NODE_TYPES.Literal&&"number"==typeof e.value)return e.value}var cC=ip.createRule({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===ih.AST_NODE_TYPES.ClassDeclaration||e.type===ih.AST_NODE_TYPES.ClassExpression);if((r===ih.TSESLint.Scope.ScopeType.global||r===ih.TSESLint.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})}}})}),c_=ip.createRule({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?cT(r,t):void 0;if(void 0!==n)return e.slice(1).every(e=>cT(e,t)===n);if(r?.type===ih.AST_NODE_TYPES.Identifier){let n=cD(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 cD(e,t){let r=t.set.get(e);if(r&&!r.references.slice(1).some(e=>e.isWrite()||function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ExpressionStatement||ce.has(e.type));return t&&t.type===ih.AST_NODE_TYPES.ExpressionStatement&&(cw(t,e)||t.expression.type===ih.AST_NODE_TYPES.CallExpression)}(e))){let e=null;return 1===r.defs.length&&r.defs[0].type===ih.TSESLint.Scope.DefinitionType.Variable&&(e=r.defs[0].node.init),{variable:r,initExpression:e}}return null}function cw(e,t,r=!0){return e.expression.type===ih.AST_NODE_TYPES.AssignmentExpression&&function e(t,r,n=!0){return t.type===ih.AST_NODE_TYPES.MemberExpression&&(cp(r,t.object)||n&&e(t.object,r,n))}(e.expression.left,t,r)}function cT(e,t){if(e){if(e.type===ih.AST_NODE_TYPES.Literal)return e.value;if(e.type===ih.AST_NODE_TYPES.UnaryExpression){let r=cT(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===ih.AST_NODE_TYPES.Identifier){let r=cD(e.name,t);if(r?.initExpression)return cT(r.initExpression,t)}}}function cP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(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 cI extends Set{constructor(...e){super(...e),cP(this,"type","AssignedValues")}}const cF=e=>new cI([e]),cO={type:"UnknownValue"};class cB{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,cO);return}let n=cj(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 cI;"AssignedValues"===e.type&&"AssignedValues"===r.type?(r.forEach(t=>e.add(t)),this.in.set(t,e)):this.in.set(t,cO)}}constructor(e){cP(this,"segment",void 0),cP(this,"in",void 0),cP(this,"out",void 0),cP(this,"references",void 0),this.segment=e,this.in=new Map,this.out=new Map,this.references=new Set}}function cj(e,t,r,n){if(!t)return cO;switch(t.type){case ih.AST_NODE_TYPES.Literal:return t.raw?cF(t.raw):cO;case ih.AST_NODE_TYPES.Identifier:{let u=ck(t,n);if(u&&u!==e)return r.get(u)??cO;return cO}default:return cO}}class cN{constructor(e){cP(this,"codePath",void 0),cP(this,"reachingDefinitionsMap",void 0),cP(this,"reachingDefinitionsStack",void 0),cP(this,"segments",void 0),cP(this,"assignmentStack",void 0),this.codePath=e,this.reachingDefinitionsMap=new Map,this.reachingDefinitionsStack=[],this.segments=new Map,this.assignmentStack=[]}}class cL{isRhs(e){return this.node.type===ih.AST_NODE_TYPES.AssignmentExpression?this.node.right===e:this.node.init===e}isLhs(e){return this.node.type===ih.AST_NODE_TYPES.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){cP(this,"node",void 0),cP(this,"lhs",void 0),cP(this,"rhs",void 0),this.node=e,this.lhs=new Set,this.rhs=new Set}}function cR(e){return e[e.length-1]}var cM=ip.createRule({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===ih.AST_NODE_TYPES.TSEnumBody||r.parent.type===ih.AST_NODE_TYPES.TSEnumDeclaration||r.parent.type===ih.AST_NODE_TYPES.TSEnumMember||e.sourceCode.getAncestors(r).some(e=>e.type===ih.AST_NODE_TYPES.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&&d(u),a){let e=cR(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(s),r.clear(),n.clear(),t.length=0},onCodePathSegmentStart(e){r.set(e.id,new cB(e)),a.push(e)},onCodePathStart(e){var r;r=new cN(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=cR(t).assignmentStack.pop();e.rhs.forEach(d),e.lhs.forEach(d)}function o(e){cR(t).assignmentStack.push(new cL(e))}function s(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!==ih.AST_NODE_TYPES.Identifier||e.identifier.parent?.type!==ih.AST_NODE_TYPES.AssignmentPattern)&&!t.name.startsWith("_")&&!function(e){if(e?.parent){let t=e.parent;return t&&t.type===ih.AST_NODE_TYPES.AssignmentExpression&&"="!==t.operator}return!1}(e.writeExpr)&&(e.writeExpr?.type!==ih.AST_NODE_TYPES.Identifier||e.resolved!==ck(e.writeExpr,e.from))&&!t.defs.some(e=>e.type===ih.TSESLint.Scope.DefinitionType.Parameter||e.type===ih.TSESLint.Scope.DefinitionType.Variable&&!e.node.init)&&!(n.get(t).size>1)}(t))return;let a=r.get(u),i=cj(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 d(e){let{assignmentStack:n}=cR(t);if(n.length>0)cR(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 cB(e),r.set(e.id,t)),t})(a[t]).add(e)}}}),c$=ip.createRule({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===ih.AST_NODE_TYPES.IfStatement&&u&&u.type===ih.AST_NODE_TYPES.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)}}}),cU=ip.createRule({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})}}})});const cV=["Array","Map","Set","WeakSet","WeakMap"],cz=["copyWithin","fill","pop","push","reverse","set","shift","sort","splice","unshift","add","clear","delete"];var cq=ip.createRule({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!==ih.TSESLint.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=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.VariableDeclarator||e.type===ih.AST_NODE_TYPES.ExpressionStatement);if(t){if(t.type===ih.AST_NODE_TYPES.VariableDeclarator&&t.init)return cW(t.init);if(t.type===ih.AST_NODE_TYPES.ExpressionStatement){let{expression:r}=t;return r.type===ih.AST_NODE_TYPES.AssignmentExpression&&cp(e,r.left)&&cW(r.right)}}return!1}(r))return!1;t=!0}else if(function(e){let t=cc(e.identifier,e=>e.type===ih.AST_NODE_TYPES.ExpressionStatement);return!t||!(cw(t,e,!1)||function(e,t){if(e.expression.type===ih.AST_NODE_TYPES.CallExpression){let{callee:r}=e.expression;if(r.type===ih.AST_NODE_TYPES.MemberExpression){let{property:e,object:n}=r;return cp(t,n)&&cm(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 cW(e){return!!e&&e.type===ih.AST_NODE_TYPES.ArrayExpression||!!e&&(e.type===ih.AST_NODE_TYPES.CallExpression||e.type===ih.AST_NODE_TYPES.NewExpression)&&cm(e.callee,...cV)}var cY=ip.createRule({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===ih.AST_NODE_TYPES.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===ih.AST_NODE_TYPES.UpdateExpression&&!r.prefix){let n=e.left;n.type===ih.AST_NODE_TYPES.Identifier&&r.argument.type===ih.AST_NODE_TYPES.Identifier&&r.argument.name===n.name&&t(r)}}}}});const cG=new Set(["map","filter","reduce","reduceRight","forEach"]);var cZ=ip.createRule({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(cK(t)){let r=t.parent;cK(r.parent)&&e.report({node:r,messageId:"detected",data:{methods:`arr.${t.property.name}().${r.parent.property.name}()`}})}}})});function cK(e){return e.type===ih.AST_NODE_TYPES.MemberExpression&&!e.computed&&e.property.type===ih.AST_NODE_TYPES.Identifier&&!!(cG.has(e.property.name)&&e.parent.type===ih.AST_NODE_TYPES.CallExpression)}function cH(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||cJ(e)||cX(e,null!=t?t:t=cQ("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 cJ(t){return cX(t,null!=e?e:e=cQ("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 cX(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 cQ(e){let t=0;return e.split(" ").map(e=>t+=0|parseInt(e,36))}class c0{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(" "))}}const c1=new Set(["General_Category","gc"]),c2=new Set(["Script","Script_Extensions","sc","scx"]),c3=new c0("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","","","","","","",""),c4=new c0("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","",""),c5=new c0("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","","","",""),c8=new c0("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function c6(e,t,r){return c1.has(t)?e>=2018&&c3.es2018.has(r):!!c2.has(t)&&(e>=2018&&c4.es2018.has(r)||e>=2019&&c4.es2019.has(r)||e>=2020&&c4.es2020.has(r)||e>=2021&&c4.es2021.has(r)||e>=2022&&c4.es2022.has(r)||e>=2023&&c4.es2023.has(r))}function c9(e){return e>=65&&e<=90||e>=97&&e<=122}function c7(e){return e>=48&&e<=57}function fe(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ft(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function fr(e){return e>=55296&&e<=56319}function fn(e){return e>=56320&&e<=57343}function fu(e,t){return(e-55296)*1024+(t-56320)+65536}class fa{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 fi{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 fi(this,null)}sibling(){return new fi(this.parent,this.base)}}class fo{constructor(){this.branchID=new fi(null,null),this.groupNames=new Map}clear(){this.branchID=new fi(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])}}const fs={at:(e,t,r)=>r<t?e.charCodeAt(r):-1,width:e=>1},fd={at:(e,t,r)=>r<t?e.codePointAt(r):-1,width:e=>e>65535?2:1};class fl{constructor(){this._impl=fs,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?fd:fs,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 fc extends SyntaxError{constructor(e,t){super(e),this.index=t}}const ff=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),fp=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),fh=new Set([40,41,91,93,123,125,47,45,92,124]),fm=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),fg={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},fy=Object.fromEntries(Object.entries(fg).map(([e,t])=>[t,e]));function fb(e){return c9(e)||95===e}class fE{constructor(e){this._reader=new fl,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 fo:new fa}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 fc(`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(fg[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||ff.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&&(c7(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&&fp.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||!fp.has(r))&&-1!==r&&!fh.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,fm.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&&fr(u)&&fn(this.currentCodePoint)&&(u=fu(u,this.currentCodePoint),this.advance()),!((t=e=u)<65)&&(t<91||!(t<97)&&(t<123||cJ(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&&fr(n)&&fn(this.currentCodePoint)&&(n=fu(n,this.currentCodePoint),this.advance()),cH(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||c7(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!!c9(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(fr(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(fn(e))return this._lastIntValue=fu(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?ff.has(e)||47===e:this.strict?!cH(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(c6(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(c6(this.ecmaVersion,"General_Category",e))return{key:"General_Category",value:e||null};if((t=this.ecmaVersion)>=2018&&c5.es2018.has(e)||t>=2019&&c5.es2019.has(e)||t>=2021&&c5.es2021.has(e))return{key:e,value:null};if(this._unicodeSetsMode&&this.ecmaVersion>=2024&&c8.es2024.has(e))return{key:e,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";fb(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){var e;for(this._lastStrValue="";fb(e=this.currentCodePoint)||c7(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;c7(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;fe(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+ft(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(!fe(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+ft(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=fy[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}}const fx={},fv={},fS={};function fA(e){return"Character"===e.type||"CharacterSet"===e.type||"CharacterClass"===e.type||"ExpressionCharacterClass"===e.type||"ClassStringDisjunction"===e.type}class fC{constructor(e){var t;this._node=fx,this._expressionBufferMap=new Map,this._flags=fv,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:fS};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&&!fA(a)||!fA(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&&!fA(a)||!fA(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}}const f_=/^[!=]=/,fD=new class{constructor(e){this._state=new fC(e),this._validator=new fE(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 fw=ip.createRule({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){ip.ensureParserWithTypeInformation(e.sourceCode.parserServices);let t=e.sourceCode.parserServices,r=t.program.getTypeChecker(),n=e.sourceCode.scopeManager?.scopes[0];function u(e){let n=t.getTypeAtLocation(e);return"string"===ig.getTypeName(r,n)}function a(e,t){let r=ih.ASTUtils.getStaticValue(e,n);return null!=r&&r.value===t}function i(e){let t=ih.ASTUtils.getStaticValue(e,n);return null!=t&&"string"==typeof t.value&&t.value[0]===t.value}function o(t,r){if(t.type===ih.AST_NODE_TYPES.MemberExpression)return"length"===ih.ASTUtils.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=ih.ASTUtils.getStaticValue(t,n),a=ih.ASTUtils.getStaticValue(r,n);return null!=u&&null!=a&&"number"==typeof u.value&&"string"==typeof a.value&&u.value===a.value.length}function s(e,t,r){return e.type===ih.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,t)||e.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,r)&&o(e.right,t)}function d(t){return[e.sourceCode.getTokenAfter(t.object,ih.ASTUtils.isNotClosingParenToken).range[0],t.range[1]]}function l(e){let t=ih.ASTUtils.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=fD.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*c(e,t,r,n,u){let a=d(function e(t){let r;if(t.type===ih.AST_NODE_TYPES.ChainExpression)return e(t.expression);if((r=t.type===ih.AST_NODE_TYPES.CallExpression?t.callee:t).type!==ih.AST_NODE_TYPES.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*f(e,t,r,n,u,a,i){a&&(yield e.insertTextBefore(t,"!")),yield e.replaceTextRange(d(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,s;let d=fT(t),l=d.type===ih.AST_NODE_TYPES.CallExpression,f=null;if(d.type===ih.AST_NODE_TYPES.CallExpression?(1===d.arguments.length&&(f=d.arguments[0]),d=fT(d)):f=t.property,null==f||!fP(d)||!u(t.object))return;let p=(r=f,s=t.object,r.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===r.operator&&o(r.left,s)&&a(r.right,1)),h=!p&&a(f,0);if(!h&&!p)return;let m=d;h&&!l&&function(e){if(!i(e))return!1;let t=ih.ASTUtils.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)}(m.right)||e.report({node:d,messageId:h?"preferStartsWith":"preferEndsWith",fix:e=>i(m.right)?c(e,m,h?"start":"end",m.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=fT(t),n=fT(r);1===r.arguments.length&&fP(n)&&a(n.right,0)&&u(t.object)&&e.report({node:n,messageId:"preferStartsWith",fix:e=>f(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=fT(t),n=fT(r);1===r.arguments.length&&fP(n)&&n.right.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===n.right.operator&&o(n.right.left,t.object)&&o(n.right.right,r.arguments[0])&&u(t.object)&&e.report({node:n,messageId:"preferEndsWith",fix:e=>f(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=fT(t),a=fT(r);if(!fP(a)||!function(e){let t=ih.ASTUtils.getStaticValue(e,n);return null!=t&&null==t.value}(a.right)||!u(t.object))return;let i=1===r.arguments.length?l(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(d(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=fT(t),n=fT(r);if(!fP(n)||!u(t.object))return;let i=!1,d=!1;if(1===r.arguments.length?s(r.arguments[0],n.right,t.object)&&(i=!0):2===r.arguments.length&&(a(r.arguments[0],0)&&o(r.arguments[1],n.right)?d=!0:(o(r.arguments[1],t.object)||a(r.arguments[1],0))&&s(r.arguments[0],n.right,t.object)&&(i=!0)),!d&&!i)return;let l="slice"===t.property.name;e.report({node:n,messageId:d?"preferStartsWith":"preferEndsWith",fix(e){if(2===n.operator.length&&(n.right.type!==ih.AST_NODE_TYPES.Literal||"string"!=typeof n.right.value))return null;if(d){if(!o(r.arguments[1],n.right))return null}else{let e=r.arguments[0];if(!(e.type===ih.AST_NODE_TYPES.BinaryExpression&&"-"===e.operator&&o(e.left,t.object)&&o(e.right,n.right)||l&&e.type===ih.AST_NODE_TYPES.UnaryExpression&&"-"===e.operator&&o(e.argument,n.right)))return null}return c(e,n,d?"start":"end",n.operator.startsWith("!"),t.optional)}})},'CallExpression > MemberExpression.callee[property.name="test"][computed=false]':function(t){let r=fT(t),n=1===r.arguments.length?l(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!==ih.AST_NODE_TYPES.Literal&&n.type!==ih.AST_NODE_TYPES.TemplateLiteral&&n.type!==ih.AST_NODE_TYPES.Identifier&&n.type!==ih.AST_NODE_TYPES.MemberExpression&&n.type!==ih.AST_NODE_TYPES.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 fT(e){return ih.ESLintUtils.nullThrows(e.parent?.type===ih.AST_NODE_TYPES.ChainExpression?e.parent.parent:e.parent,ih.ESLintUtils.NullThrowsReasons.MissingParent)}function fP(e){return e.type===ih.AST_NODE_TYPES.BinaryExpression&&f_.test(e.operator)}var fk=ip.createRule({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=ih.ASTUtils.findVariable(e.sourceCode.getScope(t),r);n?.defs.forEach(r=>{r.node.type===ih.AST_NODE_TYPES.TSEnumDeclaration&&r.node.const&&e.report({node:t,messageId:"noConstEnum"})})};return{ExportNamedDeclaration(r){let n=r.declaration;if(n?.type===ih.AST_NODE_TYPES.TSEnumDeclaration&&n.const){e.report({node:r,messageId:"noConstEnum"});return}if(n?.type===ih.AST_NODE_TYPES.VariableDeclaration){let e=n.declarations[0].id;e.type===ih.AST_NODE_TYPES.Identifier&&t(r,e)}},ExportDefaultDeclaration(e){let r=e.declaration;r.type===ih.AST_NODE_TYPES.Identifier&&t(e,r)}}}}),fI=ip.createRule({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 ip.ensureParserWithTypeInformation(t),e.symbol&&fO.has(e.symbol.name)||((r=e).flags&im.TypeFlags.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){ip.ensureParserWithTypeInformation(t);let u=fF(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 fF(e,t){return t.program.getTypeChecker().getTypeAtLocation(t.esTreeNodeToTSNodeMap.get(e))}const fO=new Set(["Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","Set","Map"]);var fB=ip.createRule({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 ip.ensureParserWithTypeInformation(t),{AwaitExpression(r){let n=fF(r.argument,t);(function(e,t){var r;if(e.argument.type!==ih.AST_NODE_TYPES.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===im.SyntaxKind.MethodSignature||e.kind===im.SyntaxKind.MethodDeclaration||e.kind===im.SyntaxKind.PropertyDeclaration)}(n)||n.flags&im.TypeFlags.Any||n.flags&im.TypeFlags.Unknown||n.flags&im.TypeFlags.Union||e.report({messageId:"refactorAwait",node:r})}}}}),fj=ip.createRule({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 ip.ensureParserWithTypeInformation(t),{CallExpression(r){let{arguments:n}=r;if(0===n.length)return;let u=n[n.length-1];u.type===ih.AST_NODE_TYPES.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&&fN.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])}}]})}}}});const fN=new Set([im.SyntaxKind.FunctionDeclaration,im.SyntaxKind.FunctionExpression,im.SyntaxKind.ArrowFunction,im.SyntaxKind.MethodDeclaration,im.SyntaxKind.Constructor,im.SyntaxKind.GetAccessor,im.SyntaxKind.SetAccessor]);function fL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class fR{visit(e,t){let r=e=>{switch(e.type){case ih.AST_NODE_TYPES.AwaitExpression:case ih.AST_NODE_TYPES.CallExpression:case ih.AST_NODE_TYPES.NewExpression:this.callLikeExpressions.push(e);break;case ih.AST_NODE_TYPES.FunctionDeclaration:case ih.AST_NODE_TYPES.FunctionExpression:case ih.AST_NODE_TYPES.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(){fL(this,"callLikeExpressions",[])}}fL(fR,"getCallExpressions",(e,t)=>{let r=new fR;return r.visit(e,t),r.callLikeExpressions});var fM={rules:{"array/no-unneeded-flat-map":iz,"browser/prefer-location-assign":iW,"jsx/no-template-literal":iG,"jsx/no-unneeded-nested":iZ,"string/no-locale-case":iH,"string/no-simple-template-literal":iX,"type/no-instanceof-wrapper":i0,"unicode/no-bidi":i6,"unicode/no-invisible":i7,"ban-eslint-disable":lU,"no-redundant-variable":oe,"no-single-return":or,"prefer-early-return":ou,"prefer-fetch":oa,"prefer-timer-id":os,"no-return-await":lV,"no-expression-empty-lines":lW,"object-format":lG,"prefer-single-boolean-return":lK,"no-all-duplicated-branches":l0,"no-duplicated-branches":l0,"bool-param-default":cr,"call-argument-line":cn,"class-prototype":l9,"comma-or-logical-or-case":l4,"track-todo-fixme-comment":ci,"no-element-overwrite":l5,"no-empty-collection":cl,"no-equals-in-for-termination":cE,"no-top-level-this":cC,"no-invariant-returns":c_,"no-redundant-assignments":cM,"no-same-line-conditional":c$,"no-small-switch":cU,"no-unused-collection":cq,"no-useless-plusplus":cY,"no-chain-array-higher-order-functions":cZ,"string/prefer-string-starts-ends-with":fw,"string/no-unneeded-to-string":od,"type/no-force-cast-via-top-type":ol,"type/no-wrapper-type-reference":of,"no-default-error":op,"no-export-const-enum":fk,"no-for-in-iterable":fI,"only-await-thenable":fB,"no-undefined-optional-parameters":fj,"no-try-promise":ip.createRule({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 ip.ensureParserWithTypeInformation(t),{TryStatement(r){if(r.handler){let n=[],u=[],a=!1;fR.getCallExpressions(r.block,e).forEach(e=>{if(e.type===ih.AST_NODE_TYPES.AwaitExpression||!function(e,t){let r=t.esTreeNodeToTSNodeMap.get(e),n=t.program.getTypeChecker().getTypeAtLocation(r).getProperty("then");return!!(n&&n.flags&im.SymbolFlags.Method)}(e,t)){a=!0;return}!(e.parent&&(e.parent.type===ih.AST_NODE_TYPES.AwaitExpression||e.parent.type===ih.AST_NODE_TYPES.YieldExpression)||e.parent&&e.parent.type===ih.AST_NODE_TYPES.MemberExpression&&e.parent.property.type===ih.AST_NODE_TYPES.Identifier&&"then"===e.parent.property.name||e.type===ih.AST_NODE_TYPES.CallExpression&&e.callee.type===ih.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===ih.AST_NODE_TYPES.Identifier&&"catch"===e.callee.property.name)&&(e.parent&&e.parent.type===ih.AST_NODE_TYPES.MemberExpression&&e.parent.property.type===ih.AST_NODE_TYPES.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":ip.createRule({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(ip.ensureParserWithTypeInformation(t),(fF(n,t).flags&iv.TypeFlags.StringLike)!=0&&u.type===ih.AST_NODE_TYPES.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":dB,"unicorn/catch-error-name":lT,"unicorn/custom-error-definition":lk,"unicorn/no-nested-ternary":sp,"unicorn/prefer-event-target":sq,"unicorn/prefer-keyboard-event-key":sW,"unicorn/prefer-text-content":sY,"unicorn/require-array-join-separator":s1,"unicorn/no-thenable":s2,"unicorn/no-invalid-remove-event-listener":s3,"unicorn/consistent-function-scoping":s4,"unicorn/no-new-buffer":s5,"unicorn/no-console-spaces":s8,"unicorn/no-empty-file":s6,"unicorn/no-useless-fallback-in-spread":s9,"unicorn/no-useless-length-check":s7,"unicorn/no-useless-promise-resolve-reject":de,"unicorn/no-zero-fractions":dt,"unicorn/prefer-export-from":dr,"unicorn/prefer-native-coercion-functions":dn,"unicorn/no-document-cookie":da,"unicorn/prefer-add-event-listener":di,"unicorn/prefer-array-index-of":ds,"unicorn/prefer-blob-reading-methods":dd,"unicorn/prefer-date-now":dl,"unicorn/prefer-dom-node-dataset":dc,"unicorn/prefer-modern-math-apis":df,"unicorn/number-literal-case":dm,"unicorn/prefer-number-properties":dg,"unicorn/prefer-reflect-apply":dy,"unicorn/prefer-set-size":db,"unicorn/prefer-string-replace-all":dx,"unicorn/prefer-string-slice":dv,"unicorn/prefer-string-trim-start-end":dS,"unicorn/no-unreadable-iife":dA,"unicorn/throw-new-error":dC,"unicorn/escape-case":dj,"unicorn/no-hex-escape":dN,"unicorn/prefer-prototype-methods":dL,"unicorn/error-message":dR,"unicorn/no-instanceof-array":dM,"unicorn/prefer-type-error":d$,"unicorn/consistent-destructuring":dU,"unicorn/new-for-builtins":dz,"unicorn/no-array-push-push":dq,"unicorn/no-process-exit":dW,"unicorn/no-static-only-class":dZ,"unicorn/no-unreadable-array-destructuring":dK,"unicorn/no-useless-spread":dH,"unicorn/no-useless-switch-case":dJ,"unicorn/no-useless-undefined":dX,"unicorn/numeric-separators-style":dQ,"unicorn/prefer-array-find":d0,"unicorn/prefer-array-flat-map":d1,"unicorn/prefer-array-flat":d2,"unicorn/prefer-array-some":d3,"unicorn/prefer-code-point":d4,"unicorn/prefer-default-parameters":d5,"unicorn/prefer-logical-operator-over-ternary":d8,"unicorn/prefer-optional-catch-binding":d6,"unicorn/prefer-regexp-test":d9,"unicorn/prefer-set-has":d7,"unicorn/prefer-string-raw":le,"unicorn/prefer-switch":lt,"unicorn/require-number-to-fixed-digits-argument":lr,"unicorn/template-indent":lC,"unicorn/no-single-promise-in-promise-methods":dY,"unicorn/no-await-in-promise-methods":l_,"unicorn/no-negation-in-equality-check":lD,"unicorn/no-length-as-slice-end":lw,"unicorn/no-lonely-if":lI,"unicorn/no-magic-array-flat-depth":lF,"unicorn/no-negated-condition":lO,"unicorn/no-object-as-default-parameter":lB,"unicorn/prefer-negative-index":lj,"unicorn/prefer-node-protocol":lL}).reduce((e,[t,r])=>{var n;return e[t]={...r,meta:{schema:[],...r.meta,docs:{description:"",...r.meta.docs,url:iT(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=iF(r.fix)),iP(r.suggest))for(let e of r.suggest)"fix"in e&&"function"==typeof e.fix&&(e.fix=iF(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})},e},{})}};module.exports=fM;