eslint-plugin-sukka 6.0.0-beta.7 → 6.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import*as e from"node:path";import*as t from"node:fs";import{createRule as r}from"@eslint-sukka/shared";function u(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 n(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function a(e){return e?.type==="MemberExpression"}function i(e){return e?.type==="AwaitExpression"}function o(e,t){return!!n(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function s(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 d(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function l(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function c({name:e,meta:t,create:r,resolveOptions:u}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=u?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var f,p,m,g,y,h,b,v=c({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!o(t.callee.property,"flatMap")||!(d(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(l(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&l(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 x=new Set(["href","pathname","search","hash","origin"]);var E=c({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(o(e,t))return e;for(;a(e);){if(o(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let u=A(r.parent);e.report({node:t,messageId:"instead",data:{name:u},fix:function(e,t,r){let u=A(t.parent);if(x.has(u??"href"))return u=>u.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function A(e){if(a(e)&&n(e.property))return e.property.name}var D=c({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(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(""))}})}})}),C=c({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let 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 S=/^toLocale(?<name>Upper|Lower)Case$/g;var F=c({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!a(t.callee)||!n(t.callee.property))return;let{property:r}=t.callee,u=S.exec(r.name);u&&e.report({node:t,data:{name:u.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function w(e){return JSON.stringify(e)}var _=c({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=w(t.quasis[0].value.cooked),a=u(t,e=>"Property"===e.type&&e.key===t);return a?e.replaceText(a,`${n}: ${r.getText(a.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});let k=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var P=c({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,u=k.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of u){let u=r.parent;if(u?.type==="BinaryExpression"&&"instanceof"===u.operator&&u.right===r){if("Array"===r.name)e.report({node:u,messageId:"array",fix:e=>e.replaceText(u,`Array.isArray(${t.getText(u.left)})`)});else{let n=r.name.toLowerCase();e.report({node:u,messageId:"primitive",data:{typeName:n},fix:e=>e.replaceText(u,`typeof ${t.getText(u.left)} === ${w(n)}`)})}}}}}}});let T=/\P{ASCII}/u;function I(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"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}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 B(e,t){switch(e.type){case"String":case"Template":return r=>{let u=e.value.slice(0,1),n=e.value.slice(-1),a=R(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${N(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(R(e.regex.pattern,t),[...u].join(""));return r.replaceText(e,n.toString())}}}function R(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${N(t)}}`:`\\u${N(t)}`})}function N(e){return e.toString(16).padStart(4,"0").toUpperCase()}c({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):T,only:e?.only}),create:(e,{pattern:t,only:r})=>I(t,(u,n)=>{if(r&&r!==n)return;let a=B(u,RegExp(t.source,"gu"));e.report({node:u,messageId:"illegal",fix:a})})});let L=/[\u061C\u202A-\u202E\u2066-\u2069]/;var j=c({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>I(L,(t,r)=>{let u=RegExp(L.source,"gu"),n={kind:r,text:R(t.value,u)},a=B(t,u);e.report({node:t,data:n,messageId:"detected",fix:a})})});let O=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var M=c({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>I(O,t=>{let r=B(t,RegExp(O.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),$=c({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(z);if(!n)return;let a=t[t.indexOf(n)-1];a&&"VariableDeclaration"===a.type&&1===a.declarations.length&&a.declarations.some(({init:e,id:t})=>null!==e&&l(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:o}=a.declarations[0];if(!(t&&o&&n.argument))return null;let s=!i(t)||u(t,"TryStatement")?t:t.argument,d=(e=>{if(!o.typeAnnotation)return e;let u=r.getText(o.typeAnnotation.typeAnnotation);return`(${e}) as ${i(t)?`Promise<${u}>`:u}`})(r.getText(s));return[e.remove(a),e.replaceText(n.argument,d)]})})}})});function z(e){return"ReturnStatement"===e.type&&n(e.argument)}var U=c({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!d(t))return;let u=function(e,t){let r=t.find(q);if(!r)return;let u=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>l(r.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 q(e){return"ReturnStatement"===e.type&&n(e.argument)}var W=c({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:u}){var n;if(!d(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 a=(n=r[0],function*(t){let r;if("IfStatement"!==n.type)return;let{test:u,consequent:a}=n;yield t.insertTextBefore(u,"!("),yield t.insertTextAfter(u,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(n,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),V=c({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return o(e,"XMLHttpRequest")})(t)||o(t.callee,"ActiveXObject")&&s(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return o(e,t)||a(e)&&o(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return o(e,r)&&a(t)&&o(t.property,"load")||a(e)&&o(e.object,r)&&o(e.property,["ajax","get","post","getJSON","getScript"])}(t)||Z(t,"axios")||Z(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function Z(e,t){return o(e.callee,"require")&&s(e.arguments[0],t)}let G=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var H=c({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!G.has(t.callee.name)||function(e){if(!o(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||s(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 = ")}]}))}})});function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function X(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var J=X(e),Y=function(e){let t=J.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/${t}.md`},Q=K(Y);let ee={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(ee))Object.freeze(ee[e]);Object.freeze(ee);let et=new Set(["parent","leadingComments","trailingComments"]);function er(e){return!et.has(e)&&"_"!==e[0]}function eu(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}function en(e,t){let r="",u=e;for("string"==typeof t?r=t:(r=t.name,u=eu(u,t));null!=u;){let e=u.set.get(r);if(null!=e)return e;u=u.upper}return null}function ea(e){return!this(e)}function ei(e){return ea.bind(e)}function eo(e,t){return"Punctuator"===e.type&&e.value===t}function es(e){return eo(e,"=>")}function ed(e){return eo(e,",")}function el(e){return eo(e,";")}function ec(e){return eo(e,":")}function ef(e){return eo(e,"(")}function ep(e){return eo(e,")")}function em(e){return eo(e,"[")}function eg(e){return eo(e,"]")}function ey(e){return eo(e,"{")}function eh(e){return eo(e,"}")}function eb(e){return["Block","Line","Shebang"].includes(e.type)}let ev=ei(es),ex=ei(ed),eE=ei(el),eA=ei(ec),eD=ei(ef),eC=ei(ep),eS=ei(em),eF=ei(eg),ew=ei(ey),e_=ei(eh),ek=ei(eb);function eP(e,t){let r=e.parent,u=null,n=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,es);u=r.loc.start,n=r.loc.end}else u="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,n=(e.id?t.getTokenAfter(e.id,ef):t.getFirstToken(e,ef)).loc.start;return{start:{...u},end:{...n}}}let eT="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eI=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"])),eB=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)),eR=new Set([Object.freeze,Object.preventExtensions,Object.seal]),eN=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function eL(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=eO(n.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=eO(n,t);if(null==e)return null;r.push(e.value)}}return r}let ej=Object.freeze({ArrayExpression(e,t){let r=eL(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?eO(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=eO(e.left,t),u=eO(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=eL(e.arguments,t);if(null!=u){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let n=eO(r.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let a=eM(r,t);if(null!=a){let e=n.value,t=a.value;if(eB.has(e[t]))return{value:e[t](...u)};if(eR.has(e[t]))return{value:u[0]}}}}else{let n=eO(r,t);if(null!=n){if(null==n.value&&e.optional)return{value:void 0,optional:!0};let t=n.value;if(eB.has(t))return{value:t(...u)};if(eR.has(t))return{value:u[0]}}}}return null},ConditionalExpression(e,t){let r=eO(e.test,t);return null!=r?r.value?eO(e.consequent,t):eO(e.alternate,t):null},ExpressionStatement:(e,t)=>eO(e.expression,t),Identifier(e,t){if(null!=t){let r=en(t,e);if(null!=r&&0===r.defs.length&&eI.has(r.name)&&r.name in eT)return{value:eT[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,u=t.filter(e=>e.isReadOnly()).length;return 1===r&&u+r===t.length}(r))&&"Identifier"===e.node.id.type)return eO(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=eO(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=eO(e.right,t);if(null!=u)return u}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=eO(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let u=eM(e,t);if(null!=u){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,u.value))return{value:r.value[u.value]};for(let[e,t]of eN)if(r.value instanceof e&&t.has(u.value))return{value:r.value[u.value]}}}return null},ChainExpression(e,t){let r=eO(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=eO(e.callee,t),u=eL(e.arguments,t);if(null!=r&&null!=u){let e=r.value;if(eB.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=eM(u,t),n=eO(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=eO(u.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>eO(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=eO(e.tag,t),u=eL(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=eL(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let u=0;u<r.length;++u)t+=r[u]+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=eO(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function eO(e,t){return null!=e&&Object.hasOwnProperty.call(ej,e.type)?ej[e.type](e,t):null}function eM(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?eO(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function e$(e,t=null){try{return eO(e,t)}catch(e){return null}}function ez(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=e$(e,t);return r&&String(r.value)}function eU(e,t){switch(e.type){case"MemberExpression":if(e.computed)return ez(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return ez(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 eq(e,t){let r=e.parent,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=eU(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 eW=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eV=Object.freeze(new Set(["-","+","!","~"]));function eZ(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eG=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(er)){let u=e[n];if(Array.isArray(u)){for(let e of u)if(eZ(e)&&this.$visit(e,t,r))return!0}else if(eZ(u)&&this.$visit(u,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eW.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&&eV.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eH(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:u=!1}={}){return eG.$visit(e,{considerGetters:r,considerImplicitTypeConversion:u},t.visitorKeys||ee)}function eK(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&&ef(i)&&ep(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,ef);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,ef);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 eX=/\$(?:[$&`']|[1-9][0-9]?)/gu,eJ=new WeakMap;class eY{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");eJ.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=eJ.get(this),u=null,n=0;for(t.lastIndex=0;null!=(u=t.exec(e));)(r||!function(e,t){let r=!1;for(let u=t-1;u>=0&&92===e.charCodeAt(u);--u)r=!r;return r}(e,u.index))&&(n=t.lastIndex,yield u,t.lastIndex=n)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let u=[],n=0;for(let a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(String(r(...a,a.index,a.input))),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),t):function(e,t,r){let u=[],n=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(r.replace(eX,i)),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),String(t))}}let eQ=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e0=Function.call.bind(Object.hasOwnProperty),e1=Symbol("read"),e3=Symbol("call"),e2=Symbol("construct"),e4=Symbol("esm"),e5={require:{[e3]:!0}};function e8(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let e6=class{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],u=[t],n=this.globalScope.set.get(t);e8(n)||(yield*this._iterateVariableReferences(n,u,r,!0))}for(let t of this.globalObjectNames){let r=[],u=this.globalScope.set.get(t);e8(u)||(yield*this._iterateVariableReferences(u,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e5)){let r=ez(t.arguments[0]);if(null==r||!e0(e,r))continue;let u=e[r],n=[r];u[e1]&&(yield{node:t,path:n,type:e1,info:u[e1]}),yield*this._iteratePropertyReferences(t,n,u)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!eQ.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e0(e,r))continue;let u=e[r],n=[r];if(u[e1]&&(yield{node:t,path:n,type:e1,info:u[e1]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(u)){let r=u[e];r[e1]&&(yield{node:t,path:n.concat(e),type:e1,info:r[e1]})}else for(let e of t.specifiers){let t=e0(u,e4),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(e9),(e.path.length>=2||e.type!==e1)&&(yield e)}}}*_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[e1]&&(yield{node:e,path:t,type:e1,info:r[e1]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let u=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(u);)u=u.parent;let n=u.parent;if("MemberExpression"===n.type){if(n.object===u){let e=eU(n);if(null==e||!e0(r,e))return;t=t.concat(e);let u=r[e];u[e1]&&(yield{node:n,path:t,type:e1,info:u[e1]}),yield*this._iteratePropertyReferences(n,t,u)}return}if("CallExpression"===n.type){n.callee===u&&r[e3]&&(yield{node:n,path:t,type:e3,info:r[e3]});return}if("NewExpression"===n.type){n.callee===u&&r[e2]&&(yield{node:n,path:t,type:e2,info:r[e2]});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=en(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=eU(u);if(null==e||!e0(r,e))continue;let n=t.concat(e),a=r[e];a[e1]&&(yield{node:u,path:n,type:e1,info:a[e1]}),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":e.imported.name;if(!e0(r,n))return;t=t.concat(n);let a=r[n];a[e1]&&(yield{node:e,path:t,type:e1,info:a[e1]}),yield*this._iterateVariableReferences(en(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===u){yield*this._iterateVariableReferences(en(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===u){let u=e.local.name;if(!e0(r,u))return;t=t.concat(u);let n=r[u];n[e1]&&(yield{node:e,path:t,type:e1,info:n[e1]})}}};function e9(e,t){return!(1===t&&"default"===e)}e6.READ=e1,e6.CALL=e3,e6.CONSTRUCT=e2,e6.ESM=e4;var e7=X(Object.freeze({__proto__:null,CALL:e3,CONSTRUCT:e2,ESM:e4,PatternMatcher:eY,READ:e1,ReferenceTracker:e6,default:{CALL:e3,CONSTRUCT:e2,ESM:e4,findVariable:en,getFunctionHeadLocation:eP,getFunctionNameWithKind:eq,getInnermostScope:eu,getPropertyName:eU,getStaticValue:e$,getStringIfConstant:ez,hasSideEffect:eH,isArrowToken:es,isClosingBraceToken:eh,isClosingBracketToken:eg,isClosingParenToken:ep,isColonToken:ec,isCommaToken:ed,isCommentToken:eb,isNotArrowToken:ev,isNotClosingBraceToken:e_,isNotClosingBracketToken:eF,isNotClosingParenToken:eC,isNotColonToken:eA,isNotCommaToken:ex,isNotCommentToken:ek,isNotOpeningBraceToken:ew,isNotOpeningBracketToken:eS,isNotOpeningParenToken:eD,isNotSemicolonToken:eE,isOpeningBraceToken:ey,isOpeningBracketToken:em,isOpeningParenToken:ef,isParenthesized:eK,isSemicolonToken:el,PatternMatcher:eY,READ:e1,ReferenceTracker:e6},findVariable:en,getFunctionHeadLocation:eP,getFunctionNameWithKind:eq,getInnermostScope:eu,getPropertyName:eU,getStaticValue:e$,getStringIfConstant:ez,hasSideEffect:eH,isArrowToken:es,isClosingBraceToken:eh,isClosingBracketToken:eg,isClosingParenToken:ep,isColonToken:ec,isCommaToken:ed,isCommentToken:eb,isNotArrowToken:ev,isNotClosingBraceToken:e_,isNotClosingBracketToken:eF,isNotClosingParenToken:eC,isNotColonToken:eA,isNotCommaToken:ex,isNotCommentToken:ek,isNotOpeningBraceToken:ew,isNotOpeningBracketToken:eS,isNotOpeningParenToken:eD,isNotSemicolonToken:eE,isOpeningBraceToken:ey,isOpeningBracketToken:em,isOpeningParenToken:ef,isParenthesized:eK,isSemicolonToken:el}));let{isParenthesized:te}=e7,tt="too-deep",tr="should-parenthesized";var tu=K({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,u=r.getAncestors(t).reverse(),n=u.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==n||te(t,r)?n>1?{node:n>2?u[n-3]:t,messageId:tt}:void 0:{node:t,messageId:tr,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions."},fixable:"code",messages:{[tt]:"Do not nest ternary expressions.",[tr]:"Nest ternary expression should be parenthesized."}}});let{isParenthesized:tn,isOpeningParenToken:ta,isClosingParenToken:ti}=e7;function to(e,t){let r=0;for(;tn(r+1,e,t);)r++;return r}function ts(e,t){let r=to(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:ta}),...t.getTokensAfter(e,{count:r,filter:ti})]}function td(e,t){let r=ts(e,t),[u]=(r[0]||e).range,[,n]=(r.at(-1)||e).range;return[u,n]}var tl={isParenthesized:tn,getParenthesizedTimes:to,getParentheses:ts,getParenthesizedRange:td,getParenthesizedText:function(e,t){let[r,u]=td(e,t);return t.text.slice(r,u)}};function tc(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tf={isLiteral:tc,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:e=>tc(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function tp(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:Number.POSITIVE_INFINITY,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)}var tm={isCallExpression:(e,t)=>tp(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return tp(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>tp(e,t,["CallExpression","NewExpression"])},tg=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],ty=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties: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)))};let{isCallExpression:th}=tm,{isStringLiteral:tb}=tf,{isCallExpression:tv}=tm,{isLiteral:tx,isStringLiteral:tE,isNumberLiteral:tA,isBigIntLiteral:tD,isNullLiteral:tC,isRegexLiteral:tS}=tf,{isNewExpression:tF,isCallExpression:tw,isCallOrNewExpression:t_}=tm;var tk={isLiteral:tx,isStringLiteral:tE,isNumberLiteral:tA,isBigIntLiteral:tD,isNullLiteral:tC,isRegexLiteral:tS,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tw,isCallOrNewExpression:t_,isEmptyNode:function e(t,r){let{type:u}=t;return"BlockStatement"===u?t.body.every(t=>e(t,r)):!!("EmptyStatement"===u||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tg.includes(e.type)},isMemberExpression:ty,isMethodCall:function(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 th(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&ty(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:n,properties:a,optional:u})},isNewExpression:tF,isReferenceIdentifier:function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:e=>tv(e,{name:"require",argumentsLength:1,optional:!1})&&tb(e.arguments[0]),isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tg};let{isMemberExpression:tP}=tk;function tT(e,t){let{object:r,property:u,properties:n}={property:"",properties:[],...t};if(!tP(e,{property:u,properties:n,optional:!1}))return;let a=e.object;return tP(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&"ArrayExpression"===a.type&&0===a.elements.length||"Object"===r&&"ObjectExpression"===a.type&&0===a.properties.length}function tI(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;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==u)return!1;e=e.object}}var tB={isNodeMatchesNameOrPath:tI,isNodeMatches:function(e,t){return t.some(t=>tI(e,t))}},tR=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);let tN=e=>e?.type==="UnaryExpression"&&"!"===e.operator,tL=e=>tN(e.parent)&&e.parent.argument===e,tj=e=>tO(e.parent)&&e.parent.arguments[0]===e,tO=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,tM=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);var t$={},tz={};Object.defineProperty(tz,"__esModule",{value:!0}),tz.isIdentifierChar=tX,tz.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,!tK(u))return!1}else if(!tX(u))return!1}return!t},tz.isIdentifierStart=tK;let tU="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tq="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",tW=RegExp("["+tU+"]"),tV=RegExp("["+tU+tq+"]");tU=tq=null;let tZ=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tG=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function tH(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 tK(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tW.test(String.fromCharCode(e)):tH(e,tZ)))}function tX(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tV.test(String.fromCharCode(e)):tH(e,tZ)||tH(e,tG))))}var tJ={};Object.defineProperty(tJ,"__esModule",{value:!0}),tJ.isKeyword=function(e){return tY.has(e)},tJ.isReservedWord=t1,tJ.isStrictBindOnlyReservedWord=t2,tJ.isStrictBindReservedWord=function(e,t){return t3(e,t)||t2(e)},tJ.isStrictReservedWord=t3;let tY=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"]),tQ=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t0=new Set(["eval","arguments"]);function t1(e,t){return t&&"await"===e||"enum"===e}function t3(e,t){return t1(e,t)||tQ.has(e)}function t2(e){return t0.has(e)}Object.defineProperty(t$,"__esModule",{value:!0}),Object.defineProperty(t$,"isIdentifierChar",{enumerable:!0,get:function(){return f.isIdentifierChar}}),Object.defineProperty(t$,"isIdentifierName",{enumerable:!0,get:function(){return f.isIdentifierName}}),Object.defineProperty(t$,"isIdentifierStart",{enumerable:!0,get:function(){return f.isIdentifierStart}}),Object.defineProperty(t$,"isKeyword",{enumerable:!0,get:function(){return p.isKeyword}}),Object.defineProperty(t$,"isReservedWord",{enumerable:!0,get:function(){return p.isReservedWord}}),Object.defineProperty(t$,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return p.isStrictBindOnlyReservedWord}}),Object.defineProperty(t$,"isStrictBindReservedWord",{enumerable:!0,get:function(){return p.isStrictBindReservedWord}}),Object.defineProperty(t$,"isStrictReservedWord",{enumerable:!0,get:function(){return p.isStrictReservedWord}}),f=tz,p=tJ;let t4=e=>[e,...e.childScopes.flatMap(e=>t4(e))];var t5=e=>[...new Set(t4(e).flatMap(({references:e})=>e))];let{isIdentifierName:t8,isStrictReservedWord:t6,isKeyword:t9}=t$,t7=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},re=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"]),rt=e=>"string"==typeof e&&!t9(e)&&!t6(e,!0)&&t8(e)&&"arguments"!==e&&!re.has(e),rr=(e,t)=>t5(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),ru=(e,t)=>!t.some(t=>t7(e,t)||rr(e,t)),rn=()=>!0;var ra=function(e,t,r=rn){if(rt(e)||rt(e+="_")){for(;!ru(e,t)||!r(e,t);)e+="_";return e}};let ri={},ro=ri.hasOwnProperty,rs=(e,t)=>{for(let r in e)ro.call(e,r)&&t(r,e[r])},rd=(e,t)=>(t&&rs(t,(t,r)=>{e[t]=r}),e),rl=(e,t)=>{let r=e.length,u=-1;for(;++u<r;)t(e[u])},rc=e=>"\\u"+("0000"+e).slice(-4),rf=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},rp=ri.toString,rm=Array.isArray,rg=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),ry=e=>"[object Object]"==rp.call(e),rh=e=>"string"==typeof e||"[object String]"==rp.call(e),rb=e=>"number"==typeof e||"[object Number]"==rp.call(e),rv=e=>"function"==typeof e,rx=e=>"[object Map]"==rp.call(e),rE=e=>"[object Set]"==rp.call(e),rA={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rD=/[\\\b\f\n\r\t]/,rC=/[0-9]/,rS=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rF=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rw=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,r_=(e,t)=>{let r;let u=()=>{l=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},n={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},a=t&&t.json;a&&(n.quotes="double",n.wrap=!0),"single"!=(t=rd(n,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let i="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",o=t.compact,s=t.lowercaseHex,d=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,f=t.__inline2__,p=o?"":"\n",m=!0,g="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rv(e.toJSON)&&(e=e.toJSON()),!rh(e)){if(rx(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+r_(Array.from(e),t)+")");if(rE(e))return 0==e.size?"new Set()":"new Set("+r_(Array.from(e),t)+")";if(rg(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+r_(Array.from(e),t)+")";if(rm(e))return(r=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||u(),rl(e,e=>{m=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+r_(e,t))}),m)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":l)+"]";if(rb(e)){if(a)return JSON.stringify(e);if(h)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(g)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else if(ry(e))return(r=[],t.wrap=!0,u(),rs(e,(e,u)=>{m=!1,r.push((o?"":d)+r_(e,t)+":"+(o?"":" ")+r_(u,t))}),m)?"{}":"{"+p+r.join(","+p)+p+(o?"":l)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rF:rw;return r=e.replace(v,(e,r,u,n,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),u=r.charCodeAt(1);return t.es6?"\\u{"+rf((e-55296)*1024+u-56320+65536,s)+"}":rc(rf(e,s))+rc(rf(u,s))}if(u)return rc(rf(u.charCodeAt(0),s));if("\0"==e&&!a&&!rC.test(d.charAt(o+1)))return"\\0";if(n)return n==i||t.escapeEverything?"\\"+n:n;if(rD.test(e))return rA[e];if(t.minimal&&!rS.test(e))return e;let l=rf(e.charCodeAt(0),s);return a||l.length>2?rc(l):"\\x"+("00"+l).slice(-2)}),"`"==i&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=i+r+i),r};r_.version="3.0.2";var rk=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return r_(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})},rP=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];let rT=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rI}=e7,rB=(e,t)=>{let{references:r=[]}=rI(e,t)||{};return r};var rR=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;let{isUndefined:rN}=tk,rL=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:rj,isCallExpression:rO,isMethodCall:rM}=tk,r$=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rz=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rU=function(e,t){return e.loc.start.line===t.loc.start.line};let{getStaticValue:rq}=e7;function rW(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rW(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rq(t);if(!r)return;return String(r.value)}}var rV=function e(t,r){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r):"ChainExpression"===r.type&&e(t,r.expression);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return t.regex||r.regex?!!(t.regex&&r.regex&&t.regex.pattern===r.regex.pattern&&t.regex.flags===r.regex.flags):t.bigint||r.bigint?t.bigint===r.bigint:t.value===r.value;case"ChainExpression":return e(t.expression,r.expression);case"MemberExpression":{let u=rW(t);if(void 0!==u)return e(t.object,r.object)&&u===rW(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},rZ=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0};let{isExpressionStatement:rG}=tk,rH=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),rK=new Set(["[","(","/","`","+","-","*",",","."]);var rX=function(e,t,r){if(""===r||r&&!rK.has(r.charAt(0))||!e)return!1;let{type:u,value:n,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===u){if(";"===n)return!1;if("]"===n)return!0;if(")"===n){switch(i.type){case"IfStatement":if(t.getTokenBefore(i.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(i.body&&t.getTokenBefore(i.body)===e)return!1}return!0}}return!!rH.has(u)||("Template"===u?n.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===u&&("of"!==n||"ForOfStatement"!==i.type)&&("await"!==n||"AwaitExpression"!==i.type))};let{isOpeningParenToken:rJ,isClosingParenToken:rY}=e7;var rQ=function(e,t){if(e.arguments.length>0)return!0;let[r,u]=t.getLastTokens(e,2);return rJ(r)&&rY(u)&&e.callee.range[1]<e.range[1]};let{isNumberLiteral:r0,isBigIntLiteral:r1}=tk,r3=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,r2=e=>r3.test(e);var r4={isDecimalIntegerNode:e=>r0(e)&&r2(e.raw),isDecimalInteger:r2,isNumeric:e=>r0(e)||r1(e),isLegacyOctal:e=>r0(e)&&/^0\d+$/.test(e.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:u="",power:n=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:u,power:n}},parseFloatNumber:function(e){let t=e.split("."),[r,u=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:u}}};let{isDecimalIntegerNode:r5}=r4;var r8=function(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!rQ(e,t);case"Literal":if(r5(e))return!0;return!1;default:return!0}},r6={exports:{}};m=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},r6.exports=m();let{singular:r9}=r6.exports;var r7=function(e,t,r=0,u=0){let[n,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(n+r),end:t.getLocFromIndex(a+u)}};let{isParenthesized:ue,getParenthesizedTimes:ut,getParentheses:ur,getParenthesizedRange:uu,getParenthesizedText:un}=tl,{isArrayPrototypeProperty:ua,isObjectPrototypeProperty:ui}={isArrayPrototypeProperty:(e,t)=>tT(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tT(e,{...t,object:"Object"})},{isNodeMatches:uo,isNodeMatchesNameOrPath:us}=tB,{isBooleanNode:ud,getBooleanAncestor:ul}={isBooleanNode:function e(t){if(tN(t)||tL(t)||tO(t)||tj(t))return!0;let{parent:r}=t;return!!tM(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tR(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(tL(e))t=!t,e=e.parent;else if(tj(e))e=e.parent;else break;return{node:e,isNegative:t}}};var uc={avoidCapture:ra,escapeString:rk,getBooleanAncestor:ul,getParentheses:ur,getParenthesizedRange:uu,getParenthesizedText:un,getParenthesizedTimes:ut,getReferences:t5,getScopes:t4,getVariableIdentifiers:rP,hasOptionalChainElement:function e(t){return!!rT(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:ua,isBooleanNode:ud,isFunctionSelfUsedInside: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||rB(t,"arguments").some(({from:e})=>e===t))||!!u&&rB(t,u).length>0)},isLeftHandSide:rR,isLogicalExpression:tR,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:uo,isNodeMatchesNameOrPath:us,isNodeValueNotDomNode:e=>rL.has(e.type)||rN(e),isNodeValueNotFunction:e=>r$.has(e.type)||rz.has(e.type)||rj(e)||rO(e)&&!rM(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:ui,isOnSameLine:rU,isParenthesized:ue,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:rV,isShadowed:rZ,isValueNotUsable:e=>rG(e.parent),needsSemicolon:rX,shouldAddParenthesesToMemberExpressionObject:r8,shouldAddParenthesesToCallExpressionCallee:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type},shouldAddParenthesesToAwaitExpressionArgument:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type},singular:e=>{let t=r9(e);if(t!==e)return t},toLocation:r7,getAncestor:function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e}};let{findVariable:uf}=e7,{getAncestor:up}=uc,{isStaticRequire:um,isStringLiteral:ug,isMemberExpression:uy}=tk,uh="prefer-event-target",ub=new Set(["@angular/core","eventemitter3"]),uv=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 ux(e){let t;return!!e&&(um(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(ug(t)&&ub.has(t.value)))}var uE=K({create:e=>({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=up(e,"ImportDeclaration");return!!(ub.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)&&uv(e.parent.parent)&&ux(e.parent.parent.parent.init)||uv(e)&&uy(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&ux(e.parent.init.object))}(uf(r,t)?.defs[0]?.name))return{node:t,messageId:uh}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`."},messages:{[uh]:"Prefer `EventTarget` over `EventEmitter`."}}});let uA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},{isNumberLiteral:uD}=tk,uC="prefer-keyboard-event-key",uS=new Set(["keyCode","charCode","which"]),uF=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,uw=(e,t)=>{let r=uk(t,"CallExpression",uF),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{}}},u_=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,uk=(e,t,r=()=>!0)=>{let u=e;for(;u;){if(u.type===t&&r(u))return u;u=u.parent}},uP=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},uT=e=>t=>{let r=uP(e,3);if(!r||"IfStatement"!==r.type)return;let{type:u,operator:n,right:a}=r.test;if(!("BinaryExpression"===u&&("=="===n||"==="===n)&&uD(a)))return;let i=uA[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rk(i))]},uI=e=>({messageId:uC,data:{name:e.name},node:e,fix:uT(e)});var uB=K({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:u}=uw(e,t);if(r&&u&&u.some(e=>u_(t,e.identifier)))return uI(t)},Property(t){let r=t.value.name;if(!uS.has(r))return;let{event:u,references:n}=uw(e,t);if(!u)return;let a=uk(t,"VariableDeclarator"),i=a?.init;if(n&&n.some(e=>e.identifier===i))return uI(t.value);if("ObjectPattern"===u.type){for(let e of u.properties)if(e===t)return uI(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`."},fixable:"code",messages:{[uC]:"Use `.key` instead of `.{{name}}`."}}});let{isMemberExpression:uR}=tk,uN="error",uL="suggestion";var uj=K({create:()=>({MemberExpression(e){if(!uR(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:uN,suggest:[{messageId:uL,fix:e=>e.replaceText(t,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:uN,suggest:[{messageId:uL,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`."},hasSuggestions:!0,messages:{[uN]:"Prefer `.textContent` over `.innerText`.",[uL]:"Switch to `.textContent`."}}});let{getParentheses:uO}=tl,{isCommaToken:uM}=e7,{isCommaToken:u$}=e7,{getParentheses:uz}=tl,{getParenthesizedRange:uU}=tl,{isSemicolonToken:uq}=e7;var uW=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let u=r.getFirstToken(t);yield e.insertTextAfter(u," (");let n=r.getLastToken(t);if(!uq(n)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(n,")")},uV=function(e,t,r){let u=e;"object"==typeof e&&Array.isArray(e.range)&&(u=e.range[1]);let[n]=t.text.slice(u).match(/^\s*/);return r.removeRange([u,u+n.length])};let{isParenthesized:uZ}=tl,{isParenthesized:uG}=tl,{getParenthesizedRange:uH}=tl;var uK=function(e,t,r){let[,u]=uH(t.object,r),[,n]=t.range;return e.removeRange([u,n])};let{getParenthesizedRange:uX}=tl;var uJ=function*(e,t,r){let u=t.callee;yield uK(e,u,r);let[,n]=uX(u,r),[,a]=t.range;yield e.removeRange([n,a])},uY=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,uQ=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];let u0=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&uY(e.parent),u1=e=>{let{type:t,local:r,imported:u}=e.parent;return"ImportSpecifier"===t&&uQ(r,u)&&r===e},u3=e=>{let{type:t,local:r,exported:u}=e.parent;return"ExportSpecifier"===t&&uQ(r,u)&&r===e};var u2=function(e,t,r){return uY(e)||u0(e)?r.replaceText(e,`${e.name}: ${t}`):u1(e)?r.replaceText(e,`${e.name} as ${t}`):u3(e)?r.replaceText(e,`${t} as ${e.name}`):e.typeAnnotation?r.replaceTextRange([e.range[0],e.typeAnnotation.range[0]],`${t}${e.optional?"?":""}`):r.replaceText(e,t)};let{getParentheses:u4}=tl,{getParenthesizedRange:u5}=tl,u8=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var u6={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let u of uO(e,r))yield t.remove(u)},appendArgument:function(e,t,r,u){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[n,a]=u.getLastTokens(t,2);return t.arguments.length>0&&(r=uM(n)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let u=t.parent,n=u.arguments.indexOf(t),a=uz(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==n&&(s=r.getTokenBefore(i).range[0]),1===u.arguments.length){let e=r.getTokenBefore(o);u$(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,u){return e.replaceTextRange(uU(t,u),r)},switchNewExpressionToCallExpression:function*(e,t,r){let u=t.getFirstToken(e);yield r.remove(u),yield uV(u,t,r),rQ(e,t)||(yield r.insertTextAfter(e,"()")),rU(u,e.callee)||uZ(e,t)||(yield*uW(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var u;yield r.insertTextBefore(e,"new ");let{callee:n}=e;!uG(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,")"))},removeMemberExpressionProperty:uK,removeMethodCall:uJ,replaceTemplateElement:(e,t,r)=>{let{range:[u,n],tail:a}=t;return e.replaceTextRange([u+1,n-(a?1:2)],r)},replaceReferenceIdentifier:u2,renameVariable:(e,t,r)=>rP(e).map(e=>u2(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,u,n,a=n){for(let r of u4(t,a))yield*e(r,"",u,n,a);let[i,o]=t.range,[s]=n.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield u.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:uV,fixSpaceAroundKeyword:function*(e,t,r){let u=u5(t,r),n=r.getTokenBefore({range:u},{includeComments:!0});n&&u[0]===n.range[1]&&u8(n)&&(yield e.insertTextAfter(n," "));let a=r.getTokenAfter({range:u},{includeComments:!0});a&&u[1]===a.range[0]&&u8(a)&&(yield e.insertTextBefore(a," "))},replaceStringLiteral:function(e,t,r,u,n){let a=t.range[0]+1,i=Number.isInteger(n)?u+a:a,o=Number.isInteger(n)?n+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:uW};let{appendArgument:u9}=u6,{isMethodCall:u7}=tk,{isArrayPrototypeProperty:ne}=uc,nt="require-array-join-separator";var nr=K({create:e=>({CallExpression(t){if(!(u7(t,{method:"join",argumentsLength:0,optionalCall:!1})||u7(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&ne(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:u.loc[a?"end":"start"],end:n.loc.end},messageId:nt,fix:e=>u9(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`."},fixable:"code",messages:{[nt]:"Missing the separator argument."}}});let{getStaticValue:nu,getPropertyName:nn}=e7,{isMethodCall:na}=tk,ni="no-thenable-object",no="no-thenable-export",ns="no-thenable-class",nd=(e,t)=>nu(e,t.sourceCode.getScope(e))?.value==="then",nl=(e,t)=>{try{return"then"===nn(e,t.sourceCode.getScope(e))}catch{}return!1},nc=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&nl(r,t)&&(yield r.key)},messageId:ni},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===nn(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:ns},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===nn(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:ni},{selector:"CallExpression",*getNodes(e,t){if(!(na(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;nd(r,t)&&(yield r)},messageId:ni},{selector:"CallExpression",*getNodes(e,t){if(na(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;nd(e,t)&&(yield e)}}},messageId:ni},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:no},{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:no},{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:no}];var nf=K({create:e=>{for(let{selector:t,selectors:r,messageId:u,getNodes:n}of nc)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."},messages:{[ni]:"Do not add `then` to an object.",[no]:"Do not export `then`.",[ns]:"Do not add `then` to a class."}}});let{getFunctionHeadLocation:np}=e7,{isMethodCall:nm}=tk,ng="no-invalid-remove-event-listener";var ny=K({create:e=>({CallExpression(t){if(!(nm(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||nm(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:np(r,e.sourceCode),messageId:ng}:{node:r.callee.property,messageId:ng}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression."},messages:{[ng]:"The listener argument should be a function reference."}}});let{getFunctionHeadLocation:nh,getFunctionNameWithKind:nb}=e7,{getReferences:nv,isNodeMatches:nx}=uc,{functionTypes:nE}=tk,nA="consistent-function-scoping",nD=(e,t)=>e&&t&&(e===t||e.block===t.block),nC=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),nS=e=>e.block?.parent?.callee&&nx(e.block.parent.callee,nC),nF=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>nF(e))),nw=new Set(["FunctionExpression","ArrowFunctionExpression"]),n_=e=>nw.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var nk=K({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:u}=r,n=[];e.on(nE,()=>{n.push(!1)}),e.on("JSXElement",()=>{n.length>0&&(n[n.length-1]=!0)}),e.onExit(nE,e=>{if(!(n.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||nF(r))return!0;let u=e.parent;"VariableDeclarator"===u.type&&(u=u.parent),"VariableDeclaration"===u.type&&(u=u.parent),"BlockStatement"===u.type&&(u=u.parent);let n=t.acquire(u);return!!(!n||"global"===n.type||nS(n)||n_(u))||function(e,t,r){let u=e=>e.some(e=>{if(nD(t,e.from))return!0;let{resolved:r}=e,[u]=r.defs;return(u?.type!=="FunctionName"||r.name!==u.name.name)&&nD(t,r.scope)}),n=e=>e.some(e=>nD(t,r.acquire(e.node))),a=u=>u.some(u=>{if(!u.parent||"FunctionDeclaration"!==u.parent.type||r.acquire(u))return!1;let n=r.acquire(u.parent);return!(!n||nD(e,n))&&nD(t,n.upper)});return nv(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||n(e.defs)||a(e.identifiers))}(r,n,t)}(e,u)))return{node:e,loc:nh(e,r),messageId:nA,data:{functionNameWithKind:nb(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope."},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[nA]:"Move {{functionNameWithKind}} to the outer scope."}}});let{getStaticValue:nP}=e7,{isNumberLiteral:nT}=tk,nI=(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),nB=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,nR=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),nN=e=>nI(e,"Math",nR),nL=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"]),nj=e=>"CallExpression"===e.type&&!e.optional&&nI(e.callee,"Math",nL),nO=e=>nB(e,"Number"),nM=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),n$=e=>nI(e,"Number",nM),nz=new Set(["parseFloat","parseInt"]),nU=e=>"CallExpression"===e.type&&!e.optional&&nI(e.callee,"Number",nz),nq=e=>nB(e,"parseInt")||nB(e,"parseFloat"),nW=(e,t)=>"number"==typeof nP(e,t)?.value,nV=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,nZ=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var nG=function e(t,r){if(nT(t)||nN(t)||nj(t)||nO(t)||n$(t)||nU(t)||nq(t)||nV(t))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||nZ.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=nP(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 nW(t,r)};let{getStaticValue:nH}=e7,{switchNewExpressionToCallExpression:nK}=u6,{isNewExpression:nX}=tk,nJ="error",nY="error-unknown",nQ="suggestion",n0=(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(nG(r,t))return"alloc";let u=nH(r,t);if(u){let{value:e}=u;if("string"==typeof e||Array.isArray(e))return"from"}};function n1(e,t,r){return function*(u){yield u.insertTextAfter(e.callee,`.${r}`),yield*nK(e,t,u)}}var n3=K({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!nX(e,{name:"Buffer"}))return;let r=n0(e.arguments,t.getScope(e));return r?{node:e,messageId:nJ,data:{method:r},fix:n1(e,t,r)}:{node:e,messageId:nY,suggest:["from","alloc"].map(r=>({messageId:nQ,data:{replacement:r},fix:n1(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`."},fixable:"code",hasSuggestions:!0,messages:{[nJ]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[nY]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[nQ]:"Switch to `Buffer.{{replacement}}()`."}}});let{isStringLiteral:n2,isMethodCall:n4}=tk,n5="no-console-spaces",n8=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),n6=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var n9=K({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{let n="leading"===u?e.range[0]+1:e.range[1]-2,a=[n,n+1];return{loc:r7(a,t),messageId:n5,data:{method:r,position:u},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!n4(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(!n2(i)&&"TemplateLiteral"!==i.type)continue;let n=t.getText(i).slice(1,-1);0!==e&&n8(n)&&(yield r(i,u,"leading")),e!==a-1&&n6(n)&&(yield r(i,u,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters."},fixable:"code",messages:{[n5]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});let{isEmptyNode:n7}=tk,ae="no-empty-file",at=e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,ar=e=>n7(e,at),au=e=>"Line"===e.type&&e.value.startsWith("/"),an=e=>e.some(e=>au(e));var aa=K({create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!ar(e)))return;let{sourceCode:r}=e;if(!an(r.getAllComments()))return{node:t,messageId:ae}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files."},messages:{[ae]:"Empty files are not allowed."}}});let{isParenthesized:ai,getParenthesizedRange:ao}=tl,{removeParentheses:as}=u6,ad="no-useless-fallback-in-spread";var al=K({create:e=>({ObjectExpression(t){if(0===t.properties.length&&"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:ad,*fix(r){let{sourceCode:u}=e,n=t.parent,{left:a}=n,i=ai(a,u),[,o]=i?ao(a,u):a.range,[,s]=n.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*as(n,r,u))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals."},fixable:"code",messages:{[ad]:"The empty object is useless."}}});let{isMethodCall:ac,isMemberExpression:af}=tk,{getParenthesizedRange:ap,isSameReference:am,isLogicalExpression:ag}=uc,ay=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&af(e.left,{property:"length",optional:!1})&&ag(e.parent);var ah=K({create:e=>{let t=[],r=new Set,u=new Set,n=new Set,a=new Set;return{BinaryExpression(e){if(ay(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&u.add(e)}},CallExpression(e){ac(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))},LogicalExpression(e){ag(e)&&t.push(e)},*"Program:exit"(){for(let i of 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)&&am(e.left.object,t.callee.object))||"&&"===t&&u.has(e)&&i.some(t=>n.has(t)&&am(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))))yield{loc:{start:i.left.property.loc.start,end:i.loc.end},messageId:r.has(i)?"zero":"non-zero",fix(t){let{sourceCode:r}=e,{left:u,right:n}=i.parent,a=ap(u,r),o=ap(n,r),s=[];return u===i?(s[0]=a[0],s[1]=o[0]):(s[0]=a[1],s[1]=o[1]),t.removeRange(s)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check."},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."}}});let{getParenthesizedRange:ab}=uc,{isFunction:av,isMethodCall:ax}=tk;var aE=K({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(ax(e,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===e.parent.type&&e.parent.body===e||"ReturnStatement"===e.parent.type&&e.parent.argument===e||"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)))return;let{functionNode:r,isInTryStatement:u}=function(e){let t,r=!1;for(;e;e=e.parent){if(av(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(e);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}}(e,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.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s=s||"undefined",s=`throw ${s}`,o)return t.replaceTextRange(ab(n,r),s);if(s+=";",u)return s=`{ ${s} }`,t.replaceTextRange(ab(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===n.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s=s||"{}");return t.replaceText(u?e:n,s)}}(e,u,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks"},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});let{isParenthesized:aA}=e7,{isDecimalInteger:aD}=r4,{fixSpaceAroundKeyword:aC}=u6,{isNumberLiteral:aS}=tk,aF="zero-fraction",aw="dangling-dot";var a_=K({create:e=>({Literal(t){if(!aS(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=t.range[0]+n.length+a.length,d=s-(r.length-o.length),{sourceCode:l}=e;return{loc:r7([d,s],l),messageId:"."===a?aw:aF,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aD(o)&&!aA(t,l)&&(r=`(${r})`,rX(l.getTokenBefore(t),l,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*aC(e,t,l)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots."},fixable:"code",messages:{[aF]:"Don't use a zero fraction in the number.",[aw]:"Don't use a dangling dot in the number."}}});let{isCommaToken:ak,isOpeningBraceToken:aP,isClosingBraceToken:aT}=e7,{isStringLiteral:aI}=tk,aB="error",aR="suggestion",aN=Symbol.for("default"),aL=Symbol("NAMESPACE_SPECIFIER_NAME"),aj=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},aO=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aM=e=>"type"===e.importKind||"type"===e.parent.importKind;function*a$(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:u}=e,{specifiers:n}=u;if(1===n.length){yield*a$(u,t,r);return}switch(e.type){case"ImportSpecifier":if(!n.some(t=>t!==e&&t.type===e.type)){let u=r.getTokenAfter(e,aT),n=r.getTokenBefore(e,ak);yield t.replaceTextRange([n.range[0],u.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let u=r.getTokenAfter(e);ak(u)&&(yield t.remove(u))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function az(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,u]=e.range;return t.text.slice(r,u)}var aU=K({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},u=new Set,n=[];return{ImportDeclaration(e){e.specifiers.length>0&&u.add(e)},ExportNamedDeclaration(e){aI(e.source)&&n.push(e)},*"Program:exit"(e){for(let a of u){let u=t.getDeclaredVariables(a);if(u.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(u=u.map(e=>{let r=function(e,t){let r=e.defs[0].node,u={node:r,declaration:r.parent,variable:e,isTypeImport:aM(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:aN,text:"default",...u};case"ImportSpecifier":return{name:aj(r.imported),text:t.getText(r.imported),...u};case"ImportNamespaceSpecifier":return{name:aL,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:aN,text:"default",isTypeExport:aO(r)};case"ExportSpecifier":return{node:r,name:aj(r.exported),text:t.getText(r.exported),isTypeExport:aO(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!==aL||n.name!==aN)&&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 i=r&&u.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of u)for(let u of a){let a={node:u.node,messageId:aB,data:{exported:u.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:u,program:n}){let a;let 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||(a=u.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t)),function*(u){if(t.name===aL)yield u.insertTextAfter(n,`
2
- export * as ${r.text} ${az(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 u.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,aP);yield u.insertTextAfter(t,o)}}else yield u.insertTextAfter(n,`
3
- export {${o}} ${az(i,e)}`)}1===t.variable.references.length&&(yield*a$(t.node,u,e)),yield*a$(r.node,u,e)}}({sourceCode:t,imported:r,exported:u,exportDeclarations:n,program:e});i?a.suggest=[{messageId:aR,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[aB]:"Use `export…from` to re-export `{{exported}}`.",[aR]:"Switch to `export…from`."}}});let{getFunctionHeadLocation:aq,getFunctionNameWithKind:aW}=e7,{functionTypes:aV}=tk,aZ="prefer-native-coercion-functions",aG=new Set(["String","Number","BigInt","Boolean","Symbol"]),aH=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),aK=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&aG.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,aX=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,aJ=e=>aX(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&aH.has(e.parent.callee.property.name);var aY=K({create:e=>{e.on(aV,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(aJ(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&aK(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&aK(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,u={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(u.fix=t=>{let u=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?u=`: ${u}`:"MethodDefinition"===e.parent.type&&(u=` = ${u};`),t.replaceText(e,u)}),u}(t);if(!r)return;let{sourceCode:u}=e,{replacementFunction:n,fix:a}=r;return r={node:t,loc:aq(t,u),messageId:aZ,data:{functionNameWithKind:aW(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."},fixable:"code",messages:{[aZ]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});let{ReferenceTracker:aQ}=e7,a0=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r},a1=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:u,type:n=aQ.READ}){for(let e of t)Object.assign(this.#e,a0(e,n));this.#t=r,this.#r=u}*track(e){for(let t of new aQ(e).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(t))continue;let e=this.#r(t);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}};Object.assign(a1,{READ:aQ.READ,CALL:aQ.CALL,CONSTRUCT:aQ.CONSTRUCT});var a3={GlobalReferenceTracker:a1};let{GlobalReferenceTracker:a2}=a3,a4="no-document-cookie",a5=new a2({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:a4})});var a8=K({create:e=>a5.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly."},messages:{[a4]:"Do not use `document.cookie` directly."}}});let a6=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var a9=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",...a6("AnimationStart"),...a6("AnimationEnd"),...a6("AnimationIteration"),...a6("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"]);let{isParenthesized:a7}=e7,{isUndefined:ie,isNullLiteral:it,isStaticRequire:ir}=tk,iu="prefer-add-event-listener",ia={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},ii=e=>e.property.name,io=e=>e.slice(2),is=(e,t,r,u)=>{let n=io(ii(u)),a=t.getText(u.object);a7(u.object,t)&&(a=`(${a})`);let i=t.getText(r.right);a7(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${n}', ${i})`;return e.replaceText(r,o)},id=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),il=e=>ie(e)||it(e);var ic=K({create:e=>{let t,r;let u=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),n=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){n.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){ir(e)&&!t&&u.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&u.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething=r.returnsSomething||!!e.argument},"AssignmentExpression:exit"(r){let u;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=ii(a);if(!s||!s.startsWith("on"))return;let d=io(s);if(!a9.has(d))return;let l="addEventListener",c="";return il(i)?l="removeEventListener":"beforeunload"!==d||id(i,n)?"message"===d?c=ia.message:"error"===d?c=ia.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(u=t=>is(t,e.sourceCode,r,a)):c=ia.beforeunload,{node:a.property,messageId:iu,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[iu]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});let{hasSideEffect:ip,isParenthesized:im,findVariable:ig}=e7,{isMethodCall:iy}=tk,{isSameIdentifier:ih,isFunctionSelfUsedInside:ib}=uc,iv=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(ih(e.left,t)||ih(e.right,t)),ix=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iv(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&iv(e.body.body[0].argument,e.params[0]),iE=({type:e,name:t},r)=>"Identifier"===e&&t===r,iA=function({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",r=>{let o,s;if(!iy(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!ix(r.arguments[0]))return;let[d]=r.arguments,l="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[c]=d.params,{left:f,right:p}=l,{name:m}=c;if(iE(f,m))o=p,s=f;else{if(!iE(p,m))return;o=f,s=p}let g=i.acquire(d);if(ig(g,c).references.some(({identifier:e})=>e!==s)||ib(d,g))return;let y=r.callee.property,h={node:y,messageId:u,suggest:[]},b=function*(e){let r=a.getText(o);im(o,a)&&!im(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return ip(o,a)?h.suggest.push({messageId:n,fix:b}):h.fix=b,h})}}},iD=iA({method:"findIndex",replacement:"indexOf"}),iC=iA({method:"findLastIndex",replacement:"lastIndexOf"});var iS=K({create(e){iD.listen(e),iC.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item."},fixable:"code",hasSuggestions:!0,messages:{...iD.messages,...iC.messages}}});let{isMethodCall:iF}=tk,iw="error";var i_=K({create:()=>({CallExpression(e){if(!iF(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iw,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(…)`."},messages:{[iw]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});let{isMethodCall:ik,isCallExpression:iP,isNewExpression:iT}=tk,{fixSpaceAroundKeyword:iI}=u6,iB="prefer-date",iR="prefer-date-now-over-methods",iN="prefer-date-now-over-number-data-object",iL=e=>iT(e,{name:"Date",argumentsLength:0}),ij=(e,t,r)=>({node:e,messageId:iB,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*iI(t,e,r))},...t});var iO=K({create:e=>({CallExpression(e){if(ik(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&iL(e.callee.object)){let t=e.callee.property;return ij(e,{node:t,messageId:iR,data:{method:t.name}})}if(iP(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&iL(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?ij(e,{messageId:iN}):ij(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&iL(t.argument))return ij("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&iL(e.right))return ij(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])iL(t)&&(yield ij(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch."},fixable:"code",messages:{[iB]:"Prefer `Date.now()` over `new Date()`.",[iR]:"Prefer `Date.now()` over `Date#{{method}}()`.",[iN]:"Prefer `Date.now()` over `Number(new Date())`."}}});let{isIdentifierName:iM}=t$,{escapeString:i$,hasOptionalChainElement:iz,isValueNotUsable:iU}=uc,{isMethodCall:iq,isStringLiteral:iW,isExpressionStatement:iV}=tk,iZ="prefer-dom-node-dataset",iG=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var iH=K({create:e=>({CallExpression(t){if((iq(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iq(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&iW(t.arguments[0])&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:iZ,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iz(e.callee))&&("setAttribute"!==r||iU(e))&&("removeAttribute"!==r||iV(e.parent)))return u=>{let[n]=e.arguments,a=iG(n.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iM(a)?`.${a}`:`[${i$(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}, ${i$(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."},fixable:"code",messages:{[iZ]:"Prefer `.dataset` over `{{method}}(…)`."}}});let{getParenthesizedText:iK,getParenthesizedRange:iX,isSameReference:iJ}=uc,{isLiteral:iY,isMethodCall:iQ}=tk,{replaceNodeOrTokenAndSpacesBefore:i0,removeParentheses:i1}=u6,i3="prefer-modern-math-apis",i2=(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,i4=(e,t)=>"CallExpression"===e.type&&!e.optional&&i2(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function i5({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(u,n){let a,i;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(i4(u.left,"log")&&i2(u.right,e)?(a=u.left,i=`Math.log(…) * Math.${e}`):i4(u.right,"log")&&i2(u.left,e)&&(a=u.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:u,messageId:i3,data:{replacement:r,description:i},fix:e=>e.replaceText(u,`Math.${t}(${iK(o,n.sourceCode)})`)}}}function i8({constantName:e,replacementMethod:t}){let r={messageId:i3,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(u,n){if(!("BinaryExpression"===u.type&&"/"===u.operator&&i4(u.left,"log")&&i2(u.right,e)))return;let[a]=u.left.arguments;return{...r,node:u,fix:e=>e.replaceText(u,`Math.${t}(${iK(a,n.sourceCode)})`)}}}let i6=[i5({constantName:"LOG10E",replacementMethod:"log10"}),i5({constantName:"LOG2E",replacementMethod:"log2"}),i8({constantName:"LN10",replacementMethod:"log10"}),i8({constantName:"LN2",replacementMethod:"log2"})],i9=e=>"BinaryExpression"===e.type&&"+"===e.operator,i7=e=>"BinaryExpression"===e.type&&("*"===e.operator&&iJ(e.left,e.right)||"**"===e.operator&&iY(e.right,2)),oe=e=>i9(e)?[e.left,e.right].flatMap(e=>oe(e)):[e];var ot=K({create:e=>{let t=[];return{CallExpression(t){if(!iQ(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=oe(t.arguments[0]);if(r.some(e=>!i7(e)))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:i3,data:{replacement:`Math.${u}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,u),n)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*i0(t,",",a,i),yield*i1(e,a,i)}for(let e of r)yield a.removeRange([iX(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of i6){let u=t(r,e);u&&(yield u)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns."},fixable:"code",messages:{[i3]:"Prefer `{{replacement}}` over `{{description}}`."}}}),or=X(t);let ou=e=>"function"==typeof e?.[Symbol.iterator],on=class extends Error{},oa={abort(){throw new on("Fix aborted.")}};function oi(e){return t=>{let r=e(t,oa);if(ou(r))try{return[...r]}catch(e){if(e instanceof on)return;throw e}return r}}let oo=new Set;function os(e){if(oo.has(e))return e;let t=t=>{let r={},u=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,n]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(r,n);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let u of r)!function(e,t){if(e){for(let r of(ou(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=oi(r.fix)),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=oi(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(u(...e),t)}]))};return oo.add(t),t}function od(e){let t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${e}`);return{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:Y(e)}},create:os(t.create)}}var ol={loadRule:od,loadRules:function(){return Object.fromEntries(or.readdirSync(J.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=J.basename(e.name,".js");return[t,od(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=os(e);let u=t=>{let u=e(t),{parserServices:n}=t.sourceCode;return n?.defineTemplateBodyVisitor?r?n.defineTemplateBodyVisitor(u,u):n.defineTemplateBodyVisitor(u):u};return oo.add(u),u}};let{checkVueTemplate:oc}=ol,{isNumberLiteral:of,isBigIntLiteral:op}=tk,om="number-literal-case",og=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var oy=K({create:oc(()=>({Literal(e){let{raw:t}=e,r=t;if(of(e)?r=og(t):op(e)&&(r=og(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:om,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals."},fixable:"code",messages:{[om]:"Invalid number literal casing."}}});let{GlobalReferenceTracker:oh}=a3,{replaceReferenceIdentifier:ob}=u6,{fixSpaceAroundKeyword:ov}=u6,ox="error",oE="suggestion",oA={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},oD=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var oC=K({create:e=>{let{checkInfinity:t}={checkInfinity:!0,...e.options[0]},{sourceCode:r}=e,u=Object.keys(oA);return t||(u=u.filter(e=>"Infinity"!==e)),new oh({objects:u,handle:e=>(function({node:e,path:[t]},r){let{parent:u}=e,n=t;"Infinity"===t&&(n=oD(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:ox,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*ov(e,u,r)},a;let i=t=>ob(e,`Number.${n}`,t,r);return oA[t]?a.fix=i:a.suggest=[{messageId:oE,fix:i}],a})(e,r),filter:({node:e})=>!rR(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!0}}}],messages:{[ox]:"Prefer `Number.{{property}}` over `{{description}}`.",[oE]:"Replace `{{description}}` with `Number.{{property}}`."}}});let{getPropertyName:oS}=e7,{isNullLiteral:oF,isMethodCall:ow}=tk,o_="prefer-reflect-apply",ok=(e,t)=>(oF(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oP=(e,t,r,u)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(u)})`,oT=(e,t)=>{if("apply"===oS(e.callee)&&2===e.arguments.length&&ok(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oP(t,e.callee.object,e.arguments[0],e.arguments[1]))},oI=(e,t)=>{if("call"===oS(e.callee)&&"apply"===oS(e.callee.object)&&"prototype"===oS(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&ok(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oP(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oB=K({create:e=>({CallExpression(t){if(!ow(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=oT(t,r)||oI(t,r);if(u)return{node:t,messageId:o_,fix:u}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`."},fixable:"code",messages:{[o_]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});let{findVariable:oR}=e7,{fixSpaceAroundKeyword:oN}=u6,{isNewExpression:oL,isMemberExpression:oj}=tk,oO="prefer-set-size",oM=e=>oL(e,{name:"Set"});var o$=K({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!oj(e,{property:"length",optional:!1})||"ArrayExpression"!==e.object.type||1!==e.object.elements.length||e.object.elements[0]?.type!=="SpreadElement")return;let r=e.object.elements[0].argument;if(function(e,t){if(oM(e))return!0;if("Identifier"!==e.type)return!1;let r=oR(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&&oM(u.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oO,fix:function(e,t){let{object:r,property:u}=t,n=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(n).length))return function*(a){yield a.replaceText(u,"size"),yield a.replaceText(r,e.getText(n)),yield*oN(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`."},fixable:"code",messages:{[oO]:"Prefer using `Set#size` instead of `Array#length`."}}}),oz={exports:{}};h=String.fromCodePoint||(g=String.fromCharCode,y=Math.floor,function(){var e,t,r=[],u=-1,n=arguments.length;if(!n)return"";for(var a="";++u<n;){var i=Number(arguments[u]);if(!isFinite(i)||i<0||i>1114111||y(i)!=i)throw RangeError("Invalid code point: "+i);i<=65535?r.push(i):(i-=65536,e=(i>>10)+55296,t=i%1024+56320,r.push(e,t)),(u+1==n||r.length>16384)&&(a+=g.apply(null,r),r.length=0)}return a}),b={parse:function(e,t,r){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function n(e,t){return e.range[0]=t,u(e)}function a(e,t){return u({type:"anchor",kind:e,range:[X-t,X]})}function i(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,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=y().charCodeAt(0))>=56320&&t<=57343?i("symbol",(u-55296)*1024+t-56320+65536,++X-2,X):i("symbol",u,X-1,X)}function d(e,t,r,n,a){return null==n&&(r=X-1,n=X),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function l(e,t,r,n){return u({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,n]})}function c(e,t,r,n){return e.codePoint>t.codePoint&&U("invalid range in character class",e.raw+"-"+t.raw,r,n),u({type:"characterClassRange",min:e,max:t,range:[r,n]})}function f(e){return"alternative"===e.type?e.body:[e]}function p(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){g(e)||U("character",e)}function g(t){if(e.indexOf(t,X)===X)return p(t.length)}function y(){return e[X]}function b(t){return e.indexOf(t,X)===X}function v(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,p(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());g("|");)e.push(A());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,o=[],d=X;t=function(){if(X>=e.length||b("|")||b(")"))return null;var t=g("^")?a("start",1):g("$")?a("end",1):g("\\b")?a("boundary",2):g("\\B")?a("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var o=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return s(t);if(g("."))return u({type:"dot",range:[X-1,X]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return i("symbol",92,X-1,X);U("atomEscape")}return t}if(t=N())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&g("(?<")){var t,n,a,o,d,l,c=I();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,p(2),o=x(/^[sim]+/),g("-")?(n=x(/^[sim]+/))||U("Invalid flags for modifiers group"):o||U("Invalid flags for modifiers group"),((d=(o=o?o[0]:"")+(n=n?n[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}(d))&&U("flags cannot be duplicated for modifiers group"),m(":"),(l=C("ignore",a)).modifierFlags={enabling:o,disabling:n},l):D("(?:","ignore","(","normal")}();if(!o){var d,l,c=X;(d=S()||!1)&&(X=c,U("Expected atom")),!K&&(l=x(/^{/))?o=s(l):U("Expected atom")}t=o}return(d=S()||!1)?(d.body=f(t),n(d,t.range[0]),d):t}();)o.push(t);return 1===o.length?o[0]:u({type:"alternative",body:o,range:[d,X]})}function D(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(e,t){var r=E();r||U("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:f(r),range:[t,X]});return"normal"==e&&V&&W++,n}function S(){var e,t,r,u,n=X;return g("*")?e=d(0,void 0,void 0,void 0,"*"):g("+")?e=d(1,void 0,void 0,void 0,"+"):g("?")?e=d(0,1,void 0,void 0,"?"):(u=x(/^\{([0-9]+)\}/))?e=d(t=parseInt(u[1],10),t,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),\}/))?e=d(t=parseInt(u[1],10),void 0,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(u[1],10))>(r=parseInt(u[2],10))&&U("numbers out of order in {} quantifier","",n,X),e=d(t,r,u.range[0],u.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",n,X),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=X;X++;var a=w(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",u(e)):X=n}}return e}function w(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,d=parseInt(t[0],10);return d<=W&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(d),V?Z=!0:_(a,X),p(-t[0].length),t=x(/^[0-7]{1,3}/))?o("octal",parseInt(t[0],8),t[0],1):n(t=s(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^0{1,3}$/.test(r))?o("null",0,"0",r.length):o("octal",parseInt(r,8),r,1))}(e)||function(){if(r.namedGroups&&x(/^k<(?=.*?>)/)){var e=I();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of CharacterClass","",i);else if(!K&&(a=x(/^c([0-9])/)))return o("controlLetter",a[1]+16,a[1],2);else if(!K&&(a=x(/^c_/)))return o("controlLetter",31,"_",2);if(K&&g("-"))return o("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?u({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(r.unicodeSet&&H&&g("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,X]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,X]})}())||P()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?F(o("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function P(){var e,t,u,n=X;if(u=x(/^[fnrtv]/)){var a=0;switch(u[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return o("singleEscape",a,"\\"+u[0])}return(u=x(/^c([a-zA-Z])/))?o("controlLetter",u[1].charCodeAt(0)%32,u[1],2):(u=x(/^x([0-9a-fA-F]{2})/))?o("hexadecimalEscape",parseInt(u[1],16),u[1],2):(u=k())?((!u||u.codePoint>1114111)&&U("Invalid escape sequence",null,n,X),u):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:o("identifier",(e=p()).charCodeAt(0),e,1):null)}function T(t){var r=y(),u=X;if("\\"===r){p();var n=k();return n&&t(n.codePoint)||U("Invalid escape sequence",null,u,X),h(n.codePoint)}var a=r.charCodeAt(0);if(a>=55296&&a<=56319){var i=(r+=e[X+1]).charCodeAt(1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536)}if(t(a))return p(),a>65535&&p(),r}function I(){var e,t=X,r=T(B);for(r||U("Invalid identifier");e=T(R);)r+=e;return u({type:"identifier",value:r,range:[t,X]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(h(e))}function R(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(h(e))}function N(){var e,t=X;return(e=x(/^\[\^/))?(e=L(),m("]"),l(e,!0,t,X)):g("[")?(e=L(),m("]"),l(e,!1,t,X)):null}function L(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=O(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=O("union"===e));return{kind:e,body:t}}():((t=j())||U("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=s(g("-")),(a=j())||U("classAtom"),u=X;var r,u,n,a,i,o,d=L();return(d||U("classRanges"),"codePoint"in t&&"codePoint"in a?n=[c(t,a,r,u)]:K?U("invalid character class"):n=[t,i,a],"empty"===d.type)?n:n.concat(d.body)}return(o=j())||U("classAtom"),(n=b("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(n)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function j(){var e;return g("-")?s("-"):(e=x(/^[^\\\]-]/))?s(e[0]):g("\\")?((e=w(!0))||U("classEscape"),F(e)):void 0}function O(e){var t,r,u=X;if(g("\\")){if(r=w(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+y(),u)}}else if(r=$())t=r;else{if(r=N())return r;U("Invalid character",y())}if(e&&b("-")&&!v("-")){if(m("-"),r=M())return c(t,r,u,X);U("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return s(e)}function z(){var e;if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=P())return e;else return null}function U(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)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oz.exports?oz.exports=b:window.regjsparser=b;var oU=oz.exports;let{getStaticValue:oq}=e7,{parse:oW}=oU,{isRegexLiteral:oV,isNewExpression:oZ,isMethodCall:oG}=tk,oH="method",oK="pattern",oX=(e,t)=>{if(oV(e))return e.regex.flags.includes("g");if(oZ(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=oq(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&u.global};var oJ=K({create:e=>({CallExpression(t){if(!oG(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:u}}=t;if(!oX(r,e.sourceCode.getScope(r)))return;let n=u.name,a=function(e){let t;if(!oV(e))return;let{pattern:r,flags:u}=e.regex;if("g"!==u.replace("u","").replace("v",""))return;try{t=oW(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 rk(String.fromCodePoint(...n.map(e=>e.codePoint)))}(r);if("replaceAll"===n){if(!a)return;return{node:r,messageId:oK,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:u,messageId:oH,*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."},fixable:"code",messages:{[oH]:"Prefer `String#replaceAll()` over `String#replace()`.",[oK]:"This pattern can be replaced with {{replacement}}."}}});let{getStaticValue:oY}=e7,{getParenthesizedText:oQ,getParenthesizedRange:o0}=tl,{replaceArgument:o1}=u6,{isNumberLiteral:o3,isMethodCall:o2}=tk,o4=e=>o3(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-o4(e.argument):void 0,o5=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var o8=K({create:e=>({CallExpression(t){if(!o2(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=o.getScope(e),d=oY(a,s),l=o0(i,o),c=e=>o1(t,i,e,o);if(d?.value===0){if(o3(i)||o5(i))return;if("number"==typeof o4(i)){yield c(Math.max(0,o4(i)));return}yield t.insertTextBeforeRange(l,"Math.max(0, "),yield t.insertTextAfterRange(l,")");return}if(n.every(e=>o3(e))){yield c(a.value+i.value);return}if(n.every(e=>nG(e,s))){let e=oQ(a,o);yield t.insertTextBeforeRange(l,`${e} + `);return}return u()}:function*({node:e,fixer:t,context:r,abort:u}){let{sourceCode:n}=r,[a,i]=e.arguments,o=a?o4(a):void 0,s=oQ(a,n),d=e=>o1(t,a,e,n);if(!i){if(o5(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=o0(a,n);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let l=o4(i),c=oQ(i,n),f=e=>o1(t,i,e,n);if(void 0!==o&&void 0!==l){let e=[Math.max(0,o),Math.max(0,l)];o>l&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==l&&(yield f(e[1]));return}if(0===o||0===l){yield d(0),yield f(`Math.max(0, ${0===o?c:s})`);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()`."},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});let{isMethodCall:o6}=tk,o9="prefer-string-trim-start-end";var o7=K({create:()=>({CallExpression(e){if(!o6(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:o9,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()`."},fixable:"code",messages:{[o9]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});let{isParenthesized:se,getParenthesizedRange:st,toLocation:sr}=uc,su="no-unreadable-iife";var sn=K({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&se(t.callee.body,r))return{node:t,loc:sr(st(t.callee.body,r),r),messageId:su}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs."},hasSuggestions:!1,messages:{[su]:"IIFE with parenthesized arrow function body is considered unreadable."}}});let{switchCallExpressionToNewExpression:sa}=u6,si="throw-new-error",so=/^(?:[A-Z][\da-z]*)*Error$/;var ss=K({create:e=>({CallExpression(t){if(!("ThrowStatement"===t.parent.type&&t.parent.argument===t))return;let{callee:r}=t;if("Identifier"===r.type&&so.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&so.test(r.property.name))return{node:t,messageId:si,fix:r=>sa(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when throwing an error."},fixable:"code",messages:{[si]:"Use `new` when throwing an error."}}}),sd=/[|\\{}()[\]^$+*?.]/g,sl=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"}]]);let sc=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sd,"\\$&")},sf=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sp(e){return e?sm[e.type](e):""}var sm={RegExp:function(e){return"/"+sp(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sp).join("")},Disjunction:function(e){return sp(e.left)+"|"+sp(e.right)},Group:function(e){var t=sp(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},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(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=sp(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sp(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(sp).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sp(e.from)+"-"+sp(e.to)},Repetition:function(e){return""+sp(e.expression)+sp(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},sg={generate:sp},sy={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sh=sC(sy),sb={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"},sv=sC(sb),sx={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"},sE=sC(sx),sA={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"},sD=sC(sA);function sC(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 sS(e){return sx.hasOwnProperty(e)||sE.hasOwnProperty(e)}var sF=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 sw(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 s_=void 0,sk={},sP=void 0,sT=void 0;function sI(e,t){return sk.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 sB=[[-1,1,function(e,t){sT=sI(t,t),sP=e}],[0,4,function(e,t,r,u,n,a,i,o){sT=sI(n,o),sP=s1({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)},s3(n,o||i))}],[1,1,function(e,t){sT=sI(t,t),sP=e}],[1,0,function(){sT=null,sP=""}],[2,1,function(e,t){sT=sI(t,t),sP=e}],[2,2,function(e,t,r,u){sT=sI(r,u),sP=e+t}],[3,1,function(e,t){sT=sI(t,t),sP=e}],[4,1,function(e,t){sT=sI(t,t),sP=e}],[4,3,function(e,t,r,u,n,a){sT=sI(u,a);var i=null;n&&(i=s3(u||n,a||n)),sP=s1({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sT=sI(t,t),0===e.length){sP=null;return}sP=1===e.length?s1(e[0],sT):s1({type:"Alternative",expressions:e},sT)}],[6,0,function(){sT=null,sP=[]}],[6,2,function(e,t,r,u){sT=sI(r,u),sP=e.concat(t)}],[7,1,function(e,t){sT=sI(t,t),sP=s1(Object.assign({type:"Assertion"},e),sT)}],[7,2,function(e,t,r,u){sT=sI(r,u),sP=e,t&&(sP=s1({type:"Repetition",expression:e,quantifier:t},sT))}],[8,1,function(e,t){sT=sI(t,t),sP={kind:"^"}}],[8,1,function(e,t){sT=sI(t,t),sP={kind:"$"}}],[8,1,function(e,t){sT=sI(t,t),sP={kind:"\\b"}}],[8,1,function(e,t){sT=sI(t,t),sP={kind:"\\B"}}],[8,3,function(e,t,r,u,n,a){sT=sI(u,a),sP={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,u,n,a){sT=sI(u,a),sP={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,u,n,a){sT=sI(u,a),sP={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,u,n,a){sT=sI(u,a),sP={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sT=sI(t,t),sP=e}],[9,1,function(e,t){sT=sI(t,t),sP=e}],[9,1,function(e,t){sT=sI(t,t),sP=e}],[10,1,function(e,t){sP=sH(e,"simple",sT=sI(t,t))}],[10,1,function(e,t){sT=sI(t,t),(sP=sH(e.slice(1),"simple",sT)).escaped=!0}],[10,1,function(e,t){(sP=sH(e,"unicode",sT=sI(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sP=sH(e,"unicode",sT=sI(t,t))}],[10,1,function(e,t){sP=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&&sG.isGeneralCategoryValue(n),o=-1===u&&sG.isBinaryPropertyName(n);if(i)a=n,n="General_Category";else if(o)a=n;else{if(!sG.isValidName(n))throw SyntaxError("Invalid unicode property name: "+n+".");if(a=e.slice(u+1,-1),!sG.isValidValue(n,a))throw SyntaxError("Invalid "+n+" unicode property value: "+a+".")}return s1({type:"UnicodeProperty",name:n,value:a,negative:r,shorthand:i,binary:o,canonicalName:sG.getCanonicalName(n)||n,canonicalValue:sG.getCanonicalValue(a)||a},t)}(e,sT=sI(t,t))}],[10,1,function(e,t){sP=sH(e,"control",sT=sI(t,t))}],[10,1,function(e,t){sP=sH(e,"hex",sT=sI(t,t))}],[10,1,function(e,t){sP=sH(e,"oct",sT=sI(t,t))}],[10,1,function(e,t){var r,u;r=sT=sI(t,t),sP=(u=Number(e.slice(1)))>0&&u<=sU?s1({type:"Backreference",kind:"number",number:u,reference:u},r):sH(e,"decimal",r)}],[10,1,function(e,t){sP=sH(e,"meta",sT=sI(t,t))}],[10,1,function(e,t){sP=sH(e,"meta",sT=sI(t,t))}],[10,1,function(e,t){sT=sI(t,t),sP=function(e,t){var r=e.slice(3,-1),u=s0(r);if(sq.hasOwnProperty(u))return s1({type:"Backreference",kind:"name",number:sq[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=[sH(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(sK))||(c=e.match(sX))?(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=c[0].length,endColumn:o+=c[0].length}),l.push(sH(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(sH(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){sT=sI(t,t),sP=e}],[11,0],[12,1,function(e,t){sT=sI(t,t),sP=e}],[12,2,function(e,t,r,u){sT=sI(r,u),e.greedy=!1,sP=e}],[13,1,function(e,t){sP=s1({type:"Quantifier",kind:e,greedy:!0},sT=sI(t,t))}],[13,1,function(e,t){sP=s1({type:"Quantifier",kind:e,greedy:!0},sT=sI(t,t))}],[13,1,function(e,t){sP=s1({type:"Quantifier",kind:e,greedy:!0},sT=sI(t,t))}],[13,1,function(e,t){sT=sI(t,t);var r=sV(e);sP=s1({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sT)}],[13,1,function(e,t){sT=sI(t,t),sP=s1({type:"Quantifier",kind:"Range",from:sV(e)[0],greedy:!0},sT)}],[13,1,function(e,t){sT=sI(t,t);var r=sV(e);sP=s1({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sT)}],[14,1,function(e,t){sT=sI(t,t),sP=e}],[14,1,function(e,t){sT=sI(t,t),sP=e}],[15,3,function(e,t,r,u,n,a){sT=sI(u,a);var i=String(e),o=s0(i);if(!sk.options.allowGroupNameDuplicates&&sq.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sq[o]=e.groupNumber,sP=s1({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sT)}],[15,3,function(e,t,r,u,n,a){sT=sI(u,a),sP=s1({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sT)}],[16,3,function(e,t,r,u,n,a){sP=s1({type:"Group",capturing:!1,expression:t},sT=sI(u,a))}],[17,3,function(e,t,r,u,n,a){sP=s1({type:"CharacterClass",negative:!0,expressions:t},sT=sI(u,a))}],[17,3,function(e,t,r,u,n,a){sP=s1({type:"CharacterClass",expressions:t},sT=sI(u,a))}],[18,0,function(){sT=null,sP=[]}],[18,1,function(e,t){sT=sI(t,t),sP=e}],[19,1,function(e,t){sT=sI(t,t),sP=[e]}],[19,2,function(e,t,r,u){sT=sI(r,u),sP=[e].concat(t)}],[19,4,function(e,t,r,u,n,a,i,o){sT=sI(n,o),sZ(e,r),sP=[s1({type:"ClassRange",from:e,to:r},s3(n,i))],u&&(sP=sP.concat(u))}],[20,1,function(e,t){sT=sI(t,t),sP=e}],[20,2,function(e,t,r,u){sT=sI(r,u),sP=[e].concat(t)}],[20,4,function(e,t,r,u,n,a,i,o){sT=sI(n,o),sZ(e,r),sP=[s1({type:"ClassRange",from:e,to:r},s3(n,i))],u&&(sP=sP.concat(u))}],[21,1,function(e,t){sP=sH(e,"simple",sT=sI(t,t))}],[21,1,function(e,t){sT=sI(t,t),sP=e}],[22,1,function(e,t){sT=sI(t,t),sP=e}],[22,1,function(e,t){sP=sH(e,"meta",sT=sI(t,t))}]],sR={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"},sN=[{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"}],sL=[],sj=void 0,sO=[[/^#[^\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 sY(s_.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&&"\\-"===s_);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+s_);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 sY(s_=s_.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"}]],sM={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]},s$={type:"$",value:""};sj={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(s$);for(var e=this._string.slice(this._cursor),t=sM[this.getCurrentState()],r=0;r<t.length;r++){var u=sO[t[r]],n=this._match(e,u[0]);if(""===e&&""===n&&this._cursor++,null!==n){(s_=n).length;var a=u[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var i,o=a.slice(1);a=a[0],o.length>0&&(i=this._tokensQueue).unshift.apply(i,sw(o))}return this.onToken(this._toToken(a,s_))}}if(this.isEOF())return this._cursor++,s$;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}},sk.lexer=sj,sk.tokenizer=sj,sk.options={captureLocations:!0};var sz={setOptions:function(e){return sk.options=e,this},getOptions:function(){return sk.options},parse:function(e,t){if(!sj)throw Error("Tokenizer instance wasn't specified.");sj.initString(e);var r=sk.options;t&&(sk.options=Object.assign({},sk.options,t)),sz.onParseBegin(e,sj,sk.options),sL.length=0,sL.push(0);var u=sj.getNextToken(),n=null;do{u||(sk.options=r,s4());var a=sL[sL.length-1],i=sR[u.type];sN[a].hasOwnProperty(i)||(sk.options=r,s2(u));var o=sN[a][i];if("s"===o[0]){var s=null;sk.options.captureLocations&&(s={startOffset:u.startOffset,endOffset:u.endOffset,startLine:u.startLine,endLine:u.endLine,startColumn:u.startColumn,endColumn:u.endColumn}),n=this.onShift(u),sL.push({symbol:sR[n.type],semanticValue:n.value,loc:s},Number(o.slice(1))),u=sj.getNextToken()}else if("r"===o[0]){var d=sB[o.slice(1)],l="function"==typeof d[2],c=l?[]:null,f=l&&sk.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){sL.pop();var m=sL.pop();l&&(c.unshift(m.semanticValue),f&&f.unshift(m.loc))}var g={symbol:d[0]};if(l){s_=n?n.value:null,n&&n.value.length;var y=null!==f?c.concat(f):c;d[2].apply(d,sw(y)),g.semanticValue=sP,f&&(g.loc=sT)}var h=sL[sL.length-1],b=d[0];sL.push(g,sN[h][b])}else if("acc"===o){sL.pop();var v=sL.pop();if((1!==sL.length||0!==sL[0]||sj.hasMoreTokens())&&(sk.options=r,s2(u)),v.hasOwnProperty("semanticValue"))return sk.options=r,sz.onParseEnd(v.semanticValue),v.semanticValue;return sz.onParseEnd(),sk.options=r,!0}}while(sj.hasMoreTokens()||sL.length>1)},setTokenizer:function(e){return sj=e,sz},getTokenizer:function(){return sj},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sU=0,sq={},sW="";function sV(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 sZ(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")}sz.onParseBegin=function(e,t){sW=e,sU=0,sq={};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"))},sz.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sU),e};var sG={isValidName:function(e){return sy.hasOwnProperty(e)||sh.hasOwnProperty(e)||sb.hasOwnProperty(e)||sv.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sS(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sA.hasOwnProperty(t)||sD.hasOwnProperty(t))},isGeneralCategoryValue:sS,isBinaryPropertyName:function(e){return sb.hasOwnProperty(e)||sv.hasOwnProperty(e)},getCanonicalName:function(e){return sh.hasOwnProperty(e)?sh[e]:sv.hasOwnProperty(e)?sv[e]:null},getCanonicalValue:function(e){return sE.hasOwnProperty(e)?sE[e]:sD.hasOwnProperty(e)?sD[e]:sv.hasOwnProperty(e)?sv[e]:null}};function sH(e,t,r){var u=void 0,n=void 0;switch(t){case"decimal":u=String.fromCodePoint(n=Number(e.slice(1)));break;case"oct":u=String.fromCodePoint(n=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sF(e.split("\\u").slice(1),2),i=a[0],o=a[1];u=String.fromCodePoint(n=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((n=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);u=String.fromCodePoint(n)}break;case"meta":switch(e){case"\\t":n=(u=" ").codePointAt(0);break;case"\\n":n=(u="\n").codePointAt(0);break;case"\\r":n=(u="\r").codePointAt(0);break;case"\\v":n=(u="\v").codePointAt(0);break;case"\\f":n=(u="\f").codePointAt(0);break;case"\\b":n=(u="\b").codePointAt(0);case"\\0":u="\0",n=0;case".":u=".",n=NaN;break;default:n=NaN}break;case"simple":n=(u=e).codePointAt(0)}return s1({type:"Char",value:e,kind:t,symbol:u,codePoint:n},r)}var sK=/^\\u[0-9a-fA-F]{4}/,sX=/^\\u\{[0-9a-fA-F]{1,}\}/,sJ=/\\u\{[0-9a-fA-F]{1,}\}/;function sY(e,t){if(sJ.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var sQ=/\\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 s0(e){return e.replace(RegExp(sQ,"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 s1(e,t){return sk.options.captureLocations&&(e.loc={source:sW.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 s3(e,t){return sk.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function s2(e){"$"===e.type&&s4(),sj.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function s4(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var s5=sz.parse.bind(sz);sz.parse=function(e,t){return s5(""+e,t)},sz.setOptions({captureLocations:!1});var s8=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}}(),s6="expressions",s9="expression",s7=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=u,this.index=n}return s8(e,[{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(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=void 0;return null!=r?(u||(u=s6),this._enforceProp(u),this.node[u][r]=t,n=e.getForNode(t,this,u,r)):(u||(u=s9),this._enforceProp(u),this.node[u]=t,n=e.getForNode(t,this,u,null)),n}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=s6),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s6;this._enforceProp(u),this.node[u].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.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(t,r){for(var u=e.getForNode(t),n=0;n<t[r].length;n++)e.getForNode(t[r][n],u,r,n).index=n}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,s6,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,s9):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,de)===JSON.stringify(e.node,de)}},{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:de,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,u,-1==n?null:n));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==u&&(a.property=u),n>=0&&(a.index=n),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function de(e,t){if("loc"!==e)return t}s7.initRegistry(),s7.traversingIndexStack=[];var dt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(e,t,r,u){var n=s7.getForNode(t);return s7.getForNode(e,n,r,u)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),s7.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,u=t.post,n=t.skipProperty;!function e(t,a,i,o){if(t&&"string"==typeof t.type){var s=void 0;if(r&&(s=r(t,a,i,o)),!1!==s){for(var d in a&&a[i]&&(t=isNaN(o)?a[i]:a[i][o]),t)if(t.hasOwnProperty(d)){if(n?n(d,t):"$"===d[0])continue;var l=t[d];if(Array.isArray(l)){var c=0;for(s7.traversingIndexStack.push(c);c<l.length;)e(l[c],t,d,c),c=s7.updateTraversingIndex(1);s7.traversingIndexStack.pop()}else e(l,t,d)}}u&&u(t,a,i,o)}}(e,null)}(e,{pre:function(e,n,a,i){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[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,n,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,n,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,n,a,i){if(e){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[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,n,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}})},dr=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}}(),du=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return dr(e,[{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=sg.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sg.generate(this._ast)),this._string}}]),e}(),dn=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sz.parse(e,{captureLocations:!0})),dt(r,t),new du(r)},da={dotAll:{_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:{_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:{RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},di="A".codePointAt(0),ds="Z".codePointAt(0),dd="a".codePointAt(0),dl="z".codePointAt(0),dc="0".codePointAt(0),df="9".codePointAt(0),dp="A".codePointAt(0),dm="Z".codePointAt(0),dg=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},dy=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 dh(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function db(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}}function dv(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 dx=[function(e){return dE(e," ")}].concat(dv(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dA(t,e)}})),dv([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dD(t,e)}})),[function(e){return"ClassRange"===e.type&&dD(e.from,8192)&&dD(e.to,8202)}]);function dE(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 dA(e,t){return dE(e,t,"meta")}function dD(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dC(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 dS(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function dF(e,t){var r=dw(e),u=dw(t);if(r===u){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return dw(e.to)-dw(t.to);if(d_(e)&&d_(t)||dk(e)&&dk(t))return e.value<t.value?-1:1}return r-u}function dw(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 d_(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 dk(e){return"Char"===e.type&&"control"===e.kind}function dP(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 dT(e){return e.codePoint>=48&&e.codePoint<=57}function dI(e,t){return dT(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dB(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dI(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dR={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function dN(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}function dL(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 dj=new Map([["charSurrogatePairToSingleUnicode",{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",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(u=r.from,n=r.to,u.codePoint>=dc&&u.codePoint<=df&&n.codePoint>=dc&&n.codePoint<=df||u.codePoint>=di&&u.codePoint<=ds&&n.codePoint>=di&&n.codePoint<=ds||u.codePoint>=dd&&u.codePoint<=dl&&n.codePoint>=dd&&n.codePoint<=dl))&&(a=t.codePoint)>=32&&a<=126){var u,n,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}}],["charCaseInsensitiveLowerCaseTransform",{_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=e.node,n=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&(t=n.from,r=n.to,!(t.codePoint>=dp)||!(t.codePoint<=dm)||!(r.codePoint>=dp)||!(r.codePoint<=dm)))return;this._AZClassRanges.add(n)}var a=u.symbol.toLowerCase();a!==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 u={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},n=u.lead,a=u.trail;return"\\u"+"0".repeat(4-n.length)+n+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,u),u.symbol=a,u.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{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",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var u=db(r.node.quantifier),n=u.from,a=u.to,i=db(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dh(r.node.quantifier)&&!dh(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=n+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dh(r.node.quantifier)||dh(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;dy(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,u;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(u=e.node).from&&1===u.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{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",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,u,n,a,i,o,s,d;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,u=e.node,n=null,a=null,i=null,o=null,s=null,d=null,u.expressions.forEach(function(u,l){dA(u,"\\d")?n=e.getChild(l):"ClassRange"===u.type&&"a"===u.from.value&&"z"===u.to.value?a=e.getChild(l):"ClassRange"===u.type&&"A"===u.from.value&&"Z"===u.to.value?i=e.getChild(l):"Char"===u.type&&"_"===u.value&&"simple"===u.kind?o=e.getChild(l):t&&r&&dD(u,383)?s=e.getChild(l):t&&r&&dD(u,8490)&&(d=e.getChild(l))}),n&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(n.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),i&&i.remove(),o.remove(),s&&s.remove(),d&&d.remove()),function(e){var t=e.node;if(!(t.expressions.length<dx.length)&&dx.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dA(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dx.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{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",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,u,n,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,u=e.index,("CharacterClass"!==(n=e.parent).type&&"ClassRange"!==n.type?"{"===r?function(e,t){if(null==e)return!1;var r=dC(e+1,t),u=e+r+1,n=u<t.expressions.length&&t.expressions[u];if(r){if(dS(n,"}"))return!0;if(dS(n,","))return r=dC(u+1,t),dS(n=(u=u+r+1)<t.expressions.length&&t.expressions[u],"}")}return!1}(u,n):"}"===r?function(e,t){if(null==e)return!1;var r=dC(e-1,t,!0),u=e-r-1,n=u>=0&&t.expressions[u];return!!(r&&dS(n,"{"))||!!dS(n,",")&&(r=dC(u-1,t,!0),n=(u=u-r-1)<t.expressions.length&&t.expressions[u],r&&dS(n,"{"))}(u,n):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===u&&!n.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){d_(e)&&r.push(e.value)}),t.sort(dF);for(var u=0;u<t.length;u++){var n,a=t[u];if(function(e,t,r){for(var u=0;u<t.length;u++)if(function e(t,r,u){return"ClassRange"===t.type?e(t.from,r,u)&&e(t.to,r,u):!!("\\S"===r&&(d_(t,"\\w")||d_(t,"\\d"))||"\\D"===r&&(d_(t,"\\W")||d_(t,"\\s"))||"\\w"===r&&d_(t,"\\d")||"\\W"===r&&d_(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dP(t):"\\S"===r?!dP(t):"\\d"===r?dT(t):"\\D"===r?!dT(t):"\\w"===r?dI(t,u):"\\W"===r&&!dI(t,u))}(e,t[u],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(dB(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[u-1])||(n=t[u+1])&&"ClassRange"===n.type&&dB(a)&&n.from.codePoint===a.codePoint+1&&(n.from=a,1))t.splice(u,1),u--;else{var i=function(e,t,r){if(!dB(e))return 0;for(var u=0;t>0;){var n=r[t],a=r[t-1];if(dB(a)&&a.codePoint===n.codePoint-1)u++,t--;else break}return u>1?(r[t]={type:"ClassRange",from:r[t],to:e},u):0}(a,u,t);t.splice(u-i+1,i),u-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},u=dg(t).filter(function(e){var t=e?s7.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(u.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dR[r.type]){var u=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)})}(t,u)&&u.size){var n={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};dR[r.type](e.getParent(),n)}}}}],["removeEmptyGroup",{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",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();if(!t.capturing&&u&&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)&&("Disjunction"!==u.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var n=e.getParent();"Alternative"===n.node.type&&n.replace({type:"Alternative",expressions:[].concat(dN(r.expressions.slice(0,e.index)),dN(u.node.expressions),dN(r.expressions.slice(e.index+1)))})}else e.replace(u.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var u=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var u=e.node,n=Math.ceil(r/2),a=0;a<n;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=s7.getForNode({type:"Alternative",expressions:[].concat(dL(u.expressions.slice(r-a,r)),[t.node])}),s=s7.getForNode({type:"Alternative",expressions:[].concat(dL(u.expressions.slice(i,r-a)))})),o.hasEqualSource(s)){for(var d=0;d<2*a+1;d++)e.getChild(i).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),i}a++}return r}(e,u,r)))>=t.expressions.length||(u=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var u=e.node,n=0;n<r;){var a=e.getChild(n);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var i=a.getChild(),o=void 0;if("Group"!==i.node.type||i.node.capturing||(i=i.getChild()),n+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=s7.getForNode({type:"Alternative",expressions:[].concat(dL(u.expressions.slice(n+1,r+1)))}),i.hasEqualSource(o)){for(var s=n;s<r;s++)e.getChild(n+1).remove();return dy(a.node.quantifier),n}}n++}return r}(e,u,r)))>=t.expressions.length))break;u=e.getChild(r),r=Math.max(1,function(e,t,r){var u=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var n=t.getChild(),a=void 0;"Group"!==n.node.type||n.node.capturing||(n=n.getChild());var i=void 0;if("Alternative"===n.node.type?(i=n.node.expressions.length,a=s7.getForNode({type:"Alternative",expressions:[].concat(dL(u.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(n)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return dy(t.node.quantifier),r-i}}return r}(e,u,r)),r++}}}]]),dO=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},dM=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")},d$=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}}(),dz=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return d$(e,[{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&&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 e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function u(n){if(!t.has(n)){t.add(n),n.number=t.size,e._transitionTable[n.number]={},n.accepting&&e._acceptingStates.add(n);var a=n.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,l=a[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c=d.value,f=dM(c,2),p=f[0],m=f[1],g=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;u(E),g.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[n.number][p]=g}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].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}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),dU=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 dq(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 dW=null,dV=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 dZ(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 dG=function(e){var t=e.getTransitionTable(),r=Object.keys(t),u=e.getAlphabet(),n=e.getAcceptingStateNumbers();dW={};var a=new Set;r.forEach(function(e){e=Number(e),n.has(e)?dW[e]=n:(a.add(e),dW[e]=a)});var i=[[a,n].filter(function(e){return e.size>0})],o=void 0,s=void 0;for(o=i[i.length-1],s=i[i.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var u=e[r],n=t[r];if(u.size!==n.size||[].concat(dq(u)).sort().join(",")!==[].concat(dq(n)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,n=!1,a=void 0;try{for(var d,l=o[Symbol.iterator]();!(r=(d=l.next()).done);r=!0){var c=d.value,f={},p=Array.isArray(c)?c:Array.from(c),m=p[0],g=p.slice(1);f[m]=new Set([m]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,F=Object.keys(f)[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;if(function(e,t,r,u){var n=!0,a=!1,i=void 0;try{for(var o,s=u[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;if(!function(e,t,r,u){if(!dW[e]||!dW[t])return!1;var n=r[e][u],a=r[t][u];return!n&&!a||dW[e].has(n)&&dW[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,w,t,u)){f[w].add(E),f[E]=f[w];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){n=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw a}}dW=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dq(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,l=1;o.forEach(function(e){return d.set(e,l++)});var c={},f=new Set,p=!0,m=!1,g=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dU(b,2),x=v[0],E=v[1];c[E]={};var A=!0,D=!1,C=void 0;try{for(var S,F=u[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;!function(e,t){var r=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;n.has(s)&&f.add(t)}}catch(e){u=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw a}}}(x,E);var _=void 0,k=!0,P=!1,T=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][w]);k=!0);}catch(e){P=!0,T=e}finally{try{!k&&B.return&&B.return()}finally{if(P)throw T}}_&&(c[E][w]=d.get(dW[_]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}catch(e){m=!0,g=e}finally{try{!p&&h.return&&h.return()}finally{if(m)throw g}}return e.setTransitionTable(c),e.setAcceptingStateNumbers(f),e},dH=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return dV(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dG(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 t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var u=[t[r[0]]["ε*"]],n=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};u.length>0;){var o=u.shift(),s=o.join(",");i[s]={};var d=!0,l=!1,c=void 0;try{for(var f,p=n[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var m=f.value,g=[];!function(t){var r=!0,u=!1,n=void 0;try{for(var i,o=a[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){u=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw n}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][m];if(E){var A=!0,D=!1,C=void 0;try{for(var S,F=E[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;t[w]&&g.push.apply(g,dZ(t[w]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(g),k=[].concat(dZ(_));if(k.length>0){var P=k.join(",");i[s][m]=P,i.hasOwnProperty(P)||u.unshift(k)}}}catch(e){l=!0,c=e}finally{try{!d&&p.return&&p.return()}finally{if(l)throw c}}}return this._transitionTable=this._remapStateNumbers(i)}},{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)}}]),e}(),dK=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}}(),dX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return dK(e,[{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}}]),e}(),dJ=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}}(),dY=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),dJ(t,[{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 r=!0,u=!1,n=void 0;try{for(var a,i=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),l=!0,c=!1,f=void 0;try{for(var p,m=d[Symbol.iterator]();!(l=(p=m.next()).done);l=!0)if(p.value.matches(s))return!0}catch(e){c=!0,f=e}finally{try{!l&&m.return&&m.return()}finally{if(c)throw f}}var g=!0,y=!1,h=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(g=(b=v.next()).done);g=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,h=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw h}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var u=!0,n=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(u=(i=o.next()).done);u=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}}(),this._epsilonClosure}}]),t}(dX);function dQ(e){var t=new dY,r=new dY({accepting:!0});return new dz(t.addTransition(e,r),r)}var d0={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d,l=o.value;(d=e).out.accepting=!1,l.out.accepting=!0,d.out.addTransition("ε",l.in),e=new dz(d.in,l.out)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},char:dQ,e:function(){return dQ("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;e=function(e,t){var r=new dY,u=new dY;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),u.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",u),t.out.addTransition("ε",u),new dz(r,u)}(e,d)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new dY,r=new dY({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dz(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},d1=d0.alt,d3=d0.char,d2=d0.or,d4=d0.rep,d5=d0.plusRep,d8=d0.questionRep;function d6(e){if(e&&!d9[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d9[e.type](e):""}var d9={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return d6(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(d6);return d1.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 d2(d6(e.left),d6(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d4(d6(e.expression));case"+":return d5(d6(e.expression));case"?":return d8(d6(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 d3(e.value)},Group:function(e){return d6(e.expression)}},d7=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sz.parse(e,{captureLocations:!0})),d6(t)},le=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}}(),lt=function(){function e(t,r){var u=r.flags,n=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=n,this.flags=u,this.source=a||t.source,this.dotAll=u.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return le(e,[{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}}]),e}(),lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(da),u=void 0,n={};return r.forEach(function(t){if(!da.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(da).join(", "));var r=da[t];e=(u=dn(e,r)).getAST(),"function"==typeof r.getExtra&&(n[t]=r.getExtra())}),u.setExtra(n),u},lu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,u=void 0===r?[]:r,n=t.blacklist,a=void 0===n?[]:n,i=(u.length>0?u:Array.from(dj.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sz.parse(e));var s=new du(o),d=void 0;do d=s.toString(),o=dO(s.getAST()),i.forEach(function(e){if(!dj.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dj.keys()).join(", "));var t=dj.get(e),r=dn(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dO(s.getAST()))});while(s.toString()!==d);return s};let ln=(e,t)=>{if(t=t||"","string"!=typeof e)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof t}\``);for(let r of sl){let u=r[0],n=r[1];sf(t,n.flags)&&(e=e.replace(RegExp(sc(u),"g"),n.value))}return e},{optimize:la}={parser:sz,fa:{NFA:dz,DFA:dH,builders:d0,toNFA:function(e){return d7(e)},toDFA:function(e){return new dH(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:du,parse:function(e,t){return sz.parse(""+e,t)},traverse:function(e,t,r){return dt(e,t,r)},transform:function(e,t){return dn(e,t)},generate:function(e){return sg.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return lu(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return lr(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),u=r.getExtra();e=u.namedCapturingGroups?new lt(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:u.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:li,isNewExpression:lo,isRegexLiteral:ls}=tk,ld="better-regex",ll="better-regex/parse-error";var lc=K({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!ls(e))return;let{raw:t,regex:u}=e;if(u.flags.includes("u")||u.flags.includes("v"))return;let n=t;try{n=la(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:ll,data:{original:t,error:r.message}}}if(t===n)return;let a={node:e,messageId:ld,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},NewExpression(e){if(!lo(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!li(t))return;let u=t.value,n=ln(u,li(r)?r.value:"");if(u!==n)return{node:e,messageId:ld,data:{original:u,optimized:n},fix:e=>e.replaceText(t,rk(n,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[ld]:"{{original}} can be optimized to {{optimized}}.",[ll]:"Problem parsing {{original}}: {{error}}"}}});let{replaceTemplateElement:lf}=u6,{isRegexLiteral:lp,isStringLiteral:lm}=tk,lg="escape-case",ly=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,lh=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,lb=({node:e,original:t,regex:r=ly,fix:u})=>{let n=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(n!==t)return{node:e,messageId:lg,fix:t=>u?u(t,n):t.replaceText(e,n)}};var lv=K({create:e=>{e.on("Literal",e=>{if(lm(e))return lb({node:e,original:e.raw})}),e.on("Literal",e=>{if(lp(e))return lb({node:e,original:e.raw,regex:lh})}),e.on("TemplateElement",e=>lb({node:e,original:e.value.raw,fix:(t,r)=>lf(t,e,r)}))},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values."},fixable:"code",messages:{[lg]:"Use uppercase characters for the value of the escape sequence."}}});let{replaceTemplateElement:lx}=u6,{isStringLiteral:lE,isRegexLiteral:lA}=tk,lD="no-hex-escape";function lC(e,t,r){let u=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==u)return{node:t,messageId:lD,fix:e=>"TemplateElement"===t.type?lx(e,t,u):e.replaceText(t,u)}}var lS=K({create:e=>({Literal(t){if(lE(t)||lA(t))return lC(e,t,t.raw)},TemplateElement:t=>lC(e,t,t.value.raw)}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes."},fixable:"code",messages:{[lD]:"Use Unicode escapes instead of hexadecimal escapes."}}});let{getPropertyName:lF,ReferenceTracker:lw}=e7,{fixSpaceAroundKeyword:l_}=u6,{isMemberExpression:lk,isMethodCall:lP}=tk,lT=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var lI=K({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let u=new WeakMap;for(let{node:r,path:n}of new lw(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(lT.map(e=>[e,{[lw.READ]:!0}]))))u.set(r,n);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let u;lP(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?u=e.arguments[0]:lP(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(u=e.callee.object);let{isGlobalReference:n,constructorName:a,methodName:i}=function(e,{sourceCode:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!lk(e,{optional:!1}))return;let u=e.object;if(!(("ArrayExpression"!==u.type||0!==u.elements.length)&&("ObjectExpression"!==u.type||0!==u.properties.length)))return{constructorName:"ArrayExpression"===u.type?"Array":"Object",methodName:lF(e,t.getScope(e))}}(u,{sourceCode:t,globalReferences:r})??{};if(a)return{node:u,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(n){yield r.replaceText(u,`${a}.prototype.${i}`);return}if(lk(u)){let n=u.object;yield r.replaceText(n,`${a}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*l_(r,e,t))}}}}(e,{sourceCode:t,globalReferences:u})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance."},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});let{getStaticValue:lB}=e7,{isCallOrNewExpression:lR}=tk,lN="missing-message",lL="message-is-empty-string",lj="message-is-not-a-string",lO=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var lM=K({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!lR(t,{names:lO,optional:!1}))return;let r=e.sourceCode.getScope(t);if(rZ(r,t.callee))return;let u=t.callee.name,n="AggregateError"===u?1:0,a=t.arguments;if(a.some((e,t)=>t<=n&&"SpreadElement"===e.type))return;let i=a[n];if(!i)return{node:t,messageId:lN,data:{constructorName:u}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:lj};let o=lB(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:lj}:""===s?{node:i,messageId:lL}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error."},messages:{[lN]:"Pass a message to the `{{constructorName}}` constructor.",[lL]:"Error message should not be an empty string.",[lj]:"Error message should be a string."}}});let{checkVueTemplate:l$}=ol,{getParenthesizedRange:lz}=tl,{replaceNodeOrTokenAndSpacesBefore:lU,fixSpaceAroundKeyword:lq}=u6,lW=e=>"instanceof"===e.value&&"Keyword"===e.type,lV="no-instanceof-array";var lZ=K({create:l$(e=>{let{sourceCode:t}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:r,right:u}=e,n=t,a=n.getTokenAfter(r,lW);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(n=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,lW)),{node:a,messageId:lV,*fix(i){yield*lq(i,e,t);let o=lz(r,n);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*lU(a,"",i,t,n),yield*lU(u,"",i,t,n)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`."},fixable:"code",messages:{[lV]:"Use `Array.isArray()` instead of `instanceof Array`."}}});let{isNewExpression:lG}=tk,lH="prefer-type-error",lK=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"]),lX=new Set(["isNaN","isFinite"]),lJ=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&lK.has(e.name)||!1===r&&lX.has(e.name)),lY=e=>e.parent&&e.parent.body&&1===e.parent.body.length,lQ=(e,t)=>!!lJ(e.property,t,!0)||"MemberExpression"===e.object.type&&lQ(e.object,t),l0=(e,t)=>{switch(e.type){case"Identifier":return lJ(e,t,!1);case"MemberExpression":return lQ(e,t);case"CallExpression":return l0(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&l0(e.argument);case"BinaryExpression":return"instanceof"===e.operator||l0(e.left,t)||l0(e.right,t);case"LogicalExpression":return l0(e.left,t)&&l0(e.right,t);default:return!1}},l1=e=>"IfStatement"===e.type&&l0(e.test);var l3=K({create:()=>({ThrowStatement(e){if(lG(e.argument,{name:"Error"})&&lY(e)&&e.parent.parent&&l1(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:lH,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions."},fixable:"code",messages:{[lH]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});let{isCallOrNewExpression:l2}=tk,l4="consistentDestructuring",l5="consistentDestructuringSuggest",l8=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},l6=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var l9=K({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&l8(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||l2(e.parent)&&e.parent.callee===e||rR(e))return;let u=r.get(t.getText(e.object));if(!u)return;let{scope:n,objectPattern:a}=u,i=t.getScope(e);if(!l6(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||ra(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:l4};let p=f?f.value.name:c;return{node:e,messageId:l4,suggest:[{messageId:l5,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."},fixable:"code",hasSuggestions:!0,messages:{[l4]:"Use destructured variables over properties.",[l5]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),l7=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];let ce=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...l7],{GlobalReferenceTracker:ct}=a3,cr=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:cu,switchNewExpressionToCallExpression:cn}=u6;var ca=K({create:e=>{let{sourceCode:t}=e,r=new ct({objects:cr,type:ct.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=function*(t){yield*cn(e,r,t)}),u})(e,t)}),u=new ct({objects:ce,type:ct.CALL,handle:e=>(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}return{node:e,messageId:"enforce",data:{name:t},fix:t=>cu(e,r,t)}})(e,t)});return{*"Program:exit"(e){let n=t.getScope(e);yield*r.track(n),yield*u.track(n)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`."},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});let{isOpeningParenToken:ci}=e7,{hasSideEffect:co,isCommaToken:cs,isSemicolonToken:cd}=e7,cl=(e,t)=>{let r=t.getTokenAfter(e.callee,ci),u=t.getLastToken(e);return t.text.slice(r.range[1],u.range[0])},{isNodeMatches:cc}=tB,cf=function(e,t){let{parent:r}=e;for(let u of t.visitorKeys[r.type]||Object.keys(r)){let t=r[u];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:cp}=tk,cm="error",cg="suggestion",cy=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&cp(e,{method:"push",optionalCall:!1,optionalMember:!1});var ch=K({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:u}=e;return{CallExpression(e){if(!cy(e))return;let t=e.callee.object;if(cc(t,r))return;let n=function(e,t){let r=cf(e.parent,t)?.expression;if(cy(r))return r}(e,u);if(!n||!rV(n.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:cm},o=function*(t){if(a.length>0){let r=cl(e,u),[a,i]=u.getLastTokens(n,2);yield cs(a)?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,n.arguments.length>0?`, ${r}`:r)}let r=n.parent,i=e.parent,o=!cd(u.getLastToken(r))&&cd(u.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>co(e,u))?i.suggest=[{messageId:cg,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[cm]:"Do not call `Array#push()` multiple times.",[cg]:"Merge with previous one."}}});let{isStaticRequire:cb,isMethodCall:cv,isLiteral:cx}=tk,cE="no-process-exit",cA=e=>cx(e,"node:worker_threads")||cx(e,"worker_threads");var cD=K({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,u=[];e.on("CallExpression",e=>{cb(e)&&cA(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&cA(e.source)&&(r=!0)}),e.on("CallExpression",e=>{cv(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&&cv(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:cE}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`."},messages:{[cE]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}),cC=function(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}.
4
- Please open an issue at ${i}.`)};let{isSemicolonToken:cS}=e7,cF=function(e,t){let{loc:r,body:u}=e,n=t.getTokenBefore(u),{start:a}=r,{end:i}=n.loc;return{start:a,end:i}},{removeSpacesAfter:cw}=u6,c_="no-static-only-class",ck=({type:e,value:t})=>"Punctuator"===e&&"="===t,cP=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,cT=e=>"PropertyDefinition"===e.type,cI=e=>"MethodDefinition"===e.type;var cB=K({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!(!cT(e)&&!cI(e)||!r||t||"PrivateIdentifier"===o.type||u||n||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:cF(t,r),messageId:c_,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=cP(e);if(!d||!u){for(let e of n.body)if(cT(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(u){let a=t.getFirstToken(e);if(cC(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&n.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],n.range[0]).trim()){yield u.replaceText(a,"{");let e=t.getFirstToken(n);yield u.remove(e)}else yield u.replaceText(a,""),yield cw(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 u=t.getFirstToken(e);cC(u,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(u),yield cw(u,t,r);let n=cT(e)?t.getLastToken(e):t.getTokenAfter(e),a=cS(n);if(cT(e)){let{key:u,value:i}=e;if(i){let e=t.getTokenAfter(u,ck);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(n,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(n,","):r.insertTextAfter(e,",")}(e,t,u)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members."},fixable:"code",messages:{[c_]:"Use an object instead of a class with only static members."}}});let{isParenthesized:cR}=e7,{fixSpaceAroundKeyword:cN}=u6,cL="no-unreadable-array-destructuring",cj=(e,t,r)=>null===e&&null===r[t+1];var cO=K({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:u}=e;if(r.length<3||!r.some((e,t,r)=>cj(e,t,r)))return;let n={node:e,messageId:cL},a=r.filter(e=>null!==e);if("VariableDeclarator"===u.type&&u.id===e&&null!==u.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(n.fix=function*(n){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield n.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,l=u.init;!cR(l,t)&&r8(l,t)?(yield n.insertTextBefore(l,"("),yield n.insertTextAfter(u,`)${d}`)):yield n.insertTextAfter(u,d),yield*cN(n,e,t)})}return n}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring."},fixable:"code",messages:{[cL]:"Array destructuring may not contain consecutive ignored values."}}});let{isCommaToken:cM}=e7,{removeParentheses:c$,fixSpaceAroundKeyword:cz,addParenthesizesToReturnOrThrowExpression:cU}=u6,{isParenthesized:cq,isOnSameLine:cW}=uc,{isNewExpression:cV,isMethodCall:cZ,isCallOrNewExpression:cG}=tk,cH="spread-in-list",cK="iterable-to-array",cX="iterable-to-array-in-for-of",cJ="iterable-to-array-in-yield-star",cY="clone-array",cQ=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",c0={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*c1(e,t,r){let[u,n,a]=r.getFirstTokens(t,3);yield e.remove(u),yield e.remove(n);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),cM(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!cW(u,a)&&!cq(t,r)){yield*cU(e,s,r);return}yield*cz(e,t,r)}var c3=K({create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],e=>{if(!("SpreadElement"===e.parent.type&&e.parent.argument===e&&("ObjectExpression"===e.type&&"ObjectExpression"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"ArrayExpression"===e.type&&("ArrayExpression"===e.parent.parent.type&&e.parent.parent.elements.includes(e.parent)||cG(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,u=t.getFirstToken(r),n=r.parent.type;return{node:u,messageId:cH,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:c0[n]},*fix(r){let a;yield r.remove(u),yield*c$(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),cM(o)&&(yield r.remove(o)),"CallExpression"===n||"NewExpression"===n)for(let[u,n]of(a=t.getFirstToken(e),e.elements.map((r,u,n)=>{if(u===n.length-1){let r=t.getLastToken(e,{skip:1});return cM(r)?r:void 0}let i=t.getTokenAfter(r||a,cM);return a=i,i})).entries())e.elements[u]||(yield r.insertTextBefore(n,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!cQ(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(cV(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||cV(r,{names:l7,minimumArguments:1})||cZ(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||cZ(r,{objects:["Array",...l7],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||cZ(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let u="",n=cK;switch(r.type){case"ForOfStatement":n=cX;break;case"YieldExpression":n=cJ;break;case"NewExpression":u=`new ${r.callee.name}(…)`;break;case"CallExpression":u=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:n,data:{parentDescription:u},fix:r=>c1(r,e,t)}}),e.on("ArrayExpression",e=>{if(!cQ(e))return;let r=e.elements[0].argument;if(!(cZ(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||cZ(r,{method:"split",optionalCall:!1,optionalMember:!1})||cZ(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&cZ(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||cZ(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||cV(r,{name:"Array"})))return;let u={node:e,messageId:cY};return cV(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=>c1(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread."},fixable:"code",messages:{[cH]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[cK]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[cX]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[cJ]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[cY]:"Unnecessarily cloning an array."}}});let{isColonToken:c2}=e7,{isEmptyNode:c4}=tk,c5=function(e,t){let r=e.test||t.getFirstToken(e),u=t.getTokenAfter(r,c2);return{start:e.loc.start,end:u.loc.end}},c8="no-useless-switch-case/error",c6="no-useless-switch-case/suggestion",c9=e=>e.consequent.every(e=>c4(e));var c7=K({create:e=>({*SwitchStatement(t){let{cases:r}=t,u=r.filter(e=>null===e.test);if(1!==u.length)return;let[n]=u;if(n!==r.at(-1))return;let a=[];for(let e=r.length-2;e>=0;e--){let t=r[e];if(c9(t))a.unshift(t);else break}for(let t of a)yield{node:t,loc:c5(t,e.sourceCode),messageId:c8,suggest:[{messageId:c6,fix:e=>e.remove(t)}]}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements."},hasSuggestions:!0,messages:{[c8]:"Useless case in switch statement.",[c6]:"Remove this case."}}});let{isCommaToken:fe}=e7,{replaceNodeOrTokenAndSpacesBefore:ft}=u6,{isUndefined:fr,isFunction:fu}=tk,fn="no-useless-undefined",fa=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fi=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fa.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fo=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fs=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,fd=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fl=K({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{if(u){let r=fo(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fn,fix:r}},u={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},n=(e,r)=>ft(e,"",r,t);e.on("Identifier",e=>{if(fr(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>n(e,t),!0)}),e.on("Identifier",e=>{if(fr(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>n(e,t))}),u.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fr(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>ft(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fr(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return r(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),e.on("Identifier",t=>{if(fr(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let u=t.parent,{left:n}=u;yield r.removeRange([n.range[1],t.range[1]]),(n.typeAnnotation||fd(e))&&!n.optional&&fu(u.parent)&&u.parent.params.includes(u)&&(yield n.typeAnnotation?r.insertTextBefore(n.typeAnnotation,"?"):r.insertTextAfter(n,"?"))},!0)}),u.checkArguments&&e.on("CallExpression",e=>{if(fi(e.callee))return;let r=e.arguments;if(fs(e)&&1!==r.length)return;let u=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fr(t))u.unshift(t);else break}if(0===u.length)return;let n=u[0],a=u.at(-1);return{messageId:fn,loc:{start:n.loc.start,end:a.loc.end},fix(e){let i=n.range[0],o=a.range[1],s=r[r.length-u.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fe(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fn]:"Do not use useless `undefined`."}}});let{isBigIntLiteral:fc}=tk,ff="numeric-separators-style";function fp(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 fm={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fg=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});var fy=K({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:u,hexadecimal:n,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fm.binary,...r},"0o":{onlyIfContainsSeparator:t,...fm.octal,...u},"0x":{onlyIfContainsSeparator:t,...fm.hexadecimal,...n},"":{onlyIfContainsSeparator:t,...fm.number,...a}};return{Literal(e){if(!r4.isNumeric(e)||r4.isLegacyOctal(e))return;let{raw:t}=e,r=t,u="";fc(e)&&(r=t.slice(0,-1),u="n");let n=r.replaceAll("_",""),{prefix:a,data:o}=r4.getPrefix(n),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},u){let n=u[t.toLowerCase()];if(t)return t+fp(r,n);let{number:a,mark:i,sign:o,power:s}=r4.parseNumber(e);return function(e,t){let{integer:r,dot:u,fractional:n}=r4.parseFloatNumber(e);return fp(r,t)+u+fp(n,t,!0)}(a,n)+i+o+fp(s,u[""])}(n,{prefix:a,data:o},i)+u;if(t!==d)return{node:e,messageId:ff,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fm).map(([e,t])=>[e,fg(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[ff]:"Invalid group length in numeric value."}}});let{isParenthesized:fh,findVariable:fb}=e7,{extendFixRange:fv,removeMemberExpressionProperty:fx,removeMethodCall:fE,renameVariable:fA}=u6,{isLeftHandSide:fD,singular:fC,getScopes:fS,avoidCapture:fF,getVariableIdentifiers:fw}=uc,{isMethodCall:f_}=tk,fk="error-zero-index",fP="error-shift",fT="error-pop",fI="error-at-zero",fB="error-at-minus-one",fR="error-destructuring-declaration",fN="error-destructuring-assignment",fL="error-variable",fj="suggest-nullish-coalescing-operator",fO="suggest-logical-or-operator",fM=e=>f_(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),f$=(e,t)=>{if("AssignmentExpression"!==e.type||fh(e,t))return!1;let{left:r}=fU(e),[u]=r.elements,{type:n}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===n||"ObjectPattern"===n},fz=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,fU=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*fq(e,t,r){let{left:u}=fU(e),[n]=u.elements,a=t.getText("AssignmentPattern"===n.type?n.left:n);yield r.replaceText(u,a),f$(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let fW=e=>"AssignmentPattern"===fU(e).left.elements[0].type,fV=(e,t,r,u)=>{let{left:n,right:a}=fU(e),[i]=n.elements,o=i.right,s=t.getText(o);return(fh(o,t)||fz(o,u))&&(s=`(${s})`),r.insertTextAfter(a,` ${u} ${s}`)},fZ=(e,t)=>{let r,u;let{property:n}=fU(t).right.callee;return fW(t)?r=[{operator:"??",messageId:fj},{operator:"||",messageId:fO}].map(({messageId:r,operator:u})=>({messageId:r,*fix(r){yield r.replaceText(n,"find"),yield fV(t,e,r,u),yield*fq(t,e,r)}})):u=function*(r){yield r.replaceText(n,"find"),yield*fq(t,e,r)},{fix:u,suggest:r}},fG=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,fH=e=>{let{left:t,right:r}=fU(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var fK=K({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!1,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&fM(e.object)&&!fD(e))return{node:e.object.callee.property,messageId:fk,fix:r=>[r.replaceText(e.object.callee.property,"find"),fx(r,e,t)]}}),e.on("CallExpression",e=>{if(f_(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fM(e.callee.object))return{node:e.callee.object.callee.property,messageId:fP,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fE(r,e,t)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&fM(e.init))return{node:e.init.callee.property,messageId:fR,...fZ(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&&fM(e.right))return{node:e.right.callee.property,messageId:fN,...fZ(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&fM(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let r=t.getScope(e),u=fb(r,e.id),n=fw(u).filter(t=>t!==e.id);if(0===n.length)return;let a=[],i=[];for(let e of n)if(fG(e))a.push(e.parent);else{if(!fH(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:fL};return i.some(e=>fW(e))||(o.fix=function*(n){yield n.replaceText(e.init.callee.property,"find");let o=fC(e.id.name);if(o){let e=fF(o,fS(r));yield*fA(u,e,n),yield*fv(n,t.ast.range)}for(let e of a)yield fx(n,e,t);for(let e of i)yield*fq(e,t,n)}),o}),e.on("CallExpression",e=>{if(f_(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&fM(e.callee.object))return{node:e.callee.object.callee.property,messageId:fI,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fE(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(f_(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fM(e.callee.object))return{node:e.callee.object.callee.property,messageId:fT,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fE(r,e,t)]}}),e.on("CallExpression",e=>{if(f_(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&fM(e.callee.object))return{node:e.callee.object.callee.property,messageId:fB,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fE(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`."},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!1}}}],messages:{[fL]:"Prefer `.find(…)` over `.filter(…)`.",[fk]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fI]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[fP]:"Prefer `.find(…)` over `.filter(…).shift()`.",[fT]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fB]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fR]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fN]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fj]:"Replace `.filter(…)` with `.find(…) ?? …`.",[fO]:"Replace `.filter(…)` with `.find(…) || …`."}}});let{isNodeMatches:fX}=tB,{isMethodCall:fJ}=tk,{removeMethodCall:fY}=u6,fQ="prefer-array-flat-map",f0=["React.Children","Children"];var f1=K({create:e=>({CallExpression(t){if(!(fJ(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)&&fJ(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(fX(r.callee.object,f0))return;let{sourceCode:u}=e,n=r.callee.property;return{node:t,loc:{start:n.loc.start,end:t.loc.end},messageId:fQ,*fix(e){yield*fY(e,t,u),yield e.replaceText(n,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`."},fixable:"code",messages:{[fQ]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});let{getParenthesizedText:f3,isArrayPrototypeProperty:f2,isNodeMatches:f4,isNodeMatchesNameOrPath:f5,isParenthesized:f8,isSameIdentifier:f6,needsSemicolon:f9,shouldAddParenthesesToMemberExpressionObject:f7}=uc,{fixSpaceAroundKeyword:pe}=u6,{isMethodCall:pt,isCallExpression:pr}=tk,pu="prefer-array-flat",pn=e=>"ArrayExpression"===e.type&&0===e.elements.length,pa={testFunction(e){if(!pt(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&f6(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},pi={testFunction(e){if(!pt(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&pn(r)))return!1;let u=t.body,[n,a]=t.params;return pt(u,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&f6(n,u.callee.object)&&f6(a,u.arguments[0])||"ArrayExpression"===u.type&&2===u.elements.length&&u.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&f6(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},po={testFunction:e=>pt(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pn(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},ps={testFunction(e){if(!(pt(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f2(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pn(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},pd=["_.flatten","lodash.flatten","underscore.flatten"];var pl=K({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...pd],u=[pa,pi,po,ps,{testFunction:e=>pr(e,{argumentsLength:1,optional:!1})&&f4(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>f5(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:n,getArrayNode:a,shouldSwitchToArray:i}of u){if(!r(t))continue;let u=a(t),o={description:"string"==typeof n?n:n(t)},s={node:t,messageId:pu,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(u).length&&(s.fix=function(e,t,r,u){return"function"==typeof u&&(u=u(e)),function*(n){let a=f3(t,r);u?a=`[${a}]`:!f8(t,r)&&f7(t,r)&&(a=`(${a})`),a=`${a}.flat()`,f9(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield n.replaceText(e,a),yield*pe(n,e,r)}}(t,u,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pu]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});let{checkVueTemplate:pc}=ol,{isBooleanNode:pf,getParenthesizedRange:pp,isNodeValueNotFunction:pm}=uc,{removeMemberExpressionProperty:pg}=u6,{isLiteral:py,isUndefined:ph,isMethodCall:pb,isMemberExpression:pv}=tk,px="some",pE="some-suggestion",pA="filter",pD=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&ph(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&py(e.parent.right,null));var pC=K({create:pc(e=>({CallExpression(t){if(!pb(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=pD(t);if(!r&&!pf(t))return;let u=t.callee.property;return{node:u,messageId:px,data:{method:u.name},suggest:[{messageId:pE,*fix(n){if(yield n.replaceText(u,"some"),!r)return;let a=pp(t,e.sourceCode);yield n.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield n.insertTextBeforeRange(a,"!"))}}]}},BinaryExpression(t){if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pv(t.left,{property:"length",optional:!1})&&pb(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[u]=r.arguments;if(!u||pm(u))return;let n=r.callee.property;return{node:n,messageId:pA,*fix(r){yield r.replaceText(n,"some");let{sourceCode:u}=e,a=t.left;yield pg(r,a,u),yield r.removeRange([pp(a,u)[1],t.range[1]])}}}})),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`."},fixable:"code",messages:{[px]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pE]:"Replace `.{{method}}(…)` with `.some(…)`.",[pA]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});let{isMethodCall:pS}=tk,pF=e=>pS(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":pS(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pw=K({create:()=>({CallExpression(e){let t=pF(e);if(!t)return;let r=e.callee.property,u=r.name;return{node:r,messageId:`error/${u}`,suggest:[{messageId:`suggestion/${t}`,fix:e=>e.replaceText(r,t)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`."},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()`."}}});let{findVariable:p_}=e7,{functionTypes:pk}=tk,pP="preferDefaultParameters",pT="preferDefaultParametersSuggest",pI=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,pB=(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(pB(e,t))return!0}else if(pB(e,u))return!0}return!1},pR=(e,t,r)=>{for(let u of t.body.body){if(u===r)break;if(pB(e,u))return!0}return!1},pN=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,pL=(e,t)=>{let r=e.at(-1);return t&&t===r},pj=(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},pO=(e,t,r)=>{let{line:u}=r.loc.start,{column:n}=r.loc.end,a=t.getText(r),i=t.lines[u-1],o=i.trim()===a,s=" "===i[n];return o?e.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var pM=K({create:e=>{let{sourceCode:t}=e,r=[],u=(e,u,n,a)=>{let i=r.at(-1);if(!i||!pI(u,n))return;let{name:o}=u,{left:{name:s},right:{raw:d}}=n;if(a&&o!==s)return;let l=p_(t.getScope(e),s);if(!l)return;let{references:c}=l,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(pR(t,i,e)||pN(a,c,u)||!pL(f,p))return;let m=pj(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pP,suggest:[{messageId:pT,fix:r=>[r.replaceText(p,m),pO(r,t,e)]}]}};e.on(pk,e=>{r.push(e)}),e.onExit(pk,()=>{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."},fixable:"code",hasSuggestions:!0,messages:{[pP]:"Prefer default parameters over reassignment.",[pT]:"Replace reassignment with default parameter."}}});let{isParenthesized:p$,getParenthesizedText:pz}=tl,pU=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)},pq="prefer-logical-operator-over-ternary/error",pW="prefer-logical-operator-over-ternary/suggestion";function pV(e,t,r){if(rV(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return pV(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&pV(e.left,t.left,r)&&pV(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&pV(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function pZ({sourceCode:e,conditionalExpression:t,left:r,right:u}){return{node:t,messageId:pq,suggest:["??","||"].map(n=>({messageId:pW,data:{operator:n},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:u,right:n,operator:a}){let i=[u,n].map((e,r)=>{let u=p$(e,t),n=u?pz(e,t):t.getText(e);return!u&&pU(e,{operator:a,property:0===r?"left":"right"})&&(n=`(${n})`),n}).join(` ${a} `);return rX(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:u,operator:n})}))}}var pG=K({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:u,alternate:n}=e;return pV(r,u,t)?pZ({sourceCode:t,conditionalExpression:e,left:r,right:n}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&pV(r.argument,n,t)?pZ({sourceCode:t,conditionalExpression:e,left:r.argument,right:u}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary."},hasSuggestions:!0,messages:{[pq]:"Prefer using a logical operator over a ternary.",[pW]:"Switch to `{{operator}}` operator."}}});let{isOpeningParenToken:pH,isClosingParenToken:pK}=e7,pX="with-name",pJ="without-name";var pY=K({create:e=>({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?pX:pJ,data:{name:a},*fix(e){let t=u.getTokenBefore(r);cC(t,{test:pH,expected:"(",ruleId:"prefer-optional-catch-binding"});let n=u.getTokenAfter(r);cC(n,{test:pK,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(n);let[,a]=n.range,[o]=i.body.range,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."},fixable:"code",messages:{[pX]:"Remove unused catch binding `{{name}}`.",[pJ]:"Remove unused catch binding."}}});let{isParenthesized:pQ,getStaticValue:p0}=e7,{checkVueTemplate:p1}=ol,{isRegexLiteral:p3,isNewExpression:p2,isMethodCall:p4}=tk,{isBooleanNode:p5,shouldAddParenthesesToMemberExpressionObject:p8}=uc,p6="regexp-exec",p9="string-match",p7="suggestion",me=[{type:p6,test:e=>p4(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:p9,test:e=>p4(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){yield e.replaceText(r,"test");let a=n.getText(t);pQ(u,n)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(u,a);let i=n.getText(u);!pQ(t,n)&&p8(u,n)&&(i=`(${i})`),yield e.replaceText(t,i)}}],mt=e=>p3(e)||p2(e,{name:"RegExp"}),mr=(e,t)=>{if(p3(e))return!e.regex.flags.includes("g");let r=p0(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&!u.global};var mu=K({create:p1(e=>({*CallExpression(t){if(p5(t))for(let{type:r,test:u,getNodes:n,fix:a}of me){if(!u(t))continue;let i=n(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===p6?o:t,messageId:r},{sourceCode:l}=e,c=e=>a(e,i,l);mt(s)||mr(s,l.getScope(s))?d.fix=c:d.suggest=[{messageId:p7,fix:c}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`."},fixable:"code",hasSuggestions:!0,messages:{[p6]:"Prefer `.test(…)` over `.exec(…)`.",[p9]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[p7]:"Switch to `RegExp#test(…)`."}}});let{findVariable:mn}=e7,{getVariableIdentifiers:ma}=uc,{isCallOrNewExpression:mi,isMethodCall:mo}=tk,ms="error",md="suggestion",ml=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],mc=e=>{let{type:t,optional:r,callee:u,arguments:n}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===u.type&&!u.computed&&!u.optional&&u.object===e&&"Identifier"===u.property.type&&"includes"===u.property.name&&1===n.length&&"SpreadElement"!==n[0].type},mf=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),mp=(e,t)=>{let r=t.parent.parent.parent,{parent:u}=e.parent;for(;u&&u!==r;){if(mf.has(u.type))return!0;u=u.parent}return!1};var mm=K({create:e=>({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||mi(r.init,{name:"Array",optional:!1})||mo(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||mo(r.init,{methods:ml,optionalCall:!1,optionalMember:!1}))))return;let u=mn(e.sourceCode.getScope(t),t);if(!u)return;let n=ma(u).filter(e=>e!==t);if(0===n.length||n.some(e=>!mc(e))||1===n.length&&n.every(e=>!mp(e,t)))return;let a={node:t,messageId:ms,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:md,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence."},fixable:"code",hasSuggestions:!0,messages:{[ms]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[md]:"Switch `{{name}}` to `Set`."}}});let{hasSideEffect:mg}=e7,my=function(e,t){let{line:r,column:u}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,u).match(/\s*$/)[0]},mh="prefer-switch",mb=(e,t)=>e===t||rV(e,t),mv=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),mx=e=>{for(;e.parent;e=e.parent)if(mv.has(e.type))return e},mE=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var mA=K({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,u=new Set,n=[],a=new Set;return{IfStatement(e){u.add(e)},BreakStatement(e){e.label||n.push(e)},*"Program:exit"(){for(let e of u){if(a.has(e))continue;let{discriminant:u,ifStatements:i}=function(e){let t;let 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=>mb(e,r)||mb(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]}}(e);if(!u||i.length<t.minimumCases)continue;for(let{statement:e}of i)a.add(e);let o={loc:{start:e.loc.start,end:e.consequent.loc.start},messageId:mh};mg(u,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!mE(r,t))continue;let e=mx(r);if(!e||mE(t,e))return!0}return!1})(n,e))||(o.fix=function({discriminant:e,ifStatements:t},r,u){let n=r.getText(e);return function*(a){let i=t[0].statement,o=my(i,r);yield a.insertTextBefore(i,`switch (${n}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
1
+ import*as e from"node:path";import*as t from"node:fs";import{createRule as r}from"@eslint-sukka/shared";function u(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 n(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function a(e){return e?.type==="MemberExpression"}function i(e){return e?.type==="AwaitExpression"}function o(e,t){return!!n(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function s(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 d(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function l(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function c({name:e,meta:t,create:r,resolveOptions:u}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=u?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var f,p,m,g,y,h,b,v=c({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!o(t.callee.property,"flatMap")||!(d(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(l(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&l(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 x=new Set(["href","pathname","search","hash","origin"]);var E=c({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(o(e,t))return e;for(;a(e);){if(o(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let u=A(r.parent);e.report({node:t,messageId:"instead",data:{name:u},fix:function(e,t,r){let u=A(t.parent);if(x.has(u??"href"))return u=>u.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function A(e){if(a(e)&&n(e.property))return e.property.name}var D=c({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(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(""))}})}})}),C=c({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let 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 S=/^toLocale(?<name>Upper|Lower)Case$/g;var F=c({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!a(t.callee)||!n(t.callee.property))return;let{property:r}=t.callee,u=S.exec(r.name);u&&e.report({node:t,data:{name:u.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function w(e){return JSON.stringify(e)}var _=c({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=w(t.quasis[0].value.cooked),a=u(t,e=>"Property"===e.type&&e.key===t);return a?e.replaceText(a,`${n}: ${r.getText(a.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});let k=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var T=c({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,u=k.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of u){let u=r.parent;if(u?.type==="BinaryExpression"&&"instanceof"===u.operator&&u.right===r){if("Array"===r.name)e.report({node:u,messageId:"array",fix:e=>e.replaceText(u,`Array.isArray(${t.getText(u.left)})`)});else{let n=r.name.toLowerCase();e.report({node:u,messageId:"primitive",data:{typeName:n},fix:e=>e.replaceText(u,`typeof ${t.getText(u.left)} === ${w(n)}`)})}}}}}}});let P=/\P{ASCII}/u;function I(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"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}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 B(e,t){switch(e.type){case"String":case"Template":return r=>{let u=e.value.slice(0,1),n=e.value.slice(-1),a=R(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${N(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(R(e.regex.pattern,t),[...u].join(""));return r.replaceText(e,n.toString())}}}function R(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${N(t)}}`:`\\u${N(t)}`})}function N(e){return e.toString(16).padStart(4,"0").toUpperCase()}c({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):P,only:e?.only}),create:(e,{pattern:t,only:r})=>I(t,(u,n)=>{if(r&&r!==n)return;let a=B(u,RegExp(t.source,"gu"));e.report({node:u,messageId:"illegal",fix:a})})});let L=/[\u061C\u202A-\u202E\u2066-\u2069]/;var j=c({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>I(L,(t,r)=>{let u=RegExp(L.source,"gu"),n={kind:r,text:R(t.value,u)},a=B(t,u);e.report({node:t,data:n,messageId:"detected",fix:a})})});let O=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var M=c({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>I(O,t=>{let r=B(t,RegExp(O.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),$=c({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(z);if(!n)return;let a=t[t.indexOf(n)-1];a&&"VariableDeclaration"===a.type&&1===a.declarations.length&&a.declarations.some(({init:e,id:t})=>null!==e&&l(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:o}=a.declarations[0];if(!(t&&o&&n.argument))return null;let s=!i(t)||u(t,"TryStatement")?t:t.argument,d=(e=>{if(!o.typeAnnotation)return e;let u=r.getText(o.typeAnnotation.typeAnnotation);return`(${e}) as ${i(t)?`Promise<${u}>`:u}`})(r.getText(s));return[e.remove(a),e.replaceText(n.argument,d)]})})}})});function z(e){return"ReturnStatement"===e.type&&n(e.argument)}var U=c({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!d(t))return;let u=function(e,t){let r=t.find(q);if(!r)return;let u=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>l(r.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 q(e){return"ReturnStatement"===e.type&&n(e.argument)}var W=c({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:u}){var n;if(!d(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 a=(n=r[0],function*(t){let r;if("IfStatement"!==n.type)return;let{test:u,consequent:a}=n;yield t.insertTextBefore(u,"!("),yield t.insertTextAfter(u,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(n,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),V=c({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return o(e,"XMLHttpRequest")})(t)||o(t.callee,"ActiveXObject")&&s(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return o(e,t)||a(e)&&o(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return o(e,r)&&a(t)&&o(t.property,"load")||a(e)&&o(e.object,r)&&o(e.property,["ajax","get","post","getJSON","getScript"])}(t)||Z(t,"axios")||Z(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function Z(e,t){return o(e.callee,"require")&&s(e.arguments[0],t)}let G=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var H=c({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!G.has(t.callee.name)||function(e){if(!o(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||s(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 = ")}]}))}})});function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function X(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}),r}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var J=X(e),Y=function(e){let t=J.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/${t}.md`},Q=K(Y);let ee={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(ee))Object.freeze(ee[e]);Object.freeze(ee);let et=new Set(["parent","leadingComments","trailingComments"]);function er(e){return!et.has(e)&&"_"!==e[0]}function eu(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}function en(e,t){let r="",u=e;for("string"==typeof t?r=t:(r=t.name,u=eu(u,t));null!=u;){let e=u.set.get(r);if(null!=e)return e;u=u.upper}return null}function ea(e){return!this(e)}function ei(e){return ea.bind(e)}function eo(e,t){return"Punctuator"===e.type&&e.value===t}function es(e){return eo(e,"=>")}function ed(e){return eo(e,",")}function el(e){return eo(e,";")}function ec(e){return eo(e,":")}function ef(e){return eo(e,"(")}function ep(e){return eo(e,")")}function em(e){return eo(e,"[")}function eg(e){return eo(e,"]")}function ey(e){return eo(e,"{")}function eh(e){return eo(e,"}")}function eb(e){return["Block","Line","Shebang"].includes(e.type)}let ev=ei(es),ex=ei(ed),eE=ei(el),eA=ei(ec),eD=ei(ef),eC=ei(ep),eS=ei(em),eF=ei(eg),ew=ei(ey),e_=ei(eh),ek=ei(eb);function eT(e,t){let r=e.parent,u=null,n=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,es);u=r.loc.start,n=r.loc.end}else u="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,n=(e.id?t.getTokenAfter(e.id,ef):t.getFirstToken(e,ef)).loc.start;return{start:{...u},end:{...n}}}let eP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eI=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"])),eB=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)),eR=new Set([Object.freeze,Object.preventExtensions,Object.seal]),eN=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function eL(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=eO(n.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=eO(n,t);if(null==e)return null;r.push(e.value)}}return r}let ej=Object.freeze({ArrayExpression(e,t){let r=eL(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?eO(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=eO(e.left,t),u=eO(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=eL(e.arguments,t);if(null!=u){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let n=eO(r.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let a=eM(r,t);if(null!=a){let e=n.value,t=a.value;if(eB.has(e[t]))return{value:e[t](...u)};if(eR.has(e[t]))return{value:u[0]}}}}else{let n=eO(r,t);if(null!=n){if(null==n.value&&e.optional)return{value:void 0,optional:!0};let t=n.value;if(eB.has(t))return{value:t(...u)};if(eR.has(t))return{value:u[0]}}}}return null},ConditionalExpression(e,t){let r=eO(e.test,t);return null!=r?r.value?eO(e.consequent,t):eO(e.alternate,t):null},ExpressionStatement:(e,t)=>eO(e.expression,t),Identifier(e,t){if(null!=t){let r=en(t,e);if(null!=r&&0===r.defs.length&&eI.has(r.name)&&r.name in eP)return{value:eP[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,u=t.filter(e=>e.isReadOnly()).length;return 1===r&&u+r===t.length}(r))&&"Identifier"===e.node.id.type)return eO(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=eO(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=eO(e.right,t);if(null!=u)return u}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=eO(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let u=eM(e,t);if(null!=u){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,u.value))return{value:r.value[u.value]};for(let[e,t]of eN)if(r.value instanceof e&&t.has(u.value))return{value:r.value[u.value]}}}return null},ChainExpression(e,t){let r=eO(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=eO(e.callee,t),u=eL(e.arguments,t);if(null!=r&&null!=u){let e=r.value;if(eB.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=eM(u,t),n=eO(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=eO(u.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>eO(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=eO(e.tag,t),u=eL(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=eL(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let u=0;u<r.length;++u)t+=r[u]+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=eO(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function eO(e,t){return null!=e&&Object.hasOwnProperty.call(ej,e.type)?ej[e.type](e,t):null}function eM(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?eO(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function e$(e,t=null){try{return eO(e,t)}catch(e){return null}}function ez(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=e$(e,t);return r&&String(r.value)}function eU(e,t){switch(e.type){case"MemberExpression":if(e.computed)return ez(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return ez(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 eq(e,t){let r=e.parent,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=eU(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 eW=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eV=Object.freeze(new Set(["-","+","!","~"]));function eZ(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eG=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(er)){let u=e[n];if(Array.isArray(u)){for(let e of u)if(eZ(e)&&this.$visit(e,t,r))return!0}else if(eZ(u)&&this.$visit(u,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eW.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&&eV.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eH(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:u=!1}={}){return eG.$visit(e,{considerGetters:r,considerImplicitTypeConversion:u},t.visitorKeys||ee)}function eK(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&&ef(i)&&ep(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,ef);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,ef);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 eX=/\$(?:[$&`']|[1-9][0-9]?)/gu,eJ=new WeakMap;class eY{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");eJ.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=eJ.get(this),u=null,n=0;for(t.lastIndex=0;null!=(u=t.exec(e));)(r||!function(e,t){let r=!1;for(let u=t-1;u>=0&&92===e.charCodeAt(u);--u)r=!r;return r}(e,u.index))&&(n=t.lastIndex,yield u,t.lastIndex=n)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let u=[],n=0;for(let a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(String(r(...a,a.index,a.input))),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),t):function(e,t,r){let u=[],n=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))u.push(t.slice(n,a.index)),u.push(r.replace(eX,i)),n=a.index+a[0].length;return u.push(t.slice(n)),u.join("")}(this,String(e),String(t))}}let eQ=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e0=Function.call.bind(Object.hasOwnProperty),e1=Symbol("read"),e3=Symbol("call"),e2=Symbol("construct"),e4=Symbol("esm"),e5={require:{[e3]:!0}};function e8(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let e6=class{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],u=[t],n=this.globalScope.set.get(t);e8(n)||(yield*this._iterateVariableReferences(n,u,r,!0))}for(let t of this.globalObjectNames){let r=[],u=this.globalScope.set.get(t);e8(u)||(yield*this._iterateVariableReferences(u,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e5)){let r=ez(t.arguments[0]);if(null==r||!e0(e,r))continue;let u=e[r],n=[r];u[e1]&&(yield{node:t,path:n,type:e1,info:u[e1]}),yield*this._iteratePropertyReferences(t,n,u)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!eQ.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e0(e,r))continue;let u=e[r],n=[r];if(u[e1]&&(yield{node:t,path:n,type:e1,info:u[e1]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(u)){let r=u[e];r[e1]&&(yield{node:t,path:n.concat(e),type:e1,info:r[e1]})}else for(let e of t.specifiers){let t=e0(u,e4),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(e9),(e.path.length>=2||e.type!==e1)&&(yield e)}}}*_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[e1]&&(yield{node:e,path:t,type:e1,info:r[e1]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let u=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(u);)u=u.parent;let n=u.parent;if("MemberExpression"===n.type){if(n.object===u){let e=eU(n);if(null==e||!e0(r,e))return;t=t.concat(e);let u=r[e];u[e1]&&(yield{node:n,path:t,type:e1,info:u[e1]}),yield*this._iteratePropertyReferences(n,t,u)}return}if("CallExpression"===n.type){n.callee===u&&r[e3]&&(yield{node:n,path:t,type:e3,info:r[e3]});return}if("NewExpression"===n.type){n.callee===u&&r[e2]&&(yield{node:n,path:t,type:e2,info:r[e2]});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=en(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=eU(u);if(null==e||!e0(r,e))continue;let n=t.concat(e),a=r[e];a[e1]&&(yield{node:u,path:n,type:e1,info:a[e1]}),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":e.imported.name;if(!e0(r,n))return;t=t.concat(n);let a=r[n];a[e1]&&(yield{node:e,path:t,type:e1,info:a[e1]}),yield*this._iterateVariableReferences(en(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===u){yield*this._iterateVariableReferences(en(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===u){let u=e.local.name;if(!e0(r,u))return;t=t.concat(u);let n=r[u];n[e1]&&(yield{node:e,path:t,type:e1,info:n[e1]})}}};function e9(e,t){return!(1===t&&"default"===e)}e6.READ=e1,e6.CALL=e3,e6.CONSTRUCT=e2,e6.ESM=e4;var e7=X(Object.freeze({__proto__:null,CALL:e3,CONSTRUCT:e2,ESM:e4,PatternMatcher:eY,READ:e1,ReferenceTracker:e6,default:{CALL:e3,CONSTRUCT:e2,ESM:e4,findVariable:en,getFunctionHeadLocation:eT,getFunctionNameWithKind:eq,getInnermostScope:eu,getPropertyName:eU,getStaticValue:e$,getStringIfConstant:ez,hasSideEffect:eH,isArrowToken:es,isClosingBraceToken:eh,isClosingBracketToken:eg,isClosingParenToken:ep,isColonToken:ec,isCommaToken:ed,isCommentToken:eb,isNotArrowToken:ev,isNotClosingBraceToken:e_,isNotClosingBracketToken:eF,isNotClosingParenToken:eC,isNotColonToken:eA,isNotCommaToken:ex,isNotCommentToken:ek,isNotOpeningBraceToken:ew,isNotOpeningBracketToken:eS,isNotOpeningParenToken:eD,isNotSemicolonToken:eE,isOpeningBraceToken:ey,isOpeningBracketToken:em,isOpeningParenToken:ef,isParenthesized:eK,isSemicolonToken:el,PatternMatcher:eY,READ:e1,ReferenceTracker:e6},findVariable:en,getFunctionHeadLocation:eT,getFunctionNameWithKind:eq,getInnermostScope:eu,getPropertyName:eU,getStaticValue:e$,getStringIfConstant:ez,hasSideEffect:eH,isArrowToken:es,isClosingBraceToken:eh,isClosingBracketToken:eg,isClosingParenToken:ep,isColonToken:ec,isCommaToken:ed,isCommentToken:eb,isNotArrowToken:ev,isNotClosingBraceToken:e_,isNotClosingBracketToken:eF,isNotClosingParenToken:eC,isNotColonToken:eA,isNotCommaToken:ex,isNotCommentToken:ek,isNotOpeningBraceToken:ew,isNotOpeningBracketToken:eS,isNotOpeningParenToken:eD,isNotSemicolonToken:eE,isOpeningBraceToken:ey,isOpeningBracketToken:em,isOpeningParenToken:ef,isParenthesized:eK,isSemicolonToken:el}));let{isParenthesized:te}=e7,tt="too-deep",tr="should-parenthesized";var tu=K({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,u=r.getAncestors(t).reverse(),n=u.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==n||te(t,r)?n>1?{node:n>2?u[n-3]:t,messageId:tt}:void 0:{node:t,messageId:tr,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[tt]:"Do not nest ternary expressions.",[tr]:"Nest ternary expression should be parenthesized."}}});let{isParenthesized:tn,isOpeningParenToken:ta,isClosingParenToken:ti}=e7;function to(e,t){let r=0;for(;tn(r+1,e,t);)r++;return r}function ts(e,t){let r=to(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:ta}),...t.getTokensAfter(e,{count:r,filter:ti})]}function td(e,t){let r=ts(e,t),[u]=(r[0]||e).range,[,n]=(r.at(-1)||e).range;return[u,n]}var tl={isParenthesized:tn,getParenthesizedTimes:to,getParentheses:ts,getParenthesizedRange:td,getParenthesizedText:function(e,t){let[r,u]=td(e,t);return t.text.slice(r,u)}};function tc(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tf={isLiteral:tc,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:e=>tc(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function tp(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:Number.POSITIVE_INFINITY,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)}var tm={isCallExpression:(e,t)=>tp(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return tp(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>tp(e,t,["CallExpression","NewExpression"])},tg=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],ty=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties: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)))};let{isCallExpression:th}=tm,{isStringLiteral:tb}=tf,{isCallExpression:tv}=tm;function tx(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;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==u)return!1;e=e.object}}var tE={isNodeMatchesNameOrPath:tx,isNodeMatches:function(e,t){return t.some(t=>tx(e,t))}};let{isNodeMatches:tA}=tE,{isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_}=tf,{isNewExpression:tk,isCallExpression:tT,isCallOrNewExpression:tP}=tm;var tI={isLiteral:tD,isStringLiteral:tC,isNumberLiteral:tS,isBigIntLiteral:tF,isNullLiteral:tw,isRegexLiteral:t_,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tT,isCallOrNewExpression:tP,isDirective:e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,isEmptyNode:function e(t,r){let{type:u}=t;return"BlockStatement"===u?t.body.every(t=>e(t,r)):!!("EmptyStatement"===u||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tg.includes(e.type)},isMemberExpression:ty,isMethodCall:function(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 th(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&ty(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:n,properties:a,optional:u})},isNewExpression:tk,isReferenceIdentifier:function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:e=>tv(e,{name:"require",argumentsLength:1,optional:!1})&&tb(e.arguments[0]),isTaggedTemplateLiteral:function(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||tA(e.parent.tag,t))},isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tg};let{isMemberExpression:tB}=tI;function tR(e,t){let{object:r,property:u,properties:n}={property:"",properties:[],...t};if(!tB(e,{property:u,properties:n,optional:!1}))return;let a=e.object;return tB(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&"ArrayExpression"===a.type&&0===a.elements.length||"Object"===r&&"ObjectExpression"===a.type&&0===a.properties.length}var tN=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);let tL=e=>e?.type==="UnaryExpression"&&"!"===e.operator,tj=e=>tL(e.parent)&&e.parent.argument===e,tO=e=>tM(e.parent)&&e.parent.arguments[0]===e,tM=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,t$=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);var tz={},tU={};Object.defineProperty(tU,"__esModule",{value:!0}),tU.isIdentifierChar=tJ,tU.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,!tX(u))return!1}else if(!tJ(u))return!1}return!t},tU.isIdentifierStart=tX;let tq="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tW="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",tV=RegExp("["+tq+"]"),tZ=RegExp("["+tq+tW+"]");tq=tW=null;let tG=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tH=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function tK(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 tX(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tV.test(String.fromCharCode(e)):tK(e,tG)))}function tJ(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tZ.test(String.fromCharCode(e)):tK(e,tG)||tK(e,tH))))}var tY={};Object.defineProperty(tY,"__esModule",{value:!0}),tY.isKeyword=function(e){return tQ.has(e)},tY.isReservedWord=t3,tY.isStrictBindOnlyReservedWord=t4,tY.isStrictBindReservedWord=function(e,t){return t2(e,t)||t4(e)},tY.isStrictReservedWord=t2;let tQ=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"]),t0=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t1=new Set(["eval","arguments"]);function t3(e,t){return t&&"await"===e||"enum"===e}function t2(e,t){return t3(e,t)||t0.has(e)}function t4(e){return t1.has(e)}Object.defineProperty(tz,"__esModule",{value:!0}),Object.defineProperty(tz,"isIdentifierChar",{enumerable:!0,get:function(){return f.isIdentifierChar}}),Object.defineProperty(tz,"isIdentifierName",{enumerable:!0,get:function(){return f.isIdentifierName}}),Object.defineProperty(tz,"isIdentifierStart",{enumerable:!0,get:function(){return f.isIdentifierStart}}),Object.defineProperty(tz,"isKeyword",{enumerable:!0,get:function(){return p.isKeyword}}),Object.defineProperty(tz,"isReservedWord",{enumerable:!0,get:function(){return p.isReservedWord}}),Object.defineProperty(tz,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return p.isStrictBindOnlyReservedWord}}),Object.defineProperty(tz,"isStrictBindReservedWord",{enumerable:!0,get:function(){return p.isStrictBindReservedWord}}),Object.defineProperty(tz,"isStrictReservedWord",{enumerable:!0,get:function(){return p.isStrictReservedWord}}),f=tU,p=tY;let t5=e=>[e,...e.childScopes.flatMap(e=>t5(e))];var t8=e=>[...new Set(t5(e).flatMap(({references:e})=>e))];let{isIdentifierName:t6,isStrictReservedWord:t9,isKeyword:t7}=tz,re=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},rt=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"]),rr=e=>"string"==typeof e&&!t7(e)&&!t9(e,!0)&&t6(e)&&"arguments"!==e&&!rt.has(e),ru=(e,t)=>t8(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),rn=(e,t)=>!t.some(t=>re(e,t)||ru(e,t)),ra=()=>!0;var ri=function(e,t,r=ra){if(rr(e)||rr(e+="_")){for(;!rn(e,t)||!r(e,t);)e+="_";return e}};let ro={},rs=ro.hasOwnProperty,rd=(e,t)=>{for(let r in e)rs.call(e,r)&&t(r,e[r])},rl=(e,t)=>(t&&rd(t,(t,r)=>{e[t]=r}),e),rc=(e,t)=>{let r=e.length,u=-1;for(;++u<r;)t(e[u])},rf=e=>"\\u"+("0000"+e).slice(-4),rp=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},rm=ro.toString,rg=Array.isArray,ry=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rh=e=>"[object Object]"==rm.call(e),rb=e=>"string"==typeof e||"[object String]"==rm.call(e),rv=e=>"number"==typeof e||"[object Number]"==rm.call(e),rx=e=>"function"==typeof e,rE=e=>"[object Map]"==rm.call(e),rA=e=>"[object Set]"==rm.call(e),rD={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rC=/[\\\b\f\n\r\t]/,rS=/[0-9]/,rF=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rw=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,r_=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rk=(e,t)=>{let r;let u=()=>{l=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},n={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},a=t&&t.json;a&&(n.quotes="double",n.wrap=!0),"single"!=(t=rl(n,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let i="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",o=t.compact,s=t.lowercaseHex,d=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,f=t.__inline2__,p=o?"":"\n",m=!0,g="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rx(e.toJSON)&&(e=e.toJSON()),!rb(e)){if(rE(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rk(Array.from(e),t)+")");if(rA(e))return 0==e.size?"new Set()":"new Set("+rk(Array.from(e),t)+")";if(ry(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rk(Array.from(e),t)+")";if(rg(e))return(r=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||u(),rc(e,e=>{m=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rk(e,t))}),m)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":l)+"]";if(rv(e)){if(a)return JSON.stringify(e);if(h)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(g)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else if(rh(e))return(r=[],t.wrap=!0,u(),rd(e,(e,u)=>{m=!1,r.push((o?"":d)+rk(e,t)+":"+(o?"":" ")+rk(u,t))}),m)?"{}":"{"+p+r.join(","+p)+p+(o?"":l)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rw:r_;return r=e.replace(v,(e,r,u,n,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),u=r.charCodeAt(1);return t.es6?"\\u{"+rp((e-55296)*1024+u-56320+65536,s)+"}":rf(rp(e,s))+rf(rp(u,s))}if(u)return rf(rp(u.charCodeAt(0),s));if("\0"==e&&!a&&!rS.test(d.charAt(o+1)))return"\\0";if(n)return n==i||t.escapeEverything?"\\"+n:n;if(rC.test(e))return rD[e];if(t.minimal&&!rF.test(e))return e;let l=rp(e.charCodeAt(0),s);return a||l.length>2?rf(l):"\\x"+("00"+l).slice(-2)}),"`"==i&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=i+r+i),r};rk.version="3.0.2";var rT=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rk(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})};let{isOpeningParenToken:rP,isCommaToken:rI}=e7;var rB=function(e,t){let r=e.getTokenAfter(t.callee,rP),[u,n]=e.getLastTokens(t,2);return{openingParenthesisToken:r,closingParenthesisToken:n,trailingCommaToken:rI(u)?u:void 0}},rR=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];let rN=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rL}=e7,rj=(e,t)=>{let{references:r=[]}=rL(e,t)||{};return r};var rO=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;let{isUndefined:rM}=tI,r$=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:rz,isCallExpression:rU,isMethodCall:rq}=tI,rW=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rV=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rZ=function(e,t){return e.loc.start.line===t.loc.start.line};let{getStaticValue:rG}=e7;function rH(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rH(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rG(t);if(!r)return;return String(r.value)}}var rK=function e(t,r){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r):"ChainExpression"===r.type&&e(t,r.expression);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return t.regex||r.regex?!!(t.regex&&r.regex&&t.regex.pattern===r.regex.pattern&&t.regex.flags===r.regex.flags):t.bigint||r.bigint?t.bigint===r.bigint:t.value===r.value;case"ChainExpression":return e(t.expression,r.expression);case"MemberExpression":{let u=rH(t);if(void 0!==u)return e(t.object,r.object)&&u===rH(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},rX=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0};let{isExpressionStatement:rJ}=tI,rY=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),rQ=new Set(["[","(","/","`","+","-","*",",","."]);var r0=function(e,t,r){if(""===r||r&&!rQ.has(r.charAt(0))||!e)return!1;let{type:u,value:n,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===u){if(";"===n)return!1;if("]"===n)return!0;if(")"===n){switch(i.type){case"IfStatement":if(t.getTokenBefore(i.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(i.body&&t.getTokenBefore(i.body)===e)return!1}return!0}}return!!rY.has(u)||("Template"===u?n.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===u&&("of"!==n||"ForOfStatement"!==i.type)&&("await"!==n||"AwaitExpression"!==i.type))};let{isOpeningParenToken:r1,isClosingParenToken:r3}=e7;var r2=function(e,t){if(e.arguments.length>0)return!0;let[r,u]=t.getLastTokens(e,2);return r1(r)&&r3(u)&&e.callee.range[1]<e.range[1]};let{isNumberLiteral:r4,isBigIntLiteral:r5}=tI,r8=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,r6=e=>r8.test(e);var r9={isDecimalIntegerNode:e=>r4(e)&&r6(e.raw),isDecimalInteger:r6,isNumeric:e=>r4(e)||r5(e),isLegacyOctal:e=>r4(e)&&/^0\d+$/.test(e.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:u="",power:n=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:u,power:n}},parseFloatNumber:function(e){let t=e.split("."),[r,u=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:u}}};let{isDecimalIntegerNode:r7}=r9;var ue=function(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!r2(e,t);case"Literal":if(r7(e))return!0;return!1;default:return!0}},ut={exports:{}};m=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},ut.exports=m();let{singular:ur}=ut.exports;var uu=function(e,t,r=0,u=0){let[n,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(n+r),end:t.getLocFromIndex(a+u)}};let{isParenthesized:un,getParenthesizedTimes:ua,getParentheses:ui,getParenthesizedRange:uo,getParenthesizedText:us}=tl,{isArrayPrototypeProperty:ud,isObjectPrototypeProperty:ul}={isArrayPrototypeProperty:(e,t)=>tR(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tR(e,{...t,object:"Object"})},{isNodeMatches:uc,isNodeMatchesNameOrPath:uf}=tE,{isBooleanNode:up,getBooleanAncestor:um}={isBooleanNode:function e(t){if(tL(t)||tj(t)||tM(t)||tO(t))return!0;let{parent:r}=t;return!!t$(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tN(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(tj(e))t=!t,e=e.parent;else if(tO(e))e=e.parent;else break;return{node:e,isNegative:t}}};var ug={avoidCapture:ri,escapeString:rT,getBooleanAncestor:um,getCallExpressionArgumentsText:function(e,t){let{openingParenthesisToken:r,closingParenthesisToken:u}=rB(e,t);return e.text.slice(r.range[1],u.range[0])},getCallExpressionTokens:rB,getParentheses:ui,getParenthesizedRange:uo,getParenthesizedText:us,getParenthesizedTimes:ua,getReferences:t8,getScopes:t5,getVariableIdentifiers:rR,hasOptionalChainElement:function e(t){return!!rN(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:ud,isBooleanNode:up,isFunctionSelfUsedInside: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||rj(t,"arguments").some(({from:e})=>e===t))||!!u&&rj(t,u).length>0)},isLeftHandSide:rO,isLogicalExpression:tN,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:uc,isNodeMatchesNameOrPath:uf,isNodeValueNotDomNode:e=>r$.has(e.type)||rM(e),isNodeValueNotFunction:e=>rW.has(e.type)||rV.has(e.type)||rz(e)||rU(e)&&!rq(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:ul,isOnSameLine:rZ,isParenthesized:un,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:rK,isShadowed:rX,isValueNotUsable:e=>rJ(e.parent),needsSemicolon:r0,shouldAddParenthesesToMemberExpressionObject:ue,shouldAddParenthesesToCallExpressionCallee:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type},shouldAddParenthesesToAwaitExpressionArgument:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type},singular:e=>{let t=ur(e);if(t!==e)return t},toLocation:uu,getAncestor:function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e}};let{findVariable:uy}=e7,{getAncestor:uh}=ug,{isStaticRequire:ub,isStringLiteral:uv,isMemberExpression:ux}=tI,uE="prefer-event-target",uA=new Set(["@angular/core","eventemitter3"]),uD=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 uC(e){let t;return!!e&&(ub(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(uv(t)&&uA.has(t.value)))}var uS=K({create:e=>({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=uh(e,"ImportDeclaration");return!!(uA.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)&&uD(e.parent.parent)&&uC(e.parent.parent.parent.init)||uD(e)&&ux(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&uC(e.parent.init.object))}(uy(r,t)?.defs[0]?.name))return{node:t,messageId:uE}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[uE]:"Prefer `EventTarget` over `EventEmitter`."}}});let uF={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},{isNumberLiteral:uw}=tI,u_="prefer-keyboard-event-key",uk=new Set(["keyCode","charCode","which"]),uT=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,uP=(e,t)=>{let r=uB(t,"CallExpression",uT),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{}}},uI=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,uB=(e,t,r=()=>!0)=>{let u=e;for(;u;){if(u.type===t&&r(u))return u;u=u.parent}},uR=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},uN=e=>t=>{let r=uR(e,3);if(!r||"IfStatement"!==r.type)return;let{type:u,operator:n,right:a}=r.test;if(!("BinaryExpression"===u&&("=="===n||"==="===n)&&uw(a)))return;let i=uF[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rT(i))]},uL=e=>({messageId:u_,data:{name:e.name},node:e,fix:uN(e)});var uj=K({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:u}=uP(e,t);if(r&&u&&u.some(e=>uI(t,e.identifier)))return uL(t)},Property(t){let r=t.value.name;if(!uk.has(r))return;let{event:u,references:n}=uP(e,t);if(!u)return;let a=uB(t,"VariableDeclarator"),i=a?.init;if(n&&n.some(e=>e.identifier===i))return uL(t.value);if("ObjectPattern"===u.type){for(let e of u.properties)if(e===t)return uL(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[u_]:"Use `.key` instead of `.{{name}}`."}}});let{isMemberExpression:uO}=tI,uM="error",u$="suggestion";var uz=K({create:()=>({MemberExpression(e){if(!uO(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:uM,suggest:[{messageId:u$,fix:e=>e.replaceText(t,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:uM,suggest:[{messageId:u$,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[uM]:"Prefer `.textContent` over `.innerText`.",[u$]:"Switch to `.textContent`."}}});let{getParentheses:uU}=tl,{isCommaToken:uq}=e7,{isCommaToken:uW}=e7,{getParentheses:uV}=tl,{getParenthesizedRange:uZ}=tl,{isSemicolonToken:uG}=e7;var uH=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let u=r.getFirstToken(t);yield e.insertTextAfter(u," (");let n=r.getLastToken(t);if(!uG(n)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(n,")")},uK=function(e,t,r){let u=e;"object"==typeof e&&Array.isArray(e.range)&&(u=e.range[1]);let[n]=t.text.slice(u).match(/^\s*/);return r.removeRange([u,u+n.length])};let{isParenthesized:uX}=tl,{isParenthesized:uJ}=tl,{getParenthesizedRange:uY}=tl;var uQ=function(e,t,r){let[,u]=uY(t.object,r),[,n]=t.range;return e.removeRange([u,n])};let{getParenthesizedRange:u0}=tl;var u1=function*(e,t,r){let u=t.callee;yield uQ(e,u,r);let[,n]=u0(u,r),[,a]=t.range;yield e.removeRange([n,a])},u3=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,u2=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];let u4=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&u3(e.parent),u5=e=>{let{type:t,local:r,imported:u}=e.parent;return"ImportSpecifier"===t&&u2(r,u)&&r===e},u8=e=>{let{type:t,local:r,exported:u}=e.parent;return"ExportSpecifier"===t&&u2(r,u)&&r===e};var u6=function(e,t,r){return u3(e)||u4(e)?r.replaceText(e,`${e.name}: ${t}`):u5(e)?r.replaceText(e,`${e.name} as ${t}`):u8(e)?r.replaceText(e,`${t} as ${e.name}`):e.typeAnnotation?r.replaceTextRange([e.range[0],e.typeAnnotation.range[0]],`${t}${e.optional?"?":""}`):r.replaceText(e,t)};let{getParentheses:u9}=tl,{getParenthesizedRange:u7}=tl,ne=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var nt={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let u of uU(e,r))yield t.remove(u)},appendArgument:function(e,t,r,u){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[n,a]=u.getLastTokens(t,2);return t.arguments.length>0&&(r=uq(n)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let u=t.parent,n=u.arguments.indexOf(t),a=uV(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==n&&(s=r.getTokenBefore(i).range[0]),1===u.arguments.length){let e=r.getTokenBefore(o);uW(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,u){return e.replaceTextRange(uZ(t,u),r)},switchNewExpressionToCallExpression:function*(e,t,r){let u=t.getFirstToken(e);yield r.remove(u),yield uK(u,t,r),r2(e,t)||(yield r.insertTextAfter(e,"()")),rZ(u,e.callee)||uX(e,t)||(yield*uH(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var u;yield r.insertTextBefore(e,"new ");let{callee:n}=e;!uJ(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,")"))},removeMemberExpressionProperty:uQ,removeMethodCall:u1,replaceTemplateElement:(e,t,r)=>{let{range:[u,n],tail:a}=t;return e.replaceTextRange([u+1,n-(a?1:2)],r)},replaceReferenceIdentifier:u6,renameVariable:(e,t,r)=>rR(e).map(e=>u6(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,u,n,a=n){for(let r of u9(t,a))yield*e(r,"",u,n,a);let[i,o]=t.range,[s]=n.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield u.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:uK,fixSpaceAroundKeyword:function*(e,t,r){let u=u7(t,r),n=r.getTokenBefore({range:u},{includeComments:!0});n&&u[0]===n.range[1]&&ne(n)&&(yield e.insertTextAfter(n," "));let a=r.getTokenAfter({range:u},{includeComments:!0});a&&u[1]===a.range[0]&&ne(a)&&(yield e.insertTextBefore(a," "))},replaceStringLiteral:function(e,t,r,u,n){let a=t.range[0]+1,i=Number.isInteger(n)?u+a:a,o=Number.isInteger(n)?n+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:uH};let{appendArgument:nr}=nt,{isMethodCall:nu}=tI,{isArrayPrototypeProperty:nn}=ug,na="require-array-join-separator";var ni=K({create:e=>({CallExpression(t){if(!(nu(t,{method:"join",argumentsLength:0,optionalCall:!1})||nu(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&nn(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:u.loc[a?"end":"start"],end:n.loc.end},messageId:na,fix:e=>nr(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[na]:"Missing the separator argument."}}});let{getStaticValue:no,getPropertyName:ns}=e7,{isMethodCall:nd}=tI,nl="no-thenable-object",nc="no-thenable-export",nf="no-thenable-class",np=(e,t)=>no(e,t.sourceCode.getScope(e))?.value==="then",nm=(e,t)=>{try{return"then"===ns(e,t.sourceCode.getScope(e))}catch{}return!1},ng=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&nm(r,t)&&(yield r.key)},messageId:nl},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===ns(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:nf},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===ns(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:nl},{selector:"CallExpression",*getNodes(e,t){if(!(nd(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;np(r,t)&&(yield r)},messageId:nl},{selector:"CallExpression",*getNodes(e,t){if(nd(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;np(e,t)&&(yield e)}}},messageId:nl},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:nc},{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:nc},{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:nc}];var ny=K({create:e=>{for(let{selector:t,selectors:r,messageId:u,getNodes:n}of ng)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:!0},messages:{[nl]:"Do not add `then` to an object.",[nc]:"Do not export `then`.",[nf]:"Do not add `then` to a class."}}});let{getFunctionHeadLocation:nh}=e7,{isMethodCall:nb}=tI,nv="no-invalid-remove-event-listener";var nx=K({create:e=>({CallExpression(t){if(!(nb(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||nb(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:nh(r,e.sourceCode),messageId:nv}:{node:r.callee.property,messageId:nv}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[nv]:"The listener argument should be a function reference."}}});let{getFunctionHeadLocation:nE,getFunctionNameWithKind:nA}=e7,{getReferences:nD,isNodeMatches:nC}=ug,{functionTypes:nS}=tI,nF="consistent-function-scoping",nw=(e,t)=>e&&t&&(e===t||e.block===t.block),n_=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),nk=e=>e.block?.parent?.callee&&nC(e.block.parent.callee,n_),nT=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>nT(e))),nP=new Set(["FunctionExpression","ArrowFunctionExpression"]),nI=e=>nP.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var nB=K({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:u}=r,n=[];e.on(nS,()=>{n.push(!1)}),e.on("JSXElement",()=>{n.length>0&&(n[n.length-1]=!0)}),e.onExit(nS,e=>{if(!(n.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||nT(r))return!0;let u=e.parent;"VariableDeclarator"===u.type&&(u=u.parent),"VariableDeclaration"===u.type&&(u=u.parent),"BlockStatement"===u.type&&(u=u.parent);let n=t.acquire(u);return!!(!n||"global"===n.type||nk(n)||nI(u))||function(e,t,r){let u=e=>e.some(e=>{if(nw(t,e.from))return!0;let{resolved:r}=e,[u]=r.defs;return(u?.type!=="FunctionName"||r.name!==u.name.name)&&nw(t,r.scope)}),n=e=>e.some(e=>nw(t,r.acquire(e.node))),a=u=>u.some(u=>{if(!u.parent||"FunctionDeclaration"!==u.parent.type||r.acquire(u))return!1;let n=r.acquire(u.parent);return!(!n||nw(e,n))&&nw(t,n.upper)});return nD(e).map(({resolved:e})=>e).filter(Boolean).some(e=>u(e.references)||n(e.defs)||a(e.identifiers))}(r,n,t)}(e,u)))return{node:e,loc:nE(e,r),messageId:nF,data:{functionNameWithKind:nA(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",default:!0}}}],messages:{[nF]:"Move {{functionNameWithKind}} to the outer scope."}}});let{getStaticValue:nR}=e7,{isNumberLiteral:nN}=tI,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),nj=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,nO=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),nM=e=>nL(e,"Math",nO),n$=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"]),nz=e=>"CallExpression"===e.type&&!e.optional&&nL(e.callee,"Math",n$),nU=e=>nj(e,"Number"),nq=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),nW=e=>nL(e,"Number",nq),nV=new Set(["parseFloat","parseInt"]),nZ=e=>"CallExpression"===e.type&&!e.optional&&nL(e.callee,"Number",nV),nG=e=>nj(e,"parseInt")||nj(e,"parseFloat"),nH=(e,t)=>"number"==typeof nR(e,t)?.value,nK=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,nX=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var nJ=function e(t,r){if(nN(t)||nM(t)||nz(t)||nU(t)||nW(t)||nZ(t)||nG(t)||nK(t))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||nX.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=nR(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 nH(t,r)};let{getStaticValue:nY}=e7,{switchNewExpressionToCallExpression:nQ}=nt,{isNewExpression:n0}=tI,n1="error",n3="error-unknown",n2="suggestion",n4=(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(nJ(r,t))return"alloc";let u=nY(r,t);if(u){let{value:e}=u;if("string"==typeof e||Array.isArray(e))return"from"}};function n5(e,t,r){return function*(u){yield u.insertTextAfter(e.callee,`.${r}`),yield*nQ(e,t,u)}}var n8=K({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!n0(e,{name:"Buffer"}))return;let r=n4(e.arguments,t.getScope(e));return r?{node:e,messageId:n1,data:{method:r},fix:n5(e,t,r)}:{node:e,messageId:n3,suggest:["from","alloc"].map(r=>({messageId:n2,data:{replacement:r},fix:n5(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[n1]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[n3]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[n2]:"Switch to `Buffer.{{replacement}}()`."}}});let{isStringLiteral:n6,isMethodCall:n9}=tI,n7="no-console-spaces",ae=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),at=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var ar=K({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{let n="leading"===u?e.range[0]+1:e.range[1]-2,a=[n,n+1];return{loc:uu(a,t),messageId:n7,data:{method:r,position:u},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!n9(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(!n6(i)&&"TemplateLiteral"!==i.type)continue;let n=t.getText(i).slice(1,-1);0!==e&&ae(n)&&(yield r(i,u,"leading")),e!==a-1&&at(n)&&(yield r(i,u,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[n7]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});let{isEmptyNode:au,isDirective:an}=tI,aa="no-empty-file",ai=e=>au(e,an),ao=e=>"Line"===e.type&&e.value.startsWith("/"),as=e=>e.some(e=>ao(e));var ad=K({create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!ai(e)))return;let{sourceCode:r}=e;if(!as(r.getAllComments()))return{node:t,messageId:aa}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[aa]:"Empty files are not allowed."}}});let{isParenthesized:al,getParenthesizedRange:ac}=tl,{removeParentheses:af}=nt,ap="no-useless-fallback-in-spread";var am=K({create:e=>({ObjectExpression(t){if(0===t.properties.length&&"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:ap,*fix(r){let{sourceCode:u}=e,n=t.parent,{left:a}=n,i=al(a,u),[,o]=i?ac(a,u):a.range,[,s]=n.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*af(n,r,u))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[ap]:"The empty object is useless."}}});let{isMethodCall:ag,isMemberExpression:ay}=tI,{getParenthesizedRange:ah,isSameReference:ab,isLogicalExpression:av}=ug,ax=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&ay(e.left,{property:"length",optional:!1})&&av(e.parent);var aE=K({create:e=>{let t=[],r=new Set,u=new Set,n=new Set,a=new Set;return{BinaryExpression(e){if(ax(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&u.add(e)}},CallExpression(e){ag(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))},LogicalExpression(e){av(e)&&t.push(e)},*"Program:exit"(){for(let i of 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)&&ab(e.left.object,t.callee.object))||"&&"===t&&u.has(e)&&i.some(t=>n.has(t)&&ab(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))))yield{loc:{start:i.left.property.loc.start,end:i.loc.end},messageId:r.has(i)?"zero":"non-zero",fix(t){let{sourceCode:r}=e,{left:u,right:n}=i.parent,a=ah(u,r),o=ah(n,r),s=[];return u===i?(s[0]=a[0],s[1]=o[0]):(s[0]=a[1],s[1]=o[1]),t.removeRange(s)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}});let{getParenthesizedRange:aA}=ug,{isFunction:aD,isMethodCall:aC}=tI;var aS=K({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(aC(e,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===e.parent.type&&e.parent.body===e||"ReturnStatement"===e.parent.type&&e.parent.argument===e||"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)))return;let{functionNode:r,isInTryStatement:u}=function(e){let t,r=!1;for(;e;e=e.parent){if(aD(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(e);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}}(e,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.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(aA(n,r),s);if(s+=";",u)return s=`{ ${s} }`,t.replaceTextRange(aA(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)}}(e,u,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});let{isParenthesized:aF}=e7,{isDecimalInteger:aw}=r9,{fixSpaceAroundKeyword:a_}=nt,{isNumberLiteral:ak}=tI,aT="zero-fraction",aP="dangling-dot";var aI=K({create:e=>({Literal(t){if(!ak(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,d=t.range[0]+n.length+a.length,l=d-(r.length-o.length),{sourceCode:c}=e;return{loc:uu([l,d],c),messageId:s?aP:aT,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aw(o)&&!aF(t,c)&&(r=`(${r})`,r0(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*a_(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[aT]:"Don't use a zero fraction in the number.",[aP]:"Don't use a dangling dot in the number."}}});let{isCommaToken:aB,isOpeningBraceToken:aR,isClosingBraceToken:aN}=e7,{isStringLiteral:aL}=tI,aj="error",aO="suggestion",aM=Symbol.for("default"),a$=Symbol("NAMESPACE_SPECIFIER_NAME"),az=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},aU=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aq=e=>"type"===e.importKind||"type"===e.parent.importKind;function*aW(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:u}=e,{specifiers:n}=u;if(1===n.length){yield*aW(u,t,r);return}switch(e.type){case"ImportSpecifier":if(!n.some(t=>t!==e&&t.type===e.type)){let u=r.getTokenAfter(e,aN),n=r.getTokenBefore(e,aB);yield t.replaceTextRange([n.range[0],u.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let u=r.getTokenAfter(e);aB(u)&&(yield t.remove(u))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function aV(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,u]=e.range;return t.text.slice(r,u)}var aZ=K({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},u=new Set,n=[];return{ImportDeclaration(e){e.specifiers.length>0&&u.add(e)},ExportNamedDeclaration(e){aL(e.source)&&n.push(e)},*"Program:exit"(e){for(let a of u){let u=t.getDeclaredVariables(a);if(u.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(u=u.map(e=>{let r=function(e,t){let r=e.defs[0].node,u={node:r,declaration:r.parent,variable:e,isTypeImport:aq(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:aM,text:"default",...u};case"ImportSpecifier":return{name:az(r.imported),text:t.getText(r.imported),...u};case"ImportNamespaceSpecifier":return{name:a$,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:aM,text:"default",isTypeExport:aU(r)};case"ExportSpecifier":return{node:r,name:az(r.exported),text:t.getText(r.exported),isTypeExport:aU(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!==a$||n.name!==aM)&&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 i=r&&u.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of u)for(let u of a){let a={node:u.node,messageId:aj,data:{exported:u.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:u,program:n}){let a;let 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===a$)yield u.insertTextAfter(n,`
2
+ export * as ${r.text} ${aV(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 u.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,aR);yield u.insertTextAfter(t,o)}}else yield u.insertTextAfter(n,`
3
+ export {${o}} ${aV(i,e)}`)}1===t.variable.references.length&&(yield*aW(t.node,u,e)),yield*aW(r.node,u,e)}}({sourceCode:t,imported:r,exported:u,exportDeclarations:n,program:e});i?a.suggest=[{messageId:aO,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[aj]:"Use `export…from` to re-export `{{exported}}`.",[aO]:"Switch to `export…from`."}}});let{getFunctionHeadLocation:aG,getFunctionNameWithKind:aH}=e7,{functionTypes:aK}=tI,aX="prefer-native-coercion-functions",aJ=new Set(["String","Number","BigInt","Boolean","Symbol"]),aY=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),aQ=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&aJ.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,a0=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,a1=e=>a0(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&aY.has(e.parent.callee.property.name);var a3=K({create:e=>{e.on(aK,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(a1(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&aQ(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&aQ(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,u={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(u.fix=t=>{let u=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?u=`: ${u}`:"MethodDefinition"===e.parent.type&&(u=` = ${u};`),t.replaceText(e,u)}),u}(t);if(!r)return;let{sourceCode:u}=e,{replacementFunction:n,fix:a}=r;return r={node:t,loc:aG(t,u),messageId:aX,data:{functionNameWithKind:aH(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:!0},fixable:"code",messages:{[aX]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});let{ReferenceTracker:a2}=e7,a4=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r},a5=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:u,type:n=a2.READ}){for(let e of t)Object.assign(this.#e,a4(e,n));this.#t=r,this.#r=u}*track(e){for(let t of new a2(e).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(t))continue;let e=this.#r(t);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}};Object.assign(a5,{READ:a2.READ,CALL:a2.CALL,CONSTRUCT:a2.CONSTRUCT});var a8={GlobalReferenceTracker:a5};let{GlobalReferenceTracker:a6}=a8,a9="no-document-cookie",a7=new a6({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:a9})});var ie=K({create:e=>a7.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[a9]:"Do not use `document.cookie` directly."}}});let it=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var ir=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",...it("AnimationStart"),...it("AnimationEnd"),...it("AnimationIteration"),...it("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"]);let{isParenthesized:iu}=e7,{isUndefined:ia,isNullLiteral:ii,isStaticRequire:io}=tI,is="prefer-add-event-listener",id={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},il=e=>e.property.name,ic=e=>e.slice(2),ip=(e,t,r,u)=>{let n=ic(il(u)),a=t.getText(u.object);iu(u.object,t)&&(a=`(${a})`);let i=t.getText(r.right);iu(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${n}', ${i})`;return e.replaceText(r,o)},im=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),ig=e=>ia(e)||ii(e);var iy=K({create:e=>{let t,r;let u=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),n=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){n.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){io(e)&&!t&&u.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&u.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(r){let u;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=il(a);if(!s||!s.startsWith("on"))return;let d=ic(s);if(!ir.has(d))return;let l="addEventListener",c="";return ig(i)?l="removeEventListener":"beforeunload"!==d||im(i,n)?"message"===d?c=id.message:"error"===d?c=id.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(u=t=>ip(t,e.sourceCode,r,a)):c=id.beforeunload,{node:a.property,messageId:is,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:u}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[is]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});let{hasSideEffect:ih,isParenthesized:ib,findVariable:iv}=e7,{isMethodCall:ix}=tI,{isSameIdentifier:iE,isFunctionSelfUsedInside:iA}=ug,iD=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(iE(e.left,t)||iE(e.right,t)),iC=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iD(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&iD(e.body.body[0].argument,e.params[0]),iS=({type:e,name:t},r)=>"Identifier"===e&&t===r,iF=function({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",r=>{let o,s;if(!ix(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!iC(r.arguments[0]))return;let[d]=r.arguments,l="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[c]=d.params,{left:f,right:p}=l,{name:m}=c;if(iS(f,m))o=p,s=f;else{if(!iS(p,m))return;o=f,s=p}let g=i.acquire(d);if(iv(g,c).references.some(({identifier:e})=>e!==s)||iA(d,g))return;let y=r.callee.property,h={node:y,messageId:u,suggest:[]},b=function*(e){let r=a.getText(o);ib(o,a)&&!ib(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return ih(o,a)?h.suggest.push({messageId:n,fix:b}):h.fix=b,h})}}},iw=iF({method:"findIndex",replacement:"indexOf"}),i_=iF({method:"findLastIndex",replacement:"lastIndexOf"});var ik=K({create(e){iw.listen(e),i_.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...iw.messages,...i_.messages}}});let{isMethodCall:iT}=tI,iP="error";var iI=K({create:()=>({CallExpression(e){if(!iT(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iP,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:!0},messages:{[iP]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});let{isMethodCall:iB,isCallExpression:iR,isNewExpression:iN}=tI,{fixSpaceAroundKeyword:iL}=nt,ij="prefer-date",iO="prefer-date-now-over-methods",iM="prefer-date-now-over-number-data-object",i$=e=>iN(e,{name:"Date",argumentsLength:0}),iz=(e,t,r)=>({node:e,messageId:ij,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*iL(t,e,r))},...t});var iU=K({create:e=>({CallExpression(e){if(iB(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&i$(e.callee.object)){let t=e.callee.property;return iz(e,{node:t,messageId:iO,data:{method:t.name}})}if(iR(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&i$(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?iz(e,{messageId:iM}):iz(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&i$(t.argument))return iz("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&i$(e.right))return iz(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])i$(t)&&(yield iz(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[ij]:"Prefer `Date.now()` over `new Date()`.",[iO]:"Prefer `Date.now()` over `Date#{{method}}()`.",[iM]:"Prefer `Date.now()` over `Number(new Date())`."}}});let{isIdentifierName:iq}=tz,{escapeString:iW,hasOptionalChainElement:iV,isValueNotUsable:iZ}=ug,{isMethodCall:iG,isStringLiteral:iH,isExpressionStatement:iK}=tI,iX="prefer-dom-node-dataset",iJ=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var iY=K({create:e=>({CallExpression(t){if(!((iG(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iG(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&iH(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:iX,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iV(e.callee))&&("setAttribute"!==r||iZ(e))&&("removeAttribute"!==r||iK(e.parent)))return u=>{let[n]=e.arguments,a=iJ(n.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iq(a)?`.${a}`:`[${iW(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}, ${iW(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:!0},fixable:"code",messages:{[iX]:"Prefer `.dataset` over `{{method}}(…)`."}}});let{getParenthesizedText:iQ,getParenthesizedRange:i0,isSameReference:i1}=ug,{isLiteral:i3,isMethodCall:i2}=tI,{replaceNodeOrTokenAndSpacesBefore:i4,removeParentheses:i5}=nt,i8="prefer-modern-math-apis",i6=(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,i9=(e,t)=>"CallExpression"===e.type&&!e.optional&&i6(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function i7({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(u,n){let a,i;if(!("BinaryExpression"===u.type&&"*"===u.operator)||(i9(u.left,"log")&&i6(u.right,e)?(a=u.left,i=`Math.log(…) * Math.${e}`):i9(u.right,"log")&&i6(u.left,e)&&(a=u.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:u,messageId:i8,data:{replacement:r,description:i},fix:e=>e.replaceText(u,`Math.${t}(${iQ(o,n.sourceCode)})`)}}}function oe({constantName:e,replacementMethod:t}){let r={messageId:i8,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(u,n){if(!("BinaryExpression"===u.type&&"/"===u.operator&&i9(u.left,"log")&&i6(u.right,e)))return;let[a]=u.left.arguments;return{...r,node:u,fix:e=>e.replaceText(u,`Math.${t}(${iQ(a,n.sourceCode)})`)}}}let ot=[i7({constantName:"LOG10E",replacementMethod:"log10"}),i7({constantName:"LOG2E",replacementMethod:"log2"}),oe({constantName:"LN10",replacementMethod:"log10"}),oe({constantName:"LN2",replacementMethod:"log2"})],or=e=>"BinaryExpression"===e.type&&"+"===e.operator,ou=e=>"BinaryExpression"===e.type&&("*"===e.operator&&i1(e.left,e.right)||"**"===e.operator&&i3(e.right,2)),on=e=>or(e)?[e.left,e.right].flatMap(e=>on(e)):[e];var oa=K({create:e=>{let t=[];return{CallExpression(t){if(!i2(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=on(t.arguments[0]);if(r.some(e=>!ou(e)))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:i8,data:{replacement:`Math.${u}(…)`,description:"Math.sqrt(…)",recommended:!0},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,u),n)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*i4(t,",",a,i),yield*i5(e,a,i)}for(let e of r)yield a.removeRange([i0(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of ot){let u=t(r,e);u&&(yield u)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[i8]:"Prefer `{{replacement}}` over `{{description}}`."}}}),oi=X(t);let oo=e=>"function"==typeof e?.[Symbol.iterator],os=class extends Error{},od={abort(){throw new os("Fix aborted.")}};function ol(e){return t=>{let r=e(t,od);if(oo(r))try{return[...r]}catch(e){if(e instanceof os)return;throw e}return r}}let oc=new Set;function of(e){if(oc.has(e))return e;let t=t=>{let r={},u=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,n]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(r,n);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let u of r)!function(e,t){if(e){for(let r of(oo(e)||(e=[e]),e))if(r){if(r.fix&&=ol(r.fix),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&=ol(e.fix),e.data={...r.data,...e.data};t.report(r)}}}(u(...e),t)}]))};return oc.add(t),t}function op(e){let t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${e}`);return{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:Y(e)}},create:of(t.create)}}var om={loadRule:op,loadRules:function(){return Object.fromEntries(oi.readdirSync(J.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=J.basename(e.name,".js");return[t,op(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=of(e);let u=t=>{let u=e(t),{parserServices:n}=t.sourceCode;return n?.defineTemplateBodyVisitor?r?n.defineTemplateBodyVisitor(u,u):n.defineTemplateBodyVisitor(u):u};return oc.add(u),u}};let{checkVueTemplate:og}=om,{isNumberLiteral:oy,isBigIntLiteral:oh}=tI,ob="number-literal-case",ov=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var ox=K({create:og(()=>({Literal(e){let{raw:t}=e,r=t;if(oy(e)?r=ov(t):oh(e)&&(r=ov(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:ob,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[ob]:"Invalid number literal casing."}}});let{GlobalReferenceTracker:oE}=a8,{replaceReferenceIdentifier:oA}=nt,{fixSpaceAroundKeyword:oD}=nt,oC="error",oS="suggestion",oF={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},ow=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var o_=K({create:e=>{let{checkInfinity:t,checkNaN:r}={checkInfinity:!1,checkNaN:!0,...e.options[0]},{sourceCode:u}=e;return new oE({objects:Object.keys(oF).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),handle:e=>(function({node:e,path:[t]},r){let{parent:u}=e,n=t;"Infinity"===t&&(n=ow(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:oC,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*oD(e,u,r)},a;let i=t=>oA(e,`Number.${n}`,t,r);return oF[t]?a.fix=i:a.suggest=[{messageId:oS,fix:i}],a})(e,u),filter:({node:e})=>!rO(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[oC]:"Prefer `Number.{{property}}` over `{{description}}`.",[oS]:"Replace `{{description}}` with `Number.{{property}}`."}}});let{getPropertyName:ok}=e7,{isNullLiteral:oT,isMethodCall:oP}=tI,oI="prefer-reflect-apply",oB=(e,t)=>(oT(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oR=(e,t,r,u)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(u)})`,oN=(e,t)=>{if("apply"===ok(e.callee)&&2===e.arguments.length&&oB(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oR(t,e.callee.object,e.arguments[0],e.arguments[1]))},oL=(e,t)=>{if("call"===ok(e.callee)&&"apply"===ok(e.callee.object)&&"prototype"===ok(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oB(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oR(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oj=K({create:e=>({CallExpression(t){if(!oP(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=oN(t,r)||oL(t,r);if(u)return{node:t,messageId:oI,fix:u}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[oI]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});let{findVariable:oO}=e7,{fixSpaceAroundKeyword:oM}=nt,{isNewExpression:o$,isMemberExpression:oz}=tI,oU="prefer-set-size",oq=e=>o$(e,{name:"Set"});var oW=K({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!oz(e,{property:"length",optional:!1})||"ArrayExpression"!==e.object.type||1!==e.object.elements.length||e.object.elements[0]?.type!=="SpreadElement")return;let r=e.object.elements[0].argument;if(function(e,t){if(oq(e))return!0;if("Identifier"!==e.type)return!1;let r=oO(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&&oq(u.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oU,fix:function(e,t){let{object:r,property:u}=t,n=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(n).length))return function*(a){yield a.replaceText(u,"size"),yield a.replaceText(r,e.getText(n)),yield*oM(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[oU]:"Prefer using `Set#size` instead of `Array#length`."}}}),oV={exports:{}};h=String.fromCodePoint||(g=String.fromCharCode,y=Math.floor,function(){var e,t,r=[],u=-1,n=arguments.length;if(!n)return"";for(var a="";++u<n;){var i=Number(arguments[u]);if(!isFinite(i)||i<0||i>1114111||y(i)!=i)throw RangeError("Invalid code point: "+i);i<=65535?r.push(i):(i-=65536,e=(i>>10)+55296,t=i%1024+56320,r.push(e,t)),(u+1==n||r.length>16384)&&(a+=g.apply(null,r),r.length=0)}return a}),b={parse:function(e,t,r){function u(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function n(e,t){return e.range[0]=t,u(e)}function a(e,t){return u({type:"anchor",kind:e,range:[X-t,X]})}function i(e,t,r,n){return u({type:"value",kind:e,codePoint:t,range:[r,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=y().charCodeAt(0))>=56320&&t<=57343?i("symbol",(u-55296)*1024+t-56320+65536,++X-2,X):i("symbol",u,X-1,X)}function d(e,t,r,n,a){return null==n&&(r=X-1,n=X),u({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,n]})}function l(e,t,r,n){return u({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,n]})}function c(e,t,r,n){return e.codePoint>t.codePoint&&U("invalid range in character class",e.raw+"-"+t.raw,r,n),u({type:"characterClassRange",min:e,max:t,range:[r,n]})}function f(e){return"alternative"===e.type?e.body:[e]}function p(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){g(e)||U("character",e)}function g(t){if(e.indexOf(t,X)===X)return p(t.length)}function y(){return e[X]}function b(t){return e.indexOf(t,X)===X}function v(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,p(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());g("|");)e.push(A());return 1===e.length?e[0]:u({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,o=[],d=X;t=function(){if(X>=e.length||b("|")||b(")"))return null;var t=g("^")?a("start",1):g("$")?a("end",1):g("\\b")?a("boundary",2):g("\\B")?a("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var o=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return s(t);if(g("."))return u({type:"dot",range:[X-1,X]});if(g("\\")){if(!(t=w())){if(!K&&"c"==y())return i("symbol",92,X-1,X);U("atomEscape")}return t}if(t=N())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&g("(?<")){var t,n,a,o,d,l,c=I();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,p(2),o=x(/^[sim]+/),g("-")?(n=x(/^[sim]+/))||U("Invalid flags for modifiers group"):o||U("Invalid flags for modifiers group"),((d=(o=o?o[0]:"")+(n=n?n[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}(d))&&U("flags cannot be duplicated for modifiers group"),m(":"),(l=C("ignore",a)).modifierFlags={enabling:o,disabling:n},l):D("(?:","ignore","(","normal")}();if(!o){var d,l,c=X;(d=S()||!1)&&(X=c,U("Expected atom")),!K&&(l=x(/^{/))?o=s(l):U("Expected atom")}t=o}return(d=S()||!1)?(d.body=f(t),n(d,t.range[0]),d):t}();)o.push(t);return 1===o.length?o[0]:u({type:"alternative",body:o,range:[d,X]})}function D(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(e,t){var r=E();r||U("Expected disjunction"),m(")");var n=u({type:"group",behavior:e,body:f(r),range:[t,X]});return"normal"==e&&V&&W++,n}function S(){var e,t,r,u,n=X;return g("*")?e=d(0,void 0,void 0,void 0,"*"):g("+")?e=d(1,void 0,void 0,void 0,"+"):g("?")?e=d(0,1,void 0,void 0,"?"):(u=x(/^\{([0-9]+)\}/))?e=d(t=parseInt(u[1],10),t,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),\}/))?e=d(t=parseInt(u[1],10),void 0,u.range[0],u.range[1]):(u=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(u[1],10))>(r=parseInt(u[2],10))&&U("numbers out of order in {} quantifier","",n,X),e=d(t,r,u.range[0],u.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",n,X),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function F(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&b("\\")&&v("u")){var n=X;X++;var a=w(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",u(e)):X=n}}return e}function w(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,d=parseInt(t[0],10);return d<=W&&!e?u({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(d),V?Z=!0:_(a,X),p(-t[0].length),t=x(/^[0-7]{1,3}/))?o("octal",parseInt(t[0],8),t[0],1):n(t=s(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^0{1,3}$/.test(r))?o("null",0,"0",r.length):o("octal",parseInt(r,8),r,1))}(e)||function(){if(r.namedGroups&&x(/^k<(?=.*?>)/)){var e=I();return m(">"),u({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of CharacterClass","",i);else if(!K&&(a=x(/^c([0-9])/)))return o("controlLetter",a[1]+16,a[1],2);else if(!K&&(a=x(/^c_/)))return o("controlLetter",31,"_",2);if(K&&g("-"))return o("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?u({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?u({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(r.unicodeSet&&H&&g("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return u({type:"classString",characters:t,range:[r,X]})}());while(g("|"));return m("}"),u({type:"classStrings",strings:t,range:[e,X]})}())||T()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?F(o("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function T(){var e,t,u,n=X;if(u=x(/^[fnrtv]/)){var a=0;switch(u[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return o("singleEscape",a,"\\"+u[0])}return(u=x(/^c([a-zA-Z])/))?o("controlLetter",u[1].charCodeAt(0)%32,u[1],2):(u=x(/^x([0-9a-fA-F]{2})/))?o("hexadecimalEscape",parseInt(u[1],16),u[1],2):(u=k())?((!u||u.codePoint>1114111)&&U("Invalid escape sequence",null,n,X),u):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:o("identifier",(e=p()).charCodeAt(0),e,1):null)}function P(t){var r=y(),u=X;if("\\"===r){p();var n=k();return n&&t(n.codePoint)||U("Invalid escape sequence",null,u,X),h(n.codePoint)}var a=r.charCodeAt(0);if(a>=55296&&a<=56319){var i=(r+=e[X+1]).charCodeAt(1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536)}if(t(a))return p(),a>65535&&p(),r}function I(){var e,t=X,r=P(B);for(r||U("Invalid identifier");e=P(R);)r+=e;return u({type:"identifier",value:r,range:[t,X]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(h(e))}function R(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(h(e))}function N(){var e,t=X;return(e=x(/^\[\^/))?(e=L(),m("]"),l(e,!0,t,X)):g("[")?(e=L(),m("]"),l(e,!1,t,X)):null}function L(){var e,t;return b("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=O(!0);for(t.push(r),e="classRange"===r.type?"union":b("&")?"intersection":b("-")?"subtraction":"union";!b("]");)"intersection"===e?(m("&"),m("&"),b("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=O("union"===e));return{kind:e,body:t}}():((t=j())||U("classAtom"),(e=b("]")?[t]:function e(t){if(b("-")&&!v("]")){r=t.range[0],i=s(g("-")),(a=j())||U("classAtom"),u=X;var r,u,n,a,i,o,d=L();return(d||U("classRanges"),"codePoint"in t&&"codePoint"in a?n=[c(t,a,r,u)]:K?U("invalid character class"):n=[t,i,a],"empty"===d.type)?n:n.concat(d.body)}return(o=j())||U("classAtom"),(n=b("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(n)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function j(){var e;return g("-")?s("-"):(e=x(/^[^\\\]-]/))?s(e[0]):g("\\")?((e=w(!0))||U("classEscape"),F(e)):void 0}function O(e){var t,r,u=X;if(g("\\")){if(r=w(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+y(),u)}}else if(r=$())t=r;else{if(r=N())return r;U("Invalid character",y())}if(e&&b("-")&&!v("-")){if(m("-"),r=M())return c(t,r,u,X);U("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return s(e)}function z(){var e;if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=T())return e;else return null}function U(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)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oV.exports?oV.exports=b:window.regjsparser=b;var oZ=oV.exports;let{getStaticValue:oG}=e7,{parse:oH}=oZ,{isRegexLiteral:oK,isNewExpression:oX,isMethodCall:oJ}=tI,oY="method",oQ="pattern",o0=(e,t)=>{if(oK(e))return e.regex.flags.includes("g");if(oX(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=oG(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&u.global};var o1=K({create:e=>({CallExpression(t){if(!oJ(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:u}}=t;if(!o0(r,e.sourceCode.getScope(r)))return;let n=u.name,a=function(e){let t;if(!oK(e))return;let{pattern:r,flags:u}=e.regex;if("g"!==u.replace("u","").replace("v",""))return;try{t=oH(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 rT(String.fromCodePoint(...n.map(e=>e.codePoint)))}(r);if("replaceAll"===n){if(!a)return;return{node:r,messageId:oQ,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:u,messageId:oY,*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:!0},fixable:"code",messages:{[oY]:"Prefer `String#replaceAll()` over `String#replace()`.",[oQ]:"This pattern can be replaced with {{replacement}}."}}});let{getStaticValue:o3}=e7,{getParenthesizedText:o2,getParenthesizedRange:o4}=tl,{replaceArgument:o5}=nt,{isNumberLiteral:o8,isMethodCall:o6}=tI,o9=e=>o8(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-o9(e.argument):void 0,o7=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var se=K({create:e=>({CallExpression(t){if(!o6(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=o.getScope(e),d=o3(a,s),l=o4(i,o),c=e=>o5(t,i,e,o);if(d?.value===0){if(o8(i)||o7(i))return;if("number"==typeof o9(i)){yield c(Math.max(0,o9(i)));return}yield t.insertTextBeforeRange(l,"Math.max(0, "),yield t.insertTextAfterRange(l,")");return}if(n.every(e=>o8(e))){yield c(a.value+i.value);return}if(n.every(e=>nJ(e,s))){let e=o2(a,o);yield t.insertTextBeforeRange(l,`${e} + `);return}return u()}:function*({node:e,fixer:t,context:r,abort:u}){let{sourceCode:n}=r,[a,i]=e.arguments,o=a?o9(a):void 0,s=o2(a,n),d=e=>o5(t,a,e,n);if(!i){if(o7(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=o4(a,n);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let l=o9(i),c=o2(i,n),f=e=>o5(t,i,e,n);if(void 0!==o&&void 0!==l){let e=[Math.max(0,o),Math.max(0,l)];o>l&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==l&&(yield f(e[1]));return}if(0===o||0===l){yield d(0),yield f(`Math.max(0, ${0===o?c:s})`);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:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});let{isMethodCall:st}=tI,sr="prefer-string-trim-start-end";var su=K({create:()=>({CallExpression(e){if(!st(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:sr,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:!0},fixable:"code",messages:{[sr]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});let{isParenthesized:sn,getParenthesizedRange:sa,toLocation:si}=ug,so="no-unreadable-iife";var ss=K({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&sn(t.callee.body,r))return{node:t,loc:si(sa(t.callee.body,r),r),messageId:so}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[so]:"IIFE with parenthesized arrow function body is considered unreadable."}}});let{switchCallExpressionToNewExpression:sd}=nt,sl="throw-new-error",sc=/^(?:[A-Z][\da-z]*)*Error$/;var sf=K({create:e=>({CallExpression(t){let{callee:r}=t;if("Identifier"===r.type&&sc.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sc.test(r.property.name))return{node:t,messageId:sl,fix:r=>sd(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[sl]:"Use `new` when creating an error."}}}),sp=/[|\\{}()[\]^$+*?.]/g,sm=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"}]]);let sg=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sp,"\\$&")},sy=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sh(e){return e?sb[e.type](e):""}var sb={RegExp:function(e){return"/"+sh(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sh).join("")},Disjunction:function(e){return sh(e.left)+"|"+sh(e.right)},Group:function(e){var t=sh(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},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(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=sh(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sh(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(sh).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sh(e.from)+"-"+sh(e.to)},Repetition:function(e){return""+sh(e.expression)+sh(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},sv={generate:sh},sx={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sE=s_(sx),sA={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"},sD=s_(sA),sC={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"},sS=s_(sC),sF={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"},sw=s_(sF);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 sk(e){return sC.hasOwnProperty(e)||sS.hasOwnProperty(e)}var sT=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 sP(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 sI=void 0,sB={},sR=void 0,sN=void 0;function sL(e,t){return sB.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 sj=[[-1,1,function(e,t){sN=sL(t,t),sR=e}],[0,4,function(e,t,r,u,n,a,i,o){sN=sL(n,o),sR=s5({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)},s8(n,o||i))}],[1,1,function(e,t){sN=sL(t,t),sR=e}],[1,0,function(){sN=null,sR=""}],[2,1,function(e,t){sN=sL(t,t),sR=e}],[2,2,function(e,t,r,u){sN=sL(r,u),sR=e+t}],[3,1,function(e,t){sN=sL(t,t),sR=e}],[4,1,function(e,t){sN=sL(t,t),sR=e}],[4,3,function(e,t,r,u,n,a){sN=sL(u,a);var i=null;n&&(i=s8(u||n,a||n)),sR=s5({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sN=sL(t,t),0===e.length){sR=null;return}sR=1===e.length?s5(e[0],sN):s5({type:"Alternative",expressions:e},sN)}],[6,0,function(){sN=null,sR=[]}],[6,2,function(e,t,r,u){sN=sL(r,u),sR=e.concat(t)}],[7,1,function(e,t){sN=sL(t,t),sR=s5(Object.assign({type:"Assertion"},e),sN)}],[7,2,function(e,t,r,u){sN=sL(r,u),sR=e,t&&(sR=s5({type:"Repetition",expression:e,quantifier:t},sN))}],[8,1,function(e,t){sN=sL(t,t),sR={kind:"^"}}],[8,1,function(e,t){sN=sL(t,t),sR={kind:"$"}}],[8,1,function(e,t){sN=sL(t,t),sR={kind:"\\b"}}],[8,1,function(e,t){sN=sL(t,t),sR={kind:"\\B"}}],[8,3,function(e,t,r,u,n,a){sN=sL(u,a),sR={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,u,n,a){sN=sL(u,a),sR={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,u,n,a){sN=sL(u,a),sR={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,u,n,a){sN=sL(u,a),sR={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sN=sL(t,t),sR=e}],[9,1,function(e,t){sN=sL(t,t),sR=e}],[9,1,function(e,t){sN=sL(t,t),sR=e}],[10,1,function(e,t){sR=sY(e,"simple",sN=sL(t,t))}],[10,1,function(e,t){sN=sL(t,t),(sR=sY(e.slice(1),"simple",sN)).escaped=!0}],[10,1,function(e,t){(sR=sY(e,"unicode",sN=sL(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sR=sY(e,"unicode",sN=sL(t,t))}],[10,1,function(e,t){sR=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&&sJ.isGeneralCategoryValue(n),o=-1===u&&sJ.isBinaryPropertyName(n);if(i)a=n,n="General_Category";else if(o)a=n;else{if(!sJ.isValidName(n))throw SyntaxError("Invalid unicode property name: "+n+".");if(a=e.slice(u+1,-1),!sJ.isValidValue(n,a))throw SyntaxError("Invalid "+n+" unicode property value: "+a+".")}return s5({type:"UnicodeProperty",name:n,value:a,negative:r,shorthand:i,binary:o,canonicalName:sJ.getCanonicalName(n)||n,canonicalValue:sJ.getCanonicalValue(a)||a},t)}(e,sN=sL(t,t))}],[10,1,function(e,t){sR=sY(e,"control",sN=sL(t,t))}],[10,1,function(e,t){sR=sY(e,"hex",sN=sL(t,t))}],[10,1,function(e,t){sR=sY(e,"oct",sN=sL(t,t))}],[10,1,function(e,t){var r,u;r=sN=sL(t,t),sR=(u=Number(e.slice(1)))>0&&u<=sZ?s5({type:"Backreference",kind:"number",number:u,reference:u},r):sY(e,"decimal",r)}],[10,1,function(e,t){sR=sY(e,"meta",sN=sL(t,t))}],[10,1,function(e,t){sR=sY(e,"meta",sN=sL(t,t))}],[10,1,function(e,t){sN=sL(t,t),sR=function(e,t){var r=e.slice(3,-1),u=s4(r);if(sG.hasOwnProperty(u))return s5({type:"Backreference",kind:"name",number:sG[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=[sY(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(sQ))||(c=e.match(s0))?(n&&(d={startLine:a,endLine:i,startColumn:o,startOffset:n,endOffset:n+=c[0].length,endColumn:o+=c[0].length}),l.push(sY(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(sY(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){sN=sL(t,t),sR=e}],[11,0],[12,1,function(e,t){sN=sL(t,t),sR=e}],[12,2,function(e,t,r,u){sN=sL(r,u),e.greedy=!1,sR=e}],[13,1,function(e,t){sR=s5({type:"Quantifier",kind:e,greedy:!0},sN=sL(t,t))}],[13,1,function(e,t){sR=s5({type:"Quantifier",kind:e,greedy:!0},sN=sL(t,t))}],[13,1,function(e,t){sR=s5({type:"Quantifier",kind:e,greedy:!0},sN=sL(t,t))}],[13,1,function(e,t){sN=sL(t,t);var r=sK(e);sR=s5({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sN)}],[13,1,function(e,t){sN=sL(t,t),sR=s5({type:"Quantifier",kind:"Range",from:sK(e)[0],greedy:!0},sN)}],[13,1,function(e,t){sN=sL(t,t);var r=sK(e);sR=s5({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sN)}],[14,1,function(e,t){sN=sL(t,t),sR=e}],[14,1,function(e,t){sN=sL(t,t),sR=e}],[15,3,function(e,t,r,u,n,a){sN=sL(u,a);var i=String(e),o=s4(i);if(!sB.options.allowGroupNameDuplicates&&sG.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sG[o]=e.groupNumber,sR=s5({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sN)}],[15,3,function(e,t,r,u,n,a){sN=sL(u,a),sR=s5({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sN)}],[16,3,function(e,t,r,u,n,a){sR=s5({type:"Group",capturing:!1,expression:t},sN=sL(u,a))}],[17,3,function(e,t,r,u,n,a){sR=s5({type:"CharacterClass",negative:!0,expressions:t},sN=sL(u,a))}],[17,3,function(e,t,r,u,n,a){sR=s5({type:"CharacterClass",expressions:t},sN=sL(u,a))}],[18,0,function(){sN=null,sR=[]}],[18,1,function(e,t){sN=sL(t,t),sR=e}],[19,1,function(e,t){sN=sL(t,t),sR=[e]}],[19,2,function(e,t,r,u){sN=sL(r,u),sR=[e].concat(t)}],[19,4,function(e,t,r,u,n,a,i,o){sN=sL(n,o),sX(e,r),sR=[s5({type:"ClassRange",from:e,to:r},s8(n,i))],u&&(sR=sR.concat(u))}],[20,1,function(e,t){sN=sL(t,t),sR=e}],[20,2,function(e,t,r,u){sN=sL(r,u),sR=[e].concat(t)}],[20,4,function(e,t,r,u,n,a,i,o){sN=sL(n,o),sX(e,r),sR=[s5({type:"ClassRange",from:e,to:r},s8(n,i))],u&&(sR=sR.concat(u))}],[21,1,function(e,t){sR=sY(e,"simple",sN=sL(t,t))}],[21,1,function(e,t){sN=sL(t,t),sR=e}],[22,1,function(e,t){sN=sL(t,t),sR=e}],[22,1,function(e,t){sR=sY(e,"meta",sN=sL(t,t))}]],sO={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"},sM=[{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"}],s$=[],sz=void 0,sU=[[/^#[^\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 s3(sI.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&&"\\-"===sI);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sI);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 s3(sI=sI.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"}]],sq={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]},sW={type:"$",value:""};sz={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(sW);for(var e=this._string.slice(this._cursor),t=sq[this.getCurrentState()],r=0;r<t.length;r++){var u=sU[t[r]],n=this._match(e,u[0]);if(""===e&&""===n&&this._cursor++,null!==n){(sI=n).length;var a=u[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var i,o=a.slice(1);a=a[0],o.length>0&&(i=this._tokensQueue).unshift.apply(i,sP(o))}return this.onToken(this._toToken(a,sI))}}if(this.isEOF())return this._cursor++,sW;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}},sB.lexer=sz,sB.tokenizer=sz,sB.options={captureLocations:!0};var sV={setOptions:function(e){return sB.options=e,this},getOptions:function(){return sB.options},parse:function(e,t){if(!sz)throw Error("Tokenizer instance wasn't specified.");sz.initString(e);var r=sB.options;t&&(sB.options=Object.assign({},sB.options,t)),sV.onParseBegin(e,sz,sB.options),s$.length=0,s$.push(0);var u=sz.getNextToken(),n=null;do{u||(sB.options=r,s9());var a=s$[s$.length-1],i=sO[u.type];sM[a].hasOwnProperty(i)||(sB.options=r,s6(u));var o=sM[a][i];if("s"===o[0]){var s=null;sB.options.captureLocations&&(s={startOffset:u.startOffset,endOffset:u.endOffset,startLine:u.startLine,endLine:u.endLine,startColumn:u.startColumn,endColumn:u.endColumn}),n=this.onShift(u),s$.push({symbol:sO[n.type],semanticValue:n.value,loc:s},Number(o.slice(1))),u=sz.getNextToken()}else if("r"===o[0]){var d=sj[o.slice(1)],l="function"==typeof d[2],c=l?[]:null,f=l&&sB.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){s$.pop();var m=s$.pop();l&&(c.unshift(m.semanticValue),f&&f.unshift(m.loc))}var g={symbol:d[0]};if(l){sI=n?n.value:null,n&&n.value.length;var y=null!==f?c.concat(f):c;d[2].apply(d,sP(y)),g.semanticValue=sR,f&&(g.loc=sN)}var h=s$[s$.length-1],b=d[0];s$.push(g,sM[h][b])}else if("acc"===o){s$.pop();var v=s$.pop();if((1!==s$.length||0!==s$[0]||sz.hasMoreTokens())&&(sB.options=r,s6(u)),v.hasOwnProperty("semanticValue"))return sB.options=r,sV.onParseEnd(v.semanticValue),v.semanticValue;return sV.onParseEnd(),sB.options=r,!0}}while(sz.hasMoreTokens()||s$.length>1)},setTokenizer:function(e){return sz=e,sV},getTokenizer:function(){return sz},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sZ=0,sG={},sH="";function sK(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 sX(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")}sV.onParseBegin=function(e,t){sH=e,sZ=0,sG={};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"))},sV.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sZ),e};var sJ={isValidName:function(e){return sx.hasOwnProperty(e)||sE.hasOwnProperty(e)||sA.hasOwnProperty(e)||sD.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sk(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sF.hasOwnProperty(t)||sw.hasOwnProperty(t))},isGeneralCategoryValue:sk,isBinaryPropertyName:function(e){return sA.hasOwnProperty(e)||sD.hasOwnProperty(e)},getCanonicalName:function(e){return sE.hasOwnProperty(e)?sE[e]:sD.hasOwnProperty(e)?sD[e]:null},getCanonicalValue:function(e){return sS.hasOwnProperty(e)?sS[e]:sw.hasOwnProperty(e)?sw[e]:sD.hasOwnProperty(e)?sD[e]:null}};function sY(e,t,r){var u=void 0,n=void 0;switch(t){case"decimal":u=String.fromCodePoint(n=Number(e.slice(1)));break;case"oct":u=String.fromCodePoint(n=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sT(e.split("\\u").slice(1),2),i=a[0],o=a[1];u=String.fromCodePoint(n=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((n=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);u=String.fromCodePoint(n)}break;case"meta":switch(e){case"\\t":n=(u=" ").codePointAt(0);break;case"\\n":n=(u="\n").codePointAt(0);break;case"\\r":n=(u="\r").codePointAt(0);break;case"\\v":n=(u="\v").codePointAt(0);break;case"\\f":n=(u="\f").codePointAt(0);break;case"\\b":n=(u="\b").codePointAt(0);case"\\0":u="\0",n=0;case".":u=".",n=NaN;break;default:n=NaN}break;case"simple":n=(u=e).codePointAt(0)}return s5({type:"Char",value:e,kind:t,symbol:u,codePoint:n},r)}var sQ=/^\\u[0-9a-fA-F]{4}/,s0=/^\\u\{[0-9a-fA-F]{1,}\}/,s1=/\\u\{[0-9a-fA-F]{1,}\}/;function s3(e,t){if(s1.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var s2=/\\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 s4(e){return e.replace(RegExp(s2,"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 s5(e,t){return sB.options.captureLocations&&(e.loc={source:sH.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 s8(e,t){return sB.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function s6(e){"$"===e.type&&s9(),sz.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function s9(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var s7=sV.parse.bind(sV);sV.parse=function(e,t){return s7(""+e,t)},sV.setOptions({captureLocations:!1});var de=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}}(),dt="expressions",dr="expression",du=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=u,this.index=n}return de(e,[{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(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=void 0;return null!=r?(u||(u=dt),this._enforceProp(u),this.node[u][r]=t,n=e.getForNode(t,this,u,r)):(u||(u=dr),this._enforceProp(u),this.node[u]=t,n=e.getForNode(t,this,u,null)),n}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=dt),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dt;this._enforceProp(u),this.node[u].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,u)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.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(t,r){for(var u=e.getForNode(t),n=0;n<t[r].length;n++)e.getForNode(t[r][n],u,r,n).index=n}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,dt,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,dr):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,dn)===JSON.stringify(e.node,dn)}},{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:dn,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,u,-1==n?null:n));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==u&&(a.property=u),n>=0&&(a.index=n),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function dn(e,t){if("loc"!==e)return t}du.initRegistry(),du.traversingIndexStack=[];var da=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function u(e,t,r,u){var n=du.getForNode(t);return du.getForNode(e,n,r,u)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),du.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,u=t.post,n=t.skipProperty;!function e(t,a,i,o){if(t&&"string"==typeof t.type){var s=void 0;if(r&&(s=r(t,a,i,o)),!1!==s){for(var d in a&&a[i]&&(t=isNaN(o)?a[i]:a[i][o]),t)if(t.hasOwnProperty(d)){if(n?n(d,t):"$"===d[0])continue;var l=t[d];if(Array.isArray(l)){var c=0;for(du.traversingIndexStack.push(c);c<l.length;)e(l[c],t,d,c),c=du.updateTraversingIndex(1);du.traversingIndexStack.pop()}else e(l,t,d)}}u&&u(t,a,i,o)}}(e,null)}(e,{pre:function(e,n,a,i){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[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,n,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,n,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,n,a,i){if(e){var o=void 0;r.asNodes||(o=u(e,n,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[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,n,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}})},di=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}}(),ds=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return di(e,[{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=sv.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sv.generate(this._ast)),this._string}}]),e}(),dd=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sV.parse(e,{captureLocations:!0})),da(r,t),new ds(r)},dl={dotAll:{_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:{_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:{RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},dc=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},df=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 dp(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function dm(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}}function dg(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 dy=[function(e){return dh(e," ")}].concat(dg(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return db(t,e)}})),dg([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dv(t,e)}})),[function(e){return"ClassRange"===e.type&&dv(e.from,8192)&&dv(e.to,8202)}]);function dh(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 db(e,t){return dh(e,t,"meta")}function dv(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dx(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 dE(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function dA(e,t){var r=dD(e),u=dD(t);if(r===u){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return dD(e.to)-dD(t.to);if(dC(e)&&dC(t)||dS(e)&&dS(t))return e.value<t.value?-1:1}return r-u}function dD(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 dC(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 dS(e){return"Char"===e.type&&"control"===e.kind}function dF(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 dw(e){return e.codePoint>=48&&e.codePoint<=57}function d_(e,t){return dw(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dk(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(d_(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dT={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function dP(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}function dI(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 dB=new Map([["charSurrogatePairToSingleUnicode",{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",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(u=r.from,n=r.to,u.codePoint>=48&&u.codePoint<=57&&n.codePoint>=48&&n.codePoint<=57||u.codePoint>=65&&u.codePoint<=90&&n.codePoint>=65&&n.codePoint<=90||u.codePoint>=97&&u.codePoint<=122&&n.codePoint>=97&&n.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var u,n,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}}],["charCaseInsensitiveLowerCaseTransform",{_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=e.node,n=e.parent;if(!isNaN(u.codePoint)&&(this._hasUFlag||!(u.codePoint>=4096))){if("ClassRange"===n.type){if(!this._AZClassRanges.has(n)&&(t=n.from,r=n.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(n)}var a=u.symbol.toLowerCase();a!==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 u={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},n=u.lead,a=u.trail;return"\\u"+"0".repeat(4-n.length)+n+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,u),u.symbol=a,u.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{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",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var u=dm(r.node.quantifier),n=u.from,a=u.to,i=dm(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dp(r.node.quantifier)&&!dp(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=n+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dp(r.node.quantifier)||dp(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;df(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,u;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(u=e.node).from&&1===u.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{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",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,u,n,a,i,o,s,d;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,u=e.node,n=null,a=null,i=null,o=null,s=null,d=null,u.expressions.forEach(function(u,l){db(u,"\\d")?n=e.getChild(l):"ClassRange"===u.type&&"a"===u.from.value&&"z"===u.to.value?a=e.getChild(l):"ClassRange"===u.type&&"A"===u.from.value&&"Z"===u.to.value?i=e.getChild(l):"Char"===u.type&&"_"===u.value&&"simple"===u.kind?o=e.getChild(l):t&&r&&dv(u,383)?s=e.getChild(l):t&&r&&dv(u,8490)&&(d=e.getChild(l))}),n&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(n.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),i&&i.remove(),o.remove(),s&&s.remove(),d&&d.remove()),function(e){var t=e.node;if(!(t.expressions.length<dy.length)&&dy.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return db(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dy.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{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",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,u,n,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,u=e.index,("CharacterClass"!==(n=e.parent).type&&"ClassRange"!==n.type?"{"===r?function(e,t){if(null==e)return!1;var r=dx(e+1,t),u=e+r+1,n=u<t.expressions.length&&t.expressions[u];if(r){if(dE(n,"}"))return!0;if(dE(n,","))return r=dx(u+1,t),dE(n=(u=u+r+1)<t.expressions.length&&t.expressions[u],"}")}return!1}(u,n):"}"===r?function(e,t){if(null==e)return!1;var r=dx(e-1,t,!0),u=e-r-1,n=u>=0&&t.expressions[u];return!!(r&&dE(n,"{"))||!!dE(n,",")&&(r=dx(u-1,t,!0),n=(u=u-r-1)<t.expressions.length&&t.expressions[u],r&&dE(n,"{"))}(u,n):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===u&&!n.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){dC(e)&&r.push(e.value)}),t.sort(dA);for(var u=0;u<t.length;u++){var n,a=t[u];if(function(e,t,r){for(var u=0;u<t.length;u++)if(function e(t,r,u){return"ClassRange"===t.type?e(t.from,r,u)&&e(t.to,r,u):!!("\\S"===r&&(dC(t,"\\w")||dC(t,"\\d"))||"\\D"===r&&(dC(t,"\\W")||dC(t,"\\s"))||"\\w"===r&&dC(t,"\\d")||"\\W"===r&&dC(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dF(t):"\\S"===r?!dF(t):"\\d"===r?dw(t):"\\D"===r?!dw(t):"\\w"===r?d_(t,u):"\\W"===r&&!d_(t,u))}(e,t[u],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(dk(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[u-1])||(n=t[u+1])&&"ClassRange"===n.type&&dk(a)&&n.from.codePoint===a.codePoint+1&&(n.from=a,1))t.splice(u,1),u--;else{var i=function(e,t,r){if(!dk(e))return 0;for(var u=0;t>0;){var n=r[t],a=r[t-1];if(dk(a)&&a.codePoint===n.codePoint-1)u++,t--;else break}return u>1?(r[t]={type:"ClassRange",from:r[t],to:e},u):0}(a,u,t);t.splice(u-i+1,i),u-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},u=dc(t).filter(function(e){var t=e?du.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(u.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dT[r.type]){var u=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)})}(t,u)&&u.size){var n={type:"CharacterClass",expressions:Array.from(u.keys()).sort().map(function(e){return u.get(e)})};dT[r.type](e.getParent(),n)}}}}],["removeEmptyGroup",{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",{Group:function(e){var t=e.node,r=e.parent,u=e.getChild();if(!t.capturing&&u&&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)&&("Disjunction"!==u.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===u.node.type||"CharacterClass"===u.node.type)){if("Alternative"===u.node.type){var n=e.getParent();"Alternative"===n.node.type&&n.replace({type:"Alternative",expressions:[].concat(dP(r.expressions.slice(0,e.index)),dP(u.node.expressions),dP(r.expressions.slice(e.index+1)))})}else e.replace(u.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var u=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var u=e.node,n=Math.ceil(r/2),a=0;a<n;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=du.getForNode({type:"Alternative",expressions:[].concat(dI(u.expressions.slice(r-a,r)),[t.node])}),s=du.getForNode({type:"Alternative",expressions:[].concat(dI(u.expressions.slice(i,r-a)))})),o.hasEqualSource(s)){for(var d=0;d<2*a+1;d++)e.getChild(i).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),i}a++}return r}(e,u,r)))>=t.expressions.length||(u=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var u=e.node,n=0;n<r;){var a=e.getChild(n);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var i=a.getChild(),o=void 0;if("Group"!==i.node.type||i.node.capturing||(i=i.getChild()),n+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=du.getForNode({type:"Alternative",expressions:[].concat(dI(u.expressions.slice(n+1,r+1)))}),i.hasEqualSource(o)){for(var s=n;s<r;s++)e.getChild(n+1).remove();return df(a.node.quantifier),n}}n++}return r}(e,u,r)))>=t.expressions.length))break;u=e.getChild(r),r=Math.max(1,function(e,t,r){var u=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var n=t.getChild(),a=void 0;"Group"!==n.node.type||n.node.capturing||(n=n.getChild());var i=void 0;if("Alternative"===n.node.type?(i=n.node.expressions.length,a=du.getForNode({type:"Alternative",expressions:[].concat(dI(u.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(n)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return df(t.node.quantifier),r-i}}return r}(e,u,r)),r++}}}]]),dR=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},dN=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")},dL=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}}(),dj=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return dL(e,[{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&&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 e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function u(n){if(!t.has(n)){t.add(n),n.number=t.size,e._transitionTable[n.number]={},n.accepting&&e._acceptingStates.add(n);var a=n.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,l=a[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c=d.value,f=dN(c,2),p=f[0],m=f[1],g=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;u(E),g.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[n.number][p]=g}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].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}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),dO=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 dM(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 d$=null,dz=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 dU(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 dq=function(e){var t=e.getTransitionTable(),r=Object.keys(t),u=e.getAlphabet(),n=e.getAcceptingStateNumbers();d$={};var a=new Set;r.forEach(function(e){e=Number(e),n.has(e)?d$[e]=n:(a.add(e),d$[e]=a)});var i=[[a,n].filter(function(e){return e.size>0})],o=void 0,s=void 0;for(o=i[i.length-1],s=i[i.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var u=e[r],n=t[r];if(u.size!==n.size||[].concat(dM(u)).sort().join(",")!==[].concat(dM(n)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,n=!1,a=void 0;try{for(var d,l=o[Symbol.iterator]();!(r=(d=l.next()).done);r=!0){var c=d.value,f={},p=Array.isArray(c)?c:Array.from(c),m=p[0],g=p.slice(1);f[m]=new Set([m]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,F=Object.keys(f)[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;if(function(e,t,r,u){var n=!0,a=!1,i=void 0;try{for(var o,s=u[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;if(!function(e,t,r,u){if(!d$[e]||!d$[t])return!1;var n=r[e][u],a=r[t][u];return!n&&!a||d$[e].has(n)&&d$[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,w,t,u)){f[w].add(E),f[E]=f[w];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){n=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(n)throw a}}d$=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dM(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,l=1;o.forEach(function(e){return d.set(e,l++)});var c={},f=new Set,p=!0,m=!1,g=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dO(b,2),x=v[0],E=v[1];c[E]={};var A=!0,D=!1,C=void 0;try{for(var S,F=u[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;!function(e,t){var r=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;n.has(s)&&f.add(t)}}catch(e){u=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw a}}}(x,E);var _=void 0,k=!0,T=!1,P=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][w]);k=!0);}catch(e){T=!0,P=e}finally{try{!k&&B.return&&B.return()}finally{if(T)throw P}}_&&(c[E][w]=d.get(d$[_]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}catch(e){m=!0,g=e}finally{try{!p&&h.return&&h.return()}finally{if(m)throw g}}return e.setTransitionTable(c),e.setAcceptingStateNumbers(f),e},dW=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return dz(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dq(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 t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var u=[t[r[0]]["ε*"]],n=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};u.length>0;){var o=u.shift(),s=o.join(",");i[s]={};var d=!0,l=!1,c=void 0;try{for(var f,p=n[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var m=f.value,g=[];!function(t){var r=!0,u=!1,n=void 0;try{for(var i,o=a[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){u=!0,n=e}finally{try{!r&&o.return&&o.return()}finally{if(u)throw n}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][m];if(E){var A=!0,D=!1,C=void 0;try{for(var S,F=E[Symbol.iterator]();!(A=(S=F.next()).done);A=!0){var w=S.value;t[w]&&g.push.apply(g,dU(t[w]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&F.return&&F.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(g),k=[].concat(dU(_));if(k.length>0){var T=k.join(",");i[s][m]=T,i.hasOwnProperty(T)||u.unshift(k)}}}catch(e){l=!0,c=e}finally{try{!d&&p.return&&p.return()}finally{if(l)throw c}}}return this._transitionTable=this._remapStateNumbers(i)}},{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)}}]),e}(),dV=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}}(),dZ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return dV(e,[{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}}]),e}(),dG=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}}(),dH=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),dG(t,[{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 r=!0,u=!1,n=void 0;try{for(var a,i=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){u=!0,n=e}finally{try{!r&&i.return&&i.return()}finally{if(u)throw n}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),l=!0,c=!1,f=void 0;try{for(var p,m=d[Symbol.iterator]();!(l=(p=m.next()).done);l=!0)if(p.value.matches(s))return!0}catch(e){c=!0,f=e}finally{try{!l&&m.return&&m.return()}finally{if(c)throw f}}var g=!0,y=!1,h=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(g=(b=v.next()).done);g=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,h=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw h}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var u=!0,n=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(u=(i=o.next()).done);u=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){n=!0,a=e}finally{try{!u&&o.return&&o.return()}finally{if(n)throw a}}}(),this._epsilonClosure}}]),t}(dZ);function dK(e){var t=new dH,r=new dH({accepting:!0});return new dj(t.addTransition(e,r),r)}var dX={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d,l=o.value;(d=e).out.accepting=!1,l.out.accepting=!0,d.out.addTransition("ε",l.in),e=new dj(d.in,l.out)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},char:dK,e:function(){return dK("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),u=1;u<t;u++)r[u-1]=arguments[u];var n=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var d=o.value;e=function(e,t){var r=new dH,u=new dH;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),u.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",u),t.out.addTransition("ε",u),new dj(r,u)}(e,d)}}catch(e){a=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(a)throw i}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new dH,r=new dH({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dj(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},dJ=dX.alt,dY=dX.char,dQ=dX.or,d0=dX.rep,d1=dX.plusRep,d3=dX.questionRep;function d2(e){if(e&&!d4[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d4[e.type](e):""}var d4={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return d2(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(d2);return dJ.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 dQ(d2(e.left),d2(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d0(d2(e.expression));case"+":return d1(d2(e.expression));case"?":return d3(d2(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 dY(e.value)},Group:function(e){return d2(e.expression)}},d5=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sV.parse(e,{captureLocations:!0})),d2(t)},d8=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}}(),d6=function(){function e(t,r){var u=r.flags,n=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=n,this.flags=u,this.source=a||t.source,this.dotAll=u.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return d8(e,[{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}}]),e}(),d9=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dl),u=void 0,n={};return r.forEach(function(t){if(!dl.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dl).join(", "));var r=dl[t];e=(u=dd(e,r)).getAST(),"function"==typeof r.getExtra&&(n[t]=r.getExtra())}),u.setExtra(n),u},d7=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,u=void 0===r?[]:r,n=t.blacklist,a=void 0===n?[]:n,i=(u.length>0?u:Array.from(dB.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sV.parse(e));var s=new ds(o),d=void 0;do d=s.toString(),o=dR(s.getAST()),i.forEach(function(e){if(!dB.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dB.keys()).join(", "));var t=dB.get(e),r=dd(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dR(s.getAST()))});while(s.toString()!==d);return s};let le=(e,t)=>{if(t=t||"","string"!=typeof e)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof t}\``);for(let r of sm){let u=r[0],n=r[1];sy(t,n.flags)&&(e=e.replace(RegExp(sg(u),"g"),n.value))}return e},{optimize:lt}={parser:sV,fa:{NFA:dj,DFA:dW,builders:dX,toNFA:function(e){return d5(e)},toDFA:function(e){return new dW(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:ds,parse:function(e,t){return sV.parse(""+e,t)},traverse:function(e,t,r){return da(e,t,r)},transform:function(e,t){return dd(e,t)},generate:function(e){return sv.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d7(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return d9(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),u=r.getExtra();e=u.namedCapturingGroups?new d6(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:u.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:lr,isNewExpression:lu,isRegexLiteral:ln}=tI,la="better-regex",li="better-regex/parse-error";var lo=K({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!ln(e))return;let{raw:t,regex:u}=e;if(u.flags.includes("u")||u.flags.includes("v"))return;let n=t;try{n=lt(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:li,data:{original:t,error:r.message}}}if(t===n)return;let a={node:e,messageId:la,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},NewExpression(e){if(!lu(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!lr(t))return;let u=t.value,n=le(u,lr(r)?r.value:"");if(u!==n)return{node:e,messageId:la,data:{original:u,optimized:n},fix:e=>e.replaceText(t,rT(n,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[la]:"{{original}} can be optimized to {{optimized}}.",[li]:"Problem parsing {{original}}: {{error}}"}}});let{replaceTemplateElement:ls}=nt,{isRegexLiteral:ld,isStringLiteral:ll,isTaggedTemplateLiteral:lc}=tI,lf="escape-case",lp=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,lm=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,lg=({node:e,original:t,regex:r=lp,fix:u})=>{let n=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(n!==t)return{node:e,messageId:lf,fix:t=>u?u(t,n):t.replaceText(e,n)}};var ly=K({create:e=>{e.on("Literal",e=>{if(ll(e))return lg({node:e,original:e.raw})}),e.on("Literal",e=>{if(ld(e))return lg({node:e,original:e.raw,regex:lm})}),e.on("TemplateElement",e=>{if(!lc(e.parent,["String.raw"]))return lg({node:e,original:e.value.raw,fix:(t,r)=>ls(t,e,r)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[lf]:"Use uppercase characters for the value of the escape sequence."}}});let{replaceTemplateElement:lh}=nt,{isStringLiteral:lb,isRegexLiteral:lv,isTaggedTemplateLiteral:lx}=tI,lE="no-hex-escape";function lA(e,t,r){let u=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==u)return{node:t,messageId:lE,fix:e=>"TemplateElement"===t.type?lh(e,t,u):e.replaceText(t,u)}}var lD=K({create:e=>({Literal(t){if(lb(t)||lv(t))return lA(e,t,t.raw)},TemplateElement(t){if(!lx(t.parent,["String.raw"]))return lA(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[lE]:"Use Unicode escapes instead of hexadecimal escapes."}}});let{getPropertyName:lC,ReferenceTracker:lS}=e7,{fixSpaceAroundKeyword:lF}=nt,{isMemberExpression:lw,isMethodCall:l_}=tI,lk=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var lT=K({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let u=new WeakMap;for(let{node:r,path:n}of new lS(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(lk.map(e=>[e,{[lS.READ]:!0}]))))u.set(r,n);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let u;l_(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?u=e.arguments[0]:l_(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(u=e.callee.object);let{isGlobalReference:n,constructorName:a,methodName:i}=function(e,{sourceCode:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!lw(e,{optional:!1}))return;let u=e.object;if(!(("ArrayExpression"!==u.type||0!==u.elements.length)&&("ObjectExpression"!==u.type||0!==u.properties.length)))return{constructorName:"ArrayExpression"===u.type?"Array":"Object",methodName:lC(e,t.getScope(e))}}(u,{sourceCode:t,globalReferences:r})??{};if(a)return{node:u,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(n){yield r.replaceText(u,`${a}.prototype.${i}`);return}if(lw(u)){let n=u.object;yield r.replaceText(n,`${a}.prototype`),("ArrayExpression"===n.type||"ObjectExpression"===n.type)&&(yield*lF(r,e,t))}}}}(e,{sourceCode:t,globalReferences:u})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});let{getStaticValue:lP}=e7,{isCallOrNewExpression:lI}=tI,lB="missing-message",lR="message-is-empty-string",lN="message-is-not-a-string",lL=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var lj=K({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!lI(t,{names:lL,optional:!1}))return;let r=e.sourceCode.getScope(t);if(rX(r,t.callee))return;let u=t.callee.name,n="AggregateError"===u?1:0,a=t.arguments;if(a.some((e,t)=>t<=n&&"SpreadElement"===e.type))return;let i=a[n];if(!i)return{node:t,messageId:lB,data:{constructorName:u}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:lN};let o=lP(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:lN}:""===s?{node:i,messageId:lR}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[lB]:"Pass a message to the `{{constructorName}}` constructor.",[lR]:"Error message should not be an empty string.",[lN]:"Error message should be a string."}}});let{checkVueTemplate:lO}=om,{getParenthesizedRange:lM}=tl,{replaceNodeOrTokenAndSpacesBefore:l$,fixSpaceAroundKeyword:lz}=nt,lU=e=>"instanceof"===e.value&&"Keyword"===e.type,lq="no-instanceof-array";var lW=K({create:lO(e=>{let{sourceCode:t}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:r,right:u}=e,n=t,a=n.getTokenAfter(r,lU);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(n=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,lU)),{node:a,messageId:lq,*fix(i){yield*lz(i,e,t);let o=lM(r,n);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*l$(a,"",i,t,n),yield*l$(u,"",i,t,n)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[lq]:"Use `Array.isArray()` instead of `instanceof Array`."}}});let{isNewExpression:lV}=tI,lZ="prefer-type-error",lG=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"]),lH=new Set(["isNaN","isFinite"]),lK=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&lG.has(e.name)||!1===r&&lH.has(e.name)),lX=e=>e.parent&&e.parent.body&&1===e.parent.body.length,lJ=(e,t)=>!!lK(e.property,t,!0)||"MemberExpression"===e.object.type&&lJ(e.object,t),lY=(e,t)=>{switch(e.type){case"Identifier":return lK(e,t,!1);case"MemberExpression":return lJ(e,t);case"CallExpression":return lY(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&lY(e.argument);case"BinaryExpression":return"instanceof"===e.operator||lY(e.left,t)||lY(e.right,t);case"LogicalExpression":return lY(e.left,t)&&lY(e.right,t);default:return!1}},lQ=e=>"IfStatement"===e.type&&lY(e.test);var l0=K({create:()=>({ThrowStatement(e){if(lV(e.argument,{name:"Error"})&&lX(e)&&e.parent.parent&&lQ(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:lZ,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[lZ]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});let{isCallOrNewExpression:l1}=tI,l3="consistentDestructuring",l2="consistentDestructuringSuggest",l4=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},l5=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var l8=K({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&l4(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||l1(e.parent)&&e.parent.callee===e||rO(e))return;let u=r.get(t.getText(e.object));if(!u)return;let{scope:n,objectPattern:a}=u,i=t.getScope(e);if(!l5(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||ri(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:l3};let p=f?f.value.name:c;return{node:e,messageId:l3,suggest:[{messageId:l2,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},fixable:"code",hasSuggestions:!0,messages:{[l3]:"Use destructured variables over properties.",[l2]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),l6=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];let l9=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...l6],{GlobalReferenceTracker:l7}=a8,ce=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:ct,switchNewExpressionToCallExpression:cr}=nt;var cu=K({create:e=>{let{sourceCode:t}=e,r=new l7({objects:ce,type:l7.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let u={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(u.fix=function*(t){yield*cr(e,r,t)}),u})(e,t)}),u=new l7({objects:l9,type:l7.CALL,handle:e=>(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}return{node:e,messageId:"enforce",data:{name:t},fix:t=>ct(e,r,t)}})(e,t)});return{*"Program:exit"(e){let n=t.getScope(e);yield*r.track(n),yield*u.track(n)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});let{hasSideEffect:cn,isSemicolonToken:ca}=e7,{getCallExpressionTokens:ci,getCallExpressionArgumentsText:co}=ug,{isNodeMatches:cs}=tE,cd=function(e,t){let{parent:r}=e;for(let u of t.visitorKeys[r.type]||Object.keys(r)){let t=r[u];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:cl}=tI,cc="error",cf="suggestion",cp=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&cl(e,{method:"push",optionalCall:!1,optionalMember:!1});var cm=K({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:u}=e;return{CallExpression(e){if(!cp(e))return;let t=e.callee.object;if(cs(t,r))return;let n=function(e,t){let r=cd(e.parent,t)?.expression;if(cp(r))return r}(e,u);if(!n||!rK(n.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:cc},o=function*(t){if(a.length>0){let r=co(u,e),{trailingCommaToken:a,closingParenthesisToken:i}=ci(u,n);yield a?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,n.arguments.length>0?`, ${r}`:r)}let r=n.parent,i=e.parent,o=!ca(u.getLastToken(r))&&ca(u.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>cn(e,u))?i.suggest=[{messageId:cf,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[cc]:"Do not call `Array#push()` multiple times.",[cf]:"Merge with previous one."}}});let{isStaticRequire:cg,isMethodCall:cy,isLiteral:ch}=tI,cb="no-process-exit",cv=e=>ch(e,"node:worker_threads")||ch(e,"worker_threads");var cx=K({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,u=[];e.on("CallExpression",e=>{cg(e)&&cv(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&cv(e.source)&&(r=!0)}),e.on("CallExpression",e=>{cy(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&&cy(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:cb}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[cb]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}}),cE=function(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}.
4
+ Please open an issue at ${i}.`)};let{isSemicolonToken:cA}=e7,cD=function(e,t){let{loc:r,body:u}=e,n=t.getTokenBefore(u),{start:a}=r,{end:i}=n.loc;return{start:a,end:i}},{removeSpacesAfter:cC}=nt,cS="no-static-only-class",cF=({type:e,value:t})=>"Punctuator"===e&&"="===t,cw=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,c_=e=>"PropertyDefinition"===e.type,ck=e=>"MethodDefinition"===e.type;var cT=K({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!(!c_(e)&&!ck(e)||!r||t||"PrivateIdentifier"===o.type||u||n||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:cD(t,r),messageId:cS,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=cw(e);if(!d||!u){for(let e of n.body)if(c_(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(u){let a=t.getFirstToken(e);if(cE(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&n.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],n.range[0]).trim()){yield u.replaceText(a,"{");let e=t.getFirstToken(n);yield u.remove(e)}else yield u.replaceText(a,""),yield cC(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 u=t.getFirstToken(e);cE(u,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(u),yield cC(u,t,r);let n=c_(e)?t.getLastToken(e):t.getTokenAfter(e),a=cA(n);if(c_(e)){let{key:u,value:i}=e;if(i){let e=t.getTokenAfter(u,cF);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(n,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(n,","):r.insertTextAfter(e,",")}(e,t,u)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[cS]:"Use an object instead of a class with only static members."}}});let{isParenthesized:cP}=e7,{fixSpaceAroundKeyword:cI}=nt,cB="no-unreadable-array-destructuring",cR=(e,t,r)=>null===e&&null===r[t+1];var cN=K({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:u}=e;if(r.length<3||!r.some((e,t,r)=>cR(e,t,r)))return;let n={node:e,messageId:cB},a=r.filter(e=>null!==e);if("VariableDeclarator"===u.type&&u.id===e&&null!==u.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(n.fix=function*(n){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield n.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,l=u.init;!cP(l,t)&&ue(l,t)?(yield n.insertTextBefore(l,"("),yield n.insertTextAfter(u,`)${d}`)):yield n.insertTextAfter(u,d),yield*cI(n,e,t)})}return n}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[cB]:"Array destructuring may not contain consecutive ignored values."}}});let{isCommaToken:cL}=e7,{removeParentheses:cj,fixSpaceAroundKeyword:cO,addParenthesizesToReturnOrThrowExpression:cM}=nt,{isParenthesized:c$,isOnSameLine:cz}=ug,{isNewExpression:cU,isMethodCall:cq,isCallOrNewExpression:cW}=tI,cV="spread-in-list",cZ="iterable-to-array",cG="iterable-to-array-in-for-of",cH="iterable-to-array-in-yield-star",cK="clone-array",cX=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",cJ={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*cY(e,t,r){let[u,n,a]=r.getFirstTokens(t,3);yield e.remove(u),yield e.remove(n);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),cL(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!cz(u,a)&&!c$(t,r)){yield*cM(e,s,r);return}yield*cO(e,t,r)}var cQ=K({create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],e=>{if(!("SpreadElement"===e.parent.type&&e.parent.argument===e&&("ObjectExpression"===e.type&&"ObjectExpression"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"ArrayExpression"===e.type&&("ArrayExpression"===e.parent.parent.type&&e.parent.parent.elements.includes(e.parent)||cW(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,u=t.getFirstToken(r),n=r.parent.type;return{node:u,messageId:cV,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:cJ[n]},*fix(r){let a;yield r.remove(u),yield*cj(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),cL(o)&&(yield r.remove(o)),"CallExpression"===n||"NewExpression"===n)for(let[u,n]of(a=t.getFirstToken(e),e.elements.map((r,u,n)=>{if(u===n.length-1){let r=t.getLastToken(e,{skip:1});return cL(r)?r:void 0}let i=t.getTokenAfter(r||a,cL);return a=i,i})).entries())e.elements[u]||(yield r.insertTextBefore(n,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!cX(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(cU(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||cU(r,{names:l6,minimumArguments:1})||cq(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||cq(r,{objects:["Array",...l6],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||cq(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let u="",n=cZ;switch(r.type){case"ForOfStatement":n=cG;break;case"YieldExpression":n=cH;break;case"NewExpression":u=`new ${r.callee.name}(…)`;break;case"CallExpression":u=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:n,data:{parentDescription:u},fix:r=>cY(r,e,t)}}),e.on("ArrayExpression",e=>{if(!cX(e))return;let r=e.elements[0].argument;if(!(cq(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||cq(r,{method:"split",optionalCall:!1,optionalMember:!1})||cq(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&cq(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||cq(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||cU(r,{name:"Array"})))return;let u={node:e,messageId:cK};return cU(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=>cY(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[cV]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[cZ]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[cG]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[cH]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[cK]:"Unnecessarily cloning an array."}}});let{isColonToken:c0}=e7,{isEmptyNode:c1}=tI,c3=function(e,t){let r=e.test||t.getFirstToken(e),u=t.getTokenAfter(r,c0);return{start:e.loc.start,end:u.loc.end}},c2="no-useless-switch-case/error",c4="no-useless-switch-case/suggestion",c5=e=>e.consequent.every(e=>c1(e));var c8=K({create:e=>({*SwitchStatement(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(!c5(u))break;yield{node:u,loc:c3(u,e.sourceCode),messageId:c2,suggest:[{messageId:c4,fix:e=>e.remove(u)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[c2]:"Useless case in switch statement.",[c4]:"Remove this case."}}});let{isCommaToken:c6}=e7,{replaceNodeOrTokenAndSpacesBefore:c9}=nt,{isUndefined:c7,isFunction:fe}=tI,ft="no-useless-undefined",fr=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fu=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fr.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fn=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fa=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,fi=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fo=K({create:e=>{let{sourceCode:t}=e,r=(e,r,u)=>{if(u){let r=fn(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:ft,fix:r}},u={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},n=(e,r)=>c9(e,"",r,t);e.on("Identifier",e=>{if(c7(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>n(e,t),!0)}),e.on("Identifier",e=>{if(c7(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>n(e,t))}),u.checkArrowFunctionBody&&e.on("Identifier",e=>{if(c7(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>c9(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(c7(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return r(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),e.on("Identifier",t=>{if(c7(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let u=t.parent,{left:n}=u;yield r.removeRange([n.range[1],t.range[1]]),(n.typeAnnotation||fi(e))&&!n.optional&&fe(u.parent)&&u.parent.params.includes(u)&&(yield n.typeAnnotation?r.insertTextBefore(n.typeAnnotation,"?"):r.insertTextAfter(n,"?"))},!0)}),u.checkArguments&&e.on("CallExpression",e=>{if(fu(e.callee))return;let r=e.arguments;if(fa(e)&&1!==r.length)return;let u=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(c7(t))u.unshift(t);else break}if(0===u.length)return;let n=u[0],a=u.at(-1);return{messageId:ft,loc:{start:n.loc.start,end:a.loc.end},fix(e){let i=n.range[0],o=a.range[1],s=r[r.length-u.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);c6(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[ft]:"Do not use useless `undefined`."}}});let{isBigIntLiteral:fs}=tI,fd="numeric-separators-style";function fl(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 fc={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},ff=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});var fp=K({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:u,hexadecimal:n,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fc.binary,...r},"0o":{onlyIfContainsSeparator:t,...fc.octal,...u},"0x":{onlyIfContainsSeparator:t,...fc.hexadecimal,...n},"":{onlyIfContainsSeparator:t,...fc.number,...a}};return{Literal(e){if(!r9.isNumeric(e)||r9.isLegacyOctal(e))return;let{raw:t}=e,r=t,u="";fs(e)&&(r=t.slice(0,-1),u="n");let n=r.replaceAll("_",""),{prefix:a,data:o}=r9.getPrefix(n),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},u){let n=u[t.toLowerCase()];if(t)return t+fl(r,n);let{number:a,mark:i,sign:o,power:s}=r9.parseNumber(e);return function(e,t){let{integer:r,dot:u,fractional:n}=r9.parseFloatNumber(e);return fl(r,t)+u+fl(n,t,!0)}(a,n)+i+o+fl(s,u[""])}(n,{prefix:a,data:o},i)+u;if(t!==d)return{node:e,messageId:fd,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fc).map(([e,t])=>[e,ff(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fd]:"Invalid group length in numeric value."}}});let{isParenthesized:fm,findVariable:fg}=e7,{extendFixRange:fy,removeMemberExpressionProperty:fh,removeMethodCall:fb,renameVariable:fv}=nt,{isLeftHandSide:fx,singular:fE,getScopes:fA,avoidCapture:fD,getVariableIdentifiers:fC}=ug,{isMethodCall:fS}=tI,fF="error-zero-index",fw="error-shift",f_="error-pop",fk="error-at-zero",fT="error-at-minus-one",fP="error-destructuring-declaration",fI="error-destructuring-assignment",fB="error-variable",fR="suggest-nullish-coalescing-operator",fN="suggest-logical-or-operator",fL=e=>fS(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),fj=(e,t)=>{if("AssignmentExpression"!==e.type||fm(e,t))return!1;let{left:r}=fM(e),[u]=r.elements,{type:n}="AssignmentPattern"===u.type?u.left:u;return"ObjectExpression"===n||"ObjectPattern"===n},fO=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,fM=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*f$(e,t,r){let{left:u}=fM(e),[n]=u.elements,a=t.getText("AssignmentPattern"===n.type?n.left:n);yield r.replaceText(u,a),fj(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let fz=e=>"AssignmentPattern"===fM(e).left.elements[0].type,fU=(e,t,r,u)=>{let{left:n,right:a}=fM(e),[i]=n.elements,o=i.right,s=t.getText(o);return(fm(o,t)||fO(o,u))&&(s=`(${s})`),r.insertTextAfter(a,` ${u} ${s}`)},fq=(e,t)=>{let r,u;let{property:n}=fM(t).right.callee;return fz(t)?r=[{operator:"??",messageId:fR},{operator:"||",messageId:fN}].map(({messageId:r,operator:u})=>({messageId:r,*fix(r){yield r.replaceText(n,"find"),yield fU(t,e,r,u),yield*f$(t,e,r)}})):u=function*(r){yield r.replaceText(n,"find"),yield*f$(t,e,r)},{fix:u,suggest:r}},fW=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,fV=e=>{let{left:t,right:r}=fM(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var fZ=K({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!1,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&fL(e.object)&&!fx(e))return{node:e.object.callee.property,messageId:fF,fix:r=>[r.replaceText(e.object.callee.property,"find"),fh(r,e,t)]}}),e.on("CallExpression",e=>{if(fS(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fL(e.callee.object))return{node:e.callee.object.callee.property,messageId:fw,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fb(r,e,t)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&fL(e.init))return{node:e.init.callee.property,messageId:fP,...fq(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&&fL(e.right))return{node:e.right.callee.property,messageId:fI,...fq(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&fL(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let r=t.getScope(e),u=fg(r,e.id),n=fC(u).filter(t=>t!==e.id);if(0===n.length)return;let a=[],i=[];for(let e of n)if(fW(e))a.push(e.parent);else{if(!fV(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:fB};return i.some(e=>fz(e))||(o.fix=function*(n){yield n.replaceText(e.init.callee.property,"find");let o=fE(e.id.name);if(o){let e=fD(o,fA(r));yield*fv(u,e,n),yield*fy(n,t.ast.range)}for(let e of a)yield fh(n,e,t);for(let e of i)yield*f$(e,t,n)}),o}),e.on("CallExpression",e=>{if(fS(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&fL(e.callee.object))return{node:e.callee.object.callee.property,messageId:fk,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fb(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(fS(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&fL(e.callee.object))return{node:e.callee.object.callee.property,messageId:f_,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fb(r,e,t)]}}),e.on("CallExpression",e=>{if(fS(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&fL(e.callee.object))return{node:e.callee.object.callee.property,messageId:fT,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fb(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!1}}}],messages:{[fB]:"Prefer `.find(…)` over `.filter(…)`.",[fF]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fk]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[fw]:"Prefer `.find(…)` over `.filter(…).shift()`.",[f_]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fT]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fP]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fI]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fR]:"Replace `.filter(…)` with `.find(…) ?? …`.",[fN]:"Replace `.filter(…)` with `.find(…) || …`."}}});let{isNodeMatches:fG}=tE,{isMethodCall:fH}=tI,{removeMethodCall:fK}=nt,fX="prefer-array-flat-map",fJ=["React.Children","Children"];var fY=K({create:e=>({CallExpression(t){if(!(fH(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)&&fH(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(fG(r.callee.object,fJ))return;let{sourceCode:u}=e,n=r.callee.property;return{node:t,loc:{start:n.loc.start,end:t.loc.end},messageId:fX,*fix(e){yield*fK(e,t,u),yield e.replaceText(n,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[fX]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});let{getParenthesizedText:fQ,isArrayPrototypeProperty:f0,isNodeMatches:f1,isNodeMatchesNameOrPath:f3,isParenthesized:f2,isSameIdentifier:f4,needsSemicolon:f5,shouldAddParenthesesToMemberExpressionObject:f8}=ug,{fixSpaceAroundKeyword:f6}=nt,{isMethodCall:f9,isCallExpression:f7}=tI,pe="prefer-array-flat",pt=e=>"ArrayExpression"===e.type&&0===e.elements.length,pr={testFunction(e){if(!f9(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&f4(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()",recommended:!0},pu={testFunction(e){if(!f9(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&pt(r)))return!1;let u=t.body,[n,a]=t.params;return f9(u,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&f4(n,u.callee.object)&&f4(a,u.arguments[0])||"ArrayExpression"===u.type&&2===u.elements.length&&u.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&f4(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()",recommended:!0},pn={testFunction:e=>f9(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pt(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",recommended:!0,shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},pa={testFunction(e){if(!(f9(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&f0(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pt(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()",recommended:!0,shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},pi=["_.flatten","lodash.flatten","underscore.flatten"];var po=K({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...pi],u=[pr,pu,pn,pa,{testFunction:e=>f7(e,{argumentsLength:1,optional:!1})&&f1(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>f3(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:n,getArrayNode:a,shouldSwitchToArray:i}of u){if(!r(t))continue;let u=a(t),o={description:"string"==typeof n?n:n(t)},s={node:t,messageId:pe,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(u).length&&(s.fix=function(e,t,r,u){return"function"==typeof u&&(u=u(e)),function*(n){let a=fQ(t,r);u?a=`[${a}]`:!f2(t,r)&&f8(t,r)&&(a=`(${a})`),a=`${a}.flat()`,f5(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield n.replaceText(e,a),yield*f6(n,e,r)}}(t,u,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pe]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});let{checkVueTemplate:ps}=om,{isBooleanNode:pd,getParenthesizedRange:pl,isNodeValueNotFunction:pc}=ug,{removeMemberExpressionProperty:pf}=nt,{isLiteral:pp,isUndefined:pm,isMethodCall:pg,isMemberExpression:py}=tI,ph="some",pb="some-suggestion",pv="filter",px=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&pm(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pp(e.parent.right,null));var pE=K({create:ps(e=>({CallExpression(t){if(!pg(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=px(t);if(!r&&!pd(t))return;let u=t.callee.property;return{node:u,messageId:ph,data:{method:u.name},suggest:[{messageId:pb,*fix(n){if(yield n.replaceText(u,"some"),!r)return;let a=pl(t,e.sourceCode);yield n.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield n.insertTextBeforeRange(a,"!"))}}]}},BinaryExpression(t){if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&py(t.left,{property:"length",optional:!1})&&pg(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[u]=r.arguments;if(!u||pc(u))return;let n=r.callee.property;return{node:n,messageId:pv,*fix(r){yield r.replaceText(n,"some");let{sourceCode:u}=e,a=t.left;yield pf(r,a,u),yield r.removeRange([pl(a,u)[1],t.range[1]])}}}})),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.",recommended:!0},fixable:"code",messages:{[ph]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pb]:"Replace `.{{method}}(…)` with `.some(…)`.",[pv]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});let{isMethodCall:pA}=tI,pD=e=>pA(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":pA(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pC=K({create:()=>({CallExpression(e){let t=pD(e);if(!t)return;let r=e.callee.property,u=r.name;return{node:r,messageId:`error/${u}`,suggest:[{messageId:`suggestion/${t}`,fix:e=>e.replaceText(r,t)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}});let{findVariable:pS}=e7,{functionTypes:pF}=tI,pw="preferDefaultParameters",p_="preferDefaultParametersSuggest",pk=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,pT=(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(pT(e,t))return!0}else if(pT(e,u))return!0}return!1},pP=(e,t,r)=>{for(let u of t.body.body){if(u===r)break;if(pT(e,u))return!0}return!1},pI=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,pB=(e,t)=>{let r=e.at(-1);return t&&t===r},pR=(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},pN=(e,t,r)=>{let{line:u}=r.loc.start,{column:n}=r.loc.end,a=t.getText(r),i=t.lines[u-1],o=i.trim()===a,s=" "===i[n];return o?e.removeRange([t.getIndexFromLoc({line:u,column:0}),t.getIndexFromLoc({line:u+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var pL=K({create:e=>{let{sourceCode:t}=e,r=[],u=(e,u,n,a)=>{let i=r.at(-1);if(!i||!pk(u,n))return;let{name:o}=u,{left:{name:s},right:{raw:d}}=n;if(a&&o!==s)return;let l=pS(t.getScope(e),s);if(!l)return;let{references:c}=l,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(pP(t,i,e)||pI(a,c,u)||!pB(f,p))return;let m=pR(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pw,suggest:[{messageId:p_,fix:r=>[r.replaceText(p,m),pN(r,t,e)]}]}};e.on(pF,e=>{r.push(e)}),e.onExit(pF,()=>{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:!0},fixable:"code",hasSuggestions:!0,messages:{[pw]:"Prefer default parameters over reassignment.",[p_]:"Replace reassignment with default parameter."}}});let{isParenthesized:pj,getParenthesizedText:pO}=tl,pM=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)},p$="prefer-logical-operator-over-ternary/error",pz="prefer-logical-operator-over-ternary/suggestion";function pU(e,t,r){if(rK(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return pU(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&pU(e.left,t.left,r)&&pU(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&pU(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function pq({sourceCode:e,conditionalExpression:t,left:r,right:u}){return{node:t,messageId:p$,suggest:["??","||"].map(n=>({messageId:pz,data:{operator:n},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:u,right:n,operator:a}){let i=[u,n].map((e,r)=>{let u=pj(e,t),n=u?pO(e,t):t.getText(e);return!u&&pM(e,{operator:a,property:0===r?"left":"right"})&&(n=`(${n})`),n}).join(` ${a} `);return r0(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:u,operator:n})}))}}var pW=K({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:u,alternate:n}=e;return pU(r,u,t)?pq({sourceCode:t,conditionalExpression:e,left:r,right:n}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&pU(r.argument,n,t)?pq({sourceCode:t,conditionalExpression:e,left:r.argument,right:u}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[p$]:"Prefer using a logical operator over a ternary.",[pz]:"Switch to `{{operator}}` operator."}}});let{isOpeningParenToken:pV,isClosingParenToken:pZ}=e7,pG="with-name",pH="without-name";var pK=K({create:e=>({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?pG:pH,data:{name:a},*fix(e){let t=u.getTokenBefore(r);cE(t,{test:pV,expected:"(",ruleId:"prefer-optional-catch-binding"});let n=u.getTokenAfter(r);cE(n,{test:pZ,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(n);let[,a]=n.range,[o]=i.body.range,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:!0},fixable:"code",messages:{[pG]:"Remove unused catch binding `{{name}}`.",[pH]:"Remove unused catch binding."}}});let{isParenthesized:pX,getStaticValue:pJ}=e7,{checkVueTemplate:pY}=om,{isRegexLiteral:pQ,isNewExpression:p0,isMethodCall:p1}=tI,{isBooleanNode:p3,shouldAddParenthesesToMemberExpressionObject:p2}=ug,p4="regexp-exec",p5="string-match",p8="suggestion",p6=[{type:p4,test:e=>p1(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:p5,test:e=>p1(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){yield e.replaceText(r,"test");let a=n.getText(t);pX(u,n)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(u,a);let i=n.getText(u);!pX(t,n)&&p2(u,n)&&(i=`(${i})`),yield e.replaceText(t,i)}}],p9=e=>pQ(e)||p0(e,{name:"RegExp"}),p7=(e,t)=>{if(pQ(e))return!e.regex.flags.includes("g");let r=pJ(e,t);if(!r)return!1;let{value:u}=r;return"[object RegExp]"===Object.prototype.toString.call(u)&&!u.global};var me=K({create:pY(e=>({*CallExpression(t){if(p3(t))for(let{type:r,test:u,getNodes:n,fix:a}of p6){if(!u(t))continue;let i=n(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===p4?o:t,messageId:r},{sourceCode:l}=e,c=e=>a(e,i,l);p9(s)||p7(s,l.getScope(s))?d.fix=c:d.suggest=[{messageId:p8,fix:c}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[p4]:"Prefer `.test(…)` over `.exec(…)`.",[p5]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[p8]:"Switch to `RegExp#test(…)`."}}});let{findVariable:mt}=e7,{getVariableIdentifiers:mr}=ug,{isCallOrNewExpression:mu,isMethodCall:mn}=tI,ma="error",mi="suggestion",mo=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],ms=e=>{let{type:t,optional:r,callee:u,arguments:n}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===u.type&&!u.computed&&!u.optional&&u.object===e&&"Identifier"===u.property.type&&"includes"===u.property.name&&1===n.length&&"SpreadElement"!==n[0].type},md=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),ml=(e,t)=>{let r=t.parent.parent.parent,{parent:u}=e.parent;for(;u&&u!==r;){if(md.has(u.type))return!0;u=u.parent}return!1};var mc=K({create:e=>({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||mu(r.init,{name:"Array",optional:!1})||mn(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||mn(r.init,{methods:mo,optionalCall:!1,optionalMember:!1}))))return;let u=mt(e.sourceCode.getScope(t),t);if(!u)return;let n=mr(u).filter(e=>e!==t);if(0===n.length||n.some(e=>!ms(e))||1===n.length&&n.every(e=>!ml(e,t)))return;let a={node:t,messageId:ma,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:mi,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:!0},fixable:"code",hasSuggestions:!0,messages:{[ma]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[mi]:"Switch `{{name}}` to `Set`."}}});let{hasSideEffect:mf}=e7,mp=function(e,t){let{line:r,column:u}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,u).match(/\s*$/)[0]},mm="prefer-switch",mg=(e,t)=>e===t||rK(e,t),my=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),mh=e=>{for(;e.parent;e=e.parent)if(my.has(e.type))return e},mb=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var mv=K({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,u=new Set,n=[],a=new Set;return{IfStatement(e){u.add(e)},BreakStatement(e){e.label||n.push(e)},*"Program:exit"(){for(let e of u){if(a.has(e))continue;let{discriminant:u,ifStatements:i}=function(e){let t;let 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=>mg(e,r)||mg(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]}}(e);if(!u||i.length<t.minimumCases)continue;for(let{statement:e}of i)a.add(e);let o={loc:{start:e.loc.start,end:e.consequent.loc.start},messageId:mm};mf(u,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!mb(r,t))continue;let e=mh(r);if(!e||mb(t,e))return!0}return!1})(n,e))||(o.fix=function({discriminant:e,ifStatements:t},r,u){let n=r.getText(e);return function*(a){let i=t[0].statement,o=mp(i,r);yield a.insertTextBefore(i,`switch (${n}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
5
5
  ${o}default: `)}else switch(u.emptyDefaultCase){case"no-default-comment":yield a.insertTextAfter(i,`
6
6
  ${o}// No default`);break;case"do-nothing-comment":yield a.insertTextAfter(i,`
7
7
  ${o}default:
8
8
  ${o}// Do nothing`)}for(let{statement:u,compareExpressions:n}of(yield a.insertTextAfter(i,`
9
- ${o}}`),t)){let{consequent:t,alternate:i,range:s}=u,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:u,right:i}of(yield a.replaceTextRange(d,""),n)){let n=mb(u,e)?i:u,s=r.getText(n);yield a.insertTextBefore(t,`
9
+ ${o}}`),t)){let{consequent:t,alternate:i,range:s}=u,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:u,right:i}of(yield a.replaceTextRange(d,""),n)){let n=mg(u,e)?i:u,s=r.getText(n);yield a.insertTextBefore(t,`
10
10
  ${o}case ${s}: `)}(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 u=r[t];if("FunctionDeclaration"!==u.type&&"EmptyStatement"!==u.type){if("BlockStatement"===u.type){let t=e(u);if(t)return t;continue}return u}}}(t);return!r||e(r)}default:return!0}})(t)&&(yield*function*(e,t,r,u){if("BlockStatement"===e.type){let n=r.getLastToken(e);yield t.insertTextBefore(n,`
11
11
  ${u}break;
12
12
  ${u}`)}else yield t.insertTextAfter(e,`
13
13
  ${u}break;`)}(t,a,r,o),yield*function*(e,t,r){e&&"BlockStatement"!==e.type&&(yield t.insertTextBefore(e,`{
14
14
  ${r}`),yield t.insertTextAfter(e,`
15
- ${r}}`))}(t,a,o))}}}({discriminant:u,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[mh]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:mD}=u6,{isMethodCall:mC}=tk,mS="require-number-to-fixed-digits-argument";var mF=K({create:e=>({CallExpression(t){if(!mC(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2);return{loc:{start:u.loc.start,end:n.loc.end},messageId:mS,fix:e=>mD(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`."},fixable:"code",messages:{[mS]:"Missing the digits argument."}}});let mw=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function m_(e){return(m_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var u,n,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(u=a.call(r)).done)&&(o.push(u.value),o.length!==t);s=!0);}catch(e){d=!0,n=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return o}}(e,t)||mP(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mP(e,t){if(e){if("string"==typeof e)return mT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mT(e,t):void 0}}function mT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function mI(e,t){return e(t={exports:{}},t.exports),t.exports}var mB=mI(function(e,t){!function e(t){var r,u,n,a,i,o;function s(e){var t,r,u={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],u[t]="object"==typeof r&&null!==r?s(r):r);return u}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,u){this.node=e,this.path=t,this.wrap=r,this.ref=u}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},n={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,u,n;function a(e,t){if(Array.isArray(t))for(r=0,u=t.length;r<u;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(n=[],e=2,t=this.__leavelist.length;e<t;++e)a(n,this.__leavelist[e].path);return a(n,this.__current.path),n},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,u;return u=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(u=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,u},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=n,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,u,n,o,s,d,c,g,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,r.push(new l(e,null,null,null)),u.push(new l(null,null,null,null));r.length;)if((n=r.pop())!==v){if(n.node){if(d=this.__execute(t.enter,n),this.__state===a||d===a)return;if(r.push(v),u.push(n),this.__state===i||d===i)continue;if(s=(o=n.node).type||n.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[c=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(u,b[y])){if(p(s,h[g]))n=new l(b[y],[c,y],"Property",null);else{if(!f(b[y]))continue;n=new l(b[y],[c,y],null,null)}r.push(n)}}else if(f(b)){if(m(u,b))continue;r.push(new l(b,c,null,null))}}}}else if(n=u.pop(),d=this.__execute(t.leave,n),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,u,n,s,c,m,g,y,h,b,v,x,E;function A(e){var t,u,n,a;if(e.ref.remove()){for(u=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((n=r[t]).ref&&n.ref.parent===a){if(n.ref.key<u)break;--n.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,m=new l(e,null,null,new d(x={root:e},"root")),r.push(m),u.push(m);r.length;)if((m=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,m))&&c!==a&&c!==i&&c!==o&&(m.ref.replace(c),m.node=c),this.__state!==o&&c!==o||(A(m),m.node=null),this.__state===a||c===a)return x.root;if((n=m.node)&&(r.push(v),u.push(m),this.__state!==i&&c!==i)){if(s=n.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(n)}for(g=h.length;(g-=1)>=0;)if(b=n[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new l(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new l(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new l(b,E,null,new d(n,E)))}}}else if(m=u.pop(),void 0!==(c=this.__execute(t.leave,m))&&c!==a&&c!==i&&c!==o&&m.ref.replace(c),this.__state!==o&&c!==o||A(m),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var n,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(n=s(t[i])).extendedRange=[0,e.range[0]],d.push(n);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,u,n,a;for(u=e.length,n=0;u;)t(e[a=n+(r=u>>>1)])?u=r:(n=a+1,u-=r+1);return n}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,g(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),o=0,g(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),e},t.VisitorKeys=n,t.VisitorOption=u,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),mR=mI(function(e){e.exports&&(e.exports=function(){function e(t,r,u,n){this.message=t,this.expected=r,this.found=u,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function u(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}return"Expected "+function(e){var t,u,n,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(n=e[t]).type](n);if(a.sort(),a.length>0){for(t=1,u=1;t<a.length;t++)a[t-1]!==a[t]&&(a[u]=a[t],u++);a.length=u}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+n(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var u,n,a,i,o,s,d,l,c={},f={start:eb},p=eb,m=em(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=em("!",!1),A=em("*",!1),D=em("#",!1),C=em("[",!1),S=em("]",!1),F=/^[><!]/,w=eg([">","<","!"],!1,!1),_=em("=",!1),k=function(e){return(e||"")+"="},P=/^[><]/,T=eg([">","<"],!1,!1),I=em(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},R=em('"',!1),N=/^[^\\"]/,L=eg(["\\",'"'],!0,!1),j=em("\\",!1),O={type:"any"},M=function(e,t){return e+t},$=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),U=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,V=eg([["0","9"]],!1,!1),Z=em("type(",!1),G=/^[^ )]/,H=eg([" ",")"],!0,!1),K=em(")",!1),X=/^[imsu]/,J=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),Q=/^[^\/]/,ee=eg(["/"],!0,!1),et=em(":not(",!1),er=em(":matches(",!1),eu=em(":has(",!1),en=em(":first-child",!1),ea=em(":last-child",!1),ei=em(":nth-child(",!1),eo=em(":nth-last-child(",!1),es=em(":",!1),ed=0,el=[{line:1,column:1}],ec=0,ef=[],ep={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,u=el[e];if(u)return u;for(r=e-1;!el[r];)r--;for(u={line:(u=el[r]).line,column:u.column};r<e;)10===t.charCodeAt(r)?(u.line++,u.column=1):u.column++,r++;return el[e]=u,u}function eh(e){ed<ec||(ed>ec&&(ec=ed,ef=[]),ef.push(e))}function eb(){var e,t,r,u,n=30*ed+0,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(t=ev())!==c&&(r=eA())!==c&&ev()!==c?e=t=1===(u=r).length?u[0]:{type:"matches",selectors:u}:(ed=e,e=c),e===c&&(e=ed,(t=ev())!==c&&(t=void 0),e=t),ep[n]={nextPos:ed,result:e},e)}function ev(){var e,r,u=30*ed+1,n=ep[u];if(n)return ed=n.nextPos,n.result;for(e=[],32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m));r!==c;)e.push(r),32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m));return ep[u]={nextPos:ed,result:e},e}function ex(){var e,r,u,n=30*ed+2,a=ep[n];if(a)return ed=a.nextPos,a.result;if(r=[],g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=c,eh(y)),u!==c)for(;u!==c;)r.push(u),g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=c,eh(y));else r=c;return r!==c&&(r=r.join("")),e=r,ep[n]={nextPos:ed,result:e},e}function eE(){var e,r,u,n=30*ed+3,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(r=ev())!==c?(62===t.charCodeAt(ed)?(u=">",ed++):(u=c,eh(h)),u!==c&&ev()!==c?e=r="child":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,(r=ev())!==c?(126===t.charCodeAt(ed)?(u="~",ed++):(u=c,eh(b)),u!==c&&ev()!==c?e=r="sibling":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,(r=ev())!==c?(43===t.charCodeAt(ed)?(u="+",ed++):(u=c,eh(v)),u!==c&&ev()!==c?e=r="adjacent":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m)),r!==c&&(u=ev())!==c?e=r="descendant":(ed=e,e=c)))),ep[n]={nextPos:ed,result:e},e)}function eA(){var e,r,u,n,a,i,o,s,d=30*ed+4,l=ep[d];if(l)return ed=l.nextPos,l.result;if(e=ed,(r=eD())!==c){for(u=[],n=ed,(a=ev())!==c?(44===t.charCodeAt(ed)?(i=",",ed++):(i=c,eh(x)),i!==c&&(o=ev())!==c&&(s=eD())!==c?n=a=[a,i,o,s]:(ed=n,n=c)):(ed=n,n=c);n!==c;)u.push(n),n=ed,(a=ev())!==c?(44===t.charCodeAt(ed)?(i=",",ed++):(i=c,eh(x)),i!==c&&(o=ev())!==c&&(s=eD())!==c?n=a=[a,i,o,s]:(ed=n,n=c)):(ed=n,n=c);u!==c?e=r=[r].concat(u.map(function(e){return e[3]})):(ed=e,e=c)}else ed=e,e=c;return ep[d]={nextPos:ed,result:e},e}function eD(){var e,t,r,u,n,a,i,o=30*ed+5,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,(t=eC())!==c){for(r=[],u=ed,(n=eE())!==c&&(a=eC())!==c?u=n=[n,a]:(ed=u,u=c);u!==c;)r.push(u),u=ed,(n=eE())!==c&&(a=eC())!==c?u=n=[n,a]:(ed=u,u=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}function eC(){var e,r,u,n,a,i,o,s=30*ed+6,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,33===t.charCodeAt(ed)?(r="!",ed++):(r=c,eh(E)),r===c&&(r=null),r!==c){if(u=[],(n=eS())!==c)for(;n!==c;)u.push(n),n=eS();else u=c;u!==c?(a=r,o=1===(i=u).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(ed=e,e=c)}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}function eS(){var e,r,u,n,a,i,o,s,d,l,f,p,m,g,y,h,b,v,x,el,ec,ef,em,eg,ey,eb,eE,eD,eC,eS,ek,eP,eT,eI,eB,eR,eN,eL,ej,eO,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e3,e2,e4,e5,e8,e6,e9,e7,te,tt,tr=30*ed+7,tu=ep[tr];return tu?(ed=tu.nextPos,tu.result):((tt=(n=ep[u=30*ed+8])?(ed=n.nextPos,n.result):(42===t.charCodeAt(ed)?(r="*",ed++):(r=c,eh(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,ep[u]={nextPos:ed,result:e},e))===c&&(tt=(d=ep[s=30*ed+9])?(ed=d.nextPos,d.result):(a=ed,35===t.charCodeAt(ed)?(i="#",ed++):(i=c,eh(D)),i===c&&(i=null),i!==c&&(o=ex())!==c?a=i={type:"identifier",value:o}:(ed=a,a=c),ep[s]={nextPos:ed,result:a},a))===c&&(tt=(y=ep[g=30*ed+10])?(ed=y.nextPos,y.result):(l=ed,91===t.charCodeAt(ed)?(f="[",ed++):(f=c,eh(C)),f!==c&&ev()!==c&&(p=(ec=ep[el=30*ed+14])?(ed=ec.nextPos,ec.result):(h=ed,(b=eF())!==c&&ev()!==c&&(v=(eb=ep[ey=30*ed+12])?(ed=eb.nextPos,eb.result):(ef=ed,33===t.charCodeAt(ed)?(em="!",ed++):(em=c,eh(E)),em===c&&(em=null),em!==c?(61===t.charCodeAt(ed)?(eg="=",ed++):(eg=c,eh(_)),eg!==c?ef=em=k(em):(ed=ef,ef=c)):(ed=ef,ef=c),ep[ey]={nextPos:ed,result:ef},ef))!==c&&ev()!==c?((x=function(){var e,r,u,n,a,i=30*ed+18,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,"type("===t.substr(ed,5)?(r="type(",ed+=5):(r=c,eh(Z)),r!==c){if(ev()!==c){if(u=[],G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(H)),n!==c)for(;n!==c;)u.push(n),G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(H));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r={type:"type",value:u.join("")}:(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(x=function(){var e,r,u,n,a,i,o=30*ed+20,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,47===t.charCodeAt(ed)?(r="/",ed++):(r=c,eh(Y)),r!==c){if(u=[],Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(ee)),n!==c)for(;n!==c;)u.push(n),Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(ee));else u=c;u!==c?(47===t.charCodeAt(ed)?(n="/",ed++):(n=c,eh(Y)),n!==c?((a=function(){var e,r,u=30*ed+19,n=ep[u];if(n)return ed=n.nextPos,n.result;if(e=[],X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=c,eh(J)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=c,eh(J));else e=c;return ep[u]={nextPos:ed,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(u.join(""),i?i.join(""):"")}):(ed=e,e=c)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}()),x!==c?h=b=B(b,v,x):(ed=h,h=c)):(ed=h,h=c),h===c&&(h=ed,(b=eF())!==c&&ev()!==c&&(v=(ek=ep[eS=30*ed+11])?(ed=ek.nextPos,ek.result):(eE=ed,F.test(t.charAt(ed))?(eD=t.charAt(ed),ed++):(eD=c,eh(w)),eD===c&&(eD=null),eD!==c?(61===t.charCodeAt(ed)?(eC="=",ed++):(eC=c,eh(_)),eC!==c?eE=eD=k(eD):(ed=eE,eE=c)):(ed=eE,eE=c),eE===c&&(P.test(t.charAt(ed))?(eE=t.charAt(ed),ed++):(eE=c,eh(T))),ep[eS]={nextPos:ed,result:eE},eE))!==c&&ev()!==c?((x=function(){var e,r,u,n,a,i,o=30*ed+15,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,34===t.charCodeAt(ed)?(r='"',ed++):(r=c,eh(R)),r!==c){for(u=[],N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(L)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));n!==c;)u.push(n),N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(L)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));u!==c?(34===t.charCodeAt(ed)?(n='"',ed++):(n=c,eh(R)),n!==c?e=r=$(u):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c;if(e===c){if(e=ed,39===t.charCodeAt(ed)?(r="'",ed++):(r=c,eh(z)),r!==c){for(u=[],U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(q)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));n!==c;)u.push(n),U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(q)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));u!==c?(39===t.charCodeAt(ed)?(n="'",ed++):(n=c,eh(z)),n!==c?e=r=$(u):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}return ep[o]={nextPos:ed,result:e},e}())===c&&(x=function(){var e,r,u,n,a,i,o=30*ed+16,s=ep[o];if(s)return ed=s.nextPos,s.result;for(e=ed,r=ed,u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));if(u!==c?(46===t.charCodeAt(ed)?(n=".",ed++):(n=c,eh(I)),n!==c?r=u=[u,n]:(ed=r,r=c)):(ed=r,r=c),r===c&&(r=null),r!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c?(i=u,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}())===c&&(x=(eB=ep[eI=30*ed+17])?(ed=eB.nextPos,eB.result):((eT=ex())!==c&&(eT={type:"literal",value:eT}),eP=eT,ep[eI]={nextPos:ed,result:eP},eP)),x!==c?h=b=B(b,v,x):(ed=h,h=c)):(ed=h,h=c),h===c&&(h=ed,(b=eF())!==c&&(b={type:"attribute",name:b}),h=b)),ep[el]={nextPos:ed,result:h},h))!==c&&ev()!==c?(93===t.charCodeAt(ed)?(m="]",ed++):(m=c,eh(S)),m!==c?l=f=p:(ed=l,l=c)):(ed=l,l=c),ep[g]={nextPos:ed,result:l},l))===c&&(tt=function(){var e,r,u,n,a,i,o,s=30*ed+21,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,46===t.charCodeAt(ed)?(r=".",ed++):(r=c,eh(I)),r!==c){if((u=ex())!==c){for(n=[],a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=c,eh(I)),i!==c&&(o=ex())!==c?a=i=[i,o]:(ed=a,a=c);a!==c;)n.push(a),a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=c,eh(I)),i!==c&&(o=ex())!==c?a=i=[i,o]:(ed=a,a=c);n!==c?e=r={type:"field",name:n.reduce(function(e,t){return e+t[0]+t[1]},u)}:(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}())===c&&(tt=(eM=ep[eO=30*ed+22])?(ed=eM.nextPos,eM.result):(eR=ed,":not("===t.substr(ed,5)?(eN=":not(",ed+=5):(eN=c,eh(et)),eN!==c&&ev()!==c&&(eL=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(ej=")",ed++):(ej=c,eh(K)),ej!==c?eR=eN={type:"not",selectors:eL}:(ed=eR,eR=c)):(ed=eR,eR=c),ep[eO]={nextPos:ed,result:eR},eR))===c&&(tt=(eV=ep[eW=30*ed+23])?(ed=eV.nextPos,eV.result):(e$=ed,":matches("===t.substr(ed,9)?(ez=":matches(",ed+=9):(ez=c,eh(er)),ez!==c&&ev()!==c&&(eU=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(eq=")",ed++):(eq=c,eh(K)),eq!==c?e$=ez={type:"matches",selectors:eU}:(ed=e$,e$=c)):(ed=e$,e$=c),ep[eW]={nextPos:ed,result:e$},e$))===c&&(tt=(eJ=ep[eX=30*ed+24])?(ed=eJ.nextPos,eJ.result):(eZ=ed,":has("===t.substr(ed,5)?(eG=":has(",ed+=5):(eG=c,eh(eu)),eG!==c&&ev()!==c&&(eH=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(eK=")",ed++):(eK=c,eh(K)),eK!==c?eZ=eG={type:"has",selectors:eH}:(ed=eZ,eZ=c)):(ed=eZ,eZ=c),ep[eX]={nextPos:ed,result:eZ},eZ))===c&&(tt=(e1=ep[e0=30*ed+25])?(ed=e1.nextPos,e1.result):(":first-child"===t.substr(ed,12)?(eQ=":first-child",ed+=12):(eQ=c,eh(en)),eQ!==c&&(eQ=ew(1)),eY=eQ,ep[e0]={nextPos:ed,result:eY},eY))===c&&(tt=(e5=ep[e4=30*ed+26])?(ed=e5.nextPos,e5.result):(":last-child"===t.substr(ed,11)?(e2=":last-child",ed+=11):(e2=c,eh(ea)),e2!==c&&(e2=e_(1)),e3=e2,ep[e4]={nextPos:ed,result:e3},e3))===c&&(tt=function(){var e,r,u,n,a,i=30*ed+27,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-child("===t.substr(ed,11)?(r=":nth-child(",ed+=11):(r=c,eh(ei)),r!==c){if(ev()!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r=ew(parseInt(u.join(""),10)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(tt=function(){var e,r,u,n,a,i=30*ed+28,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-last-child("===t.substr(ed,16)?(r=":nth-last-child(",ed+=16):(r=c,eh(eo)),r!==c){if(ev()!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r=e_(parseInt(u.join(""),10)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(tt=(te=ep[e7=30*ed+29])?(ed=te.nextPos,te.result):(e8=ed,58===t.charCodeAt(ed)?(e6=":",ed++):(e6=c,eh(es)),e6!==c&&(e9=ex())!==c?e8=e6={type:"class",name:e9}:(ed=e8,e8=c),ep[e7]={nextPos:ed,result:e8},e8)),ep[tr]={nextPos:ed,result:tt},tt)}function eF(){var e,r,u,n,a,i,o,s=30*ed+13,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,(r=ex())!==c){for(u=[],n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=c,eh(I)),a!==c&&(i=ex())!==c?n=a=[a,i]:(ed=n,n=c);n!==c;)u.push(n),n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=c,eh(I)),a!==c&&(i=ex())!==c?n=a=[a,i]:(ed=n,n=c);u!==c?(o=r,e=r=[].concat.apply([o],u).join("")):(ed=e,e=c)}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}function ew(e){return{type:"nth-child",index:{type:"literal",value:e}}}function e_(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&ed===t.length)return o;throw o!==c&&ed<t.length&&eh({type:"end"}),s=ef,d=ec<t.length?t.charAt(ec):null,u=ec,n=ec<t.length?ec+1:ec,a=ey(u),i=ey(n),l={start:{offset:u,line:a.line,column:a.column},end:{offset:n,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function mN(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var mL="function"==typeof WeakMap?new WeakMap:null;function mj(e){if(null==e)return function(){return!0};if(null!=mL){var t=mL.get(e);return null!=t||(t=mO(e),mL.set(e,t)),t}return mO(e)}function mO(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,u){return t===e[u&&u.nodeTypeKey||"type"].toLowerCase()};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,u,n){for(var a=r,i=n;i<u.length;++i){if(null==a)return!1;var o=a[u[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],u,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var u=e.selectors.map(mj);return function(e,t,r){for(var n=0;n<u.length;++n)if(u[n](e,t,r))return!0;return!1};case"compound":var n=e.selectors.map(mj);return function(e,t,r){for(var u=0;u<n.length;++u)if(!n[u](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(mj);return function(e,t,r){for(var u=0;u<a.length;++u)if(a[u](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(mj);return function(e,t,r){var u=!1,n=[];return mB.traverse(e,{enter:function(e,t){null!=t&&n.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,n,r))return u=!0,void this.break()},leave:function(){n.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),u};case"child":var o=mj(e.left),s=mj(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=mj(e.left),l=mj(e.right);return function(e,t,r){if(l(e,t,r)){for(var u=0,n=t.length;u<n;++u)if(d(t[u],t.slice(u+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=mN(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=mN(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(mN(e,c))};case"type":return function(t){return e.value.value===m_(mN(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(mN(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(mN(e,c))};case"type":return function(t){return e.value.value!==m_(mN(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return mN(t,c)<=e.value.value};case"<":return function(t){return mN(t,c)<e.value.value};case">":return function(t){return mN(t,c)>e.value.value};case">=":return function(t){return mN(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=mj(e.left),g=mj(e.right);return function(t,r,u){return g(t,r,u)&&mz(t,m,r,"LEFT_SIDE",u)||e.left.subject&&m(t,r,u)&&mz(t,g,r,"RIGHT_SIDE",u)};case"adjacent":var y=mj(e.left),h=mj(e.right);return function(t,r,u){return h(t,r,u)&&mU(t,y,r,"LEFT_SIDE",u)||e.right.subject&&y(t,r,u)&&mU(t,h,r,"RIGHT_SIDE",u)};case"nth-child":var b=e.index.value,v=mj(e.right);return function(e,t,r){return v(e,t,r)&&mq(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=mj(e.right);return function(e,t,r){return E(e,t,r)&&mq(e,t,x,r)};case"class":return function(t,r,u){if(u&&u.matchClass)return u.matchClass(e.name,t,r);if(u&&u.nodeTypeKey)return!1;switch(e.name.toLowerCase()){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mM(e,t){var r=t&&t.nodeTypeKey||"type",u=e[r];return t&&t.visitorKeys&&t.visitorKeys[u]?t.visitorKeys[u]:mB.VisitorKeys[u]?mB.VisitorKeys[u]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function m$(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===m_(e)&&"string"==typeof e[r]}function mz(e,t,r,u,n){var a=mk(r,1)[0];if(!a)return!1;for(var i=mM(a,n),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===u?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(m$(s[f],n)&&t(s[f],r,n))return!0}}return!1}function mU(e,t,r,u,n){var a=mk(r,1)[0];if(!a)return!1;for(var i=mM(a,n),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===u&&d>0&&m$(s[d-1],n)&&t(s[d-1],r,n)||"RIGHT_SIDE"===u&&d<s.length-1&&m$(s[d+1],n)&&t(s[d+1],r,n))return!0}}return!1}function mq(e,t,r,u){if(0===r)return!1;var n=mk(t,1)[0];if(!n)return!1;for(var a=mM(n,u),i=0;i<a.length;++i){var o=n[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function mW(e,t,r,u){if(t){var n=[],a=mj(t),i=(function e(t,r){if(null==t||"object"!=m_(t))return[];null==r&&(r=t);for(var u=t.subject?[r]:[],n=Object.keys(t),a=0;a<n.length;++a){var i,o=n[a],s=t[o];u.push.apply(u,function(e){if(Array.isArray(e))return mT(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||mP(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return u})(t).map(mj);mB.traverse(e,{enter:function(e,t){if(null!=t&&n.unshift(t),a(e,n,u)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,n,u)&&r(e,t,n);for(var d=0,l=n.length;d<l;++d){var c=n.slice(d+1);i[o](n[d],c,u)&&r(n[d],t,c)}}else r(e,t,n)}},leave:function(){n.shift()},keys:u&&u.visitorKeys,fallback:u&&u.fallback||"iteration"})}}function mV(e,t,r){var u=[];return mW(e,t,function(e){u.push(e)},r),u}function mZ(e){return mR.parse(e)}function mG(e,t,r){return mV(e,mZ(t),r)}mG.parse=mZ,mG.match=mV,mG.traverse=mW,mG.matches=function(e,t,r,u){return!t||!!e&&(r||(r=[]),mj(t)(e,r,u))},mG.query=mG;var mH=X(Object.freeze({__proto__:null,default:mG}));let mK=e=>{let t=mw(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mX=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let u=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(u,r.indent.repeat(t))},{replaceTemplateElement:mJ}=u6,{isMethodCall:mY,isCallExpression:mQ}=tk,m0="template-indent",m1=e=>mY(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&mQ(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),m3=new Map,m2=e=>(m3.has(e)||m3.set(e,mH.parse(e)),m3.get(e));var m4=K({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let u=e=>{let u;let n="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(n),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";u="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mK(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mX(l,1,{indent:d+u})+o+d;if(c!==a)return{node:e,messageId:m0,fix:t=>c.split(n).map((r,u)=>mJ(t,e.quasis[u],r))}},n=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}if(m1(e)||r.tags.length>0&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&"Identifier"===e.parent.tag.type&&r.tags.includes(e.parent.tag.name)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&"Identifier"===e.parent.callee.type&&r.functions.includes(e.parent.callee.name))return!0;if(r.selectors.length>0){let u=t.getAncestors(e).reverse();if(r.selectors.some(t=>mH.matches(e,m2(t),u)))return!0}return!1};return{TemplateLiteral(e){if(n(e))return u(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation."},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[m0]:"Templates should be properly indented."}}});let m5=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),m8=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),m6=Symbol("rule-id-no-match");var m9={rules:{"array/no-unneeded-flat-map":v,"browser/prefer-location-assign":E,"jsx/no-template-literal":D,"jsx/no-unneeded-nested":C,"string/no-locale-case":F,"string/no-simple-template-literal":_,"type/no-instanceof-wrapper":P,"unicode/no-bidi":j,"unicode/no-invisible":M,"ban-eslint-disable":r({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let u of r.comments){let r=function(e){let t=m5.exec(e);return t?.groups?.directive}(u.value);if(r&&!("allow-with-description"===t&&u.value.includes("--"))){let n="allow-with-description"===t?"require-description":"do-not-use";e.report({node:u,data:{directive:r},messageId:n})}let n=function(e){let t=m8.exec(e.trim());return t?t.groups?.ruleId:m6}(u.value);n===m6||n||e.report({node:u,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":$,"no-single-return":U,"prefer-early-return":W,"prefer-fetch":V,"prefer-timer-id":H,"import-dedupe":r({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(u=>{let n=u.local.name;r.has(n)&&e.report({node:t,loc:{start:u.loc.end,end:u.loc.start},messageId:"import-dedupe",fix(t){let r=u.range[0],n=u.range[1];return","===e.getSourceCode().text[n]&&(n+=1),t.removeRange([r,n])}}),r.add(n)})}})}),"unicorn/better-regex":m7(lc,"unicorn/better-regex"),"unicorn/no-nested-ternary":m7(tu,"unicorn/no-nested-ternary"),"unicorn/prefer-event-target":m7(uE,"unicorn/prefer-event-target"),"unicorn/prefer-keyboard-event-key":m7(uB,"unicorn/prefer-keyboard-event-key"),"unicorn/prefer-text-content":m7(uj,"unicorn/prefer-text-content"),"unicorn/require-array-join-separator":m7(nr,"unicorn/require-array-join-separator"),"unicorn/no-thenable":m7(nf,"unicorn/no-thenable"),"unicorn/no-invalid-remove-event-listener":m7(ny,"unicorn/no-invalid-remove-event-listener"),"unicorn/consistent-function-scoping":m7(nk,"unicorn/consistent-function-scoping"),"unicorn/no-new-buffer":m7(n3,"unicorn/no-new-buffer"),"unicorn/no-console-spaces":m7(n9,"unicorn/no-console-spaces"),"unicorn/no-empty-file":m7(aa,"unicorn/no-empty-file"),"unicorn/no-useless-fallback-in-spread":m7(al,"unicorn/no-useless-fallback-in-spread"),"unicorn/no-useless-length-check":m7(ah,"unicorn/no-useless-length-check"),"unicorn/no-useless-promise-resolve-reject":m7(aE,"unicorn/no-useless-promise-resolve-reject"),"unicorn/no-zero-fractions":m7(a_,"unicorn/no-zero-fractions"),"unicorn/prefer-export-from":m7(aU,"unicorn/prefer-export-from"),"unicorn/prefer-native-coercion-functions":m7(aY,"unicorn/prefer-native-coercion-functions"),"unicorn/no-document-cookie":m7(a8,"unicorn/no-document-cookie"),"unicorn/prefer-add-event-listener":m7(ic,"unicorn/prefer-add-event-listener"),"unicorn/prefer-array-index-of":m7(iS,"unicorn/prefer-array-index-of"),"unicorn/prefer-blob-reading-methods":m7(i_,"unicorn/prefer-blob-reading-methods"),"unicorn/prefer-date-now":m7(iO,"unicorn/prefer-date-now"),"unicorn/prefer-dom-node-dataset":m7(iH,"unicorn/prefer-dom-node-dataset"),"unicorn/prefer-modern-math-apis":m7(ot,"unicorn/prefer-modern-math-apis"),"unicorn/number-literal-case":m7(oy,"unicorn/number-literal-case"),"unicorn/prefer-number-properties":m7(oC,"unicorn/prefer-number-properties"),"unicorn/prefer-reflect-apply":m7(oB,"unicorn/prefer-reflect-apply"),"unicorn/prefer-set-size":m7(o$,"unicorn/prefer-set-size"),"unicorn/prefer-string-replace-all":m7(oJ,"unicorn/prefer-string-replace-all"),"unicorn/prefer-string-slice":m7(o8,"unicorn/prefer-string-slice"),"unicorn/prefer-string-trim-start-end":m7(o7,"unicorn/prefer-string-trim-start-end"),"unicorn/no-unreadable-iife":m7(sn,"unicorn/no-unreadable-iife"),"unicorn/throw-new-error":m7(ss,"unicorn/throw-new-error"),"unicorn/escape-case":m7(lv,"unicorn/escape-case"),"unicorn/no-hex-escape":m7(lS,"unicorn/no-hex-escape"),"unicorn/prefer-prototype-methods":m7(lI,"unicorn/prefer-prototype-methods"),"unicorn/error-message":m7(lM,"unicorn/error-message"),"unicorn/no-instanceof-array":m7(lZ,"unicorn/no-instanceof-array"),"unicorn/prefer-type-error":m7(l3,"unicorn/prefer-type-error"),"unicorn/consistent-destructuring":m7(l9,"unicorn/consistent-destructuring"),"unicorn/new-for-builtins":m7(ca,"unicorn/new-for-builtins"),"unicorn/no-array-push-push":m7(ch,"unicorn/no-array-push-push"),"unicorn/no-process-exit":m7(cD,"unicorn/no-process-exit"),"unicorn/no-static-only-class":m7(cB,"unicorn/no-static-only-class"),"unicorn/no-unreadable-array-destructuring":m7(cO,"unicorn/no-unreadable-array-destructuring"),"unicorn/no-useless-spread":m7(c3,"unicorn/no-useless-spread"),"unicorn/no-useless-switch-case":m7(c7,"unicorn/no-useless-switch-case"),"unicorn/no-useless-undefined":m7(fl,"unicorn/no-useless-undefined"),"unicorn/numeric-separators-style":m7(fy,"unicorn/numeric-separators-style"),"unicorn/prefer-array-find":m7(fK,"unicorn/prefer-array-find"),"unicorn/prefer-array-flat-map":m7(f1,"unicorn/prefer-array-flat-map"),"unicorn/prefer-array-flat":m7(pl,"unicorn/prefer-array-flat"),"unicorn/prefer-array-some":m7(pC,"unicorn/prefer-array-some"),"unicorn/prefer-code-point":m7(pw,"unicorn/prefer-code-point"),"unicorn/prefer-default-parameters":m7(pM,"unicorn/prefer-default-parameters"),"unicorn/prefer-logical-operator-over-ternary":m7(pG,"unicorn/prefer-logical-operator-over-ternary"),"unicorn/prefer-optional-catch-binding":m7(pY,"unicorn/prefer-optional-catch-binding"),"unicorn/prefer-prototype-methods":m7(lI,"unicorn/prefer-prototype-methods"),"unicorn/prefer-regexp-test":m7(mu,"unicorn/prefer-regexp-test"),"unicorn/prefer-set-has":m7(mm,"unicorn/prefer-set-has"),"unicorn/prefer-switch":m7(mA,"unicorn/prefer-switch"),"unicorn/require-number-to-fixed-digits-argument":m7(mF,"unicorn/require-number-to-fixed-digits-argument"),"unicorn/template-indent":m7(m4,"unicorn/template-indent")}};function m7(e,t){var r;return{meta:{schema:[],...e.meta,docs:{...e.meta.docs,url:Q(t)}},create:(r=e.create,e=>{let t={},u=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,n]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(t,n);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let u of r)!function(e,t){if(e){for(let r of(ge(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=gu(r.fix)),ge(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=gu(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(u(...t),e)}]))})}}let ge=e=>"function"==typeof e?.[Symbol.iterator];class gt extends Error{}let gr={abort(){throw new gt("Fix aborted.")}};function gu(e){return t=>{let r=e(t,gr);if(ge(r))try{return[...r]}catch(e){if(e instanceof gt)return;throw e}return r}}export{m9 as default};
15
+ ${r}}`))}(t,a,o))}}}({discriminant:u,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[mm]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:mx}=nt,{isMethodCall:mE}=tI,mA="require-number-to-fixed-digits-argument";var mD=K({create:e=>({CallExpression(t){if(!mE(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[u,n]=r.getLastTokens(t,2);return{loc:{start:u.loc.start,end:n.loc.end},messageId:mA,fix:e=>mx(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[mA]:"Missing the digits argument."}}});let mC=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mS(e){return(mS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var u,n,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(u=a.call(r)).done)&&(o.push(u.value),o.length!==t);s=!0);}catch(e){d=!0,n=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw n}}return o}}(e,t)||mw(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mw(e,t){if(e){if("string"==typeof e)return m_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m_(e,t):void 0}}function m_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,u=Array(t);r<t;r++)u[r]=e[r];return u}function mk(e,t){return e(t={exports:{}},t.exports),t.exports}var mT=mk(function(e,t){!function e(t){var r,u,n,a,i,o;function s(e){var t,r,u={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],u[t]="object"==typeof r&&null!==r?s(r):r);return u}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,u){this.node=e,this.path=t,this.wrap=r,this.ref=u}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new c).traverse(e,t)}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},n={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},u={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,u,n;function a(e,t){if(Array.isArray(t))for(r=0,u=t.length;r<u;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(n=[],e=2,t=this.__leavelist.length;e<t;++e)a(n,this.__leavelist[e].path);return a(n,this.__current.path),n},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,u;return u=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(u=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,u},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=n,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,u,n,o,s,d,c,g,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,r.push(new l(e,null,null,null)),u.push(new l(null,null,null,null));r.length;)if((n=r.pop())!==v){if(n.node){if(d=this.__execute(t.enter,n),this.__state===a||d===a)return;if(r.push(v),u.push(n),this.__state===i||d===i)continue;if(s=(o=n.node).type||n.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[c=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(u,b[y])){if(p(s,h[g]))n=new l(b[y],[c,y],"Property",null);else{if(!f(b[y]))continue;n=new l(b[y],[c,y],null,null)}r.push(n)}}else if(f(b)){if(m(u,b))continue;r.push(new l(b,c,null,null))}}}}else if(n=u.pop(),d=this.__execute(t.leave,n),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,u,n,s,c,m,g,y,h,b,v,x,E;function A(e){var t,u,n,a;if(e.ref.remove()){for(u=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((n=r[t]).ref&&n.ref.parent===a){if(n.ref.key<u)break;--n.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,u=this.__leavelist,m=new l(e,null,null,new d(x={root:e},"root")),r.push(m),u.push(m);r.length;)if((m=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,m))&&c!==a&&c!==i&&c!==o&&(m.ref.replace(c),m.node=c),this.__state!==o&&c!==o||(A(m),m.node=null),this.__state===a||c===a)return x.root;if((n=m.node)&&(r.push(v),u.push(m),this.__state!==i&&c!==i)){if(s=n.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(n)}for(g=h.length;(g-=1)>=0;)if(b=n[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new l(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new l(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new l(b,E,null,new d(n,E)))}}}else if(m=u.pop(),void 0!==(c=this.__execute(t.leave,m))&&c!==a&&c!==i&&c!==o&&m.ref.replace(c),this.__state!==o&&c!==o||A(m),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var n,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(n=s(t[i])).extendedRange=[0,e.range[0]],d.push(n);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,u,n,a;for(u=e.length,n=0;u;)t(e[a=n+(r=u>>>1)])?u=r:(n=a+1,u-=r+1);return n}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,g(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),o=0,g(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?u.Break:d[o].extendedRange[0]>e.range[1]?u.Skip:void 0}}),e},t.VisitorKeys=n,t.VisitorOption=u,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),mP=mk(function(e){e.exports&&(e.exports=function(){function e(t,r,u,n){this.message=t,this.expected=r,this.found=u,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function u(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+u(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+u(e)})}return"Expected "+function(e){var t,u,n,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(n=e[t]).type](n);if(a.sort(),a.length>0){for(t=1,u=1;t<a.length;t++)a[t-1]!==a[t]&&(a[u]=a[t],u++);a.length=u}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+n(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var u,n,a,i,o,s,d,l,c={},f={start:eb},p=eb,m=em(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=eg([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=em(">",!1),b=em("~",!1),v=em("+",!1),x=em(",",!1),E=em("!",!1),A=em("*",!1),D=em("#",!1),C=em("[",!1),S=em("]",!1),F=/^[><!]/,w=eg([">","<","!"],!1,!1),_=em("=",!1),k=function(e){return(e||"")+"="},T=/^[><]/,P=eg([">","<"],!1,!1),I=em(".",!1),B=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},R=em('"',!1),N=/^[^\\"]/,L=eg(["\\",'"'],!0,!1),j=em("\\",!1),O={type:"any"},M=function(e,t){return e+t},$=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},z=em("'",!1),U=/^[^\\']/,q=eg(["\\","'"],!0,!1),W=/^[0-9]/,V=eg([["0","9"]],!1,!1),Z=em("type(",!1),G=/^[^ )]/,H=eg([" ",")"],!0,!1),K=em(")",!1),X=/^[imsu]/,J=eg(["i","m","s","u"],!1,!1),Y=em("/",!1),Q=/^[^\/]/,ee=eg(["/"],!0,!1),et=em(":not(",!1),er=em(":matches(",!1),eu=em(":has(",!1),en=em(":first-child",!1),ea=em(":last-child",!1),ei=em(":nth-child(",!1),eo=em(":nth-last-child(",!1),es=em(":",!1),ed=0,el=[{line:1,column:1}],ec=0,ef=[],ep={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function em(e,t){return{type:"literal",text:e,ignoreCase:t}}function eg(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ey(e){var r,u=el[e];if(u)return u;for(r=e-1;!el[r];)r--;for(u={line:(u=el[r]).line,column:u.column};r<e;)10===t.charCodeAt(r)?(u.line++,u.column=1):u.column++,r++;return el[e]=u,u}function eh(e){ed<ec||(ed>ec&&(ec=ed,ef=[]),ef.push(e))}function eb(){var e,t,r,u,n=30*ed+0,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(t=ev())!==c&&(r=eA())!==c&&ev()!==c?e=t=1===(u=r).length?u[0]:{type:"matches",selectors:u}:(ed=e,e=c),e===c&&(e=ed,(t=ev())!==c&&(t=void 0),e=t),ep[n]={nextPos:ed,result:e},e)}function ev(){var e,r,u=30*ed+1,n=ep[u];if(n)return ed=n.nextPos,n.result;for(e=[],32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m));r!==c;)e.push(r),32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m));return ep[u]={nextPos:ed,result:e},e}function ex(){var e,r,u,n=30*ed+2,a=ep[n];if(a)return ed=a.nextPos,a.result;if(r=[],g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=c,eh(y)),u!==c)for(;u!==c;)r.push(u),g.test(t.charAt(ed))?(u=t.charAt(ed),ed++):(u=c,eh(y));else r=c;return r!==c&&(r=r.join("")),e=r,ep[n]={nextPos:ed,result:e},e}function eE(){var e,r,u,n=30*ed+3,a=ep[n];return a?(ed=a.nextPos,a.result):(e=ed,(r=ev())!==c?(62===t.charCodeAt(ed)?(u=">",ed++):(u=c,eh(h)),u!==c&&ev()!==c?e=r="child":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,(r=ev())!==c?(126===t.charCodeAt(ed)?(u="~",ed++):(u=c,eh(b)),u!==c&&ev()!==c?e=r="sibling":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,(r=ev())!==c?(43===t.charCodeAt(ed)?(u="+",ed++):(u=c,eh(v)),u!==c&&ev()!==c?e=r="adjacent":(ed=e,e=c)):(ed=e,e=c),e===c&&(e=ed,32===t.charCodeAt(ed)?(r=" ",ed++):(r=c,eh(m)),r!==c&&(u=ev())!==c?e=r="descendant":(ed=e,e=c)))),ep[n]={nextPos:ed,result:e},e)}function eA(){var e,r,u,n,a,i,o,s,d=30*ed+4,l=ep[d];if(l)return ed=l.nextPos,l.result;if(e=ed,(r=eD())!==c){for(u=[],n=ed,(a=ev())!==c?(44===t.charCodeAt(ed)?(i=",",ed++):(i=c,eh(x)),i!==c&&(o=ev())!==c&&(s=eD())!==c?n=a=[a,i,o,s]:(ed=n,n=c)):(ed=n,n=c);n!==c;)u.push(n),n=ed,(a=ev())!==c?(44===t.charCodeAt(ed)?(i=",",ed++):(i=c,eh(x)),i!==c&&(o=ev())!==c&&(s=eD())!==c?n=a=[a,i,o,s]:(ed=n,n=c)):(ed=n,n=c);u!==c?e=r=[r].concat(u.map(function(e){return e[3]})):(ed=e,e=c)}else ed=e,e=c;return ep[d]={nextPos:ed,result:e},e}function eD(){var e,t,r,u,n,a,i,o=30*ed+5,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,(t=eC())!==c){for(r=[],u=ed,(n=eE())!==c&&(a=eC())!==c?u=n=[n,a]:(ed=u,u=c);u!==c;)r.push(u),u=ed,(n=eE())!==c&&(a=eC())!==c?u=n=[n,a]:(ed=u,u=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}function eC(){var e,r,u,n,a,i,o,s=30*ed+6,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,33===t.charCodeAt(ed)?(r="!",ed++):(r=c,eh(E)),r===c&&(r=null),r!==c){if(u=[],(n=eS())!==c)for(;n!==c;)u.push(n),n=eS();else u=c;u!==c?(a=r,o=1===(i=u).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(ed=e,e=c)}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}function eS(){var e,r,u,n,a,i,o,s,d,l,f,p,m,g,y,h,b,v,x,el,ec,ef,em,eg,ey,eb,eE,eD,eC,eS,ek,eT,eP,eI,eB,eR,eN,eL,ej,eO,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e3,e2,e4,e5,e8,e6,e9,e7,te,tt,tr=30*ed+7,tu=ep[tr];return tu?(ed=tu.nextPos,tu.result):((tt=(n=ep[u=30*ed+8])?(ed=n.nextPos,n.result):(42===t.charCodeAt(ed)?(r="*",ed++):(r=c,eh(A)),r!==c&&(r={type:"wildcard",value:r}),e=r,ep[u]={nextPos:ed,result:e},e))===c&&(tt=(d=ep[s=30*ed+9])?(ed=d.nextPos,d.result):(a=ed,35===t.charCodeAt(ed)?(i="#",ed++):(i=c,eh(D)),i===c&&(i=null),i!==c&&(o=ex())!==c?a=i={type:"identifier",value:o}:(ed=a,a=c),ep[s]={nextPos:ed,result:a},a))===c&&(tt=(y=ep[g=30*ed+10])?(ed=y.nextPos,y.result):(l=ed,91===t.charCodeAt(ed)?(f="[",ed++):(f=c,eh(C)),f!==c&&ev()!==c&&(p=(ec=ep[el=30*ed+14])?(ed=ec.nextPos,ec.result):(h=ed,(b=eF())!==c&&ev()!==c&&(v=(eb=ep[ey=30*ed+12])?(ed=eb.nextPos,eb.result):(ef=ed,33===t.charCodeAt(ed)?(em="!",ed++):(em=c,eh(E)),em===c&&(em=null),em!==c?(61===t.charCodeAt(ed)?(eg="=",ed++):(eg=c,eh(_)),eg!==c?ef=em=k(em):(ed=ef,ef=c)):(ed=ef,ef=c),ep[ey]={nextPos:ed,result:ef},ef))!==c&&ev()!==c?((x=function(){var e,r,u,n,a,i=30*ed+18,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,"type("===t.substr(ed,5)?(r="type(",ed+=5):(r=c,eh(Z)),r!==c){if(ev()!==c){if(u=[],G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(H)),n!==c)for(;n!==c;)u.push(n),G.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(H));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r={type:"type",value:u.join("")}:(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(x=function(){var e,r,u,n,a,i,o=30*ed+20,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,47===t.charCodeAt(ed)?(r="/",ed++):(r=c,eh(Y)),r!==c){if(u=[],Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(ee)),n!==c)for(;n!==c;)u.push(n),Q.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(ee));else u=c;u!==c?(47===t.charCodeAt(ed)?(n="/",ed++):(n=c,eh(Y)),n!==c?((a=function(){var e,r,u=30*ed+19,n=ep[u];if(n)return ed=n.nextPos,n.result;if(e=[],X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=c,eh(J)),r!==c)for(;r!==c;)e.push(r),X.test(t.charAt(ed))?(r=t.charAt(ed),ed++):(r=c,eh(J));else e=c;return ep[u]={nextPos:ed,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(u.join(""),i?i.join(""):"")}):(ed=e,e=c)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}()),x!==c?h=b=B(b,v,x):(ed=h,h=c)):(ed=h,h=c),h===c&&(h=ed,(b=eF())!==c&&ev()!==c&&(v=(ek=ep[eS=30*ed+11])?(ed=ek.nextPos,ek.result):(eE=ed,F.test(t.charAt(ed))?(eD=t.charAt(ed),ed++):(eD=c,eh(w)),eD===c&&(eD=null),eD!==c?(61===t.charCodeAt(ed)?(eC="=",ed++):(eC=c,eh(_)),eC!==c?eE=eD=k(eD):(ed=eE,eE=c)):(ed=eE,eE=c),eE===c&&(T.test(t.charAt(ed))?(eE=t.charAt(ed),ed++):(eE=c,eh(P))),ep[eS]={nextPos:ed,result:eE},eE))!==c&&ev()!==c?((x=function(){var e,r,u,n,a,i,o=30*ed+15,s=ep[o];if(s)return ed=s.nextPos,s.result;if(e=ed,34===t.charCodeAt(ed)?(r='"',ed++):(r=c,eh(R)),r!==c){for(u=[],N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(L)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));n!==c;)u.push(n),N.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(L)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));u!==c?(34===t.charCodeAt(ed)?(n='"',ed++):(n=c,eh(R)),n!==c?e=r=$(u):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c;if(e===c){if(e=ed,39===t.charCodeAt(ed)?(r="'",ed++):(r=c,eh(z)),r!==c){for(u=[],U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(q)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));n!==c;)u.push(n),U.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(q)),n===c&&(n=ed,92===t.charCodeAt(ed)?(a="\\",ed++):(a=c,eh(j)),a!==c?(t.length>ed?(i=t.charAt(ed),ed++):(i=c,eh(O)),i!==c?n=a=M(a,i):(ed=n,n=c)):(ed=n,n=c));u!==c?(39===t.charCodeAt(ed)?(n="'",ed++):(n=c,eh(z)),n!==c?e=r=$(u):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}return ep[o]={nextPos:ed,result:e},e}())===c&&(x=function(){var e,r,u,n,a,i,o=30*ed+16,s=ep[o];if(s)return ed=s.nextPos,s.result;for(e=ed,r=ed,u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));if(u!==c?(46===t.charCodeAt(ed)?(n=".",ed++):(n=c,eh(I)),n!==c?r=u=[u,n]:(ed=r,r=c)):(ed=r,r=c),r===c&&(r=null),r!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c?(i=u,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(ed=e,e=c)}else ed=e,e=c;return ep[o]={nextPos:ed,result:e},e}())===c&&(x=(eB=ep[eI=30*ed+17])?(ed=eB.nextPos,eB.result):((eP=ex())!==c&&(eP={type:"literal",value:eP}),eT=eP,ep[eI]={nextPos:ed,result:eT},eT)),x!==c?h=b=B(b,v,x):(ed=h,h=c)):(ed=h,h=c),h===c&&(h=ed,(b=eF())!==c&&(b={type:"attribute",name:b}),h=b)),ep[el]={nextPos:ed,result:h},h))!==c&&ev()!==c?(93===t.charCodeAt(ed)?(m="]",ed++):(m=c,eh(S)),m!==c?l=f=p:(ed=l,l=c)):(ed=l,l=c),ep[g]={nextPos:ed,result:l},l))===c&&(tt=function(){var e,r,u,n,a,i,o,s=30*ed+21,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,46===t.charCodeAt(ed)?(r=".",ed++):(r=c,eh(I)),r!==c){if((u=ex())!==c){for(n=[],a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=c,eh(I)),i!==c&&(o=ex())!==c?a=i=[i,o]:(ed=a,a=c);a!==c;)n.push(a),a=ed,46===t.charCodeAt(ed)?(i=".",ed++):(i=c,eh(I)),i!==c&&(o=ex())!==c?a=i=[i,o]:(ed=a,a=c);n!==c?e=r={type:"field",name:n.reduce(function(e,t){return e+t[0]+t[1]},u)}:(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}())===c&&(tt=(eM=ep[eO=30*ed+22])?(ed=eM.nextPos,eM.result):(eR=ed,":not("===t.substr(ed,5)?(eN=":not(",ed+=5):(eN=c,eh(et)),eN!==c&&ev()!==c&&(eL=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(ej=")",ed++):(ej=c,eh(K)),ej!==c?eR=eN={type:"not",selectors:eL}:(ed=eR,eR=c)):(ed=eR,eR=c),ep[eO]={nextPos:ed,result:eR},eR))===c&&(tt=(eV=ep[eW=30*ed+23])?(ed=eV.nextPos,eV.result):(e$=ed,":matches("===t.substr(ed,9)?(ez=":matches(",ed+=9):(ez=c,eh(er)),ez!==c&&ev()!==c&&(eU=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(eq=")",ed++):(eq=c,eh(K)),eq!==c?e$=ez={type:"matches",selectors:eU}:(ed=e$,e$=c)):(ed=e$,e$=c),ep[eW]={nextPos:ed,result:e$},e$))===c&&(tt=(eJ=ep[eX=30*ed+24])?(ed=eJ.nextPos,eJ.result):(eZ=ed,":has("===t.substr(ed,5)?(eG=":has(",ed+=5):(eG=c,eh(eu)),eG!==c&&ev()!==c&&(eH=eA())!==c&&ev()!==c?(41===t.charCodeAt(ed)?(eK=")",ed++):(eK=c,eh(K)),eK!==c?eZ=eG={type:"has",selectors:eH}:(ed=eZ,eZ=c)):(ed=eZ,eZ=c),ep[eX]={nextPos:ed,result:eZ},eZ))===c&&(tt=(e1=ep[e0=30*ed+25])?(ed=e1.nextPos,e1.result):(":first-child"===t.substr(ed,12)?(eQ=":first-child",ed+=12):(eQ=c,eh(en)),eQ!==c&&(eQ=ew(1)),eY=eQ,ep[e0]={nextPos:ed,result:eY},eY))===c&&(tt=(e5=ep[e4=30*ed+26])?(ed=e5.nextPos,e5.result):(":last-child"===t.substr(ed,11)?(e2=":last-child",ed+=11):(e2=c,eh(ea)),e2!==c&&(e2=e_(1)),e3=e2,ep[e4]={nextPos:ed,result:e3},e3))===c&&(tt=function(){var e,r,u,n,a,i=30*ed+27,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-child("===t.substr(ed,11)?(r=":nth-child(",ed+=11):(r=c,eh(ei)),r!==c){if(ev()!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r=ew(parseInt(u.join(""),10)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(tt=function(){var e,r,u,n,a,i=30*ed+28,o=ep[i];if(o)return ed=o.nextPos,o.result;if(e=ed,":nth-last-child("===t.substr(ed,16)?(r=":nth-last-child(",ed+=16):(r=c,eh(eo)),r!==c){if(ev()!==c){if(u=[],W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V)),n!==c)for(;n!==c;)u.push(n),W.test(t.charAt(ed))?(n=t.charAt(ed),ed++):(n=c,eh(V));else u=c;u!==c&&(n=ev())!==c?(41===t.charCodeAt(ed)?(a=")",ed++):(a=c,eh(K)),a!==c?e=r=e_(parseInt(u.join(""),10)):(ed=e,e=c)):(ed=e,e=c)}else ed=e,e=c}else ed=e,e=c;return ep[i]={nextPos:ed,result:e},e}())===c&&(tt=(te=ep[e7=30*ed+29])?(ed=te.nextPos,te.result):(e8=ed,58===t.charCodeAt(ed)?(e6=":",ed++):(e6=c,eh(es)),e6!==c&&(e9=ex())!==c?e8=e6={type:"class",name:e9}:(ed=e8,e8=c),ep[e7]={nextPos:ed,result:e8},e8)),ep[tr]={nextPos:ed,result:tt},tt)}function eF(){var e,r,u,n,a,i,o,s=30*ed+13,d=ep[s];if(d)return ed=d.nextPos,d.result;if(e=ed,(r=ex())!==c){for(u=[],n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=c,eh(I)),a!==c&&(i=ex())!==c?n=a=[a,i]:(ed=n,n=c);n!==c;)u.push(n),n=ed,46===t.charCodeAt(ed)?(a=".",ed++):(a=c,eh(I)),a!==c&&(i=ex())!==c?n=a=[a,i]:(ed=n,n=c);u!==c?(o=r,e=r=[].concat.apply([o],u).join("")):(ed=e,e=c)}else ed=e,e=c;return ep[s]={nextPos:ed,result:e},e}function ew(e){return{type:"nth-child",index:{type:"literal",value:e}}}function e_(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&ed===t.length)return o;throw o!==c&&ed<t.length&&eh({type:"end"}),s=ef,d=ec<t.length?t.charAt(ec):null,u=ec,n=ec<t.length?ec+1:ec,a=ey(u),i=ey(n),l={start:{offset:u,line:a.line,column:a.column},end:{offset:n,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function mI(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var mB="function"==typeof WeakMap?new WeakMap:null;function mR(e){if(null==e)return function(){return!0};if(null!=mB){var t=mB.get(e);return null!=t||(t=mN(e),mB.set(e,t)),t}return mN(e)}function mN(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,u){return t===e[u&&u.nodeTypeKey||"type"].toLowerCase()};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,u,n){for(var a=r,i=n;i<u.length;++i){if(null==a)return!1;var o=a[u[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],u,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var u=e.selectors.map(mR);return function(e,t,r){for(var n=0;n<u.length;++n)if(u[n](e,t,r))return!0;return!1};case"compound":var n=e.selectors.map(mR);return function(e,t,r){for(var u=0;u<n.length;++u)if(!n[u](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(mR);return function(e,t,r){for(var u=0;u<a.length;++u)if(a[u](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(mR);return function(e,t,r){var u=!1,n=[];return mT.traverse(e,{enter:function(e,t){null!=t&&n.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,n,r))return u=!0,void this.break()},leave:function(){n.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),u};case"child":var o=mR(e.left),s=mR(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=mR(e.left),l=mR(e.right);return function(e,t,r){if(l(e,t,r)){for(var u=0,n=t.length;u<n;++u)if(d(t[u],t.slice(u+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=mI(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=mI(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(mI(e,c))};case"type":return function(t){return e.value.value===mS(mI(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(mI(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(mI(e,c))};case"type":return function(t){return e.value.value!==mS(mI(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return mI(t,c)<=e.value.value};case"<":return function(t){return mI(t,c)<e.value.value};case">":return function(t){return mI(t,c)>e.value.value};case">=":return function(t){return mI(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=mR(e.left),g=mR(e.right);return function(t,r,u){return g(t,r,u)&&mO(t,m,r,"LEFT_SIDE",u)||e.left.subject&&m(t,r,u)&&mO(t,g,r,"RIGHT_SIDE",u)};case"adjacent":var y=mR(e.left),h=mR(e.right);return function(t,r,u){return h(t,r,u)&&mM(t,y,r,"LEFT_SIDE",u)||e.right.subject&&y(t,r,u)&&mM(t,h,r,"RIGHT_SIDE",u)};case"nth-child":var b=e.index.value,v=mR(e.right);return function(e,t,r){return v(e,t,r)&&m$(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=mR(e.right);return function(e,t,r){return E(e,t,r)&&m$(e,t,x,r)};case"class":return function(t,r,u){if(u&&u.matchClass)return u.matchClass(e.name,t,r);if(u&&u.nodeTypeKey)return!1;switch(e.name.toLowerCase()){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function mL(e,t){var r=t&&t.nodeTypeKey||"type",u=e[r];return t&&t.visitorKeys&&t.visitorKeys[u]?t.visitorKeys[u]:mT.VisitorKeys[u]?mT.VisitorKeys[u]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function mj(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mS(e)&&"string"==typeof e[r]}function mO(e,t,r,u,n){var a=mF(r,1)[0];if(!a)return!1;for(var i=mL(a,n),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===u?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(mj(s[f],n)&&t(s[f],r,n))return!0}}return!1}function mM(e,t,r,u,n){var a=mF(r,1)[0];if(!a)return!1;for(var i=mL(a,n),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===u&&d>0&&mj(s[d-1],n)&&t(s[d-1],r,n)||"RIGHT_SIDE"===u&&d<s.length-1&&mj(s[d+1],n)&&t(s[d+1],r,n))return!0}}return!1}function m$(e,t,r,u){if(0===r)return!1;var n=mF(t,1)[0];if(!n)return!1;for(var a=mL(n,u),i=0;i<a.length;++i){var o=n[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function mz(e,t,r,u){if(t){var n=[],a=mR(t),i=(function e(t,r){if(null==t||"object"!=mS(t))return[];null==r&&(r=t);for(var u=t.subject?[r]:[],n=Object.keys(t),a=0;a<n.length;++a){var i,o=n[a],s=t[o];u.push.apply(u,function(e){if(Array.isArray(e))return m_(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||mw(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return u})(t).map(mR);mT.traverse(e,{enter:function(e,t){if(null!=t&&n.unshift(t),a(e,n,u)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,n,u)&&r(e,t,n);for(var d=0,l=n.length;d<l;++d){var c=n.slice(d+1);i[o](n[d],c,u)&&r(n[d],t,c)}}else r(e,t,n)}},leave:function(){n.shift()},keys:u&&u.visitorKeys,fallback:u&&u.fallback||"iteration"})}}function mU(e,t,r){var u=[];return mz(e,t,function(e){u.push(e)},r),u}function mq(e){return mP.parse(e)}function mW(e,t,r){return mU(e,mq(t),r)}mW.parse=mq,mW.match=mU,mW.traverse=mz,mW.matches=function(e,t,r,u){return!t||!!e&&(r||(r=[]),mR(t)(e,r,u))},mW.query=mW;var mV=X(Object.freeze({__proto__:null,default:mW}));let mZ=e=>{let t=mC(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},mG=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let u=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(u,r.indent.repeat(t))},{replaceTemplateElement:mH}=nt,{isMethodCall:mK,isCallExpression:mX,isTaggedTemplateLiteral:mJ}=tI,{isNodeMatches:mY}=ug,mQ="template-indent",m0=e=>mK(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&mX(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),m1=new Map,m3=e=>(m1.has(e)||m1.set(e,mV.parse(e)),m1.get(e));var m2=K({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let u=e=>{let u;let n="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(n),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";u="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=mZ(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+mG(l,1,{indent:d+u})+o+d;if(c!==a)return{node:e,messageId:mQ,fix:t=>c.split(n).map((r,u)=>mH(t,e.quasis[u],r))}},n=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}if(m0(e)||r.tags.length>0&&mJ(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&mY(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let u=t.getAncestors(e).reverse();if(r.selectors.some(t=>mV.matches(e,m3(t),u)))return!0}return!1};return{TemplateLiteral(e){if(n(e))return u(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[mQ]:"Templates should be properly indented."}}});let m4=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),m5=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),m8=Symbol("rule-id-no-match");var m6={rules:{"array/no-unneeded-flat-map":v,"browser/prefer-location-assign":E,"jsx/no-template-literal":D,"jsx/no-unneeded-nested":C,"string/no-locale-case":F,"string/no-simple-template-literal":_,"type/no-instanceof-wrapper":T,"unicode/no-bidi":j,"unicode/no-invisible":M,"ban-eslint-disable":r({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let u of r.comments){let r=function(e){let t=m4.exec(e);return t?.groups?.directive}(u.value);if(r&&!("allow-with-description"===t&&u.value.includes("--"))){let n="allow-with-description"===t?"require-description":"do-not-use";e.report({node:u,data:{directive:r},messageId:n})}let n=function(e){let t=m5.exec(e.trim());return t?t.groups?.ruleId:m8}(u.value);n===m8||n||e.report({node:u,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":$,"no-single-return":U,"prefer-early-return":W,"prefer-fetch":V,"prefer-timer-id":H,"import-dedupe":r({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(u=>{let n=u.local.name;r.has(n)&&e.report({node:t,loc:{start:u.loc.end,end:u.loc.start},messageId:"import-dedupe",fix(t){let r=u.range[0],n=u.range[1];return","===e.getSourceCode().text[n]&&(n+=1),t.removeRange([r,n])}}),r.add(n)})}})}),"unicorn/better-regex":m9(lo,"unicorn/better-regex"),"unicorn/no-nested-ternary":m9(tu,"unicorn/no-nested-ternary"),"unicorn/prefer-event-target":m9(uS,"unicorn/prefer-event-target"),"unicorn/prefer-keyboard-event-key":m9(uj,"unicorn/prefer-keyboard-event-key"),"unicorn/prefer-text-content":m9(uz,"unicorn/prefer-text-content"),"unicorn/require-array-join-separator":m9(ni,"unicorn/require-array-join-separator"),"unicorn/no-thenable":m9(ny,"unicorn/no-thenable"),"unicorn/no-invalid-remove-event-listener":m9(nx,"unicorn/no-invalid-remove-event-listener"),"unicorn/consistent-function-scoping":m9(nB,"unicorn/consistent-function-scoping"),"unicorn/no-new-buffer":m9(n8,"unicorn/no-new-buffer"),"unicorn/no-console-spaces":m9(ar,"unicorn/no-console-spaces"),"unicorn/no-empty-file":m9(ad,"unicorn/no-empty-file"),"unicorn/no-useless-fallback-in-spread":m9(am,"unicorn/no-useless-fallback-in-spread"),"unicorn/no-useless-length-check":m9(aE,"unicorn/no-useless-length-check"),"unicorn/no-useless-promise-resolve-reject":m9(aS,"unicorn/no-useless-promise-resolve-reject"),"unicorn/no-zero-fractions":m9(aI,"unicorn/no-zero-fractions"),"unicorn/prefer-export-from":m9(aZ,"unicorn/prefer-export-from"),"unicorn/prefer-native-coercion-functions":m9(a3,"unicorn/prefer-native-coercion-functions"),"unicorn/no-document-cookie":m9(ie,"unicorn/no-document-cookie"),"unicorn/prefer-add-event-listener":m9(iy,"unicorn/prefer-add-event-listener"),"unicorn/prefer-array-index-of":m9(ik,"unicorn/prefer-array-index-of"),"unicorn/prefer-blob-reading-methods":m9(iI,"unicorn/prefer-blob-reading-methods"),"unicorn/prefer-date-now":m9(iU,"unicorn/prefer-date-now"),"unicorn/prefer-dom-node-dataset":m9(iY,"unicorn/prefer-dom-node-dataset"),"unicorn/prefer-modern-math-apis":m9(oa,"unicorn/prefer-modern-math-apis"),"unicorn/number-literal-case":m9(ox,"unicorn/number-literal-case"),"unicorn/prefer-number-properties":m9(o_,"unicorn/prefer-number-properties"),"unicorn/prefer-reflect-apply":m9(oj,"unicorn/prefer-reflect-apply"),"unicorn/prefer-set-size":m9(oW,"unicorn/prefer-set-size"),"unicorn/prefer-string-replace-all":m9(o1,"unicorn/prefer-string-replace-all"),"unicorn/prefer-string-slice":m9(se,"unicorn/prefer-string-slice"),"unicorn/prefer-string-trim-start-end":m9(su,"unicorn/prefer-string-trim-start-end"),"unicorn/no-unreadable-iife":m9(ss,"unicorn/no-unreadable-iife"),"unicorn/throw-new-error":m9(sf,"unicorn/throw-new-error"),"unicorn/escape-case":m9(ly,"unicorn/escape-case"),"unicorn/no-hex-escape":m9(lD,"unicorn/no-hex-escape"),"unicorn/prefer-prototype-methods":m9(lT,"unicorn/prefer-prototype-methods"),"unicorn/error-message":m9(lj,"unicorn/error-message"),"unicorn/no-instanceof-array":m9(lW,"unicorn/no-instanceof-array"),"unicorn/prefer-type-error":m9(l0,"unicorn/prefer-type-error"),"unicorn/consistent-destructuring":m9(l8,"unicorn/consistent-destructuring"),"unicorn/new-for-builtins":m9(cu,"unicorn/new-for-builtins"),"unicorn/no-array-push-push":m9(cm,"unicorn/no-array-push-push"),"unicorn/no-process-exit":m9(cx,"unicorn/no-process-exit"),"unicorn/no-static-only-class":m9(cT,"unicorn/no-static-only-class"),"unicorn/no-unreadable-array-destructuring":m9(cN,"unicorn/no-unreadable-array-destructuring"),"unicorn/no-useless-spread":m9(cQ,"unicorn/no-useless-spread"),"unicorn/no-useless-switch-case":m9(c8,"unicorn/no-useless-switch-case"),"unicorn/no-useless-undefined":m9(fo,"unicorn/no-useless-undefined"),"unicorn/numeric-separators-style":m9(fp,"unicorn/numeric-separators-style"),"unicorn/prefer-array-find":m9(fZ,"unicorn/prefer-array-find"),"unicorn/prefer-array-flat-map":m9(fY,"unicorn/prefer-array-flat-map"),"unicorn/prefer-array-flat":m9(po,"unicorn/prefer-array-flat"),"unicorn/prefer-array-some":m9(pE,"unicorn/prefer-array-some"),"unicorn/prefer-code-point":m9(pC,"unicorn/prefer-code-point"),"unicorn/prefer-default-parameters":m9(pL,"unicorn/prefer-default-parameters"),"unicorn/prefer-logical-operator-over-ternary":m9(pW,"unicorn/prefer-logical-operator-over-ternary"),"unicorn/prefer-optional-catch-binding":m9(pK,"unicorn/prefer-optional-catch-binding"),"unicorn/prefer-prototype-methods":m9(lT,"unicorn/prefer-prototype-methods"),"unicorn/prefer-regexp-test":m9(me,"unicorn/prefer-regexp-test"),"unicorn/prefer-set-has":m9(mc,"unicorn/prefer-set-has"),"unicorn/prefer-switch":m9(mv,"unicorn/prefer-switch"),"unicorn/require-number-to-fixed-digits-argument":m9(mD,"unicorn/require-number-to-fixed-digits-argument"),"unicorn/template-indent":m9(m2,"unicorn/template-indent")}};function m9(e,t){var r;return{meta:{schema:[],...e.meta,docs:{...e.meta.docs,url:Q(t)}},create:(r=e.create,e=>{let t={},u=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,n]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])u(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))u(t,n);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let u of r)!function(e,t){if(e){for(let r of(m7(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=gr(r.fix)),m7(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=gr(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(u(...t),e)}]))})}}let m7=e=>"function"==typeof e?.[Symbol.iterator];class ge extends Error{}let gt={abort(){throw new ge("Fix aborted.")}};function gr(e){return t=>{let r=e(t,gt);if(m7(r))try{return[...r]}catch(e){if(e instanceof ge)return;throw e}return r}}export{m6 as default};