@eslint-sukka/eslint-plugin-sukka-full 8.9.0 → 8.9.2
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 +16 -18
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
"use strict";let e,t;var r,u,n,a,i,o,s,d,l,c,f,p,m,g,y,h,b,D,x,v,E,A,C,S,F,w,k,T,_,I,B,P,R,L,j,O,N,$,M,z,U,q,W,V,Z,G,H,J,K,X,Y,Q,ee,et,er,eu,en,ea,ei,eo,es,ed,el,ec,ef,ep,em,eg,ey,eh,eb,eD,ex,ev,eE,eA,eC,eS,eF,ew,ek,eT,e_,eI,eB,eP,eR,eL,ej,eO,eN,e$,eM,ez,eU,eq,eW,eV,eZ,eG,eH,eJ=require("eslint-plugin-sukka"),eK=require("node:assert/strict"),eX=require("node:util/types"),eY=require("node:path");function eQ(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 e0(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function e1(e){return e?.type==="MemberExpression"}function e3(e){return e?.type==="AwaitExpression"}function e2(e,t){return!!e0(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function e4(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 e5(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function e8(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function e6({create:e,defaultOptions:t,meta:r,name:u}){return r.docs&&!r.docs.url&&(r.docs.url=new URL(u,"https://dimensiondev.github.io/eslint-plugin/src/rules/").href),{create(r){var u,n;let a,i=(u=t,n=r.options,a=structuredClone(u),null==n||a.forEach((e,t)=>{if(void 0!==n[t]){let r=n[t];"object"!=typeof r||Array.isArray(r)||"object"!=typeof e||Array.isArray(e)?a[t]=r:a[t]=function e(t={},r={}){return Object.fromEntries([...new Set([...Object.keys(t),...Object.keys(r)])].map(u=>{let n=u in t,a=u in r,i=t[u],o=r[u];return[u,n&&a?"object"!=typeof i||Array.isArray(i)||"object"!=typeof o||Array.isArray(o)?o:e(i,o):n?i:o]}))}(e,r)}}),a);return e(r,i)},defaultOptions:t,meta:r,name:u}}function e9(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var e7=e6({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"}},defaultOptions:[],create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!e2(t.callee.property,"flatMap")||!(e5(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(e8(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&e8(r.params[0],r.body.body[0].argument))))return;let{property:u}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(u,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let te=new Set(["href","pathname","search","hash","origin"]);var tt=e6({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}}`"}},defaultOptions:[],create:e=>({AssignmentExpression(t){let r=function(e,t){if(e2(e,t))return e;for(;e1(e);){if(e2(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let u=tr(r.parent);e.report({node:t,messageId:"instead",data:{name:u},fix:function(e,t,r){let u=tr(t.parent);if(te.has(u??"href"))return u=>u.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function tr(e){if(e1(e)&&e0(e.property))return e.property.name}var tu=e6({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"}},defaultOptions:[],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(u){let n=[...r.expressions,...r.quasis];n.sort((e,t)=>e.range[0]-t.range[0]);let a=n.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return u.replaceText(t,a.join(""))}})}})}),tn=e6({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"}},defaultOptions:[],create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let u=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===u.type?"JSXEmptyExpression"!==u.expression.type&&(yield e.replaceText(r,t.getText(u.expression))):yield e.replaceText(r,t.getText(u))}})}}}});let ta=/^toLocale(?<name>Upper|Lower)Case$/g;var ti=e6({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()`"}},defaultOptions:[],create:e=>({CallExpression(t){if(t.arguments.length>0||!e1(t.callee)||!e0(t.callee.property))return;let{property:r}=t.callee,u=ta.exec(r.name);u&&e.report({node:t,data:{name:u.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})}),to=e6({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"}},defaultOptions:[],create:e=>({TemplateLiteral(t){var r,u,n,a;let i=(r=e.sourceCode,(n=u=t,n.parent?.type!=="TaggedTemplateExpression"&&1===n.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(n.quasis[0])&&0===n.expressions.length)?e=>{let t=JSON.stringify(u.quasis[0].value.cooked),n=eQ(u,e=>"Property"===e.type&&e.key===u);return n?e.replaceText(n,`${t}: ${r.getText(n.value)}`):e.replaceText(u,t)}:2===(a=u).quasis.length&&a.quasis.every(({value:e})=>""===e.cooked)&&1===a.expressions.length?e=>e.replaceText(u,r.getText(u.expressions[0])):void 0);i&&e.report({node:t,messageId:"invalid",fix:i})}})});let ts=/\P{ASCII}/u;function td(e,t){return{Program(r){for(let u 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"PrivateIdentifier":case"JSXText":case"JSXIdentifier":return e.value;case"RegularExpression":return e.regex.pattern}return!1}(u);!1!==r&&e.test(r)&&t(u,"code")}for(let u of r.comments??[])e.test(u.value)&&t(u,"comment")}}}function tl(e,t){switch(e.type){case"String":case"Template":return r=>{let u=e.value.slice(0,1),n=e.value.slice(-1),a=tc(e.value.slice(1,-1),t);return r.replaceText(e,`${u}${a}${n}`)};case"JSXText":return r=>{let u=e.value.replace(t,e=>`&#x${tf(e.codePointAt(0))};`);return r.replaceText(e,u)};case"RegularExpression":return r=>{let u=new Set(e.regex.flags);u.add("u");let n=new RegExp(tc(e.regex.pattern,t),[...u].join(""));return r.replaceText(e,n.toString())}}}function tc(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${tf(t)}}`:`\\u${tf(t)}`})}function tf(e){return e.toString(16).padStart(4,"0").toUpperCase()}e6({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"}},defaultOptions:[{pattern:ts.source,flags:"u",only:void 0}],create(e,[{pattern:t,flags:r,only:u}]){let n=t?new RegExp(t,r):ts;return td(n,(t,r)=>{if(u&&u!==r)return;let a=tl(t,RegExp(n.source,"gu"));e.report({node:t,messageId:"illegal",fix:a})})}});let tp=/[\u061C\u202A-\u202E\u2066-\u2069]/;var tm=e6({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}}."}},defaultOptions:[],create:e=>td(tp,(t,r)=>{let u=RegExp(tp.source,"gu"),n={kind:r,text:tc(t.value,u)},a=tl(t,u);e.report({node:t,data:n,messageId:"detected",fix:a})})});let tg=(t=[/\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(""),RegExp(`[${t}]`,"u"));var ty=e6({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},defaultOptions:[],create:e=>td(tg,t=>{let r=tl(t,RegExp(tg.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),th=e6({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},defaultOptions:[],create:e=>({BlockStatement({body:t}){var r,u,n,a,i;let o=t.find(tb);if(!o)return;let s=t[t.indexOf(o)-1];r=s,u=o,r&&"VariableDeclaration"===r.type&&1===r.declarations.length&&r.declarations.some(({init:e,id:t})=>null!==e&&e8(u.argument,t))&&e.report({node:o,messageId:"invalid",fix:(n=e.sourceCode,a=s,i=o,e=>{var t;let{init:r,id:u}=a.declarations[0];if(!(r&&u&&i.argument))return null;let o=!e3(t=r)||eQ(t,"TryStatement")?t:t.argument,s=(e=>{if(!u.typeAnnotation)return e;let t=n.getText(u.typeAnnotation.typeAnnotation);return`(${e}) as ${e3(r)?`Promise<${t}>`:t}`})(n.getText(o));return[e.remove(a),e.replaceText(i.argument,s)]})})}})});function tb(e){return"ReturnStatement"===e.type&&e0(e.argument)}var tD=e6({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},defaultOptions:[],create:e=>({BlockStatement({parent:t,body:r}){if(!e5(t))return;let u=function(e,t){let r=t.find(tx);if(!r)return;let u=t.find(e=>{var t,u;return t=e,u=r,"VariableDeclaration"===t.type&&"const"!==t.kind&&t.declarations.some(({id:e})=>e8(u.argument,e))});if(u)return e.sourceCode.getDeclaredVariables(u).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of u?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function tx(e){return"ReturnStatement"===e.type&&e0(e.argument)}var tv=e6({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"}},defaultOptions:[{maximumStatements:0}],create:(e,[{maximumStatements:t}])=>({BlockStatement:function({body:r,parent:u}){var n,a;if(!e5(u)||!(1===r.length&&function(e,t){if("IfStatement"!==e.type||null!==e.alternate)return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let i=(n=e,a=r[0],function*(e){var t;let r;if("IfStatement"!==a.type)return;let{test:u,consequent:i}=a;yield e.insertTextBefore(u,"!("),yield e.insertTextAfter(u,")"),yield e.replaceText(i,"return;");let o=(t=n.sourceCode.getText(i),r=t,"BlockStatement"===i.type?r.slice(1,-1):r);yield e.insertTextAfter(a,o)});e.report({node:r[0],messageId:"prefer",fix:i})}})}),tE=e6({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},defaultOptions:[],create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){var r;((function({callee:e}){return e2(e,"XMLHttpRequest")})(t)||e2((r=t).callee,"ActiveXObject")&&e4(r.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return e2(e,t)||e1(e)&&e2(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return e2(e,r)&&e1(t)&&e2(t.property,"load")||e1(e)&&e2(e.object,r)&&e2(e.property,["ajax","get","post","getJSON","getScript"])}(t)||tA(t,"axios")||tA(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function tA(e,t){return e2(e.callee,"require")&&e4(e.arguments[0],t)}let tC=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var tS=e6({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},defaultOptions:[],create:e=>({CallExpression(t){"Identifier"!==t.callee.type||!tC.has(t.callee.name)||function(e){if(!e2(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||e4(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 = ")}]})}})}),tF=e6({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"}},defaultOptions:[],create(e){e9(e.sourceCode.parserServices);let{program:t,esTreeNodeToTSNodeMap:r}=e.sourceCode.parserServices,u=t.getTypeChecker();return{CallExpression(t){if("MemberExpression"!==t.callee.type)return;let{object:n,property:a}=t.callee;(e2(a,"toString")||e4(a,"toString"))&&function(e,t){let r=e.getTypeAtLocation(t);if(r.isStringLiteral()||"string"===e.typeToString(r))return!0;let u=r.getSymbol();return u&&"String"===e.symbolToString(u)}(u,r.get(n))&&e.report({node:a,messageId:"invalid",fix:r=>r.replaceText(t,e.sourceCode.getText(n))})}}}}),tw=e6({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`"}},defaultOptions:[],create:e=>({TSAsExpression(t){var r,u;if("TSAnyKeyword"!==(r=t.typeAnnotation).type&&"TSUnknownKeyword"!==r.type||!((u=t.parent)&&"TSAsExpression"===u.type&&"TSTypeReference"===u.typeAnnotation.type))return;let n="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:n}})}})});let tk=new Set(["BigInt","Boolean","Number","String","Symbol"]);var tT=e6({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"}},defaultOptions:[],create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!tk.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)})}})}),t_=e6({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"}},defaultOptions:[],create(e){e9(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,u=r.getTypeChecker();function n(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let u=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(u)}(u,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&n(e.argument)},NewExpression:n,CallExpression:n}}});let tI={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(tI))Object.freeze(tI[e]);Object.freeze(tI);let tB=new Set(["parent","leadingComments","trailingComments"]);function tP(e){return!tB.has(e)&&"_"!==e[0]}function tR(e,t){let r="",u=e;for("string"==typeof t?r=t:(r=t.name,u=function(e,t){let r=t.range[0],u=e,n=!1;do for(let e of(n=!1,u.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){u=e,n=!0;break}}while(n);return u}(u,t));null!=u;){let e=u.set.get(r);if(null!=e)return e;u=u.upper}return null}function tL(e,t){return"Punctuator"===e.type&&e.value===t}function tj(e){return tL(e,"=>")}function tO(e){return tL(e,",")}function tN(e){return tL(e,";")}function t$(e){return tL(e,":")}function tM(e){return tL(e,"(")}function tz(e){return tL(e,")")}function tU(e){return tL(e,"{")}let tq=e=>!tN(e);function tW(e,t){let r=e.parent,u=null,n=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,tj);u=r.loc.start,n=r.loc.end}else{var a,i;u=r&&("Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type)?r.loc.start:e.loc.start,n=(a=e,i=t,a.id?i.getTokenAfter(a.id,tM):i.getFirstToken(a,tM)).loc.start}return{start:{...u},end:{...n}}}let tV="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},tZ=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"])),tG=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)),tH=new Set([Object.freeze,Object.preventExtensions,Object.seal]),tJ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function tK(e,t){let r=[];for(let u=0;u<e.length;++u){let n=e[u];if(null==n)r.length=u+1;else if("SpreadElement"===n.type){let e=tY(n.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=tY(n,t);if(null==e)return null;r.push(e.value)}}return r}let tX=Object.freeze({ArrayExpression(e,t){let r=tK(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?tY(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=tY(e.left,t),u=tY(e.right,t);if(null!=r&&null!=u)switch(e.operator){case"==":return{value:r.value==u.value};case"!=":return{value:r.value!=u.value};case"===":return{value:r.value===u.value};case"!==":return{value:r.value!==u.value};case"<":return{value:r.value<u.value};case"<=":return{value:r.value<=u.value};case">":return{value:r.value>u.value};case">=":return{value:r.value>=u.value};case"<<":return{value:r.value<<u.value};case">>":return{value:r.value>>u.value};case">>>":return{value:r.value>>>u.value};case"+":return{value:r.value+u.value};case"-":return{value:r.value-u.value};case"*":return{value:r.value*u.value};case"/":return{value:r.value/u.value};case"%":return{value:r.value%u.value};case"**":return{value:r.value**u.value};case"|":return{value:r.value|u.value};case"^":return{value:r.value^u.value};case"&":return{value:r.value&u.value}}return null},CallExpression(e,t){let r=e.callee,u=tK(e.arguments,t);if(null!=u)if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let n=tY(r.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let a=tQ(r,t);if(null!=a){let e=n.value,t=a.value;if(tG.has(e[t]))return{value:e[t](...u)};if(tH.has(e[t]))return{value:u[0]}}}}else{let n=tY(r,t);if(null!=n){if(null==n.value&&e.optional)return{value:void 0,optional:!0};let t=n.value;if(tG.has(t))return{value:t(...u)};if(tH.has(t))return{value:u[0]}}}return null},ConditionalExpression(e,t){let r=tY(e.test,t);return null!=r?r.value?tY(e.consequent,t):tY(e.alternate,t):null},ExpressionStatement:(e,t)=>tY(e.expression,t),Identifier(e,t){if(null!=t){let r=tR(t,e);if(null!=r){if(null!=r&&0===r.defs.length&&tZ.has(r.name)&&r.name in tV)return{value:tV[r.name]};if(function(e){let t,r,u;if(1!==e.defs.length)return!1;let n=e.defs[0];return!!(n.parent&&"Variable"===n.type&&("const"===n.parent.kind||(r=(t=e.references).filter(e=>e.init).length,u=t.filter(e=>e.isReadOnly()).length,1===r&&u+r===t.length)))}(r)){let e=r.defs[0];if("Identifier"===e.node.id.type){let u=tY(e.node.init,t);return u&&"object"==typeof u.value&&null!==u.value&&function(e,t){for(let r of e.references){let e=r.identifier;for(;e&&e.parent&&"MemberExpression"===e.parent.type;)e=e.parent;if(e&&e.parent&&("AssignmentExpression"===e.parent.type&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"CallExpression"===e.parent.type&&e.parent.callee===e&&"MemberExpression"===e.type&&function(e){if(null==e||null==e.value)return!1;let t=e.value;return"copyWithin"===t||"fill"===t||"pop"===t||"push"===t||"reverse"===t||"shift"===t||"sort"===t||"splice"===t||"unshift"===t}(tQ(e,t))))return!0}return!1}(r,t)?null:u}}}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=tY(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 u=tY(e.right,t);if(null!=u)return u}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=tY(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let u=tQ(e,t);if(null!=u){let e;if(null==(e=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}(r.value,u.value))||null==e.get)return{value:r.value[u.value]};for(let[e,t]of tJ)if(r.value instanceof e&&t.has(u.value))return{value:r.value[u.value]}}}return null},ChainExpression(e,t){let r=tY(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=tY(e.callee,t),u=tK(e.arguments,t);if(null!=r&&null!=u){let e=r.value;if(tG.has(e))return{value:new e(...u)}}return null},ObjectExpression(e,t){let r={};for(let u of e.properties)if("Property"===u.type){if("init"!==u.kind)return null;let e=tQ(u,t),n=tY(u.value,t);if(null==e||null==n)return null;r[e.value]=n.value}else{if("SpreadElement"!==u.type&&"ExperimentalSpreadProperty"!==u.type)return null;let e=tY(u.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>tY(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=tY(e.tag,t),u=tK(e.quasi.expressions,t);if(null!=r&&null!=u){let t=r.value,n=e.quasi.quasis.map(e=>e.value.cooked);if(n.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(n,...u)}}return null},TemplateLiteral(e,t){let r=tK(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let u=0;u<r.length;++u)t+=r[u],t+=e.quasis[u+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=tY(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},TSAsExpression:(e,t)=>tY(e.expression,t),TSSatisfiesExpression:(e,t)=>tY(e.expression,t),TSTypeAssertion:(e,t)=>tY(e.expression,t),TSNonNullExpression:(e,t)=>tY(e.expression,t),TSInstantiationExpression:(e,t)=>tY(e.expression,t)});function tY(e,t){return null!=e&&Object.hasOwnProperty.call(tX,e.type)?tX[e.type](e,t):null}function tQ(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?tY(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function t0(e,t=null){try{return tY(e,t)}catch(e){return null}}function t1(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=t0(e,t);if(r)try{return String(r.value)}catch{}return null}function t3(e,t){switch(e.type){case"MemberExpression":if(e.computed)return t1(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return t1(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 t2(e,t){let r=e.parent;if(!r)return"";let u=[],n="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&&u.push("static"),"PrivateIdentifier"===r.key.type&&u.push("private")),e.async&&u.push("async"),e.generator&&u.push("generator"),n||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?u.push("getter"):"set"===r.kind?u.push("setter"):u.push("method")}else i?u.push("method"):("ArrowFunctionExpression"===e.type&&u.push("arrow"),u.push("function"));if(n||a||i)if("PrivateIdentifier"===r.key.type)u.push(`#${r.key.name}`);else{let e=t3(r);if(e)u.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||u.push(`[${e}]`)}}else e.id?u.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?u.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?u.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&u.push("'default'");return u.join(" ")}let t4=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),t5=Object.freeze(new Set(["-","+","!","~"]));function t8(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let t6=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:u}=e;return"function"==typeof this[u]?this[u](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:u}=e;for(let n of r[u]||Object.keys(e).filter(tP)){let u=e[n];if(Array.isArray(u)){for(let e of u)if(t8(e)&&this.$visit(e,t,r))return!0}else if(t8(u)&&this.$visit(u,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&t4.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&&t5.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function t9(e,t,r={}){let{considerGetters:u=!1,considerImplicitTypeConversion:n=!1}=r;return t6.$visit(e,{considerGetters:u,considerImplicitTypeConversion:n},t.visitorKeys||tI)}function t7(e,t,r){let u,n,a,i,o;if("number"==typeof e){if(u=0|e,n=t,a=r,!(u>=1))throw TypeError("'times' should be a positive integer.")}else u=1,n=e,a=t;if(null==n||null==n.parent||"CatchClause"===n.parent.type&&n.parent.param===n)return!1;i=o=n;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&tM(i)&&tz(o)&&i!==function(e,t){let r=e.parent;if(!r)return null;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.typeArguments||r.typeParameters||r.callee,tM);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,tM);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}}(n,a)&&--u>0);return 0===u}let re=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,rt=Function.call.bind(Object.hasOwnProperty),rr=Symbol("read"),ru=Symbol("call"),rn=Symbol("construct"),ra=Symbol("esm"),ri={require:{[ru]:!0}};function ro(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class rs{constructor(e,t={}){let{mode:r="strict",globalObjectNames:u=["global","globalThis","self","window"]}=t;this.variableStack=[],this.globalScope=e,this.mode=r,this.globalObjectNames=u.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],u=[t],n=this.globalScope.set.get(t);ro(n)||(yield*this._iterateVariableReferences(n,u,r,!0))}for(let t of this.globalObjectNames){let r=[],u=this.globalScope.set.get(t);ro(u)||(yield*this._iterateVariableReferences(u,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(ri)){let r=t1(t.arguments[0]);if(null==r||!rt(e,r))continue;let u=e[r],n=[r];u[rr]&&(yield{node:t,path:n,type:rr,info:u[rr]}),yield*this._iteratePropertyReferences(t,n,u)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!re.test(t.type)||null==t.source)continue;let r=t.source.value;if(!rt(e,r))continue;let u=e[r],n=[r];if(u[rr]&&(yield{node:t,path:n,type:rr,info:u[rr]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(u)){let r=u[e];r[rr]&&(yield{node:t,path:n.concat(e),type:rr,info:r[rr]})}else for(let e of t.specifiers){let t=rt(u,ra),r=this._iterateImportReferences(e,n,t?u:"legacy"===this.mode?{default:u,...u}:{default:u});if(t)yield*r;else for(let e of r)e.path=e.path.filter(rd),(e.path.length>=2||e.type!==rr)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_iterateVariableReferences(e,t,r,u){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let n of e.references){if(!n.isRead())continue;let e=n.identifier;u&&r[rr]&&(yield{node:e,path:t,type:rr,info:r[rr]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let u=e;for(;function(e){let t=e.parent;if(t)switch(t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e}return!1}(u);)u=u.parent;let n=u.parent;if(n){if("MemberExpression"===n.type){if(n.object===u){let e=t3(n);if(null==e||!rt(r,e))return;t=t.concat(e);let u=r[e];u[rr]&&(yield{node:n,path:t,type:rr,info:u[rr]}),yield*this._iteratePropertyReferences(n,t,u)}return}if("CallExpression"===n.type){n.callee===u&&r[ru]&&(yield{node:n,path:t,type:ru,info:r[ru]});return}if("NewExpression"===n.type){n.callee===u&&r[rn]&&(yield{node:n,path:t,type:rn,info:r[rn]});return}if("AssignmentExpression"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r),yield*this._iteratePropertyReferences(n,t,r));return}if("AssignmentPattern"===n.type){n.right===u&&(yield*this._iterateLhsReferences(n.left,t,r));return}"VariableDeclarator"===n.type&&n.init===u&&(yield*this._iterateLhsReferences(n.id,t,r))}}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let u=tR(this.globalScope,e);null!=u&&(yield*this._iterateVariableReferences(u,t,r,!1));return}if("ObjectPattern"===e.type){for(let u of e.properties){let e=t3(u);if(null==e||!rt(r,e))continue;let n=t.concat(e),a=r[e];a[rr]&&(yield{node:u,path:n,type:rr,info:a[rr]}),yield*this._iterateLhsReferences(u.value,n,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let u=e.type;if("ImportSpecifier"===u||"ImportDefaultSpecifier"===u){let n="ImportDefaultSpecifier"===u?"default":"Identifier"===e.imported.type?e.imported.name:e.imported.value;if(!rt(r,n))return;t=t.concat(n);let a=r[n];a[rr]&&(yield{node:e,path:t,type:rr,info:a[rr]}),yield*this._iterateVariableReferences(tR(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===u)return void(yield*this._iterateVariableReferences(tR(this.globalScope,e.local),t,r,!1));if("ExportSpecifier"===u){let u="Identifier"===e.local.type?e.local.name:e.local.value;if(!rt(r,u))return;t=t.concat(u);let n=r[u];n[rr]&&(yield{node:e,path:t,type:rr,info:n[rr]})}}}function rd(e,t){return 1!==t||"default"!==e}rs.READ=rr,rs.CALL=ru,rs.CONSTRUCT=rn,rs.ESM=ra;let rl=Symbol("SYNTAX_OPENING_PARENTHESIS_INITIAL_VALUE");function*rc(e,t){if(!e||!e.parent||"CatchClause"===e.parent.type&&e.parent.param===e)return;let r=rl,u=[e,e];for(;u=function([e,t],r){let u=r.sourceCode.getTokenBefore(e);if(!u||!tM(u))return;let n=r.sourceCode.getTokenAfter(t);if(u&&tz(n))return[u,n]}(u,t);){let[n]=u;if(r===rl&&(r=function(e,t){let{parent:r}=e;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.sourceCode.getTokenAfter(r.typeArguments??r.callee,tM);return;case"DoWhileStatement":if(r.test===e)return t.sourceCode.getTokenAfter(r.body,tM);return;case"IfStatement":case"WhileStatement":if(r.test===e)return t.sourceCode.getFirstToken(r,1);return;case"ImportExpression":if(r.source===e)return t.sourceCode.getFirstToken(r,1);return;case"SwitchStatement":if(r.discriminant===e)return t.sourceCode.getFirstToken(r,1);return;case"WithStatement":if(r.object===e)return t.sourceCode.getFirstToken(r,1)}}(e,t)),n===r)break;yield u}}let rf=new WeakMap;function rp(e,t){if(!e||!rf.has(e)){let r=[];for(let[u,n]of rc(e,t))r.unshift(u),r.push(n);rf.set(e,r)}return rf.get(e)}function rm(e,t){let r=rp(e,t),[u]=t.sourceCode.getRange(r[0]??e),[,n]=t.sourceCode.getRange(r.at(-1)??e);return[u,n]}function rg(e,t){let[r,u]=rm(e,t);return t.sourceCode.text.slice(r,u)}function ry(e,t){if(rf.has(e))return rf.get(e).length>0;let r=rc(e,t).next().done;return r&&rf.set(e,[]),!r}function rh(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}let rb=e=>e?.type==="Literal"&&"string"==typeof e.value,rD=e=>"Literal"===e.type&&"number"==typeof e.value,rx=e=>"Literal"===e.type&&!!e.regex,rv=e=>"Literal"===e.type&&!!e.bigint;function rE(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:u,names:n,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:1/0,allowSpreadElement:!1,...t};if(u&&(n=[u]),!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(n)||!(n.length>0)||"Identifier"===e.callee.type&&!!n.includes(e.callee.name)}let rA=(e,t)=>rE(e,t,["CallExpression"]),rC=(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return rE(e,t,["NewExpression"])},rS=(e,t)=>rE(e,t,["CallExpression","NewExpression"]),rF=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive;function rw(e,t){let{type:r}=e;return"BlockStatement"===r?e.body.every(e=>rw(e,t)):!!("EmptyStatement"===r||t?.(e))}let rk=e=>"ArrayExpression"===e.type&&0===e.elements.length,rT=e=>"ObjectExpression"===e.type&&0===e.properties.length;function r_(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}let rI=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"];function rB(e){return rI.includes(e.type)}function rP(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:u,object:n,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(u=[r]),n&&(a=[n]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(u)&&u.length>0){if("Identifier"!==e.property.type||!u.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 rR(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:u,method:n,methods:a}={method:"",methods:[],...t};return rA(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&rP(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:n,properties:a,optional:u})}let rL=e=>rA(e,{name:"require",argumentsLength:1,optional:!1})&&rb(e.arguments[0]);function rj(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let u=r[t];if(!u)return!1;if(0===t)return"Identifier"===e.type&&e.name===u||"this"===u&&"ThisExpression"===e.type||"super"===u&&"Super"===e.type;if(1===t&&"MetaProperty"===e.type&&"Identifier"===e.property.type&&e.property.name===u){e=e.meta;continue}if("MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.property.type&&e.property.name===u){e=e.object;continue}return!1}}function rO(e,t){return t.some(t=>rj(e,t))}function rN(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||rO(e.parent.tag,t))}function r$(e){return e?.type==="Identifier"&&"undefined"===e.name}let rM=(e,t)=>(function(e,t){let{object:r,property:u,properties:n}={property:"",properties:[],...t};if(!rP(e,{property:u,properties:n,optional:!1}))return;let a=e.object;return rP(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&rk(a)||"Object"===r&&rT(a)})(e,{...t,object:"Array"}),rz=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator),rU=e=>e?.type==="UnaryExpression"&&"!"===e.operator,rq=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length;function rW(e){if(rU(e)||rU(e.parent)&&e.parent.argument===e||rq(e)||rq(e.parent)&&e.parent.arguments[0]===e)return!0;let{parent:t}=e;return t?.type==="VExpressionContainer"&&"VAttribute"===t.parent.type&&!!t.parent.directive&&t.parent.value===t&&"VDirectiveKey"===t.parent.key.type&&"VIdentifier"===t.parent.key.name.type&&("if"===t.parent.key.name.rawName||"else-if"===t.parent.key.name.rawName||"show"===t.parent.key.name.rawName)||("IfStatement"===t.type||"ConditionalExpression"===t.type||"WhileStatement"===t.type||"DoWhileStatement"===t.type||"ForStatement"===t.type)&&t.test===e||!!rz(t)&&rW(t)}function rV(e,{test:t,expected:r,ruleId:u}){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 n=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${u}\`: Unexpected token ${n}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${n}.
|
|
2
|
-
Please open an issue at ${i}.`)}function rZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rG=rZ(function(){if(u)return r;u=1;let e={},t=e.hasOwnProperty,n=(e,r)=>{for(let u in e)t.call(e,u)&&r(u,e[u])},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={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},l=/[\\\b\f\n\r\t]/,c=/[0-9]/,f=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,m=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,g=(e,t)=>{let r,u,y=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},h={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},b=t&&t.json;b&&(h.quotes="double",h.wrap=!0),"single"!=(!(P=t)||n(P,(e,t)=>{h[e]=t}),t=h).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let D="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",x=t.compact,v=t.lowercaseHex,E=t.indent.repeat(t.indentLevel),A="",C=t.__inline1__,S=t.__inline2__,F=x?"":"\n",w=!0,k="binary"==t.numbers,T="octal"==t.numbers,_="decimal"==t.numbers,I="hexadecimal"==t.numbers;if(b&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(u=e)&&"[object String]"!=o.call(u)){let u,a,i,d;if(u=e,"[object Map]"==o.call(u))return 0==e.size?"new Map()":(x||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+g(Array.from(e),t)+")");if(a=e,"[object Set]"==o.call(a))return 0==e.size?"new Set()":"new Set("+g(Array.from(e),t)+")";if(i=e,"function"==typeof Buffer&&Buffer.isBuffer(i))return 0==e.length?"Buffer.from([])":"Buffer.from("+g(Array.from(e),t)+")";if(s(e)){r=[],t.wrap=!0,C&&(t.__inline1__=!1,t.__inline2__=!0),S||y();var B,P,R=e;let u=R.length,n=-1;for(;++n<u;){B=R[n],w=!1,S&&(t.__inline2__=!1),r.push((x||S?"":E)+g(B,t))}return w?"[]":S?"["+r.join(", ")+"]":"["+F+r.join(","+F)+F+(x?"":A)+"]"}if("number"==typeof(d=e)||"[object Number]"==o.call(d)||"bigint"==typeof e){let t;if(b)return JSON.stringify(Number(e));if(_)t=String(e);else if(I){let r=e.toString(16);v||(r=r.toUpperCase()),t="0x"+r}else k?t="0b"+e.toString(2):T&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let u;if("bigint"==typeof e)return b?JSON.stringify(Number(e)):e+"n";return(u=e,"[object Object]"==o.call(u))?(r=[],t.wrap=!0,y(),n(e,(e,u)=>{w=!1,r.push((x?"":E)+g(e,t)+":"+(x?"":" ")+g(u,t))}),w)?"{}":"{"+F+r.join(","+F)+F+(x?"":A)+"}":b?JSON.stringify(e)||"null":String(e)}}let L=t.escapeEverything?p:m;return r=e.replace(L,(e,r,u,n,o,s)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),u=r.charCodeAt(1);return t.es6?"\\u{"+i((e-55296)*1024+u-56320+65536,v)+"}":a(i(e,v))+a(i(u,v))}if(u)return a(i(u.charCodeAt(0),v));if("\0"==e&&!b&&!c.test(s.charAt(o+1)))return"\\0";if(n)return n==D||t.escapeEverything?"\\"+n:n;if(l.test(e))return d[e];if(t.minimal&&!f.test(e))return e;let p=i(e.charCodeAt(0),v);return b||p.length>2?a(p):"\\x"+("00"+p).slice(-2)}),"`"==D&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,b?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=D+r+D),r};return g.version="3.0.2",r=g}());function rH(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rG(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})}var rJ={},rK={},rX={},rY=rZ(function(){var e,t;return i?rJ:(i=1,Object.defineProperty(rJ,"__esModule",{value:!0}),Object.defineProperty(rJ,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(rJ,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(rJ,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(rJ,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(rJ,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(rJ,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(rJ,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(rJ,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(n)return rK;n=1,Object.defineProperty(rK,"__esModule",{value:!0}),rK.isIdentifierChar=d,rK.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let u=e.charCodeAt(r);if((64512&u)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(u=65536+((1023&u)<<10)+(1023&t))}if(t){if(t=!1,!s(u))return!1}else if(!d(u))return!1}return!t},rK.isIdentifierStart=s;let e="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r=RegExp("["+e+"]"),u=RegExp("["+e+t+"]");e=t=null;let a=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],i=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function o(e,t){let r=65536;for(let u=0,n=t.length;u<n&&!((r+=t[u])>e);u+=2)if((r+=t[u+1])>=e)return!0;return!1}function s(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):o(e,a)))}function d(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):o(e,a)||o(e,i))))}return rK}(),t=function(){if(a)return rX;a=1,Object.defineProperty(rX,"__esModule",{value:!0}),rX.isKeyword=function(t){return e.has(t)},rX.isReservedWord=u,rX.isStrictBindOnlyReservedWord=i,rX.isStrictBindReservedWord=function(e,t){return n(e,t)||i(e)},rX.isStrictReservedWord=n;let e=new Set(["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"]),t=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),r=new Set(["eval","arguments"]);function u(e,t){return t&&"await"===e||"enum"===e}function n(e,r){return u(e,r)||t.has(e)}function i(e){return r.has(e)}return rX}(),rJ)}());let rQ=e=>[e,...e.childScopes.flatMap(e=>rQ(e))],r0=e=>[...new Set(rQ(e).flatMap(({references:e})=>e))],{isIdentifierName:r1,isStrictReservedWord:r3,isKeyword:r2}=rY,r4=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"]),r5=e=>"string"==typeof e&&!r2(e)&&!r3(e,!0)&&r1(e)&&"arguments"!==e&&!r4.has(e),r8=(e,t)=>!t.some(t=>(function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}})(e,t)||r0(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r)),r6=()=>!0;function r9(e,t,r=r6){if(r5(e)||r5(e+="_")){for(;!r8(e,t)||!r(e,t);)e+="_";return e}}function r7(e,t){if(e.arguments.length>0)return!0;let{sourceCode:r}=t,[u,n]=r.getLastTokens(e,2);return tM(u)&&tz(n)&&r.getRange(e.callee)[1]<r.getRange(e)[1]}function ue(e,t){let{sourceCode:r}=t,u=e.typeArguments??e.callee,n=r.getTokenAfter(u,tM),[a,i]=r.getLastTokens(e,2);return{openingParenthesisToken:n,closingParenthesisToken:i,trailingCommaToken:tO(a)?a:void 0}}function ut(e,t,r=!0){let{sourceCode:u}=e,{openingParenthesisToken:n,closingParenthesisToken:a,trailingCommaToken:i}=ue(t,e),[,o]=u.getRange(n),[s]=u.getRange(r?a:i??a);return u.text.slice(o,s)}function ur(e,t){let{sourceCode:r}=t,{start:{line:u,column:n}}=r.getLoc(e);return r.getLines()[u-1].slice(0,n).match(/\s*$/)[0]}function uu(e,t){let{sourceCode:r}=e;return r.parserServices.getTemplateBodyTokenStore&&r.ast.templateBody&&r.getRange(r.ast.templateBody)[0]<=r.getRange(t)[0]&&r.getRange(t)[1]<=r.getRange(r.ast.templateBody)[1]?r.parserServices.getTemplateBodyTokenStore():r}let un=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])],ua=(e,t)=>{let{references:r=[]}=tR(e,t)||{};return r},ui=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,uo=(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),us=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,ud=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),ul=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"]),uc=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),uf=new Set(["parseFloat","parseInt"]),up=new Set(["-","*","/","%","**","<<",">>","|","^","&"]),um=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),ug=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]),uy=e=>um.has(e.type)||ug.has(e.type)||r$(e)||rA(e)&&!rR(e,{method:"bind",optionalCall:!1,optionalMember:!1});function uh(e,t,r){let[u,n]=[e,t].map(e=>r.sourceCode.getLoc(e).start.line);return u===n}let ub=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name;function uD(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return uD(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=t0(t);if(!r)return;return String(r.value)}}function ux(e,t){if(e.type!==t.type)return"ChainExpression"===e.type?ux(e.expression,t):"ChainExpression"===t.type&&ux(e,t.expression);switch(e.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return e.name===t.name;case"Literal":return e.regex||t.regex?!!(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value;case"ChainExpression":return ux(e.expression,t.expression);case"MemberExpression":{let r=uD(e);if(void 0!==r)return ux(e.object,t.object)&&r===uD(t);return e.computed===t.computed&&ux(e.object,t.object)&&ux(e.property,t.property)}default:return!1}}let uv=(e,t,r)=>e&&t&&r.sourceCode.getRange(e)[0]===r.sourceCode.getRange(t)[0]&&r.sourceCode.getRange(e)[1]===r.sourceCode.getRange(t)[1],uE=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,uA=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),uC=new Set(["[","(","/","`","+","-","*",",","."]);function uS(e,t,r){if(""===r||r&&!uC.has(r.charAt(0))||!e)return!1;let{sourceCode:u}=t,{type:n,value:a}=e,i=u.getRange(e),o=u.getNodeByRangeIndex(i[0]);if("Punctuator"===n){if(";"===a)return!1;if("]"===a)return!0;if(")"===a){switch(o.type){case"IfStatement":if(u.getTokenBefore(o.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(o.body&&u.getTokenBefore(o.body)===e)return!1}return!0}}return!!uA.has(n)||("Template"===n?a.endsWith("`"):"ObjectExpression"===o.type||"Identifier"===n&&("of"!==a||"ForOfStatement"!==o.type)&&("await"!==a||"AwaitExpression"!==o.type))}function*uF(e){if("function"!=typeof e?.[Symbol.iterator])return void(yield e);for(let t of e)yield*uF(t)}class uw extends Error{name="FixAbortError"}let uk={abort(){throw new uw("Fix aborted.")}};function uT(e){return t=>{let r=uF(e(t,uk));try{return[...r]}catch(e){if(e instanceof uw)return;throw e}}}class u_{#e;#t=new Map;constructor(e){this.#e=e}#r(e,t){let r=this.#t;for(let u of e)r.has(u)?r.get(u).push(t):r.set(u,[t])}on(e,t){let r=Array.isArray(e)?e:[e];this.#r(r,t)}onExit(e,t){let r=Array.isArray(e)?e:[e];this.#r(r.map(e=>`${e}:exit`),t)}toEslintListeners(){let e={};for(let[t,r]of this.#t)e[t]=function(e,t){return(...r)=>{for(let u of uF(t(...r)))if(u){let t=function(e){let t={...e};return e.fix&&(t.fix=uT(e.fix)),Array.isArray(e.suggest)&&(t.suggest=e.suggest.map(t=>({...t,fix:uT(t.fix),data:{...e.data,...t.data}}))),t}(u);e.report(t)}}}(this.#e,function*(...e){for(let t of r)yield t(...e)});return e}}let uI=new Set;function uB(e){return uI.has(e)?e:t=>{let r=new u_(t),u=e(new Proxy(t,{get:(e,t,u)=>"on"===t||"onExit"===t?r[t].bind(r):Reflect.get(e,t,u)}));return eK.equal(u,void 0,`[${t.id}] Rule \`create\` function should return \`undefined\`, please use \`context.on()\` instead of return listeners.`),r.toEslintListeners()}}function uP(e,t){var r;let{visitScriptBlock:u}={visitScriptBlock:!0,...t},n=uB(e);return r=e=>{let t=n(e),{parserServices:r}=e.sourceCode;return r?.defineTemplateBodyVisitor?u?r.defineTemplateBodyVisitor(t,t):r.defineTemplateBodyVisitor(t):t},uI.add(r),r}let uR=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;function uL(e,t){switch(e.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!r7(e,t);case"Literal":let r;if(rD(e)&&(r=e.raw,uR.test(r)))return!0;return!1;default:return!0}}var uj={exports:{}},uO=uj.exports,uN=rZ(function(){return o?uj.exports:(o=1,uj.exports=function(){var e=[],t=[],r={},u={},n={};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,u){if(!e.length||r.hasOwnProperty(e))return t;for(var n=u.length;n--;){var a=u[n];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,u){var n,a,o=(n=t[1],a=arguments,n.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[u-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(u){var n=u.toLowerCase();return t.hasOwnProperty(n)?i(u,n):e.hasOwnProperty(n)?i(u,e[n]):o(n,u,r)}}function d(e,t,r,u){return function(u){var n=u.toLowerCase();return!!t.hasOwnProperty(n)||!e.hasOwnProperty(n)&&o(n,n,r)===n}}function l(e,t,r){var u=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+u}return l.plural=s(n,u,e),l.isPlural=d(n,u,e),l.singular=s(u,n,t),l.isSingular=d(u,n,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(),n[e=e.toLowerCase()]=t,u[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}(),uj.exports)}());function u$(e,t,r=0,u=0){let{sourceCode:n}=t,[a,i]=Array.isArray(e)?e:n.getRange(e);return{start:n.getLocFromIndex(a+r),end:n.getLocFromIndex(i+u)}}function uM(e,t,r){let{parent:u}=e;for(let n of t.sourceCode.visitorKeys[u.type]||Object.keys(u)){let t=u[n];if(t!==e&&Array.isArray(t)){let u=t.indexOf(e);if(-1!==u)return t[u+r]}}}let uz=(e,t)=>uM(e,t,-1),uU=e=>e.charAt(0).toUpperCase()+e.slice(1),uq="too-deep",uW="should-parenthesized",uV="prefer-event-target",uZ=new Set(["@angular/core","eventemitter3"]),uG=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 uH(e){let t;return!!e&&(rL(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(rb(t)&&uZ.has(t.value)))}let uJ={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"},uK="prefer-keyboard-event-key",uX=new Set(["keyCode","charCode","which"]),uY=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,uQ=(e,t)=>{let r=u0(t,"CallExpression",uY),u=r?.arguments[1];switch(u?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(u)[0],r=t?.references;return{event:u.params[0],references:r}}default:return{}}},u0=(e,t,r=()=>!0)=>{let u=e;for(;u;){if(u.type===t&&r(u))return u;u=u.parent}},u1=e=>({messageId:uK,data:{name:e.name},node:e,fix:t=>{let r=((e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r})(e,3);if(!r||"IfStatement"!==r.type)return;let{type:u,operator:n,right:a}=r.test;if(!("BinaryExpression"===u&&("=="===n||"==="===n)&&rD(a)))return;let i=uJ[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rH(i))]}}),u3="error",u2="suggestion";function*u4(e,t,r){for(let u of rp(e,r))yield t.remove(u)}function u5(e,t,r,u){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let{sourceCode:n}=u,[a,i]=n.getLastTokens(t,2);return t.arguments.length>0&&(r=tO(a)?` ${r},`:`, ${r}`),e.insertTextBefore(i,r)}function u8(e,t,r){let u=t.parent,n=u.arguments.indexOf(t),a=rp(t,r),i=a[0]||t,o=a.at(-1)||t,{sourceCode:s}=r,[d]=s.getRange(i),[,l]=s.getRange(o);if(0!==n){let e=s.getTokenBefore(i);[d]=s.getRange(e)}if(1===u.arguments.length){let e=s.getTokenAfter(o);tO(e)&&([,l]=s.getRange(e))}return e.removeRange([d,l])}function u6(e,t,r,u){return e.replaceTextRange(rm(t,u),r)}function*u9(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let{sourceCode:u}=r,n=u.getFirstToken(t);yield e.insertTextAfter(n," (");let a=u.getLastToken(t);tN(a)?yield e.insertTextBefore(a,")"):yield e.insertTextAfter(t,")")}function u7(e,t,r){let u=e;"object"==typeof e&&(u=t.sourceCode.getRange(e)[1]);let[n]=t.sourceCode.text.slice(u).match(/^\s*/);return r.removeRange([u,u+n.length])}function*ne(e,t,r){let u=t.sourceCode.getFirstToken(e);yield r.remove(u),yield u7(u,t,r),r7(e,t)||(yield r.insertTextAfter(e,"()")),uh(u,e.callee,t)||ry(e,t)||(yield u9(r,e.parent,t))}let nt=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;function*nr(e,t,r){let{sourceCode:u}=r,n=rm(t,r),a=u.getTokenBefore({range:n},{includeComments:!0});a&&n[0]===u.getRange(a)[1]&&nt(a)&&(yield e.insertTextAfter(a," "));let i=u.getTokenAfter({range:n},{includeComments:!0});i&&n[1]===u.getRange(i)[0]&&nt(i)&&(yield e.insertTextBefore(i," "))}function*nu(e,t,r){var u;yield nr(r,e,t),yield r.insertTextBefore(e,"new ");let{callee:n}=e;!ry(n,t)&&"MemberExpression"===(u=n).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(u)&&(yield r.insertTextBefore(n,"("),yield r.insertTextAfter(n,")"))}function nn(e,t,r,u){let[,n]=rm(t.object,r),[,a]=r.sourceCode.getRange(t);return e.replaceTextRange([n,a],u)}let na=(e,t,r)=>nn(e,t,r,"");function*ni(e,t,r){let u=t.callee;yield na(e,u,r);let[,n]=rm(u,r),[,a]=r.sourceCode.getRange(t);yield e.removeRange([n,a])}function no(e,t,r,u){if(uE(e)||"AssignmentPattern"===e.parent.type&&e.parent.left===e&&uE(e.parent))return u.replaceText(e,`${e.name}: ${t}`);if(((e,t)=>{let{type:r,local:u,imported:n}=e.parent;return"ImportSpecifier"===r&&uv(u,n,t)&&u===e})(e,r))return u.replaceText(e,`${e.name} as ${t}`);if(((e,t)=>{let{type:r,local:u,exported:n}=e.parent;return"ExportSpecifier"===r&&uv(u,n,t)&&u===e})(e,r))return u.replaceText(e,`${t} as ${e.name}`);if(e.typeAnnotation){let{sourceCode:n}=r;return u.replaceTextRange([n.getRange(e)[0],n.getRange(e.typeAnnotation)[0]],`${t}${e.optional?"?":""}`)}return u.replaceText(e,t)}let ns=(e,t,r,u)=>un(e).map(e=>no(e,t,r,u)),nd=(e,t,r,u)=>{let{tail:n}=e,[a,i]=r.sourceCode.getRange(e);return u.replaceTextRange([a+1,i-(n?1:2)],t)};function*nl(e,t,r,u,n){for(let t of rp(e,n?{sourceCode:n}:u))yield nl(t,"",r,u,n);let{sourceCode:a}=u,[i,o]=a.getRange(e),[s]=a.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield r.replaceTextRange([i,o],`${d}${t}`)}let nc="require-array-join-separator",nf="no-thenable-object",np="no-thenable-export",nm="no-thenable-class",ng=(e,t)=>t0(e,t.sourceCode.getScope(e))?.value==="then",ny=(e,t)=>"then"===t3(e,t.sourceCode.getScope(e)),nh=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&ny(r,t)&&(yield r.key)},messageId:nf},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===t3(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:nm},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===t3(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:nf},{selector:"CallExpression",*getNodes(e,t){if(!(rR(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;ng(r,t)&&(yield r)},messageId:nf},{selector:"CallExpression",*getNodes(e,t){if(rR(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;ng(e,t)&&(yield e)}}},messageId:nf},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:np},{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:np},{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:np}],nb="no-invalid-remove-event-listener",nD="consistent-function-scoping",nx=(e,t)=>e&&t&&(e===t||e.block===t.block),nv=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),nE=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>nE(e))),nA=new Set(["FunctionExpression","ArrowFunctionExpression"]),nC={create:e=>{let{checkArrowFunctions:t}=e.options[0],{sourceCode:r}=e,{scopeManager:u}=r,n=[];e.on(rI,()=>{n.push(!1)}),e.on("JSXElement",()=>{n.length>0&&(n[n.length-1]=!0)}),e.onExit(rI,e=>{if(!n.pop()&&("ArrowFunctionExpression"!==e.type||t)&&!function(e,t){let r,u=t.acquire(e);if(!u||nE(u))return!0;let n=e.parent;"VariableDeclarator"===n.type&&(n=n.parent),"VariableDeclaration"===n.type&&(n=n.parent),n?.type==="ReturnStatement"&&"ArrowFunctionExpression"===e.type&&(n=n.parent),n=function(e,t){if("ArrowFunctionExpression"===e.type&&"ArrowFunctionExpression"===t.type){let t=function(e){let t=e;for(;t&&"ArrowFunctionExpression"===t.type;)t=t.parent;return t}(e);t&&"ReturnStatement"===t.type&&"ReturnStatement"===(e=function(e){let t=e;for(;"ArrowFunctionExpression"===t.type;)t=t.parent;return t}(e)).type&&(e=e.parent)}return e}(n,e),n?.type==="BlockStatement"&&(n=n.parent);let a=t.acquire(n);return!!(!a||"global"===a.type||a.block?.parent?.callee&&rO(a.block.parent.callee,nv)||(r=n,nA.has(r.type)&&"CallExpression"===r.parent.type&&r.parent.callee===r))||r0(u).map(({resolved:e})=>e).filter(Boolean).some(e=>e.references.some(e=>{if(nx(a,e.from))return!0;let{resolved:t}=e,[r]=t.defs;return(r?.type!=="FunctionName"||t.name!==r.name.name)&&nx(a,t.scope)})||e.defs.some(e=>nx(a,t.acquire(e.node)))||e.identifiers.some(e=>{if(!e.parent||"FunctionDeclaration"!==e.parent.type||t.acquire(e))return!1;let r=t.acquire(e.parent);return!(!r||nx(u,r))&&nx(a,r.upper)}))}(e,u))return{node:e,loc:tW(e,r),messageId:nD,data:{functionNameWithKind:t2(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean"}}}],defaultOptions:[{checkArrowFunctions:!0}],messages:{[nD]:"Move {{functionNameWithKind}} to the outer scope."}}},nS="error",nF="error-unknown",nw="suggestion";function nk(e,t,r){return function*(u){yield u.insertTextAfter(e.callee,`.${r}`),yield ne(e,t,u)}}let nT="no-console-spaces",n_=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),nI=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2),nB="no-empty-file",nP="no-useless-fallback-in-spread",nR="zero-fraction",nL="dangling-dot",nj="error",nO="suggestion",nN=Symbol.for("default"),n$=Symbol("NAMESPACE_SPECIFIER_NAME"),nM=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},nz=e=>"type"===e.exportKind||"type"===e.parent.exportKind;function*nU(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return void(yield function*(e,t,r,u=!1){let n=e.parent,{specifiers:a}=n;if(1===a.length&&!u)return void(yield t.remove(n));let{sourceCode:i}=r;switch(e.type){case"ImportSpecifier":if(a.every(t=>e===t||e.type!==t.type)){let r=i.getTokenAfter(e,e=>"Identifier"===e.type&&"from"===e.value),u=a.some(e=>"ImportDefaultSpecifier"===e.type),n=i.getTokenBefore(e,u?tO:tU),[o]=i.getRange(n),[s]=i.getRange(r),d=i.getTokenBefore(n),l=i.getRange(d)[1]===o;yield t.replaceTextRange([o,s],l?" ":"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let r=i.getTokenAfter(e);tO(r)&&(yield t.remove(r))}}}(e,t,r));case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function nq(e,t){let{sourceCode:r}=t,u=r.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value),[n]=r.getRange(u),[,a]=r.getRange(e);return r.text.slice(n,a)}let nW={create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}=e.options[0],u=new Set,n=[];e.on("ImportDeclaration",e=>{e.specifiers.length>0&&u.add(e)}),e.on("ExportNamedDeclaration",e=>{rb(e.source)&&n.push(e)}),e.on("Program:exit",function*(a){for(let i of u){let u=t.getDeclaredVariables(i);if(u.some(e=>1!==e.defs.length||e.defs[0].parent!==i)||(u=u.map(e=>{let r=function(e,t){let r=e.defs[0].node,u={node:r,declaration:r.parent,variable:e,isTypeImport:"type"===r.importKind||"type"===r.parent.importKind};switch(r.type){case"ImportDefaultSpecifier":return{name:nN,text:"default",...u};case"ImportSpecifier":return{name:nM(r.imported),text:t.getText(r.imported),...u};case"ImportNamespaceSpecifier":return{name:n$,text:"*",...u}}}(e,t),u=function(e,t){let r=[];for(let{identifier:u}of e.variable.references){let n=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:nN,text:"default",isTypeExport:nz(r)};case"ExportSpecifier":return{node:r,name:nM(r.exported),text:t.getText(r.exported),isTypeExport:nz(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:u,references:n}]=r;return 1===u.length&&u[0]===e.id&&1===n.length&&n[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(u,t);n&&(e.name!==n$||n.name!==nN)&&r.push(n)}return r}(r,t);return{variable:e,imported:r,exports:u}}),r&&u.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let o=r&&u.some(({variable:e})=>0===e.references.length);for(let{imported:t,exports:r}of u)for(let u of r){let r={node:u.node,messageId:nj,data:{exported:u.text}},i=function({context:e,imported:t,exported:r,exportDeclarations:u,program:n}){let a,i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||=u.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t),function*(u){if(t.name===n$)yield u.insertTextAfter(n,`
|
|
3
|
-
export ${s?"type ":""}* as ${r.text} ${
|
|
4
|
-
export {${o}} ${nq(i,e)}`)}let o=r.isTypeExport&&!t.isTypeImport;1!==t.variable.references.length||o||(yield nU(t.node,u,e)),yield nU(r.node,u,e)}}({context:e,imported:t,exported:u,exportDeclarations:n,program:a});o?r.suggest=[{messageId:nO,fix:i}]:r.fix=i,yield r}}})},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"}}}],defaultOptions:[{ignoreUsedVariables:!1}],messages:{[nj]:"Use `export…from` to re-export `{{exported}}`.",[nO]:"Switch to `export…from`."}}},nV="prefer-native-coercion-functions",nZ=new Set(["String","Number","BigInt","Boolean","Symbol"]),nG=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),nH=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&nZ.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,nJ=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").toReversed())r={[t]:r};return r};class nK{#u={};#e;#n;#a;constructor({object:e,objects:t=[e],type:r=rs.READ,context:u,filter:n,handle:a}){for(let e of t)Object.assign(this.#u,nJ(e,r));this.#e=u,this.#n=n,this.#a=a}*#i(e,t){let r=t?.context??this.#e,u=t?.filter??this.#n,n=t?.handle??this.#a;for(let t of new rs(e).iterateGlobalReferences(this.#u)){if(u&&!u(t))continue;let e=n(t,r);yield e}}listen(e){let t=e?.context??this.#e;t.onExit("Program",r=>this.#i(t.sourceCode.getScope(r),e))}}Object.assign(nK,{READ:rs.READ,CALL:rs.CALL,CONSTRUCT:rs.CONSTRUCT});let nX="no-document-cookie",nY=new nK({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:nX})}),nQ=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()],n0=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",...nQ("AnimationStart"),...nQ("AnimationEnd"),...nQ("AnimationIteration"),...nQ("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"]),n1="prefer-add-event-listener",n3={create:e=>{let t,r,u=new Set(e.options[0].excludedPackages),n=new WeakMap;e.on("onCodePathStart",(e,t)=>{r={node:t,upper:r,returnsSomething:!1}}),e.on("onCodePathEnd",()=>{n.set(r.node,r.returnsSomething),r=r.upper}),e.on("CallExpression",e=>{rL(e)&&!t&&u.has(e.arguments[0].value)&&(t=!0)}),e.on("Literal",e=>{"ImportDeclaration"===e.parent.type&&!t&&u.has(e.value)&&(t=!0)}),e.on("ReturnStatement",e=>{r.returnsSomething||=!!e.argument}),e.on("AssignmentExpression:exit",r=>{let u,a;if(t)return;let{left:i,right:o,operator:s}=r;if("MemberExpression"!==i.type||i.computed)return;let d=i.property.name;if(!d||!d.startsWith("on"))return;let l=d.slice(2);if(!n0.has(l))return;let c="addEventListener",f="";if(r$(a=o)||rh(a,null))c="removeEventListener";else"beforeunload"===l&&("ArrowFunctionExpression"!==o.type&&"FunctionExpression"!==o.type||"BlockStatement"!==o.body.type||n.get(o))?f="Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.":"message"===l?f="Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.":"error"===l?f="Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`.":"="!==s||"ExpressionStatement"!==r.parent.type||r.parent.expression!==r||uy(o)||(u=t=>((e,t,r,u)=>{let{sourceCode:n}=t,a=u.property.name.slice(2),i=n.getText(u.object);ry(u.object,t)&&(i=`(${i})`);let o=n.getText(r.right);ry(r.right,t)&&(o=`(${o})`);let s=`${i}.addEventListener('${a}', ${o})`;return e.replaceText(r,s)})(t,e,r,i));return{node:i.property,messageId:n1,data:{replacement:c,method:d,extra:f?` ${f}`:""},fix:u}})},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],defaultOptions:[{excludedPackages:["koa","sax"]}],messages:{[n1]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}},n2=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(ub(e.left,t)||ub(e.right,t)),n4=({type:e,name:t},r)=>"Identifier"===e&&t===r;function n5({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,u=`${r}error`,n=`${r}suggestion`;return{messages:{[u]:({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 \`.${t}()\` instead of \`.${e}()\` when checking value existence.`})[e],[n]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",o=>{let s,d,l;if(!rR(o,{method:e,argumentsLength:1,optionalCall:!1})||!("ArrowFunctionExpression"===(l=o.arguments[0]).type&&!l.async&&1===l.params.length&&n2(l.body,l.params[0])||("ArrowFunctionExpression"===l.type||"FunctionExpression"===l.type)&&!l.async&&!l.generator&&1===l.params.length&&"BlockStatement"===l.body.type&&1===l.body.body.length&&"ReturnStatement"===l.body.body[0].type&&n2(l.body.body[0].argument,l.params[0])))return;let[c]=o.arguments,f="BinaryExpression"===c.body.type?c.body:c.body.body[0].argument,[p]=c.params,{left:m,right:g}=f,{name:y}=p;if(n4(m,y))s=g,d=m;else{if(!n4(g,y))return;s=m,d=g}let h=i.acquire(c);if(!h||tR(h,p).references.some(({identifier:e})=>e!==d)||function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:u}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||ua(t,"arguments").some(({from:e})=>e===t))||!!u&&!!(ua(t,u).length>0))}(c,h))return;let b=o.callee.property,D={node:b,messageId:u,suggest:[]},x=function*(e){let u=a.getText(s);ry(s,r)&&!ry(c,r)&&(u=`(${u})`),yield e.replaceText(b,t),yield e.replaceText(c,u)};return t9(s,a)?D.suggest.push({messageId:n,fix:x}):D.fix=x,D})}}}let n8=n5({method:"findIndex",replacement:"indexOf"}),n6=n5({method:"findLastIndex",replacement:"lastIndexOf"}),n9={create(e){n8.listen(e),n6.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{...n8.messages,...n6.messages}}},n7="error",ae="prefer-date",at="prefer-date-now-over-methods",ar="prefer-date-now-over-number-data-object",au=e=>rC(e,{name:"Date",argumentsLength:0}),an=(e,t,r)=>({node:e,messageId:ae,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield nr(t,e,r))},...t}),{isIdentifierName:aa}=rY,ai="prefer-dom-node-dataset",ao="prefer-modern-math-apis",as=(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,ad=(e,t)=>"CallExpression"===e.type&&!e.optional&&as(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function al({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(u,n){let a,i;if("BinaryExpression"!==u.type||"*"!==u.operator||(ad(u.left,"log")&&as(u.right,e)?(a=u.left,i=`Math.log(…) * Math.${e}`):ad(u.right,"log")&&as(u.left,e)&&(a=u.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:u,messageId:ao,data:{replacement:r,description:i},fix:e=>e.replaceText(u,`Math.${t}(${rg(o,n)})`)}}}function ac({constantName:e,replacementMethod:t}){let r={messageId:ao,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(u,n){if(!("BinaryExpression"===u.type&&"/"===u.operator&&ad(u.left,"log")&&as(u.right,e)))return;let[a]=u.left.arguments;return{...r,node:u,fix:e=>e.replaceText(u,`Math.${t}(${rg(a,n)})`)}}}let af=[al({constantName:"LOG10E",replacementMethod:"log10"}),al({constantName:"LOG2E",replacementMethod:"log2"}),ac({constantName:"LN10",replacementMethod:"log10"}),ac({constantName:"LN2",replacementMethod:"log2"})],ap=e=>"BinaryExpression"===e.type&&"+"===e.operator?[e.left,e.right].flatMap(e=>ap(e)):[e],am="number-literal-case",ag=(e,{hexadecimalValue:t})=>{let r=e.toLowerCase();return r.startsWith("0x")&&(r="0x"+r.slice(2)["lowercase"===t?"toLowerCase":"toUpperCase"]()),r},ay={create:uP(e=>{e.on("Literal",t=>{let{raw:r}=t,u=e.options[0]??{};u.hexadecimalValue??="uppercase";let n=r;if(rD(t)?n=ag(r,u):rv(t)&&(n=ag(r.slice(0,-1),u)+"n"),r!==n)return{node:t,messageId:am,fix:e=>e.replaceText(t,n)}})}),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{hexadecimalValue:{enum:["uppercase","lowercase"]}}}],defaultOptions:[{hexadecimalValue:"uppercase"}],messages:{[am]:"Invalid number literal casing."}}},ah="error",ab="suggestion",aD={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1};function ax({node:e,path:[t]},r){let{parent:u}=e,n=t;"Infinity"===t&&(n=(e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e})(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:ah,data:{description:t,property:n}};if("NEGATIVE_INFINITY"===n)return a.node=u,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(u,"Number.NEGATIVE_INFINITY"),yield nr(e,u,r)},a;let i=t=>no(e,`Number.${n}`,r,t);return aD[t]?a.fix=i:a.suggest=[{messageId:ab,fix:i}],a}let av={create:e=>{let{checkInfinity:t,checkNaN:r}=e.options[0];new nK({objects:Object.keys(aD).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),context:e,handle:ax,filter:({node:e})=>!ui(e)}).listen()},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean"},checkNaN:{type:"boolean"}}}],defaultOptions:[{checkInfinity:!1,checkNaN:!0}],messages:{[ah]:"Prefer `Number.{{property}}` over `{{description}}`.",[ab]:"Replace `{{description}}` with `Number.{{property}}`."}}},aE="prefer-reflect-apply",aA=(e,t)=>(rh(e,null)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),aC=(e,t,r,u)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(u)})`,aS="prefer-set-size",aF=e=>rC(e,{name:"Set"});var aw={exports:{}};let{parse:ak}=rZ(function(){var e,t,r,u;return s?aw.exports:(s=1,r=String.fromCodePoint||(e=String.fromCharCode,t=Math.floor,function(){var r,u,n=[],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?n.push(s):(s-=65536,r=(s>>10)+55296,u=s%1024+56320,n.push(r,u)),(a+1==i||n.length>16384)&&(o+=e.apply(null,n),n.length=0)}return o}),u={parse:function(e,t,u){function n(t,r){return t.range[0]=r,t.raw=e.substring(r,t.range[1]),t}function a(t,r){return{type:"anchor",kind:t,range:[X-r,X],raw:e.substring(X-r,X)}}function i(t,r,u,n){return{type:"value",kind:t,codePoint:r,range:[u,n],raw:e.substring(u,n)}}function o(e,t,r,u){return u=u||0,i(e,t,X-(r.length+u),X)}function s(e){var t,r=e[0],u=r.charCodeAt(0);return K&&1===r.length&&u>=55296&&u<=56319&&(t=h().charCodeAt(0))>=56320&&t<=57343?i("symbol",(u-55296)*1024+t-56320+65536,++X-2,X):i("symbol",u,X-1,X)}function d(t,r,u,n,a){return null==n&&(u=X-1,n=X),{type:"quantifier",min:t,max:r,greedy:!0,body:null,symbol:a,range:[u,n],raw:e.substring(u,n)}}function l(t,r,u,n){return{type:"characterClass",kind:t.kind,body:t.body,negative:r,range:[u,n],raw:e.substring(u,n)}}function c(t,r,u,n){return t.codePoint>r.codePoint&&q("invalid range in character class",t.raw+"-"+r.raw,u,n),{type:"characterClassRange",min:t,max:r,range:[u,n],raw:e.substring(u,n)}}function f(e){return"alternative"===e.type?e.body:[e]}function p(e){X+=e=e||1}function m(e){g(e)||q("character",e)}function g(t){var r=t.length;if(e.substring(X,X+r)===t)return p(r),t}function y(t){if(e[X]===t)return X++,t}function h(){return e[X]}function b(t){return e[X]===t}function D(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(X+=r[0].length),r}function v(){var t,r=[],u=X;for(r.push(E());y("|");)r.push(E());return 1===r.length?r[0]:{type:"disjunction",body:r,range:[u,t=X],raw:e.substring(u,t)}}function E(){for(var t,r,o=[],d=X;r=function(){if(X>=e.length||b("|")||b(")"))return null;var t,r=function(){switch(h()){case"^":return p(),a("start",1);case"$":return p(),a("end",1);case"\\":if(D("b"))return p(2),a("boundary",2);if(D("B"))return p(2),a("not-boundary",2);break;case"(":return A("(?=","lookahead","(?!","negativeLookahead");default:return}}();if(r){var o=X;if(t=S()||!1){if(!K&&"group"===r.type)return t.body=f(r),n(t,r.range[0]),t;X=o,q("Expected atom")}return r}var d=function(){var t;switch(t=h()){case".":return p(),{type:"dot",range:[X-1,X],raw:"."};case"\\":if(p(),!(t=w())){if(!K&&"c"==h())return i("symbol",92,X-1,X);q("atomEscape")}return t;case"[":return j();case"(":if(u.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(u.namedGroups&&g("(?<")){var r,n,a,o,d,l=B();m(">");var c=C("normal",l.range[0]-3);return c.name=l,c}if(!u.modifiers||"(?"!==e.substring(X,X+2)||":"==e[X+2])return A("(?:","ignore","(","normal");return n=X,p(2),a=x(/^[sim]+/),y("-")&&":"!==h()?(r=x(/^[sim]+/))||q("Invalid flags for modifiers group"):a||q("Invalid flags for modifiers group"),((o=(a=a?a[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}(o))&&q("flags cannot be duplicated for modifiers group"),y(":")||q("Invalid flags for modifiers group"),(d=C("ignore",n)).modifierFlags={enabling:a,disabling:r},d;case"]":case"}":if(!K)return p(),s(t);break;case"^":case"$":case"*":case"+":case"?":case"{":case")":case"|":break;default:return p(),s(t)}}();if(d||(o=X,(t=S()||!1)&&(X=o,q("Expected atom")),!K&&y("{")?d=s("{"):q("Expected atom")),t=S()||!1){var l=d.type,c=d.behavior;return"group"===l&&("negativeLookbehind"===c||"lookbehind"===c)&&q("Invalid quantifier","",t.range[0],t.range[1]),t.body=f(d),n(t,d.range[0]),t}return d}();)o.push(r);return 1===o.length?o[0]:{type:"alternative",body:o,range:[d,t=X],raw:e.substring(d,t)}}function A(e,t,r,u){var n=null,a=X;if(g(e))n=t;else{if(!g(r))return!1;n=u}return C(n,a)}function C(t,r){var u,n=v();n||q("Expected disjunction"),m(")");var a={type:"group",behavior:t,body:f(n),range:[r,u=X],raw:e.substring(r,u)};return"normal"==t&&Z&&V++,a}function S(){var e,t,r,u,n=X;switch(h()){case"*":p(),e=d(0,void 0,void 0,void 0,"*");break;case"+":p(),e=d(1,void 0,void 0,void 0,"+");break;case"?":p(),e=d(0,1,void 0,void 0,"?");break;case"{":(u=x(/^\{(\d+)\}/))?e=d(t=parseInt(u[1],10),t,n,X):(u=x(/^\{(\d+),\}/))?e=d(t=parseInt(u[1],10),void 0,n,X):(u=x(/^\{(\d+),(\d+)\}/))&&((t=parseInt(u[1],10))>(r=parseInt(u[2],10))&&q("numbers out of order in {} quantifier","",n,X),e=d(t,r,n,X)),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&q("iterations outside JS safe integer range in quantifier","",n,X)}return e&&y("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(t,r){if(r){var u,n;if("unicodeEscape"==t.kind&&(u=t.codePoint)>=55296&&u<=56319&&b("\\")&&D("u")){var a=X;X++;var i=w(!0);"unicodeEscape"==i.kind&&(n=i.codePoint)>=56320&&n<=57343?(t.kind="unicodeCodePointEscape",t.codePoint=(u-55296)*1024+n-56320+65536,t.range[1]=X,t.raw=e.substring(t.range[0],X)):X=a}}return t}u||(u={});function w(t){var r,a,i,d,l=X;switch(d=h()){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return function(t){var r,u,a=X;if(r=x(/^(?!0)\d+/)){u=r[0];var i,d,l=parseInt(r[0],10);if(l<=V&&!t)return i=r[0],d=X-1-i.length,{type:"reference",matchIndex:parseInt(i,10),range:[d,X],raw:e.substring(d,X)};if(W.push(l),Z?G=!0:k(a,X),p(-r[0].length),r=x(/^[0-7]{1,3}/))return o("octal",parseInt(r[0],8),r[0],1);var c=X;return n(r=s(x(/^[89]/)),c-1)}return!!(r=x(/^[0-7]{1,3}/))&&(("0"!==(u=r[0])&&k(a,X),/^0{1,3}$/.test(u))?o("null",0,"0",u.length):o("octal",parseInt(u,8),u,1))}(t);case"B":if(!t)return L();q("\\B not possible inside of CharacterClass","",l);break;case"b":if(t)return p(),o("singleEscape",8,"\\b");return L();case"c":if(t){if(!K&&(i=x(/^c(\d)/)))return o("controlLetter",i[1]+16,i[1],2);else if(!K&&g("c_"))return o("controlLetter",31,"_",2)}return _();case"d":case"D":case"w":case"W":case"s":case"S":return p(),{type:"characterClassEscape",value:d,range:[X-2,X],raw:e.substring(X-2,X)};case"k":return function(){if(u.namedGroups&&x(/^k<(?=.*?>)/)){var t,r=B();return m(">"),t=r.range[0]-3,{type:"reference",name:r,range:[t,X],raw:e.substring(t,X)}}}()||L();case"p":case"P":return a=X,!!(u.unicodePropertyEscape&&K&&(r=x(/^([pP])\{([^}]+)\}/)))&&{type:"unicodePropertyEscape",negative:"P"===r[1],value:r[2],range:[a-1,X],raw:e.substring(a-1,X)}||L();case"-":if(t&&K)return p(),o("singleEscape",45,"\\-");return L();default:return _()}}function k(e,t){K&&q("Invalid decimal escape in unicode mode",null,e,t)}function T(e){var t;return(t=x(/^u([0-9a-fA-F]{4})/))?F(o("unicodeEscape",parseInt(t[1],16),t[1],2),e):e&&(t=x(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(t[1],16),t[1],4):void 0}function _(){var e,t=X;switch(h()){case"t":return p(),o("singleEscape",9,"\\t");case"n":return p(),o("singleEscape",10,"\\n");case"v":return p(),o("singleEscape",11,"\\v");case"f":return p(),o("singleEscape",12,"\\f");case"r":return p(),o("singleEscape",13,"\\r");case"c":if(e=x(/^c([a-zA-Z])/))return o("controlLetter",e[1].charCodeAt(0)%32,e[1],2);break;case"x":if(e=x(/^x([0-9a-fA-F]{2})/))return o("hexadecimalEscape",parseInt(e[1],16),e[1],2);break;case"u":if(e=T(K))return(!e||e.codePoint>1114111)&&q("Invalid escape sequence",null,t,X),e}return L()}function I(t){var u=h(),n=X;if("\\"===u){p();var a=T(!0);return a&&t(a.codePoint)||q("Invalid escape sequence",null,n,X),r(a.codePoint)}var i=u.charCodeAt(0);if(i>=55296&&i<=56319){var o=(u+=e[X+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return p(),i>65535&&p(),u}function B(){var t,r=X,u=I(P);for(u||q("Invalid identifier");t=I(R);)u+=t;return{type:"identifier",value:u,range:[r,X],raw:e.substring(r,X)}}function P(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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-\u1711\u171F-\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-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\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-\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-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\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-\uAB69\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\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\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\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\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\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\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]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\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]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/.test(r(e))}function R(e){return P(e)||e>=48&&e<=57||e>=128&&/[\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\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\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-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\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\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\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\uFF65]|\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\uDD40-\uDD49\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE-\uDDD9\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDED0-\uDEE3\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDD50-\uDD59\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99\uDF60-\uDF67\uDFF0-\uDFF9]|\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\uDDE0-\uDDE9\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD39]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDD70-\uDD79\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\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\uDC8F\uDD30-\uDD36\uDD40-\uDD49\uDEAE\uDEEC-\uDEF9]|\uD839[\uDCEC-\uDCF9\uDDEE\uDDEF\uDDF1-\uDDFA\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uD83E[\uDFF0-\uDFF9]|\uDB40[\uDD00-\uDDEF]/.test(r(e))}function L(){var t,r=h();return K&&/[\^$.*+?()\\[\]{}|/]/.test(r)||!K&&"c"!==r?"k"===r&&u.lookbehind?null:o("identifier",(t=e.substring(X,X+=1)).charCodeAt(0),t,1):null}function j(){var e,t=X;return(e=g("[^"))?(e=O(),m("]"),l(e,!0,t,X)):y("[")?(e=O(),m("]"),l(e,!1,t,X)):null}function O(){var e,t;return b("]")?{kind:"union",body:[]}:J?function(){var e,t=[],r=$(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&q("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=$("union"===e));return{kind:e,body:t}}():((t=N())||q("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!D("]")){r=t.range[0],p(),i=s("-"),(a=N())||q("classAtom"),u=X;var r,u,n,a,i,o,d=O();return(d||q("classContents"),"codePoint"in t&&"codePoint"in a?n=[c(t,a,r,u)]:K?q("invalid character class"):n=[t,i,a],"empty"===d.type)?n:n.concat(d.body)}return(o=N())||q("classAtom"),(n=b("]")?o:e(o))||q("nonEmptyClassRangesNoDash"),[t].concat(n)}(t))||q("nonEmptyClassRanges"),{kind:"union",body:e})}function N(){return y("-")?s("-"):function(){var e;switch(e=h()){case"\\":if(p(),!(e=w(!0))){if(!K&&"c"==h())return s("\\");q("classEscape")}return F(e,K);case"]":case"-":break;default:return p(),s(e)}}()}function $(t){var r,u,n=X;if(y("\\"))if(g("q{"))return function(){var t,r=X-3,u=[];do u.push(function(){for(var t,r,u=[],n=X;r=M();)u.push(r);return{type:"classString",characters:u,range:[n,t=X],raw:e.substring(n,t)}}());while(y("|"));return m("}"),{type:"classStrings",strings:u,range:[r,t=X],raw:e.substring(r,t)}}();else if(u=w(!0))r=u;else{if(u=U())return u;q("Invalid escape","\\"+h(),n)}else if(u=z())r=u;else{if(u=j())return u;q("Invalid character",h())}if(t&&b("-")&&!D("-")){if(p(),u=M())return c(r,u,n,X);q("Invalid range end",h())}return r}function M(){if(y("\\")){var e,t=X;if(e=U())return e;q("Invalid escape","\\"+h(),t)}return z()}function z(){var e;if(x(/^(?:&&|!!|##|\$\$|%%|\*\*|\+\+|,,|\.\.|::|;;|<<|==|>>|\?\?|@@|\^\^|``|~~)/)&&q("Invalid set operation in character class"),e=x(/^[^()[\]{}/\-\\|]/))return s(e)}function U(){var e;if(y("b"))return o("singleEscape",8,"\\b");if(y("B"))q("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=_())return e;else return null}function q(t,r,u,n){u=null==u?X:u,n=null==n?u:n;var a=Math.max(0,u-10),i=Math.min(n+10,e.length),o=" "+e.substring(a,i),s=" "+Array(u-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+u+(r?": "+r:"")+"\n"+o+"\n"+s)}var W=[],V=0,Z=!0,G=!1,H=-1!==(t||"").indexOf("u"),J=-1!==(t||"").indexOf("v"),K=H||J,X=0;if(J&&!u.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(H&&J)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var Y=v();return(Y.range[1]!==e.length&&q("Could not parse entire input - got stuck","",Y.range[1]),G=G||W.some(function(e){return e<=V}))?(X=0,Z=!1,v()):Y}},aw.exports?aw.exports=u:window.regjsparser=u,aw.exports)}()),aT="method",a_="pattern",aI=e=>rD(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-aI(e.argument):void 0,aB=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name,aP="prefer-string-trim-start-end",aR="no-unreadable-iife",aL="throw-new-error",aj=/^(?:[A-Z][\da-z]*)*Error$/;var aO=rZ(function(){if(m)return p;m=1;let e=function(){if(l)return d;l=1;var e=/[|\\{}()[\]^$+*?.]/g;return d=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=f?c:(f=1,c=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 p=(u,n)=>{if(n=n||"","string"!=typeof u)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof u}\``);if("string"!=typeof n)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof n}\``);for(let a of t){let t=a[0],i=a[1];r(n,i.flags)&&(u=u.replace(RegExp(e(t),"g"),i.value))}return u}}());function aN(){if(C)return A;function e(e){return e?t[e.type](e):""}C=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 u=e(t.assertion);if(t.negative)return"(?<!"+u+")";return"(?<="+u+")";default:throw TypeError("Unknown Assertion kind: "+t.kind)}},CharacterClass:function(t){var r=t.expressions.map(e).join("");return t.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(t){return e(t.from)+"-"+e(t.to)},Repetition:function(t){return""+e(t.expression)+e(t.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){var t=e.negative?"P":"p";return"\\"+t+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};return A={generate:e}}function a$(){if(_)return T;_=1;var e=function(){if(k)return w;k=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)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,u={},n=void 0,a=void 0;function i(e,t){return u.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),n=e}],[0,4,function(e,t,r,u,o,s,d,l){a=i(o,l),n=P({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return e.split("").sort().join("")}(u)},R(o,l||d))}],[1,1,function(e,t){a=i(t,t),n=e}],[1,0,function(){a=null,n=""}],[2,1,function(e,t){a=i(t,t),n=e}],[2,2,function(e,t,r,u){a=i(r,u),n=e+t}],[3,1,function(e,t){a=i(t,t),n=e}],[4,1,function(e,t){a=i(t,t),n=e}],[4,3,function(e,t,r,u,o,s){a=i(u,s);var d=null;o&&(d=R(u||o,s||o)),n=P({type:"Disjunction",left:e,right:r},d)}],[5,1,function(e,t){if(a=i(t,t),0===e.length){n=null;return}n=1===e.length?P(e[0],a):P({type:"Alternative",expressions:e},a)}],[6,0,function(){a=null,n=[]}],[6,2,function(e,t,r,u){a=i(r,u),n=e.concat(t)}],[7,1,function(e,t){a=i(t,t),n=P(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,u){a=i(r,u),n=e,t&&(n=P({type:"Repetition",expression:e,quantifier:t},a))}],[8,1,function(e,t){a=i(t,t),n={kind:"^"}}],[8,1,function(e,t){a=i(t,t),n={kind:"$"}}],[8,1,function(e,t){a=i(t,t),n={kind:"\\b"}}],[8,1,function(e,t){a=i(t,t),n={kind:"\\B"}}],[8,3,function(e,t,r,u,o,s){a=i(u,s),n={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,u,o,s){a=i(u,s),n={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,u,o,s){a=i(u,s),n={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,u,o,s){a=i(u,s),n={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){a=i(t,t),n=e}],[9,1,function(e,t){a=i(t,t),n=e}],[9,1,function(e,t){a=i(t,t),n=e}],[10,1,function(e,t){n=E(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(n=E(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(n=E(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){n=E(e,"unicode",a=i(t,t))}],[10,1,function(e,t){n=function(e,t){var r="P"===e[1],u=e.indexOf("="),n=e.slice(3,-1!==u?u:-1),a=void 0,i=-1===u&&v.isGeneralCategoryValue(n),o=-1===u&&v.isBinaryPropertyName(n);if(i)a=n,n="General_Category";else if(o)a=n;else{if(!v.isValidName(n))throw SyntaxError("Invalid unicode property name: "+n+".");if(a=e.slice(u+1,-1),!v.isValidValue(n,a))throw SyntaxError("Invalid "+n+" unicode property value: "+a+".")}return P({type:"UnicodeProperty",name:n,value:a,negative:r,shorthand:i,binary:o,canonicalName:v.getCanonicalName(n)||n,canonicalValue:v.getCanonicalValue(a)||a},t)}(e,a=i(t,t))}],[10,1,function(e,t){n=E(e,"control",a=i(t,t))}],[10,1,function(e,t){n=E(e,"hex",a=i(t,t))}],[10,1,function(e,t){n=E(e,"oct",a=i(t,t))}],[10,1,function(e,t){var r,u,o;r=e,u=a=i(t,t),n=(o=Number(r.slice(1)))>0&&o<=y?P({type:"Backreference",kind:"number",number:o,reference:o},u):E(r,"decimal",u)}],[10,1,function(e,t){n=E(e,"meta",a=i(t,t))}],[10,1,function(e,t){n=E(e,"meta",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),n=function(e,t){var r=e.slice(3,-1),u=B(r);if(h.hasOwnProperty(u))return P({type:"Backreference",kind:"name",number:h[u],reference:u,referenceRaw:r},t);var n=null,a=null,i=null,o=null;t&&(n=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[E(e.slice(1,2),"simple",n?{startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=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))?(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=c[0].length,endColumn:o+=c[0].length}),l.push(E(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:++n,endColumn:++o}),l.push(E(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){a=i(t,t),n=e}],[11,0],[12,1,function(e,t){a=i(t,t),n=e}],[12,2,function(e,t,r,u){a=i(r,u),e.greedy=!1,n=e}],[13,1,function(e,t){n=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){n=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){n=P({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=D(e);n=P({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),n=P({type:"Quantifier",kind:"Range",from:D(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=D(e);n=P({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},a)}],[14,1,function(e,t){a=i(t,t),n=e}],[14,1,function(e,t){a=i(t,t),n=e}],[15,3,function(e,t,r,o,s,d){a=i(o,d);var l=String(e),c=B(l);if(!u.options.allowGroupNameDuplicates&&h.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');h[c]=e.groupNumber,n=P({type:"Group",capturing:!0,name:c,nameRaw:l,number:e.groupNumber,expression:t},a)}],[15,3,function(e,t,r,u,o,s){a=i(u,s),n=P({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,u,o,s){n=P({type:"Group",capturing:!1,expression:t},a=i(u,s))}],[17,3,function(e,t,r,u,o,s){n=P({type:"CharacterClass",negative:!0,expressions:t},a=i(u,s))}],[17,3,function(e,t,r,u,o,s){n=P({type:"CharacterClass",expressions:t},a=i(u,s))}],[18,0,function(){a=null,n=[]}],[18,1,function(e,t){a=i(t,t),n=e}],[19,1,function(e,t){a=i(t,t),n=[e]}],[19,2,function(e,t,r,u){a=i(r,u),n=[e].concat(t)}],[19,4,function(e,t,r,u,o,s,d,l){a=i(o,l),x(e,r),n=[P({type:"ClassRange",from:e,to:r},R(o,d))],u&&(n=n.concat(u))}],[20,1,function(e,t){a=i(t,t),n=e}],[20,2,function(e,t,r,u){a=i(r,u),n=[e].concat(t)}],[20,4,function(e,t,r,u,o,s,d,l){a=i(o,l),x(e,r),n=[P({type:"ClassRange",from:e,to:r},R(o,d))],u&&(n=n.concat(u))}],[21,1,function(e,t){n=E(e,"simple",a=i(t,t))}],[21,1,function(e,t){a=i(t,t),n=e}],[22,1,function(e,t){a=i(t,t),n=e}],[22,1,function(e,t){n=E(e,"meta",a=i(t,t))}]],s={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},d=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],l=[],c=void 0,f=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===r);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+r);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return _(r=r.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],p={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},m={type:"$",value:""};u.lexer=c={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(m);for(var e=this._string.slice(this._cursor),u=p[this.getCurrentState()],n=0;n<u.length;n++){var a=f[u[n]],i=this._match(e,a[0]);if(""===e&&""===i&&this._cursor++,null!==i){(r=i).length;var o=a[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var s,d=o.slice(1);o=o[0],d.length>0&&(s=this._tokensQueue).unshift.apply(s,t(d))}return this.onToken(this._toToken(o,r))}}if(this.isEOF())return this._cursor++,m;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var u=this._string.split("\n")[t-1],n="";throw u&&(n="\n\n"+u+"\n"+" ".repeat(r)+"^\n"),SyntaxError(n+'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}},u.tokenizer=c,u.options={captureLocations:!0};var g={setOptions:function(e){return u.options=e,this},getOptions:function(){return u.options},parse:function(e,i){if(!c)throw Error("Tokenizer instance wasn't specified.");c.initString(e);var f=u.options;i&&(u.options=Object.assign({},u.options,i)),g.onParseBegin(e,c,u.options),l.length=0,l.push(0);var p=c.getNextToken(),m=null;do{p||(u.options=f,j());var y=l[l.length-1],h=s[p.type];d[y].hasOwnProperty(h)||(u.options=f,L(p));var b=d[y][h];if("s"===b[0]){var D=null;u.options.captureLocations&&(D={startOffset:p.startOffset,endOffset:p.endOffset,startLine:p.startLine,endLine:p.endLine,startColumn:p.startColumn,endColumn:p.endColumn}),m=this.onShift(p),l.push({symbol:s[m.type],semanticValue:m.value,loc:D},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var x=o[b.slice(1)],v="function"==typeof x[2],E=v?[]:null,A=v&&u.options.captureLocations?[]:null;if(0!==x[1])for(var C=x[1];C-- >0;){l.pop();var S=l.pop();v&&(E.unshift(S.semanticValue),A&&A.unshift(S.loc))}var F={symbol:x[0]};if(v){r=m?m.value:null,m&&m.value.length;var w=null!==A?E.concat(A):E;x[2].apply(x,t(w)),F.semanticValue=n,A&&(F.loc=a)}var k=l[l.length-1],T=x[0];l.push(F,d[k][T])}else if("acc"===b){l.pop();var _=l.pop();if((1!==l.length||0!==l[0]||c.hasMoreTokens())&&(u.options=f,L(p)),_.hasOwnProperty("semanticValue"))return u.options=f,g.onParseEnd(_.semanticValue),_.semanticValue;return g.onParseEnd(),u.options=f,!0}}while(c.hasMoreTokens()||l.length>1)},setTokenizer:function(e){return c=e,g},getTokenizer:function(){return c},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},y=0,h={},b="";function D(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")}g.onParseBegin=function(e,t){b=e,y=0,h={};var r=e.lastIndexOf("/"),u=e.slice(r);u.includes("x")&&u.includes("u")?t.pushState("xu"):(u.includes("x")&&t.pushState("x"),u.includes("u")&&t.pushState("u"))},g.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++y),e};var v=function(){if(F)return S;F=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"},u=s(r),n={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(n),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 u=e[r];if(Array.isArray(u))for(var n=0;n<u.length;n++)t[u[n]]=r;else t[u]=r}return t}function d(e){return n.hasOwnProperty(e)||a.hasOwnProperty(e)}function l(e){return i.hasOwnProperty(e)||o.hasOwnProperty(e)}return S={isAlias:function(e){return t.hasOwnProperty(e)||u.hasOwnProperty(e)},isValidName:function(n){return e.hasOwnProperty(n)||t.hasOwnProperty(n)||r.hasOwnProperty(n)||u.hasOwnProperty(n)},isValidValue:function(e,t){var r,u;return"General_Category"===(r=e)||"gc"==r?d(t):("Script"===(u=e)||"Script_Extensions"===u||"sc"===u||"scx"===u)&&l(t)},isGeneralCategoryValue:d,isScriptCategoryValue:l,isBinaryPropertyName:function(e){return r.hasOwnProperty(e)||u.hasOwnProperty(e)},getCanonicalName:function(e){return t.hasOwnProperty(e)?t[e]:u.hasOwnProperty(e)?u[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:o.hasOwnProperty(e)?o[e]:u.hasOwnProperty(e)?u[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:u,GENERAL_CATEGORY_VALUE_TO_ALIASES:n,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:i,SCRIPT_VALUE_ALIASES_TO_VALUE:o}}();function E(t,r,u){var n=void 0,a=void 0;switch(r){case"decimal":n=String.fromCodePoint(a=Number(t.slice(1)));break;case"oct":n=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];n=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);n=String.fromCodePoint(a)}break;case"meta":switch(t){case"\\t":a=(n=" ").codePointAt(0);break;case"\\n":a=(n="\n").codePointAt(0);break;case"\\r":a=(n="\r").codePointAt(0);break;case"\\v":a=(n="\v").codePointAt(0);break;case"\\f":a=(n="\f").codePointAt(0);break;case"\\b":a=(n="\b").codePointAt(0);case"\\0":n="\0",a=0;case".":n=".",a=NaN;break;default:a=NaN}break;case"simple":a=(n=t).codePointAt(0)}return P({type:"Char",value:t,kind:r,symbol:n,codePoint:a},u)}var A=/^\\u[0-9a-fA-F]{4}/,C=/^\\u\{[0-9a-fA-F]{1,}\}/,T=/\\u\{[0-9a-fA-F]{1,}\}/;function _(e,t){if(T.test(e)&&"u"!==t&&"xu"!==t&&"u_class"!==t)throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var I=/\\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 B(e){return e.replace(RegExp(I,"g"),function(e,t,r,u,n,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):u?String.fromCodePoint(parseInt(u,16)):n?String.fromCodePoint(parseInt(n,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function P(e,t){return u.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 R(e,t){return u.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function L(e){"$"===e.type&&j(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function j(){throw SyntaxError("Unexpected end of input.")}return w=g}(),t=e.parse.bind(e);return e.parse=function(e,r){return t(""+e,r)},e.setOptions({captureLocations:!1}),T=e}function aM(){if(B)return I;B=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),t="expressions",r="expression",u=function(){function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");this.node=e,this.parentPath=t,this.parent=t?t.node:null,this.property=r,this.index=n}return e(u,[{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 n=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!=n?(a||(a=t),this._enforceProp(a),this.node[a][n]=e,i=u.getForNode(e,this,a,n)):(a||(a=r),this._enforceProp(a),this.node[a]=e,i=u.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 u=this.node[r].length;return this.setChild(e,u,r)}},{key:"insertChildAt",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;this._enforceProp(n),this.node[n].splice(r,0,e),r<=u.getTraversingIndex()&&u.updateTraversingIndex(1),this._rebuildIndex(this.node,n)}},{key:"remove",value:function(){if(!this.isRemoved()&&(u.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=u.getTraversingIndex()&&u.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=u.getForNode(e),n=0;n<e[t].length;n++)u.getForNode(e[t][n],r,t,n).index=n}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(e){return(u.registry.delete(this.node),this.node=e,this.parent)?(null!==this.index?this.parent[this.property][this.index]=e:this.parent[this.property]=e,u.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?u.getForNode(this.node.expressions[e],this,t,e):this.node.expression&&0==e?u.getForNode(this.node.expression,this,r):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,n)===JSON.stringify(e.node,n)}},{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:n,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?u.getForNode(this.parent[this.property][this.index-1],u.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?u.getForNode(this.parent[this.property][this.index+1],u.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,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!e)return null;u.registry.has(e)||u.registry.set(e,new u(e,t,r,-1==n?null:n));var a=u.registry.get(e);return null!==t&&(a.parentPath=t,a.parent=a.parentPath.node),null!==r&&(a.property=r),n>=0&&(a.index=n),a}},{key:"initRegistry",value:function(){u.registry||(u.registry=new Map),u.registry.clear()}},{key:"updateTraversingIndex",value:function(e){return u.traversingIndexStack[u.traversingIndexStack.length-1]+=e}},{key:"getTraversingIndex",value:function(){return u.traversingIndexStack[u.traversingIndexStack.length-1]}}]),u}();function n(e,t){if("loc"!==e)return t}return u.initRegistry(),u.traversingIndexStack=[],I=u}function az(){if(R)return P;R=1;var e=aM();return P={traverse:function(t,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function n(t,r,u,n){var a=e.getForNode(r);return e.getForNode(t,a,u,n)}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]:{},u=r.pre,n=r.post,a=r.skipProperty;!function t(r,i,o,s){if(r&&"string"==typeof r.type){var d=void 0;if(u&&(d=u(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)}}n&&n(r,i,o,s)}}(t,null)}(t,{pre:function(e,t,a,i){var o=void 0;u.asNodes||(o=n(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"])if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,t,a,i);var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g)if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,t,a,i)}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,t,a,i){if(e){var o=void 0;u.asNodes||(o=n(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m)if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,t,a,i)}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})}}}function aU(){if(j)return L;j=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),t=aN(),r=a$(),u=az(),n=function(){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");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 L={TransformResult:n,transform:function(e,t){var a=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(a=r.parse(e,{captureLocations:!0})),u.traverse(a,t),new n(a)}}}function aq(){return K?J:(K=1,J={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 aW(){return eF?eS:(eF=1,eS={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function aV(){if(ek)return ew;ek=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)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 u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),r=aW(),u=r.EPSILON,n=r.EPSILON_CLOSURE;return ew=function(){function r(e,t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");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 u in r)u!==n&&this._alphabet.add(u)}}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 u,n=this.getAcceptingStates()[Symbol.iterator]();!(e=(u=n.next()).done);e=!0){var a=u.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&n.return&&n.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 u(n){if(!r.has(n)){r.add(n),n.number=r.size,t._transitionTable[n.number]={},n.accepting&&t._acceptingStates.add(n);var i=n.getTransitions(),o=!0,s=!1,d=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,p=e(f,2),m=p[0],g=p[1],y=[];a.add(m);var h=!0,b=!1,D=void 0;try{for(var x,v=g[Symbol.iterator]();!(h=(x=v.next()).done);h=!0){var E=x.value;u(E),y.push(E.number)}}catch(e){b=!0,D=e}finally{try{!h&&v.return&&v.return()}finally{if(b)throw D}}t._transitionTable[n.number][m]=y}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}}}(this.in),r.forEach(function(e){delete t._transitionTable[e.number][u],t._transitionTable[e.number][n]=[].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 aZ(){if(eN)return eO;eN=1;var e=aV(),t=function(){if(ej)return eL;ej=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}(),t=function(){if(eR)return eP;eR=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}();return eP=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accepting;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");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=aW().EPSILON;return eL=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function u(){if(!(this instanceof u))throw TypeError("Cannot call a class as a function");var e=(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(u,t):u.__proto__=t),e(u,[{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 u=!0,n=!1,a=void 0;try{for(var i,o=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(u=(i=o.next()).done);u=!0)if(i.value.matches("",t))return!0}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}return!1}var s=e[0],d=e.slice(1),l=this.getTransitionsOnSymbol(s),c=!0,f=!1,p=void 0;try{for(var m,g=l[Symbol.iterator]();!(c=(m=g.next()).done);c=!0)if(m.value.matches(d))return!0}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}var y=!0,h=!1,b=void 0;try{for(var D,x=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(y=(D=x.next()).done);y=!0)if(D.value.matches(e,t))return!0}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(r),u=e._epsilonClosure=new Set;u.add(e);var n=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;u.has(d)||(u.add(d),d.getEpsilonClosure().forEach(function(e){return u.add(e)}))}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}}(),this._epsilonClosure}}]),u}(t)}(),r=aW().EPSILON;function u(r){var u=new t,n=new t({accepting:!0});return new e(u.addTransition(r,n),n)}return eO={alt:function(t){for(var u=arguments.length,n=Array(u>1?u-1:0),a=1;a<u;a++)n[a-1]=arguments[a];var i=!0,o=!1,s=void 0;try{for(var d,l=n[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c,f=d.value;c=t,c.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:u,e:function(){return u(r)},or:function(u){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;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;u=function(u,n){var a=new t,i=new t;return a.addTransition(r,u.in),a.addTransition(r,n.in),i.accepting=!0,u.out.accepting=!1,n.out.accepting=!1,u.out.addTransition(r,i),n.out.addTransition(r,i),new e(a,i)}(u,f)}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return u},rep:function(e){return e.in.addTransition(r,e.out),e.out.addTransition(r,e.in),e},repExplicit:function(u){var n=new t,a=new t({accepting:!0});return n.addTransition(r,u.in),n.addTransition(r,a),u.out.accepting=!1,u.out.addTransition(r,a),a.addTransition(r,u.in),new e(n,a)},plusRep:function(e){return e.out.addTransition(r,e.in),e},questionRep:function(e){return e.in.addTransition(r,e.out),e}}}var aG=rZ(eH?eG:(eH=1,eG=function(){if(eZ)return eV;eZ=1;var e=function(){if(N)return O;N=1;var e=E?v:(E=1,v={dotAll:y?g:(y=1,g={_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",u="";this._hasUFlag&&(r="\\u{10FFFF}",u="\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:u}}]})}}}),namedCapturingGroups:b?h:(b=1,h={_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:x?D:(x=1,D={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=aU();return O={transform:function(r){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=u.length>0?u:Object.keys(e),a=void 0,i={};return n.forEach(function(u){if(!e.hasOwnProperty(u))throw Error("Unknown compat-transform: "+u+". Available transforms are: "+Object.keys(e).join(", "));var n=e[u];r=(a=t.transform(r,n)).getAST(),"function"==typeof n.getExtra&&(i[u]=n.getExtra())}),a.setExtra(i),a}}}(),t=aN(),r=function(){if(eC)return eA;eC=1;var e=M?$:(M=1,$=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var u in r=Array.isArray(t)?[]:{},t)r[u]=e(t[u]);return r}),t=a$(),r=aU(),u=eE?ev:(eE=1,ev=new Map([["charSurrogatePairToSingleUnicode",U?z:(U=1,z={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",W?q:(W=1,q={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=(u=r).from,a=u.to,n.codePoint>=48&&n.codePoint<=57&&a.codePoint>=48&&a.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&a.codePoint>=65&&a.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&a.codePoint>=97&&a.codePoint<=122))){if((i=t.codePoint)>=32&&i<=126){var u,n,a,i,o,s,d=String.fromCodePoint(t.codePoint),l={type:"Char",kind:"simple",value:d,symbol:d,codePoint:t.codePoint};o=d,("ClassRange"===(s=r.type)||"CharacterClass"===s?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(l.escaped=!0),e.replace(l)}}}})],["charCaseInsensitiveLowerCaseTransform",Z?V:(Z=1,V={_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,u,n=e.node,a=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===a.type){if(!this._AZClassRanges.has(a)&&(r=(t=a).from,u=t.to,!(r.codePoint>=65)||!(r.codePoint<=90)||!(u.codePoint>=65)||!(u.codePoint<=90)))return;this._AZClassRanges.add(a)}var i=n.symbol.toLowerCase();i!==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 u,n={lead:(Math.floor(((u=r)-65536)/1024)+55296).toString(16),trail:((u-65536)%1024+56320).toString(16)},a=n.lead,i=n.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-i.length)+i}else{if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var o=r.toString(16);return"\\u"+"0".repeat(4-o.length)+o}return e}(i,n),n.symbol=i,n.codePoint=i.codePointAt(0))}}})],["charClassRemoveDuplicates",H?G:(H=1,G={CharacterClass:function(e){for(var t=e.node,r={},u=0;u<t.expressions.length;u++){var n=e.getChild(u),a=n.jsonEncode();r.hasOwnProperty(a)&&(n.remove(),u--),r[a]=!0}}})],["quantifiersMerge",function(){if(Y)return X;Y=1;var e=aq().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 X={Repetition:function(u){var n=u.node;if("Alternative"===u.parent.type&&u.index){var a=u.getPreviousSibling();if(a)if("Repetition"===a.node.type){if(!a.getChild().hasEqualSource(u.getChild()))return;var i=r(a.node.quantifier),o=i.from,s=i.to,d=r(n.quantifier),l=d.from,c=d.to;if(a.node.quantifier.greedy!==n.quantifier.greedy&&!t(a.node.quantifier)&&!t(n.quantifier))return;n.quantifier.kind="Range",n.quantifier.from=o+l,s&&c?n.quantifier.to=s+c:delete n.quantifier.to,(t(a.node.quantifier)||t(n.quantifier))&&(n.quantifier.greedy=!0),a.remove()}else{if(!a.hasEqualSource(u.getChild()))return;e(n.quantifier),a.remove()}}}}}()],["quantifierRangeToSymbol",ee?Q:(ee=1,Q={Quantifier:function(e){var t,r,u,n;"Range"===e.node.kind&&(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=(u=e).node).from&&1===n.to&&u.parentPath.replace(u.parentPath.node.expression))}})],["charClassClassrangesToChars",er?et:(er=1,et={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(en)return eu;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}en=1,eu={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var r,a,i,o,s,d,l,c,f,p,m;(r=e).node.expressions.forEach(function(e,t){var u;"ClassRange"===(u=e).type&&"0"===u.from.value&&"9"===u.to.value&&r.getChild(t).replace({type:"Char",value:"\\d",kind:"meta"})}),a=e,i=this._hasIFlag,o=this._hasUFlag,s=a.node,d=null,l=null,c=null,f=null,p=null,m=null,s.expressions.forEach(function(e,t){var r,s,g;u(e,"\\d")?d=a.getChild(t):"ClassRange"===(r=e).type&&"a"===r.from.value&&"z"===r.to.value?l=a.getChild(t):"ClassRange"===(s=e).type&&"A"===s.from.value&&"Z"===s.to.value?c=a.getChild(t):"Char"===(g=e).type&&"_"===g.value&&"simple"===g.kind?f=a.getChild(t):i&&o&&n(e,383)?p=a.getChild(t):i&&o&&n(e,8490)&&(m=a.getChild(t))}),d&&(l&&c||i&&(l||c))&&f&&(!o||!i||p&&m)&&(d.replace({type:"Char",value:"\\w",kind:"meta"}),l&&l.remove(),c&&c.remove(),f.remove(),p&&p.remove(),m&&m.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 n=r.expressions.find(function(e){return u(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=NaN,r.expressions.map(function(r,u){return t.some(function(e){return e(r)})?e.getChild(u):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 u(t,e)}})),e([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return n(t,e)}})),[function(e){return"ClassRange"===e.type&&n(e.from,8192)&&n(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 u(e,t){return r(e,t,"meta")}function n(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}return eu}()],["charClassToSingleChar",ei?ea:(ei=1,ea={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 u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,u,n,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(u=o,!/^\\[dwsDWS]$/.test(u))return;n=o,o=/[dws]/.test(n)?n.toUpperCase():n.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}})],["charEscapeUnescape",function(){if(es)return eo;function e(e,t,r){for(var u=e,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];n&&"Char"===n.type&&"simple"===n.kind&&!n.escaped&&/\d/.test(n.value);)r?u--:u++,n=(r?u>=0:u<t.expressions.length)&&t.expressions[u];return Math.abs(e-u)}function t(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}return es=1,eo={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(r){var u,n,a,i,o,s,d,l,c,f,p,m,g=r.node;!g.escaped||(u=r,n=this._hasXFlag,a=u.node.value,i=u.index,"CharacterClass"!==(o=u.parent).type&&"ClassRange"!==o.type?(s=a,d=i,l=o,c=n,"{"===s?function(r,u){if(null==r)return!1;var n=e(r+1,u),a=r+n+1,i=a<u.expressions.length&&u.expressions[a];if(n){if(t(i,"}"))return!0;if(t(i,","))return n=e(a+1,u),t(i=(a=a+n+1)<u.expressions.length&&u.expressions[a],"}")}return!1}(d,l):"}"===s?function(r,u){if(null==r)return!1;var n=e(r-1,u,!0),a=r-n-1,i=a>=0&&u.expressions[a];return!!(n&&t(i,"{"))||!!t(i,",")&&(n=e(a-1,u,!0),i=(a=a-n-1)<u.expressions.length&&u.expressions[a],n&&t(i,"{"))}(d,l):!!(c&&/[ #]/.test(s))||/[*[()+?^$./\\|]/.test(s)):(f=a,p=i,m=o,"^"===f?0===p&&!m.negative:"-"===f||/[\]\\]/.test(f)))||delete g.escaped}}}()],["charClassClassrangesMerge",function(){if(el)return ed;function e(e,n){var a=t(e),i=t(n);if(a===i){if("ClassRange"===e.type&&"ClassRange"!==n.type)return -1;if("ClassRange"===n.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===n.type)return t(e.to)-t(n.to);if(r(e)&&r(n)||u(e)&&u(n))return e.value<n.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 u(e){return"Char"===e.type&&"control"===e.kind}function n(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 el=1,ed={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(t){var u=t.node.expressions,s=[];u.forEach(function(e){r(e)&&s.push(e.value)}),u.sort(e);for(var d=0;d<u.length;d++){var l,c,f=u[d];if(function(e,t,u){for(var o=0;o<t.length;o++)if(function e(t,u,o){return"ClassRange"===t.type?e(t.from,u,o)&&e(t.to,u,o):!!("\\S"===u&&(r(t,"\\w")||r(t,"\\d"))||"\\D"===u&&(r(t,"\\W")||r(t,"\\s"))||"\\w"===u&&r(t,"\\d")||"\\W"===u&&r(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===u?n(t):"\\S"===u?!n(t):"\\d"===u?a(t):"\\D"===u?!a(t):"\\w"===u?i(t,o):"\\W"===u&&!i(t,o))}(e,t[o],u))return!0;return!1}(f,s,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;else if(o(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;else if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(f,u[d-1])||(l=f,(c=u[d+1])&&"ClassRange"===c.type&&o(l)&&c.from.codePoint===l.codePoint+1&&(c.from=l,1)))u.splice(d,1),d--;else{var p=function(e,t,r){if(!o(e))return 0;for(var u=0;t>0;){var n=r[t],a=r[t-1];if(o(a)&&a.codePoint===n.codePoint-1)u++,t--;else break}return u>1?(r[t]={type:"ClassRange",from:r[t],to:e},u):0}(f,d,u);u.splice(d-p+1,p),d-=p}}}}}()],["disjunctionRemoveDuplicates",function(){if(ef)return ec;ef=1;var e=aM(),t=aq(),r=t.disjunctionToList,u=t.listToDisjunction;return ec={Disjunction:function(t){var n=t.node,a={},i=r(n).filter(function(t){var r=t?e.getForNode(t).jsonEncode():"null";return!a.hasOwnProperty(r)&&(a[r]=t,!0)});t.replace(u(i))}}}()],["groupSingleCharsToCharClass",function(){if(em)return ep;em=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 ep={Disjunction:function(t){var r=t.node,u=t.parent;if(e[u.type]){var n=new Map;if(function e(t,r){if(!t)return!1;var u=t.type;if("Disjunction"===u){var n=t.left,a=t.right;return e(n,r)&&e(a,r)}if("Char"===u){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===u&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(r,n)&&n.size){var a={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map(function(e){return n.get(e)})};e[u.type](t.getParent(),a)}}}}}()],["removeEmptyGroup",ey?eg:(ey=1,eg={Group:function(e){var t=e.node,r=e.parent,u=e.getChild();t.capturing||u||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}})],["ungroup",function(){if(eb)return eh;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 eb=1,eh={Group:function(t){var r=t.node,u=t.parent,n=t.getChild();if(!r.capturing&&n&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var u=t.expressions[r-1];return null==u||("Backreference"!==u.type||"number"!==u.kind)&&("Char"!==u.type||"decimal"!==u.kind)}(t)&&("Disjunction"!==n.node.type||"RegExp"===u.type)&&("Repetition"!==u.type||"Char"===n.node.type||"CharacterClass"===n.node.type))if("Alternative"===n.node.type){var a=t.getParent();"Alternative"===a.node.type&&a.replace({type:"Alternative",expressions:[].concat(e(u.expressions.slice(0,t.index)),e(n.node.expressions),e(u.expressions.slice(t.index+1)))})}else t.replace(n.node)}}}()],["combineRepeatingPatterns",function(){if(ex)return eD;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}ex=1;var t=aM(),r=aq().increaseQuantifierByOne;return eD={Alternative:function(u){for(var n=u.node,a=1;a<n.expressions.length;){var i=u.getChild(a);if((a=Math.max(1,function(r,u,n){for(var a=r.node,i=Math.ceil(n/2),o=0;o<i;){var s=n-2*o-1,d=void 0,l=void 0;if(0===o?(d=u,l=r.getChild(s)):(d=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(n-o,n)),[u.node])}),l=t.getForNode({type:"Alternative",expressions:[].concat(e(a.expressions.slice(s,n-o)))})),d.hasEqualSource(l)){for(var c=0;c<2*o+1;c++)r.getChild(s).remove();return u.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 n}(u,i,a)))>=n.expressions.length||(i=u.getChild(a),(a=Math.max(1,function(u,n,a){for(var i=u.node,o=0;o<a;){var s=u.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=n).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++)u.getChild(o+1).remove();return r(s.node.quantifier),o}}o++}return a}(u,i,a)))>=n.expressions.length))break;i=u.getChild(a),a=Math.max(1,function(u,n,a){var i=u.node;if("Repetition"===n.node.type&&n.node.quantifier.greedy){var o=n.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=u.getChild(a-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(o)){for(var l=a-d;l<a;l++)u.getChild(a-d).remove();return r(n.node.quantifier),a-d}}return a}(u,i,a)),a++}}}}()]]));return eA={optimize:function(n){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(u.keys())).filter(function(e){return!d.includes(e)}),c=n;n instanceof RegExp&&(n=""+n),"string"==typeof n&&(c=t.parse(n));var f=new r.TransformResult(c),p=void 0;do p=f.toString(),c=e(f.getAST()),l.forEach(function(t){if(!u.has(t))throw Error("Unknown optimization-transform: "+t+". Available transforms are: "+Array.from(u.keys()).join(", "));var n=u.get(t),a=r.transform(c,n);a.toString()!==f.toString()&&(a.toString().length<=f.toString().length?f=a:c=e(f.getAST()))});while(f.toString()!==p);return f}}}(),u=a$(),n=aU(),a=az(),i=function(){if(eU)return ez;eU=1;var e=aV(),t=function(){if(eB)return eI;eB=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),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(e_)return eT;e_=1;var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],u=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(u=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);u=!0);}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)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 eT={minimize:function(u){var n=u.getTransitionTable(),a=Object.keys(n),i=u.getAlphabet(),o=u.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 u=0;u<e.length;u++){var n=e[u],a=r[u];if(n.size!==a.size||[].concat(t(n)).sort().join(",")!==[].concat(t(a)).sort().join(","))return!1}return!0}(l,c);)!function(){var e={},u=!0,a=!1,o=void 0;try{for(var s,f=l[Symbol.iterator]();!(u=(s=f.next()).done);u=!0){var p=s.value,m={},g=Array.isArray(p)?p:Array.from(p),y=g[0],h=g.slice(1);m[y]=new Set([y]);var b=!0,D=!1,x=void 0;try{e:for(var v,E=h[Symbol.iterator]();!(b=(v=E.next()).done);b=!0){var A=v.value,C=!0,S=!1,F=void 0;try{for(var w,k=Object.keys(m)[Symbol.iterator]();!(C=(w=k.next()).done);C=!0){var T=w.value;if(function(e,t,u,n){var a=!0,i=!1,o=void 0;try{for(var s,d=n[Symbol.iterator]();!(a=(s=d.next()).done);a=!0){var l=s.value;if(!function(e,t,u,n){if(!r[e]||!r[t])return!1;var a=u[e][n],i=u[t][n];return!a&&!i||r[e].has(a)&&r[t].has(i)}(e,t,u,l))return!1}}catch(e){i=!0,o=e}finally{try{!a&&d.return&&d.return()}finally{if(i)throw o}}return!0}(A,T,n,i)){m[T].add(A),m[A]=m[T];continue e}}}catch(e){S=!0,F=e}finally{try{!C&&k.return&&k.return()}finally{if(S)throw F}}m[A]=new Set([A])}}catch(e){D=!0,x=e}finally{try{!b&&E.return&&E.return()}finally{if(D)throw x}}Object.assign(e,m)}}catch(e){a=!0,o=e}finally{try{!u&&f.return&&f.return()}finally{if(a)throw o}}r=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));d.push([].concat(t(_))),l=d[d.length-1],c=d[d.length-2]}();var f=new Map,p=1;l.forEach(function(e){return f.set(e,p++)});var m={},g=new Set,y=!0,h=!1,b=void 0;try{for(var D,x=f.entries()[Symbol.iterator]();!(y=(D=x.next()).done);y=!0){var v=D.value,E=e(v,2),A=E[0],C=E[1];m[C]={};var S=!0,F=!1,w=void 0;try{for(var k,T=i[Symbol.iterator]();!(S=(k=T.next()).done);S=!0){var _=k.value;!function(e,t){var r=!0,u=!1,n=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;o.has(s)&&g.add(t)}}catch(e){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}}(A,C);var I=void 0,B=!0,P=!1,R=void 0;try{for(var L,j=A[Symbol.iterator]();!(B=(L=j.next()).done)&&!(I=n[L.value][_]);B=!0);}catch(e){P=!0,R=e}finally{try{!B&&j.return&&j.return()}finally{if(P)throw R}}I&&(m[C][_]=f.get(r[I]))}}catch(e){F=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(F)throw w}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}return u.setTransitionTable(m),u.setAcceptingStateNumbers(g),u}}}(),u=aW().EPSILON_CLOSURE;return eI=function(){function n(e){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this._nfa=e}return e(n,[{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(),n=Object.keys(r);this._acceptingStateNumbers=new Set;for(var a=[r[n[0]][u]],i=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),s={};a.length>0;){var d=a.shift(),l=d.join(",");s[l]={};var c=!0,f=!1,p=void 0;try{for(var m,g=i[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var y=m.value,h=[];!function(t){var r=!0,u=!1,n=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){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}}(d);var b=!0,D=!1,x=void 0;try{for(var v,E=d[Symbol.iterator]();!(b=(v=E.next()).done);b=!0){var A=r[v.value][y];if(A){var C=!0,S=!1,F=void 0;try{for(var w,k=A[Symbol.iterator]();!(C=(w=k.next()).done);C=!0){var T=w.value;r[T]&&h.push.apply(h,t(r[T][u]))}}catch(e){S=!0,F=e}finally{try{!C&&k.return&&k.return()}finally{if(S)throw F}}}}}catch(e){D=!0,x=e}finally{try{!b&&E.return&&E.return()}finally{if(D)throw x}}var _=new Set(h),I=[].concat(t(_));if(I.length>0){var B=I.join(",");s[l][y]=B,s.hasOwnProperty(B)||a.unshift(I)}}}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var u in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var n=e[u],a={};for(var i in n)a[i]=t[n[i]];r[t[u]]=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,u=this.getTransitionTable();e[r];)if(!(t=u[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),n}()}(),r=function(){if(eM)return e$;eM=1;var e=a$(),t=aZ(),r=t.alt,u=t.char,n=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 n(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 u(e.value)},Group:function(e){return s(e.expression)}};return e$={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return ez={NFA:e,DFA:t,builders:aZ(),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(eW)return eq;eW=1;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var u=t[r];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}return function(t,r,u){return r&&e(t.prototype,r),u&&e(t,u),t}}();return eq={RegExpTree:function(){function t(e,r){var u=r.flags,n=r.groups,a=r.source;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this._re=e,this._groups=n,this.flags=u,this.source=a||e.source,this.dotAll=u.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 u=this._groups[r];t.groups[r]=t[u]}return t}}]),t}()}}().RegExpTree;return eV={parser:u,fa:i,TransformResult:n.TransformResult,parse:function(e,t){return u.parse(""+e,t)},traverse:function(e,t,r){return a.traverse(e,t,r)},transform:function(e,t){return n.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 u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=u.blacklist;return r.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(t,r){return e.transform(t,r)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),u=r.getExtra();e=u.namedCapturingGroups?new o(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:u.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}}}()));let aH="better-regex",aJ="better-regex/parse-error",aK={create:e=>{let{sortCharacterClasses:t}=e.options[0],r=[];!1===t&&r.push("charClassClassrangesMerge"),e.on("Literal",e=>{if(!rx(e))return;let{raw:t,regex:u}=e;if(u.flags.includes("u")||u.flags.includes("v"))return;let n=t;try{n=aG.optimize(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:aJ,data:{original:t,error:r.message}}}if(t===n)return;let a={node:e,messageId:aH,data:{original:t,optimized:n}};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(a,{fix:t=>t.replaceText(e,n)}):a}),e.on("NewExpression",e=>{if(!rC(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!rb(t))return;let u=t.value,n=aO(u,rb(r)?r.value:"");if(u!==n)return{node:e,messageId:aH,data:{original:u,optimized:n},fix:e=>e.replaceText(t,rH(n,t.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"}}}],defaultOptions:[{sortCharacterClasses:!0}],messages:{[aH]:"{{original}} can be optimized to {{optimized}}.",[aJ]:"Problem parsing {{original}}: {{error}}"}}},aX="escape-uppercase",aY="escape-lowercase",aQ=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,a0=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[A-Za-z])/g,a1=({node:e,original:t,regex:r=aQ,lowercase:u,fix:n})=>{let a=t.replace(r,e=>e[0]+e.slice(1)[u?"toLowerCase":"toUpperCase"]());if(a!==t)return{node:e,messageId:u?aY:aX,fix:t=>n?n(t,a):t.replaceText(e,a)}},a3="no-hex-escape";function a2(e,t,r){let u=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==u)return{node:t,messageId:a3,fix:r=>"TemplateElement"===t.type?nd(t,u,e,r):r.replaceText(t,u)}}let a4=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a5=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError","SuppressedError"],a8="missing-message",a6="message-is-empty-string",a9="message-is-not-a-string",a7=new Map([["AggregateError",1],["SuppressedError",2]]),ie=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],it=e=>"instanceof"===e.value&&"Keyword"===e.type,ir="no-instanceof-builtins",iu="switch-to-type-of",ia=new Set(["String","Number","Boolean","BigInt","Symbol"]),ii=[...a5,"Map","Set","WeakMap","WeakRef","WeakSet","ArrayBuffer",...ie,"Object","RegExp","Promise","Proxy","DataView","Date","SharedArrayBuffer","FinalizationRegistry"],io=(e,t)=>function*(r){let{left:u,right:n}=e,a=uu(t,e),i=a.getTokenAfter(u,it),{sourceCode:o}=t,s=o.getAncestors(e).findLast(e=>"VExpressionContainer"===e.type),d=s?'"'===o.getText(s)[0]?"'":'"':"'";yield nr(r,e,t);let l=rm(u,{sourceCode:a});yield r.insertTextBeforeRange(l,"typeof "),yield r.replaceText(i,"===");let c=rm(n,{sourceCode:a});yield r.replaceTextRange(c,d+o.getText(n).toLowerCase()+d)},is={create:uP(e=>{let{useErrorIsError:t=!1,strategy:r="loose",include:u=[],exclude:n=[]}=e.options[0]??{},a=new Set("strict"===r?[...ii,...u]:u);e.on("BinaryExpression",r=>{let{right:u,operator:i}=r;if("Identifier"!==u.type||"instanceof"!==i||n.includes(u.name))return;let o=u.name,s={node:r,messageId:ir};if("Array"===o||"Error"===o&&t){let t="Array"===o?"Array.isArray":"Error.isError";return s.fix=function*(u){let{left:n,right:a}=r,i=uu(e,r),o=i.getTokenAfter(n,it);yield nr(u,r,e);let s=rm(n,{sourceCode:i});yield u.insertTextBeforeRange(s,t+"("),yield u.insertTextAfterRange(s,")"),yield nl(o,"",u,e,i),yield nl(a,"",u,e,i)},s}return"Function"===o?(s.fix=io(r,e),s):ia.has(o)?(s.suggest=[{messageId:iu,data:{type:o.toLowerCase()},fix:io(r,e)}],s):a.has(o)?s:void 0})}),meta:{type:"problem",docs:{description:"Disallow `instanceof` with built-in objects",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",properties:{useErrorIsError:{type:"boolean"},strategy:{enum:["loose","strict"]},include:{type:"array",items:{type:"string"}},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1}],defaultOptions:[{useErrorIsError:!1,strategy:"loose",include:[],exclude:[]}],hasSuggestions:!0,messages:{[ir]:"Avoid using `instanceof` for type checking as it can lead to unreliable results.",[iu]:"Switch to `typeof … === '{{type}}'`."}}},id="prefer-type-error",il=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"]),ic=new Set(["isNaN","isFinite"]),ip=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&il.has(e.name)||!1===r&&ic.has(e.name)),im=(e,t)=>!!ip(e.property,t,!0)||"MemberExpression"===e.object.type&&im(e.object,t),ig=/^(?:[A-Z][\da-z]*)*Error$/,iy=(e,t)=>{switch(e.type){case"Identifier":return ip(e,t,!1);case"MemberExpression":return im(e,t);case"CallExpression":return iy(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&iy(e.argument);case"BinaryExpression":{let{operator:r,left:u,right:n}=e;if("instanceof"===r)return!("Identifier"===n.type?ig.test(n.name):"MemberExpression"===n.type&&!n.optional&&!n.computed&&"Identifier"===n.property.type&&ig.test(n.property.name));return iy(u,t)||iy(n,t)}case"LogicalExpression":return iy(e.left,t)&&iy(e.right,t);default:return!1}},ih="consistentDestructuring",ib="consistentDestructuringSuggest",iD=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...ie],ix="error-date",iv="suggestion-date",iE=new nK({objects:["BigInt","Boolean","Number","String","Symbol"],type:nK.CONSTRUCT,handle:function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=t=>ne(e,r,t)),u}}),iA=new nK({objects:iD,type:nK.CALL,handle:function({node:e,path:[t]},r){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}if("Date"===t){function*u(t){yield t.replaceText(e,"String(new Date())"),yield nr(t,e,r)}let t={node:e,messageId:ix};return 0===r.sourceCode.getCommentsInside(e).length&&0===e.arguments.length?t.fix=u:t.suggest=[{messageId:iv,fix:u}],t}return{node:e,messageId:"enforce",data:{name:t},fix:t=>nu(e,r,t)}}}),iC="error/array-push",iS="suggestion",iF=e=>rP(e,{property:"classList",computed:!1}),iw=[{description:"Array#push()",test:e=>rR(e,{method:"push",optionalCall:!1}),ignore:["stream.push","this.push","this.stream.push","process.stdin.push","process.stdout.push","process.stderr.push"]},{description:"Element#classList.add()",test:e=>rR(e,{method:"add",optionalCall:!1,optionalMember:!1})&&iF(e.callee.object)},{description:"Element#classList.remove()",test:e=>rR(e,{method:"remove",optionalCall:!1,optionalMember:!1})&&iF(e.callee.object)},{description:"importScripts()",test:e=>rA(e,{name:"importScripts"})}],ik={create:function(e){let{ignore:t}=e.options[0],{sourceCode:r}=e;e.on("CallExpression",function*(u){for(let{description:n,test:a,ignore:i=[]}of iw){if(!a(u))continue;let o=[...i,...t];if(rO(u.callee,o))continue;let s=u.parent;if("ChainExpression"===s.type&&u===s.expression&&(s=s.parent),"ExpressionStatement"!==s.type)continue;let d=uz(s,e);if(d?.type!=="ExpressionStatement")continue;let l=d.expression;if("ChainExpression"===l.type&&(l=l.expression),!a(l)||!ux(l.callee,u.callee))continue;let c=u.arguments,f={node:"Identifier"===u.callee.type?u.callee:u.callee.property,messageId:iC,data:{description:n}},p=function*(t){if(c.length>0){let r=ut(e,u),{trailingCommaToken:n,closingParenthesisToken:a}=ue(l,e);yield n?t.insertTextAfter(n,` ${r}`):t.insertTextBefore(a,l.arguments.length>0?`, ${r}`:r)}let n=!tN(r.getLastToken(d))&&tN(r.getLastToken(s)),[,a]=r.getRange(d),[,i]=r.getRange(s);yield t.replaceTextRange([a,i],n?";":"")};c.some(e=>t9(e,r))?f.suggest=[{messageId:iS,fix:p}]:f.fix=p,yield f}})},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],defaultOptions:[{ignore:[]}],messages:{[iC]:"Do not call `{{description}}` multiple times.",[iS]:"Merge with previous one."}}},iT="no-process-exit",i_=e=>rh(e,"node:worker_threads")||rh(e,"worker_threads"),iI="no-single-promise-in-promise-methods/error",iB="no-single-promise-in-promise-methods/unwrap",iP="no-single-promise-in-promise-methods/use-promise-resolve",iR=["all","any","race"],iL="no-static-only-class",ij=({type:e,value:t})=>"Punctuator"===e&&"="===t,iO=e=>"PropertyDefinition"===e.type,iN="no-unreadable-array-destructuring",i$="spread-in-list",iM="iterable-to-array",iz="iterable-to-array-in-for-of",iU="iterable-to-array-in-yield-star",iq="clone-array",iW=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",iV={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*iZ(e,t,r){let{sourceCode:u}=r,[n,a,i]=u.getFirstTokens(t,3);yield e.remove(n),yield e.remove(a);let[o,s]=u.getLastTokens(t,2);yield e.remove(s),tO(o)&&(yield e.remove(o));let{parent:d}=t;"ReturnStatement"!==d.type&&"ThrowStatement"!==d.type||d.argument!==t||uh(n,i,r)||ry(t,r)?yield nr(e,t,r):yield u9(e,d,r)}let iG="no-useless-switch-case/error",iH="no-useless-switch-case/suggestion",iJ=e=>e.consequent.every(e=>rw(e)),iK="no-useless-undefined",iX=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),iY={create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{if(u){let r=(e=>{for(;e;e=e.upper)if("function"===e.type)return e.block})(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:iK,fix:r}},u=e.options[0];e.on("Identifier",t=>{if(r$(t)&&"ReturnStatement"===t.parent.type&&t.parent.argument===t)return r(t,r=>nl(t,"",r,e),!0)}),e.on("Identifier",t=>{if(r$(t)&&"YieldExpression"===t.parent.type&&!t.parent.delegate&&t.parent.argument===t)return r(t,r=>nl(t,"",r,e))}),u.checkArrowFunctionBody&&e.on("Identifier",t=>{if(r$(t)&&"ArrowFunctionExpression"===t.parent.type&&t.parent.body===t)return r(t,r=>nl(t," {}",r,e),!0)}),e.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)){let[,u]=t.getRange(e.parent.id),[,n]=t.getRange(e);return r(e,e=>e.removeRange([u,n]),!0)}}),e.on("Identifier",u=>{if(r$(u)&&"AssignmentPattern"===u.parent.type&&u.parent.right===u)return r(u,function*(r){let n=u.parent,{left:a}=n,[,i]=t.getRange(a),[,o]=t.getRange(u);yield r.removeRange([i,o]),(a.typeAnnotation||/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename))&&!a.optional&&rB(n.parent)&&n.parent.params.includes(n)&&(yield a.typeAnnotation?r.insertTextBefore(a.typeAnnotation,"?"):r.insertTextAfter(a,"?"))},!0)}),u.checkArguments&&e.on("CallExpression",t=>{var r;let u,n=t.arguments,a=n.at(-1);if(!(!r$(a)||("Identifier"===(r=t.callee).type?u=r.name:"MemberExpression"===r.type&&!1===r.computed&&"Identifier"===r.property.type&&(u=r.property.name),iX.has(u)||"push"===u||"unshift"===u||"includes"===u||"add"===u||"has"===u||"delete"===u||"set"===u||"createContext"===u||/^set[A-Z]/.test(u)||"useRef"===u||"ref"===u))&&(!(!t.optional&&"MemberExpression"===t.callee.type&&!t.callee.computed&&"Identifier"===t.callee.property.type&&"bind"===t.callee.property.name)||1===n.length))return{node:a,messageId:iK,fix:t=>u8(t,a,e)}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],defaultOptions:[{checkArguments:!0,checkArrowFunctionBody:!0}],messages:{[iK]:"Do not use useless `undefined`."}}},iQ="numeric-separators-style";function i0(e,{minimumDigits:t,groupLength:r},u){let{length:n}=e;if(n<t)return e;let a=[];if(u)for(let t=0;t<n;t+=r){let u=Math.min(t+r,n);a.push(e.slice(t,u))}else for(let t=n;t>0;t-=r){let u=Math.max(t-r,0);a.unshift(e.slice(u,t))}return a.join("_")}let i1={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},i3={create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:u,hexadecimal:n,number:a}=e.options[0],i={"0b":{onlyIfContainsSeparator:t,...r},"0o":{onlyIfContainsSeparator:t,...u},"0x":{onlyIfContainsSeparator:t,...n},"":{onlyIfContainsSeparator:t,...a}};e.on("Literal",e=>{let t,r;if(!(rD(e)||rv(e))||rD(e)&&/^0\d+$/.test(e.raw))return;let{raw:u}=e,n=u,a="";rv(e)&&(n=u.slice(0,-1),a="n");let o=n.replaceAll("_",""),{prefix:s,data:d}=(t="",r=o,/^0[box]/i.test(o)&&(t=o.slice(0,2),r=o.slice(2)),{prefix:t,data:r}),{onlyIfContainsSeparator:l}=i[s.toLowerCase()];if(l&&!u.includes("_"))return;let c=function(e,{prefix:t,data:r},u){let n=u[t.toLowerCase()];if(t)return t+i0(r,n);let{number:a,mark:i,sign:o,power:s}=function(e){let{number:t,mark:r="",sign:u="",power:n=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:u,power:n}}(e);return function(e,t){let{integer:r,dot:u,fractional:n}=function(e){let t=e.split("."),[r,u=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:u}}(e);return i0(r,t)+u+i0(n,t,!0)}(a,n)+i+o+i0(s,u[""])}(o,{prefix:s,data:d},i)+a;if(u!==c)return{node:e,messageId:iQ,fix:t=>t.replaceText(e,c)}})},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(i1).map(([e])=>[e,{type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0},groupLength:{type:"integer",minimum:1}}}])),onlyIfContainsSeparator:{type:"boolean"}}}],defaultOptions:[{onlyIfContainsSeparator:!1,binary:i1.binary,octal:i1.octal,hexadecimal:i1.hexadecimal,number:i1.number}],messages:{[iQ]:"Invalid group length in numeric value."}}},i2="error-zero-index",i4="error-shift",i5="error-pop",i8="error-at-zero",i6="error-at-minus-one",i9="error-destructuring-declaration",i7="error-destructuring-assignment",oe="error-variable",ot="suggest-nullish-coalescing-operator",or="suggest-logical-or-operator",ou=(e,t)=>rR(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,...t}),on=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*oa(e,t,r){let{left:u}=on(e),[n]=u.elements,a=t.getText("AssignmentPattern"===n.type?n.left:n);yield r.replaceText(u,a),((e,t)=>{if("AssignmentExpression"!==e.type||t7(e,t))return!1;let{left:r}=on(e),[u]=r.elements,{type:n}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===n||"ObjectPattern"===n})(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let oi=e=>"AssignmentPattern"===on(e).left.elements[0].type,oo=(e,t)=>{let r,u,{property:n}=on(t).right.callee;return oi(t)?r=[{operator:"??",messageId:ot},{operator:"||",messageId:or}].map(({messageId:r,operator:u})=>({messageId:r,*fix(r){yield r.replaceText(n,"find"),yield((e,t,r,u)=>{let{left:n,right:a}=on(e),[i]=n.elements,o=i.right,s=t.getText(o);return(t7(o,t)||"LogicalExpression"===o.type&&(o.operator===u||"||"===u&&"??"===o.operator||"??"===u&&("||"===o.operator||"&&"===o.operator))||"ConditionalExpression"===o.type||"AssignmentExpression"===o.type||"YieldExpression"===o.type||"SequenceExpression"===o.type)&&(s=`(${s})`),r.insertTextAfter(a,` ${u} ${s}`)})(t,e,r,u),yield oa(t,e,r)}})):u=function*(r){yield r.replaceText(n,"find"),yield oa(t,e,r)},{fix:u,suggest:r}},os=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,od=e=>{let{left:t,right:r}=on(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type},ol={create:e=>{let{sourceCode:t}=e,{checkFromLast:r}=e.options[0];e.on("MemberExpression",t=>{if(t.computed&&"Literal"===t.property.type&&"0"===t.property.raw&&ou(t.object)&&!ui(t))return{node:t.object.callee.property,messageId:i2,fix:r=>[r.replaceText(t.object.callee.property,"find"),na(r,t,e)]}}),e.on("CallExpression",t=>{if(rR(t,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&ou(t.callee.object))return{node:t.callee.object.callee.property,messageId:i4,fix:r=>[r.replaceText(t.callee.object.callee.property,"find"),...ni(r,t,e)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&ou(e.init,{optionalMember:!1}))return{node:e.init.callee.property,messageId:i9,...oo(t,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&&ou(e.right,{optionalMember:!1}))return{node:e.right.callee.property,messageId:i7,...oo(t,e)}}),e.on("VariableDeclarator",r=>{if(!("Identifier"===r.id.type&&ou(r.init,{optionalMember:!1})&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&("ExportNamedDeclaration"!==r.parent.parent.type||r.parent.parent.declaration!==r.parent)))return;let u=t.getScope(r),n=tR(u,r.id),a=un(n).filter(e=>e!==r.id);if(0===a.length)return;let i=[],o=[];for(let e of a)if(os(e))i.push(e.parent);else{if(!od(e))return;o.push(e.parent)}let s={node:r.init.callee.property,messageId:oe};return o.some(e=>oi(e))||(s.fix=function*(a){yield a.replaceText(r.init.callee.property,"find");let s=(e=>{let t=uN.singular(e);if(t!==e)return t})(r.id.name);if(s){let r=r9(s,rQ(u));yield ns(n,r,e,a),yield function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}(a,t.getRange(t.ast))}for(let t of i)yield na(a,t,e);for(let e of o)yield oa(e,t,a)}),s}),e.on("CallExpression",t=>{if(rR(t,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===t.arguments[0].type&&"0"===t.arguments[0].raw&&ou(t.callee.object))return{node:t.callee.object.callee.property,messageId:i8,fix:r=>[r.replaceText(t.callee.object.callee.property,"find"),...ni(r,t,e)]}}),r&&(e.on("CallExpression",t=>{if(rR(t,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&ou(t.callee.object))return{node:t.callee.object.callee.property,messageId:i5,fix:r=>[r.replaceText(t.callee.object.callee.property,"findLast"),...ni(r,t,e)]}}),e.on("CallExpression",t=>{if(rR(t,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===t.arguments[0].type&&"-"===t.arguments[0].operator&&t.arguments[0].prefix&&"Literal"===t.arguments[0].argument.type&&"1"===t.arguments[0].argument.raw&&ou(t.callee.object))return{node:t.callee.object.callee.property,messageId:i6,fix:r=>[r.replaceText(t.callee.object.callee.property,"findLast"),...ni(r,t,e)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean"}}}],defaultOptions:[{checkFromLast:!0}],messages:{[oe]:"Prefer `.find(…)` over `.filter(…)`.",[i2]:"Prefer `.find(…)` over `.filter(…)[0]`.",[i8]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[i4]:"Prefer `.find(…)` over `.filter(…).shift()`.",[i5]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[i6]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[i9]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[i7]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[ot]:"Replace `.filter(…)` with `.find(…) ?? …`.",[or]:"Replace `.filter(…)` with `.find(…) || …`."}}},oc="prefer-array-flat-map",of=["React.Children","Children"],op="prefer-array-flat",om={testFunction(e){if(!rR(e,{method:"flatMap",argumentsLength:1,optionalCall:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&ub(t.params[0],t.body)},getArrayNode:e=>e.callee.object,isOptionalArray:e=>e.callee.optional,description:"Array#flatMap()"},og={testFunction(e){if(!rR(e,{method:"reduce",argumentsLength:2,optionalCall:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&rk(r)))return!1;let u=t.body,[n,a]=t.params;return rR(u,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&ub(n,u.callee.object)&&ub(a,u.arguments[0])||"ArrayExpression"===u.type&&2===u.elements.length&&u.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&ub(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,isOptionalArray:e=>e.callee.optional,description:"Array#reduce()"},oy={testFunction:e=>rR(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&rk(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},oh={testFunction(e){if(!(rR(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&rM(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return rk(t)&&("call"===e.callee.property.name||"SpreadElement"!==r.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},ob=["_.flatten","lodash.flatten","underscore.flatten"],oD={create:function(e){let{functions:t}=e.options[0],r=[...t,...ob],u=[om,og,oy,oh,{testFunction:e=>rA(e,{argumentsLength:1,optional:!1})&&rO(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>rj(e.callee,t)).trim()}()`}];e.on("CallExpression",function*(t){for(let{testFunction:r,description:n,getArrayNode:a,shouldSwitchToArray:i,isOptionalArray:o}of u){if(!r(t))continue;let u=a(t),s=o?.(t),d={description:"string"==typeof n?n:n(t)},l={node:t,messageId:op,data:d},{sourceCode:c}=e;c.getCommentsInside(t).length===c.getCommentsInside(u).length&&(l.fix=function(e,t,r,u,n){return"function"==typeof u&&(u=u(e)),function*(a){let{sourceCode:i}=r,o=rg(t,r);u?o=`[${o}]`:!ry(t,i)&&uL(t,r)&&(o=`(${o})`),o=`${o}${n?"?":""}.flat()`,uS(i.getTokenBefore(e),r,o)&&(o=`;${o}`),yield a.replaceText(e,o),yield nr(a,e,r)}}(t,u,e,i,s)),yield l}})},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],defaultOptions:[{functions:[]}],messages:{[op]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}},ox="some",ov="some-suggestion",oE="filter",oA={create:uP(e=>{e.on("CallExpression",t=>{if(!rR(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r="BinaryExpression"===t.parent.type&&t.parent.left===t&&(("!="===t.parent.operator||"=="===t.parent.operator||"==="===t.parent.operator||"!=="===t.parent.operator)&&r$(t.parent.right)||("!="===t.parent.operator||"=="===t.parent.operator)&&rh(t.parent.right,null));if(!r&&!rW(t))return;let u=t.callee.property;return{node:u,messageId:ox,data:{method:u.name},suggest:[{messageId:ov,*fix(n){if(yield n.replaceText(u,"some"),!r)return;let{sourceCode:a}=e,i=rm(t,e);yield n.removeRange([i[1],a.getRange(t.parent)[1]]),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield n.insertTextBeforeRange(i,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:u,operator:n}=t;if(!(rR(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(n)&&"UnaryExpression"===u.type&&"-"===u.operator&&u.argument&&"Literal"===u.argument.type&&1===u.argument.value||[">=","<"].includes(n)&&rh(u,0))))return;let a=r.callee.property;return{node:a,messageId:ox,data:{method:a.name},*fix(u){["===","==","<"].includes(n)&&(yield u.insertTextBefore(t,"!")),yield u.replaceText(a,"some");let{sourceCode:i}=e,o=i.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===n),[s]=i.getRange(o),[,d]=i.getRange(t);yield u.removeRange([s,d])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&rP(t.left,{property:"length",optional:!1})&&rR(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[u]=r.arguments;if(!u||uy(u))return;let n=r.callee.property;return{node:n,messageId:oE,*fix(r){yield r.replaceText(n,"some");let{sourceCode:u}=e,a=t.left;yield na(r,a,e),yield r.removeRange([rm(a,e)[1],u.getRange(t)[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:"unopinionated"},fixable:"code",messages:{[ox]:"Prefer `.some(…)` over `.{{method}}(…)`.",[ov]:"Replace `.{{method}}(…)` with `.some(…)`.",[oE]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}},oC=(e,t)=>({node:e,messageId:`error/${e.name}`,suggest:[{messageId:`suggestion/${t}`,fix:r=>r.replaceText(e,t)}]}),oS="preferDefaultParameters",oF="preferDefaultParametersSuggest",ow=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let u=t[r];if(Array.isArray(u)){for(let t of u)if(ow(e,t))return!0}else if(ow(e,u))return!0}return!1},ok="prefer-logical-operator-over-ternary/error",oT="prefer-logical-operator-over-ternary/suggestion";function o_(e,t,r){if(ux(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return o_(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&o_(e.left,t.left,r)&&o_(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&o_(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function oI({context:e,conditionalExpression:t,left:r,right:u}){return{node:t,messageId:ok,suggest:["??","||"].map(n=>({messageId:oT,data:{operator:n},fix:a=>(function({fixer:e,context:t,conditionalExpression:r,left:u,right:n,operator:a}){let{sourceCode:i}=t,o=[u,n].map((e,r)=>{let u=ry(e,t),n=u?rg(e,t):i.getText(e);return!u&&function(e,{operator:t,property:r}){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)}(e,{operator:a,property:0===r?"left":"right"})&&(n=`(${n})`),n}).join(` ${a} `);return uS(i.getTokenBefore(r),t,o)&&(o=`;${o}`),e.replaceText(r,o)})({fixer:a,context:e,conditionalExpression:t,left:r,right:u,operator:n})}))}}let oB="with-name",oP="without-name",oR="regexp-exec",oL="string-match",oj="suggestion",oO=[{type:oR,test:e=>rR(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:oL,test:e=>rR(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(e,{stringNode:t,methodNode:r,regexpNode:u},n){let{sourceCode:a}=n;yield e.replaceText(r,"test");let i=a.getText(t);t7(u,a)||"SequenceExpression"!==t.type||(i=`(${i})`),yield e.replaceText(u,i);let o=a.getText(u);!t7(t,a)&&uL(u,n)&&(o=`(${o})`),yield e.replaceText(t,o)}}],oN=e=>rx(e)||rC(e,{name:"RegExp"}),o$=(e,t)=>{if(rx(e))return!e.regex.flags.includes("g");let r=t0(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&!u.global},oM={create:uP(e=>{e.on("CallExpression",function*(t){if(rW(t))for(let{type:r,test:u,getNodes:n,fix:a}of oO){if(!u(t))continue;let i=n(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===oR?o:t,messageId:r},l=t=>a(t,i,e);oN(s)||o$(s,e.sourceCode.getScope(s))?d.fix=l:d.suggest=[{messageId:oj,fix:l}],yield d}})}),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[oR]:"Prefer `.test(…)` over `.exec(…)`.",[oL]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[oj]:"Switch to `RegExp#test(…)`."}}},oz="error",oU="suggestion",oq=["copyWithin","fill","filter","flat","flatMap","map","reverse","sort","splice","toReversed","toSorted","toSpliced","with","slice","concat","split","toArray"],oW=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),oV=e=>rR(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&rA(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),oZ="prefer-string-raw";function oG(e,t=""){return e.replaceAll(RegExp(String.raw`\\(?<escapedCharacter>[\\${t}])`,"g"),"$<escapedCharacter>")}let oH="prefer-switch",oJ=(e,t)=>e===t||ux(e,t),oK=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),oX=e=>{for(;e.parent;e=e.parent)if(oK.has(e.type))return e},oY=(e,t,r)=>{let{sourceCode:u}=r;return u.getRange(e)[0]>=u.getRange(t)[0]&&u.getRange(e)[1]<=u.getRange(t)[1]},oQ={create:e=>{let t={...e.options[0]},{sourceCode:r}=e,u=new Set,n=[],a=new Set;e.on("IfStatement",e=>{u.add(e)}),e.on("BreakStatement",e=>{e.label||n.push(e)}),e.on("Program:exit",function*(){for(let i of u){if(a.has(i))continue;let{discriminant:u,ifStatements:o}=function(e){let t,r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:u}=e,n=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}(u);if(0===n.length)break;if(!t){let[{left:e,right:r}]=n;t=[e,r]}let a=function(e,t){for(let{left:r,right:u}of e)if(0===(t=t.filter(e=>oJ(e,r)||oJ(e,u))).length)break;return t}(n,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:n})}return{ifStatements:r,discriminant:t&&t[0]}}(i);if(!u||o.length<t.minimumCases)continue;for(let{statement:e}of o)a.add(e);let s={loc:{start:r.getLoc(i).start,end:r.getLoc(i.consequent).start},messageId:oH};t9(u,r)||o.some(({statement:t})=>(function(e,t,r){for(let u of e){if(!oY(u,t,r))continue;let e=oX(u);if(!e||oY(t,e,r))return!0}return!1})(n,t,e))||(s.fix=function({discriminant:e,ifStatements:t},r,u){let{sourceCode:n}=r,a=n.getText(e);return function*(i){let o=t[0].statement,s=ur(o,r);yield i.insertTextBefore(o,`switch (${a}) {`);let d=t.at(-1).statement;if(d.alternate){let{alternate:e}=d;yield i.insertTextBefore(e,`
|
|
5
|
-
${s}default: `)}else switch(
|
|
1
|
+
"use strict";let e,t;var r,n,u,a,i,o,s,d,l,c,f,p,m,g,y,h,b,D,x,v,E,A,C,S,F,w,k,T,I,_,P,B,R,L,j,O,N,$,M,U,z,W,q,V,Z,G,H,K,J,X,Y,Q,ee,et,er,en,eu,ea,ei,eo,es,ed,el,ec,ef,ep,em,eg,ey,eh,eb,eD,ex,ev,eE,eA,eC,eS,eF,ew,ek,eT,eI,e_,eP,eB,eR,eL,ej,eO,eN,e$,eM,eU,ez,eW,eq,eV,eZ,eG,eH,eK=require("eslint-plugin-sukka"),eJ=require("node:assert/strict"),eX=require("node:util/types"),eY=require("node:path");function eQ(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 e0(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function e1(e){return e?.type==="MemberExpression"}function e3(e){return e?.type==="AwaitExpression"}function e2(e,t){return!!e0(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function e4(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 e5(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function e8(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function e6({create:e,defaultOptions:t,meta:r,name:n}){return r.docs&&!r.docs.url&&(r.docs.url=new URL(n,"https://dimensiondev.github.io/eslint-plugin/src/rules/").href),{create(r){var n,u;let a,i=(n=t,u=r.options,a=structuredClone(n),null==u||a.forEach((e,t)=>{if(void 0!==u[t]){let r=u[t];"object"!=typeof r||Array.isArray(r)||"object"!=typeof e||Array.isArray(e)?a[t]=r:a[t]=function e(t={},r={}){return Object.fromEntries([...new Set([...Object.keys(t),...Object.keys(r)])].map(n=>{let u=n in t,a=n in r,i=t[n],o=r[n];return[n,u&&a?"object"!=typeof i||Array.isArray(i)||"object"!=typeof o||Array.isArray(o)?o:e(i,o):u?i:o]}))}(e,r)}}),a);return e(r,i)},defaultOptions:t,meta:r,name:n}}function e9(e){if(!e?.program)throw Error("see https://typescript-eslint.io/docs/linting/type-linting")}var e7=e6({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"}},defaultOptions:[],create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!e2(t.callee.property,"flatMap")||!(e5(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(e8(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&e8(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let te=new Set(["href","pathname","search","hash","origin"]);var tt=e6({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}}`"}},defaultOptions:[],create:e=>({AssignmentExpression(t){let r=function(e,t){if(e2(e,t))return e;for(;e1(e);){if(e2(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=tr(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=tr(t.parent);if(te.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function tr(e){if(e1(e)&&e0(e.property))return e.property.name}var tn=e6({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"}},defaultOptions:[],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(""))}})}})}),tu=e6({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"}},defaultOptions:[],create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});let ta=/^toLocale(?<name>Upper|Lower)Case$/g;var ti=e6({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()`"}},defaultOptions:[],create:e=>({CallExpression(t){if(t.arguments.length>0||!e1(t.callee)||!e0(t.callee.property))return;let{property:r}=t.callee,n=ta.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})}),to=e6({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"}},defaultOptions:[],create:e=>({TemplateLiteral(t){var r,n,u,a;let i=(r=e.sourceCode,(u=n=t,u.parent?.type!=="TaggedTemplateExpression"&&1===u.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(u.quasis[0])&&0===u.expressions.length)?e=>{let t=JSON.stringify(n.quasis[0].value.cooked),u=eQ(n,e=>"Property"===e.type&&e.key===n);return u?e.replaceText(u,`${t}: ${r.getText(u.value)}`):e.replaceText(n,t)}:2===(a=n).quasis.length&&a.quasis.every(({value:e})=>""===e.cooked)&&1===a.expressions.length?e=>e.replaceText(n,r.getText(n.expressions[0])):void 0);i&&e.report({node:t,messageId:"invalid",fix:i})}})});let ts=/\P{ASCII}/u;function td(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"PrivateIdentifier":case"JSXText":case"JSXIdentifier":return e.value;case"RegularExpression":return e.regex.pattern}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 tl(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=tc(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${tf(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(tc(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function tc(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${tf(t)}}`:`\\u${tf(t)}`})}function tf(e){return e.toString(16).padStart(4,"0").toUpperCase()}e6({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"}},defaultOptions:[{pattern:ts.source,flags:"u",only:void 0}],create(e,[{pattern:t,flags:r,only:n}]){let u=t?new RegExp(t,r):ts;return td(u,(t,r)=>{if(n&&n!==r)return;let a=tl(t,RegExp(u.source,"gu"));e.report({node:t,messageId:"illegal",fix:a})})}});let tp=/[\u061C\u202A-\u202E\u2066-\u2069]/;var tm=e6({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}}."}},defaultOptions:[],create:e=>td(tp,(t,r)=>{let n=RegExp(tp.source,"gu"),u={kind:r,text:tc(t.value,n)},a=tl(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});let tg=(t=[/\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(""),RegExp(`[${t}]`,"u"));var ty=e6({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},defaultOptions:[],create:e=>td(tg,t=>{let r=tl(t,RegExp(tg.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),th=e6({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},defaultOptions:[],create:e=>({BlockStatement({body:t}){var r,n,u,a,i;let o=t.find(tb);if(!o)return;let s=t[t.indexOf(o)-1];r=s,n=o,r&&"VariableDeclaration"===r.type&&1===r.declarations.length&&r.declarations.some(({init:e,id:t})=>null!==e&&e8(n.argument,t))&&e.report({node:o,messageId:"invalid",fix:(u=e.sourceCode,a=s,i=o,e=>{var t;let{init:r,id:n}=a.declarations[0];if(!(r&&n&&i.argument))return null;let o=!e3(t=r)||eQ(t,"TryStatement")?t:t.argument,s=(e=>{if(!n.typeAnnotation)return e;let t=u.getText(n.typeAnnotation.typeAnnotation);return`(${e}) as ${e3(r)?`Promise<${t}>`:t}`})(u.getText(o));return[e.remove(a),e.replaceText(i.argument,s)]})})}})});function tb(e){return"ReturnStatement"===e.type&&e0(e.argument)}var tD=e6({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},defaultOptions:[],create:e=>({BlockStatement({parent:t,body:r}){if(!e5(t))return;let n=function(e,t){let r=t.find(tx);if(!r)return;let n=t.find(e=>{var t,n;return t=e,n=r,"VariableDeclaration"===t.type&&"const"!==t.kind&&t.declarations.some(({id:e})=>e8(n.argument,e))});if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function tx(e){return"ReturnStatement"===e.type&&e0(e.argument)}var tv=e6({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"}},defaultOptions:[{maximumStatements:0}],create:(e,[{maximumStatements:t}])=>({BlockStatement:function({body:r,parent:n}){var u,a;if(!e5(n)||!(1===r.length&&function(e,t){if("IfStatement"!==e.type||null!==e.alternate)return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let i=(u=e,a=r[0],function*(e){var t;let r;if("IfStatement"!==a.type)return;let{test:n,consequent:i}=a;yield e.insertTextBefore(n,"!("),yield e.insertTextAfter(n,")"),yield e.replaceText(i,"return;");let o=(t=u.sourceCode.getText(i),r=t,"BlockStatement"===i.type?r.slice(1,-1):r);yield e.insertTextAfter(a,o)});e.report({node:r[0],messageId:"prefer",fix:i})}})}),tE=e6({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},defaultOptions:[],create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){var r;((function({callee:e}){return e2(e,"XMLHttpRequest")})(t)||e2((r=t).callee,"ActiveXObject")&&e4(r.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return e2(e,t)||e1(e)&&e2(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return e2(e,r)&&e1(t)&&e2(t.property,"load")||e1(e)&&e2(e.object,r)&&e2(e.property,["ajax","get","post","getJSON","getScript"])}(t)||tA(t,"axios")||tA(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function tA(e,t){return e2(e.callee,"require")&&e4(e.arguments[0],t)}let tC=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var tS=e6({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},defaultOptions:[],create:e=>({CallExpression(t){"Identifier"!==t.callee.type||!tC.has(t.callee.name)||function(e){if(!e2(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||e4(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 = ")}]})}})}),tF=e6({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"}},defaultOptions:[],create(e){e9(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;(e2(a,"toString")||e4(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))})}}}}),tw=e6({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`"}},defaultOptions:[],create:e=>({TSAsExpression(t){var r,n;if("TSAnyKeyword"!==(r=t.typeAnnotation).type&&"TSUnknownKeyword"!==r.type||!((n=t.parent)&&"TSAsExpression"===n.type&&"TSTypeReference"===n.typeAnnotation.type))return;let u="TSAnyKeyword"===t.typeAnnotation.type?"any":"unknown";e.report({node:t,messageId:"invalid",data:{type:u}})}})});let tk=new Set(["BigInt","Boolean","Number","String","Symbol"]);var tT=e6({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"}},defaultOptions:[],create:e=>({TSTypeReference(t){if("Identifier"!==t.typeName.type||!tk.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)})}})}),tI=e6({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"}},defaultOptions:[],create(e){e9(e.sourceCode.parserServices);let{esTreeNodeToTSNodeMap:t,program:r}=e.sourceCode.parserServices,n=r.getTypeChecker();function u(r){"ErrorConstructor"===function(e,t){let r=e.getTypeAtLocation(t).getSymbol();if(!r?.valueDeclaration)return;let n=e.getTypeOfSymbolAtLocation(r,r.valueDeclaration);return e.typeToString(n)}(n,t.get(r))&&e.report({node:r,messageId:"invalid"})}return{ThrowStatement(e){e.argument&&u(e.argument)},NewExpression:u,CallExpression:u}}});let t_={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(t_))Object.freeze(t_[e]);Object.freeze(t_);let tP=new Set(["parent","leadingComments","trailingComments"]);function tB(e){return!tP.has(e)&&"_"!==e[0]}function tR(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=function(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}(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function tL(e,t){return"Punctuator"===e.type&&e.value===t}function tj(e){return tL(e,"=>")}function tO(e){return tL(e,",")}function tN(e){return tL(e,";")}function t$(e){return tL(e,":")}function tM(e){return tL(e,"(")}function tU(e){return tL(e,")")}function tz(e){return tL(e,"{")}function tW(e){return["Block","Line","Shebang"].includes(e.type)}let tq=e=>!tN(e);function tV(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,tj);n=r.loc.start,u=r.loc.end}else{var a,i;n=r&&("Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type)?r.loc.start:e.loc.start,u=(a=e,i=t,a.id?i.getTokenAfter(a.id,tM):i.getFirstToken(a,tM)).loc.start}return{start:{...n},end:{...u}}}let tZ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},tG=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"])),tH=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)),tK=new Set([Object.freeze,Object.preventExtensions,Object.seal]),tJ=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function tX(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=tQ(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=tQ(u,t);if(null==e)return null;r.push(e.value)}}return r}let tY=Object.freeze({ArrayExpression(e,t){let r=tX(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?tQ(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=tQ(e.left,t),n=tQ(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=tX(e.arguments,t);if(null!=n)if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=tQ(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=t0(r,t);if(null!=a){let e=u.value,t=a.value;if(tH.has(e[t]))return{value:e[t](...n)};if(tK.has(e[t]))return{value:n[0]}}}}else{let u=tQ(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(tH.has(t))return{value:t(...n)};if(tK.has(t))return{value:n[0]}}}return null},ConditionalExpression(e,t){let r=tQ(e.test,t);return null!=r?r.value?tQ(e.consequent,t):tQ(e.alternate,t):null},ExpressionStatement:(e,t)=>tQ(e.expression,t),Identifier(e,t){if(null!=t){let r=tR(t,e);if(null!=r){if(null!=r&&0===r.defs.length&&tG.has(r.name)&&r.name in tZ)return{value:tZ[r.name]};if(function(e){let t,r,n;if(1!==e.defs.length)return!1;let u=e.defs[0];return!!(u.parent&&"Variable"===u.type&&("const"===u.parent.kind||(r=(t=e.references).filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length,1===r&&n+r===t.length)))}(r)){let e=r.defs[0];if("Identifier"===e.node.id.type){let n=tQ(e.node.init,t);return n&&"object"==typeof n.value&&null!==n.value&&function(e,t){for(let r of e.references){let e=r.identifier;for(;e&&e.parent&&"MemberExpression"===e.parent.type;)e=e.parent;if(e&&e.parent&&("AssignmentExpression"===e.parent.type&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"CallExpression"===e.parent.type&&e.parent.callee===e&&"MemberExpression"===e.type&&function(e){if(null==e||null==e.value)return!1;let t=e.value;return"copyWithin"===t||"fill"===t||"pop"===t||"push"===t||"reverse"===t||"shift"===t||"sort"===t||"splice"===t||"unshift"===t}(t0(e,t))))return!0}return!1}(r,t)?null:n}}}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=tQ(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=tQ(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=tQ(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=t0(e,t);if(null!=n){let e;if(null==(e=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}(r.value,n.value))||null==e.get)return{value:r.value[n.value]};for(let[e,t]of tJ)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=tQ(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=tQ(e.callee,t),n=tX(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(tH.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=t0(n,t),u=tQ(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=tQ(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>tQ(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=tQ(e.tag,t),n=tX(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=tX(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=tQ(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},TSAsExpression:(e,t)=>tQ(e.expression,t),TSSatisfiesExpression:(e,t)=>tQ(e.expression,t),TSTypeAssertion:(e,t)=>tQ(e.expression,t),TSNonNullExpression:(e,t)=>tQ(e.expression,t),TSInstantiationExpression:(e,t)=>tQ(e.expression,t)});function tQ(e,t){return null!=e&&Object.hasOwnProperty.call(tY,e.type)?tY[e.type](e,t):null}function t0(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?tQ(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function t1(e,t=null){try{return tQ(e,t)}catch(e){return null}}function t3(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=t1(e,t);if(r)try{return String(r.value)}catch{}return null}function t2(e,t){switch(e.type){case"MemberExpression":if(e.computed)return t3(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return t3(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 t4(e,t){let r=e.parent;if(!r)return"";let 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=t2(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}let t5=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),t8=Object.freeze(new Set(["-","+","!","~"]));function t6(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let t9=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(tB)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(t6(e)&&this.$visit(e,t,r))return!0}else if(t6(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&t5.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&&t8.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function t7(e,t,r={}){let{considerGetters:n=!1,considerImplicitTypeConversion:u=!1}=r;return t9.$visit(e,{considerGetters:n,considerImplicitTypeConversion:u},t.visitorKeys||t_)}function re(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&&tM(i)&&tU(o)&&i!==function(e,t){let r=e.parent;if(!r)return null;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.typeArguments||r.typeParameters||r.callee,tM);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,tM);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}let rt=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,rr=Function.call.bind(Object.hasOwnProperty),rn=Symbol("read"),ru=Symbol("call"),ra=Symbol("construct"),ri=Symbol("esm"),ro={require:{[ru]:!0}};function rs(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class rd{constructor(e,t={}){let{mode:r="strict",globalObjectNames:n=["global","globalThis","self","window"]}=t;this.variableStack=[],this.globalScope=e,this.mode=r,this.globalObjectNames=n.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);rs(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);rs(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(ro)){let r=t3(t.arguments[0]);if(null==r||!rr(e,r))continue;let n=e[r],u=[r];n[rn]&&(yield{node:t,path:u,type:rn,info:n[rn]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!rt.test(t.type)||null==t.source)continue;let r=t.source.value;if(!rr(e,r))continue;let n=e[r],u=[r];if(n[rn]&&(yield{node:t,path:u,type:rn,info:n[rn]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[rn]&&(yield{node:t,path:u.concat(e),type:rn,info:r[rn]})}else for(let e of t.specifiers){let t=rr(n,ri),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(rl),(e.path.length>=2||e.type!==rn)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_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[rn]&&(yield{node:e,path:t,type:rn,info:r[rn]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;if(t)switch(t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e}return!1}(n);)n=n.parent;let u=n.parent;if(u){if("MemberExpression"===u.type){if(u.object===n){let e=t2(u);if(null==e||!rr(r,e))return;t=t.concat(e);let n=r[e];n[rn]&&(yield{node:u,path:t,type:rn,info:n[rn]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[ru]&&(yield{node:u,path:t,type:ru,info:r[ru]});return}if("NewExpression"===u.type){u.callee===n&&r[ra]&&(yield{node:u,path:t,type:ra,info:r[ra]});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=tR(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=t2(n);if(null==e||!rr(r,e))continue;let u=t.concat(e),a=r[e];a[rn]&&(yield{node:n,path:u,type:rn,info:a[rn]}),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":"Identifier"===e.imported.type?e.imported.name:e.imported.value;if(!rr(r,u))return;t=t.concat(u);let a=r[u];a[rn]&&(yield{node:e,path:t,type:rn,info:a[rn]}),yield*this._iterateVariableReferences(tR(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n)return void(yield*this._iterateVariableReferences(tR(this.globalScope,e.local),t,r,!1));if("ExportSpecifier"===n){let n="Identifier"===e.local.type?e.local.name:e.local.value;if(!rr(r,n))return;t=t.concat(n);let u=r[n];u[rn]&&(yield{node:e,path:t,type:rn,info:u[rn]})}}}function rl(e,t){return 1!==t||"default"!==e}rd.READ=rn,rd.CALL=ru,rd.CONSTRUCT=ra,rd.ESM=ri;let rc=Symbol("SYNTAX_OPENING_PARENTHESIS_INITIAL_VALUE");function*rf(e,t){if(!e||!e.parent||"CatchClause"===e.parent.type&&e.parent.param===e)return;let r=rc,n=[e,e];for(;n=function([e,t],r){let n=r.sourceCode.getTokenBefore(e);if(!n||!tM(n))return;let u=r.sourceCode.getTokenAfter(t);if(n&&tU(u))return[n,u]}(n,t);){let[u]=n;if(r===rc&&(r=function(e,t){let{parent:r}=e;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.sourceCode.getTokenAfter(r.typeArguments??r.callee,tM);return;case"DoWhileStatement":if(r.test===e)return t.sourceCode.getTokenAfter(r.body,tM);return;case"IfStatement":case"WhileStatement":if(r.test===e)return t.sourceCode.getFirstToken(r,1);return;case"ImportExpression":if(r.source===e)return t.sourceCode.getFirstToken(r,1);return;case"SwitchStatement":if(r.discriminant===e)return t.sourceCode.getFirstToken(r,1);return;case"WithStatement":if(r.object===e)return t.sourceCode.getFirstToken(r,1)}}(e,t)),u===r)break;yield n}}let rp=new WeakMap;function rm(e,t){if(!e||!rp.has(e)){let r=[];for(let[n,u]of rf(e,t))r.unshift(n),r.push(u);rp.set(e,r)}return rp.get(e)}function rg(e,t){let r=rm(e,t),[n]=t.sourceCode.getRange(r[0]??e),[,u]=t.sourceCode.getRange(r.at(-1)??e);return[n,u]}function ry(e,t){let[r,n]=rg(e,t);return t.sourceCode.text.slice(r,n)}function rh(e,t){if(rp.has(e))return rp.get(e).length>0;let r=rf(e,t).next().done;return r&&rp.set(e,[]),!r}function rb(e,t){return e?.type==="Literal"&&e.value===t}let rD=e=>e?.type==="Literal"&&"string"==typeof e.value,rx=e=>"Literal"===e.type&&"number"==typeof e.value,rv=e=>"Literal"===e.type&&!!e.regex,rE=e=>e?.type==="Literal"&&"null"===e.raw,rA=e=>"Literal"===e.type&&!!e.bigint;function rC(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:1/0,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)}let rS=(e,t)=>rC(e,t,["CallExpression"]),rF=(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return rC(e,t,["NewExpression"])},rw=(e,t)=>rC(e,t,["CallExpression","NewExpression"]),rk=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive;function rT(e,t){let{type:r}=e;return"BlockStatement"===r?e.body.every(e=>rT(e,t)):!!("EmptyStatement"===r||t?.(e))}let rI=e=>"ArrayExpression"===e.type&&0===e.elements.length,r_=e=>"ObjectExpression"===e.type&&0===e.properties.length;function rP(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type}let rB=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"];function rR(e){return rB.includes(e.type)}function rL(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 rj(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:n,method:u,methods:a}={method:"",methods:[],...t};return rS(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&rL(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:u,properties:a,optional:n})}let rO=e=>rS(e,{name:"require",argumentsLength:1,optional:!1})&&rD(e.arguments[0]);function rN(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||"super"===n&&"Super"===e.type;if(1===t&&"MetaProperty"===e.type&&"Identifier"===e.property.type&&e.property.name===n){e=e.meta;continue}if("MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.property.type&&e.property.name===n){e=e.object;continue}return!1}}function r$(e,t){return t.some(t=>rN(e,t))}function rM(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||r$(e.parent.tag,t))}function rU(e){return e?.type==="Identifier"&&"undefined"===e.name}let rz=(e,t)=>(function(e,t){let{object:r,property:n,properties:u}={property:"",properties:[],...t};if(!rL(e,{property:n,properties:u,optional:!1}))return;let a=e.object;return rL(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&rI(a)||"Object"===r&&r_(a)})(e,{...t,object:"Array"}),rW=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator),rq=e=>e?.type==="UnaryExpression"&&"!"===e.operator,rV=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length;function rZ(e){return!!(rq(e)||rq(e.parent)&&e.parent.argument===e||rV(e)||rV(e.parent)&&e.parent.arguments[0]===e)||!!rW(e.parent)&&rZ(e.parent)}function rG(e){let t;return t=e.parent,t?.type==="VExpressionContainer"&&"VAttribute"===t.parent.type&&!!t.parent.directive&&t.parent.value===t&&"VDirectiveKey"===t.parent.key.type&&"VIdentifier"===t.parent.key.name.type&&("if"===t.parent.key.name.rawName||"else-if"===t.parent.key.name.rawName||"show"===t.parent.key.name.rawName)||("IfStatement"===e.parent.type||"ConditionalExpression"===e.parent.type||"WhileStatement"===e.parent.type||"DoWhileStatement"===e.parent.type||"ForStatement"===e.parent.type)&&e.parent.test===e||!!rW(e.parent)&&rG(e.parent)}function rH(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}.
|
|
2
|
+
Please open an issue at ${i}.`)}function rK(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rJ=rK(function(){if(n)return r;n=1;let e={},t=e.hasOwnProperty,u=(e,r)=>{for(let n in e)t.call(e,n)&&r(n,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={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},l=/[\\\b\f\n\r\t]/,c=/[0-9]/,f=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,m=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,g=(e,t)=>{let r,n,y=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},h={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},b=t&&t.json;b&&(h.quotes="double",h.wrap=!0),"single"!=(!(B=t)||u(B,(e,t)=>{h[e]=t}),t=h).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let D="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",x=t.compact,v=t.lowercaseHex,E=t.indent.repeat(t.indentLevel),A="",C=t.__inline1__,S=t.__inline2__,F=x?"":"\n",w=!0,k="binary"==t.numbers,T="octal"==t.numbers,I="decimal"==t.numbers,_="hexadecimal"==t.numbers;if(b&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(n=e)&&"[object String]"!=o.call(n)){let n,a,i,d;if(n=e,"[object Map]"==o.call(n))return 0==e.size?"new Map()":(x||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+g(Array.from(e),t)+")");if(a=e,"[object Set]"==o.call(a))return 0==e.size?"new Set()":"new Set("+g(Array.from(e),t)+")";if(i=e,"function"==typeof Buffer&&Buffer.isBuffer(i))return 0==e.length?"Buffer.from([])":"Buffer.from("+g(Array.from(e),t)+")";if(s(e)){r=[],t.wrap=!0,C&&(t.__inline1__=!1,t.__inline2__=!0),S||y();var P,B,R=e;let n=R.length,u=-1;for(;++u<n;){P=R[u],w=!1,S&&(t.__inline2__=!1),r.push((x||S?"":E)+g(P,t))}return w?"[]":S?"["+r.join(", ")+"]":"["+F+r.join(","+F)+F+(x?"":A)+"]"}if("number"==typeof(d=e)||"[object Number]"==o.call(d)||"bigint"==typeof e){let t;if(b)return JSON.stringify(Number(e));if(I)t=String(e);else if(_){let r=e.toString(16);v||(r=r.toUpperCase()),t="0x"+r}else k?t="0b"+e.toString(2):T&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let n;if("bigint"==typeof e)return b?JSON.stringify(Number(e)):e+"n";return(n=e,"[object Object]"==o.call(n))?(r=[],t.wrap=!0,y(),u(e,(e,n)=>{w=!1,r.push((x?"":E)+g(e,t)+":"+(x?"":" ")+g(n,t))}),w)?"{}":"{"+F+r.join(","+F)+F+(x?"":A)+"}":b?JSON.stringify(e)||"null":String(e)}}let L=t.escapeEverything?p:m;return r=e.replace(L,(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,v)+"}":a(i(e,v))+a(i(n,v))}if(n)return a(i(n.charCodeAt(0),v));if("\0"==e&&!b&&!c.test(s.charAt(o+1)))return"\\0";if(u)return u==D||t.escapeEverything?"\\"+u:u;if(l.test(e))return d[e];if(t.minimal&&!f.test(e))return e;let p=i(e.charCodeAt(0),v);return b||p.length>2?a(p):"\\x"+("00"+p).slice(-2)}),"`"==D&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,b?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=D+r+D),r};return g.version="3.0.2",r=g}());function rX(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rJ(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})}var rY={},rQ={},r0={},r1=rK(function(){var e,t;return i?rY:(i=1,Object.defineProperty(rY,"__esModule",{value:!0}),Object.defineProperty(rY,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(rY,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(rY,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(rY,"isKeyword",{enumerable:!0,get:function(){return t.isKeyword}}),Object.defineProperty(rY,"isReservedWord",{enumerable:!0,get:function(){return t.isReservedWord}}),Object.defineProperty(rY,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return t.isStrictBindOnlyReservedWord}}),Object.defineProperty(rY,"isStrictBindReservedWord",{enumerable:!0,get:function(){return t.isStrictBindReservedWord}}),Object.defineProperty(rY,"isStrictReservedWord",{enumerable:!0,get:function(){return t.isStrictReservedWord}}),e=function(){if(u)return rQ;u=1,Object.defineProperty(rQ,"__esModule",{value:!0}),rQ.isIdentifierChar=d,rQ.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,!s(n))return!1}else if(!d(n))return!1}return!t},rQ.isIdentifierStart=s;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 a=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],i=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function o(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 s(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):o(e,a)))}function d(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)):o(e,a)||o(e,i))))}return rQ}(),t=function(){if(a)return r0;a=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.isKeyword=function(t){return e.has(t)},r0.isReservedWord=n,r0.isStrictBindOnlyReservedWord=i,r0.isStrictBindReservedWord=function(e,t){return u(e,t)||i(e)},r0.isStrictReservedWord=u;let e=new Set(["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"]),t=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),r=new Set(["eval","arguments"]);function n(e,t){return t&&"await"===e||"enum"===e}function u(e,r){return n(e,r)||t.has(e)}function i(e){return r.has(e)}return r0}(),rY)}());let r3=e=>[e,...e.childScopes.flatMap(e=>r3(e))],r2=e=>[...new Set(r3(e).flatMap(({references:e})=>e))],{isIdentifierName:r4,isStrictReservedWord:r5,isKeyword:r8}=r1,r6=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"]),r9=e=>"string"==typeof e&&!r8(e)&&!r5(e,!0)&&r4(e)&&"arguments"!==e&&!r6.has(e),r7=(e,t)=>!t.some(t=>(function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}})(e,t)||r2(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r)),ne=()=>!0;function nt(e,t,r=ne){if(r9(e)||r9(e+="_")){for(;!r7(e,t)||!r(e,t);)e+="_";return e}}function nr(e,t){if(e.arguments.length>0)return!0;let{sourceCode:r}=t,[n,u]=r.getLastTokens(e,2);return tM(n)&&tU(u)&&r.getRange(e.callee)[1]<r.getRange(e)[1]}function nn(e,t){let{sourceCode:r}=t,n=e.typeArguments??e.callee,u=r.getTokenAfter(n,tM),[a,i]=r.getLastTokens(e,2);return{openingParenthesisToken:u,closingParenthesisToken:i,trailingCommaToken:tO(a)?a:void 0}}function nu(e,t,r=!0){let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a,trailingCommaToken:i}=nn(t,e),[,o]=n.getRange(u),[s]=n.getRange(r?a:i??a);return n.text.slice(o,s)}function na(e,t){let{sourceCode:r}=t,{start:{line:n,column:u}}=r.getLoc(e);return r.getLines()[n-1].slice(0,u).match(/\s*$/)[0]}function ni(e,t){let{sourceCode:r}=e;return r.parserServices.getTemplateBodyTokenStore&&r.ast.templateBody&&r.getRange(r.ast.templateBody)[0]<=r.getRange(t)[0]&&r.getRange(t)[1]<=r.getRange(r.ast.templateBody)[1]?r.parserServices.getTemplateBodyTokenStore():r}let no=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])],ns=(e,t)=>{let{references:r=[]}=tR(e,t)||{};return r},nd=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,nl=(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),nc=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,nf=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),np=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"]),nm=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),ng=new Set(["parseFloat","parseInt"]),ny=new Set(["-","*","/","%","**","<<",">>","|","^","&"]),nh=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),nb=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]),nD=e=>nh.has(e.type)||nb.has(e.type)||rU(e)||rS(e)&&!rj(e,{method:"bind",optionalCall:!1,optionalMember:!1}),nx=(e,t)=>{if("ThisExpression"===e.type)return!0;if("FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return!1;if("ClassDeclaration"===e.type||"ClassExpression"===e.type){if(e.superClass&&nx(e.superClass,t))return!0;for(let r of e.body.body)if(r.computed&&nx(r.key,t))return!0;return!1}let r=t[e.type];if(!r)return!1;for(let n of r){let r=e[n];if(r){if(Array.isArray(r)){for(let e of r)if(e&&nx(e,t))return!0;continue}if(nx(r,t))return!0}}return!1};function nv(e,t,r){let[n,u]=[e,t].map(e=>r.sourceCode.getLoc(e).start.line);return n===u}let nE=(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name;function nA(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return nA(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=t1(t);if(!r)return;return String(r.value)}}function nC(e){return"ChainExpression"===e.type||"TSAsExpression"===e.type||"TSTypeAssertion"===e.type||"TSNonNullExpression"===e.type?nC(e.expression):e}function nS(e,t){if(e=nC(e),t=nC(t),e.type!==t.type)return!1;switch(e.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return e.name===t.name;case"Literal":var r,n;return r=e,n=t,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"MemberExpression":{let r=nA(e);if(void 0!==r)return nS(e.object,t.object)&&r===nA(t);return e.computed===t.computed&&nS(e.object,t.object)&&nS(e.property,t.property)}default:return!1}}let nF=(e,t,r)=>e&&t&&r.sourceCode.getRange(e)[0]===r.sourceCode.getRange(t)[0]&&r.sourceCode.getRange(e)[1]===r.sourceCode.getRange(t)[1],nw=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,nk=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),nT=new Set(["[","(","/","`","+","-","*",",","."]);function nI(e,t,r){if(""===r||r&&!nT.has(r.charAt(0))||!e)return!1;let{sourceCode:n}=t,{type:u,value:a}=e,i=n.getRange(e),o=n.getNodeByRangeIndex(i[0]);if("Punctuator"===u){if(";"===a)return!1;if("]"===a)return!0;if(")"===a){switch(o.type){case"IfStatement":if(n.getTokenBefore(o.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(o.body&&n.getTokenBefore(o.body)===e)return!1}return!0}}return!!nk.has(u)||("Template"===u?a.endsWith("`"):"ObjectExpression"===o.type||"Identifier"===u&&("of"!==a||"ForOfStatement"!==o.type)&&("await"!==a||"AwaitExpression"!==o.type))}function*n_(e){if("function"!=typeof e?.[Symbol.iterator])return void(yield e);for(let t of e)yield*n_(t)}class nP extends Error{name="FixAbortError"}let nB={abort(){throw new nP("Fix aborted.")}};function nR(e){return t=>{let r=n_(e(t,nB));try{return[...r]}catch(e){if(e instanceof nP)return;throw e}}}class nL{#e;#t=new Map;constructor(e){this.#e=e}#r(e,t){let r=this.#t;for(let n of e)r.has(n)?r.get(n).push(t):r.set(n,[t])}on(e,t){let r=Array.isArray(e)?e:[e];this.#r(r,t)}onExit(e,t){let r=Array.isArray(e)?e:[e];this.#r(r.map(e=>`${e}:exit`),t)}toEslintListeners(){let e={};for(let[t,r]of this.#t)e[t]=function(e,t){return(...r)=>{for(let n of n_(t(...r)))if(n){let t=function(e){let t={...e};return e.fix&&(t.fix=nR(e.fix)),Array.isArray(e.suggest)&&(t.suggest=e.suggest.map(t=>({...t,fix:nR(t.fix),data:{...e.data,...t.data}}))),t}(n);e.report(t)}}}(this.#e,function*(...e){for(let t of r)yield t(...e)});return e}}let nj=new Set;function nO(e){return nj.has(e)?e:t=>{let r=new nL(t),n=e(new Proxy(t,{get:(e,t,n)=>"on"===t||"onExit"===t?r[t].bind(r):Reflect.get(e,t,n)}));return eJ.equal(n,void 0,`[${t.id}] Rule \`create\` function should return \`undefined\`, please use \`context.on()\` instead of return listeners.`),r.toEslintListeners()}}function nN(e,t){var r;let{visitScriptBlock:n}={visitScriptBlock:!0,...t},u=nO(e);return r=e=>{let t=u(e),{parserServices:r}=e.sourceCode;return r?.defineTemplateBodyVisitor?n?r.defineTemplateBodyVisitor(t,t):r.defineTemplateBodyVisitor(t):t},nj.add(r),r}let n$=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u;function nM(e,t){switch(e.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!nr(e,t);case"Literal":let r;if(rx(e)&&(r=e.raw,n$.test(r)))return!0;return!1;default:return!0}}function nU(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)}var nz={exports:{}},nW=nz.exports,nq=rK(function(){return o?nz.exports:(o=1,nz.exports=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}(),nz.exports)}());function nV(e,t,r=0,n=0){let{sourceCode:u}=t,[a,i]=Array.isArray(e)?e:u.getRange(e);return{start:u.getLocFromIndex(a+r),end:u.getLocFromIndex(i+n)}}function nZ(e,t,r){let{parent:n}=e;for(let u of t.sourceCode.visitorKeys[n.type]||Object.keys(n)){let t=n[u];if(t!==e&&Array.isArray(t)){let n=t.indexOf(e);if(-1!==n)return t[n+r]}}}let nG=(e,t)=>nZ(e,t,-1),nH=e=>e.charAt(0).toUpperCase()+e.slice(1),nK="too-deep",nJ="should-parenthesized",nX="prefer-event-target",nY=new Set(["@angular/core","eventemitter3"]),nQ=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 n0(e){let t;return!!e&&(rO(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(rD(t)&&nY.has(t.value)))}let n1={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"},n3="prefer-keyboard-event-key",n2=new Set(["keyCode","charCode","which"]),n4=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,n5=(e,t)=>{let r=n8(t,"CallExpression",n4),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{}}},n8=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},n6=e=>({messageId:n3,data:{name:e.name},node:e,fix:t=>{let r=((e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r})(e,3);if(!r||"IfStatement"!==r.type)return;let{type:n,operator:u,right:a}=r.test;if(!("BinaryExpression"===n&&("=="===u||"==="===u)&&rx(a)))return;let i=n1[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rX(i))]}}),n9="error",n7="suggestion";function*ue(e,t,r){for(let n of rm(e,r))yield t.remove(n)}function ut(e,t,r,n){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let{sourceCode:u}=n,[a,i]=u.getLastTokens(t,2);return t.arguments.length>0&&(r=tO(a)?` ${r},`:`, ${r}`),e.insertTextBefore(i,r)}function ur(e,t,r){let n=t.parent,u=n.arguments.indexOf(t),a=rm(t,r),i=a[0]||t,o=a.at(-1)||t,{sourceCode:s}=r,[d]=s.getRange(i),[,l]=s.getRange(o);if(0!==u){let e=s.getTokenBefore(i);[d]=s.getRange(e)}if(1===n.arguments.length){let e=s.getTokenAfter(o);tO(e)&&([,l]=s.getRange(e))}return e.removeRange([d,l])}function un(e,t,r,n){return e.replaceTextRange(rg(t,n),r)}function*uu(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let{sourceCode:n}=r,u=n.getFirstToken(t);yield e.insertTextAfter(u," (");let a=n.getLastToken(t);tN(a)?yield e.insertTextBefore(a,")"):yield e.insertTextAfter(t,")")}function ua(e,t,r){let n=e;"object"==typeof e&&(n=t.sourceCode.getRange(e)[1]);let[u]=t.sourceCode.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])}function*ui(e,t,r){let n=t.sourceCode.getFirstToken(e);yield r.remove(n),yield ua(n,t,r),nr(e,t)||(yield r.insertTextAfter(e,"()")),nv(n,e.callee,t)||rh(e,t)||(yield uu(r,e.parent,t))}let uo=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;function*us(e,t,r){let{sourceCode:n}=r,u=rg(t,r),a=n.getTokenBefore({range:u},{includeComments:!0});a&&u[0]===n.getRange(a)[1]&&uo(a)&&(yield e.insertTextAfter(a," "));let i=n.getTokenAfter({range:u},{includeComments:!0});i&&u[1]===n.getRange(i)[0]&&uo(i)&&(yield e.insertTextBefore(i," "))}function*ud(e,t,r){var n;yield us(r,e,t),yield r.insertTextBefore(e,"new ");let{callee:u}=e;!rh(u,t)&&"MemberExpression"===(n=u).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(n)&&(yield r.insertTextBefore(u,"("),yield r.insertTextAfter(u,")"))}function ul(e,t,r,n){let[,u]=rg(t.object,r),[,a]=r.sourceCode.getRange(t);return e.replaceTextRange([u,a],n)}let uc=(e,t,r)=>ul(e,t,r,"");function*uf(e,t,r){let n=t.callee;yield uc(e,n,r);let[,u]=rg(n,r),[,a]=r.sourceCode.getRange(t);yield e.removeRange([u,a])}function up(e,t,r,n){if(nw(e)||"AssignmentPattern"===e.parent.type&&e.parent.left===e&&nw(e.parent))return n.replaceText(e,`${e.name}: ${t}`);if(((e,t)=>{let{type:r,local:n,imported:u}=e.parent;return"ImportSpecifier"===r&&nF(n,u,t)&&n===e})(e,r))return n.replaceText(e,`${e.name} as ${t}`);if(((e,t)=>{let{type:r,local:n,exported:u}=e.parent;return"ExportSpecifier"===r&&nF(n,u,t)&&n===e})(e,r))return n.replaceText(e,`${t} as ${e.name}`);if(e.typeAnnotation){let{sourceCode:u}=r;return n.replaceTextRange([u.getRange(e)[0],u.getRange(e.typeAnnotation)[0]],`${t}${e.optional?"?":""}`)}return n.replaceText(e,t)}let um=(e,t,r,n)=>no(e).map(e=>up(e,t,r,n)),ug=(e,t,r,n)=>{let{tail:u}=e,[a,i]=r.sourceCode.getRange(e);return n.replaceTextRange([a+1,i-(u?1:2)],t)};function*uy(e,t,r,n,u){for(let t of rm(e,u?{sourceCode:u}:n))yield uy(t,"",r,n,u);let{sourceCode:a}=n,[i,o]=a.getRange(e),[s]=a.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield r.replaceTextRange([i,o],`${d}${t}`)}let uh="require-array-join-separator",ub="no-thenable-object",uD="no-thenable-export",ux="no-thenable-class",uv=(e,t)=>t1(e,t.sourceCode.getScope(e))?.value==="then",uE=(e,t)=>"then"===t2(e,t.sourceCode.getScope(e)),uA=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&uE(r,t)&&(yield r.key)},messageId:ub},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===t2(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:ux},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===t2(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:ub},{selector:"CallExpression",*getNodes(e,t){if(!(rj(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;uv(r,t)&&(yield r)},messageId:ub},{selector:"CallExpression",*getNodes(e,t){if(rj(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;uv(e,t)&&(yield e)}}},messageId:ub},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:uD},{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:uD},{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:uD}],uC="no-invalid-remove-event-listener",uS="consistent-function-scoping",uF=(e,t)=>e&&t&&(e===t||e.block===t.block),uw=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),uk=new Set(["FunctionExpression","ArrowFunctionExpression"]),uT={create:e=>{let{checkArrowFunctions:t}=e.options[0],{sourceCode:r}=e,{scopeManager:n}=r,u=[];e.on(rB,()=>{u.push(!1)}),e.on("JSXElement",()=>{u.length>0&&(u[u.length-1]=!0)}),e.onExit(rB,e=>{if(!u.pop()&&("ArrowFunctionExpression"!==e.type||t)&&!function(e,t,r){let n,u,a=t.acquire(e);if(!a||(n=r.visitorKeys,"ArrowFunctionExpression"===e.type&&nx(e,n)))return!0;let i=e.parent;"VariableDeclarator"===i.type&&(i=i.parent),"VariableDeclaration"===i.type&&(i=i.parent),i?.type==="ReturnStatement"&&"ArrowFunctionExpression"===e.type&&(i=i.parent),i=function(e,t){if("ArrowFunctionExpression"===e.type&&"ArrowFunctionExpression"===t.type){let t=function(e){let t=e;for(;t&&"ArrowFunctionExpression"===t.type;)t=t.parent;return t}(e);t&&"ReturnStatement"===t.type&&"ReturnStatement"===(e=function(e){let t=e;for(;"ArrowFunctionExpression"===t.type;)t=t.parent;return t}(e)).type&&(e=e.parent)}return e}(i,e),i?.type==="BlockStatement"&&(i=i.parent);let o=t.acquire(i);return!!(!o||"global"===o.type||o.block?.parent?.callee&&r$(o.block.parent.callee,uw)||(u=i,uk.has(u.type)&&"CallExpression"===u.parent.type&&u.parent.callee===u))||r2(a).map(({resolved:e})=>e).filter(Boolean).some(e=>e.references.some(e=>{if(uF(o,e.from))return!0;let{resolved:t}=e,[r]=t.defs;return(r?.type!=="FunctionName"||t.name!==r.name.name)&&uF(o,t.scope)})||e.defs.some(e=>uF(o,t.acquire(e.node)))||e.identifiers.some(e=>{if(!e.parent||"FunctionDeclaration"!==e.parent.type||t.acquire(e))return!1;let r=t.acquire(e.parent);return!(!r||uF(a,r))&&uF(o,r.upper)}))}(e,n,r))return{node:e,loc:tV(e,r),messageId:uS,data:{functionNameWithKind:t4(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",description:"Whether to check arrow functions."}}}],defaultOptions:[{checkArrowFunctions:!0}],messages:{[uS]:"Move {{functionNameWithKind}} to the outer scope."}}},uI="error",u_="error-unknown",uP="suggestion";function uB(e,t,r){return function*(n){yield n.insertTextAfter(e.callee,`.${r}`),yield ui(e,t,n)}}let uR="no-console-spaces",uL=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),uj=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2),uO="no-empty-file",uN="no-useless-fallback-in-spread",u$="zero-fraction",uM="dangling-dot",uU="error",uz="suggestion",uW=Symbol.for("default"),uq=Symbol("NAMESPACE_SPECIFIER_NAME"),uV=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},uZ=e=>"type"===e.exportKind||"type"===e.parent.exportKind;function*uG(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return void(yield function*(e,t,r,n=!1){let u=e.parent,{specifiers:a}=u;if(1===a.length&&!n)return void(yield t.remove(u));let{sourceCode:i}=r;switch(e.type){case"ImportSpecifier":if(a.every(t=>e===t||e.type!==t.type)){let r=i.getTokenAfter(e,e=>"Identifier"===e.type&&"from"===e.value),n=a.some(e=>"ImportDefaultSpecifier"===e.type),u=i.getTokenBefore(e,n?tO:tz),[o]=i.getRange(u),[s]=i.getRange(r),d=i.getTokenBefore(u),l=i.getRange(d)[1]===o;yield t.replaceTextRange([o,s],l?" ":"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let r=i.getTokenAfter(e);tO(r)&&(yield t.remove(r))}}}(e,t,r));case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function uH(e,t){let{sourceCode:r}=t,n=r.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value),[u]=r.getRange(n),[,a]=r.getRange(e);return r.text.slice(u,a)}let uK={create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}=e.options[0],n=new Set,u=[];e.on("ImportDeclaration",e=>{e.specifiers.length>0&&n.add(e)}),e.on("ExportNamedDeclaration",e=>{rD(e.source)&&u.push(e)}),e.on("Program:exit",function*(a){for(let i of n){let n=t.getDeclaredVariables(i);if(n.some(e=>1!==e.defs.length||e.defs[0].parent!==i)||(n=n.map(e=>{let r=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:"type"===r.importKind||"type"===r.parent.importKind};switch(r.type){case"ImportDefaultSpecifier":return{name:uW,text:"default",...n};case"ImportSpecifier":return{name:uV(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:uq,text:"*",...n}}}(e,t),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:uW,text:"default",isTypeExport:uZ(r)};case"ExportSpecifier":return{node:r,name:uV(r.exported),text:t.getText(r.exported),isTypeExport:uZ(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!==uq||u.name!==uW)&&r.push(u)}return r}(r,t);return{variable:e,imported:r,exports:n}}),r&&n.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let o=r&&n.some(({variable:e})=>0===e.references.length);for(let{imported:t,exports:r}of n)for(let n of r){let r={node:n.node,messageId:uU,data:{exported:n.text}},i=function({context:e,imported:t,exported:r,exportDeclarations:n,program:u}){let a,i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=n.find(({source:e,exportKind:t})=>"type"===t&&e.value===o)),a||=n.find(({source:e,exportKind:t})=>"type"!==t&&e.value===o),function*(n){if(t.name===uq)yield n.insertTextAfter(u,`
|
|
3
|
+
export ${s?"type ":""}* as ${r.text} ${uH(i,e)}`);else{let o=r.name===t.name?r.text:`${t.text} as ${r.text}`;if(s&&(!a||"type"!==a.exportKind)&&(o=`type ${o}`),a){let t=a.specifiers.at(-1);if(t)yield n.insertTextAfter(t,`, ${o}`);else{let t=e.sourceCode.getFirstToken(a,tz);yield n.insertTextAfter(t,o)}}else yield n.insertTextAfter(u,`
|
|
4
|
+
export {${o}} ${uH(i,e)}`)}let o=r.isTypeExport&&!t.isTypeImport;1!==t.variable.references.length||o||(yield uG(t.node,n,e)),yield uG(r.node,n,e)}}({context:e,imported:t,exported:n,exportDeclarations:u,program:a});o?r.suggest=[{messageId:uz,fix:i}]:r.fix=i,yield r}}})},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",description:"Whether to ignore variables that are used in the module."}}}],defaultOptions:[{ignoreUsedVariables:!1}],messages:{[uU]:"Use `export…from` to re-export `{{exported}}`.",[uz]:"Switch to `export…from`."}}},uJ="prefer-native-coercion-functions",uX=new Set(["String","Number","BigInt","Boolean","Symbol"]),uY=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),uQ=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&uX.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,u0=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").toReversed())r={[t]:r};return r};class u1{#n={};#e;#u;#a;constructor({object:e,objects:t=[e],type:r=rd.READ,context:n,filter:u,handle:a}){for(let e of t)Object.assign(this.#n,u0(e,r));this.#e=n,this.#u=u,this.#a=a}*#i(e,t){let r=t?.context??this.#e,n=t?.filter??this.#u,u=t?.handle??this.#a;for(let t of new rd(e).iterateGlobalReferences(this.#n)){if(n&&!n(t))continue;let e=u(t,r);yield e}}listen(e){let t=e?.context??this.#e;t.onExit("Program",r=>this.#i(t.sourceCode.getScope(r),e))}}Object.assign(u1,{READ:rd.READ,CALL:rd.CALL,CONSTRUCT:rd.CONSTRUCT});let u3="no-document-cookie",u2=new u1({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:u3})}),u4=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()],u5=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",...u4("AnimationStart"),...u4("AnimationEnd"),...u4("AnimationIteration"),...u4("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"]),u8="prefer-add-event-listener",u6={create:e=>{let t,r,n=new Set(e.options[0].excludedPackages),u=new WeakMap;e.on("onCodePathStart",(e,t)=>{r={node:t,upper:r,returnsSomething:!1}}),e.on("onCodePathEnd",()=>{u.set(r.node,r.returnsSomething),r=r.upper}),e.on("CallExpression",e=>{rO(e)&&!t&&n.has(e.arguments[0].value)&&(t=!0)}),e.on("Literal",e=>{"ImportDeclaration"===e.parent.type&&!t&&n.has(e.value)&&(t=!0)}),e.on("ReturnStatement",e=>{r.returnsSomething||=!!e.argument}),e.on("AssignmentExpression:exit",r=>{let n;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=a.property.name;if(!s||!s.startsWith("on"))return;let d=s.slice(2);if(!u5.has(d))return;let l="addEventListener",c="";if(rU(i)||rE(i))l="removeEventListener";else"beforeunload"===d&&("ArrowFunctionExpression"!==i.type&&"FunctionExpression"!==i.type||"BlockStatement"!==i.body.type||u.get(i))?c="Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.":"message"===d?c="Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.":"error"===d?c="Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`.":"="!==o||"ExpressionStatement"!==r.parent.type||r.parent.expression!==r||nD(i)||(n=t=>((e,t,r,n)=>{let{sourceCode:u}=t,a=n.property.name.slice(2),i=u.getText(n.object);rh(n.object,t)&&(i=`(${i})`);let o=u.getText(r.right);rh(r.right,t)&&(o=`(${o})`);let s=`${i}.addEventListener('${a}', ${o})`;return e.replaceText(r,s)})(t,e,r,a));return{node:a.property,messageId:u8,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:n}})},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0,description:"Packages to exclude from checking."}}}],defaultOptions:[{excludedPackages:["koa","sax"]}],messages:{[u8]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}},u9=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(nE(e.left,t)||nE(e.right,t)),u7=({type:e,name:t},r)=>"Identifier"===e&&t===r;function ae({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,n=`${r}error`,u=`${r}suggestion`;return{messages:{[n]:({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 \`.${t}()\` instead of \`.${e}()\` when checking value existence.`})[e],[u]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",o=>{let s,d,l;if(!rj(o,{method:e,argumentsLength:1,optionalCall:!1})||!("ArrowFunctionExpression"===(l=o.arguments[0]).type&&!l.async&&1===l.params.length&&u9(l.body,l.params[0])||("ArrowFunctionExpression"===l.type||"FunctionExpression"===l.type)&&!l.async&&!l.generator&&1===l.params.length&&"BlockStatement"===l.body.type&&1===l.body.body.length&&"ReturnStatement"===l.body.body[0].type&&u9(l.body.body[0].argument,l.params[0])))return;let[c]=o.arguments,f="BinaryExpression"===c.body.type?c.body:c.body.body[0].argument,[p]=c.params,{left:m,right:g}=f,{name:y}=p;if(u7(m,y))s=g,d=m;else{if(!u7(g,y))return;s=m,d=g}let h=i.acquire(c);if(!h||tR(h,p).references.some(({identifier:e})=>e!==d)||function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:n}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||ns(t,"arguments").some(({from:e})=>e===t))||!!n&&!!(ns(t,n).length>0))}(c,h))return;let b=o.callee.property,D={node:b,messageId:n,suggest:[]},x=function*(e){let n=a.getText(s);rh(s,r)&&!rh(c,r)&&(n=`(${n})`),yield e.replaceText(b,t),yield e.replaceText(c,n)};return t7(s,a)?D.suggest.push({messageId:u,fix:x}):D.fix=x,D})}}}let at=ae({method:"findIndex",replacement:"indexOf"}),ar=ae({method:"findLastIndex",replacement:"lastIndexOf"}),an={create(e){at.listen(e),ar.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{...at.messages,...ar.messages}}},au="error",aa="prefer-date",ai="prefer-date-now-over-methods",ao="prefer-date-now-over-number-data-object",as=e=>rF(e,{name:"Date",argumentsLength:0}),ad=(e,t,r)=>({node:e,messageId:aa,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield us(t,e,r))},...t}),{isIdentifierName:al}=r1,ac="prefer-dom-node-dataset",af="prefer-modern-math-apis",ap=(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,am=(e,t)=>"CallExpression"===e.type&&!e.optional&&ap(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function ag({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(n,u){let a,i;if("BinaryExpression"!==n.type||"*"!==n.operator||(am(n.left,"log")&&ap(n.right,e)?(a=n.left,i=`Math.log(…) * Math.${e}`):am(n.right,"log")&&ap(n.left,e)&&(a=n.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:n,messageId:af,data:{replacement:r,description:i},fix:e=>e.replaceText(n,`Math.${t}(${ry(o,u)})`)}}}function ay({constantName:e,replacementMethod:t}){let r={messageId:af,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(n,u){if(!("BinaryExpression"===n.type&&"/"===n.operator&&am(n.left,"log")&&ap(n.right,e)))return;let[a]=n.left.arguments;return{...r,node:n,fix:e=>e.replaceText(n,`Math.${t}(${ry(a,u)})`)}}}let ah=[ag({constantName:"LOG10E",replacementMethod:"log10"}),ag({constantName:"LOG2E",replacementMethod:"log2"}),ay({constantName:"LN10",replacementMethod:"log10"}),ay({constantName:"LN2",replacementMethod:"log2"})],ab=e=>"BinaryExpression"===e.type&&"+"===e.operator?[e.left,e.right].flatMap(e=>ab(e)):[e],aD="number-literal-case",ax=(e,{hexadecimalValue:t})=>{let r=e.toLowerCase();return r.startsWith("0x")&&(r="0x"+r.slice(2)["lowercase"===t?"toLowerCase":"toUpperCase"]()),r},av={create:nN(e=>{e.on("Literal",t=>{let{raw:r}=t,n=e.options[0]??{};n.hexadecimalValue??="uppercase";let u=r;if(rx(t)?u=ax(r,n):rA(t)&&(u=ax(r.slice(0,-1),n)+"n"),r!==u)return{node:t,messageId:aD,fix:e=>e.replaceText(t,u)}})}),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{hexadecimalValue:{enum:["uppercase","lowercase"]}}}],defaultOptions:[{hexadecimalValue:"uppercase"}],messages:{[aD]:"Invalid number literal casing."}}},aE="error",aA="suggestion",aC={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1};function aS({node:e,path:[t]},r){let{parent:n}=e,u=t;"Infinity"===t&&(u=(e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e})(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:aE,data:{description:t,property:u}};if("NEGATIVE_INFINITY"===u)return a.node=n,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(n,"Number.NEGATIVE_INFINITY"),yield us(e,n,r)},a;let i=t=>up(e,`Number.${u}`,r,t);return aC[t]?a.fix=i:a.suggest=[{messageId:aA,fix:i}],a}let aF={create:e=>{let{checkInfinity:t,checkNaN:r}=e.options[0];new u1({objects:Object.keys(aC).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),context:e,handle:aS,filter:({node:e})=>!nd(e)}).listen()},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",description:"Whether to check usage of the global `Infinity`."},checkNaN:{type:"boolean",description:"Whether to check usage of the global `NaN`."}}}],defaultOptions:[{checkInfinity:!1,checkNaN:!0}],messages:{[aE]:"Prefer `Number.{{property}}` over `{{description}}`.",[aA]:"Replace `{{description}}` with `Number.{{property}}`."}}},aw="prefer-reflect-apply",ak=(e,t)=>(rE(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),aT=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,aI="prefer-set-size",a_=e=>rF(e,{name:"Set"});var aP={exports:{}};let{parse:aB}=rK(function(){var e,t,r,n;return s?aP.exports:(s=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,r){return t.range[0]=r,t.raw=e.substring(r,t.range[1]),t}function a(t,r){return{type:"anchor",kind:t,range:[X-r,X],raw:e.substring(X-r,X)}}function i(t,r,n,u){return{type:"value",kind:t,codePoint:r,range:[n,u],raw:e.substring(n,u)}}function o(e,t,r,n){return n=n||0,i(e,t,X-(r.length+n),X)}function s(e){var t,r=e[0],n=r.charCodeAt(0);return J&&1===r.length&&n>=55296&&n<=56319&&(t=h().charCodeAt(0))>=56320&&t<=57343?i("symbol",(n-55296)*1024+t-56320+65536,++X-2,X):i("symbol",n,X-1,X)}function d(t,r,n,u,a){return null==u&&(n=X-1,u=X),{type:"quantifier",min:t,max:r,greedy:!0,body:null,symbol:a,range:[n,u],raw:e.substring(n,u)}}function l(t,r,n,u){return{type:"characterClass",kind:t.kind,body:t.body,negative:r,range:[n,u],raw:e.substring(n,u)}}function c(t,r,n,u){return t.codePoint>r.codePoint&&W("invalid range in character class",t.raw+"-"+r.raw,n,u),{type:"characterClassRange",min:t,max:r,range:[n,u],raw:e.substring(n,u)}}function f(e){return"alternative"===e.type?e.body:[e]}function p(e){X+=e=e||1}function m(e){g(e)||W("character",e)}function g(t){var r=t.length;if(e.substring(X,X+r)===t)return p(r),t}function y(t){if(e[X]===t)return X++,t}function h(){return e[X]}function b(t){return e[X]===t}function D(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(X+=r[0].length),r}function v(){var t,r=[],n=X;for(r.push(E());y("|");)r.push(E());return 1===r.length?r[0]:{type:"disjunction",body:r,range:[n,t=X],raw:e.substring(n,t)}}function E(){for(var t,r,o=[],d=X;r=function(){if(X>=e.length||b("|")||b(")"))return null;var t,r=function(){switch(h()){case"^":return p(),a("start",1);case"$":return p(),a("end",1);case"\\":if(D("b"))return p(2),a("boundary",2);if(D("B"))return p(2),a("not-boundary",2);break;case"(":return A("(?=","lookahead","(?!","negativeLookahead");default:return}}();if(r){var o=X;if(t=S()||!1){if(!J&&"group"===r.type)return t.body=f(r),u(t,r.range[0]),t;X=o,W("Expected atom")}return r}var d=function(){var t;switch(t=h()){case".":return p(),{type:"dot",range:[X-1,X],raw:"."};case"\\":if(p(),!(t=w())){if(!J&&"c"==h())return i("symbol",92,X-1,X);W("atomEscape")}return t;case"[":return j();case"(":if(n.lookbehind&&(t=A("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(n.namedGroups&&g("(?<")){var r,u,a,o,d,l=P();m(">");var c=C("normal",l.range[0]-3);return c.name=l,c}if(!n.modifiers||"(?"!==e.substring(X,X+2)||":"==e[X+2])return A("(?:","ignore","(","normal");return u=X,p(2),a=x(/^[sim]+/),y("-")&&":"!==h()?(r=x(/^[sim]+/))||W("Invalid flags for modifiers group"):a||W("Invalid flags for modifiers group"),((o=(a=a?a[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}(o))&&W("flags cannot be duplicated for modifiers group"),y(":")||W("Invalid flags for modifiers group"),(d=C("ignore",u)).modifierFlags={enabling:a,disabling:r},d;case"]":case"}":if(!J)return p(),s(t);break;case"^":case"$":case"*":case"+":case"?":case"{":case")":case"|":break;default:return p(),s(t)}}();if(d||(o=X,(t=S()||!1)&&(X=o,W("Expected atom")),!J&&y("{")?d=s("{"):W("Expected atom")),t=S()||!1){var l=d.type,c=d.behavior;return"group"===l&&("negativeLookbehind"===c||"lookbehind"===c)&&W("Invalid quantifier","",t.range[0],t.range[1]),t.body=f(d),u(t,d.range[0]),t}return d}();)o.push(r);return 1===o.length?o[0]:{type:"alternative",body:o,range:[d,t=X],raw:e.substring(d,t)}}function A(e,t,r,n){var u=null,a=X;if(g(e))u=t;else{if(!g(r))return!1;u=n}return C(u,a)}function C(t,r){var n,u=v();u||W("Expected disjunction"),m(")");var a={type:"group",behavior:t,body:f(u),range:[r,n=X],raw:e.substring(r,n)};return"normal"==t&&Z&&V++,a}function S(){var e,t,r,n,u=X;switch(h()){case"*":p(),e=d(0,void 0,void 0,void 0,"*");break;case"+":p(),e=d(1,void 0,void 0,void 0,"+");break;case"?":p(),e=d(0,1,void 0,void 0,"?");break;case"{":(n=x(/^\{(\d+)\}/))?e=d(t=parseInt(n[1],10),t,u,X):(n=x(/^\{(\d+),\}/))?e=d(t=parseInt(n[1],10),void 0,u,X):(n=x(/^\{(\d+),(\d+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&W("numbers out of order in {} quantifier","",u,X),e=d(t,r,u,X)),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&W("iterations outside JS safe integer range in quantifier","",u,X)}return e&&y("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(t,r){if(r){var n,u;if("unicodeEscape"==t.kind&&(n=t.codePoint)>=55296&&n<=56319&&b("\\")&&D("u")){var a=X;X++;var i=w(!0);"unicodeEscape"==i.kind&&(u=i.codePoint)>=56320&&u<=57343?(t.kind="unicodeCodePointEscape",t.codePoint=(n-55296)*1024+u-56320+65536,t.range[1]=X,t.raw=e.substring(t.range[0],X)):X=a}}return t}n||(n={});function w(t){var r,a,i,d,l=X;switch(d=h()){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return function(t){var r,n,a=X;if(r=x(/^(?!0)\d+/)){n=r[0];var i,d,l=parseInt(r[0],10);if(l<=V&&!t)return i=r[0],d=X-1-i.length,{type:"reference",matchIndex:parseInt(i,10),range:[d,X],raw:e.substring(d,X)};if(q.push(l),Z?G=!0:k(a,X),p(-r[0].length),r=x(/^[0-7]{1,3}/))return o("octal",parseInt(r[0],8),r[0],1);var c=X;return u(r=s(x(/^[89]/)),c-1)}return!!(r=x(/^[0-7]{1,3}/))&&(("0"!==(n=r[0])&&k(a,X),/^0{1,3}$/.test(n))?o("null",0,"0",n.length):o("octal",parseInt(n,8),n,1))}(t);case"B":if(!t)return L();W("\\B not possible inside of CharacterClass","",l);break;case"b":if(t)return p(),o("singleEscape",8,"\\b");return L();case"c":if(t){if(!J&&(i=x(/^c(\d)/)))return o("controlLetter",i[1]+16,i[1],2);else if(!J&&g("c_"))return o("controlLetter",31,"_",2)}return I();case"d":case"D":case"w":case"W":case"s":case"S":return p(),{type:"characterClassEscape",value:d,range:[X-2,X],raw:e.substring(X-2,X)};case"k":return function(){if(n.namedGroups&&x(/^k<(?=.*?>)/)){var t,r=P();return m(">"),t=r.range[0]-3,{type:"reference",name:r,range:[t,X],raw:e.substring(t,X)}}}()||L();case"p":case"P":return a=X,!!(n.unicodePropertyEscape&&J&&(r=x(/^([pP])\{([^}]+)\}/)))&&{type:"unicodePropertyEscape",negative:"P"===r[1],value:r[2],range:[a-1,X],raw:e.substring(a-1,X)}||L();case"-":if(t&&J)return p(),o("singleEscape",45,"\\-");return L();default:return I()}}function k(e,t){J&&W("Invalid decimal escape in unicode mode",null,e,t)}function T(e){var t;return(t=x(/^u([0-9a-fA-F]{4})/))?F(o("unicodeEscape",parseInt(t[1],16),t[1],2),e):e&&(t=x(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(t[1],16),t[1],4):void 0}function I(){var e,t=X;switch(h()){case"t":return p(),o("singleEscape",9,"\\t");case"n":return p(),o("singleEscape",10,"\\n");case"v":return p(),o("singleEscape",11,"\\v");case"f":return p(),o("singleEscape",12,"\\f");case"r":return p(),o("singleEscape",13,"\\r");case"c":if(e=x(/^c([a-zA-Z])/))return o("controlLetter",e[1].charCodeAt(0)%32,e[1],2);break;case"x":if(e=x(/^x([0-9a-fA-F]{2})/))return o("hexadecimalEscape",parseInt(e[1],16),e[1],2);break;case"u":if(e=T(J))return(!e||e.codePoint>1114111)&&W("Invalid escape sequence",null,t,X),e}return L()}function _(t){var n=h(),u=X;if("\\"===n){p();var a=T(!0);return a&&t(a.codePoint)||W("Invalid escape sequence",null,u,X),r(a.codePoint)}var i=n.charCodeAt(0);if(i>=55296&&i<=56319){var o=(n+=e[X+1]).charCodeAt(1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536)}if(t(i))return p(),i>65535&&p(),n}function P(){var t,r=X,n=_(B);for(n||W("Invalid identifier");t=_(R);)n+=t;return{type:"identifier",value:n,range:[r,X],raw:e.substring(r,X)}}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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-\u1711\u171F-\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-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\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-\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-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\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-\uAB69\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\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\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\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\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\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\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]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\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]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/.test(r(e))}function R(e){return B(e)||e>=48&&e<=57||e>=128&&/[\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\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\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-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\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\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\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\uFF65]|\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\uDD40-\uDD49\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE-\uDDD9\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD0\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDED0-\uDEE3\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDD50-\uDD59\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99\uDF60-\uDF67\uDFF0-\uDFF9]|\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\uDDE0-\uDDE9\uDEF3-\uDEF6\uDF00\uDF01\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF50-\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD39]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDD70-\uDD79\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDCF0-\uDCF9\uDF00-\uDF2D\uDF30-\uDF46]|\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\uDC8F\uDD30-\uDD36\uDD40-\uDD49\uDEAE\uDEEC-\uDEF9]|\uD839[\uDCEC-\uDCF9\uDDEE\uDDEF\uDDF1-\uDDFA\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uD83E[\uDFF0-\uDFF9]|\uDB40[\uDD00-\uDDEF]/.test(r(e))}function L(){var t,r=h();return J&&/[\^$.*+?()\\[\]{}|/]/.test(r)||!J&&"c"!==r?"k"===r&&n.lookbehind?null:o("identifier",(t=e.substring(X,X+=1)).charCodeAt(0),t,1):null}function j(){var e,t=X;return(e=g("[^"))?(e=O(),m("]"),l(e,!0,t,X)):y("[")?(e=O(),m("]"),l(e,!1,t,X)):null}function O(){var e,t;return b("]")?{kind:"union",body:[]}:K?function(){var e,t=[],r=$(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&W("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=$("union"===e));return{kind:e,body:t}}():((t=N())||W("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!D("]")){r=t.range[0],p(),i=s("-"),(a=N())||W("classAtom"),n=X;var r,n,u,a,i,o,d=O();return(d||W("classContents"),"codePoint"in t&&"codePoint"in a?u=[c(t,a,r,n)]:J?W("invalid character class"):u=[t,i,a],"empty"===d.type)?u:u.concat(d.body)}return(o=N())||W("classAtom"),(u=b("]")?o:e(o))||W("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||W("nonEmptyClassRanges"),{kind:"union",body:e})}function N(){return y("-")?s("-"):function(){var e;switch(e=h()){case"\\":if(p(),!(e=w(!0))){if(!J&&"c"==h())return s("\\");W("classEscape")}return F(e,J);case"]":case"-":break;default:return p(),s(e)}}()}function $(t){var r,n,u=X;if(y("\\"))if(g("q{"))return function(){var t,r=X-3,n=[];do n.push(function(){for(var t,r,n=[],u=X;r=M();)n.push(r);return{type:"classString",characters:n,range:[u,t=X],raw:e.substring(u,t)}}());while(y("|"));return m("}"),{type:"classStrings",strings:n,range:[r,t=X],raw:e.substring(r,t)}}();else if(n=w(!0))r=n;else{if(n=z())return n;W("Invalid escape","\\"+h(),u)}else if(n=U())r=n;else{if(n=j())return n;W("Invalid character",h())}if(t&&b("-")&&!D("-")){if(p(),n=M())return c(r,n,u,X);W("Invalid range end",h())}return r}function M(){if(y("\\")){var e,t=X;if(e=z())return e;W("Invalid escape","\\"+h(),t)}return U()}function U(){var e;if(x(/^(?:&&|!!|##|\$\$|%%|\*\*|\+\+|,,|\.\.|::|;;|<<|==|>>|\?\?|@@|\^\^|``|~~)/)&&W("Invalid set operation in character class"),e=x(/^[^()[\]{}/\-\\|]/))return s(e)}function z(){var e;if(y("b"))return o("singleEscape",8,"\\b");if(y("B"))W("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=I())return e;else return null}function W(t,r,n,u){n=null==n?X:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}var q=[],V=0,Z=!0,G=!1,H=-1!==(t||"").indexOf("u"),K=-1!==(t||"").indexOf("v"),J=H||K,X=0;if(K&&!n.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(H&&K)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var Y=v();return(Y.range[1]!==e.length&&W("Could not parse entire input - got stuck","",Y.range[1]),G=G||q.some(function(e){return e<=V}))?(X=0,Z=!1,v()):Y}},aP.exports?aP.exports=n:window.regjsparser=n,aP.exports)}()),aR="method",aL="pattern",aj=e=>rx(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-aj(e.argument):void 0,aO=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name,aN="prefer-string-trim-start-end",a$="no-unreadable-iife",aM="throw-new-error",aU=/^(?:[A-Z][\da-z]*)*Error$/;var az=rK(function(){if(m)return p;m=1;let e=function(){if(l)return d;l=1;var e=/[|\\{}()[\]^$+*?.]/g;return d=function(t){if("string"!=typeof t)throw TypeError("Expected a string");return t.replace(e,"\\$&")}}(),t=f?c:(f=1,c=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 p=(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}}());function aW(){if(C)return A;function e(e){return e?t[e.type](e):""}C=1;var t={RegExp:function(t){return"/"+e(t.body)+"/"+t.flags},Alternative:function(t){return(t.expressions||[]).map(e).join("")},Disjunction:function(t){return e(t.left)+"|"+e(t.right)},Group:function(t){var r=e(t.expression);return t.capturing?t.name?"(?<"+(t.nameRaw||t.name)+">"+r+")":"("+r+")":"(?:"+r+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(t){switch(t.kind){case"^":case"$":case"\\b":case"\\B":return t.kind;case"Lookahead":var r=e(t.assertion);if(t.negative)return"(?!"+r+")";return"(?="+r+")";case"Lookbehind":var n=e(t.assertion);if(t.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+t.kind)}},CharacterClass:function(t){var r=t.expressions.map(e).join("");return t.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(t){return e(t.from)+"-"+e(t.to)},Repetition:function(t){return""+e(t.expression)+e(t.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){var t=e.negative?"P":"p";return"\\"+t+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};return A={generate:e}}function aq(){if(I)return T;I=1;var e=function(){if(k)return w;k=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=B({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)},R(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=R(n||o,s||o)),u=B({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?B(e[0],a):B({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=B(Object.assign({type:"Assertion"},e),a)}],[7,2,function(e,t,r,n){a=i(r,n),u=e,t&&(u=B({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=E(e,"simple",a=i(t,t))}],[10,1,function(e,t){a=i(t,t),(u=E(e.slice(1),"simple",a)).escaped=!0}],[10,1,function(e,t){(u=E(e,"unicode",a=i(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){u=E(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 B({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=E(e,"control",a=i(t,t))}],[10,1,function(e,t){u=E(e,"hex",a=i(t,t))}],[10,1,function(e,t){u=E(e,"oct",a=i(t,t))}],[10,1,function(e,t){var r,n,o;r=e,n=a=i(t,t),u=(o=Number(r.slice(1)))>0&&o<=y?B({type:"Backreference",kind:"number",number:o,reference:o},n):E(r,"decimal",n)}],[10,1,function(e,t){u=E(e,"meta",a=i(t,t))}],[10,1,function(e,t){u=E(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=P(r);if(h.hasOwnProperty(n))return B({type:"Backreference",kind:"name",number:h[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[E(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(E(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(E(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=B({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=B({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){u=B({type:"Quantifier",kind:e,greedy:!0},a=i(t,t))}],[13,1,function(e,t){a=i(t,t);var r=D(e);u=B({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t),u=B({type:"Quantifier",kind:"Range",from:D(e)[0],greedy:!0},a)}],[13,1,function(e,t){a=i(t,t);var r=D(e);u=B({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=P(l);if(!n.options.allowGroupNameDuplicates&&h.hasOwnProperty(c))throw SyntaxError('Duplicate of the named group "'+c+'".');h[c]=e.groupNumber,u=B({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=B({type:"Group",capturing:!0,number:e.groupNumber,expression:t},a)}],[16,3,function(e,t,r,n,o,s){u=B({type:"Group",capturing:!1,expression:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=B({type:"CharacterClass",negative:!0,expressions:t},a=i(n,s))}],[17,3,function(e,t,r,n,o,s){u=B({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=[B({type:"ClassRange",from:e,to:r},R(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=[B({type:"ClassRange",from:e,to:r},R(o,d))],n&&(u=u.concat(n))}],[21,1,function(e,t){u=E(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=E(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 I(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 I(r=r.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],p={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},m={type:"$",value:""};n.lexer=c={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(m);for(var e=this._string.slice(this._cursor),n=p[this.getCurrentState()],u=0;u<n.length;u++){var a=f[n[u]],i=this._match(e,a[0]);if(""===e&&""===i&&this._cursor++,null!==i){(r=i).length;var o=a[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var s,d=o.slice(1);o=o[0],d.length>0&&(s=this._tokensQueue).unshift.apply(s,t(d))}return this.onToken(this._toToken(o,r))}}if(this.isEOF())return this._cursor++,m;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t+":")+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},n.tokenizer=c,n.options={captureLocations:!0};var g={setOptions:function(e){return n.options=e,this},getOptions:function(){return n.options},parse:function(e,i){if(!c)throw Error("Tokenizer instance wasn't specified.");c.initString(e);var f=n.options;i&&(n.options=Object.assign({},n.options,i)),g.onParseBegin(e,c,n.options),l.length=0,l.push(0);var p=c.getNextToken(),m=null;do{p||(n.options=f,j());var y=l[l.length-1],h=s[p.type];d[y].hasOwnProperty(h)||(n.options=f,L(p));var b=d[y][h];if("s"===b[0]){var D=null;n.options.captureLocations&&(D={startOffset:p.startOffset,endOffset:p.endOffset,startLine:p.startLine,endLine:p.endLine,startColumn:p.startColumn,endColumn:p.endColumn}),m=this.onShift(p),l.push({symbol:s[m.type],semanticValue:m.value,loc:D},Number(b.slice(1))),p=c.getNextToken()}else if("r"===b[0]){var x=o[b.slice(1)],v="function"==typeof x[2],E=v?[]:null,A=v&&n.options.captureLocations?[]:null;if(0!==x[1])for(var C=x[1];C-- >0;){l.pop();var S=l.pop();v&&(E.unshift(S.semanticValue),A&&A.unshift(S.loc))}var F={symbol:x[0]};if(v){r=m?m.value:null,m&&m.value.length;var w=null!==A?E.concat(A):E;x[2].apply(x,t(w)),F.semanticValue=u,A&&(F.loc=a)}var k=l[l.length-1],T=x[0];l.push(F,d[k][T])}else if("acc"===b){l.pop();var I=l.pop();if((1!==l.length||0!==l[0]||c.hasMoreTokens())&&(n.options=f,L(p)),I.hasOwnProperty("semanticValue"))return n.options=f,g.onParseEnd(I.semanticValue),I.semanticValue;return g.onParseEnd(),n.options=f,!0}}while(c.hasMoreTokens()||l.length>1)},setTokenizer:function(e){return c=e,g},getTokenizer:function(){return c},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},y=0,h={},b="";function D(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")}g.onParseBegin=function(e,t){b=e,y=0,h={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},g.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++y),e};var v=function(){if(F)return S;F=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 S={isAlias:function(e){return t.hasOwnProperty(e)||n.hasOwnProperty(e)},isValidName:function(u){return e.hasOwnProperty(u)||t.hasOwnProperty(u)||r.hasOwnProperty(u)||n.hasOwnProperty(u)},isValidValue:function(e,t){var r,n;return"General_Category"===(r=e)||"gc"==r?d(t):("Script"===(n=e)||"Script_Extensions"===n||"sc"===n||"scx"===n)&&l(t)},isGeneralCategoryValue:d,isScriptCategoryValue:l,isBinaryPropertyName:function(e){return r.hasOwnProperty(e)||n.hasOwnProperty(e)},getCanonicalName:function(e){return t.hasOwnProperty(e)?t[e]:n.hasOwnProperty(e)?n[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:o.hasOwnProperty(e)?o[e]:n.hasOwnProperty(e)?n[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:e,NON_BINARY_ALIASES_TO_PROP_NAMES:t,BINARY_PROP_NAMES_TO_ALIASES:r,BINARY_ALIASES_TO_PROP_NAMES:n,GENERAL_CATEGORY_VALUE_TO_ALIASES:u,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:i,SCRIPT_VALUE_ALIASES_TO_VALUE:o}}();function E(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 B({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,}\}/,T=/\\u\{[0-9a-fA-F]{1,}\}/;function I(e,t){if(T.test(e)&&"u"!==t&&"xu"!==t&&"u_class"!==t)throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var _=/\\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 P(e){return e.replace(RegExp(_,"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 B(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 R(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 L(e){"$"===e.type&&j(),c.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function j(){throw SyntaxError("Unexpected end of input.")}return w=g}(),t=e.parse.bind(e);return e.parse=function(e,r){return t(""+e,r)},e.setOptions({captureLocations:!1}),T=e}function aV(){if(P)return _;P=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;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");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=[],_=n}function aZ(){if(R)return B;R=1;var e=aV();return B={traverse:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(t,r,n,u){var a=e.getForNode(r);return e.getForNode(t,a,n,u)}Array.isArray(r)||(r=[r]),r=r.filter(function(e){return"function"!=typeof e.shouldRun||e.shouldRun(t)}),e.initRegistry(),r.forEach(function(e){"function"==typeof e.init&&e.init(t)}),function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.pre,u=r.post,a=r.skipProperty;!function t(r,i,o,s){if(r&&"string"==typeof r.type){var d=void 0;if(n&&(d=n(r,i,o,s)),!1!==d){for(var l in i&&i[o]&&(r=isNaN(s)?i[o]:i[o][s]),r)if(r.hasOwnProperty(l)){if(a?a(l,r):"$"===l[0])continue;var c=r[l];if(Array.isArray(c)){var f=0;for(e.traversingIndexStack.push(f);f<c.length;)t(c[f],r,l,f),f=e.updateTraversingIndex(1);e.traversingIndexStack.pop()}else t(c,r,l)}}u&&u(r,i,o,s)}}(t,null)}(t,{pre:function(e,t,a,i){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"])if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,t,a,i);var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g)if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,t,a,i)}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,t,a,i){if(e){var o=void 0;n.asNodes||(o=u(e,t,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=r[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m)if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,t,a,i)}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})}}}function aG(){if(j)return L;j=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=aW(),r=aq(),n=aZ(),u=function(){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");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 L={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 aH(){return J?K:(J=1,K={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 aK(){return eF?eS:(eF=1,eS={EPSILON:"ε",EPSILON_CLOSURE:"ε*"})}function aJ(){if(ek)return ew;ek=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=aK(),n=r.EPSILON,u=r.EPSILON_CLOSURE;return ew=function(){function r(e,t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.in=e,this.out=t}return t(r,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)n!==u&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var t=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var r=new Set,a=new Set;!function n(u){if(!r.has(u)){r.add(u),u.number=r.size,t._transitionTable[u.number]={},u.accepting&&t._acceptingStates.add(u);var i=u.getTransitions(),o=!0,s=!1,d=void 0;try{for(var l,c=i[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value,p=e(f,2),m=p[0],g=p[1],y=[];a.add(m);var h=!0,b=!1,D=void 0;try{for(var x,v=g[Symbol.iterator]();!(h=(x=v.next()).done);h=!0){var E=x.value;n(E),y.push(E.number)}}catch(e){b=!0,D=e}finally{try{!h&&v.return&&v.return()}finally{if(b)throw D}}t._transitionTable[u.number][m]=y}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}}}(this.in),r.forEach(function(e){delete t._transitionTable[e.number][n],t._transitionTable[e.number][u]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(e.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),r}()}function aX(){if(eN)return eO;eN=1;var e=aJ(),t=function(){if(ej)return eL;ej=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(eR)return eB;eR=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 eB=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accepting;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");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=aK().EPSILON;return eL=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);function n(){if(!(this instanceof n))throw TypeError("Cannot call a class as a function");var e=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t),e(n,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,u=!1,a=void 0;try{for(var i,o=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(n=(i=o.next()).done);n=!0)if(i.value.matches("",t))return!0}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return!1}var s=e[0],d=e.slice(1),l=this.getTransitionsOnSymbol(s),c=!0,f=!1,p=void 0;try{for(var m,g=l[Symbol.iterator]();!(c=(m=g.next()).done);c=!0)if(m.value.matches(d))return!0}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}var y=!0,h=!1,b=void 0;try{for(var D,x=this.getTransitionsOnSymbol(r)[Symbol.iterator]();!(y=(D=x.next()).done);y=!0)if(D.value.matches(e,t))return!0}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(r),n=e._epsilonClosure=new Set;n.add(e);var u=!0,a=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;n.has(d)||(n.add(d),d.getEpsilonClosure().forEach(function(e){return n.add(e)}))}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}}(),this._epsilonClosure}}]),n}(t)}(),r=aK().EPSILON;function n(r){var n=new t,u=new t({accepting:!0});return new e(n.addTransition(r,u),u)}return eO={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,c.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 aY=rK(eH?eG:(eH=1,eG=function(){if(eZ)return eV;eZ=1;var e=function(){if(N)return O;N=1;var e=E?v:(E=1,v={dotAll:y?g:(y=1,g={_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:b?h:(b=1,h={_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:x?D:(x=1,D={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}})}),t=aG();return O={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=aW(),r=function(){if(eC)return eA;eC=1;var e=M?$:(M=1,$=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=aq(),r=aG(),n=eE?ev:(eE=1,ev=new Map([["charSurrogatePairToSingleUnicode",z?U:(z=1,U={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",q?W:(q=1,W={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(u=(n=r).from,a=n.to,u.codePoint>=48&&u.codePoint<=57&&a.codePoint>=48&&a.codePoint<=57||u.codePoint>=65&&u.codePoint<=90&&a.codePoint>=65&&a.codePoint<=90||u.codePoint>=97&&u.codePoint<=122&&a.codePoint>=97&&a.codePoint<=122))){if((i=t.codePoint)>=32&&i<=126){var n,u,a,i,o,s,d=String.fromCodePoint(t.codePoint),l={type:"Char",kind:"simple",value:d,symbol:d,codePoint:t.codePoint};o=d,("ClassRange"===(s=r.type)||"CharacterClass"===s?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(l.escaped=!0),e.replace(l)}}}})],["charCaseInsensitiveLowerCaseTransform",Z?V:(Z=1,V={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n,u=e.node,a=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===a.type){if(!this._AZClassRanges.has(a)&&(r=(t=a).from,n=t.to,!(r.codePoint>=65)||!(r.codePoint<=90)||!(n.codePoint>=65)||!(n.codePoint<=90)))return;this._AZClassRanges.add(a)}var i=u.symbol.toLowerCase();i!==u.symbol&&(u.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind)if(t.isSurrogatePair){var n,u={lead:(Math.floor(((n=r)-65536)/1024)+55296).toString(16),trail:((n-65536)%1024+56320).toString(16)},a=u.lead,i=u.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-i.length)+i}else{if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var o=r.toString(16);return"\\u"+"0".repeat(4-o.length)+o}return e}(i,u),u.symbol=i,u.codePoint=i.codePointAt(0))}}})],["charClassRemoveDuplicates",H?G:(H=1,G={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(Y)return X;Y=1;var e=aH().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 X={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",ee?Q:(ee=1,Q={Quantifier:function(e){var t,r,n,u;"Range"===e.node.kind&&(0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(u=(n=e).node).from&&1===u.to&&n.parentPath.replace(n.parentPath.node.expression))}})],["charClassClassrangesToChars",er?et:(er=1,et={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(eu)return en;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}eu=1,en={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var r,a,i,o,s,d,l,c,f,p,m;(r=e).node.expressions.forEach(function(e,t){var n;"ClassRange"===(n=e).type&&"0"===n.from.value&&"9"===n.to.value&&r.getChild(t).replace({type:"Char",value:"\\d",kind:"meta"})}),a=e,i=this._hasIFlag,o=this._hasUFlag,s=a.node,d=null,l=null,c=null,f=null,p=null,m=null,s.expressions.forEach(function(e,t){var r,s,g;n(e,"\\d")?d=a.getChild(t):"ClassRange"===(r=e).type&&"a"===r.from.value&&"z"===r.to.value?l=a.getChild(t):"ClassRange"===(s=e).type&&"A"===s.from.value&&"Z"===s.to.value?c=a.getChild(t):"Char"===(g=e).type&&"_"===g.value&&"simple"===g.kind?f=a.getChild(t):i&&o&&u(e,383)?p=a.getChild(t):i&&o&&u(e,8490)&&(m=a.getChild(t))}),d&&(l&&c||i&&(l||c))&&f&&(!o||!i||p&&m)&&(d.replace({type:"Char",value:"\\w",kind:"meta"}),l&&l.remove(),c&&c.remove(),f.remove(),p&&p.remove(),m&&m.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 en}()],["charClassToSingleChar",ei?ea:(ei=1,ea={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(es)return eo;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 es=1,eo={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(r){var n,u,a,i,o,s,d,l,c,f,p,m,g=r.node;!g.escaped||(n=r,u=this._hasXFlag,a=n.node.value,i=n.index,"CharacterClass"!==(o=n.parent).type&&"ClassRange"!==o.type?(s=a,d=i,l=o,c=u,"{"===s?function(r,n){if(null==r)return!1;var u=e(r+1,n),a=r+u+1,i=a<n.expressions.length&&n.expressions[a];if(u){if(t(i,"}"))return!0;if(t(i,","))return u=e(a+1,n),t(i=(a=a+u+1)<n.expressions.length&&n.expressions[a],"}")}return!1}(d,l):"}"===s?function(r,n){if(null==r)return!1;var u=e(r-1,n,!0),a=r-u-1,i=a>=0&&n.expressions[a];return!!(u&&t(i,"{"))||!!t(i,",")&&(u=e(a-1,n,!0),i=(a=a-u-1)<n.expressions.length&&n.expressions[a],u&&t(i,"{"))}(d,l):!!(c&&/[ #]/.test(s))||/[*[()+?^$./\\|]/.test(s)):(f=a,p=i,m=o,"^"===f?0===p&&!m.negative:"-"===f||/[\]\\]/.test(f)))||delete g.escaped}}}()],["charClassClassrangesMerge",function(){if(el)return ed;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 el=1,ed={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(t){var n=t.node.expressions,s=[];n.forEach(function(e){r(e)&&s.push(e.value)}),n.sort(e);for(var d=0;d<n.length;d++){var l,c,f=n[d];if(function(e,t,n){for(var o=0;o<t.length;o++)if(function e(t,n,o){return"ClassRange"===t.type?e(t.from,n,o)&&e(t.to,n,o):!!("\\S"===n&&(r(t,"\\w")||r(t,"\\d"))||"\\D"===n&&(r(t,"\\W")||r(t,"\\s"))||"\\w"===n&&r(t,"\\d")||"\\W"===n&&r(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===n?u(t):"\\S"===n?!u(t):"\\d"===n?a(t):"\\D"===n?!a(t):"\\w"===n?i(t,o):"\\W"===n&&!i(t,o))}(e,t[o],n))return!0;return!1}(f,s,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;else if(o(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;else if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(f,n[d-1])||(l=f,(c=n[d+1])&&"ClassRange"===c.type&&o(l)&&c.from.codePoint===l.codePoint+1&&(c.from=l,1)))n.splice(d,1),d--;else{var p=function(e,t,r){if(!o(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(o(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(f,d,n);n.splice(d-p+1,p),d-=p}}}}}()],["disjunctionRemoveDuplicates",function(){if(ef)return ec;ef=1;var e=aV(),t=aH(),r=t.disjunctionToList,n=t.listToDisjunction;return ec={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(em)return ep;em=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 ep={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",ey?eg:(ey=1,eg={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(eb)return eh;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 eb=1,eh={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(ex)return eD;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}ex=1;var t=aV(),r=aH().increaseQuantifierByOne;return eD={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 eA={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=aq(),u=aG(),a=aZ(),i=function(){if(ez)return eU;ez=1;var e=aJ(),t=function(){if(eP)return e_;eP=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(eI)return eT;eI=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 eT={minimize:function(n){var u=n.getTransitionTable(),a=Object.keys(u),i=n.getAlphabet(),o=n.getAcceptingStateNumbers();r={};var s=new Set;a.forEach(function(e){e=Number(e),o.has(e)?r[e]=o:(s.add(e),r[e]=s)});var d=[[s,o].filter(function(e){return e.size>0})],l=void 0,c=void 0;for(l=d[d.length-1],c=d[d.length-2];!function(e,r){if(!r||e.length!==r.length)return!1;for(var n=0;n<e.length;n++){var u=e[n],a=r[n];if(u.size!==a.size||[].concat(t(u)).sort().join(",")!==[].concat(t(a)).sort().join(","))return!1}return!0}(l,c);)!function(){var e={},n=!0,a=!1,o=void 0;try{for(var s,f=l[Symbol.iterator]();!(n=(s=f.next()).done);n=!0){var p=s.value,m={},g=Array.isArray(p)?p:Array.from(p),y=g[0],h=g.slice(1);m[y]=new Set([y]);var b=!0,D=!1,x=void 0;try{e:for(var v,E=h[Symbol.iterator]();!(b=(v=E.next()).done);b=!0){var A=v.value,C=!0,S=!1,F=void 0;try{for(var w,k=Object.keys(m)[Symbol.iterator]();!(C=(w=k.next()).done);C=!0){var T=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,T,u,i)){m[T].add(A),m[A]=m[T];continue e}}}catch(e){S=!0,F=e}finally{try{!C&&k.return&&k.return()}finally{if(S)throw F}}m[A]=new Set([A])}}catch(e){D=!0,x=e}finally{try{!b&&E.return&&E.return()}finally{if(D)throw x}}Object.assign(e,m)}}catch(e){a=!0,o=e}finally{try{!n&&f.return&&f.return()}finally{if(a)throw o}}r=e;var I=new Set(Object.keys(e).map(function(t){return e[t]}));d.push([].concat(t(I))),l=d[d.length-1],c=d[d.length-2]}();var f=new Map,p=1;l.forEach(function(e){return f.set(e,p++)});var m={},g=new Set,y=!0,h=!1,b=void 0;try{for(var D,x=f.entries()[Symbol.iterator]();!(y=(D=x.next()).done);y=!0){var v=D.value,E=e(v,2),A=E[0],C=E[1];m[C]={};var S=!0,F=!1,w=void 0;try{for(var k,T=i[Symbol.iterator]();!(S=(k=T.next()).done);S=!0){var I=k.value;!function(e,t){var r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;o.has(s)&&g.add(t)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(A,C);var _=void 0,P=!0,B=!1,R=void 0;try{for(var L,j=A[Symbol.iterator]();!(P=(L=j.next()).done)&&!(_=u[L.value][I]);P=!0);}catch(e){B=!0,R=e}finally{try{!P&&j.return&&j.return()}finally{if(B)throw R}}_&&(m[C][I]=f.get(r[_]))}}catch(e){F=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(F)throw w}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}return n.setTransitionTable(m),n.setAcceptingStateNumbers(g),n}}}(),n=aK().EPSILON_CLOSURE;return e_=function(){function u(e){if(!(this instanceof u))throw TypeError("Cannot call a class as a function");this._nfa=e}return e(u,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,r.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var r=this._nfa.getTransitionTable(),u=Object.keys(r);this._acceptingStateNumbers=new Set;for(var a=[r[u[0]][n]],i=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),s={};a.length>0;){var d=a.shift(),l=d.join(",");s[l]={};var c=!0,f=!1,p=void 0;try{for(var m,g=i[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var y=m.value,h=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var a,i=o[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var s=a.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}}(d);var b=!0,D=!1,x=void 0;try{for(var v,E=d[Symbol.iterator]();!(b=(v=E.next()).done);b=!0){var A=r[v.value][y];if(A){var C=!0,S=!1,F=void 0;try{for(var w,k=A[Symbol.iterator]();!(C=(w=k.next()).done);C=!0){var T=w.value;r[T]&&h.push.apply(h,t(r[T][n]))}}catch(e){S=!0,F=e}finally{try{!C&&k.return&&k.return()}finally{if(S)throw F}}}}}catch(e){D=!0,x=e}finally{try{!b&&E.return&&E.return()}finally{if(D)throw x}}var I=new Set(h),_=[].concat(t(I));if(_.length>0){var P=_.join(",");s[l][y]=P,s.hasOwnProperty(P)||a.unshift(_)}}}catch(e){f=!0,p=e}finally{try{!c&&g.return&&g.return()}finally{if(f)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),u}()}(),r=function(){if(eM)return e$;eM=1;var e=aq(),t=aX(),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 e$={build:function(t){var r=t;return t instanceof RegExp&&(t=""+t),"string"==typeof t&&(r=e.parse(t,{captureLocations:!0})),s(r)}}}();return eU={NFA:e,DFA:t,builders:aX(),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(eq)return eW;eq=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 eW={RegExpTree:function(){function t(e,r){var n=r.flags,u=r.groups,a=r.source;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");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 eV={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)}}}()));let aQ="better-regex",a0="better-regex/parse-error",a1={create:e=>{let{sortCharacterClasses:t}=e.options[0],r=[];!1===t&&r.push("charClassClassrangesMerge"),e.on("Literal",e=>{if(!rv(e))return;let{raw:t,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=t;try{let e;u=(e=u=aY.optimize(t,void 0,{blacklist:r}).toString()).startsWith("//")?`/(?:)/${e.slice(2)}`:e}catch(r){return{node:e,messageId:a0,data:{original:t,error:r.message}}}if(t===u)return;let a={node:e,messageId:aQ,data:{original:t,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(a,{fix:t=>t.replaceText(e,u)}):a}),e.on("NewExpression",e=>{if(!rF(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!rD(t))return;let n=t.value,u=az(n,rD(r)?r.value:"");if(n!==u)return{node:e,messageId:aQ,data:{original:n,optimized:u},fix:e=>e.replaceText(t,rX(u,t.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",description:"Whether to sort character classes."}}}],defaultOptions:[{sortCharacterClasses:!0}],messages:{[aQ]:"{{original}} can be optimized to {{optimized}}.",[a0]:"Problem parsing {{original}}: {{error}}"}}},a3="escape-uppercase",a2="escape-lowercase",a4=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,a5=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[A-Za-z])/g,a8=({node:e,original:t,regex:r=a4,lowercase:n,fix:u})=>{let a=t.replace(r,e=>e[0]+e.slice(1)[n?"toLowerCase":"toUpperCase"]());if(a!==t)return{node:e,messageId:n?a2:a3,fix:t=>u?u(t,a):t.replaceText(e,a)}},a6="no-hex-escape";function a9(e,t,r){let n=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==n)return{node:t,messageId:a6,fix:r=>"TemplateElement"===t.type?ug(t,n,e,r):r.replaceText(t,n)}}let a7=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ie=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError","SuppressedError"],it="missing-message",ir="message-is-empty-string",iu="message-is-not-a-string",ia=new Map([["AggregateError",1],["SuppressedError",2]]),ii=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],io=e=>"instanceof"===e.value&&"Keyword"===e.type,is="no-instanceof-builtins",id="switch-to-type-of",il=new Set(["String","Number","Boolean","BigInt","Symbol"]),ic=[...ie,"Map","Set","WeakMap","WeakRef","WeakSet","ArrayBuffer",...ii,"Object","RegExp","Promise","Proxy","DataView","Date","SharedArrayBuffer","FinalizationRegistry"],ip=(e,t)=>function*(r){let{left:n,right:u}=e,a=ni(t,e),i=a.getTokenAfter(n,io),{sourceCode:o}=t,s=o.getAncestors(e).findLast(e=>"VExpressionContainer"===e.type),d=s?'"'===o.getText(s)[0]?"'":'"':"'";yield us(r,e,t);let l=rg(n,{sourceCode:a});yield r.insertTextBeforeRange(l,"typeof "),yield r.replaceText(i,"===");let c=rg(u,{sourceCode:a});yield r.replaceTextRange(c,d+o.getText(u).toLowerCase()+d)},im={create:nN(e=>{let{useErrorIsError:t=!1,strategy:r="loose",include:n=[],exclude:u=[]}=e.options[0]??{},a=new Set("strict"===r?[...ic,...n]:n);e.on("BinaryExpression",r=>{let{right:n,operator:i}=r;if("instanceof"!==i||"Identifier"!==n.type||u.includes(n.name))return;let o=n.name,s={node:r,messageId:is};if("Array"===o||"Error"===o&&t){let t="Array"===o?"Array.isArray":"Error.isError";return s.fix=function*(n){let{left:u,right:a}=r,i=ni(e,r),o=i.getTokenAfter(u,io);yield us(n,r,e);let s=rg(u,{sourceCode:i});yield n.insertTextBeforeRange(s,t+"("),yield n.insertTextAfterRange(s,")"),yield uy(o,"",n,e,i),yield uy(a,"",n,e,i)},s}return"Function"===o?(s.fix=ip(r,e),s):il.has(o)?(s.suggest=[{messageId:id,data:{type:o.toLowerCase()},fix:ip(r,e)}],s):a.has(o)?s:void 0})}),meta:{type:"problem",docs:{description:"Disallow `instanceof` with built-in objects",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",properties:{useErrorIsError:{type:"boolean"},strategy:{enum:["loose","strict"]},include:{type:"array",items:{type:"string"}},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1}],defaultOptions:[{useErrorIsError:!1,strategy:"loose",include:[],exclude:[]}],hasSuggestions:!0,messages:{[is]:"Avoid using `instanceof` for type checking as it can lead to unreliable results.",[id]:"Switch to `typeof … === '{{type}}'`."}}},ig="prefer-type-error",iy=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"]),ih=new Set(["isNaN","isFinite"]),ib=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&iy.has(e.name)||!1===r&&ih.has(e.name)),iD=(e,t)=>!!ib(e.property,t,!0)||"MemberExpression"===e.object.type&&iD(e.object,t),ix=/^(?:[A-Z][\da-z]*)*Error$/,iv=(e,t)=>{switch(e.type){case"Identifier":return ib(e,t,!1);case"MemberExpression":return iD(e,t);case"CallExpression":return iv(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&iv(e.argument);case"BinaryExpression":{let{operator:r,left:n,right:u}=e;if("instanceof"===r)return!("Identifier"===u.type?ix.test(u.name):"MemberExpression"===u.type&&!u.optional&&!u.computed&&"Identifier"===u.property.type&&ix.test(u.property.name));return iv(n,t)||iv(u,t)}case"LogicalExpression":return iv(e.left,t)&&iv(e.right,t);default:return!1}},iE="consistentDestructuring",iA="consistentDestructuringSuggest",iC=e=>{for(;e?.type==="MemberExpression";)e=e.object;return e?.type==="Identifier"?e:void 0},iS=e=>{switch(e?.type){case"RestElement":return!0;case"AssignmentPattern":return iS(e.left);case"ObjectPattern":return e.properties.some(e=>iS("Property"===e.type?e.value:e));case"ArrayPattern":return e.elements.some(e=>iS(e));default:return!1}},iF=e=>"Property"===e.type&&"Identifier"===e.key.type,iw=e=>{switch(e?.type){case"AssignmentPattern":return iw(e.left);case"ObjectPattern":return e.properties.some(e=>"RestElement"!==e.type&&iS(e.value));case"ArrayPattern":return e.elements.some(e=>!!e&&"RestElement"!==e.type&&iS(e));default:return!1}},ik=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...ii],iT="error-date",iI="suggestion-date",i_=new u1({objects:["BigInt","Boolean","Number","String","Symbol"],type:u1.CONSTRUCT,handle:function({node:e,path:[t]},r){let n={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(n.fix=t=>ui(e,r,t)),n}}),iP=new u1({objects:ik,type:u1.CALL,handle:function({node:e,path:[t]},r){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}if("Date"===t){function*n(t){yield t.replaceText(e,"String(new Date())"),yield us(t,e,r)}let t={node:e,messageId:iT};return 0===r.sourceCode.getCommentsInside(e).length&&0===e.arguments.length?t.fix=n:t.suggest=[{messageId:iI,fix:n}],t}return{node:e,messageId:"enforce",data:{name:t},fix:t=>ud(e,r,t)}}}),iB="error/array-push",iR="suggestion",iL=e=>rL(e,{property:"classList",computed:!1}),ij=[{description:"Array#push()",test:e=>rj(e,{method:"push",optionalCall:!1}),ignore:["stream.push","this.push","this.stream.push","process.stdin.push","process.stdout.push","process.stderr.push"]},{description:"Element#classList.add()",test:e=>rj(e,{method:"add",optionalCall:!1,optionalMember:!1})&&iL(e.callee.object)},{description:"Element#classList.remove()",test:e=>rj(e,{method:"remove",optionalCall:!1,optionalMember:!1})&&iL(e.callee.object)},{description:"importScripts()",test:e=>rS(e,{name:"importScripts"})}],iO={create:function(e){let{ignore:t}=e.options[0],{sourceCode:r}=e;e.on("CallExpression",function*(n){for(let{description:u,test:a,ignore:i=[]}of ij){if(!a(n))continue;let o=[...i,...t];if(r$(n.callee,o))continue;let s=n.parent;if("ChainExpression"===s.type&&n===s.expression&&(s=s.parent),"ExpressionStatement"!==s.type)continue;let d=nG(s,e);if(d?.type!=="ExpressionStatement")continue;let l=d.expression;if("ChainExpression"===l.type&&(l=l.expression),!a(l)||!nS(l.callee,n.callee))continue;let c=n.arguments,f={node:"Identifier"===n.callee.type?n.callee:n.callee.property,messageId:iB,data:{description:u}},p=function*(t){if(c.length>0){let r=nu(e,n),{trailingCommaToken:u,closingParenthesisToken:a}=nn(l,e);yield u?t.insertTextAfter(u,` ${r}`):t.insertTextBefore(a,l.arguments.length>0?`, ${r}`:r)}let u=!tN(r.getLastToken(d))&&tN(r.getLastToken(s)),[,a]=r.getRange(d),[,i]=r.getRange(s);yield t.replaceTextRange([a,i],u?";":"")};c.some(e=>t7(e,r))?f.suggest=[{messageId:iR,fix:p}]:f.fix=p,yield f}})},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0,description:"Methods to ignore."}}}],defaultOptions:[{ignore:[]}],messages:{[iB]:"Do not call `{{description}}` multiple times.",[iR]:"Merge with previous one."}}},iN="no-process-exit",i$=e=>rb(e,"node:worker_threads")||rb(e,"worker_threads"),iM="no-single-promise-in-promise-methods/error",iU="no-single-promise-in-promise-methods/unwrap",iz="no-single-promise-in-promise-methods/use-promise-resolve",iW=["all","any","race"],iq="no-static-only-class",iV=({type:e,value:t})=>"Punctuator"===e&&"="===t,iZ=e=>"PropertyDefinition"===e.type,iG="no-unreadable-array-destructuring",iH="spread-in-list",iK="iterable-to-array",iJ="iterable-to-array-in-for-of",iX="iterable-to-array-in-yield-star",iY="clone-array",iQ=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",i0={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*i1(e,t,r){let{sourceCode:n}=r,[u,a,i]=n.getFirstTokens(t,3);yield e.remove(u),yield e.remove(a);let[o,s]=n.getLastTokens(t,2);yield e.remove(s),tO(o)&&(yield e.remove(o));let{parent:d}=t;"ReturnStatement"!==d.type&&"ThrowStatement"!==d.type||d.argument!==t||nv(u,i,r)||rh(t,r)?yield us(e,t,r):yield uu(e,d,r)}let i3="no-useless-switch-case/error",i2="no-useless-switch-case/suggestion",i4=e=>e.consequent.every(e=>rT(e)),i5="no-useless-undefined",i8=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),i6=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},i9={create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{if(n){let r=i6(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:i5,fix:r}},n=e.options[0];e.on("Identifier",n=>{if(rU(n)&&"ReturnStatement"===n.parent.type&&n.parent.argument===n){let u=i6(t.getScope(n));if(!u?.returnType||u.returnType?.typeAnnotation?.type==="TSUndefinedKeyword")return r(n,t=>uy(n,"",t,e))}}),e.on("Identifier",t=>{if(rU(t)&&"YieldExpression"===t.parent.type&&!t.parent.delegate&&t.parent.argument===t)return r(t,r=>uy(t,"",r,e))}),n.checkArrowFunctionBody&&e.on("Identifier",t=>{if(rU(t)&&"ArrowFunctionExpression"===t.parent.type&&t.parent.body===t)return r(t,r=>uy(t," {}",r,e),!0)}),e.on("Identifier",e=>{if(rU(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)){let[,n]=t.getRange(e.parent.id),[,u]=t.getRange(e);return r(e,e=>e.removeRange([n,u]),!0)}}),e.on("Identifier",n=>{if(rU(n)&&"AssignmentPattern"===n.parent.type&&n.parent.right===n)return r(n,function*(r){let u=n.parent,{left:a}=u,[,i]=t.getRange(a),[,o]=t.getRange(n);yield r.removeRange([i,o]),(a.typeAnnotation||/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename))&&!a.optional&&rR(u.parent)&&u.parent.params.includes(u)&&(yield a.typeAnnotation?r.insertTextBefore(a.typeAnnotation,"?"):r.insertTextAfter(a,"?"))},!0)}),n.checkArguments&&e.on("CallExpression",t=>{var r;let n,u=t.arguments,a=u.at(-1);if(!(!rU(a)||("Identifier"===(r=t.callee).type?n=r.name:"MemberExpression"===r.type&&!1===r.computed&&"Identifier"===r.property.type&&(n=r.property.name),i8.has(n)||"push"===n||"unshift"===n||"includes"===n||"add"===n||"has"===n||"delete"===n||"set"===n||"createContext"===n||/^set[A-Z]/.test(n)||"useRef"===n||"ref"===n))&&(!(!t.optional&&"MemberExpression"===t.callee.type&&!t.callee.computed&&"Identifier"===t.callee.property.type&&"bind"===t.callee.property.name)||1===u.length))return{node:a,messageId:i5,fix:t=>ur(t,a,e)}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean",description:"Whether to check function arguments."},checkArrowFunctionBody:{type:"boolean",description:"Whether to check arrow function bodies."}}}],defaultOptions:[{checkArguments:!0,checkArrowFunctionBody:!0}],messages:{[i5]:"Do not use useless `undefined`."}}},i7="numeric-separators-style";function oe(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 ot={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},or={create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:n,hexadecimal:u,number:a}=e.options[0],i={"0b":{onlyIfContainsSeparator:t,...r},"0o":{onlyIfContainsSeparator:t,...n},"0x":{onlyIfContainsSeparator:t,...u},"":{onlyIfContainsSeparator:t,...a}};e.on("Literal",e=>{let t,r;if(!(rx(e)||rA(e))||rx(e)&&/^0\d+$/.test(e.raw))return;let{raw:n}=e,u=n,a="";rA(e)&&(u=n.slice(0,-1),a="n");let o=u.replaceAll("_",""),{prefix:s,data:d}=(t="",r=o,/^0[box]/i.test(o)&&(t=o.slice(0,2),r=o.slice(2)),{prefix:t,data:r}),{onlyIfContainsSeparator:l}=i[s.toLowerCase()];if(l&&!n.includes("_"))return;let c=function(e,{prefix:t,data:r},n){let u=n[t.toLowerCase()];if(t)return t+oe(r,u);let{number:a,mark:i,sign:o,power:s}=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}}(e);return function(e,t){let{integer:r,dot:n,fractional:u}=function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}(e);return oe(r,t)+n+oe(u,t,!0)}(a,u)+i+o+oe(s,n[""])}(o,{prefix:s,data:d},i)+a;if(n!==c)return{node:e,messageId:i7,fix:t=>t.replaceText(e,c)}})},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(ot).map(([e])=>[e,{type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean",description:"Whether to only enforce the style if the number already contains a separator."},minimumDigits:{type:"integer",minimum:0,description:"The minimum number of digits before separators are enforced."},groupLength:{type:"integer",minimum:1,description:"The number of digits in each group."}}}])),onlyIfContainsSeparator:{type:"boolean",description:"Whether to only enforce the style if the number already contains a separator."}}}],defaultOptions:[{onlyIfContainsSeparator:!1,binary:ot.binary,octal:ot.octal,hexadecimal:ot.hexadecimal,number:ot.number}],messages:{[i7]:"Invalid group length in numeric value."}}},on="error-zero-index",ou="error-shift",oa="error-pop",oi="error-at-zero",oo="error-at-minus-one",os="error-destructuring-declaration",od="error-destructuring-assignment",ol="error-variable",oc="suggest-nullish-coalescing-operator",of="suggest-logical-or-operator",op=(e,t)=>rj(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,...t}),om=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*og(e,t,r){let{left:n}=om(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),((e,t)=>{if("AssignmentExpression"!==e.type||re(e,t))return!1;let{left:r}=om(e),[n]=r.elements,{type:u}="AssignmentPattern"===n.type?n.left:n;return"ObjectExpression"===u||"ObjectPattern"===u})(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let oy=e=>"AssignmentPattern"===om(e).left.elements[0].type,oh=(e,t)=>{let r,n,{property:u}=om(t).right.callee;return oy(t)?r=[{operator:"??",messageId:oc},{operator:"||",messageId:of}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield((e,t,r,n)=>{let{left:u,right:a}=om(e),[i]=u.elements,o=i.right,s=t.getText(o);return(re(o,t)||"LogicalExpression"===o.type&&(o.operator===n||"||"===n&&"??"===o.operator||"??"===n&&("||"===o.operator||"&&"===o.operator))||"ConditionalExpression"===o.type||"AssignmentExpression"===o.type||"YieldExpression"===o.type||"SequenceExpression"===o.type)&&(s=`(${s})`),r.insertTextAfter(a,` ${n} ${s}`)})(t,e,r,n),yield og(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield og(t,e,r)},{fix:n,suggest:r}},ob=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,oD=e=>{let{left:t,right:r}=om(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type},ox={create:e=>{let{sourceCode:t}=e,{checkFromLast:r}=e.options[0];e.on("MemberExpression",t=>{if(t.computed&&"Literal"===t.property.type&&"0"===t.property.raw&&op(t.object)&&!nd(t))return{node:t.object.callee.property,messageId:on,fix:r=>[r.replaceText(t.object.callee.property,"find"),uc(r,t,e)]}}),e.on("CallExpression",t=>{if(rj(t,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&op(t.callee.object))return{node:t.callee.object.callee.property,messageId:ou,fix:r=>[r.replaceText(t.callee.object.callee.property,"find"),...uf(r,t,e)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&op(e.init,{optionalMember:!1}))return{node:e.init.callee.property,messageId:os,...oh(t,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&&op(e.right,{optionalMember:!1}))return{node:e.right.callee.property,messageId:od,...oh(t,e)}}),e.on("VariableDeclarator",r=>{if(!("Identifier"===r.id.type&&op(r.init,{optionalMember:!1})&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&("ExportNamedDeclaration"!==r.parent.parent.type||r.parent.parent.declaration!==r.parent)))return;let n=t.getScope(r),u=tR(n,r.id),a=no(u).filter(e=>e!==r.id);if(0===a.length)return;let i=[],o=[];for(let e of a)if(ob(e))i.push(e.parent);else{if(!oD(e))return;o.push(e.parent)}let s={node:r.init.callee.property,messageId:ol};return o.some(e=>oy(e))||(s.fix=function*(a){yield a.replaceText(r.init.callee.property,"find");let s=(e=>{let t=nq.singular(e);if(t!==e)return t})(r.id.name);if(s){let r=nt(s,r3(n));yield um(u,r,e,a),yield function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")}(a,t.getRange(t.ast))}for(let t of i)yield uc(a,t,e);for(let e of o)yield og(e,t,a)}),s}),e.on("CallExpression",t=>{if(rj(t,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===t.arguments[0].type&&"0"===t.arguments[0].raw&&op(t.callee.object))return{node:t.callee.object.callee.property,messageId:oi,fix:r=>[r.replaceText(t.callee.object.callee.property,"find"),...uf(r,t,e)]}}),r&&(e.on("CallExpression",t=>{if(rj(t,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&op(t.callee.object))return{node:t.callee.object.callee.property,messageId:oa,fix:r=>[r.replaceText(t.callee.object.callee.property,"findLast"),...uf(r,t,e)]}}),e.on("CallExpression",t=>{if(rj(t,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===t.arguments[0].type&&"-"===t.arguments[0].operator&&t.arguments[0].prefix&&"Literal"===t.arguments[0].argument.type&&"1"===t.arguments[0].argument.raw&&op(t.callee.object))return{node:t.callee.object.callee.property,messageId:oo,fix:r=>[r.replaceText(t.callee.object.callee.property,"findLast"),...uf(r,t,e)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",description:"Whether to also check for patterns that can be replaced with `findLast()`."}}}],defaultOptions:[{checkFromLast:!0}],messages:{[ol]:"Prefer `.find(…)` over `.filter(…)`.",[on]:"Prefer `.find(…)` over `.filter(…)[0]`.",[oi]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[ou]:"Prefer `.find(…)` over `.filter(…).shift()`.",[oa]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[oo]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[os]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[od]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[oc]:"Replace `.filter(…)` with `.find(…) ?? …`.",[of]:"Replace `.filter(…)` with `.find(…) || …`."}}},ov="prefer-array-flat-map",oE=["React.Children","Children"],oA="prefer-array-flat",oC={getArrayNode:e=>e.callee.object,isOptionalArray:e=>e.callee.optional,description:"Array#flatMap()",testFunction(e,t){if(!rj(e,{method:"flatMap",argumentsLength:1,optionalCall:!1}))return!1;let[r]=e.arguments;return"ArrowFunctionExpression"===r.type&&!r.async&&1===r.params.length&&nE(r.params[0],r.body)&&!o_(e.callee.object,t)}},oS={testFunction(e){if(!rj(e,{method:"reduce",argumentsLength:2,optionalCall:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&rI(r)))return!1;let n=t.body,[u,a]=t.params;return rj(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&nE(u,n.callee.object)&&nE(a,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&nE(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,isOptionalArray:e=>e.callee.optional,description:"Array#reduce()"},oF={testFunction:e=>rj(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&rI(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},ow={testFunction(e){if(!(rj(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&rz(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return rI(t)&&("call"===e.callee.property.name||"SpreadElement"!==r.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},ok=["_.flatten","lodash.flatten","underscore.flatten"],oT=/^\p{Lu}/u,oI=(e,t)=>{if("Identifier"!==e.type)return;let r=tR(t.sourceCode.getScope(e),e);if(!r||1!==r.defs.length)return;let[n]=r.defs;if("Variable"===n.type&&"VariableDeclarator"===n.node.type&&"VariableDeclaration"===n.parent.type&&"const"===n.parent.kind)return n.node.init},o_=(e,t)=>{let r,n;return"Identifier"===e.type&&oT.test(e.name)&&(!(r=oI(e,t))||"ArrayExpression"!==r.type&&("NewExpression"!==r.type||"Identifier"!==r.callee.type||"Array"!==r.callee.name))||!!((n=oI(e,t))&&("ObjectExpression"===n.type||"Literal"===n.type||"TemplateLiteral"===n.type||"ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"ClassExpression"===n.type||"NewExpression"===n.type&&"Identifier"===n.callee.type&&"Array"!==n.callee.name))},oP={create:function(e){let{functions:t}=e.options[0],r=[...t,...ok],n=[oC,oS,oF,ow,{testFunction:e=>rS(e,{argumentsLength:1,optional:!1})&&r$(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>rN(e.callee,t)).trim()}()`}];e.on("CallExpression",function*(t){for(let{testFunction:r,description:u,getArrayNode:a,shouldSwitchToArray:i,isOptionalArray:o}of n){if(!r(t,e))continue;let n=a(t),s=o?.(t),d={description:"string"==typeof u?u:u(t)},l={node:t,messageId:oA,data:d},{sourceCode:c}=e;c.getCommentsInside(t).length===c.getCommentsInside(n).length&&(l.fix=function(e,t,r,n,u){return"function"==typeof n&&(n=n(e)),function*(a){let{sourceCode:i}=r,o=ry(t,r);n?o=`[${o}]`:!rh(t,i)&&nM(t,r)&&(o=`(${o})`),o=`${o}${u?"?":""}.flat()`,nI(i.getTokenBefore(e),r,o)&&(o=`;${o}`),yield a.replaceText(e,o),yield us(a,e,r)}}(t,n,e,i,s)),yield l}})},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0,description:"Additional functions to check."}}}],defaultOptions:[{functions:[]}],messages:{[oA]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}},oB="some",oR="some-suggestion",oL="filter",oj={create:nN(e=>{e.on("CallExpression",t=>{if(!rj(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r="BinaryExpression"===t.parent.type&&t.parent.left===t&&(("!="===t.parent.operator||"=="===t.parent.operator||"==="===t.parent.operator||"!=="===t.parent.operator)&&rU(t.parent.right)||("!="===t.parent.operator||"=="===t.parent.operator)&&rE(t.parent.right));if(!r&&!(rZ(t)||rG(t)))return;let n=t.callee.property;return{node:n,messageId:oB,data:{method:n.name},suggest:[{messageId:oR,*fix(u){if(yield u.replaceText(n,"some"),!r)return;let{sourceCode:a}=e,i=rg(t,e);yield u.removeRange([i[1],a.getRange(t.parent)[1]]),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield u.insertTextBeforeRange(i,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(rj(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&"UnaryExpression"===n.type&&"-"===n.operator&&n.argument&&"Literal"===n.argument.type&&1===n.argument.value||[">=","<"].includes(u)&&rb(n,0))))return;let a=r.callee.property;return{node:a,messageId:oB,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let{sourceCode:i}=e,o=i.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u),[s]=i.getRange(o),[,d]=i.getRange(t);yield n.removeRange([s,d])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&rL(t.left,{property:"length",optional:!1})&&rj(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[n]=r.arguments;if(!n||nD(n))return;let u=r.callee.property;return{node:u,messageId:oL,*fix(r){yield r.replaceText(u,"some");let{sourceCode:n}=e,a=t.left;yield uc(r,a,e),yield r.removeRange([rg(a,e)[1],n.getRange(t)[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:"unopinionated"},fixable:"code",messages:{[oB]:"Prefer `.some(…)` over `.{{method}}(…)`.",[oR]:"Replace `.{{method}}(…)` with `.some(…)`.",[oL]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}},oO=(e,t)=>({node:e,messageId:`error/${e.name}`,suggest:[{messageId:`suggestion/${t}`,fix:r=>r.replaceText(e,t)}]}),oN="preferDefaultParameters",o$="preferDefaultParametersSuggest",oM=(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(oM(e,t))return!0}else if(oM(e,n))return!0}return!1},oU="prefer-logical-operator-over-ternary/error",oz="prefer-logical-operator-over-ternary/suggestion";function oW(e,t,r){if(nS(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return oW(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&oW(e.left,t.left,r)&&oW(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&oW(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function oq({context:e,conditionalExpression:t,left:r,right:n}){return{node:t,messageId:oU,suggest:["??","||"].map(u=>({messageId:oz,data:{operator:u},fix:a=>(function({fixer:e,context:t,conditionalExpression:r,left:n,right:u,operator:a}){let{sourceCode:i}=t,o=[n,u].map((e,r)=>{let n=rh(e,t),u=n?ry(e,t):i.getText(e);return!n&&nU(e,{operator:a,property:0===r?"left":"right"})&&(u=`(${u})`),u}).join(` ${a} `);return nI(i.getTokenBefore(r),t,o)&&(o=`;${o}`),e.replaceText(r,o)})({fixer:a,context:e,conditionalExpression:t,left:r,right:n,operator:u})}))}}let oV="with-name",oZ="without-name",oG="regexp-exec",oH="string-match",oK="suggestion",oJ=[{type:oG,test:e=>rj(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:oH,test:e=>rj(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(e,{stringNode:t,methodNode:r,regexpNode:n},u){let{sourceCode:a}=u;yield e.replaceText(r,"test");let i=a.getText(t);re(n,a)||"SequenceExpression"!==t.type||(i=`(${i})`),yield e.replaceText(n,i);let o=a.getText(n);!re(t,a)&&nM(n,u)&&(o=`(${o})`),yield e.replaceText(t,o)}}],oX=e=>rv(e)||rF(e,{name:"RegExp"}),oY=(e,t)=>{if(rv(e))return!e.regex.flags.includes("g");let r=t1(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&!n.global},oQ={create:nN(e=>{e.on("CallExpression",function*(t){if(rZ(t)||rG(t))for(let{type:r,test:n,getNodes:u,fix:a}of oJ){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===oG?o:t,messageId:r},l=t=>a(t,i,e);oX(s)||oY(s,e.sourceCode.getScope(s))?d.fix=l:d.suggest=[{messageId:oK,fix:l}],yield d}})}),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[oG]:"Prefer `.test(…)` over `.exec(…)`.",[oH]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[oK]:"Switch to `RegExp#test(…)`."}}},o0="error",o1="suggestion",o3=["copyWithin","fill","filter","flat","flatMap","map","reverse","sort","splice","toReversed","toSorted","toSpliced","with","split","toArray"],o2=["slice","concat"],o4=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),o5=(e,t,r=new Set)=>{let n;return"ArrayExpression"===e.type||rw(e,{name:"Array",optional:!1})||rj(e,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||rj(e,{methods:o3,optionalCall:!1,optionalMember:!1})||rj(e,{methods:o2,optionalCall:!1,optionalMember:!1})&&("Literal"!==(n=e.callee.object).type||"string"!=typeof n.value)&&("TemplateLiteral"!==n.type||0!==n.expressions.length)&&("Identifier"!==e.callee.object.type||((e,t,r=new Set)=>{if("Identifier"!==e.type)return!1;let n=tR(t,e);if(!n||r.has(n)||1!==n.defs.length)return!1;r.add(n);let[u]=n.defs;return"Variable"===u.type&&"const"===u.kind&&!!u.node.init&&o5(u.node.init,t,r)})(e.callee.object,t,r))},o8=e=>rj(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&rS(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),o6="prefer-string-raw";function o9(e,t=""){return e.replaceAll(RegExp(String.raw`\\(?<escapedCharacter>[\\${t}])`,"g"),"$<escapedCharacter>")}let o7="prefer-switch",se=(e,t)=>e===t||nS(e,t),st=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),sr=e=>{for(;e.parent;e=e.parent)if(st.has(e.type))return e},sn=(e,t,r)=>{let{sourceCode:n}=r;return n.getRange(e)[0]>=n.getRange(t)[0]&&n.getRange(e)[1]<=n.getRange(t)[1]},su={create:e=>{let t={...e.options[0]},{sourceCode:r}=e,n=new Set,u=[],a=new Set;e.on("IfStatement",e=>{n.add(e)}),e.on("BreakStatement",e=>{e.label||u.push(e)}),e.on("Program:exit",function*(){for(let i of n){if(a.has(i))continue;let{discriminant:n,ifStatements:o}=function(e){let t,r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,u=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===u.length)break;if(!t){let[{left:e,right:r}]=u;t=[e,r]}let a=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>se(e,r)||se(e,n))).length)break;return t}(u,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:u})}return{ifStatements:r,discriminant:t&&t[0]}}(i);if(!n||o.length<t.minimumCases)continue;for(let{statement:e}of o)a.add(e);let s={loc:{start:r.getLoc(i).start,end:r.getLoc(i.consequent).start},messageId:o7};t7(n,r)||o.some(({statement:t})=>(function(e,t,r){for(let n of e){if(!sn(n,t,r))continue;let e=sr(n);if(!e||sn(t,e,r))return!0}return!1})(u,t,e))||(s.fix=function({discriminant:e,ifStatements:t},r,n){let{sourceCode:u}=r,a=u.getText(e);return function*(i){let o=t[0].statement,s=na(o,r);yield i.insertTextBefore(o,`switch (${a}) {`);let d=t.at(-1).statement;if(d.alternate){let{alternate:e}=d;yield i.insertTextBefore(e,`
|
|
5
|
+
${s}default: `)}else switch(n.emptyDefaultCase){case"no-default-comment":yield i.insertTextAfter(o,`
|
|
6
6
|
${s}// No default`);break;case"do-nothing-comment":yield i.insertTextAfter(o,`
|
|
7
7
|
${s}default:
|
|
8
|
-
${s}// Do nothing`)}for(let{statement:r,compareExpressions:
|
|
9
|
-
${s}}`),t)){let{consequent:t,alternate:a}=r;if(a){let[,e]=
|
|
10
|
-
${s}case ${o}: `)}(function e(t){switch(t.type){case"ReturnStatement":case"ThrowStatement":return!1;case"IfStatement":return!t.alternate||e(t.consequent)||e(t.alternate);case"BlockStatement":{let r=function e(t){let{body:r}=t;for(let t=r.length-1;t>=0;t--){let
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
${
|
|
8
|
+
${s}// Do nothing`)}for(let{statement:r,compareExpressions:n}of(yield i.insertTextAfter(o,`
|
|
9
|
+
${s}}`),t)){let{consequent:t,alternate:a}=r;if(a){let[,e]=u.getRange(t),[r]=u.getRange(a);yield i.removeRange([e,r])}let o=[u.getRange(r)[0],u.getRange(t)[0]];for(let{left:r,right:a}of(yield i.removeRange(o),n)){let n=se(r,e)?a:r,o=u.getText(n);yield i.insertTextBefore(t,`
|
|
10
|
+
${s}case ${o}: `)}(function e(t){switch(t.type){case"ReturnStatement":case"ThrowStatement":return!1;case"IfStatement":return!t.alternate||e(t.consequent)||e(t.alternate);case"BlockStatement":{let r=function e(t){let{body:r}=t;for(let t=r.length-1;t>=0;t--){let n=r[t];if("FunctionDeclaration"!==n.type&&"EmptyStatement"!==n.type){if("BlockStatement"===n.type){let t=e(n);if(t)return t;continue}return n}}}(t);return!r||e(r)}default:return!0}})(t)&&(yield function*(e,t,r,n){if("BlockStatement"===e.type){let u=r.getLastToken(e);yield t.insertTextBefore(u,`
|
|
11
|
+
${n}break;
|
|
12
|
+
${n}`)}else yield t.insertTextAfter(e,`
|
|
13
|
+
${n}break;`)}(t,i,u,s),yield function*(e,t,r){e&&"BlockStatement"!==e.type&&(yield t.insertTextBefore(e,`{
|
|
14
14
|
${r}`),yield t.insertTextAfter(e,`
|
|
15
|
-
${r}}`))}(t,i,s))}}}({discriminant:
|
|
16
|
-
|
|
17
|
-
super();
|
|
18
|
-
this.name = '${r}';
|
|
19
|
-
}
|
|
20
|
-
`)});let s=o.value.body;if(!s)return;let d=s.body,l=d.find(e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type),c=d.findIndex(e=>so(e,"message"));if(l){if(-1!==c){let t=d[c];yield{node:l,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(r){if(0===l.expression.arguments.length){let u=t.expression.right,[a]=n.getRange(l);yield r.insertTextAfterRange([a,a+6],rg(u,e))}let u=0===c?n.getRange(s)[0]:n.getRange(d[c-1])[1],[,a]=n.getRange(t);yield r.removeRange([u,a])}}}}else yield{node:s,message:"Missing call to `super()` in constructor."};let f=d.find(e=>so(e,"name"));if(f)f.expression.right.value!==r&&(yield{node:f?.expression.right??s,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=a.find(e=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&"name"===e.key.name);e?.value&&e.value.value===r||(yield{node:e?.value??s,message:`The \`name\` property should be set to \`${r}\`.`})}}let sd="no-lonely-if",sl=e=>"IfStatement"===e.type&&!e.alternate,sc=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function sf(e,t){let r={ifToken:t.getFirstToken(e),openingParenthesisToken:t.getFirstToken(e,1)},{consequent:u}=e;return r.closingParenthesisToken=t.getTokenBefore(u),"BlockStatement"===u.type&&(r.openingBraceToken=t.getFirstToken(u),r.closingBraceToken=t.getLastToken(u)),r}let sp="no-magic-array-flat-depth",sm="no-negated-condition",sg="identifier",sy="non-identifier",sh="prefer-negative-index",sb=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...ie])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(ie)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...ie])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...ie])}]]),sD=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var sx=["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib"];function sv(t){if("string"!=typeof t)throw TypeError("Expected a string");return(e??=new Set(sx)).has(t)}let sE="prefer-node-protocol",sA="node:",sC="consistent-date-clone/error",sS="no-accessor-recursion/error",sF=e=>"Identifier"===e.type||"PrivateIdentifier"===e.type,sw=(e,t)=>["type","name"].every(r=>e[r]===t[r]),sk=(e,t)=>"MemberExpression"===e.parent.type&&e.parent.object===e&&!e.parent.computed&&sF(e.parent.property)&&sw(e.parent.property,t.key),sT="error/calculate-dirname",s_="error/calculate-filename";function sI(e,{modules:t,functionName:r,sourceCode:u}){if(!rA(e,{optional:!1,argumentsLength:1}))return!1;let n=new Set;return function e(t,i){if("MemberExpression"===t.type)return!!("property"===i&&rP(t,{property:r,computed:!1,optional:!1}))&&e(t.object,"module");if("CallExpression"===t.type)return"module"===i&&rR(t,{object:"process",method:"getBuiltinModule",argumentsLength:1,optionalMember:!1,optionalCall:!1})&&a(t.arguments[0]);if("Identifier"!==t.type||n.has(t))return!1;n.add(t);let o=tR(u.getScope(t),t);if(o&&1===o.defs.length){var s=o.defs[0],d=i;if("ImportBinding"===s.type){if(!a(s.parent.source))return!1;let e=s.node;return"module"===d?e?.type==="ImportDefaultSpecifier"||e?.type==="ImportNamespaceSpecifier":e?.type==="ImportSpecifier"&&e.imported.name===r}return"Variable"===s.type&&function t(u,n){let{parent:a}=u;return"VariableDeclarator"===a.type?!!a.init&&a.id===u&&"VariableDeclaration"===a.parent.type&&"const"===a.parent.kind&&e(a.init,n):"Property"===a.type&&!!("property"===n&&a.value===u&&!a.computed&&"Identifier"===a.key.type&&a.key.name===r)&&t(a.parent,"module")}(s.name,d)}}(e.callee,"property");function a(e){return e?.type==="Literal"&&t.has(e.value)}}function sB(e,t){return sI(e,{modules:new Set(["url","node:url"]),functionName:"fileURLToPath",sourceCode:t})}function sP(e,t){return sI(e,{modules:new Set(["path","node:path"]),functionName:"dirname",sourceCode:t})}let sR="no-unnecessary-array-flat-depth",sL="no-unnecessary-array-splice-count",sj="no-useless-error-capture-stack-trace/error",sO="prefer-class-fields/error",sN="prefer-class-fields/suggestion",s$="prefer-bigint-literals/error",sM="prefer-bigint-literals/suggestion",sz="prefer-classlist-toggle/error",sU="prefer-classlist-toggle/suggestion",sq=e=>rP(e,{property:"classList",computed:!1}),sW=(e,t,r)=>{let u={node:r??e,messageId:sz};return"IfStatement"===e.type||r_(e)||r_(e.parent)?u.fix=t:u.suggest=[{messageId:sU,fix:t}],u},sV=(e,t,r)=>{let{sourceCode:u}=t,n=rg(e,t);if(r)return ry(e,u)||"UpdateExpression"!==e.type&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type&&"ConditionalExpression"!==e.type&&"AssignmentExpression"!==e.type&&"ArrowFunctionExpression"!==e.type&&"YieldExpression"!==e.type&&"SequenceExpression"!==e.type||(n=`(${n})`),n=`!${n}`;return ry(e,u)||"SequenceExpression"!==e.type||(n=`(${n})`),n},sZ=(e,t)=>rR(e,{methods:t,argumentsLength:1,optionalCall:!1,optionalMember:!1})&&sq(e.callee.object),sG=(e,t)=>ux(e.callee.object,t.callee.object)&&ux(e.arguments[0],t.arguments[0]),sH=(e,t,r)=>t?("ChainExpression"===e.type&&(e=e.expression),sZ(e,["contains"])&&sG(e,r))?e:void 0:"UnaryExpression"===e.type&&"!"===e.operator&&e.prefix?sH(e.argument,!t,r):void 0,sJ="require-module-attributes",sK="error",sX="suggestion/array",sY="suggestion/object",sQ="suggestion/object-assign",s0="suggestion/set",s1="suggestion/map",s3=(e,t,r)=>{let{sourceCode:u}=r,n=un(e);return t.some(e=>{let t=u.getRange(e);return n.some(e=>{let[r,n]=u.getRange(e);return r>=t[0]&&n<=t[1]})})};function s2(e,t){if(!rC(e,{names:t,maximumArguments:1}))return!1;let[r]=e.arguments;return!r||"ArrayExpression"===r.type}function*s4(e,t,r){let u=!tN(t.sourceCode.getTokenBefore(e));yield function(e,t,r,u=!1){let{sourceCode:n}=t,{lines:a}=n,i=e;if(u){let[t,r]=n.getLastTokens(e,2);tN(r)&&(i=t)}let o=n.getLoc(e).start,s=n.getLoc(i).end,d=a[o.line-1].slice(0,o.column),l=a[s.line-1].slice(s.column),[c]=n.getRange(e),[,f]=n.getRange(i);return/^\s*$/.test(d)&&/^\s*$/.test(l)&&(c=Math.max(0,c-d.length-1),f+=l.length),r.removeRange([c,f])}(e,t,r,u)}function s5(e,t,r,u){let{sourceCode:n}=e,[a,i]=n.getLastTokens(r,2),o=("ArrayExpression"===r.type?r.elements:r.properties).length>0&&!tO(a);return t.insertTextBefore(i,`${o?",":""} ${u}`)}function*s8({context:e,fixer:t,newExpression:r,elementsText:u,nextExpressionStatement:n}){if(r7(r,e)){let[n]=r.arguments;if(n)yield s5(e,t,n,u);else{let{openingParenthesisToken:n}=r7(r,e)?ue(r,e):{};yield t.insertTextAfter(n,`[${u}]`)}}else yield t.insertTextAfter(r,`([${u}])`);yield*s4(n,e,t)}let s6=[{testValue:e=>e?.type==="ArrayExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let u=r.expression;if(rR(u,{object:t.name,methods:["push","unshift"],optionalMember:!1,optionalCall:!1})&&u.arguments.length>0&&!s3(t,u.arguments,e))return u},getProblem(e,t){let{context:r,assignType:u,getFix:n}=t,{sourceCode:a}=r,i=e.callee,o=i.property,s={node:i,messageId:sK,data:{objectType:"array"}},d="unshift"===o.name,l=n(t,{callExpression:e,isPrepend:d});return e.arguments.some(e=>t9(e,a))?s.suggest=[{messageId:sX,fix:l,data:{operation:d?"Prepend":"Append",assignType:u}}]:s.fix=l,s},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{callExpression:u,isPrepend:n})=>function*(a){let i=ut(e,u,!1);yield n?a.insertTextAfter(e.sourceCode.getFirstToken(t),`${i}, `):s5(e,a,t,i),yield s4(r,e,a)}},{testValue:e=>e?.type==="ObjectExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let u=r.expression;if(!("AssignmentExpression"===u.type&&"="===u.operator&&rP(u.left,{object:t.name,optional:!1})))return;let n=u.right,a=u.left,{property:i}=a;if(!s3(t,a.computed?[i,n]:[n],e))return u},getProblem(e,t){let{context:r,assignType:u,getFix:n}=t,{sourceCode:a}=r,{left:i,right:o}=e,{property:s}=i,d=a.getTokenAfter(i,t=>"Punctuator"===t.type&&t.value===e.operator),l={node:e,loc:{start:a.getLoc(e).start,end:a.getLoc(d).end},messageId:sK,data:{objectType:"object"}},c=n(t,{assignmentExpression:e,memberExpression:i,property:s,value:o});return i.computed&&t9(s,a)||t9(o,a)?l.suggest=[{messageId:sY,data:{assignType:u},fix:c}]:l.fix=c,l},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{memberExpression:u,property:n,value:a})=>function*(i){let o=rg(n,e);u.computed&&(o=`[${o}]`);let s=rg(a,e),d=`${o}: ${s},`,[l,c]=e.sourceCode.getLastTokens(t,2),f=t.properties.length>0&&!tO(l);yield i.insertTextBefore(c,`${f?",":""} ${d}`),yield s4(r,e,i)}},{testValue:e=>e?.type==="ObjectExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let u=r.expression;if(!rR(u,{object:"Object",method:"assign",minimumArguments:2,optionalMember:!1,optionalCall:!1}))return;let[n,a]=u.arguments;if(!("Identifier"!==n.type||n.name!==t.name||"SpreadElement"===a.type||s3(t,[a],e)))return u},getProblem(e,t){let{context:r,assignType:u,getFix:n}=t,{sourceCode:a}=r,[,i]=e.arguments,o={node:e.callee,messageId:sK,data:{objectType:"object"}},s=n(t,{callExpression:e,firstValue:i});return t9(i,a)?o.suggest=[{messageId:sQ,data:{description:"ObjectExpression"===i.type?"Move properties to":"Spread properties in",assignType:u},fix:s}]:o.fix=s,o},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{callExpression:u,firstValue:n})=>function*(a){let i;("ObjectExpression"===n.type?n.properties.length>0&&(i=function(e,t){let{sourceCode:r}=t,u=r.getFirstToken(e),[n,a]=r.getLastTokens(e,2),[,i]=r.getRange(u),[o]=r.getRange(tO(n)?n:a);return r.text.slice(i,o)}(n,e)):i=`...${rg(n,e)}`,i&&(yield s5(e,a,t,i)),2!==u.arguments.length)?yield u8(a,n,e):yield s4(r,e,a)}},{testValue:e=>s2(e,["Set","WeakSet"]),getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let u=r.expression;if(("ChainExpression"===u.type&&(u=u.expression),rR(u,{object:t.name,method:"add",argumentsLength:1,optionalMember:!1,optionalCall:!1}))&&!s3(t,u.arguments,e))return u},getProblem(e,t){let{context:r,assignType:u,valueNode:n,getFix:a}=t,{sourceCode:i}=r,o={node:e.callee,messageId:sK,data:{objectType:`\`${n.callee.name}\``}},s=a(t,{callExpression:e,newExpression:n});return e.arguments.some(e=>t9(e,i))?o.suggest=[{messageId:s0,data:{assignType:u},fix:s}]:o.fix=s,o},getFix:({context:e,nextExpressionStatement:t},{callExpression:r,newExpression:u})=>n=>{let a=ut(e,r,!1);return s8({context:e,fixer:n,newExpression:u,elementsText:a,nextExpressionStatement:t})}},{testValue:e=>s2(e,["Map","WeakMap"]),getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let u=r.expression;if(rR(u,{object:t.name,method:"set",argumentsLength:2,optionalCall:!1})&&!s3(t,u.arguments,e))return u},getProblem(e,t){let{context:r,assignType:u,valueNode:n,getFix:a}=t,{sourceCode:i}=r,o={node:e.callee,messageId:sK,data:{objectType:`\`${n.callee.name}\``}},s=a(t,{callExpression:e,newExpression:n});return e.arguments.some(e=>t9(e,i))?o.suggest=[{messageId:s1,data:{assignType:u},fix:s}]:o.fix=s,o},getFix:({context:e,nextExpressionStatement:t},{callExpression:r,newExpression:u})=>n=>{let a=ut(e,r,!1);return s8({context:e,fixer:n,newExpression:u,elementsText:`[${a}]`,nextExpressionStatement:t})}}],s9="no-useless-collection-argument/error",s7="no-useless-collection-argument/suggestion",de="prefer-response-static-json",dt=/([\p{Ll}\d])(\p{Lu})/gu,dr=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,du=/(\d)\p{Ll}|(\p{L})\d/u,dn=/[^\p{L}\d]+/giu,da="$1\0$2";function di(e){let t=e.trim();t=(t=t.replace(dt,da).replace(dr,da)).replace(dn,"\0");let r=0,u=t.length;for(;"\0"===t.charAt(r);)r++;if(r===u)return[];for(;"\0"===t.charAt(u-1);)u--;return t.slice(r,u).split(/\0/g)}function ds(e){let t=di(e);for(let e=0;e<t.length;e++){let r=t[e],u=du.exec(r);if(u){let n=u.index+(u[1]??u[2]).length;t.splice(e,1,r.slice(0,n),r.slice(n))}}return t}function dd(e,t){let[r,u,n]=dm(e,t);return r+u.map(dl(t?.locale)).join(t?.delimiter??" ")+n}function dl(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function dc(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function df(e,t){return r=>`${t(r[0])}${e(r.slice(1))}`}function dp(e,t){return(r,u)=>{let n=r[0];return(u>0&&n>="0"&&n<="9"?"_"+n:t(n))+e(r.slice(1))}}function dm(e,t={}){let r=t.split??(t.separateNumbers?ds:di),u=t.prefixCharacters??"",n=t.suffixCharacters??"",a=0,i=e.length;for(;a<e.length;){let t=e.charAt(a);if(!u.includes(t))break;a++}for(;i>a;){let t=i-1,r=e.charAt(t);if(!n.includes(r))break;i=t}return[e.slice(0,a),r(e.slice(a,i)),e.slice(i)]}let dg="filename-case",dy="filename-extension",dh=e=>!/^[a-z\d-_]$/i.test(e),db=new Set(["index.js","index.mjs","index.cjs","index.ts","index.tsx","index.vue"]),dD={camelCase:{fn:function(e,t){let[r,u,n]=dm(e,t),a=dl(t?.locale),i=dc(t?.locale),o=t?.mergeAmbiguousCharacters?df(a,i):dp(a,i);return r+u.map((e,t)=>0===t?a(e):o(e,t)).join(t?.delimiter??"")+n},name:"camel case"},kebabCase:{fn:function(e,t){return dd(e,{delimiter:"-",...t})},name:"kebab case"},snakeCase:{fn:function(e,t){return dd(e,{delimiter:"_",...t})},name:"snake case"},pascalCase:{fn:function(e,t){let[r,u,n]=dm(e,t),a=dl(t?.locale),i=dc(t?.locale),o=t?.mergeAmbiguousCharacters?df(a,i):dp(a,i);return r+u.map(o).join(t?.delimiter??"")+n},name:"pascal case"}},dx=/^(?<leading>_+)(?<tailing>.*)$/,dv=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),dE=[{oneOf:[{properties:{case:{enum:["camelCase","snakeCase","kebabCase","pascalCase"]},ignore:{type:"array",uniqueItems:!0},multipleFileExtensions:{type:"boolean"}},additionalProperties:!1},{properties:{cases:{properties:{camelCase:{type:"boolean"},snakeCase:{type:"boolean"},kebabCase:{type:"boolean"},pascalCase:{type:"boolean"}},additionalProperties:!1},ignore:{type:"array",uniqueItems:!0},multipleFileExtensions:{type:"boolean"}},additionalProperties:!1}]}],dA={configs:{node:{name:"@eslint-sukka/eslint-plugin-sukka-full node preset",plugins:{get sukka(){return dA}},rules:{"sukka/unicorn/prefer-node-protocol":"error","sukka/unicorn/prefer-import-meta-properties":"error","no-process-exit":"off","sukka/unicorn/no-process-exit":"warn","no-buffer-constructor":"off","sukka/unicorn/no-new-buffer":"error"}},comment:{name:"@eslint-sukka/eslint-plugin-sukka-full comments preset",plugins:{get sukka(){return dA}},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"]}},regexp:{name:"@eslint-sukka/eslint-plugin-sukka-full regexp preset",plugins:{get sukka(){return dA}},rules:{"sukka/unicorn/better-regex":"warn"}},recommended:{...eJ.eslint_plugin_sukka.configs.recommended,plugins:{get sukka(){return dA}}},recommended_extra_with_typed_lint:{...eJ.eslint_plugin_sukka.configs.recommended_extra_with_typed_lint,plugins:{get sukka(){return dA}}},recommended_react:{...eJ.eslint_plugin_sukka.configs.recommended_react,plugins:{get sukka(){return dA}}}},rules:Object.assign(eJ.eslint_plugin_sukka.rules,{"array/no-unneeded-flat-map":e7,"browser/prefer-location-assign":tt,"jsx/no-template-literal":tu,"jsx/no-unneeded-nested":tn,"string/no-locale-case":ti,"string/no-simple-template-literal":to,"unicode/no-bidi":tm,"unicode/no-invisible":ty,"no-redundant-variable":th,"no-single-return":tD,"prefer-early-return":tv,"prefer-fetch":tE,"prefer-timer-id":tS,"string/no-unneeded-to-string":tF,"type/no-force-cast-via-top-type":tw,"type/no-wrapper-type-reference":tT,"no-default-error":t_},Object.fromEntries(Object.entries({"unicorn/better-regex":aK,"unicorn/catch-error-name":su,"unicorn/custom-error-definition":{create:e=>{e.on("ClassDeclaration",t=>ss(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return ss(e,t.right)}),e.on("AssignmentExpression",e=>{if("MemberExpression"===e.left.type&&"Identifier"===e.left.object.type&&"exports"===e.left.object.name){let t=e.left.property.name,r=e.right;if("ClassExpression"!==r.type||!si(r)||!r.id)return;let u=r.id.name;return t!==u?{node:e.left.property,messageId:sn,fix:t=>t.replaceText(e.left.property,u)}:void 0}})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[sn]:"Exported error name should match error class"}}},"unicorn/no-nested-ternary":{create:e=>{e.on("ConditionalExpression",t=>{if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,u=r.getAncestors(t).toReversed(),n=u.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==n||ry(t,e)?n>1?{node:n>2?u[n-3]:t,messageId:uq}:void 0:{node:t,messageId:uW,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}})},meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[uq]:"Do not nest ternary expressions.",[uW]:"Nested ternary expression should be parenthesized."}}},"unicorn/prefer-event-target":{create:e=>{e.on("Identifier",t=>{if("EventEmitter"!==t.name||("ClassDeclaration"!==t.parent.type&&"ClassExpression"!==t.parent.type||t.parent.superClass!==t)&&("NewExpression"!==t.parent.type||t.parent.callee!==t))return;let r=e.sourceCode.getScope(t);if(!function(e){if(!e)return!1;let t=function(e,t){let r=e=>e.type===t;for(;e.parent;e=e.parent)if(r(e))return e}(e,"ImportDeclaration");return!!(uZ.has(t?.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)&&uG(e.parent.parent)&&uH(e.parent.parent.parent.init)||uG(e)&&rP(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&uH(e.parent.init.object))}(tR(r,t)?.defs[0]?.name))return{node:t,messageId:uV}})},meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:"unopinionated"},messages:{[uV]:"Prefer `EventTarget` over `EventEmitter`."}}},"unicorn/prefer-keyboard-event-key":{create:e=>{e.on("Identifier",t=>{if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:u}=uQ(e,t);if(r&&u&&u.some(e=>{let r;return r=e.identifier,t?.parent?.type==="MemberExpression"&&t.parent.object===r}))return u1(t)}),e.on("Property",t=>{let r=t.value.name;if(!uX.has(r))return;let{event:u,references:n}=uQ(e,t);if(!u)return;let a=u0(t,"VariableDeclarator"),i=a?.init;if(n&&n.some(e=>e.identifier===i))return u1(t.value);if("ObjectPattern"===u.type){for(let e of u.properties)if(e===t)return u1(t.value)}})},meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:"unopinionated"},fixable:"code",messages:{[uK]:"Use `.key` instead of `.{{name}}`."}}},"unicorn/prefer-text-content":{create:e=>{e.on("MemberExpression",e=>{if(!rP(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:u3,suggest:[{messageId:u2,fix:e=>e.replaceText(t,"textContent")}]}}),e.on("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:u3,suggest:[{messageId:u2,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}})},meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[u3]:"Prefer `.textContent` over `.innerText`.",[u2]:"Switch to `.textContent`."}}},"unicorn/require-array-join-separator":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{method:"join",argumentsLength:0,optionalCall:!1})||rR(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&rM(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:r.getLoc(u)[a?"end":"start"],end:r.getLoc(n).end},messageId:nc,fix:r=>u5(r,t,"','",e)}})},meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:"unopinionated"},fixable:"code",messages:{[nc]:"Missing the separator argument."}}},"unicorn/no-thenable":{create:e=>{for(let{selector:t,selectors:r,messageId:u,getNodes:n}of nh)e.on(t??r,function*(t){for(let r of n(t,e))yield{node:r,messageId:u}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:"unopinionated"},messages:{[nf]:"Do not add `then` to an object.",[np]:"Do not export `then`.",[nm]:"Do not add `then` to a class."}}},"unicorn/no-invalid-remove-event-listener":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||rR(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:tW(r,e.sourceCode),messageId:nb}:{node:r.callee.property,messageId:nb}})},meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:"unopinionated"},messages:{[nb]:"The listener argument should be a function reference."}}},"unicorn/consistent-function-scoping":nC,"unicorn/no-new-buffer":{create:e=>{let{sourceCode:t}=e;e.on("NewExpression",r=>{if(!rC(r,{name:"Buffer"}))return;let u=((e,t)=>{if(1!==e.length)return"from";let[r]=e;if("SpreadElement"===r.type)return;if("ArrayExpression"===r.type||"TemplateLiteral"===r.type)return"from";if(function e(t,r){if(rD(t)||uo(t,"Math",ud)||"CallExpression"===t.type&&!t.optional&&uo(t.callee,"Math",ul)||us(t,"Number")||uo(t,"Number",uc)||"CallExpression"===t.type&&!t.optional&&uo(t.callee,"Number",uf)||us(t,"parseInt")||us(t,"parseFloat")||"MemberExpression"===t.type&&!t.computed&&!t.optional&&"Identifier"===t.property.type&&"length"===t.property.name)return!0;switch(t.type){case"AssignmentExpression":{let{operator:u}=t;if("="===u&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:u}=t;if("AssignmentExpression"===t.type&&(u=u.slice(0,-1)),"+"===u&&e(t.left,r)&&e(t.right,r)||">>>"===u||up.has(u)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:u}=t;if("+"===u||("-"===u||"~"===u)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let u=e(t.consequent,r),n=e(t.alternate,r);if(u&&n)return!0;let a=t0(t.test,r);if(null!==a&&(a.value&&u||!a.value&&n))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return"number"==typeof t0(t,r)?.value}(r,t))return"alloc";let u=t0(r,t);if(u){let{value:e}=u;if("string"==typeof e||Array.isArray(e))return"from"}})(r.arguments,t.getScope(r));return u?{node:r,messageId:nS,data:{method:u},fix:nk(r,e,u)}:{node:r,messageId:nF,suggest:["from","alloc"].map(t=>({messageId:nw,data:{replacement:t},fix:nk(r,e,t)}))}})},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[nS]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[nF]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[nw]:"Switch to `Buffer.{{replacement}}()`."}}},"unicorn/no-console-spaces":{create:e=>{let{sourceCode:t}=e,r=(r,u,n)=>{let[a,i]=t.getRange(r),o="leading"===n?a+1:i-2,s=[o,o+1];return{loc:u$(s,e),messageId:nT,data:{method:u,position:n},fix:e=>e.removeRange(s)}};e.on("CallExpression",function*(e){if(!rR(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let u=e.callee.property.name,{arguments:n}=e,{length:a}=n;for(let[e,i]of n.entries()){if(!rb(i)&&"TemplateLiteral"!==i.type)continue;let n=t.getText(i).slice(1,-1);0!==e&&n_(n)&&(yield r(i,u,"leading")),e!==a-1&&nI(n)&&(yield r(i,u,"trailing"))}})},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:"unopinionated"},fixable:"code",messages:{[nT]:"Do not use {{position}} space between `console.{{method}}` parameters."}}},"unicorn/no-empty-file":{create:e=>{let t=e.physicalFilename;/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t)&&e.on("Program",t=>{if(t.body.some(e=>!rw(e,rF)))return;let{sourceCode:r}=e;if(!r.getAllComments().some(e=>"Line"===e.type&&e.value.startsWith("/")))return{node:t,messageId:nB}})},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:"unopinionated"},messages:{[nB]:"Empty files are not allowed."}}},"unicorn/no-useless-fallback-in-spread":{create:e=>{e.on("ObjectExpression",t=>{if(rT(t)&&"LogicalExpression"===t.parent.type&&t.parent.right===t&&("||"===t.parent.operator||"??"===t.parent.operator)&&"SpreadElement"===t.parent.parent.type&&t.parent.parent.argument===t.parent&&"ObjectExpression"===t.parent.parent.parent.type&&t.parent.parent.parent.properties.includes(t.parent.parent))return{node:t,messageId:nP,*fix(r){let{sourceCode:u}=e,n=t.parent,{left:a}=n,i=ry(a,e),[,o]=i?rm(a,e):u.getRange(a),[,s]=u.getRange(n);yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield u4(n,r,e))}}})},meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:"unopinionated"},fixable:"code",messages:{[nP]:"The empty object is useless."}}},"unicorn/no-useless-length-check":{create:e=>{let t=[],r=new Set,u=new Set,n=new Set,a=new Set;e.on("BinaryExpression",e=>{if("BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&rP(e.left,{property:"length",optional:!1})&&rz(e.parent)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&u.add(e)}}),e.on("CallExpression",e=>{rR(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?n.add(e):"every"===e.callee.property.name&&a.add(e))}),e.on("LogicalExpression",e=>{rz(e)&&t.push(e)}),e.on("Program:exit",function*(){let i=new Set(t.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,i,o)=>(function({node:e,operator:t,siblings:i}){return"||"===t&&r.has(e)&&i.some(t=>a.has(t)&&ux(e.left.object,t.callee.object))||"&&"===t&&u.has(e)&&i.some(t=>n.has(t)&&ux(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))),{sourceCode:o}=e;for(let t of i)yield{loc:{start:o.getLoc(t.left.property).start,end:o.getLoc(t).end},messageId:r.has(t)?"zero":"non-zero",fix(r){let{left:u,right:n}=t.parent,a=rm(u,e),i=rm(n,e),o=[];return u===t?(o[0]=a[0],o[1]=i[0]):(o[0]=a[1],o[1]=i[1]),r.removeRange(o)}}})},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:"unopinionated"},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."}}},"unicorn/no-useless-promise-resolve-reject":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===t.parent.type&&t.parent.body===t||"ReturnStatement"===t.parent.type&&t.parent.argument===t||"YieldExpression"===t.parent.type&&!t.parent.delegate&&t.parent.argument===t)))return;let{functionNode:r,isInTryStatement:u}=function(e){let t,r=!1;for(;e;e=e.parent){if(rB(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(t);if(r&&(r.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}(r)))return function(e,t){let{callee:r,parent:u}=e,n=r.property.name;return{node:r,messageId:n,data:{type:"YieldExpression"===u.type?"yield":"return"},fix:t}}(t,function(e,t,r){if(e.arguments.length>1)return;let{callee:u,parent:n,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===u.property.name,o="YieldExpression"===n.type;if(!i||!t&&(!o||"ExpressionStatement"===n.parent.type))return function(t){let u="ArrowFunctionExpression"===n.type,s=a?r.sourceCode.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(rm(n,r),s);if(s+=";",u)return s=`{ ${s} }`,t.replaceTextRange(rm(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===n.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s||="{}");return t.replaceText(u?e:n,s)}}(t,u,e))})},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:"unopinionated"},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}},"unicorn/no-zero-fractions":{create:e=>{e.on("Literal",t=>{if(!rD(t))return;let{raw:r}=t,u=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!u)return;let{before:n,dotAndFractions:a,after:i}=u.groups,o=(n+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s="."===a,{sourceCode:d}=e,l=d.getRange(t)[0]+n.length+a.length;return{loc:u$([l-(r.length-o.length),l],e),messageId:s?nL:nR,*fix(r){let u=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&uR.test(o)&&!ry(t,e)&&(u=`(${u})`,uS(d.getTokenBefore(t),e,u)&&(u=`;${u}`)),yield r.replaceText(t,u),yield nr(r,t,e)}}})},meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:"unopinionated"},fixable:"code",messages:{[nR]:"Don't use a zero fraction in the number.",[nL]:"Don't use a dangling dot in the number."}}},"unicorn/prefer-export-from":nW,"unicorn/prefer-native-coercion-functions":{create:e=>{e.on(rI,t=>{if(t.async||t.generator||0===t.params.length||"Identifier"!==t.params[0].type||("MethodDefinition"===t.parent.type&&("constructor"===t.parent.kind||"set"===t.parent.kind)||"Property"===t.parent.type&&"set"===t.parent.kind)&&t.parent.value===t)return;let r=function(e){if(("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)&&"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&&nG.has(e.parent.callee.property.name))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t,r=(t=e.params[0].name,"ArrowFunctionExpression"===e.type&&nH(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&nH(e.body.body[0].argument,t)?e.body.body[0].argument:void 0);if(!r)return;let{name:u}=r.callee,n={replacementFunction:u};return"FunctionDeclaration"===e.type||1!==r.arguments.length||(n.fix=t=>{let r=u;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?r=`: ${r}`:"MethodDefinition"===e.parent.type&&(r=` = ${r};`),t.replaceText(e,r)}),n}(t);if(!r)return;let{sourceCode:u}=e,{replacementFunction:n,fix:a}=r;return r={node:t,loc:tW(t,u),messageId:nV,data:{functionNameWithKind:t2(t,u),replacementFunction:n}},!a||1!==t.params.length||u.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:"unopinionated"},fixable:"code",messages:{[nV]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}},"unicorn/no-document-cookie":{create(e){nY.listen({context:e})},meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:"unopinionated"},messages:{[nX]:"Do not use `document.cookie` directly."}}},"unicorn/prefer-add-event-listener":n3,"unicorn/prefer-array-index-of":n9,"unicorn/prefer-blob-reading-methods":{create:e=>{e.on("CallExpression",e=>{if(!rR(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:n7,data:{method:r,replacement:"readAsArrayBuffer"===r?"arrayBuffer":"text"}}})},meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:"unopinionated"},messages:{[n7]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}},"unicorn/prefer-date-now":{create:e=>{e.on("CallExpression",e=>{if(rR(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&au(e.callee.object)){let t=e.callee.property;return an(e,{node:t,messageId:at,data:{method:t.name}})}if(rA(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&au(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?an(e,{messageId:ar}):an(e.arguments[0])}}),e.on("UnaryExpression",t=>{if(("+"===t.operator||"-"===t.operator)&&au(t.argument))return an("-"===t.operator?t.argument:t,{},e)}),e.on("AssignmentExpression",e=>{if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&au(e.right))return an(e.right)}),e.on("BinaryExpression",function*(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])au(t)&&(yield an(t))})},meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:"unopinionated"},fixable:"code",messages:{[ae]:"Prefer `Date.now()` over `new Date()`.",[at]:"Prefer `Date.now()` over `Date#{{method}}()`.",[ar]:"Prefer `Date.now()` over `Number(new Date())`."}}},"unicorn/prefer-dom-node-dataset":{create:e=>{e.on("CallExpression",t=>{if(!((rR(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||rR(t,{methods:["removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rR(t,{method:"getAttribute",argumentsLength:1,optionalCall:!1}))&&rb(t.arguments[0])))return;let r=t.callee.property.name;if(("AwaitExpression"!==t.parent.type||t.parent.argument!==t||"getAttribute"!==r)&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:ai,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&function e(t){return("MemberExpression"===t.type||"CallExpression"===t.type)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))}(e.callee))){if(("setAttribute"!==r||r_(e.parent))&&("removeAttribute"!==r||r_(e.parent)))return u=>{let[n]=e.arguments,a=n.value.toLowerCase().slice(5).replaceAll(/-[a-z]/g,e=>e[1].toUpperCase()),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}${e.callee.optional?"?":""}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=aa(a)?`.${a}`:`[${rH(a,n.raw.charAt(0))}]`,o=`${s}${o}`,"setAttribute"===r?o+=` = ${i.getText(e.arguments[1])}`:"removeAttribute"===r&&(o=`delete ${o}`);break;case"hasAttribute":o=`Object.hasOwn(${s}, ${rH(a,n.raw.charAt(0))})`}return u.replaceText(e,o)}}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:"unopinionated"},fixable:"code",messages:{[ai]:"Prefer `.dataset` over `{{method}}(…)`."}}},"unicorn/prefer-modern-math-apis":{create:e=>{let t=[];e.on("CallExpression",t=>{if(!rR(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=ap(t.arguments[0]);if(r.some(e=>!("BinaryExpression"===e.type&&("*"===e.operator&&ux(e.left,e.right)||"**"===e.operator&&rh(e.right,2)))))return;let u=1===r.length?"abs":"hypot",n=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:ao,data:{replacement:`Math.${u}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let r of(yield a.replaceText(t.callee.property,u),n)){let t=i.getTokenAfter(r.left,e=>"Punctuator"===e.type&&"+"===e.value);yield nl(t,",",a,e),yield u4(r,a,e)}for(let t of r)yield a.removeRange([rm(t.left,e)[1],i.getRange(t)[1]])}}}),e.on("BinaryExpression",e=>{t.push(e)}),e.on("Program:exit",function*(){for(let r of t)for(let t of af){let u=t(r,e);u&&(yield u)}})},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:"unopinionated"},fixable:"code",messages:{[ao]:"Prefer `{{replacement}}` over `{{description}}`."}}},"unicorn/number-literal-case":ay,"unicorn/prefer-number-properties":av,"unicorn/prefer-reflect-apply":{create:e=>{e.on("CallExpression",t=>{if(!rR(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:r}=e,u=((e,t)=>{if("apply"===t3(e.callee)&&2===e.arguments.length&&aA(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,aC(t,e.callee.object,e.arguments[0],e.arguments[1]))})(t,r)||((e,t)=>{if("call"===t3(e.callee)&&"apply"===t3(e.callee.object)&&"prototype"===t3(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&aA(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,aC(t,e.arguments[0],e.arguments[1],e.arguments[2]))})(t,r);if(u)return{node:t,messageId:aE,fix:u}})},meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:"unopinionated"},fixable:"code",messages:{[aE]:"Prefer `Reflect.apply()` over `Function#apply()`."}}},"unicorn/prefer-set-size":{create:e=>{let{sourceCode:t}=e;e.on("MemberExpression",r=>{var u;if(!rP(r,{property:"length",optional:!1}))return;let n="ArrayExpression"===(u=r.object).type&&1===u.elements.length&&u.elements[0]?.type==="SpreadElement"?u.elements[0].argument:rR(u,{object:"Array",method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})?u.arguments[0]:void 0;if(n&&function(e,t){if(aF(e))return!0;if("Identifier"!==e.type)return!1;let r=tR(t,e);if(!r||1!==r.defs.length)return!1;let[u]=r.defs;if("Variable"!==u.type||"const"!==u.kind)return!1;let n=u.node;return"VariableDeclarator"===n.type&&"Identifier"===n.id.type&&aF(u.node.init)}(n,t.getScope(n)))return{node:r.property,messageId:aS,fix:function(e,t,r){let{sourceCode:u}=e,{object:n,property:a}=t;if(!(u.getCommentsInside(n).length>u.getCommentsInside(r).length))return function*(i){yield i.replaceText(a,"size"),yield i.replaceText(n,u.getText(r)),"ArrayExpression"===n.type&&(yield nr(i,t,e))}}(e,r,n)}})},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:"unopinionated"},fixable:"code",messages:{[aS]:"Prefer using `Set#size` instead of `Array#length`."}}},"unicorn/prefer-string-replace-all":{create:e=>{e.on("CallExpression",t=>{if(!rR(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1}))return;let{arguments:[r],callee:{property:u}}=t;if(!((e,t)=>{if(rx(e))return e.regex.flags.includes("g");if(rC(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=t0(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&u.global})(r,e.sourceCode.getScope(r)))return;let n=u.name,a=function(e){let t;if(!rx(e))return;let{pattern:r,flags:u}=e.regex;if("g"!==u.replace("u","").replace("v",""))return;try{t=ak(r,u,{unicodePropertyEscape:u.includes("u"),unicodeSet:u.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let n="alternative"===t.type?t.body:[t];if(!n.some(e=>"value"!==e.type))return"'"+n.map(e=>{let{kind:t,codePoint:r,raw:u}=e;if("controlLetter"===t)return 13===r?String.raw`\r`:10===r?String.raw`\n`:9===r?String.raw`\t`:String.raw`\u{${r.toString(16)}}`;if("octal"===t)return String.raw`\u{${r.toString(16)}}`;let n=u;return("identifier"===t&&(n=n.slice(1)),"'"===n||"\\"===n)?`\\${n}`:n}).join("")+"'"}(r);if("replaceAll"===n){if(!a)return;return{node:r,messageId:a_,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:u,messageId:aT,*fix(e){yield e.insertTextAfter(u,"All"),a&&(yield e.replaceText(r,a))}}})},meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:"unopinionated"},fixable:"code",messages:{[aT]:"Prefer `String#replaceAll()` over `String#replace()`.",[a_]:"This pattern can be replaced with {{replacement}}."}}},"unicorn/prefer-string-slice":{create:e=>{e.on("CallExpression",t=>{if(!rR(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(u,{abort:n}){if(yield u.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return n();yield("substr"===r?function*({node:e,fixer:t,context:r,abort:u}){let n=e.arguments,[a,i]=n;if(!i)return;let{sourceCode:o}=r,s=t0(a,o.getScope(e)),d=rm(i,r);if(s?.value===0){if(rD(i)||aB(i))return;if("number"==typeof aI(i)){let e;return void(yield(e=String(Math.max(0,aI(i))),u6(t,i,e,r)))}return yield t.insertTextBeforeRange(d,"Math.max(0, "),void(yield t.insertTextAfterRange(d,")"))}if(n.every(e=>rD(e))){let e;return void(yield(e=String(a.value+i.value),u6(t,i,e,r)))}return u()}:function*({node:e,fixer:t,context:r,abort:u}){let[n,a]=e.arguments,i=n?aI(n):void 0,o=rg(n,r);if(!a){if(aB(n))return;if(void 0!==i)return void(yield u6(t,n,String(Math.max(0,i)),r));let e=rm(n,r);return yield t.insertTextBeforeRange(e,"Math.max(0, "),void(yield t.insertTextAfterRange(e,")"))}let s=aI(a),d=rg(a,r);if(void 0!==i&&void 0!==s){let e=[Math.max(0,i),Math.max(0,s)];i>s&&e.reverse(),e[0]!==i&&(yield u6(t,n,String(e[0]),r)),e[1]!==s&&(yield u6(t,a,String(e[1]),r));return}if(0===i||0===s){yield u6(t,n,"0",r),yield u6(t,a,`Math.max(0, ${0===i?d:o})`,r);return}return u()})({node:t,fixer:u,context:e,abort:n})}}}})},meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:"unopinionated"},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}},"unicorn/prefer-string-trim-start-end":{create:e=>{e.on("CallExpression",e=>{if(!rR(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,u="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:aP,data:{method:r,replacement:u},fix:e=>e.replaceText(t,u)}})},meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:"unopinionated"},fixable:"code",messages:{[aP]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}},"unicorn/no-unreadable-iife":{create:e=>{e.on("CallExpression",t=>{if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&ry(t.callee.body,e))return{node:t,loc:u$(rm(t.callee.body,e),e),messageId:aR}})},meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:"unopinionated"},hasSuggestions:!1,messages:{[aR]:"IIFE with parenthesized arrow function body is considered unreadable."}}},"unicorn/throw-new-error":{create:e=>{e.on("CallExpression",t=>{let{callee:r}=t;if(("Identifier"===r.type&&aj.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&aj.test(r.property.name))&&!rP(r,{object:"Data",property:"TaggedError",computed:!1}))return{node:t,messageId:aL,fix:r=>nu(t,e,r)}})},meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:"unopinionated"},fixable:"code",messages:{[aL]:"Use `new` when creating an error."}}},"unicorn/escape-case":{create:e=>{let t="lowercase"===e.options[0];e.on("Literal",e=>{if(rb(e))return a1({node:e,original:e.raw,lowercase:t})}),e.on("Literal",e=>{if(rx(e))return a1({node:e,original:e.raw,regex:a0,lowercase:t})}),e.on("TemplateElement",r=>{if(!rN(r.parent,["String.raw"]))return a1({node:r,original:r.value.raw,lowercase:t,fix:(t,u)=>nd(r,u,e,t)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase or lowercase values.",recommended:"unopinionated"},fixable:"code",schema:[{enum:["uppercase","lowercase"]}],defaultOptions:["uppercase"],messages:{[aX]:"Use uppercase characters for the value of the escape sequence.",[aY]:"Use lowercase characters for the value of the escape sequence."}}},"unicorn/no-hex-escape":{create:e=>{e.on("Literal",t=>{if(rb(t)||rx(t))return a2(e,t,t.raw)}),e.on("TemplateElement",t=>{if(!rN(t.parent,["String.raw"]))return a2(e,t,t.value.raw)})},meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:"unopinionated"},fixable:"code",messages:{[a3]:"Use Unicode escapes instead of hexadecimal escapes."}}},"unicorn/prefer-prototype-methods":{create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.onExit("Program",function*(u){let n=new WeakMap;for(let{node:e,path:r}of new rs(t.getScope(u)).iterateGlobalReferences(Object.fromEntries(a4.map(e=>[e,{[rs.READ]:!0}]))))n.set(e,r);for(let t of r)yield function(e,{context:t,globalReferences:r}){let u;rR(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?u=e.arguments[0]:rR(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(u=e.callee.object);let{isGlobalReference:n,constructorName:a,methodName:i}=function(e,{context:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!rP(e,{optional:!1}))return;let u=e.object;if(rk(u)||rT(u))return{constructorName:"ArrayExpression"===u.type?"Array":"Object",methodName:t3(e,t.sourceCode.getScope(e))}}(u,{context:t,globalReferences:r})??{};if(a)return{node:u,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(n)return void(yield r.replaceText(u,`${a}.prototype.${i}`));if(rP(u)){let n=u.object;yield r.replaceText(n,`${a}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield nr(r,e,t))}}}}(t,{context:e,globalReferences:n})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:"unopinionated"},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}},"unicorn/error-message":{create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!(rS(t,{names:a5,optional:!1})&&e.sourceCode.isGlobalReference(t.callee)))return;let r=t.callee.name,u=a7.has(r)?a7.get(r):0,n=t.arguments;if(n.some((e,t)=>t<=u&&"SpreadElement"===e.type))return;let a=n[u];if(!a)return{node:t,messageId:a8,data:{constructorName:r}};if("ArrayExpression"===a.type||"ObjectExpression"===a.type)return{node:a,messageId:a9};let i=t0(a,e.sourceCode.getScope(a));if(!i)return;let{value:o}=i;return"string"!=typeof o?{node:a,messageId:a9}:""===o?{node:a,messageId:a6}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:"unopinionated"},messages:{[a8]:"Pass a message to the `{{constructorName}}` constructor.",[a6]:"Error message should not be an empty string.",[a9]:"Error message should be a string."}}},"unicorn/no-instanceof-builtins":is,"unicorn/prefer-type-error":{create:e=>{e.on("ThrowStatement",e=>{let t;if(rC(e.argument,{name:"Error"})&&e.parent&&e.parent.body&&1===e.parent.body.length&&e.parent.parent&&"IfStatement"===(t=e.parent.parent).type&&iy(t.test)){let t=e.argument.callee;return{node:t,messageId:id,fix:e=>e.insertTextBefore(t,"Type")}}})},meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:"unopinionated"},fixable:"code",messages:{[id]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}},"unicorn/consistent-destructuring":{create:e=>{let{sourceCode:t}=e,r=new Map;e.on("VariableDeclarator",e=>{"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&(e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type})(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})}),e.on("MemberExpression",e=>{if(e.computed||rS(e.parent)&&e.parent.callee===e||ui(e))return;let u=r.get(t.getText(e.object));if(!u)return;let{scope:n,objectPattern:a}=u,i=t.getScope(e);if(!((e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1})(i,n))return;let o=a.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),s=a.properties.at(-1),d=s&&"RestElement"===s.type,l=t.getText(e),c=t.getText(e.property),f=o.find(e=>e.key.name===c);if(!f&&(d||r9(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:ih};let p=f?f.value.name:c;return{node:e,messageId:ih,suggest:[{messageId:ib,data:{expression:l,property:p},*fix(t){let{properties:r}=a,u=r.at(-1);yield t.replaceText(e,p),f||(yield u?t.insertTextAfter(u,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}})},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},hasSuggestions:!0,messages:{[ih]:"Use destructured variables over properties.",[ib]:"Replace `{{expression}}` with destructured property `{{property}}`."}}},"unicorn/new-for-builtins":{create:e=>{iE.listen({context:e}),iA.listen({context:e})},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`.",[ix]:"Use `String(new Date())` instead of `Date()`.",[iv]:"Switch to `String(new Date())`."}}},"unicorn/prefer-single-call":ik,"unicorn/no-process-exit":{create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return;let r=!1,u=[];e.on("CallExpression",e=>{rL(e)&&i_(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&i_(e.source)&&(r=!0)}),e.on("CallExpression",e=>{rR(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(t=e)}),e.onExit("CallExpression",e=>{e===t&&(t=void 0)}),e.on("CallExpression",e=>{!t&&rR(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&u.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of u)yield{node:e,messageId:iT}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:"unopinionated"},messages:{[iT]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}},"unicorn/no-static-only-class":{create:function(e){e.on(["ClassDeclaration","ClassExpression"],t=>{if(!(t.superClass||t.decorators&&t.decorators.length>0||"ClassBody"!==t.body.type||0===t.body.body.length||t.body.body.some(e=>!function(e){let{private:t,static:r,declare:u,readonly:n,accessibility:a,decorators:i,key:o}=e;return!(!iO(e)&&"MethodDefinition"!==e.type||!r||t||"PrivateIdentifier"===o.type||u||n||void 0!==a||Array.isArray(i)&&i.length>0)}(e))))return{node:t,loc:function(e,t){let{sourceCode:r}=t,{body:u}=e,n=r.getTokenBefore(u),{start:a}=r.getLoc(e),{end:i}=r.getLoc(n);return{start:a,end:i}}(t,e),messageId:iL,fix:function(e,t){let{type:r,id:u,body:n,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&u)return;let d="ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e;if(d&&u)return;let{sourceCode:l}=t;for(let e of n.body)if(iO(e)&&(e.typeAnnotation||e.value&&l.getText(e.value).includes("this")))return;return function*(u){let a=l.getFirstToken(e);if(rV(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r)if("ClassExpression"===r&&"ReturnStatement"===s.type&&l.getLoc(n).start.line!==l.getLoc(s).start.line&&l.text.slice(l.getRange(a)[1],l.getRange(n)[0]).trim()){yield u.replaceText(a,"{");let e=l.getFirstToken(n);yield u.remove(e)}else yield u.replaceText(a,""),yield u7(a,t,u);else yield u.replaceText(a,"const"),yield u.insertTextBefore(n,"= "),yield u.insertTextAfter(n,";");for(let e of n.body)yield function*(e,t,r){let{sourceCode:u}=t,n=u.getFirstToken(e);rV(n,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(n),yield u7(n,t,r);let a=iO(e)?u.getLastToken(e):u.getTokenAfter(e),i=tN(a);if(iO(e)){let{key:t,value:n}=e;if(n){let e=u.getTokenAfter(t,ij);yield r.replaceText(e,":")}else i?yield r.insertTextBefore(a,": undefined"):yield r.insertTextAfter(e,": undefined")}yield i?r.replaceText(a,","):r.insertTextAfter(e,",")}(e,t,u)}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:"unopinionated"},fixable:"code",messages:{[iL]:"Use an object instead of a class with only static members."}}},"unicorn/no-unreadable-array-destructuring":{create:e=>{let{sourceCode:t}=e;e.on("ArrayPattern",r=>{let{elements:u,parent:n}=r;if(u.length<3||!u.some((e,t,r)=>null===e&&null===r[t+1]))return;let a={node:r,messageId:iN},i=u.filter(e=>null!==e);if("VariableDeclarator"===n.type&&n.id===r&&null!==n.init&&1===i.length){let[o]=i;"AssignmentPattern"!==o.type&&(a.fix=function*(a){let i=u.indexOf(o),s="RestElement"===o.type,d=s?o.argument:o;yield a.replaceText(r,t.getText(d));let l=s?`.slice(${i})`:`[${i}]`,c=n.init;!ry(c,e)&&uL(c,e)?(yield a.insertTextBefore(c,"("),yield a.insertTextAfter(n,`)${l}`)):yield a.insertTextAfter(n,l),yield nr(a,r,e)})}return a})},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:"unopinionated"},fixable:"code",messages:{[iN]:"Array destructuring may not contain consecutive ignored values."}}},"unicorn/no-useless-spread":{create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],r=>{if(!("SpreadElement"===r.parent.type&&r.parent.argument===r&&("ObjectExpression"===r.type&&"ObjectExpression"===r.parent.parent.type&&r.parent.parent.properties.includes(r.parent)||"ArrayExpression"===r.type&&("ArrayExpression"===r.parent.parent.type&&r.parent.parent.elements.includes(r.parent)||rS(r.parent.parent)&&r.parent.parent.arguments.includes(r.parent)))))return;let u=r.parent,n=t.getFirstToken(u),a=u.parent.type;return{node:n,messageId:i$,data:{argumentType:"ArrayExpression"===r.type?"array":"object",parentDescription:iV[a]},*fix(i){let o;yield i.remove(n),yield u4(r,i,e);let s=t.getFirstToken(r);yield i.remove(s);let[d,l]=t.getLastTokens(r,2);if(yield i.remove(l),tO(d)&&(yield i.remove(d)),rk(r)||rT(r)){let e=t.getTokenAfter(u);tO(e)&&(yield i.remove(e))}if("CallExpression"===a||"NewExpression"===a)for(let[e,u]of(o=t.getFirstToken(r),r.elements.map((e,u,n)=>{if(u===n.length-1){let e=t.getLastToken(r,{skip:1});return tO(e)?e:void 0}let a=t.getTokenAfter(e||o,tO);return o=a,a})).entries())r.elements[e]||(yield i.insertTextBefore(u,"undefined"))}}}),e.on("ArrayExpression",t=>{if(!iW(t))return;let{parent:r}=t;if(!("ForOfStatement"===r.type&&r.right===t||"YieldExpression"===r.type&&r.delegate&&r.argument===t||(rC(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||rC(r,{names:ie,minimumArguments:1})||rR(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rR(r,{objects:["Array",...ie],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||rR(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===t))return;let u="",n=iM;switch(r.type){case"ForOfStatement":n=iz;break;case"YieldExpression":n=iU;break;case"NewExpression":u=`new ${r.callee.name}(…)`;break;case"CallExpression":u=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:t,messageId:n,data:{parentDescription:u},fix:r=>iZ(r,t,e)}}),e.on("ArrayExpression",t=>{if(!iW(t))return;let r=t.elements[0].argument;if(!(rR(r,{methods:["concat","copyWithin","flat","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||rR(r,{method:"split",optionalCall:!1,optionalMember:!1})||rR(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&rR(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rR(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||rC(r,{name:"Array"})))return;let u={node:t,messageId:iq};return rC(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?u:Object.assign(u,{fix:r=>iZ(r,t,e)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:"unopinionated"},fixable:"code",messages:{[i$]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[iM]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[iz]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[iU]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[iq]:"Unnecessarily cloning an array."}}},"unicorn/no-useless-switch-case":{create:e=>{e.on("SwitchStatement",function*(t){let{cases:r}=t;if(!(r.length<2)&&null===r.at(-1).test)for(let t=r.length-2;t>=0;t--){let u=r[t];if(!iJ(u))break;yield{node:u,loc:function(e,t){let{sourceCode:r}=t,u=e.test||r.getFirstToken(e),n=r.getTokenAfter(u,t$);return{start:r.getLoc(e).start,end:r.getLoc(n).end}}(u,e),messageId:iG,suggest:[{messageId:iH,fix:e=>e.remove(u)}]}}})},meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[iG]:"Useless case in switch statement.",[iH]:"Remove this case."}}},"unicorn/no-useless-undefined":iY,"unicorn/numeric-separators-style":i3,"unicorn/prefer-array-find":ol,"unicorn/prefer-array-flat-map":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===t.arguments.length||1===t.arguments.length&&"Literal"===t.arguments[0].type&&"1"===t.arguments[0].raw)&&rR(t.callee.object,{method:"map",optionalCall:!1})))return;let r=t.callee.object;if(rO(r.callee.object,of))return;let{sourceCode:u}=e,n=r.callee.property;return{node:t,loc:{start:u.getLoc(n).start,end:u.getLoc(t).end},messageId:oc,*fix(r){yield ni(r,t,e),yield r.replaceText(n,"flatMap")}}})},meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:"unopinionated"},fixable:"code",messages:{[oc]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}},"unicorn/prefer-array-flat":oD,"unicorn/prefer-array-some":oA,"unicorn/prefer-code-point":{create:e=>{e.on("CallExpression",e=>{if(rR(e,{method:"charCodeAt",optionalCall:!1}))return oC(e.callee.property,"codePointAt")}),e.on("MemberExpression",e=>{if(rP(e,{object:"String",property:"fromCharCode",optional:!1}))return oC(e.property,"fromCodePoint")})},meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:"unopinionated"},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()`."}}},"unicorn/prefer-default-parameters":{create:e=>{let{sourceCode:t}=e,r=[],u=(e,u,n,a)=>{let i,o=r.at(-1);if(!o||!u||!n||"Identifier"!==u.type||"LogicalExpression"!==n.type||"||"!==n.operator&&"??"!==n.operator||"Identifier"!==n.left.type||"Literal"!==n.right.type)return;let{name:s}=u,{left:{name:d},right:{raw:l}}=n;if(a&&s!==d)return;let c=tR(t.getScope(e),d);if(!c)return;let{references:f}=c,{params:p}=o,m=p.find(e=>"Identifier"===e.type&&e.name===d);if(((e,t,r)=>{for(let u of t.body.body){if(u===r)break;if(ow(e,u))return!0}return!1})(t,o,e)||a&&f[0].identifier!==u||!a&&f.length>1||(i=p.at(-1),!m||m!==i))return;let g=((e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,u=e.getTokenBefore(r),n=e.getTokenAfter(r);return!n||!u||"("!==u.value||")"!==n.value})(t,o)?`(${s} = ${l})`:`${s} = ${l}`;return{node:e,messageId:oS,suggest:[{messageId:oF,fix:r=>[r.replaceText(m,g),((e,t,r)=>{let{line:u}=t.getLoc(r).start,{column:n}=t.getLoc(r).end,a=t.getText(r),i=t.lines[u-1],o=i.trim()===a,s=" "===i[n];if(o)return e.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]);if(s){let[u,n]=t.getRange(r);return e.removeRange([u,n+1])}return e.remove(r)})(r,t,e)]}]}};e.on(rI,e=>{r.push(e)}),e.onExit(rI,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return u(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return u(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[oS]:"Prefer default parameters over reassignment.",[oF]:"Replace reassignment with default parameter."}}},"unicorn/prefer-logical-operator-over-ternary":{create:e=>{let{sourceCode:t}=e;e.on("ConditionalExpression",r=>{let{test:u,consequent:n,alternate:a}=r;return o_(u,n,t)?oI({context:e,conditionalExpression:r,left:u,right:a}):"UnaryExpression"===u.type&&"!"===u.operator&&u.prefix&&o_(u.argument,a,t)?oI({context:e,conditionalExpression:r,left:u.argument,right:n}):void 0})},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[ok]:"Prefer using a logical operator over a ternary.",[oT]:"Switch to `{{operator}}` operator."}}},"unicorn/prefer-optional-catch-binding":{create:e=>{e.on("CatchClause",t=>{let r=t.param;if(!r)return;let{sourceCode:u}=e;if(u.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:n,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===n?oB:oP,data:{name:a},*fix(e){let t=u.getTokenBefore(r);rV(t,{test:tM,expected:"(",ruleId:"prefer-optional-catch-binding"});let n=u.getTokenAfter(r);rV(n,{test:tz,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(n);let[,a]=u.getRange(n),[o]=u.getRange(i.body),s=u.text.slice(a,o),d=s.length-s.trimStart().length;0!==d&&(yield e.removeRange([a,a+d]))}}})},meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:"unopinionated"},fixable:"code",messages:{[oB]:"Remove unused catch binding `{{name}}`.",[oP]:"Remove unused catch binding."}}},"unicorn/prefer-regexp-test":oM,"unicorn/prefer-set-has":{create:e=>{e.on("Identifier",t=>{let{parent:r}=t;if(!("VariableDeclarator"===r.type&&r.id===t&&r.init&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&("ExportNamedDeclaration"!==r.parent.parent.type||r.parent.parent.declaration!==r.parent)&&("ArrayExpression"===r.init.type||rS(r.init,{name:"Array",optional:!1})||rR(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||rR(r.init,{methods:oq,optionalCall:!1,optionalMember:!1}))))return;let u=tR(e.sourceCode.getScope(t),t);if(!u)return;let n=un(u).filter(e=>e!==t);if(0===n.length||n.some(e=>!(rR(e.parent.parent,{method:"includes",optionalCall:!1,optionalMember:!1,argumentsLength:1})&&e.parent.object===e))||1===n.length&&n.every(e=>!((e,t)=>{let r=t.parent.parent.parent,{parent:u}=e.parent;for(;u&&u!==r;){if(oW.has(u.type))return!0;u=u.parent}return!1})(e,t)))return;let a={node:t,messageId:oz,data:{name:t.name}},i=function*(e){for(let r of(yield e.insertTextBefore(t.parent.init,"new Set("),yield e.insertTextAfter(t.parent.init,")"),n))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:oU,fix:i}]:a.fix=i,a})},meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[oz]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[oU]:"Switch `{{name}}` to `Set`."}}},"unicorn/prefer-string-raw":{create:e=>{e.on("Literal",t=>{if(!rb(t)||function(e){let{parent:t}=e,{type:r}=t;return rF(t)||("Property"===r||"PropertyDefinition"===r||"MethodDefinition"===r||"AccessorProperty"===r)&&!t.computed&&t.key===e||("TSAbstractPropertyDefinition"===r||"TSAbstractMethodDefinition"===r||"TSAbstractAccessorProperty"===r||"TSPropertySignature"===r)&&t.key===e||("ImportDeclaration"===r||"ExportNamedDeclaration"===r||"ExportAllDeclaration"===r)&&t.source===e||"ImportAttribute"===r&&(t.key===e||t.value===e)||"ImportSpecifier"===r&&t.imported===e||"ExportSpecifier"===r&&(t.local===e||t.exported===e)||"ExportAllDeclaration"===r&&t.exported===e||"JSXAttribute"===r&&t.value===e||"TSEnumMember"===r&&(t.initializer===e||t.id===e)||"TSModuleDeclaration"===r&&t.id===e||"TSExternalModuleReference"===r&&t.expression===e||"TSLiteralType"===r&&t.literal===e||"TSImportType"===r&&t.source===e}(t)||oV(t))return;let{sourceCode:r}=e,{raw:u}=t;if("\\"===u.at(-2)||!u.includes("\\\\")||u.includes("`")||u.includes("${")||r.getLoc(t).start.line!==r.getLoc(t).end.line)return;let n=oG(u.slice(1,-1),u.charAt(0));if(n===t.value)return{node:t,messageId:oZ,*fix(r){yield nr(r,t,e),yield r.replaceText(t,`String.raw\`${n}\``)}}}),e.on("TemplateLiteral",t=>{if(!("TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t||t.quasis.every(({value:{cooked:e,raw:t}})=>e===t)||t.quasis.some(({value:{cooked:e,raw:t}})=>"\\"===e.at(-1)||oG(t)!==e)||oV(t)))return{node:t,messageId:oZ,*fix(r){for(let u of(yield nr(r,t,e),yield r.insertTextBefore(t,"String.raw"),t.quasis)){let{cooked:t,raw:n}=u.value;t!==n&&(yield nd(u,t,e,r))}}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:"unopinionated"},fixable:"code",messages:{[oZ]:"`String.raw` should be used to avoid escaping `\\`."}}},"unicorn/prefer-switch":oQ,"unicorn/require-number-to-fixed-digits-argument":{create:e=>{e.on("CallExpression",t=>{if(!rR(t,{method:"toFixed",argumentsLength:0,optionalCall:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2);return{loc:{start:r.getLoc(u).start,end:r.getLoc(n).end},messageId:o0,fix:r=>u5(r,t,"0",e)}})},meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:"unopinionated"},fixable:"code",messages:{[o0]:"Missing the digits argument."}}},"unicorn/template-indent":{create:e=>{let{sourceCode:t}=e,r={...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let u=new WeakSet,n=n=>{let a;if("TemplateLiteral"!==n.type||u.has(n))return;u.add(n);let i="__PLACEHOLDER__"+Math.random(),o=n.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(i),s=o.match(/\r?\n/);if(!s)return;let d=s[0],l=t.lines[t.getLoc(n).start.line-1].match(/^(\s*)\S/),c=l?l[1]:"";a="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):c.startsWith(" ")?" ":" ";let f=(function(e){let t=e.match(/^[ \t]*(?=\S)/gm);if(!t)return e;let r=1/0;for(let e of t)r=Math.min(r,e.length);return 0===r||r===1/0?e:e.replace(RegExp(`^[ \\t]{${r}}`,"gm"),"")})(o).replaceAll(RegExp(`^${d}|${d}[ ]*$`,"g"),""),p=d+function(e,t=1,r={}){let{indent:u=" ",includeEmptyLines:n=!1}=r;if("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(t<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof u)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof u}\``);return 0===t?e:e.replace(n?/^/gm:/^(?!\s*$)/gm,u.repeat(t))}(f,1,{indent:c+a})+d+c;if(p!==o)return{node:n,messageId:o1,fix:t=>p.split(i).map((r,u)=>nd(n.quasis[u],r,e,t))}};e.on("TemplateLiteral",e=>{if((e=>{if(r.comments.length>0){let u=t.getTokenBefore(e,{includeComments:!0});if(u?.type==="Block"&&r.comments.includes(u.value.trim().toLowerCase()))return!0}return!!(oV(e)||r.tags.length>0&&rN(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&rO(e.parent.callee,r.functions))})(e))return n(e)}),e.on(r.selectors,e=>n(e))},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:o3,defaultOptions:[{tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"]}],messages:{[o1]:"Templates should be properly indented."}}},"unicorn/no-single-promise-in-promise-methods":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{object:"Promise",methods:iR,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type&&1===t.arguments[0].elements.length&&t.arguments[0].elements[0]&&"SpreadElement"!==t.arguments[0].elements[0].type))return;let r=t.callee.property.name,u={node:t.arguments[0],messageId:iI,data:{method:r}},{sourceCode:n}=e;if("AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==r||r_(t.parent.parent)))return u.fix=r=>{let[u]=t.arguments[0].elements,n=rg(u,e);return ry(u,e)||"SequenceExpression"!==u.type&&"YieldExpression"!==u.type&&"ArrowFunctionExpression"!==u.type&&"ConditionalExpression"!==u.type&&"AssignmentExpression"!==u.type&&"LogicalExpression"!==u.type&&"BinaryExpression"!==u.type||(n=`(${n})`),r.replaceText(t,n)},u;return"all"===r?u:(u.suggest=[{messageId:iB,fix:r=>{let[u]=t.arguments[0].elements,n=rg(u,e);return ry(u,e)||"Identifier"===u.type||"MemberExpression"===u.type||(n=`(${n})`),uS(e.sourceCode.getTokenBefore(t),e,n)&&(n=`;${n}`),r.replaceText(t,n)}},{messageId:iP,fix:function*(e){let r=t.callee.property;yield e.replaceText(r,"resolve");let[u]=t.arguments,a=n.getFirstToken(u),[i,o]=n.getLastTokens(u,2);yield e.remove(a),yield e.remove(o),tO(i)&&(yield e.remove(i))}}],u)})},meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[iI]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[iB]:"Use the value directly.",[iP]:"Switch to `Promise.resolve(…)`."}}},"unicorn/no-await-in-promise-methods":{create:e=>{e.on("CallExpression",function*(t){if(rR(t,{object:"Promise",methods:o5,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type)for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:o2,data:{method:t.callee.property.name},suggest:[{messageId:o4,*fix(t){let u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield u7(u,e,t)}}]})})},meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[o2]:"Promise in `Promise.{{method}}()` should not be awaited.",[o4]:"Remove `await`."}}},"unicorn/no-negation-in-equality-check":{create:e=>{e.on("BinaryExpression",t=>{let{operator:r,left:u}=t;if(!("BinaryExpression"===t.type&&o9.has(t.operator)&&o7(u)&&!o7(u.argument)))return;let{sourceCode:n}=e,a=n.getFirstToken(u),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:o8,suggest:[{messageId:o6,data:{operator:i},*fix(o){yield nr(o,t,e);let s=n.getTokenAfter(a),{parent:d}=t;("ReturnStatement"===d.type||"ThrowStatement"===d.type)&&!ry(t,e)&&(uh(n.getFirstToken(d),s,e)||(yield u9(o,d,e))),yield o.remove(a),uS(n.getTokenBefore(a),e,s.value)&&(yield o.insertTextAfter(a,";"));let l=n.getTokenAfter(u,e=>"Punctuator"===e.type&&e.value===r);yield o.replaceText(l,i)}}]}})},meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[o8]:"Negated expression is not allowed in equality check.",[o6]:"Switch to '{{operator}}' check."}}},"unicorn/no-unnecessary-slice-end":{create(e){se(e,{methods:["slice"],messageId:st})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:"unopinionated"},fixable:"code",messages:{[st]:"Passing `{{description}}` as the `end` argument is unnecessary."}}},"unicorn/no-lonely-if":{create:e=>{e.on("IfStatement",t=>{if(sl(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&sl(t.parent.parent)&&t.parent.parent.consequent===t.parent||sl(t.parent)&&t.parent.consequent===t))return{node:t,messageId:sd,fix:function(e,t){let{sourceCode:r}=t;return function*(u){let n=("BlockStatement"===e.parent.type?e.parent:e).parent,a={...n,...sf(n,r)},i={...e,...sf(e,r)};if(yield u.remove(i.ifToken),yield u7(i.ifToken,t,u),a.openingBraceToken){yield u.remove(a.openingBraceToken),yield u7(a.openingBraceToken,t,u),yield u.remove(a.closingBraceToken);let e=r.getTokenBefore(a.closingBraceToken,{includeComments:!0});yield u7(e,t,u)}for(let{test:e,openingParenthesisToken:r,closingParenthesisToken:n}of(yield u.insertTextBefore(a.openingParenthesisToken,"("),yield u.insertTextAfter(i.closingParenthesisToken,`)${"EmptyStatement"===i.consequent.type?"":" "}`),yield u.insertTextAfter(a.closingParenthesisToken," && "),[a,i]))(ry(e,t)||!sc(e))&&(yield u.remove(r),yield u.remove(n)),yield u7(n,t,u);if("BlockStatement"!==i.consequent.type){let e=r.getLastToken(i.consequent);if(tq(e)){let n=r.getTokenAfter(a);n&&uS(e,t,n.value)&&(yield u.insertTextBefore(n,";"))}}}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:"unopinionated"},fixable:"code",messages:{[sd]:"Unexpected `if` as the only statement in a `if` block without `else`."}}},"unicorn/no-magic-array-flat-depth":{create:e=>{e.on("CallExpression",t=>{if(!rR(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!rD(r)||1===r.value)return;let{sourceCode:u}=e,{openingParenthesisToken:n,closingParenthesisToken:a}=ue(t,e);if(!u.commentsExistBetween(n,a))return{node:r,messageId:sp}})},meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:"unopinionated"},messages:{[sp]:"Magic number as depth is not allowed."}}},"unicorn/no-negated-condition":{create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if("UnaryExpression"===r.type&&"!"===r.operator||"BinaryExpression"===r.type&&("!="===r.operator||"!=="===r.operator))return{node:r,messageId:sm,*fix(u){if(yield function*(e,t,r){let{sourceCode:u}=r,{test:n}=t;if("UnaryExpression"===n.type){let a=u.getFirstToken(n);"IfStatement"===t.type&&(yield u4(n.argument,e,r)),yield e.remove(a);return}let a=u.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(a,"="+a.value.slice(1))}(u,t,e),yield function*(e,t,r){let u="IfStatement"===t.type,[n,a]=[t.consequent,t.alternate].map(e=>{let t=rm(e,r),n=r.sourceCode.text.slice(...t);return u&&"BlockStatement"!==e.type&&(n=`{${n}}`),{range:t,text:n}});if(n.text===a.text)return;let{sourceCode:i}=r;yield e.replaceTextRange(i.getRange(n),a.text),yield e.replaceTextRange(i.getRange(a),n.text)}(u,t,e),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield nr(u,t,e);let{sourceCode:n}=e,{parent:a}=t,[i,o]=n.getFirstTokens(r,2);"ReturnStatement"!==a.type&&"ThrowStatement"!==a.type||a.argument!==t||uh(i,o,e)||ry(t,e)||ry(r,e)?uS(n.getTokenBefore(t),e,o.value)&&(yield u.insertTextBefore(t,";")):yield u9(u,a,e)}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:"unopinionated"},fixable:"code",messages:{[sm]:"Unexpected negated condition."}}},"unicorn/no-object-as-default-parameter":{create:e=>{e.on("AssignmentPattern",e=>{if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&rB(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:sg,data:{parameter:t.name}}:{node:r,messageId:sy}})},meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:"unopinionated"},messages:{[sg]:"Do not use an object literal as default for parameter `{{parameter}}`.",[sy]:"Do not use an object literal as default."}}},"unicorn/prefer-negative-index":{create:e=>{e.on("CallExpression",t=>{if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,u=t.property.name,n=t.object,a=r;if(sb.has(u))return{method:u,target:n,argumentsNodes:a};if("call"!==u&&"apply"!==u)return;let i="apply"===u;if(u=sD(t.object),!sb.has(u))return;let{supportObjects:o}=sb.get(u),s=t.object.object;if(rk(s)||"slice"===u&&rh(s,"")||"prototype"===sD(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([n]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:u,target:n,argumentsNodes:a}}}(t);if(!r)return;let{method:u,target:n,argumentsNodes:a}=r,{argumentsIndexes:i}=sb.get(u),o=i.map(e=>(function e(t,r){if(!t)return;let{type:u,operator:n,left:a,right:i}=t;if("BinaryExpression"===u&&"-"===n&&rD(i)&&i.value>0)return"MemberExpression"===a.type&&!a.computed&&!a.optional&&"Identifier"===a.property.type&&"length"===a.property.name&&ux(a.object,r)?a:e(a,r)})(a[e],n)).filter(Boolean);if(0!==o.length)return{node:t,messageId:sh,data:{method:u},*fix(t){for(let r of o)yield function(e,t,r){let[u,n]=rm(e,r);return t.removeRange([u,n+r.sourceCode.text.slice(n).match(/\S|$/).index])}(r,t,e)}}})},meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:"unopinionated"},fixable:"code",messages:{[sh]:"Prefer negative index over length minus index for `{{method}}`."}}},"unicorn/prefer-node-protocol":{create:e=>{e.on("Literal",t=>{if(!(("ImportDeclaration"===t.parent.type||"ExportNamedDeclaration"===t.parent.type||"ImportExpression"===t.parent.type||"TSImportType"===t.parent.type)&&t.parent.source===t||(rR(t.parent,{object:"process",method:"getBuiltinModule",argumentsLength:1,optionalCall:!1,optionalMember:!1})||rL(t.parent))&&t.parent.arguments[0]===t))return;let{value:r}=t;if(!("string"==typeof r&&!r.startsWith(sA)&&sv(r)&&sv(`${sA}${r}`)))return;let u=e.sourceCode.getRange(t)[0]+1;return{node:t,messageId:sE,data:{moduleName:r},fix:e=>e.insertTextAfterRange([u,u],sA)}})},meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:"unopinionated"},fixable:"code",messages:{[sE]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}},"unicorn/consistent-date-clone":{create:e=>{e.on("NewExpression",t=>{if(!rC(t,{name:"Date",argumentsLength:1}))return;let[r]=t.arguments;if(!rR(r,{method:"getTime",argumentsLength:0,optionalCall:!1,optionalMember:!1}))return;let{sourceCode:u}=e;return{node:r,loc:{start:u.getLoc(r.callee.property).start,end:u.getLoc(r).end},messageId:sC,fix:t=>ni(t,r,e)}})},meta:{type:"suggestion",docs:{description:"Prefer passing `Date` directly to the constructor when cloning.",recommended:"unopinionated"},fixable:"code",messages:{[sC]:"Unnecessary `.getTime()` call."}}},"unicorn/no-accessor-recursion":{create:e=>{let{sourceCode:t}=e;e.on("ThisExpression",e=>{let r=((e,t)=>{for(let r=e.getScope(t);r;r=r.upper){if("class"===r.type)return;if("function"===r.type&&"ArrowFunctionExpression"!==r.block.type)return r}})(t,e);if(!r)return;let u=r.block.parent;if(["Property","MethodDefinition"].includes(u?.type)&&!u.computed&&["set","get"].includes(u.kind)&&sF(u.key)&&("get"===u.kind&&(sk(e,u)||"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"ObjectPattern"===e.parent.id.type&&e.parent.id.properties.some(e=>"Property"===e.type&&!e.computed&&sw(e.key,u.key)))||"set"===u.kind&&((e,t)=>{if(!sk(e,t))return!1;let r=e.parent,{parent:u}=r;return("AssignmentExpression"===u.type||"AssignmentPattern"===u.type)&&u.left===r||"UpdateExpression"===u.type&&u.argument===r||"ArrayPattern"===u.type&&u.elements.includes(r)||"Property"===u.type&&u.value===r&&"ObjectPattern"===u.parent.type&&u.parent.properties.includes(r.parent)})(e,u)))return{node:e.parent,messageId:sS,data:{kind:u.kind}}})},meta:{type:"problem",docs:{description:"Disallow recursive access to `this` within getters and setters.",recommended:"unopinionated"},defaultOptions:[],messages:{[sS]:"Disallow recursive access to `this` within {{kind}}ters."}}},"unicorn/prefer-import-meta-properties":{create:function(e){let{sourceCode:t}=e;e.on("MetaProperty",function*(e){if("MetaProperty"!==e.type||"import"!==e.meta.name||"meta"!==e.property.name)return;let r=e.parent;if(!rP(r,{properties:["url","filename"],computed:!1,optional:!1}))return;let u=r.property.name;if("url"===u){if(sB(r.parent,t)&&r.parent.arguments[0]===r)return void(yield a(r.parent,{reportFilenameNode:!0}));if(rC(r.parent,{name:"URL",minimumArguments:1,maximumArguments:2})){var n;let e=r.parent,u=e.parent;if(1===e.arguments.length&&e.arguments[0]===r&&sB(u,t)&&u.arguments[0]===e)return void(yield a(u,{reportFilenameNode:!0}));2===e.arguments.length&&(n=e.arguments[0],n?.type==="Literal"&&("."===n.value||"./"===n.value))&&e.arguments[1]===r&&sB(u,t)&&u.arguments[0]===e&&(yield i(u,"dirname"))}return}function*a(e,{reportFilenameNode:r=!1}={}){let{parent:u}=e;if(sP(u,t)&&u.arguments[0]===e)return void(yield i(u,"dirname"));if(r&&(yield i(e,"filename")),"VariableDeclarator"!==u.type||u.init!==e||"Identifier"!==u.id.type||"VariableDeclaration"!==u.parent.type||"const"!==u.parent.kind)return;let n=tR(t.getScope(u.id),u.id);if(n)for(let e of n.references){if(!e.isReadOnly())continue;let{parent:r}=e.identifier;sP(r,t)&&r.arguments[0]===e.identifier&&(yield i(r,"dirname"))}}function i(e,t){return{node:e,messageId:"dirname"===t?sT:s_,fix:r=>r.replaceText(e,`import.meta.${t}`)}}"filename"===u&&(yield a(r))})},meta:{type:"suggestion",docs:{description:"Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.",recommended:!1},fixable:"code",messages:{[sT]:"Do not construct dirname.",[s_]:"Do not construct filename using `fileURLToPath()`."}}},"unicorn/no-unnecessary-array-flat-depth":{create:e=>{e.on("CallExpression",t=>{if(!(rR(t,{method:"flat",argumentsLength:1,optionalCall:!1})&&rh(t.arguments[0],1)))return;let[r]=t.arguments;return{node:r,messageId:sR,fix:t=>u8(t,r,e)}})},meta:{type:"suggestion",docs:{description:"Disallow using `1` as the `depth` argument of `Array#flat()`.",recommended:"unopinionated"},fixable:"code",messages:{[sR]:"Passing `1` as the `depth` argument is unnecessary."}}},"unicorn/no-unnecessary-array-splice-count":{create(e){se(e,{methods:["splice","toSpliced"],messageId:sL})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.",recommended:"unopinionated"},fixable:"code",messages:{[sL]:"Passing `{{description}}` as the `{{argumentName}}` argument is unnecessary."}}},"unicorn/no-useless-error-capture-stack-trace":{create:e=>{let t=[],r=[];e.on(["ClassDeclaration","ClassExpression"],e=>{t.push(e),r.push(e)}),e.onExit(["ClassDeclaration","ClassExpression"],()=>{t.pop(),r.pop()}),e.on(["FunctionDeclaration","FunctionExpression"],e=>{r.push(e)}),e.onExit(["FunctionDeclaration","FunctionExpression"],()=>{r.pop()}),e.on("CallExpression",u=>{let n,a=t.at(-1);if(!(a?.superClass&&"Identifier"===a.superClass.type&&a5.includes(a.superClass.name)&&e.sourceCode.isGlobalReference(a.superClass)&&(n=r.at(-1),n&&"MethodDefinition"===n.parent.type&&"constructor"===n.parent.kind&&n.parent.value===n&&a.body.body.includes(n.parent))&&rR(u,{object:"Error",method:"captureStackTrace",argumentsLength:2,optionalMember:!1})&&e.sourceCode.isGlobalReference(u.callee.object)))return;let[i,o]=u.arguments;if("ThisExpression"!==i.type||!((e,t,r)=>{if("MetaProperty"===e.type&&"Identifier"===e.meta.type&&"new"===e.meta.name&&"Identifier"===e.property.type&&"target"===e.property.name||rP(e,{property:"constructor",computed:!1,optional:!1})&&"ThisExpression"===e.object.type)return!0;if("Identifier"!==e.type||!t.id)return!1;let u=tR(r.sourceCode.getScope(e),e);return u&&1===u.defs.length&&"ClassName"===u.defs[0].type&&u.defs[0].node===t})(o,a,e))return;let s={node:u,messageId:sj},d="ChainExpression"===u.parent?u.parent.parent:u.parent;return"ExpressionStatement"===d.type&&"BlockStatement"===d.parent.type&&(s.fix=e=>e.remove(d)),s})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary `Error.captureStackTrace(…)`.",recommended:"unopinionated"},fixable:"code",messages:{[sj]:"Unnecessary `Error.captureStackTrace(…)` call."}}},"unicorn/prefer-class-fields":{create:e=>{let{sourceCode:t}=e;e.on("ClassBody",r=>{let u=r.body.find(e=>"constructor"===e.kind&&!e.computed&&!e.static&&"MethodDefinition"===e.type&&"FunctionExpression"===e.value.type);if(!u)return;let n=u.value.body.body.find(e=>"EmptyStatement"!==e.type);if(!(n?.type==="ExpressionStatement"&&"AssignmentExpression"===n.expression.type&&"="===n.expression.operator&&"MemberExpression"===n.expression.left.type&&"ThisExpression"===n.expression.left.object.type&&!n.expression.left.computed&&["Identifier","PrivateIdentifier"].includes(n.expression.left.property.type)&&"Literal"===n.expression.right.type))return;let a=n.expression.left.property.name,i=n.expression.right.raw,o=n.expression.left.property.type,s=r.body.find(e=>"PropertyDefinition"===e.type&&!e.computed&&!e.static&&e.key.type===o&&e.key.name===a),d={node:n,messageId:sO};function*l(o){if(yield((e,t,r)=>{let{line:u}=t.getLoc(e).start,n=t.getText(e);return t.lines[u-1].trim()===n?r.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]):r.remove(e)})(n,t,o),s){if(s.value)return void(yield o.replaceText(s.value,i));let e=` = ${i}`,r=t.getLastToken(s);return tN(r)?void(yield o.insertTextBefore(r,e)):void(yield o.insertTextAfter(s,`${e};`))}let d=t.getLastToken(r),l=ur(u,e),c=`${l}${a} = ${i};
|
|
15
|
+
${r}}`))}(t,i,s))}}}({discriminant:n,ifStatements:o},e,t)),yield s}})},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:"unopinionated"},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,description:"The minimum number of `if`/`else if` cases before suggesting a `switch` statement."},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],description:"How to handle an empty `default` case."}}}],defaultOptions:[{minimumCases:3,emptyDefaultCase:"no-default-comment"}],messages:{[o7]:"Use `switch` instead of multiple `else-if`."}}},sa="require-number-to-fixed-digits-argument",si="template-indent",so=[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source,description:"Whitespace string to use as indentation."},{type:"integer",minimum:1,description:"Number of spaces to use as indentation."}],description:"The indentation to use inside the template literal."},tags:{type:"array",uniqueItems:!0,items:{type:"string"},description:"Tagged template names to check."},functions:{type:"array",uniqueItems:!0,items:{type:"string"},description:"Function names whose template literal arguments to check."},selectors:{type:"array",uniqueItems:!0,items:{type:"string"},description:"AST selectors for template literals to check."},comments:{type:"array",uniqueItems:!0,items:{type:"string"},description:"Comment patterns to mark template literals for checking."}}}],ss="no-await-in-promise-methods/error",sd="no-await-in-promise-methods/suggestion",sl=["all","allSettled","any","race"],sc="no-negation-in-equality-check/error",sf="no-negation-in-equality-check/suggestion",sp=new Set(["===","!==","==","!="]),sm=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;function sg(e,{methods:t,messageId:r}){e.on("CallExpression",n=>{if(!rj(n,{methods:t,argumentsLength:2,optionalCall:!1}))return;let u=n.arguments[1],a=function(e,t){if("Identifier"===e.type&&"Infinity"===e.name)return"Infinity";if(rL(e,{object:"Number",property:"POSITIVE_INFINITY",computed:!1,optional:!1}))return"Number.POSITIVE_INFINITY";let r="ChainExpression"===e.type;if(r&&(e=e.expression),rL(e,{property:"length",computed:!1})&&nS(t,e.object))return`${"Identifier"===t.type?t.name:"…"}${r?"?.":"."}length`}(u,n.callee.object);if(!a)return;let i=n.callee.property.name,o={description:a};return"splice"===i?o.argumentName="deleteCount":"toSpliced"===i&&(o.argumentName="skipCount"),{node:u,messageId:r,data:o,fix:t=>ur(t,u,e)}})}let sy="no-unnecessary-slice-end",sh="catch-error-name",sb={create:e=>{let t=e.options[0],{name:r}=t,n=t.ignore.map(e=>eX.isRegExp(e)?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(nH(r));e.on("Identifier",t=>{if(("CatchClause"!==t.parent.type||t.parent.param!==t)&&!(("FunctionExpression"===t.parent.type||"ArrowFunctionExpression"===t.parent.type)&&t.parent.params[0]===t&&(rj(t.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1})||rj(t.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1}))&&t.parent.parent.arguments.at(-1)===t.parent))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=tR(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=nt(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:sh,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=t=>um(a,i,e,t)),o})},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",description:"The expected name for the error variable."},ignore:{type:"array",uniqueItems:!0,description:"Patterns to ignore."}}}],defaultOptions:[{name:"error",ignore:[]}],messages:{[sh]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}},sD="invalidExport",sx=/^(?:[A-Z][\da-z]*)*Error$/,sv=e=>`
|
|
16
|
+
name = '${e}';
|
|
17
|
+
`,sE=e=>{var t;let r=(t=e.superClass,t?.type==="Identifier"?t.name:t?.type!=="MemberExpression"||t.computed||"Identifier"!==t.property.type?void 0:t.property.name);return!!r&&sx.test(r)},sA=(e,t)=>"ExpressionStatement"===e.type&&"AssignmentExpression"===e.expression.type&&rN(e.expression.left,`this.${t}`),sC=(e,t)=>({node:e,message:`The \`name\` property should be set to \`${t}\`.`}),sS=(e,t)=>e?.value&&e.value.value===t;function*sF(e,t){if(!sE(t)||null===t.id)return;let{name:r}=t.id,n=nH(r).replace(/(?:error|)$/i,"Error");r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u}=t.body,{sourceCode:a}=e,i=u.find(e=>"constructor"===e.kind),o=u.find(e=>"PropertyDefinition"===e.type&&!e.static&&!e.computed&&"Identifier"===e.key.type&&"name"===e.key.name);if(!i){if(sS(o,r))return;let e=a.getRange(t.body);yield{...sC(o?.value??t,r),fix:t=>o?.value?t.replaceText(o.value,`'${r}'`):o?t.replaceText(o,sv(r).trim()):t.insertTextAfterRange([e[0],e[0]+1],sv(r))};return}yield*function*(e,t,r,n){let{sourceCode:u}=e,a=t.value.body;if(!a)return;let i=a.body,o=i.find(e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&rN(e.expression.callee,"super")),s=i.findIndex(e=>sA(e,"message"));if(o){if(-1!==s){let t=i[s];yield{node:o,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(r){if(0===o.expression.arguments.length){let n=t.expression.right,[a]=u.getRange(o);yield r.insertTextAfterRange([a,a+6],ry(n,e))}let n=0===s?u.getRange(a)[0]:u.getRange(i[s-1])[1],[,d]=u.getRange(t);yield r.removeRange([n,d])}}}}else yield{node:a,message:"Missing call to `super()` in constructor."};let d=i.find(e=>sA(e,"name"));if(!d){sS(n,r)||(yield sC(n?.value??a,r));return}("Literal"!==d.expression.right.type||d.expression.right.value!==r)&&(yield sC(d.expression.right??a,r))}(e,i,r,o)}let sw="no-lonely-if",sk=e=>"IfStatement"===e.type&&!e.alternate,sT=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function sI(e,t){let r={ifToken:t.getFirstToken(e),openingParenthesisToken:t.getFirstToken(e,1)},{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}let s_="no-magic-array-flat-depth",sP="no-negated-condition",sB="identifier",sR="non-identifier",sL="prefer-negative-index",sj=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...ii])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(ii)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...ii])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...ii])}]]),sO=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var sN=["node:assert","assert","node:assert/strict","assert/strict","node:async_hooks","async_hooks","node:buffer","buffer","node:child_process","child_process","node:cluster","cluster","node:console","console","node:constants","constants","node:crypto","crypto","node:dgram","dgram","node:diagnostics_channel","diagnostics_channel","node:dns","dns","node:dns/promises","dns/promises","node:domain","domain","node:events","events","node:fs","fs","node:fs/promises","fs/promises","node:http","http","node:http2","http2","node:https","https","node:inspector","inspector","node:inspector/promises","inspector/promises","node:module","module","node:net","net","node:os","os","node:path","path","node:path/posix","path/posix","node:path/win32","path/win32","node:perf_hooks","perf_hooks","node:process","process","node:querystring","querystring","node:quic","node:readline","readline","node:readline/promises","readline/promises","node:repl","repl","node:sea","node:sqlite","node:stream","stream","node:stream/consumers","stream/consumers","node:stream/promises","stream/promises","node:stream/web","stream/web","node:string_decoder","string_decoder","node:test","node:test/reporters","node:timers","timers","node:timers/promises","timers/promises","node:tls","tls","node:trace_events","trace_events","node:tty","tty","node:url","url","node:util","util","node:util/types","util/types","node:v8","v8","node:vm","vm","node:wasi","wasi","node:worker_threads","worker_threads","node:zlib","zlib"];function s$(t){if("string"!=typeof t)throw TypeError("Expected a string");return(e??=new Set(sN)).has(t)}let sM="prefer-node-protocol",sU="node:",sz="consistent-date-clone/error",sW="no-accessor-recursion/error",sq=e=>"Identifier"===e.type||"PrivateIdentifier"===e.type,sV=(e,t)=>["type","name"].every(r=>e[r]===t[r]),sZ=(e,t)=>"MemberExpression"===e.parent.type&&e.parent.object===e&&!e.parent.computed&&sq(e.parent.property)&&sV(e.parent.property,t.key),sG="error/calculate-dirname",sH="error/calculate-filename";function sK(e,{modules:t,functionName:r,sourceCode:n}){if(!rS(e,{optional:!1,argumentsLength:1}))return!1;let u=new Set;return function e(t,i){if("MemberExpression"===t.type)return!!("property"===i&&rL(t,{property:r,computed:!1,optional:!1}))&&e(t.object,"module");if("CallExpression"===t.type)return"module"===i&&rj(t,{object:"process",method:"getBuiltinModule",argumentsLength:1,optionalMember:!1,optionalCall:!1})&&a(t.arguments[0]);if("Identifier"!==t.type||u.has(t))return!1;u.add(t);let o=tR(n.getScope(t),t);if(o&&1===o.defs.length){var s=o.defs[0],d=i;if("ImportBinding"===s.type){if(!a(s.parent.source))return!1;let e=s.node;return"module"===d?e?.type==="ImportDefaultSpecifier"||e?.type==="ImportNamespaceSpecifier":e?.type==="ImportSpecifier"&&e.imported.name===r}return"Variable"===s.type&&function t(n,u){let{parent:a}=n;return"VariableDeclarator"===a.type?!!a.init&&a.id===n&&"VariableDeclaration"===a.parent.type&&"const"===a.parent.kind&&e(a.init,u):"Property"===a.type&&!!("property"===u&&a.value===n&&!a.computed&&"Identifier"===a.key.type&&a.key.name===r)&&t(a.parent,"module")}(s.name,d)}}(e.callee,"property");function a(e){return e?.type==="Literal"&&t.has(e.value)}}function sJ(e,t){return sK(e,{modules:new Set(["url","node:url"]),functionName:"fileURLToPath",sourceCode:t})}function sX(e,t){return sK(e,{modules:new Set(["path","node:path"]),functionName:"dirname",sourceCode:t})}let sY="no-unnecessary-array-flat-depth",sQ="no-unnecessary-array-splice-count",s0="no-useless-error-capture-stack-trace/error",s1="prefer-class-fields/error",s3="prefer-class-fields/suggestion",s2="prefer-bigint-literals/error",s4="prefer-bigint-literals/suggestion",s5="prefer-classlist-toggle/error",s8="prefer-classlist-toggle/suggestion",s6=e=>rL(e,{property:"classList",computed:!1}),s9=(e,t,r)=>{let n={node:r??e,messageId:s5};return"IfStatement"===e.type||rP(e)||rP(e.parent)?n.fix=t:n.suggest=[{messageId:s8,fix:t}],n},s7=(e,t,r)=>{let{sourceCode:n}=t,u=ry(e,t);if(r)return rh(e,n)||"UpdateExpression"!==e.type&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type&&"ConditionalExpression"!==e.type&&"AssignmentExpression"!==e.type&&"ArrowFunctionExpression"!==e.type&&"YieldExpression"!==e.type&&"SequenceExpression"!==e.type||(u=`(${u})`),u=`!${u}`;return rh(e,n)||"SequenceExpression"!==e.type||(u=`(${u})`),u},de=(e,t)=>rj(e,{methods:t,argumentsLength:1,optionalCall:!1,optionalMember:!1})&&s6(e.callee.object),dt=(e,t)=>nS(e.callee.object,t.callee.object)&&nS(e.arguments[0],t.arguments[0]),dr=(e,t,r)=>t?("ChainExpression"===e.type&&(e=e.expression),de(e,["contains"])&&dt(e,r))?e:void 0:"UnaryExpression"===e.type&&"!"===e.operator&&e.prefix?dr(e.argument,!t,r):void 0,dn="require-module-attributes",du="error",da="suggestion/array",di="suggestion/object",ds="suggestion/object-assign",dd="suggestion/set",dl="suggestion/map",dc=(e,t,r)=>{let{sourceCode:n}=r,u=no(e);return t.some(e=>{let t=n.getRange(e);return u.some(e=>{let[r,u]=n.getRange(e);return r>=t[0]&&u<=t[1]})})};function df(e,t){if(!rF(e,{names:t,maximumArguments:1}))return!1;let[r]=e.arguments;return!r||"ArrayExpression"===r.type}function*dp(e,t,r){let n=!tN(t.sourceCode.getTokenBefore(e));yield function(e,t,r,n=!1){let{sourceCode:u}=t,{lines:a}=u,i=e;if(n){let[t,r]=u.getLastTokens(e,2);tN(r)&&(i=t)}let o=u.getLoc(e).start,s=u.getLoc(i).end,d=a[o.line-1].slice(0,o.column),l=a[s.line-1].slice(s.column),[c]=u.getRange(e),[,f]=u.getRange(i);return/^\s*$/.test(d)&&/^\s*$/.test(l)&&(c=Math.max(0,c-d.length-1),f+=l.length),r.removeRange([c,f])}(e,t,r,n)}function dm(e,t,r,n){let{sourceCode:u}=e,[a,i]=u.getLastTokens(r,2),o=("ArrayExpression"===r.type?r.elements:r.properties).length>0&&!tO(a);return t.insertTextBefore(i,`${o?",":""} ${n}`)}function*dg({context:e,fixer:t,newExpression:r,elementsText:n,nextExpressionStatement:u}){if(nr(r,e)){let[u]=r.arguments;if(u)yield dm(e,t,u,n);else{let{openingParenthesisToken:u}=nr(r,e)?nn(r,e):{};yield t.insertTextAfter(u,`[${n}]`)}}else yield t.insertTextAfter(r,`([${n}])`);yield*dp(u,e,t)}let dy=[{testValue:e=>e?.type==="ArrayExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let n=r.expression;if(rj(n,{object:t.name,methods:["push","unshift"],optionalMember:!1,optionalCall:!1})&&n.arguments.length>0&&!dc(t,n.arguments,e))return n},getProblem(e,t){let{context:r,assignType:n,getFix:u}=t,{sourceCode:a}=r,i=e.callee,o=i.property,s={node:i,messageId:du,data:{objectType:"array"}},d="unshift"===o.name,l=u(t,{callExpression:e,isPrepend:d});return e.arguments.some(e=>t7(e,a))?s.suggest=[{messageId:da,fix:l,data:{operation:d?"Prepend":"Append",assignType:n}}]:s.fix=l,s},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{callExpression:n,isPrepend:u})=>function*(a){let i=nu(e,n,!1);yield u?a.insertTextAfter(e.sourceCode.getFirstToken(t),`${i}, `):dm(e,a,t,i),yield dp(r,e,a)}},{testValue:e=>e?.type==="ObjectExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let n=r.expression;if(!("AssignmentExpression"===n.type&&"="===n.operator&&rL(n.left,{object:t.name,optional:!1})))return;let u=n.right,a=n.left,{property:i}=a;if(!dc(t,a.computed?[i,u]:[u],e))return n},getProblem(e,t){let{context:r,assignType:n,getFix:u}=t,{sourceCode:a}=r,{left:i,right:o}=e,{property:s}=i,d=a.getTokenAfter(i,t=>"Punctuator"===t.type&&t.value===e.operator),l={node:e,loc:{start:a.getLoc(e).start,end:a.getLoc(d).end},messageId:du,data:{objectType:"object"}},c=u(t,{assignmentExpression:e,memberExpression:i,property:s,value:o});return i.computed&&t7(s,a)||t7(o,a)?l.suggest=[{messageId:di,data:{assignType:n},fix:c}]:l.fix=c,l},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{memberExpression:n,property:u,value:a})=>function*(i){let o=ry(u,e);n.computed&&(o=`[${o}]`);let s=ry(a,e),d=`${o}: ${s},`,[l,c]=e.sourceCode.getLastTokens(t,2),f=t.properties.length>0&&!tO(l);yield i.insertTextBefore(c,`${f?",":""} ${d}`),yield dp(r,e,i)}},{testValue:e=>e?.type==="ObjectExpression",getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let n=r.expression;if(!rj(n,{object:"Object",method:"assign",minimumArguments:2,optionalMember:!1,optionalCall:!1}))return;let[u,a]=n.arguments;if(!("Identifier"!==u.type||u.name!==t.name||"SpreadElement"===a.type||dc(t,[a],e)))return n},getProblem(e,t){let{context:r,assignType:n,getFix:u}=t,{sourceCode:a}=r,[,i]=e.arguments,o={node:e.callee,messageId:du,data:{objectType:"object"}},s=u(t,{callExpression:e,firstValue:i});return t7(i,a)?o.suggest=[{messageId:ds,data:{description:"ObjectExpression"===i.type?"Move properties to":"Spread properties in",assignType:n},fix:s}]:o.fix=s,o},getFix:({context:e,valueNode:t,nextExpressionStatement:r},{callExpression:n,firstValue:u})=>function*(a){let i;("ObjectExpression"===u.type?u.properties.length>0&&(i=function(e,t){let{sourceCode:r}=t,n=r.getFirstToken(e),[u,a]=r.getLastTokens(e,2),[,i]=r.getRange(n),[o]=r.getRange(tO(u)?u:a);return r.text.slice(i,o)}(u,e)):i=`...${ry(u,e)}`,i&&(yield dm(e,a,t,i)),2!==n.arguments.length)?yield ur(a,u,e):yield dp(r,e,a)}},{testValue:e=>df(e,["Set","WeakSet"]),getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let n=r.expression;if(("ChainExpression"===n.type&&(n=n.expression),rj(n,{object:t.name,method:"add",argumentsLength:1,optionalMember:!1,optionalCall:!1}))&&!dc(t,n.arguments,e))return n},getProblem(e,t){let{context:r,assignType:n,valueNode:u,getFix:a}=t,{sourceCode:i}=r,o={node:e.callee,messageId:du,data:{objectType:`\`${u.callee.name}\``}},s=a(t,{callExpression:e,newExpression:u});return e.arguments.some(e=>t7(e,i))?o.suggest=[{messageId:dd,data:{assignType:n},fix:s}]:o.fix=s,o},getFix:({context:e,nextExpressionStatement:t},{callExpression:r,newExpression:n})=>u=>{let a=nu(e,r,!1);return dg({context:e,fixer:u,newExpression:n,elementsText:a,nextExpressionStatement:t})}},{testValue:e=>df(e,["Map","WeakMap"]),getProblematicNode({context:e,variable:t,nextExpressionStatement:r}){let n=r.expression;if(rj(n,{object:t.name,method:"set",argumentsLength:2,optionalCall:!1})&&!dc(t,n.arguments,e))return n},getProblem(e,t){let{context:r,assignType:n,valueNode:u,getFix:a}=t,{sourceCode:i}=r,o={node:e.callee,messageId:du,data:{objectType:`\`${u.callee.name}\``}},s=a(t,{callExpression:e,newExpression:u});return e.arguments.some(e=>t7(e,i))?o.suggest=[{messageId:dl,data:{assignType:n},fix:s}]:o.fix=s,o},getFix:({context:e,nextExpressionStatement:t},{callExpression:r,newExpression:n})=>u=>{let a=nu(e,r,!1);return dg({context:e,fixer:u,newExpression:n,elementsText:`[${a}]`,nextExpressionStatement:t})}}],dh="no-useless-collection-argument/error",db="no-useless-collection-argument/suggestion",dD="prefer-response-static-json",dx=/([\p{Ll}\d])(\p{Lu})/gu,dv=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,dE=/(\d)\p{Ll}|(\p{L})\d/u,dA=/[^\p{L}\d]+/giu,dC="$1\0$2";function dS(e){let t=e.trim();t=(t=t.replace(dx,dC).replace(dv,dC)).replace(dA,"\0");let r=0,n=t.length;for(;"\0"===t.charAt(r);)r++;if(r===n)return[];for(;"\0"===t.charAt(n-1);)n--;return t.slice(r,n).split(/\0/g)}function dF(e){let t=dS(e);for(let e=0;e<t.length;e++){let r=t[e],n=dE.exec(r);if(n){let u=n.index+(n[1]??n[2]).length;t.splice(e,1,r.slice(0,u),r.slice(u))}}return t}function dw(e,t){let[r,n,u]=dP(e,t);return r+n.map(dk(t?.locale)).join(t?.delimiter??" ")+u}function dk(e){return!1===e?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function dT(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function dI(e,t){return r=>`${t(r[0])}${e(r.slice(1))}`}function d_(e,t){return(r,n)=>{let u=r[0];return(n>0&&u>="0"&&u<="9"?"_"+u:t(u))+e(r.slice(1))}}function dP(e,t={}){let r=t.split??(t.separateNumbers?dF:dS),n=t.prefixCharacters??"",u=t.suffixCharacters??"",a=0,i=e.length;for(;a<e.length;){let t=e.charAt(a);if(!n.includes(t))break;a++}for(;i>a;){let t=i-1,r=e.charAt(t);if(!u.includes(r))break;i=t}return[e.slice(0,a),r(e.slice(a,i)),e.slice(i)]}let dB="filename-case",dR="filename-extension",dL=e=>!/^[a-z\d-_]$/i.test(e),dj=new Set(["index.js","index.mjs","index.cjs","index.ts","index.tsx","index.vue"]),dO={camelCase:{fn:function(e,t){let[r,n,u]=dP(e,t),a=dk(t?.locale),i=dT(t?.locale),o=t?.mergeAmbiguousCharacters?dI(a,i):d_(a,i);return r+n.map((e,t)=>0===t?a(e):o(e,t)).join(t?.delimiter??"")+u},name:"camel case"},kebabCase:{fn:function(e,t){return dw(e,{delimiter:"-",...t})},name:"kebab case"},snakeCase:{fn:function(e,t){return dw(e,{delimiter:"_",...t})},name:"snake case"},pascalCase:{fn:function(e,t){let[r,n,u]=dP(e,t),a=dk(t?.locale),i=dT(t?.locale),o=t?.mergeAmbiguousCharacters?dI(a,i):d_(a,i);return r+n.map(o).join(t?.delimiter??"")+u},name:"pascal case"}},dN=/^(?<leading>_+)(?<tailing>.*)$/,d$=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),dM=[{oneOf:[{properties:{case:{enum:["camelCase","snakeCase","kebabCase","pascalCase"],description:"The filename case style."},ignore:{type:"array",uniqueItems:!0,description:"Patterns to ignore."},multipleFileExtensions:{type:"boolean",description:"Whether to treat additional, dot-separated parts of a filename as file extensions."}},additionalProperties:!1},{properties:{cases:{properties:{camelCase:{type:"boolean",description:"Whether to allow camelCase filenames."},snakeCase:{type:"boolean",description:"Whether to allow snake_case filenames."},kebabCase:{type:"boolean",description:"Whether to allow kebab-case filenames."},pascalCase:{type:"boolean",description:"Whether to allow PascalCase filenames."}},additionalProperties:!1,description:"The allowed filename case styles."},ignore:{type:"array",uniqueItems:!0,description:"Patterns to ignore."},multipleFileExtensions:{type:"boolean",description:"Whether to treat additional, dot-separated parts of a filename as file extensions."}},additionalProperties:!1}]}],dU="consistent-template-literal-escape",dz="iterable-accepting",dW="for-of",dq="yield-star",dV="spread",dZ="iterator-method",dG="iterable-accepting/suggestion",dH="iterator-method/suggestion",dK=["every","find","forEach","some"],dJ="reduce",dX=e=>rj(e,{method:"toArray",argumentsLength:0,optionalCall:!1,optionalMember:!1}),dY="prefer-simple-condition-first",dQ="prefer-simple-condition-first/suggestion";function d0(e){return"Identifier"===e.type||"Literal"===e.type||"UnaryExpression"===e.type&&("-"===e.operator||"+"===e.operator)&&"Literal"===e.argument.type&&"number"==typeof e.argument.value}function d1(e){return"Identifier"===e.type||("UnaryExpression"===e.type&&"!"===e.operator?d1(e.argument):"BinaryExpression"===e.type&&("==="===e.operator||"!=="===e.operator)?d0(e.left)&&d0(e.right)&&("Identifier"===e.left.type||"Identifier"===e.right.type):"LogicalExpression"===e.type&&d1(e.left)&&d1(e.right))}let d3=new Set(["AssignmentExpression","UpdateExpression","TaggedTemplateExpression","AwaitExpression","YieldExpression","ImportExpression"]);function d2(e,t,{operator:r,property:n}){let u=rh(e,t),a=u?ry(e,t):t.sourceCode.getText(e);return!u&&nU(e,{operator:r,property:n})&&(a=`(${a})`),a}let d4="switch-case-break-position",d5=new Set(["BreakStatement","ReturnStatement","ContinueStatement","ThrowStatement"]),d8={configs:{node:{name:"@eslint-sukka/eslint-plugin-sukka-full node preset",plugins:{get sukka(){return d8}},rules:{"sukka/unicorn/prefer-node-protocol":"error","sukka/unicorn/prefer-import-meta-properties":"error","no-process-exit":"off","sukka/unicorn/no-process-exit":"warn","no-buffer-constructor":"off","sukka/unicorn/no-new-buffer":"error"}},comment:{name:"@eslint-sukka/eslint-plugin-sukka-full comments preset",plugins:{get sukka(){return d8}},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"]}},regexp:{name:"@eslint-sukka/eslint-plugin-sukka-full regexp preset",plugins:{get sukka(){return d8}},rules:{"sukka/unicorn/better-regex":"warn"}},recommended:{...eK.eslint_plugin_sukka.configs.recommended,plugins:{get sukka(){return d8}}},recommended_extra_with_typed_lint:{...eK.eslint_plugin_sukka.configs.recommended_extra_with_typed_lint,plugins:{get sukka(){return d8}}},recommended_react:{...eK.eslint_plugin_sukka.configs.recommended_react,plugins:{get sukka(){return d8}}}},rules:Object.assign(eK.eslint_plugin_sukka.rules,{"array/no-unneeded-flat-map":e7,"browser/prefer-location-assign":tt,"jsx/no-template-literal":tn,"jsx/no-unneeded-nested":tu,"string/no-locale-case":ti,"string/no-simple-template-literal":to,"unicode/no-bidi":tm,"unicode/no-invisible":ty,"no-redundant-variable":th,"no-single-return":tD,"prefer-early-return":tv,"prefer-fetch":tE,"prefer-timer-id":tS,"string/no-unneeded-to-string":tF,"type/no-force-cast-via-top-type":tw,"type/no-wrapper-type-reference":tT,"no-default-error":tI},Object.fromEntries(Object.entries({"unicorn/better-regex":a1,"unicorn/catch-error-name":sb,"unicorn/custom-error-definition":{create:e=>{e.on("ClassDeclaration",t=>sF(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return sF(e,t.right)}),e.on("AssignmentExpression",e=>{if("MemberExpression"===e.left.type&&"Identifier"===e.left.object.type&&"exports"===e.left.object.name){let t=e.left.property.name,r=e.right;if("ClassExpression"!==r.type||!sE(r)||!r.id)return;let n=r.id.name;return t!==n?{node:e.left.property,messageId:sD,fix:t=>t.replaceText(e.left.property,n)}:void 0}})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[sD]:"Exported error name should match error class"}}},"unicorn/no-nested-ternary":{create:e=>{e.on("ConditionalExpression",t=>{if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,n=r.getAncestors(t).toReversed(),u=n.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==u||rh(t,e)?u>1?{node:u>2?n[u-3]:t,messageId:nK}:void 0:{node:t,messageId:nJ,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}})},meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[nK]:"Do not nest ternary expressions.",[nJ]:"Nested ternary expression should be parenthesized."}}},"unicorn/prefer-event-target":{create:e=>{e.on("Identifier",t=>{if("EventEmitter"!==t.name||("ClassDeclaration"!==t.parent.type&&"ClassExpression"!==t.parent.type||t.parent.superClass!==t)&&("NewExpression"!==t.parent.type||t.parent.callee!==t))return;let r=e.sourceCode.getScope(t);if(!function(e){if(!e)return!1;let t=function(e,t){let r=e=>e.type===t;for(;e.parent;e=e.parent)if(r(e))return e}(e,"ImportDeclaration");return!!(nY.has(t?.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)&&nQ(e.parent.parent)&&n0(e.parent.parent.parent.init)||nQ(e)&&rL(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&n0(e.parent.init.object))}(tR(r,t)?.defs[0]?.name))return{node:t,messageId:nX}})},meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:"unopinionated"},messages:{[nX]:"Prefer `EventTarget` over `EventEmitter`."}}},"unicorn/prefer-keyboard-event-key":{create:e=>{e.on("Identifier",t=>{if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=n5(e,t);if(r&&n&&n.some(e=>{let r;return r=e.identifier,t?.parent?.type==="MemberExpression"&&t.parent.object===r}))return n6(t)}),e.on("Property",t=>{let r=t.value.name;if(!n2.has(r))return;let{event:n,references:u}=n5(e,t);if(!n)return;let a=n8(t,"VariableDeclarator"),i=a?.init;if(u&&u.some(e=>e.identifier===i))return n6(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return n6(t.value)}})},meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:"unopinionated"},fixable:"code",messages:{[n3]:"Use `.key` instead of `.{{name}}`."}}},"unicorn/prefer-text-content":{create:e=>{e.on("MemberExpression",e=>{if(!rL(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:n9,suggest:[{messageId:n7,fix:e=>e.replaceText(t,"textContent")}]}}),e.on("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:n9,suggest:[{messageId:n7,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}})},meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[n9]:"Prefer `.textContent` over `.innerText`.",[n7]:"Switch to `.textContent`."}}},"unicorn/require-array-join-separator":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{method:"join",argumentsLength:0,optionalCall:!1})||rj(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&rz(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:r.getLoc(n)[a?"end":"start"],end:r.getLoc(u).end},messageId:uh,fix:r=>ut(r,t,"','",e)}})},meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:"unopinionated"},fixable:"code",messages:{[uh]:"Missing the separator argument."}}},"unicorn/no-thenable":{create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of uA)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:"unopinionated"},messages:{[ub]:"Do not add `then` to an object.",[uD]:"Do not export `then`.",[ux]:"Do not add `then` to a class."}}},"unicorn/no-invalid-remove-event-listener":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||rj(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:tV(r,e.sourceCode),messageId:uC}:{node:r.callee.property,messageId:uC}})},meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:"unopinionated"},messages:{[uC]:"The listener argument should be a function reference."}}},"unicorn/consistent-function-scoping":uT,"unicorn/no-new-buffer":{create:e=>{let{sourceCode:t}=e;e.on("NewExpression",r=>{if(!rF(r,{name:"Buffer"}))return;let n=((e,t)=>{if(1!==e.length)return"from";let[r]=e;if("SpreadElement"===r.type)return;if("ArrayExpression"===r.type||"TemplateLiteral"===r.type)return"from";if(function e(t,r){if(rx(t)||nl(t,"Math",nf)||"CallExpression"===t.type&&!t.optional&&nl(t.callee,"Math",np)||nc(t,"Number")||nl(t,"Number",nm)||"CallExpression"===t.type&&!t.optional&&nl(t.callee,"Number",ng)||nc(t,"parseInt")||nc(t,"parseFloat")||"MemberExpression"===t.type&&!t.computed&&!t.optional&&"Identifier"===t.property.type&&"length"===t.property.name)return!0;switch(t.type){case"AssignmentExpression":{let{operator:n}=t;if("="===n&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:n}=t;if("AssignmentExpression"===t.type&&(n=n.slice(0,-1)),"+"===n&&e(t.left,r)&&e(t.right,r)||">>>"===n||ny.has(n)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:n}=t;if("+"===n||("-"===n||"~"===n)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let n=e(t.consequent,r),u=e(t.alternate,r);if(n&&u)return!0;let a=t1(t.test,r);if(null!==a&&(n&&a.value||u&&!a.value))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return"number"==typeof t1(t,r)?.value}(r,t))return"alloc";let n=t1(r,t);if(n){let{value:e}=n;if("string"==typeof e||Array.isArray(e))return"from"}})(r.arguments,t.getScope(r));return n?{node:r,messageId:uI,data:{method:n},fix:uB(r,e,n)}:{node:r,messageId:u_,suggest:["from","alloc"].map(t=>({messageId:uP,data:{replacement:t},fix:uB(r,e,t)}))}})},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[uI]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[u_]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[uP]:"Switch to `Buffer.{{replacement}}()`."}}},"unicorn/no-console-spaces":{create:e=>{let{sourceCode:t}=e,r=(r,n,u)=>{let[a,i]=t.getRange(r),o="leading"===u?a+1:i-2,s=[o,o+1];return{loc:nV(s,e),messageId:uR,data:{method:n,position:u},fix:e=>e.removeRange(s)}};e.on("CallExpression",function*(e){if(!rj(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:u}=e,{length:a}=u;for(let[e,i]of u.entries()){if(!rD(i)&&"TemplateLiteral"!==i.type)continue;let u=t.getText(i).slice(1,-1);0!==e&&uL(u)&&(yield r(i,n,"leading")),e!==a-1&&uj(u)&&(yield r(i,n,"trailing"))}})},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:"unopinionated"},fixable:"code",messages:{[uR]:"Do not use {{position}} space between `console.{{method}}` parameters."}}},"unicorn/no-empty-file":{create:e=>{let t=e.physicalFilename;/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t)&&e.on("Program",t=>{if(t.body.some(e=>!rT(e,rk)))return;let{sourceCode:r}=e;if(!r.getAllComments().some(e=>"Line"===e.type&&e.value.startsWith("/")))return{node:t,messageId:uO}})},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:"unopinionated"},messages:{[uO]:"Empty files are not allowed."}}},"unicorn/no-useless-fallback-in-spread":{create:e=>{e.on("ObjectExpression",t=>{if(r_(t)&&"LogicalExpression"===t.parent.type&&t.parent.right===t&&("||"===t.parent.operator||"??"===t.parent.operator)&&"SpreadElement"===t.parent.parent.type&&t.parent.parent.argument===t.parent&&"ObjectExpression"===t.parent.parent.parent.type&&t.parent.parent.parent.properties.includes(t.parent.parent))return{node:t,messageId:uN,*fix(r){let{sourceCode:n}=e,u=t.parent,{left:a}=u,i=rh(a,e),[,o]=i?rg(a,e):n.getRange(a),[,s]=n.getRange(u);yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield ue(u,r,e))}}})},meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:"unopinionated"},fixable:"code",messages:{[uN]:"The empty object is useless."}}},"unicorn/no-useless-length-check":{create:e=>{let t=[],r=new Set,n=new Set,u=new Set,a=new Set;e.on("BinaryExpression",e=>{if("BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&rL(e.left,{property:"length",optional:!1})&&rW(e.parent)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&n.add(e)}}),e.on("CallExpression",e=>{rj(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?u.add(e):"every"===e.callee.property.name&&a.add(e))}),e.on("LogicalExpression",e=>{rW(e)&&t.push(e)}),e.on("Program:exit",function*(){let i=new Set(t.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,i,o)=>(function({node:e,operator:t,siblings:i}){return"||"===t&&r.has(e)&&i.some(t=>a.has(t)&&nS(e.left.object,t.callee.object))||"&&"===t&&n.has(e)&&i.some(t=>u.has(t)&&nS(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))),{sourceCode:o}=e;for(let t of i)yield{loc:{start:o.getLoc(t.left.property).start,end:o.getLoc(t).end},messageId:r.has(t)?"zero":"non-zero",fix(r){let{left:n,right:u}=t.parent,a=rg(n,e),i=rg(u,e),o=[];return n===t?(o[0]=a[0],o[1]=i[0]):(o[0]=a[1],o[1]=i[1]),r.removeRange(o)}}})},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:"unopinionated"},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."}}},"unicorn/no-useless-promise-resolve-reject":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===t.parent.type&&t.parent.body===t||"ReturnStatement"===t.parent.type&&t.parent.argument===t||"YieldExpression"===t.parent.type&&!t.parent.delegate&&t.parent.argument===t)))return;let{functionNode:r,isInTryStatement:n}=function(e){let t,r=!1;for(;e;e=e.parent){if(rR(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(t);if(r&&(r.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}(r)))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}}(t,function(e,t,r){if(e.arguments.length>1)return;let{callee:n,parent:u,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===n.property.name,o="YieldExpression"===u.type;if(!i||!t&&(!o||"ExpressionStatement"===u.parent.type))return function(t){let n="ArrowFunctionExpression"===u.type,s=a?r.sourceCode.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(rg(u,r),s);if(s+=";",n)return s=`{ ${s} }`,t.replaceTextRange(rg(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===u.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s||="{}");return t.replaceText(n?e:u,s)}}(t,n,e))})},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:"unopinionated"},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}},"unicorn/no-zero-fractions":{create:e=>{e.on("Literal",t=>{if(!rx(t))return;let{raw:r}=t,n=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!n)return;let{before:u,dotAndFractions:a,after:i}=n.groups,o=(u+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s="."===a,{sourceCode:d}=e,l=d.getRange(t)[0]+u.length+a.length;return{loc:nV([l-(r.length-o.length),l],e),messageId:s?uM:u$,*fix(r){let n=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&n$.test(o)&&!rh(t,e)&&(n=`(${n})`,nI(d.getTokenBefore(t),e,n)&&(n=`;${n}`)),yield r.replaceText(t,n),yield us(r,t,e)}}})},meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:"unopinionated"},fixable:"code",messages:{[u$]:"Don't use a zero fraction in the number.",[uM]:"Don't use a dangling dot in the number."}}},"unicorn/prefer-export-from":uK,"unicorn/prefer-native-coercion-functions":{create:e=>{e.on(rB,t=>{if(t.async||t.generator||0===t.params.length||"Identifier"!==t.params[0].type||("MethodDefinition"===t.parent.type&&("constructor"===t.parent.kind||"set"===t.parent.kind)||"Property"===t.parent.type&&"set"===t.parent.kind)&&t.parent.value===t)return;let r=function(e){if(!(!(("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)&&"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&&uY.has(e.parent.callee.property.name))||e.returnType?.type==="TSTypeAnnotation"&&"TSTypePredicate"===e.returnType.typeAnnotation.type))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t,r=(t=e.params[0].name,"ArrowFunctionExpression"===e.type&&uQ(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&uQ(e.body.body[0].argument,t)?e.body.body[0].argument:void 0);if(!r)return;let{name:n}=r.callee,u={replacementFunction:n};return"FunctionDeclaration"===e.type||1!==r.arguments.length||(u.fix=t=>{let r=n;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?r=`: ${r}`:"MethodDefinition"===e.parent.type&&(r=` = ${r};`),t.replaceText(e,r)}),u}(t);if(!r)return;let{sourceCode:n}=e,{replacementFunction:u,fix:a}=r;return r={node:t,loc:tV(t,n),messageId:uJ,data:{functionNameWithKind:t4(t,n),replacementFunction:u}},!a||1!==t.params.length||n.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:"unopinionated"},fixable:"code",messages:{[uJ]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}},"unicorn/no-document-cookie":{create(e){u2.listen({context:e})},meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:"unopinionated"},messages:{[u3]:"Do not use `document.cookie` directly."}}},"unicorn/prefer-add-event-listener":u6,"unicorn/prefer-array-index-of":an,"unicorn/prefer-blob-reading-methods":{create:e=>{e.on("CallExpression",e=>{if(!rj(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:au,data:{method:r,replacement:"readAsArrayBuffer"===r?"arrayBuffer":"text"}}})},meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:"unopinionated"},messages:{[au]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}},"unicorn/prefer-date-now":{create:e=>{e.on("CallExpression",e=>{if(rj(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&as(e.callee.object)){let t=e.callee.property;return ad(e,{node:t,messageId:ai,data:{method:t.name}})}if(rS(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&as(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?ad(e,{messageId:ao}):ad(e.arguments[0])}}),e.on("UnaryExpression",t=>{if(("+"===t.operator||"-"===t.operator)&&as(t.argument))return ad("-"===t.operator?t.argument:t,{},e)}),e.on("AssignmentExpression",e=>{if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&as(e.right))return ad(e.right)}),e.on("BinaryExpression",function*(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])as(t)&&(yield ad(t))})},meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:"unopinionated"},fixable:"code",messages:{[aa]:"Prefer `Date.now()` over `new Date()`.",[ai]:"Prefer `Date.now()` over `Date#{{method}}()`.",[ao]:"Prefer `Date.now()` over `Number(new Date())`."}}},"unicorn/prefer-dom-node-dataset":{create:e=>{e.on("CallExpression",t=>{if(!((rj(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||rj(t,{methods:["removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rj(t,{method:"getAttribute",argumentsLength:1,optionalCall:!1}))&&rD(t.arguments[0])))return;let r=t.callee.property.name;if(("AwaitExpression"!==t.parent.type||t.parent.argument!==t||"getAttribute"!==r)&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:ac,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&function e(t){return("MemberExpression"===t.type||"CallExpression"===t.type)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))}(e.callee))){if(("setAttribute"!==r||rP(e.parent))&&("removeAttribute"!==r||rP(e.parent)))return n=>{let[u]=e.arguments,a=u.value.toLowerCase().slice(5).replaceAll(/-[a-z]/g,e=>e[1].toUpperCase()),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}${e.callee.optional?"?":""}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=al(a)?`.${a}`:`[${rX(a,u.raw.charAt(0))}]`,o=`${s}${o}`,"setAttribute"===r?o+=` = ${i.getText(e.arguments[1])}`:"removeAttribute"===r&&(o=`delete ${o}`);break;case"hasAttribute":o=`Object.hasOwn(${s}, ${rX(a,u.raw.charAt(0))})`}return n.replaceText(e,o)}}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:"unopinionated"},fixable:"code",messages:{[ac]:"Prefer `.dataset` over `{{method}}(…)`."}}},"unicorn/prefer-modern-math-apis":{create:e=>{let t=[];e.on("CallExpression",t=>{if(!rj(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=ab(t.arguments[0]);if(r.some(e=>!("BinaryExpression"===e.type&&("*"===e.operator&&nS(e.left,e.right)||"**"===e.operator&&rb(e.right,2)))))return;let n=1===r.length?"abs":"hypot",u=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:af,data:{replacement:`Math.${n}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let r of(yield a.replaceText(t.callee.property,n),u)){let t=i.getTokenAfter(r.left,e=>"Punctuator"===e.type&&"+"===e.value);yield uy(t,",",a,e),yield ue(r,a,e)}for(let t of r)yield a.removeRange([rg(t.left,e)[1],i.getRange(t)[1]])}}}),e.on("BinaryExpression",e=>{t.push(e)}),e.on("Program:exit",function*(){for(let r of t)for(let t of ah){let n=t(r,e);n&&(yield n)}})},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:"unopinionated"},fixable:"code",messages:{[af]:"Prefer `{{replacement}}` over `{{description}}`."}}},"unicorn/number-literal-case":av,"unicorn/prefer-number-properties":aF,"unicorn/prefer-reflect-apply":{create:e=>{e.on("CallExpression",t=>{if(!rj(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:r}=e,n=((e,t)=>{if("apply"===t2(e.callee)&&2===e.arguments.length&&ak(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,aT(t,e.callee.object,e.arguments[0],e.arguments[1]))})(t,r)||((e,t)=>{if("call"===t2(e.callee)&&"apply"===t2(e.callee.object)&&"prototype"===t2(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&ak(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,aT(t,e.arguments[0],e.arguments[1],e.arguments[2]))})(t,r);if(n)return{node:t,messageId:aw,fix:n}})},meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:"unopinionated"},fixable:"code",messages:{[aw]:"Prefer `Reflect.apply()` over `Function#apply()`."}}},"unicorn/prefer-set-size":{create:e=>{let{sourceCode:t}=e;e.on("MemberExpression",r=>{var n;if(!rL(r,{property:"length",optional:!1}))return;let u="ArrayExpression"===(n=r.object).type&&1===n.elements.length&&n.elements[0]?.type==="SpreadElement"?n.elements[0].argument:rj(n,{object:"Array",method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})?n.arguments[0]:void 0;if(u&&function(e,t){if(a_(e))return!0;if("Identifier"!==e.type)return!1;let r=tR(t,e);if(!r||1!==r.defs.length)return!1;let[n]=r.defs;if("Variable"!==n.type||"const"!==n.kind)return!1;let u=n.node;return"VariableDeclarator"===u.type&&"Identifier"===u.id.type&&a_(n.node.init)}(u,t.getScope(u)))return{node:r.property,messageId:aI,fix:function(e,t,r){let{sourceCode:n}=e,{object:u,property:a}=t;if(!(n.getCommentsInside(u).length>n.getCommentsInside(r).length))return function*(i){yield i.replaceText(a,"size"),yield i.replaceText(u,n.getText(r)),"ArrayExpression"===u.type&&(yield us(i,t,e))}}(e,r,u)}})},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:"unopinionated"},fixable:"code",messages:{[aI]:"Prefer using `Set#size` instead of `Array#length`."}}},"unicorn/prefer-string-replace-all":{create:e=>{e.on("CallExpression",t=>{if(!rj(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!((e,t)=>{if(rv(e))return e.regex.flags.includes("g");if(rF(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=t1(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global})(r,e.sourceCode.getScope(r)))return;let u=n.name,a=function(e){let t;if(!rv(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=aB(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"'"+u.map(e=>{let{kind:t,codePoint:r,raw:n}=e;if("controlLetter"===t)return 13===r?String.raw`\r`:10===r?String.raw`\n`:9===r?String.raw`\t`:String.raw`\u{${r.toString(16)}}`;if("octal"===t)return String.raw`\u{${r.toString(16)}}`;let u=n;return("identifier"===t&&(u=u.slice(1)),"'"===u||"\\"===u)?`\\${u}`:u}).join("")+"'"}(r);if("replaceAll"===u){if(!a)return;return{node:r,messageId:aL,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:n,messageId:aR,*fix(e){yield e.insertTextAfter(n,"All"),a&&(yield e.replaceText(r,a))}}})},meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:"unopinionated"},fixable:"code",messages:{[aR]:"Prefer `String#replaceAll()` over `String#replace()`.",[aL]:"This pattern can be replaced with {{replacement}}."}}},"unicorn/prefer-string-slice":{create:e=>{e.on("CallExpression",t=>{if(!rj(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(n,{abort:u}){if(yield n.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return u();yield("substr"===r?function*({node:e,fixer:t,context:r,abort:n}){let u=e.arguments,[a,i]=u;if(!i)return;let{sourceCode:o}=r,s=t1(a,o.getScope(e)),d=rg(i,r);if(s?.value===0){if(rx(i)||aO(i))return;if("number"==typeof aj(i)){let e;return void(yield(e=String(Math.max(0,aj(i))),un(t,i,e,r)))}return yield t.insertTextBeforeRange(d,"Math.max(0, "),void(yield t.insertTextAfterRange(d,")"))}if(u.every(e=>rx(e))){let e;return void(yield(e=String(a.value+i.value),un(t,i,e,r)))}return n()}:function*({node:e,fixer:t,context:r,abort:n}){let[u,a]=e.arguments,i=u?aj(u):void 0,o=ry(u,r);if(!a){if(aO(u))return;if(void 0!==i)return void(yield un(t,u,String(Math.max(0,i)),r));let e=rg(u,r);return yield t.insertTextBeforeRange(e,"Math.max(0, "),void(yield t.insertTextAfterRange(e,")"))}let s=aj(a),d=ry(a,r);if(void 0!==i&&void 0!==s){let e=[Math.max(0,i),Math.max(0,s)];i>s&&e.reverse(),e[0]!==i&&(yield un(t,u,String(e[0]),r)),e[1]!==s&&(yield un(t,a,String(e[1]),r));return}if(0===i||0===s){yield un(t,u,"0",r),yield un(t,a,`Math.max(0, ${0===i?d:o})`,r);return}return n()})({node:t,fixer:n,context:e,abort:u})}}}})},meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:"unopinionated"},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}},"unicorn/prefer-string-trim-start-end":{create:e=>{e.on("CallExpression",e=>{if(!rj(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,n="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:aN,data:{method:r,replacement:n},fix:e=>e.replaceText(t,n)}})},meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:"unopinionated"},fixable:"code",messages:{[aN]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}},"unicorn/no-unreadable-iife":{create:e=>{e.on("CallExpression",t=>{if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&rh(t.callee.body,e))return{node:t,loc:nV(rg(t.callee.body,e),e),messageId:a$}})},meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:"unopinionated"},hasSuggestions:!1,messages:{[a$]:"IIFE with parenthesized arrow function body is considered unreadable."}}},"unicorn/throw-new-error":{create:e=>{e.on("CallExpression",t=>{let{callee:r}=t;if(("Identifier"===r.type&&aU.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&aU.test(r.property.name))&&!rL(r,{object:"Data",property:"TaggedError",computed:!1}))return{node:t,messageId:aM,fix:r=>ud(t,e,r)}})},meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:"unopinionated"},fixable:"code",messages:{[aM]:"Use `new` when creating an error."}}},"unicorn/escape-case":{create:e=>{let t="lowercase"===e.options[0];e.on("Literal",e=>{if(rD(e))return a8({node:e,original:e.raw,lowercase:t})}),e.on("Literal",e=>{if(rv(e))return a8({node:e,original:e.raw,regex:a5,lowercase:t})}),e.on("TemplateElement",r=>{if(!rM(r.parent,["String.raw"]))return a8({node:r,original:r.value.raw,lowercase:t,fix:(t,n)=>ug(r,n,e,t)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase or lowercase values.",recommended:"unopinionated"},fixable:"code",schema:[{enum:["uppercase","lowercase"],description:"The case style for escape sequences."}],defaultOptions:["uppercase"],messages:{[a3]:"Use uppercase characters for the value of the escape sequence.",[a2]:"Use lowercase characters for the value of the escape sequence."}}},"unicorn/no-hex-escape":{create:e=>{e.on("Literal",t=>{if(rD(t)||rv(t))return a9(e,t,t.raw)}),e.on("TemplateElement",t=>{if(!rM(t.parent,["String.raw"]))return a9(e,t,t.value.raw)})},meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:"unopinionated"},fixable:"code",messages:{[a6]:"Use Unicode escapes instead of hexadecimal escapes."}}},"unicorn/prefer-prototype-methods":{create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.onExit("Program",function*(n){let u=new WeakMap;for(let{node:e,path:r}of new rd(t.getScope(n)).iterateGlobalReferences(Object.fromEntries(a7.map(e=>[e,{[rd.READ]:!0}]))))u.set(e,r);for(let t of r)yield function(e,{context:t,globalReferences:r}){let n;rj(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?n=e.arguments[0]:rj(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(n=e.callee.object);let{isGlobalReference:u,constructorName:a,methodName:i}=function(e,{context:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!rL(e,{optional:!1}))return;let n=e.object;if(rI(n)||r_(n))return{constructorName:"ArrayExpression"===n.type?"Array":"Object",methodName:t2(e,t.sourceCode.getScope(e))}}(n,{context:t,globalReferences:r})??{};if(a)return{node:n,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(u)return void(yield r.replaceText(n,`${a}.prototype.${i}`));if(rL(n)){let u=n.object;yield r.replaceText(u,`${a}.prototype`),("ArrayExpression"===u.type||"ObjectExpression"===u.type)&&(yield us(r,e,t))}}}}(t,{context:e,globalReferences:u})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:"unopinionated"},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}},"unicorn/error-message":{create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!(rw(t,{names:ie,optional:!1})&&e.sourceCode.isGlobalReference(t.callee)))return;let r=t.callee.name,n=ia.has(r)?ia.get(r):0,u=t.arguments;if(u.some((e,t)=>t<=n&&"SpreadElement"===e.type))return;let a=u[n];if(!a)return{node:t,messageId:it,data:{constructorName:r}};if("ArrayExpression"===a.type||"ObjectExpression"===a.type)return{node:a,messageId:iu};let i=t1(a,e.sourceCode.getScope(a));if(!i)return;let{value:o}=i;return"string"!=typeof o?{node:a,messageId:iu}:""===o?{node:a,messageId:ir}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:"unopinionated"},messages:{[it]:"Pass a message to the `{{constructorName}}` constructor.",[ir]:"Error message should not be an empty string.",[iu]:"Error message should be a string."}}},"unicorn/no-instanceof-builtins":im,"unicorn/prefer-type-error":{create:e=>{e.on("ThrowStatement",e=>{let t;if(rF(e.argument,{name:"Error"})&&e.parent&&e.parent.body&&1===e.parent.body.length&&e.parent.parent&&"IfStatement"===(t=e.parent.parent).type&&iv(t.test)){let t=e.argument.callee;return{node:t,messageId:ig,fix:e=>e.insertTextBefore(t,"Type")}}})},meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:"unopinionated"},fixable:"code",messages:{[ig]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}},"unicorn/consistent-destructuring":{create:e=>{let{sourceCode:t}=e,r=new Map;e.on("VariableDeclarator",e=>{if(!("ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&(e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type})(e.init)))return;let n=iC(e.init);r.set(t.getText(e.init),{scope:t.getScope(e),object:e.init,rootIdentifierName:n?.name,rootVariable:n&&tR(t.getScope(e),n),objectPattern:e.id})}),e.on("MemberExpression",e=>{if(e.computed||rw(e.parent)&&e.parent.callee===e||nd(e))return;let n=r.get(t.getText(e.object));if(!n)return;let u=t.getScope(e),a=iC(e.object),i=a&&tR(u,a);if(n.rootIdentifierName&&a?.name===n.rootIdentifierName&&i!==n.rootVariable||((e,t,r,n)=>{if(!e.rootVariable)return!1;let[,u]=n.getRange(e.object),[a]=n.getRange(t);return e.rootVariable.references.some(e=>{if(!e.isWrite())return!1;let[t]=n.getRange(e.identifier);return!(t<u)&&(e.from.variableScope!==r.variableScope||t<=a)})})(n,e,u,t))return;let{scope:o,objectPattern:s}=n;if(!((e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1})(u,o))return;let d=t.getText(e.property),l=s.properties.some(e=>iF(e)&&e.key.name===d&&"Identifier"!==e.value.type&&iw(e.value)),c=s.properties.filter(e=>iF(e)&&"Identifier"===e.value.type),f=s.properties.at(-1),p=f?.type==="RestElement",m=t.getText(e),g=c.find(e=>e.key.name===d);if(!g&&(l||p||nt(d,[u])!==d))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:iE};let y=g?g.value.name:d;return{node:e,messageId:iE,suggest:[{messageId:iA,data:{expression:m,property:y},*fix(t){let{properties:r}=s,n=r.at(-1);yield t.replaceText(e,y),g||(yield n?t.insertTextAfter(n,`, ${y}`):t.replaceText(s,`{${y}}`))}}]}})},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},hasSuggestions:!0,messages:{[iE]:"Use destructured variables over properties.",[iA]:"Replace `{{expression}}` with destructured property `{{property}}`."}}},"unicorn/new-for-builtins":{create:e=>{i_.listen({context:e}),iP.listen({context:e})},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`.",[iT]:"Use `String(new Date())` instead of `Date()`.",[iI]:"Switch to `String(new Date())`."}}},"unicorn/prefer-single-call":iO,"unicorn/no-process-exit":{create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return;let r=!1,n=[];e.on("CallExpression",e=>{rO(e)&&i$(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&i$(e.source)&&(r=!0)}),e.on("CallExpression",e=>{rj(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(t=e)}),e.onExit("CallExpression",e=>{e===t&&(t=void 0)}),e.on("CallExpression",e=>{!t&&rj(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&n.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of n)yield{node:e,messageId:iN}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:"unopinionated"},messages:{[iN]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}},"unicorn/no-static-only-class":{create:function(e){e.on(["ClassDeclaration","ClassExpression"],t=>{if(!(t.superClass||t.decorators&&t.decorators.length>0||"ClassBody"!==t.body.type||0===t.body.body.length||t.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:o}=e;return!(!iZ(e)&&"MethodDefinition"!==e.type||!r||t||"PrivateIdentifier"===o.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e))))return{node:t,loc:function(e,t){let{sourceCode:r}=t,{body:n}=e,u=r.getTokenBefore(n),{start:a}=r.getLoc(e),{end:i}=r.getLoc(u);return{start:a,end:i}}(t,e),messageId:iq,fix:function(e,t){let{type:r,id:n,body:u,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&n)return;let d="ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e;if(d&&n)return;let{sourceCode:l}=t;for(let e of u.body)if(iZ(e)&&(e.typeAnnotation||e.value&&l.getText(e.value).includes("this")))return;return function*(n){let a=l.getFirstToken(e);if(rH(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r)if("ClassExpression"===r&&"ReturnStatement"===s.type&&l.getLoc(u).start.line!==l.getLoc(s).start.line&&l.text.slice(l.getRange(a)[1],l.getRange(u)[0]).trim()){yield n.replaceText(a,"{");let e=l.getFirstToken(u);yield n.remove(e)}else yield n.replaceText(a,""),yield ua(a,t,n);else yield n.replaceText(a,"const"),yield n.insertTextBefore(u,"= "),yield n.insertTextAfter(u,";");for(let e of u.body)yield function*(e,t,r){let{sourceCode:n}=t,u=n.getFirstToken(e);rH(u,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(u),yield ua(u,t,r);let a=iZ(e)?n.getLastToken(e):n.getTokenAfter(e),i=tN(a);if(iZ(e)){let{key:t,value:u}=e;if(u){let e=n.getTokenAfter(t,iV);yield r.replaceText(e,":")}else i?yield r.insertTextBefore(a,": undefined"):yield r.insertTextAfter(e,": undefined")}yield i?r.replaceText(a,","):r.insertTextAfter(e,",")}(e,t,n)}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:"unopinionated"},fixable:"code",messages:{[iq]:"Use an object instead of a class with only static members."}}},"unicorn/no-unreadable-array-destructuring":{create:e=>{let{sourceCode:t}=e;e.on("ArrayPattern",r=>{let{elements:n,parent:u}=r;if(n.length<3||!n.some((e,t,r)=>null===e&&null===r[t+1]))return;let a={node:r,messageId:iG},i=n.filter(e=>null!==e);if("VariableDeclarator"===u.type&&u.id===r&&null!==u.init&&1===i.length){let[o]=i;"AssignmentPattern"!==o.type&&(a.fix=function*(a){let i=n.indexOf(o),s="RestElement"===o.type,d=s?o.argument:o;yield a.replaceText(r,t.getText(d));let l=s?`.slice(${i})`:`[${i}]`,c=u.init;!rh(c,e)&&nM(c,e)?(yield a.insertTextBefore(c,"("),yield a.insertTextAfter(u,`)${l}`)):yield a.insertTextAfter(u,l),yield us(a,r,e)})}return a})},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:"unopinionated"},fixable:"code",messages:{[iG]:"Array destructuring may not contain consecutive ignored values."}}},"unicorn/no-useless-spread":{create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],r=>{if(!("SpreadElement"===r.parent.type&&r.parent.argument===r&&("ObjectExpression"===r.type&&"ObjectExpression"===r.parent.parent.type&&r.parent.parent.properties.includes(r.parent)||"ArrayExpression"===r.type&&("ArrayExpression"===r.parent.parent.type&&r.parent.parent.elements.includes(r.parent)||rw(r.parent.parent)&&r.parent.parent.arguments.includes(r.parent)))))return;let n=r.parent,u=t.getFirstToken(n),a=n.parent.type;return{node:u,messageId:iH,data:{argumentType:"ArrayExpression"===r.type?"array":"object",parentDescription:i0[a]},*fix(i){let o;yield i.remove(u),yield ue(r,i,e);let s=t.getFirstToken(r);yield i.remove(s);let[d,l]=t.getLastTokens(r,2);if(yield i.remove(l),tO(d)&&(yield i.remove(d)),rI(r)||r_(r)){let e=t.getTokenAfter(n);tO(e)&&(yield i.remove(e))}if("CallExpression"===a||"NewExpression"===a)for(let[e,n]of(o=t.getFirstToken(r),r.elements.map((e,n,u)=>{if(n===u.length-1){let e=t.getLastToken(r,{skip:1});return tO(e)?e:void 0}let a=t.getTokenAfter(e||o,tO);return o=a,a})).entries())r.elements[e]||(yield i.insertTextBefore(n,"undefined"))}}}),e.on("ArrayExpression",t=>{if(!iQ(t))return;let{parent:r}=t;if(!("ForOfStatement"===r.type&&r.right===t||"YieldExpression"===r.type&&r.delegate&&r.argument===t||(rF(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||rF(r,{names:ii,minimumArguments:1})||rj(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rj(r,{objects:["Array",...ii],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||rj(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===t))return;let n="",u=iK;switch(r.type){case"ForOfStatement":u=iJ;break;case"YieldExpression":u=iX;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:t,messageId:u,data:{parentDescription:n},fix:r=>i1(r,t,e)}}),e.on("ArrayExpression",t=>{if(!iQ(t))return;let r=t.elements[0].argument;if(!(rj(r,{methods:["concat","copyWithin","flat","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||rj(r,{method:"split",optionalCall:!1,optionalMember:!1})||rj(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&rj(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||rj(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||rF(r,{name:"Array"})))return;let n={node:t,messageId:iY};return rF(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?n:Object.assign(n,{fix:r=>i1(r,t,e)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:"unopinionated"},fixable:"code",messages:{[iH]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[iK]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[iJ]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[iX]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[iY]:"Unnecessarily cloning an array."}}},"unicorn/no-useless-switch-case":{create:e=>{e.on("SwitchStatement",function*(t){let{cases:r}=t;if(!(r.length<2)&&null===r.at(-1).test)for(let t=r.length-2;t>=0;t--){let n=r[t];if(!i4(n))break;yield{node:n,loc:function(e,t){let{sourceCode:r}=t,n=e.test||r.getFirstToken(e),u=r.getTokenAfter(n,t$);return{start:r.getLoc(e).start,end:r.getLoc(u).end}}(n,e),messageId:i3,suggest:[{messageId:i2,fix:e=>e.remove(n)}]}}})},meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[i3]:"Useless case in switch statement.",[i2]:"Remove this case."}}},"unicorn/no-useless-undefined":i9,"unicorn/numeric-separators-style":or,"unicorn/prefer-array-find":ox,"unicorn/prefer-array-flat-map":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===t.arguments.length||1===t.arguments.length&&"Literal"===t.arguments[0].type&&"1"===t.arguments[0].raw)&&rj(t.callee.object,{method:"map",optionalCall:!1})))return;let r=t.callee.object;if(r$(r.callee.object,oE))return;let{sourceCode:n}=e,u=r.callee.property;return{node:t,loc:{start:n.getLoc(u).start,end:n.getLoc(t).end},messageId:ov,*fix(r){yield uf(r,t,e),yield r.replaceText(u,"flatMap")}}})},meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:"unopinionated"},fixable:"code",messages:{[ov]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}},"unicorn/prefer-array-flat":oP,"unicorn/prefer-array-some":oj,"unicorn/prefer-code-point":{create:e=>{e.on("CallExpression",e=>{if(rj(e,{method:"charCodeAt",optionalCall:!1}))return oO(e.callee.property,"codePointAt")}),e.on("MemberExpression",e=>{if(rL(e,{object:"String",property:"fromCharCode",optional:!1}))return oO(e.property,"fromCodePoint")})},meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:"unopinionated"},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()`."}}},"unicorn/prefer-default-parameters":{create:e=>{let{sourceCode:t}=e,r=[],n=(e,n,u,a)=>{let i,o=r.at(-1);if(!o||!n||!u||"Identifier"!==n.type||"LogicalExpression"!==u.type||"||"!==u.operator&&"??"!==u.operator||"Identifier"!==u.left.type||"Literal"!==u.right.type)return;let{name:s}=n,{left:{name:d},right:{raw:l}}=u;if(a&&s!==d)return;let c=tR(t.getScope(e),d);if(!c)return;let{references:f}=c,{params:p}=o,m=p.find(e=>"Identifier"===e.type&&e.name===d);if(((e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(oM(e,n))return!0}return!1})(t,o,e)||a&&f[0].identifier!==n||!a&&f.length>1||(i=p.at(-1),!m||m!==i))return;let g=((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})(t,o)?`(${s} = ${l})`:`${s} = ${l}`;return{node:e,messageId:oN,suggest:[{messageId:o$,fix:r=>[r.replaceText(m,g),((e,t,r)=>{let{line:n}=t.getLoc(r).start,{column:u}=t.getLoc(r).end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];if(o)return e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]);if(s){let[n,u]=t.getRange(r);return e.removeRange([n,u+1])}return e.remove(r)})(r,t,e)]}]}};e.on(rB,e=>{r.push(e)}),e.onExit(rB,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return n(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return n(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[oN]:"Prefer default parameters over reassignment.",[o$]:"Replace reassignment with default parameter."}}},"unicorn/prefer-logical-operator-over-ternary":{create:e=>{let{sourceCode:t}=e;e.on("ConditionalExpression",r=>{let{test:n,consequent:u,alternate:a}=r;return oW(n,u,t)?oq({context:e,conditionalExpression:r,left:n,right:a}):"UnaryExpression"===n.type&&"!"===n.operator&&n.prefix&&oW(n.argument,a,t)?oq({context:e,conditionalExpression:r,left:n.argument,right:u}):void 0})},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[oU]:"Prefer using a logical operator over a ternary.",[oz]:"Switch to `{{operator}}` operator."}}},"unicorn/prefer-optional-catch-binding":{create:e=>{e.on("CatchClause",t=>{let r=t.param;if(!r)return;let{sourceCode:n}=e;if(n.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:u,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===u?oV:oZ,data:{name:a},*fix(e){let t=n.getTokenBefore(r);rH(t,{test:tM,expected:"(",ruleId:"prefer-optional-catch-binding"});let u=n.getTokenAfter(r);rH(u,{test:tU,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(u);let[,a]=n.getRange(u),[o]=n.getRange(i.body),s=n.text.slice(a,o),d=s.length-s.trimStart().length;0!==d&&(yield e.removeRange([a,a+d]))}}})},meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:"unopinionated"},fixable:"code",messages:{[oV]:"Remove unused catch binding `{{name}}`.",[oZ]:"Remove unused catch binding."}}},"unicorn/prefer-regexp-test":oQ,"unicorn/prefer-set-has":{create:e=>{e.on("Identifier",t=>{let{parent:r}=t;if(!("VariableDeclarator"===r.type&&r.id===t&&r.init&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&("ExportNamedDeclaration"!==r.parent.parent.type||r.parent.parent.declaration!==r.parent)&&o5(r.init,e.sourceCode.getScope(r.init))))return;let n=tR(e.sourceCode.getScope(t),t);if(!n)return;let u=no(n).filter(e=>e!==t);if(0===u.length||u.some(e=>!(rj(e.parent.parent,{method:"includes",optionalCall:!1,optionalMember:!1,argumentsLength:1})&&e.parent.object===e))||1===u.length&&u.every(e=>!((e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(o4.has(n.type))return!0;n=n.parent}return!1})(e,t)))return;let a={node:t,messageId:o0,data:{name:t.name}},i=function*(e){for(let r of(yield e.insertTextBefore(t.parent.init,"new Set("),yield e.insertTextAfter(t.parent.init,")"),u))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:o1,fix:i}]:a.fix=i,a})},meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[o0]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[o1]:"Switch `{{name}}` to `Set`."}}},"unicorn/prefer-string-raw":{create:e=>{e.on("Literal",t=>{if(!rD(t)||function(e){let{parent:t}=e,{type:r}=t;return rk(t)||("Property"===r||"PropertyDefinition"===r||"MethodDefinition"===r||"AccessorProperty"===r)&&!t.computed&&t.key===e||("TSAbstractPropertyDefinition"===r||"TSAbstractMethodDefinition"===r||"TSAbstractAccessorProperty"===r||"TSPropertySignature"===r)&&t.key===e||("ImportDeclaration"===r||"ExportNamedDeclaration"===r||"ExportAllDeclaration"===r)&&t.source===e||"ImportAttribute"===r&&(t.key===e||t.value===e)||"ImportSpecifier"===r&&t.imported===e||"ExportSpecifier"===r&&(t.local===e||t.exported===e)||"ExportAllDeclaration"===r&&t.exported===e||"JSXAttribute"===r&&t.value===e||"TSEnumMember"===r&&(t.initializer===e||t.id===e)||"TSModuleDeclaration"===r&&t.id===e||"TSExternalModuleReference"===r&&t.expression===e||"TSLiteralType"===r&&t.literal===e||"TSImportType"===r&&t.source===e}(t)||o8(t))return;let{sourceCode:r}=e,{raw:n}=t;if("\\"===n.at(-2)||!n.includes("\\\\")||n.includes("`")||n.includes("${")||r.getLoc(t).start.line!==r.getLoc(t).end.line)return;let u=o9(n.slice(1,-1),n.charAt(0));if(u===t.value)return{node:t,messageId:o6,*fix(r){yield us(r,t,e),yield r.replaceText(t,`String.raw\`${u}\``)}}}),e.on("TemplateLiteral",t=>{if(!("TaggedTemplateExpression"===t.parent.type&&t.parent.quasi===t||t.quasis.every(({value:{cooked:e,raw:t}})=>e===t)||t.quasis.some(({value:{cooked:e,raw:t}})=>"\\"===e.at(-1)||o9(t)!==e)||o8(t)))return{node:t,messageId:o6,*fix(r){for(let n of(yield us(r,t,e),yield r.insertTextBefore(t,"String.raw"),t.quasis)){let{cooked:t,raw:u}=n.value;t!==u&&(yield ug(n,t,e,r))}}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:"unopinionated"},fixable:"code",messages:{[o6]:"`String.raw` should be used to avoid escaping `\\`."}}},"unicorn/prefer-switch":su,"unicorn/require-number-to-fixed-digits-argument":{create:e=>{e.on("CallExpression",t=>{if(!rj(t,{method:"toFixed",argumentsLength:0,optionalCall:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:r.getLoc(n).start,end:r.getLoc(u).end},messageId:sa,fix:r=>ut(r,t,"0",e)}})},meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:"unopinionated"},fixable:"code",messages:{[sa]:"Missing the digits argument."}}},"unicorn/template-indent":{create:e=>{let{sourceCode:t}=e,r={...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=new WeakSet,u=u=>{let a;if("TemplateLiteral"!==u.type||n.has(u))return;n.add(u);let i="__PLACEHOLDER__"+Math.random(),o=u.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(i),s=o.match(/\r?\n/);if(!s)return;let d=s[0],l=t.lines[t.getLoc(u).start.line-1].match(/^(\s*)\S/),c=l?l[1]:"";a="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):c.startsWith(" ")?" ":" ";let f=(function(e){let t=e.match(/^[ \t]*(?=\S)/gm);if(!t)return e;let r=1/0;for(let e of t)r=Math.min(r,e.length);return 0===r||r===1/0?e:e.replace(RegExp(`^[ \\t]{${r}}`,"gm"),"")})(o).replaceAll(RegExp(`^${d}|${d}[ ]*$`,"g"),""),p=d+function(e,t=1,r={}){let{indent:n=" ",includeEmptyLines:u=!1}=r;if("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(t<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if("string"!=typeof n)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);return 0===t?e:e.replace(u?/^/gm:/^(?!\s*$)/gm,n.repeat(t))}(f,1,{indent:c+a})+d+c;if(p!==o)return{node:u,messageId:si,fix:t=>p.split(i).map((r,n)=>ug(u.quasis[n],r,e,t))}};e.on("TemplateLiteral",e=>{if((e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}return!!(o8(e)||r.tags.length>0&&rM(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&r$(e.parent.callee,r.functions))})(e))return u(e)}),e.on(r.selectors,e=>u(e))},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:so,defaultOptions:[{tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"]}],messages:{[si]:"Templates should be properly indented."}}},"unicorn/no-single-promise-in-promise-methods":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{object:"Promise",methods:iW,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type&&1===t.arguments[0].elements.length&&t.arguments[0].elements[0]&&"SpreadElement"!==t.arguments[0].elements[0].type))return;let r=t.callee.property.name,n={node:t.arguments[0],messageId:iM,data:{method:r}},{sourceCode:u}=e;if("AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==r||rP(t.parent.parent)))return n.fix=r=>{let[n]=t.arguments[0].elements,u=ry(n,e);return rh(n,e)||"SequenceExpression"!==n.type&&"YieldExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&"AssignmentExpression"!==n.type&&"LogicalExpression"!==n.type&&"BinaryExpression"!==n.type||(u=`(${u})`),r.replaceText(t,u)},n;return"all"===r?n:(n.suggest=[{messageId:iU,fix:r=>{let[n]=t.arguments[0].elements,u=ry(n,e);return rh(n,e)||"Identifier"===n.type||"MemberExpression"===n.type||(u=`(${u})`),nI(e.sourceCode.getTokenBefore(t),e,u)&&(u=`;${u}`),r.replaceText(t,u)}},{messageId:iz,fix:function*(e){let r=t.callee.property;yield e.replaceText(r,"resolve");let[n]=t.arguments,a=u.getFirstToken(n),[i,o]=u.getLastTokens(n,2);yield e.remove(a),yield e.remove(o),tO(i)&&(yield e.remove(i))}}],n)})},meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[iM]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[iU]:"Use the value directly.",[iz]:"Switch to `Promise.resolve(…)`."}}},"unicorn/no-await-in-promise-methods":{create:e=>{e.on("CallExpression",function*(t){if(rj(t,{object:"Promise",methods:sl,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===t.arguments[0].type)for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:ss,data:{method:t.callee.property.name},suggest:[{messageId:sd,*fix(t){let n=e.sourceCode.getFirstToken(r);yield t.remove(n),yield ua(n,e,t)}}]})})},meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[ss]:"Promise in `Promise.{{method}}()` should not be awaited.",[sd]:"Remove `await`."}}},"unicorn/no-negation-in-equality-check":{create:e=>{e.on("BinaryExpression",t=>{let{operator:r,left:n}=t;if(!("BinaryExpression"===t.type&&sp.has(t.operator)&&sm(n)&&!sm(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:sc,suggest:[{messageId:sf,data:{operator:i},*fix(o){yield us(o,t,e);let s=u.getTokenAfter(a),{parent:d}=t;("ReturnStatement"===d.type||"ThrowStatement"===d.type)&&!rh(t,e)&&(nv(u.getFirstToken(d),s,e)||(yield uu(o,d,e))),yield o.remove(a),nI(u.getTokenBefore(a),e,s.value)&&(yield o.insertTextAfter(a,";"));let l=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield o.replaceText(l,i)}}]}})},meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:"unopinionated"},hasSuggestions:!0,messages:{[sc]:"Negated expression is not allowed in equality check.",[sf]:"Switch to '{{operator}}' check."}}},"unicorn/no-unnecessary-slice-end":{create(e){sg(e,{methods:["slice"],messageId:sy})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:"unopinionated"},fixable:"code",messages:{[sy]:"Passing `{{description}}` as the `end` argument is unnecessary."}}},"unicorn/no-lonely-if":{create:e=>{e.on("IfStatement",t=>{if(sk(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&sk(t.parent.parent)&&t.parent.parent.consequent===t.parent||sk(t.parent)&&t.parent.consequent===t))return{node:t,messageId:sw,fix:function(e,t){let{sourceCode:r}=t;return function*(n){let u=("BlockStatement"===e.parent.type?e.parent:e).parent,a={...u,...sI(u,r)},i={...e,...sI(e,r)};if(yield n.remove(i.ifToken),yield ua(i.ifToken,t,n),a.openingBraceToken){yield n.remove(a.openingBraceToken),yield ua(a.openingBraceToken,t,n),yield n.remove(a.closingBraceToken);let e=r.getTokenBefore(a.closingBraceToken,{includeComments:!0});yield ua(e,t,n)}for(let{test:e,openingParenthesisToken:r,closingParenthesisToken:u}of(yield n.insertTextBefore(a.openingParenthesisToken,"("),yield n.insertTextAfter(i.closingParenthesisToken,`)${"EmptyStatement"===i.consequent.type?"":" "}`),yield n.insertTextAfter(a.closingParenthesisToken," && "),[a,i]))(rh(e,t)||!sT(e))&&(yield n.remove(r),yield n.remove(u)),yield ua(u,t,n);if("BlockStatement"!==i.consequent.type){let e=r.getLastToken(i.consequent);if(tq(e)){let u=r.getTokenAfter(a);u&&nI(e,t,u.value)&&(yield n.insertTextBefore(u,";"))}}}}(t,e)}})},meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:"unopinionated"},fixable:"code",messages:{[sw]:"Unexpected `if` as the only statement in a `if` block without `else`."}}},"unicorn/no-magic-array-flat-depth":{create:e=>{e.on("CallExpression",t=>{if(!rj(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!rx(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=nn(t,e);if(!n.commentsExistBetween(u,a))return{node:r,messageId:s_}})},meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:"unopinionated"},messages:{[s_]:"Magic number as depth is not allowed."}}},"unicorn/no-negated-condition":{create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if("UnaryExpression"===r.type&&"!"===r.operator||"BinaryExpression"===r.type&&("!="===r.operator||"!=="===r.operator))return{node:r,messageId:sP,*fix(n){if(yield function*(e,t,r){let{sourceCode:n}=r,{test:u}=t;if("UnaryExpression"===u.type){let a=n.getFirstToken(u);"IfStatement"===t.type&&(yield ue(u.argument,e,r)),yield e.remove(a);return}let a=n.getTokenAfter(u.left,e=>"Punctuator"===e.type&&e.value===u.operator);yield e.replaceText(a,"="+a.value.slice(1))}(n,t,e),yield function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=rg(e,r),u=r.sourceCode.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});if(u.text===a.text)return;let{sourceCode:i}=r;yield e.replaceTextRange(i.getRange(u),a.text),yield e.replaceTextRange(i.getRange(a),u.text)}(n,t,e),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield us(n,t,e);let{sourceCode:u}=e,{parent:a}=t,[i,o]=u.getFirstTokens(r,2);"ReturnStatement"!==a.type&&"ThrowStatement"!==a.type||a.argument!==t||nv(i,o,e)||rh(t,e)||rh(r,e)?nI(u.getTokenBefore(t),e,o.value)&&(yield n.insertTextBefore(t,";")):yield uu(n,a,e)}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:"unopinionated"},fixable:"code",messages:{[sP]:"Unexpected negated condition."}}},"unicorn/no-object-as-default-parameter":{create:e=>{e.on("AssignmentPattern",e=>{if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&rR(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:sB,data:{parameter:t.name}}:{node:r,messageId:sR}})},meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:"unopinionated"},messages:{[sB]:"Do not use an object literal as default for parameter `{{parameter}}`.",[sR]:"Do not use an object literal as default."}}},"unicorn/prefer-negative-index":{create:e=>{e.on("CallExpression",t=>{if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(sj.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=sO(t.object),!sj.has(n))return;let{supportObjects:o}=sj.get(n),s=t.object.object;if(rI(s)||"slice"===n&&rb(s,"")||"prototype"===sO(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=sj.get(n),o=i.map(e=>(function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;if("BinaryExpression"===n&&"-"===u&&rx(i)&&i.value>0)return"MemberExpression"===a.type&&!a.computed&&!a.optional&&"Identifier"===a.property.type&&"length"===a.property.name&&nS(a.object,r)?a:e(a,r)})(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:sL,data:{method:n},*fix(t){for(let r of o)yield function(e,t,r){let[n,u]=rg(e,r);return t.removeRange([n,u+r.sourceCode.text.slice(u).match(/\S|$/).index])}(r,t,e)}}})},meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:"unopinionated"},fixable:"code",messages:{[sL]:"Prefer negative index over length minus index for `{{method}}`."}}},"unicorn/prefer-node-protocol":{create:e=>{e.on("Literal",t=>{if(!(("ImportDeclaration"===t.parent.type||"ExportNamedDeclaration"===t.parent.type||"ImportExpression"===t.parent.type||"TSImportType"===t.parent.type)&&t.parent.source===t||(rj(t.parent,{object:"process",method:"getBuiltinModule",argumentsLength:1,optionalCall:!1,optionalMember:!1})||rO(t.parent))&&t.parent.arguments[0]===t))return;let{value:r}=t;if(!("string"==typeof r&&!r.startsWith(sU)&&s$(r)&&s$(`${sU}${r}`)))return;let n=e.sourceCode.getRange(t)[0]+1;return{node:t,messageId:sM,data:{moduleName:r},fix:e=>e.insertTextAfterRange([n,n],sU)}})},meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:"unopinionated"},fixable:"code",messages:{[sM]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}},"unicorn/consistent-date-clone":{create:e=>{e.on("NewExpression",t=>{if(!rF(t,{name:"Date",argumentsLength:1}))return;let[r]=t.arguments;if(!rj(r,{method:"getTime",argumentsLength:0,optionalCall:!1,optionalMember:!1}))return;let{sourceCode:n}=e;return{node:r,loc:{start:n.getLoc(r.callee.property).start,end:n.getLoc(r).end},messageId:sz,fix:t=>uf(t,r,e)}})},meta:{type:"suggestion",docs:{description:"Prefer passing `Date` directly to the constructor when cloning.",recommended:"unopinionated"},fixable:"code",messages:{[sz]:"Unnecessary `.getTime()` call."}}},"unicorn/no-accessor-recursion":{create:e=>{let{sourceCode:t}=e;e.on("ThisExpression",e=>{let r=((e,t)=>{for(let r=e.getScope(t);r;r=r.upper){if("class"===r.type)return;if("function"===r.type&&"ArrowFunctionExpression"!==r.block.type)return r}})(t,e);if(!r)return;let n=r.block.parent;if(["Property","MethodDefinition"].includes(n?.type)&&!n.computed&&["set","get"].includes(n.kind)&&sq(n.key)&&("get"===n.kind&&(sZ(e,n)||"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"ObjectPattern"===e.parent.id.type&&e.parent.id.properties.some(e=>"Property"===e.type&&!e.computed&&sV(e.key,n.key)))||"set"===n.kind&&((e,t)=>{if(!sZ(e,t))return!1;let r=e.parent,{parent:n}=r;return("AssignmentExpression"===n.type||"AssignmentPattern"===n.type)&&n.left===r||"UpdateExpression"===n.type&&n.argument===r||"ArrayPattern"===n.type&&n.elements.includes(r)||"Property"===n.type&&n.value===r&&"ObjectPattern"===n.parent.type&&n.parent.properties.includes(r.parent)})(e,n)))return{node:e.parent,messageId:sW,data:{kind:n.kind}}})},meta:{type:"problem",docs:{description:"Disallow recursive access to `this` within getters and setters.",recommended:"unopinionated"},defaultOptions:[],messages:{[sW]:"Disallow recursive access to `this` within {{kind}}ters."}}},"unicorn/prefer-import-meta-properties":{create:function(e){let{sourceCode:t}=e;e.on("MetaProperty",function*(e){if("MetaProperty"!==e.type||"import"!==e.meta.name||"meta"!==e.property.name)return;let r=e.parent;if(!rL(r,{properties:["url","filename"],computed:!1,optional:!1}))return;let n=r.property.name;if("url"===n){if(sJ(r.parent,t)&&r.parent.arguments[0]===r)return void(yield a(r.parent,{reportFilenameNode:!0}));if(rF(r.parent,{name:"URL",minimumArguments:1,maximumArguments:2})){var u;let e=r.parent,n=e.parent;if(1===e.arguments.length&&e.arguments[0]===r&&sJ(n,t)&&n.arguments[0]===e)return void(yield a(n,{reportFilenameNode:!0}));2===e.arguments.length&&(u=e.arguments[0],u?.type==="Literal"&&("."===u.value||"./"===u.value))&&e.arguments[1]===r&&sJ(n,t)&&n.arguments[0]===e&&(yield i(n,"dirname"))}return}function*a(e,{reportFilenameNode:r=!1}={}){let{parent:n}=e;if(sX(n,t)&&n.arguments[0]===e)return void(yield i(n,"dirname"));if(r&&(yield i(e,"filename")),"VariableDeclarator"!==n.type||n.init!==e||"Identifier"!==n.id.type||"VariableDeclaration"!==n.parent.type||"const"!==n.parent.kind)return;let u=tR(t.getScope(n.id),n.id);if(u)for(let e of u.references){if(!e.isReadOnly())continue;let{parent:r}=e.identifier;sX(r,t)&&r.arguments[0]===e.identifier&&(yield i(r,"dirname"))}}function i(e,t){return{node:e,messageId:"dirname"===t?sG:sH,fix:r=>r.replaceText(e,`import.meta.${t}`)}}"filename"===n&&(yield a(r))})},meta:{type:"suggestion",docs:{description:"Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.",recommended:!1},fixable:"code",messages:{[sG]:"Do not construct dirname.",[sH]:"Do not construct filename using `fileURLToPath()`."}}},"unicorn/no-unnecessary-array-flat-depth":{create:e=>{e.on("CallExpression",t=>{if(!(rj(t,{method:"flat",argumentsLength:1,optionalCall:!1})&&rb(t.arguments[0],1)))return;let[r]=t.arguments;return{node:r,messageId:sY,fix:t=>ur(t,r,e)}})},meta:{type:"suggestion",docs:{description:"Disallow using `1` as the `depth` argument of `Array#flat()`.",recommended:"unopinionated"},fixable:"code",messages:{[sY]:"Passing `1` as the `depth` argument is unnecessary."}}},"unicorn/no-unnecessary-array-splice-count":{create(e){sg(e,{methods:["splice","toSpliced"],messageId:sQ})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.",recommended:"unopinionated"},fixable:"code",messages:{[sQ]:"Passing `{{description}}` as the `{{argumentName}}` argument is unnecessary."}}},"unicorn/no-useless-error-capture-stack-trace":{create:e=>{let t=[],r=[];e.on(["ClassDeclaration","ClassExpression"],e=>{t.push(e),r.push(e)}),e.onExit(["ClassDeclaration","ClassExpression"],()=>{t.pop(),r.pop()}),e.on(["FunctionDeclaration","FunctionExpression"],e=>{r.push(e)}),e.onExit(["FunctionDeclaration","FunctionExpression"],()=>{r.pop()}),e.on("CallExpression",n=>{let u,a=t.at(-1);if(!(a?.superClass&&"Identifier"===a.superClass.type&&ie.includes(a.superClass.name)&&e.sourceCode.isGlobalReference(a.superClass)&&(u=r.at(-1),u&&"MethodDefinition"===u.parent.type&&"constructor"===u.parent.kind&&u.parent.value===u&&a.body.body.includes(u.parent))&&rj(n,{object:"Error",method:"captureStackTrace",argumentsLength:2,optionalMember:!1})&&e.sourceCode.isGlobalReference(n.callee.object)))return;let[i,o]=n.arguments;if("ThisExpression"!==i.type||!((e,t,r)=>{if("MetaProperty"===e.type&&"Identifier"===e.meta.type&&"new"===e.meta.name&&"Identifier"===e.property.type&&"target"===e.property.name||rL(e,{property:"constructor",computed:!1,optional:!1})&&"ThisExpression"===e.object.type)return!0;if("Identifier"!==e.type||!t.id)return!1;let n=tR(r.sourceCode.getScope(e),e);return n&&1===n.defs.length&&"ClassName"===n.defs[0].type&&n.defs[0].node===t})(o,a,e))return;let s={node:n,messageId:s0},d="ChainExpression"===n.parent?n.parent.parent:n.parent;return"ExpressionStatement"===d.type&&"BlockStatement"===d.parent.type&&(s.fix=e=>e.remove(d)),s})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary `Error.captureStackTrace(…)`.",recommended:"unopinionated"},fixable:"code",messages:{[s0]:"Unnecessary `Error.captureStackTrace(…)` call."}}},"unicorn/prefer-class-fields":{create:e=>{let{sourceCode:t}=e;e.on("ClassBody",r=>{let n=r.body.find(e=>"constructor"===e.kind&&!e.computed&&!e.static&&"MethodDefinition"===e.type&&"FunctionExpression"===e.value.type);if(!n)return;let u=n.value.body.body.find(e=>"EmptyStatement"!==e.type);if(!(u?.type==="ExpressionStatement"&&"AssignmentExpression"===u.expression.type&&"="===u.expression.operator&&"MemberExpression"===u.expression.left.type&&"ThisExpression"===u.expression.left.object.type&&!u.expression.left.computed&&["Identifier","PrivateIdentifier"].includes(u.expression.left.property.type)&&"Literal"===u.expression.right.type))return;let a=u.expression.left.property.name,i=u.expression.right.raw,o=u.expression.left.property.type,s=r.body.find(e=>"PropertyDefinition"===e.type&&!e.computed&&!e.static&&e.key.type===o&&e.key.name===a),d={node:u,messageId:s1};function*l(o){if(yield((e,t,r)=>{let{line:n}=t.getLoc(e).start,u=t.getText(e);return t.lines[n-1].trim()===u?r.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):r.remove(e)})(u,t,o),s){if(s.value)return void(yield o.replaceText(s.value,i));let e=` = ${i}`,r=t.getLastToken(s);return tN(r)?void(yield o.insertTextBefore(r,e)):void(yield o.insertTextAfter(s,`${e};`))}let d=t.getLastToken(r),l=na(n,e),c=`${l}${a} = ${i};
|
|
21
18
|
`;"\n"!==t.getText()[t.getRange(d)[0]-1]&&(c=`
|
|
22
|
-
${c}`);let f=r.body.at(-1);"PropertyDefinition"===f.type&&";"!==t.getLastToken(f).value&&(c=`;${c}`),yield o.insertTextBefore(d,c)}return s?.value?d.suggest=[{messageId:sN,fix:l}]:d.fix=l,d})},meta:{type:"suggestion",docs:{description:"Prefer class field declarations over `this` assignments in constructors.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[sO]:"Prefer class field declaration over `this` assignment in constructor for static values.",[sN]:"Encountered same-named class field declaration and `this` assignment in constructor. Replace the class field declaration with the value from `this` assignment."}}},"unicorn/prefer-bigint-literals":{create:e=>{e.on("CallExpression",t=>{if(!rA(t,{name:"BigInt",argumentsLength:1,optional:!1}))return;let[r]=t.arguments,u=function(e){let t,r;if(rb(e)){let t,r=e.raw.slice(1,-1);try{t=BigInt(r)}catch{return}let u=0n===t?"0":r.trim();return u.startsWith("+")&&(u=u.slice(1).trim()),{shouldUseSuggestion:r.includes("+"),text:`${u}n`,bigint:t}}let u=!1,n=!1;for(;"UnaryExpression"===e.type&&e.prefix;)if("+"===e.operator)u=!0,e=e.argument;else{if("-"!==e.operator)return;n=!n,e=e.argument}let{value:a,raw:i}=e;if(Number.isInteger(a)){try{t=BigInt(a)}catch{return}return(e=>{let t=e.raw.replaceAll("_","").toLowerCase();if(t.includes("."))return!1;let{value:r}=e;for(let{prefix:e,base:u}of[{prefix:"0b",base:2},{prefix:"0o",base:8},{prefix:"0x",base:16}])if(t.startsWith(e))return t.slice(2)===r.toString(u);return!t.includes("e")&&t===String(r)})(e)?r=`${i}n`:(r=`${t}n`,u=!0),n&&0n!==t&&(r=`-${r}`,t=-t),{shouldUseSuggestion:u,text:r,bigint:t}}}(r);if(!u)return;let n={node:t,messageId:s$},{shouldUseSuggestion:a,text:i,bigint:o}=u,s=r=>{let u=i;return!ry(t,e)&&o<0n&&(u=`(${u})`,uS(e.sourceCode.getTokenBefore(t),e,u)&&(u=`;${u}`)),r.replaceText(t,u)};return a||e.sourceCode.getCommentsInside(t).length>0?n.suggest=[{messageId:sM,data:{replacement:i.length<20?`\`${i}\``:"a bigint literal"},fix:s}]:n.fix=s,n})},meta:{type:"suggestion",docs:{description:"Prefer `BigInt` literals over the constructor.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[s$]:"Prefer using bigint literal over `BigInt(…)`.",[sM]:"Replace with {{replacement}}."}}},"unicorn/prefer-classlist-toggle":{create:e=>{let{sourceCode:t}=e;e.on(["IfStatement","ConditionalExpression"],r=>{let u=[r.consequent,r.alternate].map(e=>{if(e)return"BlockStatement"===e.type&&1===e.body.length&&(e=e.body[0]),"ExpressionStatement"===e.type&&(e=e.expression),"ChainExpression"===e.type&&(e=e.expression),e});if(!u.every(e=>sZ(e,["add","remove"])))return;let[n,a]=u;if(n.callee.property.name!==a.callee.property.name&&sG(n,a))return sW(r,function*(u){let i=rg(n.callee.object.object,e),o=rg(n.arguments[0],e),s="ConditionalExpression"===r.type,d="remove"===n.callee.property.name,l=r.test,c=sH(l,d,n),f=c?"":sV(l,e,d),p=n.callee.object.optional||a.callee.object.optional||c?.callee.object.optional,m=`${i}${p?"?":""}.classList.toggle(${o}${f?`, ${f}`:""})`;s||(m=`${m};`),uS(t.getTokenBefore(r),e,m)&&(m=`;${m}`),yield u.replaceText(r,m),s&&(yield nr(u,r,e))})}),e.on("ConditionalExpression",t=>{let r=[t.consequent,t.alternate];if(!(r.every(e=>rb(e)&&("add"===e.value||"remove"===e.value))&&r[0].value!==r[1].value&&"MemberExpression"===t.parent.type&&t.parent.computed&&!t.parent.optional&&t.parent.property===t&&sq(t.parent.object)&&rA(t.parent.parent,{optional:!1,argumentsLength:1})&&t.parent.parent.callee===t.parent))return;let u=t.parent,n=u.parent;return sW(n,function*(r){let a="remove"===t.consequent.value,i=t.test,o=sH(i,a,n)?"":sV(i,e,a);o&&(yield r.insertTextAfter(n.arguments[0],`, ${o}`)),yield nn(r,u,e,".toggle")},t)})},meta:{type:"suggestion",docs:{description:"Prefer using `Element#classList.toggle()` to toggle class names.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[sz]:"Prefer using `Element#classList.toggle()` to toggle class names.",[sU]:"Replace with `Element#classList.toggle()`."}}},"unicorn/require-module-attributes":{create:e=>{let{sourceCode:t}=e;e.on(["ImportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"],e=>{let{source:r,attributes:u}=e;if(!r||Array.isArray(u)&&u.length>0)return;let n=t.getTokenAfter(r);if(n?.type!=="Keyword"||"with"!==n.value)return;let a=t.getTokenAfter(n),i=t.getTokenAfter(a);return{node:e,loc:{start:t.getLoc(a).start,end:t.getLoc(i).end},messageId:sJ,data:{type:"ImportDeclaration"===e.type?"import statement":"export statement"},fix:e=>[n,i,a].map(t=>e.remove(t))}}),e.on("ImportExpression",r=>{let{options:u}=r;if(u?.type!=="ObjectExpression")return;let n=u.properties.find(e=>"Property"===e.type&&!e.method&&!e.shorthand&&!e.computed&&"init"===e.kind&&("Identifier"===e.key.type&&"with"===e.key.name||"Literal"===e.key.type&&"with"===e.key.value)&&rT(e.value)),a=0===u.properties.length||n&&1===u.properties.length?u:n;if(!a)return;let i="Property"===a.type;return{node:n?.value??a,messageId:sJ,data:{type:"import expression"},fix:r=>i?function*(e,t,r){let{sourceCode:u}=r;for(let r of u.getTokens(t))yield e.remove(r);let n=u.getTokenAfter(t);if(tO(n))yield e.remove(n);else{let{properties:r}=t.parent;if(r.length>1&&r.at(-1)===t){let r=u.getTokenBefore(t);yield e.remove(r)}}}(r,a,e):[t.getTokenBefore(a,tO),...t.getTokens(a),...rp(a,e)].map(e=>r.remove(e))}})},meta:{type:"suggestion",docs:{description:"Require non-empty module attributes for imports and exports",recommended:"unopinionated"},fixable:"code",messages:{[sJ]:"{{type}} with empty attribute list is not allowed."}}},"unicorn/no-immediate-mutation":{create:e=>{for(let t of s6)e.on(["VariableDeclarator","AssignmentExpression"],r=>(function(e,t,{testValue:r,getProblematicNode:u,getProblem:n,getFix:a}){let i,o="AssignmentExpression"===t.type,[s,d]=(o?["left","right"]:["id","init"]).map(e=>t[e]);if(!("Identifier"===s.type&&r(d)))return;let l=t.parent;if(!(o&&"="===t.operator&&"ExpressionStatement"===l.type&&l.expression===t||!o&&"VariableDeclaration"===(i=t.parent).type&&i.declarations.at(-1)===t))return;let c=uM(l,e,1);if(c?.type!=="ExpressionStatement")return;let f="VariableDeclarator"===t.type?e.sourceCode.getDeclaredVariables(t).find(e=>1===e.defs.length&&e.defs[0].name===t.id):tR(e.sourceCode.getScope(t),t.left.name);if(!f)return;let p={context:e,variable:f,variableNode:s,valueNode:d,statement:l,nextExpressionStatement:c,assignType:o?"assignment":"declaration",getFix:a},m=u(p);if(m)return n(m,p)})(e,r,t))},meta:{type:"suggestion",docs:{description:"Disallow immediate mutation after variable assignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[sK]:"Immediate mutation on {{objectType}} is not allowed.",[sX]:"{{operation}} the elements to the {{assignType}}.",[sY]:"Move this property to the {{assignType}}.",[sQ]:"{{description}} the {{assignType}}.",[s0]:"Move the element to the {{assignType}}.",[s1]:"Move the entry to the {{assignType}}."}}},"unicorn/no-useless-collection-argument":{create:e=>{e.on("NewExpression",t=>{var r;let u;if(!rC(t,{names:["Set","Map","WeakSet","WeakMap"],argumentsLength:1}))return;let[n]=t.arguments,a="LogicalExpression"===n.type&&"??"===n.operator,i=a?n.right:n,o=rk(r=i)?"empty array":rh(r,"")?"empty string":rh(r,null)?"`null`":r$(r)?"`undefined`":void 0;if(!o)return;let s=!1;if(a)u=function*(t){let{sourceCode:r}=e,u=i.parent,{left:n}=u,a=ry(n,e),[,o]=a?rm(n,e):r.getRange(n),[,s]=r.getRange(u);yield t.removeRange([o,s]),(a||"SequenceExpression"!==n.type)&&(yield u4(u,t,e))};else e.sourceCode.getCommentsInside(i).length>0&&(s=!0),u=t=>u8(t,i,e);let d={node:i,messageId:s9,data:{description:o}};return s?d.suggest=[{messageId:s7,fix:u}]:d.fix=u,d})},meta:{type:"suggestion",docs:{description:"Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[s9]:"The {{description}} is useless.",[s7]:"Remove the {{description}}"}}},"unicorn/prefer-response-static-json":{create:e=>{e.on("NewExpression",t=>{if(!rC(t,{name:"Response",minimumArguments:1}))return;let[r]=t.arguments;if(rR(r,{object:"JSON",method:"stringify",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return{node:r.callee,messageId:de,*fix(u){yield u.insertTextAfter(t.callee,".json"),yield ne(t,e,u);let[n]=r.arguments,a=rm(r,e),i=rm(n,e);yield u.removeRange([a[0],i[0]]),yield u.removeRange([i[1],a[1]]),!ry(t,e)&&ry(t.callee,e)&&uS(e.sourceCode.getTokenBefore(t),e,"(")&&(yield u.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Prefer `Response.json()` over `new Response(JSON.stringify())`.",recommended:"unopinionated"},fixable:"code",messages:{[de]:"Prefer using `Response.json(…)` over `JSON.stringify()`."}}},"unicorn/filename-case":{create:e=>{let t=e.options[0]||{},r=function(e){if(e.case)return[e.case];if(e.cases){let t=Object.keys(e.cases).filter(t=>e.cases[t]);return t.length>0?t:["kebabCase"]}return["kebabCase"]}(t),u=(t.ignore||[]).map(e=>eX.isRegExp(e)?e:RegExp(e,"u")),n=!1!==t.multipleFileExtensions,a=r.map(e=>dD[e].fn),i=e.physicalFilename;"<input>"!==i&&"<text>"!==i&&e.on("Program",()=>{let{basename:e,filename:t,middle:o,extension:s}=function(e,{multipleFileExtensions:t}){let r=eY.extname(e),u=eY.basename(e,r),n={basename:u+r,filename:u,middle:"",extension:r};if(t){let[e]=u.split(".");Object.assign(n,{filename:e,middle:u.slice(e.length)})}return n}(i,{multipleFileExtensions:n});if(db.has(e)||u.some(t=>t.test(e)))return;let{leading:d,words:l}=function(e){let t,{leading:r="",tailing:u=e}=(dx.exec(e)||{groups:{}}).groups,n=[];for(let e of u){let r=dh(e);t?.ignored===r?t.word+=e:(t={word:e,ignored:r},n.push(t))}return{leading:r,words:n}}(t);if(l.filter(({ignored:e})=>!e).every(({word:e})=>a.some(t=>t(e)===e)))return s!==s.toLowerCase()?{loc:{column:0,line:1},messageId:dy,data:{filename:t+o+s.toLowerCase(),extension:s}}:void 0;let c=function(e,t,{leading:r,trailing:u}){let{samples:n}=function(e,t=1/0){let r=e.reduce((e,{length:t})=>e*t,1),u=Array.from({length:Math.min(r,t)},(t,r)=>{let u=r,n=[];for(let t=e.length-1;t>=0;t--){let r=e[t],{length:a}=r,i=u%a;u=(u-i)/a,n.unshift(r[i])}return n});return{total:r,samples:u}}(e.map(({word:e,ignored:r})=>r?[e]:t.map(t=>t(e))));return[...new Set(n.map(e=>`${r}${e.join("")}${u}`))]}(l,a,{leading:d,trailing:o+s.toLowerCase()});return{loc:{column:0,line:1},messageId:dg,data:{chosenCases:dv(r.map(e=>dD[e].name)),renamedFilenames:dv(c.map(e=>`\`${e}\``))}}})},meta:{type:"suggestion",docs:{description:"Enforce a case style for filenames.",recommended:!0},schema:dE,defaultOptions:[],messages:{[dg]:"Filename is not in {{chosenCases}}. Rename it to {{renamedFilenames}}.",[dy]:"File extension `{{extension}}` is not in lowercase. Rename it to `{{filename}}`."}}}}).map(([e,t])=>{let r;return[e,{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:(r=eY.basename(e,".js"),`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/${r}.md`)}},create:uB(t.create)}]})))};module.exports=dA;
|
|
19
|
+
${c}`);let f=r.body.at(-1);"PropertyDefinition"===f.type&&";"!==t.getLastToken(f).value&&(c=`;${c}`),yield o.insertTextBefore(d,c)}return s?.value?d.suggest=[{messageId:s3,fix:l}]:d.fix=l,d})},meta:{type:"suggestion",docs:{description:"Prefer class field declarations over `this` assignments in constructors.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[s1]:"Prefer class field declaration over `this` assignment in constructor for static values.",[s3]:"Encountered same-named class field declaration and `this` assignment in constructor. Replace the class field declaration with the value from `this` assignment."}}},"unicorn/prefer-bigint-literals":{create:e=>{e.on("CallExpression",t=>{if(!rS(t,{name:"BigInt",argumentsLength:1,optional:!1}))return;let[r]=t.arguments,n=function(e){let t,r;if(rD(e)){let t,r=e.raw.slice(1,-1);try{t=BigInt(r)}catch{return}let n=0n===t?"0":r.trim();return n.startsWith("+")&&(n=n.slice(1).trim()),{shouldUseSuggestion:r.includes("+"),text:`${n}n`,bigint:t}}let n=!1,u=!1;for(;"UnaryExpression"===e.type&&e.prefix;)if("+"===e.operator)n=!0,e=e.argument;else{if("-"!==e.operator)return;u=!u,e=e.argument}let{value:a,raw:i}=e;if(Number.isInteger(a)){try{t=BigInt(a)}catch{return}return(e=>{let t=e.raw.replaceAll("_","").toLowerCase();if(t.includes("."))return!1;let{value:r}=e;for(let{prefix:e,base:n}of[{prefix:"0b",base:2},{prefix:"0o",base:8},{prefix:"0x",base:16}])if(t.startsWith(e))return t.slice(2)===r.toString(n);return!t.includes("e")&&t===String(r)})(e)?r=`${i}n`:(r=`${t}n`,n=!0),u&&0n!==t&&(r=`-${r}`,t=-t),{shouldUseSuggestion:n,text:r,bigint:t}}}(r);if(!n)return;let u={node:t,messageId:s2},{shouldUseSuggestion:a,text:i,bigint:o}=n,s=r=>{let n=i;return!rh(t,e)&&o<0n&&(n=`(${n})`,nI(e.sourceCode.getTokenBefore(t),e,n)&&(n=`;${n}`)),r.replaceText(t,n)};return a||e.sourceCode.getCommentsInside(t).length>0?u.suggest=[{messageId:s4,data:{replacement:i.length<20?`\`${i}\``:"a bigint literal"},fix:s}]:u.fix=s,u})},meta:{type:"suggestion",docs:{description:"Prefer `BigInt` literals over the constructor.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[s2]:"Prefer using bigint literal over `BigInt(…)`.",[s4]:"Replace with {{replacement}}."}}},"unicorn/prefer-classlist-toggle":{create:e=>{let{sourceCode:t}=e;e.on(["IfStatement","ConditionalExpression"],r=>{let n=[r.consequent,r.alternate].map(e=>{if(e)return"BlockStatement"===e.type&&1===e.body.length&&(e=e.body[0]),"ExpressionStatement"===e.type&&(e=e.expression),"ChainExpression"===e.type&&(e=e.expression),e});if(!n.every(e=>de(e,["add","remove"])))return;let[u,a]=n;if(u.callee.property.name!==a.callee.property.name&&dt(u,a))return s9(r,function*(n){let i=ry(u.callee.object.object,e),o=ry(u.arguments[0],e),s="ConditionalExpression"===r.type,d="remove"===u.callee.property.name,l=r.test,c=dr(l,d,u),f=c?"":s7(l,e,d),p=u.callee.object.optional||a.callee.object.optional||c?.callee.object.optional,m=`${i}${p?"?":""}.classList.toggle(${o}${f?`, ${f}`:""})`;s||(m=`${m};`),nI(t.getTokenBefore(r),e,m)&&(m=`;${m}`),yield n.replaceText(r,m),s&&(yield us(n,r,e))})}),e.on("ConditionalExpression",t=>{let r=[t.consequent,t.alternate];if(!(r.every(e=>rD(e)&&("add"===e.value||"remove"===e.value))&&r[0].value!==r[1].value&&"MemberExpression"===t.parent.type&&t.parent.computed&&!t.parent.optional&&t.parent.property===t&&s6(t.parent.object)&&rS(t.parent.parent,{optional:!1,argumentsLength:1})&&t.parent.parent.callee===t.parent))return;let n=t.parent,u=n.parent;return s9(u,function*(r){let a="remove"===t.consequent.value,i=t.test,o=dr(i,a,u)?"":s7(i,e,a);o&&(yield r.insertTextAfter(u.arguments[0],`, ${o}`)),yield ul(r,n,e,".toggle")},t)})},meta:{type:"suggestion",docs:{description:"Prefer using `Element#classList.toggle()` to toggle class names.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[s5]:"Prefer using `Element#classList.toggle()` to toggle class names.",[s8]:"Replace with `Element#classList.toggle()`."}}},"unicorn/require-module-attributes":{create:e=>{let{sourceCode:t}=e;e.on(["ImportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"],e=>{let{source:r,attributes:n}=e;if(!r||Array.isArray(n)&&n.length>0)return;let u=t.getTokenAfter(r);if(u?.type!=="Keyword"||"with"!==u.value)return;let a=t.getTokenAfter(u),i=t.getTokenAfter(a);return{node:e,loc:{start:t.getLoc(a).start,end:t.getLoc(i).end},messageId:dn,data:{type:"ImportDeclaration"===e.type?"import statement":"export statement"},fix:e=>[u,i,a].map(t=>e.remove(t))}}),e.on("ImportExpression",r=>{let{options:n}=r;if(n?.type!=="ObjectExpression")return;let u=n.properties.find(e=>"Property"===e.type&&!e.method&&!e.shorthand&&!e.computed&&"init"===e.kind&&("Identifier"===e.key.type&&"with"===e.key.name||"Literal"===e.key.type&&"with"===e.key.value)&&r_(e.value)),a=0===n.properties.length||u&&1===n.properties.length?n:u;if(!a)return;let i="Property"===a.type;return{node:u?.value??a,messageId:dn,data:{type:"import expression"},fix:r=>i?function*(e,t,r){let{sourceCode:n}=r;for(let r of n.getTokens(t))yield e.remove(r);let u=n.getTokenAfter(t);if(tO(u))yield e.remove(u);else{let{properties:r}=t.parent;if(r.length>1&&r.at(-1)===t){let r=n.getTokenBefore(t);yield e.remove(r)}}}(r,a,e):[t.getTokenBefore(a,tO),...t.getTokens(a),...rm(a,e)].map(e=>r.remove(e))}})},meta:{type:"suggestion",docs:{description:"Require non-empty module attributes for imports and exports",recommended:"unopinionated"},fixable:"code",messages:{[dn]:"{{type}} with empty attribute list is not allowed."}}},"unicorn/no-immediate-mutation":{create:e=>{for(let t of dy)e.on(["VariableDeclarator","AssignmentExpression"],r=>(function(e,t,{testValue:r,getProblematicNode:n,getProblem:u,getFix:a}){let i,o="AssignmentExpression"===t.type,[s,d]=(o?["left","right"]:["id","init"]).map(e=>t[e]);if(!("Identifier"===s.type&&r(d)))return;let l=t.parent;if(!(o&&"="===t.operator&&"ExpressionStatement"===l.type&&l.expression===t||!o&&"VariableDeclaration"===(i=t.parent).type&&i.declarations.at(-1)===t))return;let c=nZ(l,e,1);if(c?.type!=="ExpressionStatement")return;let f="VariableDeclarator"===t.type?e.sourceCode.getDeclaredVariables(t).find(e=>1===e.defs.length&&e.defs[0].name===t.id):tR(e.sourceCode.getScope(t),t.left.name);if(!f)return;let p={context:e,variable:f,variableNode:s,valueNode:d,statement:l,nextExpressionStatement:c,assignType:o?"assignment":"declaration",getFix:a},m=n(p);if(m)return u(m,p)})(e,r,t))},meta:{type:"suggestion",docs:{description:"Disallow immediate mutation after variable assignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[du]:"Immediate mutation on {{objectType}} is not allowed.",[da]:"{{operation}} the elements to the {{assignType}}.",[di]:"Move this property to the {{assignType}}.",[ds]:"{{description}} the {{assignType}}.",[dd]:"Move the element to the {{assignType}}.",[dl]:"Move the entry to the {{assignType}}."}}},"unicorn/no-useless-collection-argument":{create:e=>{e.on("NewExpression",t=>{var r;let n;if(!rF(t,{names:["Set","Map","WeakSet","WeakMap"],argumentsLength:1}))return;let[u]=t.arguments,a="LogicalExpression"===u.type&&"??"===u.operator,i=a?u.right:u,o=rI(r=i)?"empty array":rb(r,"")?"empty string":rE(r)?"`null`":rU(r)?"`undefined`":void 0;if(!o)return;let s=!1;if(a)n=function*(t){let{sourceCode:r}=e,n=i.parent,{left:u}=n,a=rh(u,e),[,o]=a?rg(u,e):r.getRange(u),[,s]=r.getRange(n);yield t.removeRange([o,s]),(a||"SequenceExpression"!==u.type)&&(yield ue(n,t,e))};else e.sourceCode.getCommentsInside(i).length>0&&(s=!0),n=t=>ur(t,i,e);let d={node:i,messageId:dh,data:{description:o}};return s?d.suggest=[{messageId:db,fix:n}]:d.fix=n,d})},meta:{type:"suggestion",docs:{description:"Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[dh]:"The {{description}} is useless.",[db]:"Remove the {{description}}"}}},"unicorn/prefer-response-static-json":{create:e=>{e.on("NewExpression",t=>{if(!rF(t,{name:"Response",minimumArguments:1}))return;let[r]=t.arguments;if(rj(r,{object:"JSON",method:"stringify",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return{node:r.callee,messageId:dD,*fix(n){yield n.insertTextAfter(t.callee,".json"),yield ui(t,e,n);let[u]=r.arguments,a=rg(r,e),i=rg(u,e);yield n.removeRange([a[0],i[0]]),yield n.removeRange([i[1],a[1]]),!rh(t,e)&&rh(t.callee,e)&&nI(e.sourceCode.getTokenBefore(t),e,"(")&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Prefer `Response.json()` over `new Response(JSON.stringify())`.",recommended:"unopinionated"},fixable:"code",messages:{[dD]:"Prefer using `Response.json(…)` over `JSON.stringify()`."}}},"unicorn/filename-case":{create:e=>{let t=e.options[0]||{},r=function(e){if(e.case)return[e.case];if(e.cases){let t=Object.keys(e.cases).filter(t=>e.cases[t]);return t.length>0?t:["kebabCase"]}return["kebabCase"]}(t),n=(t.ignore||[]).map(e=>eX.isRegExp(e)?e:RegExp(e,"u")),u=!1!==t.multipleFileExtensions,a=r.map(e=>dO[e].fn),i=e.physicalFilename;"<input>"!==i&&"<text>"!==i&&e.on("Program",()=>{let{basename:e,filename:t,middle:o,extension:s}=function(e,{multipleFileExtensions:t}){let r=eY.extname(e),n=eY.basename(e,r),u={basename:n+r,filename:n,middle:"",extension:r};if(t){let[e]=n.split(".");Object.assign(u,{filename:e,middle:n.slice(e.length)})}return u}(i,{multipleFileExtensions:u});if(dj.has(e)||n.some(t=>t.test(e)))return;let{leading:d,words:l}=function(e){let t,{leading:r="",tailing:n=e}=(dN.exec(e)||{groups:{}}).groups,u=[];for(let e of n){let r=dL(e);t?.ignored===r?t.word+=e:(t={word:e,ignored:r},u.push(t))}return{leading:r,words:u}}(t);if(l.filter(({ignored:e})=>!e).every(({word:e})=>a.some(t=>t(e)===e)))return s!==s.toLowerCase()?{loc:{column:0,line:1},messageId:dR,data:{filename:t+o+s.toLowerCase(),extension:s}}:void 0;let c=function(e,t,{leading:r,trailing:n}){let{samples:u}=function(e,t=1/0){let r=e.reduce((e,{length:t})=>e*t,1),n=Array.from({length:Math.min(r,t)},(t,r)=>{let n=r,u=[];for(let t=e.length-1;t>=0;t--){let r=e[t],{length:a}=r,i=n%a;n=(n-i)/a,u.unshift(r[i])}return u});return{total:r,samples:n}}(e.map(({word:e,ignored:r})=>r?[e]:t.map(t=>t(e))));return[...new Set(u.map(e=>`${r}${e.join("")}${n}`))]}(l,a,{leading:d,trailing:o+s.toLowerCase()});return{loc:{column:0,line:1},messageId:dB,data:{chosenCases:d$(r.map(e=>dO[e].name)),renamedFilenames:d$(c.map(e=>`\`${e}\``))}}})},meta:{type:"suggestion",docs:{description:"Enforce a case style for filenames.",recommended:!0},schema:dM,defaultOptions:[],messages:{[dB]:"Filename is not in {{chosenCases}}. Rename it to {{renamedFilenames}}.",[dR]:"File extension `{{extension}}` is not in lowercase. Rename it to `{{filename}}`."}}},"unicorn/consistent-template-literal-escape":{create:e=>{e.on("TemplateElement",t=>{if(rM(t.parent))return;let{raw:r}=t.value,n=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*)\\?\$\\{/g,String.raw`\${`);if(r!==n)return{node:t,messageId:dU,fix:r=>ug(t,n,e,r)}})},meta:{type:"suggestion",docs:{description:"Enforce consistent style for escaping `${` in template literals.",recommended:!0},fixable:"code",messages:{[dU]:"Use `\\${` instead of `$\\{` to escape in template literals."}}},"unicorn/no-useless-iterator-to-array":{create:e=>{e.on("NewExpression",t=>{if(!(rF(t,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||rF(t,{names:ii,minimumArguments:1}))||!dX(t.arguments[0]))return;let r=t.arguments[0];return{node:r.callee.property,messageId:dz,data:{description:`new ${t.callee.name}(…)`},fix:t=>uf(t,r,e)}}),e.on("CallExpression",t=>{if((rj(t,{objects:["Array",...ii],method:"from",minimumArguments:1,optionalCall:!1,optionalMember:!1})||rj(t,{object:"Object",method:"fromEntries",minimumArguments:1,optionalCall:!1,optionalMember:!1}))&&dX(t.arguments[0])){let r=t.arguments[0];return{node:r.callee.property,messageId:dz,data:{description:`${t.callee.object.name}.${t.callee.property.name}(…)`},fix:t=>uf(t,r,e)}}if(rj(t,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&dX(t.arguments[0])){let r=t.arguments[0];return{node:r.callee.property,messageId:dz,data:{description:`${t.callee.object.name}.${t.callee.property.name}(…)`},suggest:[{messageId:dG,fix:t=>uf(t,r,e)}]}}if((rj(t,{methods:dK,maximumArguments:1,optionalCall:!1,optionalMember:!1})||rj(t,{method:dJ,argumentsLength:2,optionalCall:!1,optionalMember:!1}))&&dX(t.callee.object)){let r=t.arguments[0],n=t.callee.property.name===dJ;if(r&&("ArrowFunctionExpression"===r.type||"FunctionExpression"===r.type)&&r.params.length>(n?3:2))return;let u=t.callee.object;return{node:u.callee.property,messageId:dZ,data:{method:t.callee.property.name},suggest:[{messageId:dH,data:{method:t.callee.property.name},fix:t=>uf(t,u,e)}]}}}),e.on("ForOfStatement",t=>{if(dX(t.right))return{node:t.right.callee.property,messageId:dW,fix:r=>uf(r,t.right,e)}}),e.on("YieldExpression",t=>{if(t.delegate&&dX(t.argument))return{node:t.argument.callee.property,messageId:dq,fix:r=>uf(r,t.argument,e)}}),e.on("SpreadElement",t=>{if(!dX(t.argument))return;let{parent:r}=t;if("ArrayExpression"===r.type||"CallExpression"===r.type||"NewExpression"===r.type)return{node:t.argument.callee.property,messageId:dV,fix:r=>uf(r,t.argument,e)}})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary `.toArray()` on iterators.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[dz]:"`{{description}}` accepts an iterable, `.toArray()` is unnecessary.",[dW]:"`for…of` can iterate over an iterable, `.toArray()` is unnecessary.",[dq]:"`yield*` can delegate to an iterable, `.toArray()` is unnecessary.",[dV]:"Spread works on iterables, `.toArray()` is unnecessary.",[dZ]:"`Iterator` has a `.{{method}}()` method, `.toArray()` is unnecessary.",[dG]:"Remove `.toArray()`.",[dH]:"Remove `.toArray()` and use `Iterator#{{method}}()`."}}},"unicorn/prefer-simple-condition-first":{create:e=>{let{sourceCode:t}=e;e.on("LogicalExpression",r=>{if("&&"!==r.operator&&"||"!==r.operator||!d1(r.right)||d1(r.left)||"ConditionalExpression"!==r.left.type||!function e(t){let{parent:r}=t;return!!r&&("IfStatement"===r.type&&r.test===t||"WhileStatement"===r.type&&r.test===t||"DoWhileStatement"===r.type&&r.test===t||"ForStatement"===r.type&&r.test===t||"ConditionalExpression"===r.type&&r.test===t||"UnaryExpression"===r.type&&"!"===r.operator||"LogicalExpression"===r.type&&e(r))}(r)||function e(t){if(!t||"object"!=typeof t)return!1;if(d3.has(t.type)||"MemberExpression"===t.type||"BinaryExpression"===t.type&&("in"===t.operator||"instanceof"===t.operator))return!0;for(let r of Object.keys(t)){if("parent"===r)continue;let n=t[r];if(Array.isArray(n)){if(n.some(t=>e(t)))return!0}else if(n&&"string"==typeof n.type&&e(n))return!0}return!1}(r.left)||function e(t){if(!t||"object"!=typeof t)return!1;if("CallExpression"===t.type||"NewExpression"===t.type)return!0;for(let r of Object.keys(t)){if("parent"===r)continue;let n=t[r];if(Array.isArray(n)){if(n.some(t=>e(t)))return!0}else if(n&&"string"==typeof n.type&&e(n))return!0}return!1}(r.left))return;let n=d2(r.right,e,{operator:r.operator,property:"left"}),u=d2(r.left,e,{operator:r.operator,property:"right"}),a=t.getTokensBetween(r.left,r.right,{includeComments:!0}).some(e=>tW(e))?void 0:t=>t.replaceTextRange([rg(r.left,e)[0],rg(r.right,e)[1]],`${n} ${r.operator} ${u}`);return"LogicalExpression"===r.left.type&&r.left.operator===r.operator?{node:r,loc:t.getLoc(r.right),messageId:dY,data:{operator:r.operator},...a&&{suggest:[{messageId:dQ,fix:a}]}}:{node:r,loc:t.getLoc(r.right),messageId:dY,data:{operator:r.operator},...a&&{fix:a}}})},meta:{type:"suggestion",docs:{description:"Prefer simple conditions first in logical expressions.",recommended:"unopinionated"},fixable:"code",hasSuggestions:!0,messages:{[dY]:"Prefer simple condition first in `{{operator}}` expression.",[dQ]:"Swap conditions."}}},"unicorn/switch-case-break-position":{create:e=>{let{sourceCode:t}=e;e.on("SwitchCase",r=>{let{consequent:n}=r;if(n.length<2)return;let u=n.at(-1);if(!d5.has(u.type))return;let a=n.slice(0,-1);if(1!==a.length||"BlockStatement"!==a[0].type)return;let i=a[0];if(0===i.body.length)return;let o=function(e){switch(e.type){case"BreakStatement":return"break";case"ReturnStatement":return"return";case"ContinueStatement":return"continue";case"ThrowStatement":return"throw"}}(u);return{node:u,loc:t.getLoc(u),messageId:d4,data:{keyword:o},..."ReturnStatement"!==u.type&&"ThrowStatement"!==u.type&&{*fix(r){let n=t.getLastToken(i);if(t.getTokensBetween(n,u,{includeComments:!0}).some(e=>tW(e)))return;let a=t.getLoc(i);if(a.start.line===a.end.line)return;let o=t.getCommentsAfter(u),s=t.getLoc(u).end.line;if(o.some(e=>t.getLoc(e).start.line===s))return;let d=i.body.at(-1),l=t.getText(u),c=na(d,e),f=t.getTokenBefore(n,{includeComments:!0});yield r.insertTextAfter(f,`
|
|
20
|
+
${c}${l}`);let p=t.getRange(n)[1],m=t.getRange(u)[1];yield r.removeRange([p,m])}}}})},meta:{type:"layout",docs:{description:"Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.",recommended:!0},fixable:"code",messages:{[d4]:"Move `{{keyword}}` inside the block statement."}}}}).map(([e,t])=>{let r;return[e,{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:(r=eY.basename(e,".js"),`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/${r}.md`)}},create:nO(t.create)}]})))};module.exports=d8;
|