eslint-config-sukka 7.0.0-beta.1 → 7.0.2-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.cjs +6 -28
  2. package/package.json +8 -8
package/dist/index.cjs CHANGED
@@ -1,28 +1,6 @@
1
- let e,t,n,r;"use strict";var i,s,o,a,l,c,u,p,f,d,m,h,g,y,x,b,T,k,S,E,w,v,A,C,D,_,O,F,P,I,B,L,N,j,R,q,M,V,$,U,Y,J,W,X=require("@eslint-sukka/shared"),z=require("node:fs"),H=require("node:path"),K=require("node:process"),G=require("./vendor-47KOc287.cjs");require("node:fs/promises");var Q=require("node:url"),Z=require("foxts/guard"),ee=require("@eslint-community/eslint-plugin-eslint-comments"),et=require("eslint-plugin-sukka"),en=require("eslint-plugin-promise"),er=require("eslint-plugin-regexp"),ei=require("@eslint/js"),es=require("node:module"),eo=require("eslint-plugin-unused-imports"),ea=require("eslint-plugin-import-x"),el=require("eslint-plugin-de-morgan"),ec=require("eslint-plugin-autofix"),eu=require("eslint-plugin-jsonc"),ep=require("jsonc-eslint-parser"),ef=require("typescript-eslint"),ed=require("@typescript-eslint/eslint-plugin"),em=require("@typescript-eslint/parser"),eh=require("eslint-plugin-paths"),eg=require("eslint-import-resolver-typescript"),ey=require("defu"),ex=require("ci-info"),eb=require("picocolors"),eT="undefined"!=typeof document?document.currentScript:null;function ek(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var eS=ek(z),eE=ek(H),ew=ek(er),ev={},eA=G.g(eS),eC=G.g(eE),eD=function(){if(o)return ev;o=1;let e=new Map([["getSource","getText"],["getSourceLines","getLines"],["getAllComments","getAllComments"],["getDeclaredVariables","getDeclaredVariables"],["getNodeByRangeIndex","getNodeByRangeIndex"],["getCommentsBefore","getCommentsBefore"],["getCommentsAfter","getCommentsAfter"],["getCommentsInside","getCommentsInside"],["getJSDocComment","getJSDocComment"],["getFirstToken","getFirstToken"],["getFirstTokens","getFirstTokens"],["getLastToken","getLastToken"],["getLastTokens","getLastTokens"],["getTokenAfter","getTokenAfter"],["getTokenBefore","getTokenBefore"],["getTokenByRangeStart","getTokenByRangeStart"],["getTokens","getTokens"],["getTokensAfter","getTokensAfter"],["getTokensBefore","getTokensBefore"],["getTokensBetween","getTokensBetween"]]),t=new WeakMap,n=new WeakSet,r=new WeakMap,i=new WeakSet;function s(r){if(t.has(r))return t.get(r);let i="function"==typeof r;if(!i&&n.has(r))return r;let s=i?r:r.create.bind(r),o={...i?void 0:r,create:function(t){if("getScope"in t)return s(t);let n=t.sourceCode,r=n.ast,i=Object.assign(Object.create(t),{parserServices:n.parserServices,getScope:()=>n.getScope(r),getAncestors:()=>n.getAncestors(r),markVariableAsUsed(e){n.markVariableAsUsed(e,r)}});for(let[t,r]of e)i[t]=n[r].bind(n);Object.freeze(i);let o=s(i);for(let[e,t]of Object.entries(o)){if(e.startsWith("on")){o[e]=(...n)=>(r=n["onCodePathSegmentLoop"===e?2:1],t.call(o,...n));continue}o[e]=(...e)=>(r=e[0],t.call(o,...e))}return o}},{schema:a}=r;return a&&(o.meta?o.meta={...o.meta,schema:a}:o.meta={schema:a}),t.set(r,o),n.add(o),o}function a(e){if(r.has(e))return r.get(e);if(i.has(e)||!e.rules)return e;let t={...e,rules:Object.fromEntries(Object.entries(e.rules).map(([e,t])=>[e,s(t)]))};return r.set(e,t),i.add(t),t}function l(e){let t=e.startsWith("!"),n=t?"!":"",r=(t?e.slice(1):e).trimEnd();if(["","**","/**","**/"].includes(r))return`${n}${r}`;let i=r.indexOf("/"),s=i<0||i===r.length-1?"**/":"",o=(0===i?r.slice(1):r).replaceAll(/(?=((?:\\.|[^{(])*))\1([{(])/guy,"$1\\$2"),a=r.endsWith("/**")?"/*":"";return`${n}${s}${o}${a}`}return ev.convertIgnorePatternToMinimatch=l,ev.fixupConfigRules=function(e){return(Array.isArray(e)?e:[e]).map(e=>{if(!e.plugins)return e;let t=Object.fromEntries(Object.entries(e.plugins).map(([e,t])=>[e,a(t)]));return{...e,plugins:t}})},ev.fixupPluginRules=a,ev.fixupRule=s,ev.includeIgnoreFile=function(e,t){if(!eC.isAbsolute(e))throw Error("The ignore file location must be an absolute path.");return{name:t||"Imported .gitignore patterns",ignores:eA.readFileSync(e,"utf8").split(/\r?\n/u).map(e=>e.trim()).filter(e=>e&&!e.startsWith("#")).map(l)}},ev}();function e_(e){return Array.isArray(e=e??[])?e:[e]}const eO=e=>e instanceof URL?Q.fileURLToPath(e):e;function eF(e,{cwd:t=K.cwd(),type:n="file",stopAt:r}={}){let i=H.resolve(eO(t)??""),{root:s}=H.parse(i);for(r=H.resolve(i,eO(r)??s);i&&i!==r&&i!==s;){let t=H.isAbsolute(e)?e:H.join(i,e);try{let e=z.statSync(t,{throwIfNoEntry:!1});if("file"===n&&e?.isFile()||"directory"===n&&e?.isDirectory())return t}catch{}i=H.dirname(i)}}const eP=".gitignore",eI=".gitmodules";function eB(e={}){let t=[],{cwd:n=K.cwd(),root:r=!1,files:i=r?eP:eF(eP,{cwd:n})||[],filesGitModules:s=r?z.existsSync(H.join(n,eI))?eI:[]:eF(eI,{cwd:n})||[],strict:o=!0}=e,a=e_(i).map(e=>H.resolve(n,e)),l=e_(s).map(e=>H.resolve(n,e));for(let e of a){let r="";try{r=z.readFileSync(e,"utf8")}catch(e){if(o)throw e;continue}let i=H.relative(n,H.dirname(e)).replaceAll("\\","/"),s=r.split(/\r?\n/u).filter(e=>e&&!e.startsWith("#")).map(e=>eD.convertIgnorePatternToMinimatch(e)).map(e=>(function(e,t,n){if(["",".","/"].includes(t))return e;let r=e.startsWith("!")?"!":"",i=r?e.slice(1):e;if(t.endsWith("/")||(t=`${t}/`),!t.startsWith(".."))return`${r}${t}${i}`;if(!t.match(/^(\.\.\/)+$/))throw Error("The ignore file location should be either a parent or child directory");if(i.startsWith("**"))return e;let s=H.relative(H.resolve(n,t),n).split(/[/\\]/);for(;s.length&&i.startsWith(`${s[0]}/`);)i=i.slice(s[0].length+1),s.shift();return i.startsWith("**")||0===s.length?`${r}${i}`:null})(e,i,n)).filter(e=>null!==e);t.push(...s)}for(let e of l){let n="";try{n=z.readFileSync(e,"utf8")}catch(e){if(o)throw e;continue}let r=n.split(/\r?\n/u).map(e=>e.match(/path\s*=\s*(.+)/u)).filter(e=>null!==e).map(e=>e[1].trim());t.push(...r.map(e=>`${e}/**`))}if(o&&0===a.length)throw Error("No .gitignore file found");return{name:e.name||"gitignore",ignores:t}}function eL(e={}){let{customGlobs:t=null,gitignore:n=[".gitignore"]}=e,r=[],i=[];return!1===t||null===t?i=X.constants.GLOB_EXCLUDE:"function"==typeof t?i=t(X.constants.GLOB_EXCLUDE):"string"==typeof t?i.push(...X.constants.GLOB_EXCLUDE,t):Array.isArray(t)?i.push(...X.constants.GLOB_EXCLUDE,...t):Z.never(t),r.push({ignores:i}),!1===n||null===n||(!0===n?r.push(eB({files:[".gitignore"],strict:!1})):"string"==typeof n||Array.isArray(n)?r.push(eB({files:n,strict:!1})):Z.never(n)),r}var eN=Object.create,ej=Object.defineProperty,eR=Object.getOwnPropertyDescriptor,eq=Object.getOwnPropertyNames,eM=Object.getPrototypeOf,eV=Object.prototype.hasOwnProperty,e$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eU=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,s=eq(t),o=0,a=s.length;o<a;o++)i=s[o],eV.call(e,i)||i===n||ej(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=eR(t,i))||r.enumerable});return e},eY=(e,t,n)=>eU(ej(n=null!=e?eN(eM(e)):{},"default",{value:e,enumerable:!0}),e),eJ=es.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:eT&&"SCRIPT"===eT.tagName.toUpperCase()&&eT.src||new URL("index.cjs",document.baseURI).href),eW=e$(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),o=0;o<s.length;o++)"default"!==s[o]&&n(i,e,s[o]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isParenthesized=e.hasSideEffect=e.getStringIfConstant=e.getStaticValue=e.getPropertyName=e.getFunctionNameWithKind=e.getFunctionHeadLocation=void 0;let s=i(eJ("@eslint-community/eslint-utils"));e.getFunctionHeadLocation=s.getFunctionHeadLocation,e.getFunctionNameWithKind=s.getFunctionNameWithKind,e.getPropertyName=s.getPropertyName,e.getStaticValue=s.getStaticValue,e.getStringIfConstant=s.getStringIfConstant,e.hasSideEffect=s.hasSideEffect,e.isParenthesized=s.isParenthesized}),eX=e$(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),o=0;o<s.length;o++)"default"!==s[o]&&n(i,e,s[o]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.PatternMatcher=void 0,e.PatternMatcher=i(eJ("@eslint-community/eslint-utils")).PatternMatcher}),ez=e$(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),o=0;o<s.length;o++)"default"!==s[o]&&n(i,e,s[o]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isNotSemicolonToken=e.isSemicolonToken=e.isNotOpeningParenToken=e.isOpeningParenToken=e.isNotOpeningBracketToken=e.isOpeningBracketToken=e.isNotOpeningBraceToken=e.isOpeningBraceToken=e.isNotCommentToken=e.isCommentToken=e.isNotCommaToken=e.isCommaToken=e.isNotColonToken=e.isColonToken=e.isNotClosingParenToken=e.isClosingParenToken=e.isNotClosingBracketToken=e.isClosingBracketToken=e.isNotClosingBraceToken=e.isClosingBraceToken=e.isNotArrowToken=e.isArrowToken=void 0;let s=i(eJ("@eslint-community/eslint-utils"));e.isArrowToken=s.isArrowToken,e.isNotArrowToken=s.isNotArrowToken,e.isClosingBraceToken=s.isClosingBraceToken,e.isNotClosingBraceToken=s.isNotClosingBraceToken,e.isClosingBracketToken=s.isClosingBracketToken,e.isNotClosingBracketToken=s.isNotClosingBracketToken,e.isClosingParenToken=s.isClosingParenToken,e.isNotClosingParenToken=s.isNotClosingParenToken,e.isColonToken=s.isColonToken,e.isNotColonToken=s.isNotColonToken,e.isCommaToken=s.isCommaToken,e.isNotCommaToken=s.isNotCommaToken,e.isCommentToken=s.isCommentToken,e.isNotCommentToken=s.isNotCommentToken,e.isOpeningBraceToken=s.isOpeningBraceToken,e.isNotOpeningBraceToken=s.isNotOpeningBraceToken,e.isOpeningBracketToken=s.isOpeningBracketToken,e.isNotOpeningBracketToken=s.isNotOpeningBracketToken,e.isOpeningParenToken=s.isOpeningParenToken,e.isNotOpeningParenToken=s.isNotOpeningParenToken,e.isSemicolonToken=s.isSemicolonToken,e.isNotSemicolonToken=s.isNotSemicolonToken}),eH=e$(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),o=0;o<s.length;o++)"default"!==s[o]&&n(i,e,s[o]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.ReferenceTracker=void 0;let s=i(eJ("@eslint-community/eslint-utils"));s.ReferenceTracker.READ,s.ReferenceTracker.CALL,s.ReferenceTracker.CONSTRUCT,s.ReferenceTracker.ESM,e.ReferenceTracker=s.ReferenceTracker}),eK=e$(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),o=0;o<s.length;o++)"default"!==s[o]&&n(i,e,s[o]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.getInnermostScope=e.findVariable=void 0;let s=i(eJ("@eslint-community/eslint-utils"));e.findVariable=s.findVariable,e.getInnermostScope=s.getInnermostScope}),eG=e$(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eW(),e),n(eX(),e),n(ez(),e),n(eH(),e),n(eK(),e)}),eQ=e$(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNotTokenOfTypeWithConditions=e.isTokenOfTypeWithConditions=e.isNodeOfTypeWithConditions=e.isNodeOfTypes=e.isNodeOfType=void 0,e.isNodeOfType=e=>t=>t?.type===e,e.isNodeOfTypes=e=>t=>!!t&&e.includes(t.type),e.isNodeOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isTokenOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isNotTokenOfTypeWithConditions=(t,n)=>r=>!(0,e.isTokenOfTypeWithConditions)(t,n)(r)}),eZ=e$(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LINEBREAK_MATCHER=void 0,e.isTokenOnSameLine=function(e,t){return e.loc.end.line===t.loc.start.line},e.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/}),e0=e$(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TSESTree=e.AST_TOKEN_TYPES=e.AST_NODE_TYPES=void 0;var t=eJ("@typescript-eslint/types");Object.defineProperty(e,"AST_NODE_TYPES",{enumerable:!0,get:function(){return t.AST_NODE_TYPES}}),Object.defineProperty(e,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return t.AST_TOKEN_TYPES}}),Object.defineProperty(e,"TSESTree",{enumerable:!0,get:function(){return t.TSESTree}})}),e1=e$(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isLoop=e.isImportKeyword=e.isTypeKeyword=e.isAwaitKeyword=e.isAwaitExpression=e.isIdentifier=e.isConstructor=e.isClassOrTypeElement=e.isTSConstructorType=e.isTSFunctionType=e.isFunctionOrFunctionType=e.isFunctionType=e.isFunction=e.isVariableDeclarator=e.isTypeAssertion=e.isLogicalOrOperator=e.isOptionalCallExpression=e.isNotNonNullAssertionPunctuator=e.isNonNullAssertionPunctuator=e.isNotOptionalChainPunctuator=e.isOptionalChainPunctuator=void 0,e.isSetter=function(e){return!!e&&(e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.Property)&&"set"===e.kind};let t=e0(),n=eQ();e.isOptionalChainPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNotOptionalChainPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNonNullAssertionPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isNotNonNullAssertionPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isOptionalCallExpression=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.CallExpression,{optional:!0}),e.isLogicalOrOperator=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.LogicalExpression,{operator:"||"}),e.isTypeAssertion=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion]),e.isVariableDeclarator=(0,n.isNodeOfType)(t.AST_NODE_TYPES.VariableDeclarator);let r=[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression];e.isFunction=(0,n.isNodeOfTypes)(r);let i=[t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature];e.isFunctionType=(0,n.isNodeOfTypes)(i),e.isFunctionOrFunctionType=(0,n.isNodeOfTypes)([...r,...i]),e.isTSFunctionType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSFunctionType),e.isTSConstructorType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSConstructorType),e.isClassOrTypeElement=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.MethodDefinition,t.AST_NODE_TYPES.TSAbstractPropertyDefinition,t.AST_NODE_TYPES.TSAbstractMethodDefinition,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSIndexSignature,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSMethodSignature,t.AST_NODE_TYPES.TSPropertySignature]),e.isConstructor=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"}),e.isIdentifier=(0,n.isNodeOfType)(t.AST_NODE_TYPES.Identifier),e.isAwaitExpression=(0,n.isNodeOfType)(t.AST_NODE_TYPES.AwaitExpression),e.isAwaitKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"await"}),e.isTypeKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"type"}),e.isImportKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Keyword,{value:"import"}),e.isLoop=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.WhileStatement])}),e2=e$(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eG(),e),n(eQ(),e),n(eZ(),e),n(e1(),e)}),e3={},e4={};function e5(){var e,t,n,r;return a?e4:(a=1,Object.defineProperty(e4,"__esModule",{value:!0}),e4.AST_TOKEN_TYPES=e4.AST_NODE_TYPES=void 0,(n=e||(e4.AST_NODE_TYPES=e={})).AccessorProperty="AccessorProperty",n.ArrayExpression="ArrayExpression",n.ArrayPattern="ArrayPattern",n.ArrowFunctionExpression="ArrowFunctionExpression",n.AssignmentExpression="AssignmentExpression",n.AssignmentPattern="AssignmentPattern",n.AwaitExpression="AwaitExpression",n.BinaryExpression="BinaryExpression",n.BlockStatement="BlockStatement",n.BreakStatement="BreakStatement",n.CallExpression="CallExpression",n.CatchClause="CatchClause",n.ChainExpression="ChainExpression",n.ClassBody="ClassBody",n.ClassDeclaration="ClassDeclaration",n.ClassExpression="ClassExpression",n.ConditionalExpression="ConditionalExpression",n.ContinueStatement="ContinueStatement",n.DebuggerStatement="DebuggerStatement",n.Decorator="Decorator",n.DoWhileStatement="DoWhileStatement",n.EmptyStatement="EmptyStatement",n.ExportAllDeclaration="ExportAllDeclaration",n.ExportDefaultDeclaration="ExportDefaultDeclaration",n.ExportNamedDeclaration="ExportNamedDeclaration",n.ExportSpecifier="ExportSpecifier",n.ExpressionStatement="ExpressionStatement",n.ForInStatement="ForInStatement",n.ForOfStatement="ForOfStatement",n.ForStatement="ForStatement",n.FunctionDeclaration="FunctionDeclaration",n.FunctionExpression="FunctionExpression",n.Identifier="Identifier",n.IfStatement="IfStatement",n.ImportAttribute="ImportAttribute",n.ImportDeclaration="ImportDeclaration",n.ImportDefaultSpecifier="ImportDefaultSpecifier",n.ImportExpression="ImportExpression",n.ImportNamespaceSpecifier="ImportNamespaceSpecifier",n.ImportSpecifier="ImportSpecifier",n.JSXAttribute="JSXAttribute",n.JSXClosingElement="JSXClosingElement",n.JSXClosingFragment="JSXClosingFragment",n.JSXElement="JSXElement",n.JSXEmptyExpression="JSXEmptyExpression",n.JSXExpressionContainer="JSXExpressionContainer",n.JSXFragment="JSXFragment",n.JSXIdentifier="JSXIdentifier",n.JSXMemberExpression="JSXMemberExpression",n.JSXNamespacedName="JSXNamespacedName",n.JSXOpeningElement="JSXOpeningElement",n.JSXOpeningFragment="JSXOpeningFragment",n.JSXSpreadAttribute="JSXSpreadAttribute",n.JSXSpreadChild="JSXSpreadChild",n.JSXText="JSXText",n.LabeledStatement="LabeledStatement",n.Literal="Literal",n.LogicalExpression="LogicalExpression",n.MemberExpression="MemberExpression",n.MetaProperty="MetaProperty",n.MethodDefinition="MethodDefinition",n.NewExpression="NewExpression",n.ObjectExpression="ObjectExpression",n.ObjectPattern="ObjectPattern",n.PrivateIdentifier="PrivateIdentifier",n.Program="Program",n.Property="Property",n.PropertyDefinition="PropertyDefinition",n.RestElement="RestElement",n.ReturnStatement="ReturnStatement",n.SequenceExpression="SequenceExpression",n.SpreadElement="SpreadElement",n.StaticBlock="StaticBlock",n.Super="Super",n.SwitchCase="SwitchCase",n.SwitchStatement="SwitchStatement",n.TaggedTemplateExpression="TaggedTemplateExpression",n.TemplateElement="TemplateElement",n.TemplateLiteral="TemplateLiteral",n.ThisExpression="ThisExpression",n.ThrowStatement="ThrowStatement",n.TryStatement="TryStatement",n.UnaryExpression="UnaryExpression",n.UpdateExpression="UpdateExpression",n.VariableDeclaration="VariableDeclaration",n.VariableDeclarator="VariableDeclarator",n.WhileStatement="WhileStatement",n.WithStatement="WithStatement",n.YieldExpression="YieldExpression",n.TSAbstractAccessorProperty="TSAbstractAccessorProperty",n.TSAbstractKeyword="TSAbstractKeyword",n.TSAbstractMethodDefinition="TSAbstractMethodDefinition",n.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",n.TSAnyKeyword="TSAnyKeyword",n.TSArrayType="TSArrayType",n.TSAsExpression="TSAsExpression",n.TSAsyncKeyword="TSAsyncKeyword",n.TSBigIntKeyword="TSBigIntKeyword",n.TSBooleanKeyword="TSBooleanKeyword",n.TSCallSignatureDeclaration="TSCallSignatureDeclaration",n.TSClassImplements="TSClassImplements",n.TSConditionalType="TSConditionalType",n.TSConstructorType="TSConstructorType",n.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",n.TSDeclareFunction="TSDeclareFunction",n.TSDeclareKeyword="TSDeclareKeyword",n.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",n.TSEnumBody="TSEnumBody",n.TSEnumDeclaration="TSEnumDeclaration",n.TSEnumMember="TSEnumMember",n.TSExportAssignment="TSExportAssignment",n.TSExportKeyword="TSExportKeyword",n.TSExternalModuleReference="TSExternalModuleReference",n.TSFunctionType="TSFunctionType",n.TSImportEqualsDeclaration="TSImportEqualsDeclaration",n.TSImportType="TSImportType",n.TSIndexedAccessType="TSIndexedAccessType",n.TSIndexSignature="TSIndexSignature",n.TSInferType="TSInferType",n.TSInstantiationExpression="TSInstantiationExpression",n.TSInterfaceBody="TSInterfaceBody",n.TSInterfaceDeclaration="TSInterfaceDeclaration",n.TSInterfaceHeritage="TSInterfaceHeritage",n.TSIntersectionType="TSIntersectionType",n.TSIntrinsicKeyword="TSIntrinsicKeyword",n.TSLiteralType="TSLiteralType",n.TSMappedType="TSMappedType",n.TSMethodSignature="TSMethodSignature",n.TSModuleBlock="TSModuleBlock",n.TSModuleDeclaration="TSModuleDeclaration",n.TSNamedTupleMember="TSNamedTupleMember",n.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",n.TSNeverKeyword="TSNeverKeyword",n.TSNonNullExpression="TSNonNullExpression",n.TSNullKeyword="TSNullKeyword",n.TSNumberKeyword="TSNumberKeyword",n.TSObjectKeyword="TSObjectKeyword",n.TSOptionalType="TSOptionalType",n.TSParameterProperty="TSParameterProperty",n.TSPrivateKeyword="TSPrivateKeyword",n.TSPropertySignature="TSPropertySignature",n.TSProtectedKeyword="TSProtectedKeyword",n.TSPublicKeyword="TSPublicKeyword",n.TSQualifiedName="TSQualifiedName",n.TSReadonlyKeyword="TSReadonlyKeyword",n.TSRestType="TSRestType",n.TSSatisfiesExpression="TSSatisfiesExpression",n.TSStaticKeyword="TSStaticKeyword",n.TSStringKeyword="TSStringKeyword",n.TSSymbolKeyword="TSSymbolKeyword",n.TSTemplateLiteralType="TSTemplateLiteralType",n.TSThisType="TSThisType",n.TSTupleType="TSTupleType",n.TSTypeAliasDeclaration="TSTypeAliasDeclaration",n.TSTypeAnnotation="TSTypeAnnotation",n.TSTypeAssertion="TSTypeAssertion",n.TSTypeLiteral="TSTypeLiteral",n.TSTypeOperator="TSTypeOperator",n.TSTypeParameter="TSTypeParameter",n.TSTypeParameterDeclaration="TSTypeParameterDeclaration",n.TSTypeParameterInstantiation="TSTypeParameterInstantiation",n.TSTypePredicate="TSTypePredicate",n.TSTypeQuery="TSTypeQuery",n.TSTypeReference="TSTypeReference",n.TSUndefinedKeyword="TSUndefinedKeyword",n.TSUnionType="TSUnionType",n.TSUnknownKeyword="TSUnknownKeyword",n.TSVoidKeyword="TSVoidKeyword",(r=t||(e4.AST_TOKEN_TYPES=t={})).Boolean="Boolean",r.Identifier="Identifier",r.JSXIdentifier="JSXIdentifier",r.PrivateIdentifier="PrivateIdentifier",r.JSXText="JSXText",r.Keyword="Keyword",r.Null="Null",r.Numeric="Numeric",r.Punctuator="Punctuator",r.RegularExpression="RegularExpression",r.String="String",r.Template="Template",r.Block="Block",r.Line="Line",e4)}var e6={},e9={},e8={},e7=function(){var e,t,n;return p?e3:(p=1,e=e3&&e3.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=e3&&e3.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(e3,"__esModule",{value:!0}),e3.AST_TOKEN_TYPES=e3.AST_NODE_TYPES=void 0,n=e5(),Object.defineProperty(e3,"AST_NODE_TYPES",{enumerable:!0,get:function(){return n.AST_NODE_TYPES}}),Object.defineProperty(e3,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return n.AST_TOKEN_TYPES}}),t((l||(l=1,Object.defineProperty(e6,"__esModule",{value:!0})),e6),e3),t((c||(c=1,Object.defineProperty(e9,"__esModule",{value:!0})),e9),e3),t(function(){if(u)return e8;u=1;var e,t=e8&&e8.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e8&&e8.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e8&&e8.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var s=e(r),o=0;o<s.length;o++)"default"!==s[o]&&t(i,r,s[o]);return n(i,r),i});return Object.defineProperty(e8,"__esModule",{value:!0}),e8.TSESTree=void 0,e8.TSESTree=r(e5()),e8}(),e3),e3)}();const te={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(const e of Object.keys(te))Object.freeze(te[e]);Object.freeze(te);var tt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],tn=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tr="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ti={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ts="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",to={5:ts,"5module":ts+" export import",6:ts+" const class extends export import super"},ta=/^in(stanceof)?$/,tl=RegExp("["+tr+"]"),tc=RegExp("["+tr+"‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function tu(e,t){for(var n=65536,r=0;r<t.length&&!((n+=t[r])>e);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function tp(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tl.test(String.fromCharCode(e)):!1!==t&&tu(e,tn)))}function tf(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tc.test(String.fromCharCode(e)):!1!==t&&(tu(e,tn)||tu(e,tt)))))}var td=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function tm(e,t){return new td(e,{beforeExpr:!0,binop:t})}var th={beforeExpr:!0},tg={startsExpr:!0},ty={};function tx(e,t){return void 0===t&&(t={}),t.keyword=e,ty[e]=new td(e,t)}var tb={num:new td("num",tg),regexp:new td("regexp",tg),string:new td("string",tg),name:new td("name",tg),privateId:new td("privateId",tg),eof:new td("eof"),bracketL:new td("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new td("]"),braceL:new td("{",{beforeExpr:!0,startsExpr:!0}),braceR:new td("}"),parenL:new td("(",{beforeExpr:!0,startsExpr:!0}),parenR:new td(")"),comma:new td(",",th),semi:new td(";",th),colon:new td(":",th),dot:new td("."),question:new td("?",th),questionDot:new td("?."),arrow:new td("=>",th),template:new td("template"),invalidTemplate:new td("invalidTemplate"),ellipsis:new td("...",th),backQuote:new td("`",tg),dollarBraceL:new td("${",{beforeExpr:!0,startsExpr:!0}),eq:new td("=",{beforeExpr:!0,isAssign:!0}),assign:new td("_=",{beforeExpr:!0,isAssign:!0}),incDec:new td("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new td("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:tm("||",1),logicalAND:tm("&&",2),bitwiseOR:tm("|",3),bitwiseXOR:tm("^",4),bitwiseAND:tm("&",5),equality:tm("==/!=/===/!==",6),relational:tm("</>/<=/>=",7),bitShift:tm("<</>>/>>>",8),plusMin:new td("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:tm("%",10),star:tm("*",10),slash:tm("/",10),starstar:new td("**",{beforeExpr:!0}),coalesce:tm("??",1),_break:tx("break"),_case:tx("case",th),_catch:tx("catch"),_continue:tx("continue"),_debugger:tx("debugger"),_default:tx("default",th),_do:tx("do",{isLoop:!0,beforeExpr:!0}),_else:tx("else",th),_finally:tx("finally"),_for:tx("for",{isLoop:!0}),_function:tx("function",tg),_if:tx("if"),_return:tx("return",th),_switch:tx("switch"),_throw:tx("throw",th),_try:tx("try"),_var:tx("var"),_const:tx("const"),_while:tx("while",{isLoop:!0}),_with:tx("with"),_new:tx("new",{beforeExpr:!0,startsExpr:!0}),_this:tx("this",tg),_super:tx("super",tg),_class:tx("class",tg),_extends:tx("extends",th),_export:tx("export"),_import:tx("import",tg),_null:tx("null",tg),_true:tx("true",tg),_false:tx("false",tg),_in:tx("in",{beforeExpr:!0,binop:7}),_instanceof:tx("instanceof",{beforeExpr:!0,binop:7}),_typeof:tx("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:tx("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:tx("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},tT=/\r\n?|\n|\u2028|\u2029/,tk=RegExp(tT.source,"g");function tS(e){return 10===e||13===e||8232===e||8233===e}function tE(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(tS(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var tw=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,tv=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tA=Object.prototype,tC=tA.hasOwnProperty,tD=tA.toString,t_=Object.hasOwn||function(e,t){return tC.call(e,t)},tO=Array.isArray||function(e){return"[object Array]"===tD.call(e)},tF=Object.create(null);function tP(e){return tF[e]||(tF[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var tB=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,tL=function(e,t){this.line=e,this.column=t};tL.prototype.offset=function(e){return new tL(this.line,this.column+e)};var tN=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function tj(e,t){for(var n=1,r=0;;){var i=tE(e,r,t);if(i<0)return new tL(n,t-r);++n,r=i}}var tR={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},tq=!1;function tM(e,t){return 2|4*!!e|8*!!t}var tV=function(e,t,n){this.options=e=function(e){var t,n,r={};for(var i in tR)r[i]=e&&t_(e,i)?e[i]:tR[i];if("latest"===r.ecmaVersion?r.ecmaVersion=1e8:null==r.ecmaVersion?(!tq&&"object"==typeof console&&console.warn&&(tq=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),null==r.allowReserved&&(r.allowReserved=r.ecmaVersion<5),e&&null!=e.allowHashBang||(r.allowHashBang=r.ecmaVersion>=14),tO(r.onToken)){var s=r.onToken;r.onToken=function(e){return s.push(e)}}return tO(r.onComment)&&(t=r,n=r.onComment,r.onComment=function(e,r,i,s,o,a){var l={type:e?"Block":"Line",value:r,start:i,end:s};t.locations&&(l.loc=new tN(this,o,a)),t.ranges&&(l.range=[i,s]),n.push(l)}),r}(e),this.sourceFile=e.sourceFile,this.keywords=tP(to[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ti[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=tP(r);var i=(r?r+" ":"")+ti.strict;this.reservedWordsStrict=tP(i),this.reservedWordsStrictBind=tP(i+" "+ti.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(tT).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=tb.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},t$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};tV.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},t$.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},t$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},t$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},t$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},t$.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},t$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},t$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},t$.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},t$.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},tV.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},tV.parse=function(e,t){return new this(t,e).parse()},tV.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},tV.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(tV.prototype,t$);var tU=tV.prototype,tY=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;tU.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){tv.lastIndex=e,e+=tv.exec(this.input)[0].length;var t=tY.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){tv.lastIndex=e+t[0].length;var n=tv.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||tT.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}tv.lastIndex=e+=t[0].length,e+=tv.exec(this.input)[0].length,";"===this.input[e]&&e++}},tU.eat=function(e){return this.type===e&&(this.next(),!0)},tU.isContextual=function(e){return this.type===tb.name&&this.value===e&&!this.containsEsc},tU.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},tU.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},tU.canInsertSemicolon=function(){return this.type===tb.eof||this.type===tb.braceR||tT.test(this.input.slice(this.lastTokEnd,this.start))},tU.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tU.semicolon=function(){this.eat(tb.semi)||this.insertSemicolon()||this.unexpected()},tU.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},tU.expect=function(e){this.eat(e)||this.unexpected()},tU.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var tJ=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};tU.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},tU.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},tU.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tU.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var tW=tV.prototype;tW.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==tb.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var tX={kind:"loop"},tz={kind:"switch"};tW.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;tv.lastIndex=this.pos;var t=tv.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(tp(r,!0)){for(var i=n+1;tf(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!ta.test(s))return!0}return!1},tW.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;tv.lastIndex=this.pos;var e,t=tv.exec(this.input),n=this.pos+t[0].length;return!tT.test(this.input.slice(this.pos,n))&&"function"===this.input.slice(n,n+8)&&(n+8===this.input.length||!(tf(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},tW.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;tv.lastIndex=this.pos;var n=tv.exec(this.input),r=this.pos+n[0].length;if(tT.test(this.input.slice(this.pos,r)))return!1;if(e){var i,s=r+5;if("using"!==this.input.slice(r,s)||s===this.input.length||tf(i=this.input.charCodeAt(s))||i>55295&&i<56320)return!1;tv.lastIndex=s;var o=tv.exec(this.input);if(o&&tT.test(this.input.slice(s,s+o[0].length)))return!1}if(t){var a,l=r+2;if("of"===this.input.slice(r,l)&&(l===this.input.length||!tf(a=this.input.charCodeAt(l))&&!(a>55295&&a<56320)))return!1}var c=this.input.charCodeAt(r);return tp(c,!0)||92===c},tW.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},tW.isUsing=function(e){return this.isUsingKeyword(!1,e)},tW.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=tb._var,r="let"),i){case tb._break:case tb._continue:return this.parseBreakContinueStatement(s,i.keyword);case tb._debugger:return this.parseDebuggerStatement(s);case tb._do:return this.parseDoStatement(s);case tb._for:return this.parseForStatement(s);case tb._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case tb._class:return e&&this.unexpected(),this.parseClass(s,!0);case tb._if:return this.parseIfStatement(s);case tb._return:return this.parseReturnStatement(s);case tb._switch:return this.parseSwitchStatement(s);case tb._throw:return this.parseThrowStatement(s);case tb._try:return this.parseTryStatement(s);case tb._const:case tb._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case tb._while:return this.parseWhileStatement(s);case tb._with:return this.parseWithStatement(s);case tb.braceL:return this.parseBlock(!0,s);case tb.semi:return this.parseEmptyStatement(s);case tb._export:case tb._import:if(this.options.ecmaVersion>10&&i===tb._import){tv.lastIndex=this.pos;var o=tv.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return!this.options.allowImportExportEverywhere&&(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===tb._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&"script"===this.options.sourceType&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,c),this.semicolon(),this.finishNode(s,"VariableDeclaration");var u=this.value,p=this.parseExpression();if(i===tb.name&&"Identifier"===p.type&&this.eat(tb.colon))return this.parseLabeledStatement(s,u,p,e);return this.parseExpressionStatement(s,p)}},tW.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(tb.semi)||this.insertSemicolon()?e.label=null:this.type!==tb.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(n||"loop"===i.kind)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},tW.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},tW.parseDoStatement=function(e){return this.next(),this.labels.push(tX),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(tb._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(tb.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},tW.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(tX),this.enterScope(0),this.expect(tb.parenL),this.type===tb.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===tb._var||this.type===tb._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var s=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),"await using"===a&&this.next(),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,u=new tJ,p=this.start,f=t>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===tb._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===tb._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start!==p||c||"Identifier"!==f.type||"async"!==f.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&o&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},tW.parseForAfterInit=function(e,t,n){return(this.type===tb._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===tb._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},tW.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,tK|(n?0:tG),!1,t)},tW.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(tb._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},tW.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(tb.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},tW.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(tb.braceL),this.labels.push(tz),this.enterScope(0);for(var t,n=!1;this.type!==tb.braceR;)if(this.type===tb._case||this.type===tb._default){var r=this.type===tb._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(tb.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},tW.parseThrowStatement=function(e){return this.next(),tT.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var tH=[];tW.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2),this.expect(tb.parenR),e},tW.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===tb._catch){var t=this.startNode();this.next(),this.eat(tb.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(tb._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},tW.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},tW.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(tX),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},tW.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},tW.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},tW.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===tb._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},tW.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},tW.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(tb.braceL),e&&this.enterScope(0);this.type!==tb.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},tW.parseFor=function(e,t){return e.init=t,this.expect(tb.semi),e.test=this.type===tb.semi?null:this.parseExpression(),this.expect(tb.semi),e.update=this.type===tb.parenR?null:this.parseExpression(),this.expect(tb.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},tW.parseForIn=function(e,t){var n=this.type===tb._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(tb.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},tW.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(tb.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===tb._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||!(this.options.ecmaVersion>=17)||this.type===tb._in||this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===tb._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(tb.comma))break}return e},tW.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var tK=1,tG=2;function tQ(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}tW.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===tb.star&&t&tG&&this.unexpected(),e.generator=this.eat(tb.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&tK&&(e.id=4&t&&this.type!==tb.name?null:this.parseIdent(),e.id&&!(t&tG)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(tM(e.async,e.generator)),t&tK||(e.id=this.type===tb.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&tK?"FunctionDeclaration":"FunctionExpression")},tW.parseFunctionParams=function(e){this.expect(tb.parenL),e.params=this.parseBindingList(tb.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},tW.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(tb.braceL);this.type!==tb.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(s&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&"PrivateIdentifier"===o.key.type&&function(e,t){var n=t.key.name,r=e[n],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[n]="true",!1):!!r||(e[n]=i,!1)}(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},tW.parseClassElement=function(e){if(this.eat(tb.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(tb.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===tb.star?a=!0:r="static"}if(n.static=a,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===tb.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(tb.star)&&(i=!0),!r&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===tb.parenL||"method"!==o||i||s){var c=!n.static&&tQ(n,"constructor");c&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":o,this.parseClassMethod(n,i,s,c&&e)}else this.parseClassField(n);return n},tW.isClassElementNameStart=function(){return this.type===tb.name||this.type===tb.privateId||this.type===tb.num||this.type===tb.string||this.type===tb.bracketL||this.type.keyword},tW.parseClassElementName=function(e){this.type===tb.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},tW.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&tQ(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},tW.parseClassField=function(e){return tQ(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tQ(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(tb.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},tW.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==tb.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},tW.parseClassId=function(e,t){this.type===tb.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},tW.parseClassSuper=function(e){e.superClass=this.eat(tb._extends)?this.parseExprSubscripts(null,!1):null},tW.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},tW.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];t_(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},tW.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==tb.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},tW.parseExport=function(e,t){if(this.next(),this.eat(tb.star))return this.parseExportAllDeclaration(e,t);if(this.eat(tb._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==tb.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},tW.parseExportDeclaration=function(e){return this.parseStatement(null)},tW.parseExportDefaultDeclaration=function(){if(this.type===tb._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|tK,!1,e)}if(this.type===tb._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},tW.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),t_(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},tW.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},tW.checkVariableExport=function(e,t){if(e)for(var n=0;n<t.length;n+=1){var r=t[n];this.checkPatternExport(e,r.id)}},tW.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},tW.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},tW.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(tb.braceL);!this.eat(tb.braceR);){if(n)n=!1;else if(this.expect(tb.comma),this.afterTrailingComma(tb.braceR))break;t.push(this.parseExportSpecifier(e))}return t},tW.parseImport=function(e){return this.next(),this.type===tb.string?(e.specifiers=tH,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===tb.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},tW.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},tW.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},tW.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},tW.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===tb.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(tb.comma)))return e;if(this.type===tb.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(tb.braceL);!this.eat(tb.braceR);){if(t)t=!1;else if(this.expect(tb.comma),this.afterTrailingComma(tb.braceR))break;e.push(this.parseImportSpecifier())}return e},tW.parseWithClause=function(){var e=[];if(!this.eat(tb._with))return e;this.expect(tb.braceL);for(var t={},n=!0;!this.eat(tb.braceR);){if(n)n=!1;else if(this.expect(tb.comma),this.afterTrailingComma(tb.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;t_(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},tW.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===tb.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(tb.colon),this.type!==tb.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},tW.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===tb.string){var e=this.parseLiteral(this.value);return tB.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},tW.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},tW.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var tZ=tV.prototype;tZ.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},tZ.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},tZ.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},tZ.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==tb.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},tZ.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case tb.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(tb.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case tb.braceL:return this.parseObj(!0)}return this.parseIdent()},tZ.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(tb.comma),t&&this.type===tb.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===tb.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===tb.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},tZ.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},tZ.parseBindingListItem=function(e){return e},tZ.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(tb.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},tZ.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(t_(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},tZ.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},tZ.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var t0=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},t1={b_stat:new t0("{",!1),b_expr:new t0("{",!0),b_tmpl:new t0("${",!1),p_stat:new t0("(",!1),p_expr:new t0("(",!0),q_tmpl:new t0("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new t0("function",!1),f_expr:new t0("function",!0),f_expr_gen:new t0("function",!0,!1,null,!0),f_gen:new t0("function",!1,!1,null,!0)},t2=tV.prototype;t2.initialContext=function(){return[t1.b_stat]},t2.curContext=function(){return this.context[this.context.length-1]},t2.braceIsBlock=function(e){var t=this.curContext();return t===t1.f_expr||t===t1.f_stat||(e===tb.colon&&(t===t1.b_stat||t===t1.b_expr)?!t.isExpr:e===tb._return||e===tb.name&&this.exprAllowed?tT.test(this.input.slice(this.lastTokEnd,this.start)):e===tb._else||e===tb.semi||e===tb.eof||e===tb.parenR||e===tb.arrow||(e===tb.braceL?t===t1.b_stat:e!==tb._var&&e!==tb._const&&e!==tb.name&&!this.exprAllowed))},t2.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},t2.updateContext=function(e){var t,n=this.type;n.keyword&&e===tb.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},t2.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},tb.parenR.updateContext=tb.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===t1.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},tb.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?t1.b_stat:t1.b_expr),this.exprAllowed=!0},tb.dollarBraceL.updateContext=function(){this.context.push(t1.b_tmpl),this.exprAllowed=!0},tb.parenL.updateContext=function(e){var t=e===tb._if||e===tb._for||e===tb._with||e===tb._while;this.context.push(t?t1.p_stat:t1.p_expr),this.exprAllowed=!0},tb.incDec.updateContext=function(){},tb._function.updateContext=tb._class.updateContext=function(e){e.beforeExpr&&e!==tb._else&&(e!==tb.semi||this.curContext()===t1.p_stat)&&!(e===tb._return&&tT.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==tb.colon&&e!==tb.braceL||this.curContext()!==t1.b_stat)?this.context.push(t1.f_expr):this.context.push(t1.f_stat),this.exprAllowed=!1},tb.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},tb.backQuote.updateContext=function(){this.curContext()===t1.q_tmpl?this.context.pop():this.context.push(t1.q_tmpl),this.exprAllowed=!1},tb.star.updateContext=function(e){if(e===tb._function){var t=this.context.length-1;this.context[t]===t1.f_expr?this.context[t]=t1.f_expr_gen:this.context[t]=t1.f_gen}this.exprAllowed=!0},tb.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==tb.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var t3=tV.prototype;t3.checkPropClash=function(e,t,n){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var o=t[r="$"+r];o?("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[r]={init:!1,get:!1,set:!1},o[s]=!0}},t3.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===tb.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(tb.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},t3.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new tJ,r=!0);var a=this.start,l=this.startLoc;(this.type===tb.parenL||this.type===tb.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,a,l)),this.type.isAssign){var u=this.startNodeAt(a,l);return u.operator=this.value,this.type===tb.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===tb.eq?this.checkLValPattern(c):this.checkLValSimple(c),u.left=c,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),c},t3.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(tb.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(tb.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},t3.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},t3.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==tb._in)&&s>r){var o=this.type===tb.logicalOR||this.type===tb.logicalAND,a=this.type===tb.coalesce;a&&(s=tb.logicalAND.binop);var l=this.value;this.next();var c=this.start,u=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,u,s,i),f=this.buildBinary(t,n,e,p,l,o||a);return(o&&this.type===tb.coalesce||a&&(this.type===tb.logicalOR||this.type===tb.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,n,r,i)}return e},t3.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},t3.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===tb.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&function e(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&e(t.expression)}(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)||"ParenthesizedExpression"===t.type&&e(t.expression)}(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==tb.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(s,o);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==tb._in&&this.unexpected();return!n&&this.eat(tb.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},t3.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},t3.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,n,r,s,o,i);if(a.optional&&(o=!0),a===e||"ArrowFunctionExpression"===a.type){if(o){var l=this.startNodeAt(t,n);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}e=a}},t3.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(tb.arrow)},t3.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},t3.parseSubscript=function(e,t,n,r,i,s,o){var a=this.options.ecmaVersion>=11,l=a&&this.eat(tb.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(tb.bracketL);if(c||l&&this.type!==tb.parenL&&this.type!==tb.backQuote||this.eat(tb.dot)){var u=this.startNodeAt(t,n);u.object=e,c?(u.property=this.parseExpression(),this.expect(tb.bracketR)):this.type===tb.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!c,a&&(u.optional=l),e=this.finishNode(u,"MemberExpression")}else if(!r&&this.eat(tb.parenL)){var p=new tJ,f=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(tb.parenR,this.options.ecmaVersion>=8,!1,p);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,a&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===tb.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},t3.parseExprAtom=function(e,t,n){this.type===tb.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case tb._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==tb.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==tb.dot&&this.type!==tb.bracketL&&this.type!==tb.parenL&&this.unexpected(),this.finishNode(r,"Super");case tb._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case tb.name:var s=this.start,o=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(tb._function))return this.overrideContext(t1.f_expr),this.parseFunction(this.startNodeAt(s,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(tb.arrow))return this.parseArrowExpression(this.startNodeAt(s,o),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===tb.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(tb.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,o),[l],!0,t)}return l;case tb.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case tb.num:case tb.string:return this.parseLiteral(this.value);case tb._null:case tb._true:case tb._false:return(r=this.startNode()).value=this.type===tb._null?null:this.type===tb._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case tb.parenL:var u=this.start,p=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),p;case tb.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(tb.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case tb.braceL:return this.overrideContext(t1.b_expr),this.parseObj(!1,e);case tb._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case tb._class:return this.parseClass(this.startNode(),!1);case tb._new:return this.parseNew();case tb.backQuote:return this.parseTemplate();case tb._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(n);return this.unexpected();default:return this.parseExprAtomDefault()}},t3.parseExprAtomDefault=function(){this.unexpected()},t3.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===tb.parenL&&!e)return this.parseDynamicImport(t);if(this.type===tb.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},t3.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(tb.parenR)?e.options=null:(this.expect(tb.comma),this.afterTrailingComma(tb.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),!this.eat(tb.parenR)&&(this.expect(tb.comma),this.afterTrailingComma(tb.parenR)||this.unexpected())));else if(!this.eat(tb.parenR)){var t=this.start;this.eat(tb.comma)&&this.eat(tb.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},t3.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},t3.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},t3.parseParenExpression=function(){this.expect(tb.parenL);var e=this.parseExpression();return this.expect(tb.parenR),e},t3.shouldParseArrow=function(e){return!this.canInsertSemicolon()},t3.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,l=this.startLoc,c=[],u=!0,p=!1,f=new tJ,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==tb.parenR;){if(u?u=!1:this.expect(tb.comma),s&&this.afterTrailingComma(tb.parenR,!0)){p=!0;break}if(this.type===tb.ellipsis){o=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===tb.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(tb.parenR),e&&this.shouldParseArrow(c)&&this.eat(tb.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,c,t);(!c.length||p)&&this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(f,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((n=this.startNodeAt(a,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",h,g)):n=c[0]}else n=this.parseParenExpression();if(!this.options.preserveParens)return n;var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")},t3.parseParenItem=function(e){return e},t3.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var t4=[];t3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===tb.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(tb.parenL)?e.arguments=this.parseExprList(tb.parenR,this.options.ecmaVersion>=8,!1):e.arguments=t4,this.finishNode(e,"NewExpression")},t3.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===tb.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===tb.backQuote,this.finishNode(n,"TemplateElement")},t3.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===tb.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(tb.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(tb.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},t3.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===tb.name||this.type===tb.num||this.type===tb.string||this.type===tb.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===tb.star)&&!tT.test(this.input.slice(this.lastTokEnd,this.start))},t3.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(tb.braceR);){if(r)r=!1;else if(this.expect(tb.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(tb.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},t3.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(tb.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===tb.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===tb.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(tb.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(tb.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},t3.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=+("get"!==e.kind);if(e.value.params.length!==n){var r=e.value.start;"get"===e.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},t3.parsePropertyValue=function(e,t,n,r,i,s,o,a){(n||r)&&this.type===tb.colon&&this.unexpected(),this.eat(tb.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===tb.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===tb.comma||this.type===tb.braceR||this.type===tb.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===tb.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},t3.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(tb.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(tb.bracketR),e.key;else e.computed=!1;return e.key=this.type===tb.num||this.type===tb.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},t3.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},t3.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|tM(t,r.generator)|128*!!n),this.expect(tb.parenL),r.params=this.parseBindingList(tb.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},t3.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|tM(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},t3.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==tb.braceL,s=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||a)&&(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},t3.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},t3.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},t3.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(tb.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===tb.comma?o=null:this.type===tb.ellipsis?(o=this.parseSpread(r),r&&this.type===tb.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},t3.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==r||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,n).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},t3.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),!e&&(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},t3.parseIdentNode=function(){var e=this.startNode();return this.type===tb.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=tb.name):this.unexpected(),e},t3.parsePrivateIdent=function(){var e=this.startNode();return this.type===tb.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},t3.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===tb.semi||this.canInsertSemicolon()||this.type!==tb.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(tb.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},t3.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var t5=tV.prototype;t5.raise=function(e,t){var n=tj(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},t5.raiseRecoverable=t5.raise,t5.curPosition=function(){if(this.options.locations)return new tL(this.curLine,this.pos-this.lineStart)};var t6=tV.prototype,t9=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};t6.enterScope=function(e){this.scopeStack.push(new t9(e))},t6.exitScope=function(){this.scopeStack.pop()},t6.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},t6.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},t6.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},t6.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t6.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},t6.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var t8=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new tN(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},t7=tV.prototype;function ne(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}t7.startNode=function(){return new t8(this,this.start,this.startLoc)},t7.startNodeAt=function(e,t){return new t8(this,e,t)},t7.finishNode=function(e,t){return ne.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},t7.finishNodeAt=function(e,t,n,r){return ne.call(this,e,t,n,r)},t7.copyNode=function(e){var t=new t8(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};for(var nt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI 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 Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation 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 Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark 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",nn=nt+" Extended_Pictographic",nr=nn+" EBase EComp EMod EPres ExtPict",ni={9:nt,10:nn,11:nn,12:nr,13:nr,14:nr},ns={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},no="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",na="Adlam Adlm 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 Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang 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 Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd 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_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 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",nl=na+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",nc=nl+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nu=nc+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",np=nu+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",nf={9:na,10:nl,11:nc,12:nu,13:np,14:np+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},nd={},nm=0,nh=[9,10,11,12,13,14];nm<nh.length;nm+=1)!function(e){var t=nd[e]={binary:tP(ni[e]+" "+no),binaryOfStrings:tP(ns[e]),nonBinary:{General_Category:tP(no),Script:tP(nf[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}(nh[nm]);var ng=tV.prototype,ny=function(e,t){this.parent=e,this.base=t||this};ny.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},ny.prototype.sibling=function(){return new ny(this.parent,this.base)};var nx=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nd[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function nb(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function nT(e){return e>=65&&e<=90||e>=97&&e<=122}function nk(e){return nT(e)||95===e}function nS(e){return e>=48&&e<=57}function nE(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function nw(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function nv(e){return e>=48&&e<=55}nx.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},nx.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},nx.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return -1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-0x35fdc00:i},nx.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},nx.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},nx.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},nx.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},nx.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},nx.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0;r<e.length;r+=1){var i=e[r],s=this.at(n,t);if(-1===s||s!==i)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},ng.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,s=0;s<n.length;s++){var o=n.charAt(s);-1===t.indexOf(o)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(o,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===o&&(r=!0),"v"===o&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},ng.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},ng.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},ng.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new ny(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},ng.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ng.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},ng.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},ng.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ng.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ng.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},ng.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},ng.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ng.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(e);n||o||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var a=0;a<o.length;a++){var l=o.charAt(a);(o.indexOf(l,a+1)>-1||n.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},ng.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},ng.regexp_eatModifiers=function(e){for(var t,n="",r=0;-1!==(r=e.current())&&(105===(t=r)||109===t||115===t);)n+=tI(r),e.advance();return n},ng.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},ng.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ng.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!nb(t)&&(e.lastIntValue=t,e.advance(),!0)},ng.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!nb(n);)e.advance();return e.pos!==t},ng.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},ng.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0;r<n.length;r+=1)n[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},ng.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},ng.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tI(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tI(e.lastIntValue);return!0}return!1},ng.regexp_eatRegExpIdentifierStart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),tp(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},ng.regexp_eatRegExpIdentifierPart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),tf(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},ng.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},ng.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},ng.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},ng.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},ng.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ng.regexp_eatZero=function(e){return!(48!==e.current()||nS(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},ng.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},ng.regexp_eatControlLetter=function(e){var t=e.current();return!!nT(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ng.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},ng.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},ng.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},ng.regexp_eatCharacterClassEscape=function(e){var t,n,r=e.current();if(100===(t=r)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===r)||112===r)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},ng.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},ng.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){t_(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ng.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},ng.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";nk(t=e.current());)e.lastStringValue+=tI(t),e.advance();return""!==e.lastStringValue},ng.regexp_eatUnicodePropertyValue=function(e){var t,n=0;for(e.lastStringValue="";nk(t=n=e.current())||nS(t);)e.lastStringValue+=tI(n),e.advance();return""!==e.lastStringValue},ng.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ng.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},ng.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},ng.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(-1===t||-1===n)&&e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},ng.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||nv(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},ng.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},ng.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(n=1);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},ng.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return -1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},ng.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},ng.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},ng.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},ng.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},ng.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},ng.regexp_eatClassSetCharacter=function(e){var t,n,r=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1));var i=e.current();return!(i<0||i===e.lookahead()&&(33===(t=i)||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t)||40===(n=i)||41===n||45===n||47===n||n>=91&&n<=93||n>=123&&n<=125)&&(e.advance(),e.lastIntValue=i,!0)},ng.regexp_eatClassSetReservedPunctuator=function(e){var t,n=e.current();return!!(33===(t=n)||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=n,e.advance(),!0)},ng.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!nS(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},ng.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},ng.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;nS(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ng.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;nE(n=e.current());)e.lastIntValue=16*e.lastIntValue+nw(n),e.advance();return e.pos!==t},ng.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},ng.regexp_eatOctalDigit=function(e){var t=e.current();return nv(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ng.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!nE(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+nw(i),e.advance()}return!0};var nA=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new tN(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},nC=tV.prototype;function nD(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}nC.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new nA(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},nC.getToken=function(){return this.next(),new nA(this)},"undefined"!=typeof Symbol&&(nC[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===tb.eof,value:t}}}}),nC.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(tb.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},nC.readToken=function(e){return tp(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},nC.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-0x35fdc00},nC.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=tE(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},nC.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!tS(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},nC.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&tw.test(String.fromCharCode(e)))++this.pos;else break e}}},nC.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},nC.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(tb.ellipsis)):(++this.pos,this.finishToken(tb.dot))},nC.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(tb.assign,2):this.finishOp(tb.slash,1)},nC.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?tb.star:tb.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=tb.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(tb.assign,n+1):this.finishOp(r,n)},nC.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tb.assign,3):this.finishOp(124===e?tb.logicalOR:tb.logicalAND,2);return 61===t?this.finishOp(tb.assign,2):this.finishOp(124===e?tb.bitwiseOR:tb.bitwiseAND,1)},nC.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(tb.assign,2):this.finishOp(tb.bitwiseXOR,1)},nC.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||tT.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(tb.incDec,2):61===t?this.finishOp(tb.assign,2):this.finishOp(tb.plusMin,1)},nC.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n))?this.finishOp(tb.assign,n+1):this.finishOp(tb.bitShift,n):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(tb.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},nC.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(tb.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(tb.arrow)):this.finishOp(61===e?tb.eq:tb.prefix,1)},nC.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(tb.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tb.assign,3):this.finishOp(tb.coalesce,2)}return this.finishOp(tb.question,1)},nC.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,tp(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(tb.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tI(t)+"'")},nC.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(tb.parenL);case 41:return++this.pos,this.finishToken(tb.parenR);case 59:return++this.pos,this.finishToken(tb.semi);case 44:return++this.pos,this.finishToken(tb.comma);case 91:return++this.pos,this.finishToken(tb.bracketL);case 93:return++this.pos,this.finishToken(tb.bracketR);case 123:return++this.pos,this.finishToken(tb.braceL);case 125:return++this.pos,this.finishToken(tb.braceR);case 58:return++this.pos,this.finishToken(tb.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(tb.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(tb.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tI(e)+"'")},nC.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},nC.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(tT.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new nx(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(i,o)}catch(e){}return this.finishToken(tb.regexp,{pattern:i,flags:o,value:l})},nC.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,o=0,a=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var u=this.input.charCodeAt(this.pos),p=void 0;if(r&&95===u){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=u;continue}if((p=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;a=u,o=o*e+p}return(r&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t)?null:o},nC.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=nD(this.input.slice(t,this.pos)),++this.pos):tp(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tb.num,n)},nC.readNumber=function(e){var t,n=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(n,"Invalid number");var r=this.pos-n>=2&&48===this.input.charCodeAt(n);r&&this.strict&&this.raise(n,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var s=nD(this.input.slice(n,this.pos));return++this.pos,tp(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tb.num,s)}r&&/[89]/.test(this.input.slice(n,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(n,"Invalid number")),tp(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=(t=this.input.slice(n,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(tb.num,o)},nC.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},nC.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(tS(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(tb.string,t)};var n_={};nC.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===n_)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},nC.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw n_;this.raise(e,t)},nC.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===tb.template||this.type===tb.invalidTemplate))if(36===n)return this.pos+=2,this.finishToken(tb.dollarBraceL);else return++this.pos,this.finishToken(tb.backQuote);return e+=this.input.slice(t,this.pos),this.finishToken(tb.template,e)}if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(tS(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},nC.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(tb.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},nC.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return tI(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}if(tS(t))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(t)}},nC.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},nC.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(tf(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?tp:tf)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=tI(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},nC.readWord=function(){var e=this.readWord1(),t=tb.name;return this.keywords.test(e)&&(t=ty[e]),this.finishToken(t,e)};var nO="8.15.0";tV.acorn={Parser:tV,version:nO,defaultOptions:tR,Position:tL,SourceLocation:tN,getLineInfo:tj,Node:t8,TokenType:td,tokTypes:tb,keywordTypes:ty,TokContext:t0,tokContexts:t1,isIdentifierChar:tf,isIdentifierStart:tp,Token:nA,isNewLine:tS,lineBreak:tT,lineBreakG:tk,nonASCIIwhitespace:tw};var nF=Object.freeze({__proto__:null,Node:t8,Parser:tV,Position:tL,SourceLocation:tN,TokContext:t0,Token:nA,TokenType:td,defaultOptions:tR,getLineInfo:tj,isIdentifierChar:tf,isIdentifierStart:tp,isNewLine:tS,keywordTypes:ty,lineBreak:tT,lineBreakG:tk,nonASCIIwhitespace:tw,parse:function(e,t){return tV.parse(e,t)},parseExpressionAt:function(e,t,n){return tV.parseExpressionAt(e,t,n)},tokContexts:t1,tokTypes:tb,tokenizer:function(e,t){return tV.tokenizer(e,t)},version:nO}),nP={exports:{}},nI=G.g(nF),nB=(m||(m=1,!function(e){let t=d?f:(d=1,f={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=i.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,s=e.TokenType,o=new r("<tag",!1),a=new r("</tag",!1),l=new r("<tag>...</tag>",!0,!0),c={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};c.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(o),this.exprAllowed=!1},c.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===a?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:{tc_oTag:o,tc_cTag:a,tc_expr:l},tokTypes:c},i.set(e,t)}return t}function o(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?o(e.object)+"."+o(e.property):void 0:e}e.exports=function(e){return e=e||{},function(i){return function(e,i){let a=i.acorn||nI,l=s(a),c=a.tokTypes,u=l.tokTypes,p=a.tokContexts,f=l.tokContexts.tc_oTag,d=l.tokContexts.tc_cTag,m=l.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,y=a.isIdentifierChar;return class extends i{static get acornJsx(){return l}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:if(this.pos===this.start){if(60===n&&this.exprAllowed)return++this.pos,this.finishToken(u.jsxTagStart);return this.getTokenFromCode(n)}return e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e);case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===n?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(c.string,t)}jsx_readEntity(){let e="",i=0,s,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");let a=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(";"===(o=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),n.test(e)&&(s=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),r.test(e)&&(s=String.fromCharCode(parseInt(e,10)))):s=t[e];break}e+=o}return s||(this.pos=a,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(y(e)||45===e);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(c.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return"";let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type!==c.dot||"JSXNamespacedName"!==r.type||e.allowNamespacedObjects||this.unexpected();this.eat(c.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,"JSXMemberExpression")}return r}jsx_parseAttributeValue(){switch(this.type){case c.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case u.jsxTagStart:case c.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===c.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(c.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(c.braceL)?(this.expect(c.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(c.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(c.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==c.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(c.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),s=null;if(!i.selfClosing){t:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(c.slash)){s=this.jsx_parseClosingElementAt(e,t);break t}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case c.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}o(s.name)!==o(i.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+o(i.name)+">")}let a=i.name?"Element":"Fragment";return n["opening"+a]=i,n["closing"+a]=s,n.children=r,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+a)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===d){if(g(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(u.jsxTagEnd);if((34===e||39===e)&&t==f)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==f?this.context.push(p.b_expr):t==m?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==u.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(d),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},i)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(nI).tokTypes},configurable:!0,enumerable:!0})}(nP)),nP.exports),nL=G.a(nB);const nN="Keyword",nj="JSXText";function nR(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}nR.prototype={constructor:nR,translate(e,t){let n=e.type,r=this._acornTokTypes;if(n===r.name)e.type="Identifier","static"===e.value&&(e.type=nN),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=nN);else if(n===r.privateId)e.type="PrivateIdentifier";else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||n.binop&&!n.keyword||n.isAssign)e.type="Punctuator",e.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)e.type="JSXIdentifier";else if("jsxText"===n.label||n===r.jsxAttrValueToken)e.type=nj;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type="Boolean":"null"===n.keyword?e.type="Null":e.type=nN;else if(n===r.num)e.type="Numeric",e.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=nj):e.type="String",e.value=this._code.slice(e.start,e.end);else if(n===r.regexp){e.type="RegularExpression";let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,s=()=>{r.push(function(e,t){let n=e[0],r=e.at(-1),i={type:"Template",value:t.slice(n.start,r.end)};return n.loc&&(i.loc={start:n.loc.start,end:r.loc.end}),n.range&&(i.start=n.range[0],i.end=r.range[1],i.range=[i.start,i.end]),i}(this._tokens,this._code)),this._tokens=[]};if(e.type===n.eof){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t));return}if(e.type===n.backQuote){this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),i.length>1&&s();return}if(e.type===n.dollarBraceL){i.push(e),s();return}if(e.type===n.braceR){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===n.template||e.type===n.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(this.translate(e,t))}};const nq=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function nM(){return nq.at(-1)}const nV=Symbol("espree's internal state"),n$=Symbol("espree's esprimaFinishNode");var nU=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){("object"!=typeof e||null===e)&&(e={}),"string"==typeof n||n instanceof String||(n=String(n));let r=e.sourceType,i=function(e){let t=function(e=5){let t="latest"===e?nM():e;if("number"!=typeof t)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!nq.includes(t))throw Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;if("commonjs"===e)return"script";throw Error("Invalid sourceType.")}(e.sourceType),r=!0===e.range,i=!0===e.loc;if(3!==t&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw Error("`allowReserved`, when present, must be `true` or `false`");let s=3===t&&(e.allowReserved||"never"),o=e.ecmaFeatures||{},a="commonjs"===e.sourceType||!!o.globalReturn;if("module"===n&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:i,allowReserved:s,allowReturnOutsideFunction:a})}(e),s=i.ecmaFeatures||{},o=!0===i.tokens?new nR(t,n):null,a={originalSourceType:r||i.sourceType,tokens:o?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===s.impliedStrict&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){o&&o.onToken(e,a),e.type!==t.eof&&(a.lastToken=e)},onComment(e,t,r,i,s,o){if(a.comments){let l=function(e,t,n,r,i,s,o){let a={type:e?"Block":"#!"===o.slice(n,n+2)?"Hashbang":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof i&&(a.loc={start:i,end:s}),a}(e,t,r,i,s,o,n);a.comments.push(l)}}},n),this[nV]=a}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[nV],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){let t=super.finishNode(...e);return this[n$](t)}finishNodeAt(...e){let t=super.finishNodeAt(...e);return this[n$](t)}parse(){let e=this[nV],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){let[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[nV].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[nV].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){let r=e.acorn.getLineInfo(this.input,t),i=SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let n=super.jsx_readString(e);return this.type===t.string&&(this[nV].jsxAttrValueToken=!0),n}[n$](e){return"TemplateElement"===e.type&&this[nV].templateElements.push(e),e.type.includes("Function")&&!e.generator&&(e.generator=!1),e}}};const nY={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=tV.extend(nU())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=tV.extend(nL(),nU())),this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function nJ(e,t){let n=nY.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}let nW,nX={};for(nW in"function"==typeof Object.create&&(nX=Object.create(null)),te)Object.hasOwn(te,nW)&&(nX[nW]=nW);"function"==typeof Object.freeze&&Object.freeze(nX);const nz=nM();var nH={},nK=h?nH:(h=1,!function e(t){var n,r,i,s,o,a;function l(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&("object"==typeof(n=e[t])&&null!==n?r[t]=l(n):r[t]=n);return r}function c(e,t){this.parent=e,this.key=t}function u(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function p(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function h(e,t){return new p().traverse(e,t)}return n={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"},i={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"]},r={Break:s={},Skip:o={},Remove:a={}},c.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,n,r,i;function s(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(e=2,i=[],t=this.__leavelist.length;e<t;++e)s(i,this.__leavelist[e].path);return s(i,this.__current.path),i},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,n;for(e=1,n=[],t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(o)},p.prototype.break=function(){this.notify(s)},p.prototype.remove=function(){this.notify(a)},p.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=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var n,r,i,a,l,c,p,h,g,y,x,b;for(this.__initialize(e,t),b={},n=this.__worklist,r=this.__leavelist,n.push(new u(e,null,null,null)),r.push(new u(null,null,null,null));n.length;){if((i=n.pop())===b){if(i=r.pop(),c=this.__execute(t.leave,i),this.__state===s||c===s)return;continue}if(i.node){if(c=this.__execute(t.enter,i),this.__state===s||c===s)return;if(n.push(b),r.push(i),this.__state===o||c===o)continue;if(l=(a=i.node).type||i.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(a);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=a[p=y[h]]){if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(!(!x[g]||m(r,x[g]))){if(d(l,y[h]))i=new u(x[g],[p,g],"Property",null);else{if(!f(x[g]))continue;i=new u(x[g],[p,g],null,null)}n.push(i)}}else if(f(x)){if(m(r,x))continue;n.push(new u(x,p,null,null))}}}}},p.prototype.replace=function(e,t){var n,r,i,l,p,m,h,g,y,x,b,T,k;function S(e){var t,r,i,s;if(e.ref.remove()){for(r=e.ref.key,s=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===s){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),b={},n=this.__worklist,r=this.__leavelist,T={root:e},m=new u(e,null,null,new c(T,"root")),n.push(m),r.push(m);n.length;){if((m=n.pop())===b){if(m=r.pop(),void 0!==(p=this.__execute(t.leave,m))&&p!==s&&p!==o&&p!==a&&m.ref.replace(p),(this.__state===a||p===a)&&S(m),this.__state===s||p===s)return T.root;continue}if(void 0!==(p=this.__execute(t.enter,m))&&p!==s&&p!==o&&p!==a&&(m.ref.replace(p),m.node=p),(this.__state===a||p===a)&&(S(m),m.node=null),this.__state===s||p===s)break;if(i=m.node){if(n.push(b),r.push(m),this.__state!==o&&p!==o){if(l=i.type||m.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(i);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=i[k=y[h]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(d(l,y[h]))m=new u(x[g],[k,g],"Property",new c(x,g));else{if(!f(x[g]))continue;m=new u(x[g],[k,g],null,new c(x,g))}n.push(m)}}else f(x)&&n.push(new u(x,k,null,new c(i,k)))}}}return T.root},t.Syntax=n,t.traverse=h,t.replace=function(e,t){return new p().replace(e,t)},t.attachComments=function(e,t,n){var i,s,o,a,c=[];if(!e.range)throw Error("attachComments needs range information");if(!n.length){if(t.length){for(o=0,s=t.length;o<s;o+=1)(i=l(t[o])).extendedRange=[0,e.range[0]],c.push(i);e.leadingComments=c}return e}for(o=0,s=t.length;o<s;o+=1)c.push(function(e,t){var n;return n=function(e,t){var n,r,i,s;for(r=e.length,i=0;r;)t(e[s=i+(n=r>>>1)])?r=n:(i=s+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}(l(t[o]),n));return a=0,h(e,{enter:function(e){for(var t;a<c.length&&!((t=c[a]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),c.splice(a,1)):a+=1;return a===c.length?r.Break:c[a].extendedRange[0]>e.range[1]?r.Skip:void 0}}),a=0,h(e,{leave:function(e){for(var t;a<c.length&&(t=c[a],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),c.splice(a,1)):a+=1;return a===c.length?r.Break:c[a].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(nH),nH);const nG=new Set;function nQ(e,t,n=""){var r;let i=`You are using deprecated ${e}${n?` in "${n}"`:""}`;return t&&(i+=`, please use ${t} instead.`),r=i,void(!nG.has(r)&&(nG.add(r),console.warn(`[@stylistic/eslint-plugin]: ${r}`)))}var nZ=eY(e2());const n0=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,n1=new Set(["\r\n","\r","\n","\u2028","\u2029"]),n2=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),n3=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,n4=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,n5=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","||=","&&=","??="],n6=["abstract","arguments","as","async","await","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","from","function","get","goto","if","implements","import","in","instanceof","int","interface","let","long","native","new","null","of","package","private","protected","public","return","set","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","type","typeof","using","var","void","volatile","while","with","yield"].concat(["accessor","satisfies"]);function n9(){return RegExp(nZ.LINEBREAK_MATCHER.source,"gu")}const n8=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;function n7(e){for(let t=e;t;t=t.parent)if(n8.test(t.type))return t;return null}function re(e){return"Literal"===e.type&&null===e.value&&!("regex"in e)&&!("bigint"in e)}function rt(e){switch(e.type){case"Literal":if(null!==e.value||re(e))return String(e.value);if(rh(e))return`/${e.regex.pattern}/${e.regex.flags}`;if("bigint"in e&&e.bigint)return e.bigint;break;case"TemplateLiteral":if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}return null}function rn(e){let t;if(e)switch(e.type){case"ChainExpression":return rn(e.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"ImportAttribute":t=e.key;break;case"MemberExpression":t=e.property}return t?"Identifier"!==t.type||"computed"in e&&e.computed?rt(t):t.name:null}function rr(e){return e&&"ChainExpression"===e.type?e.expression:e}function ri(e,t){let n=e.getTokenBefore(t),r=e.getTokenAfter(t);return!!n&&!!r&&(0,nZ.isOpeningParenToken)(n)&&n.range[1]<=t.range[0]&&(0,nZ.isClosingParenToken)(r)&&r.range[0]>=t.range[1]}function rs(e){return"="===e.value&&"Punctuator"===e.type}function ro(e){return"?"===e.value&&"Punctuator"===e.type}function ra(e){return e?.type==="Keyword"}function rl(e){return"Shebang"===e.type||"Hashbang"===e.type}function rc(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function ru(e){return"LogicalExpression"===e.type&&"??"===e.operator}function rp(e,t){return rc(e)&&ru(t)||ru(e)&&rc(t)}function rf(e,t){return e.test?t.getTokenAfter(e.test,e=>(0,nZ.isColonToken)(e)):t.getFirstToken(e,1)}function rd(e){if("ExpressionStatement"!==e.type)return!1;let t=e.parent;return"Program"===t.type||"BlockStatement"===t.type&&(0,nZ.isFunction)(t.parent)}function rm(e){return"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type}function rh(e){return"Literal"===e.type&&"regex"in e}function rg(e,t){return e[0]===t&&e[e.length-1]===t}function ry(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":case"TSConditionalType":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"TSUnionType":return 6;case"TSIntersectionType":return 8;case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;case"TSImportType":case"TSArrayType":return 20;default:if(e.type in te)return 20;return -1}}function rx(e){return"Literal"===e.type&&"number"==typeof e.value&&n3.test(e.raw)}function rb(e){return"Numeric"===e.type&&n3.test(e.value)}function rT(e,{column:t,line:n}){return t<e.lines[n-1].length?{column:t+1,line:n}:n<e.lines.length?{column:0,line:n+1}:null}function rk(e){return"Literal"===e.type&&("number"==typeof e.value||!!("bigint"in e&&e.bigint))}function rS(e,t){let n,r,i={comment:!0,ecmaVersion:nz,range:!0};if("string"==typeof e){let t;try{t=nJ(e,i)}catch{return!1}let r=t.comments;if(n=t[t.length-1],r.length){let e=r[r.length-1];(!n||e.range[0]>n.range[0])&&(n=e)}}else n=e;if(rl(n))return!1;if("string"==typeof t){let e;try{e=nJ(t,i)}catch{return!1}let n=e.comments;if(r=e[0],n.length){let e=n[0];(!r||e.range[0]<r.range[0])&&(r=e)}}else r=t;if("Punctuator"===n.type||"Punctuator"===r.type){if("Punctuator"===n.type&&"Punctuator"===r.type){let e=new Set(["+","++"]),t=new Set(["-","--"]);return!(e.has(n.value)&&e.has(r.value)||t.has(n.value)&&t.has(r.value))}return"Punctuator"!==n.type||"/"!==n.value||!["Block","Line","RegularExpression"].includes(r.type)}return!!("String"===n.type||"String"===r.type||"Template"===n.type||"Template"===r.type||"Numeric"!==n.type&&"Numeric"===r.type&&r.value.startsWith("."))||"Block"===n.type||"Block"===r.type||"Line"===r.type||"PrivateIdentifier"===r.type}function rE(e){return n4.test(e)}const rw=/^\s*$/u;function rv(e){return"string"==typeof e&&rw.test(e)}function rA(e,t){let n=e.sourceCode,r=t,i=null;do i="JSXText"===(r=n.getTokenBefore(r)).type?r.value.split("\n"):null;while("JSXText"===r.type&&i&&rv(i.at(-1)));return r}function rC(e,t){let n=rA(e,t);return!!n&&!(0,nZ.isTokenOnSameLine)(n,t)}function rD(e){let t="attributes"in e&&e.attributes;return t&&0!==t.length?t[t.length-1]:e.name}function r_(e){return e.loc.start.line===e.loc.end.line}function rO(e,t,n){return null!==e.getFirstTokenBetween(t,n,{includeComments:!0,filter:nZ.isCommentToken})}function rF(e,t,n){return e.getTokensBetween(t,n,{includeComments:!0,filter:nZ.isCommentToken})}var rP={},rI={ASSIGNMENT_OPERATOR:()=>n5,AST_NODE_TYPES:()=>e7.AST_NODE_TYPES,AST_TOKEN_TYPES:()=>e7.AST_TOKEN_TYPES,COMMENTS_IGNORE_PATTERN:()=>n0,DECIMAL_INTEGER_PATTERN:()=>n3,KEYWORDS:()=>n6,LINEBREAKS:()=>n1,OCTAL_OR_NON_OCTAL_DECIMAL_ESCAPE_PATTERN:()=>n4,STATEMENT_LIST_PARENTS:()=>n2,WHITE_SPACES_PATTERN:()=>rw,canTokensBeAdjacent:()=>rS,createGlobalLinebreakMatcher:()=>n9,getCommentsBetween:()=>rF,getFirstNodeInLine:()=>rA,getNextLocation:()=>rT,getPrecedence:()=>ry,getStaticPropertyName:()=>rn,getStaticStringValue:()=>rt,getSwitchCaseColonToken:()=>rf,getTokenBeforeClosingBracket:()=>rD,getUpperFunction:()=>n7,hasCommentsBetween:()=>rO,hasOctalOrNonOctalDecimalEscapeSequence:()=>rE,isCoalesceExpression:()=>ru,isDecimalInteger:()=>rx,isDecimalIntegerNumericToken:()=>rb,isEqToken:()=>rs,isHashbangComment:()=>rl,isKeywordToken:()=>ra,isLogicalExpression:()=>rc,isMixedLogicalAndCoalesceExpressions:()=>rp,isNodeFirstInLine:()=>rC,isNullLiteral:()=>re,isNumericLiteral:()=>rk,isParenthesised:()=>ri,isQuestionToken:()=>ro,isRegExpLiteral:()=>rh,isSingleLine:()=>r_,isStringLiteral:()=>rm,isSurroundedBy:()=>rg,isTopLevelExpressionStatement:()=>rd,isWhiteSpaces:()=>rv,skipChainExpression:()=>rr};for(var rB in rI)ej(rP,rB,{get:rI[rB],enumerable:!0});function rL(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}function rN(e={},t={}){return Array.from(new Set(Object.keys(e).concat(Object.keys(t)))).reduce((n,r)=>{let i=r in e,s=r in t,o=e[r],a=t[r];return i&&s?rL(o)&&rL(a)?n[r]=rN(o,a):n[r]=a:i?n[r]=o:n[r]=a,n},{})}function rj({name:e,create:t,defaultOptions:n=[],meta:r}){return{create:i=>{if(r.deprecated){let t;if("boolean"!=typeof r.deprecated){let{replacedBy:e}=r.deprecated;e&&(t=e.map(({rule:e,plugin:t})=>`"${e?.name}"${t?.name?` in "${t.name}"`:""}`).join(", "))}nQ(`rule("${e}")`,t)}let s=Array.from({length:Math.max(i.options.length,n.length)},(e,t)=>rL(i.options[t])&&rL(n[t])?rN(n[t],i.options[t]):i.options[t]??n[t]);return t(i,s)},defaultOptions:n,meta:{...r,docs:{...r.docs,url:`https://eslint.style/rules/${e}`}}}}eU(rP,eY(e2()),"default");const rR=/^[a-z]/;function rq(e){let t=r$(e);return rR.test(t)}function rM(e){return e&&["JSXElement","JSXFragment"].includes(e.type)}function rV(e){if(!e.type||"JSXAttribute"!==e.type)throw Error("The prop must be a JSXAttribute collected by the AST parser.");return"JSXNamespacedName"===e.name.type?`${e.name.namespace.name}:${e.name.name.name}`:e.name.name}function r$(e){if("JSXOpeningFragment"===e.type)return"<>";let{name:t}=e;if(!t)throw Error("The argument provided is not a JSXElement node.");if("JSXMemberExpression"===t.type){let{object:e,property:n}=t;return function e(t,n){return"JSXMemberExpression"===t.type?`${e(t.object,t.property)}.${n.name}`:`${t.name}.${n.name}`}(e,n)}return"JSXNamespacedName"===t.type?`${t.namespace.name}:${t.name.name}`:e.name.name}function rU(t){return/^[\u0020-\u007F]*$/u.test(t)?t.length:[...(e??=new Intl.Segmenter).segment(t)].length}var rY=class{retainedRange;constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let t=n7(e);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let t=this.sourceCode.getTokenBefore(e)||e,n=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],n.range[1]])}replaceTextRange(e,t){let n;return n=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(n,this.sourceCode.text.slice(n[0],e[0])+t+this.sourceCode.text.slice(e[1],n[1]))}remove(e){return this.replaceTextRange(e.range,"")}},rJ=rj({name:"array-bracket-newline",meta:{type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){let t=e.sourceCode;function n(n){let r=n.elements,i=function(e){let t,n,r,i=(t=!1,n=!1,r=0,e?"consistent"===e?(t=!0,r=1/0):"always"===e||"string"!=typeof e&&0===e.minItems?r=0:"never"===e?r=1/0:(n=!!e.multiline,r=e.minItems||1/0):(t=!1,n=!0,r=1/0),{consistent:t,multiline:n,minItems:r});return{ArrayExpression:i,ArrayPattern:i}}(e.options[0])[n.type],s=t.getFirstToken(n),o=t.getLastToken(n),a=t.getTokenAfter(s,{includeComments:!0}),l=t.getTokenBefore(o,{includeComments:!0}),c=t.getTokenAfter(s),u=t.getTokenBefore(o);r.length>=i.minItems||i.multiline&&r.length>0&&!(0,rP.isTokenOnSameLine)(l,a)||0===r.length&&"Block"===a.type&&!(0,rP.isTokenOnSameLine)(l,a)&&a===l||i.consistent&&!(0,rP.isTokenOnSameLine)(s,c)?((0,rP.isTokenOnSameLine)(s,c)&&e.report({node:n,loc:s.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(s,"\n")}),(0,rP.isTokenOnSameLine)(u,o)&&e.report({node:n,loc:o.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(o,"\n")})):((0,rP.isTokenOnSameLine)(s,c)||e.report({node:n,loc:s.loc,messageId:"unexpectedOpeningLinebreak",fix(e){let n=t.getTokenAfter(s,{includeComments:!0});return!n||(0,rP.isCommentToken)(n)?null:e.removeRange([s.range[1],n.range[0]])}}),(0,rP.isTokenOnSameLine)(u,o)||e.report({node:n,loc:o.loc,messageId:"unexpectedClosingLinebreak",fix(e){let n=t.getTokenBefore(o,{includeComments:!0});return!n||(0,rP.isCommentToken)(n)?null:e.removeRange([n.range[1],o.range[0]])}}))}return{ArrayPattern:n,ArrayExpression:n}}}),rW=rj({name:"array-bracket-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside array brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){let t="always"===e.options[0],n=e.sourceCode;function r(n){return!!e.options[1]&&!t===e.options[1][n]}let i={spaced:t,singleElementException:r("singleValue"),objectsInArraysException:r("objectsInArrays"),arraysInArraysException:r("arraysInArrays")};function s(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function o(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function a(t){if(i.spaced&&0===t.elements.length)return;let r=n.getFirstToken(t),a=n.getFirstToken(t,1),l="ArrayPattern"===t.type&&t.typeAnnotation?n.getTokenBefore(t.typeAnnotation):n.getLastToken(t),c=n.getTokenBefore(l),u=t.elements[0],p=t.elements[t.elements.length-1],f=u&&i.objectsInArraysException&&s(u)||u&&i.arraysInArraysException&&o(u)||i.singleElementException&&1===t.elements.length?!i.spaced:i.spaced,d=p&&i.objectsInArraysException&&s(p)||p&&i.arraysInArraysException&&o(p)||i.singleElementException&&1===t.elements.length?!i.spaced:i.spaced;(0,rP.isTokenOnSameLine)(r,a)&&(f&&!n.isSpaceBetween(r,a)&&e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")}),!f&&n.isSpaceBetween(r,a)&&function(t,r){let i=n.getTokenAfter(r);e.report({node:t,loc:{start:r.loc.end,end:i.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:r.value},fix:e=>e.removeRange([r.range[1],i.range[0]])})}(t,r)),r!==c&&(0,rP.isTokenOnSameLine)(c,l)&&(d&&!n.isSpaceBetween(c,l)&&e.report({node:t,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}),!d&&n.isSpaceBetween(c,l)&&function(t,r){let i=n.getTokenBefore(r);e.report({node:t,loc:{start:i.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:r.value},fix:e=>e.removeRange([i.range[1],r.range[0]])})}(t,l))}return{ArrayPattern:a,ArrayExpression:a}}}),rX=rj({name:"array-element-newline",meta:{type:"layout",docs:{description:"Enforce line breaks after each array element"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{consistent:{type:"boolean"},multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){let t=e.sourceCode;function n(e){let t,n=!1,r=!1,i=e||"always";return"always"===i||"object"==typeof i&&0===i.minItems?t=0:"never"===i?t=1/0:"consistent"===i?(n=!0,t=1/0):(n=!!i.consistent,r=!!i.multiline,t=i.minItems||1/0),{consistent:n,multiline:r,minItems:t}}function r(r){let i=r.elements,s=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,r;return e.ArrayExpression&&(t=n(e.ArrayExpression)),e.ArrayPattern&&(r=n(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:r}}let t=n(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[r.type];if(!s)return;let o=!1;s.multiline&&(o=i.some(e=>null!==e&&!r_(e)));let a=0;for(let e=0;e<r.elements.length;e++){let n=r.elements[e],s=i[e-1];if(0===e||null===n||null===s)continue;let o=t.getFirstTokenBetween(s,n,rP.isCommaToken),l=t.getTokenBefore(o),c=t.getTokenAfter(o);!(0,rP.isTokenOnSameLine)(l,c)&&a++}let l=i.length>=s.minItems||s.multiline&&o||s.consistent&&a>0&&a<r.elements.length;i.forEach((n,r)=>{let s=i[r-1];if(0===r||null===n||null===s)return;let o=t.getFirstTokenBetween(s,n,rP.isCommaToken),a=t.getTokenBefore(o),c=t.getTokenAfter(o);l?(0,rP.isTokenOnSameLine)(a,c)&&function(n){let r=t.getTokenBefore(n,{includeComments:!0});e.report({loc:{start:r.loc.end,end:n.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([r.range[1],n.range[0]],"\n")})}(c):(0,rP.isTokenOnSameLine)(a,c)||function(n){let r=t.getTokenBefore(n,{includeComments:!0});e.report({loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedLineBreak",fix(e){if((0,rP.isCommentToken)(r))return null;if(!(0,rP.isTokenOnSameLine)(r,n))return e.replaceTextRange([r.range[1],n.range[0]]," ");let i=t.getTokenBefore(r,{includeComments:!0});return(0,rP.isCommentToken)(i)?null:e.replaceTextRange([i.range[1],r.range[0]],"")}})}(c)})}return{ArrayPattern:r,ArrayExpression:r}}}),rz=rj({name:"arrow-parens",meta:{type:"layout",docs:{description:"Require parentheses around arrow function arguments"},fixable:"code",schema:[{type:"string",enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e){let t="as-needed"===e.options[0],n=t&&e.options[1]&&!0===e.options[1].requireForBlockBody,r=e.sourceCode;function i(e){return r.getTokenAfter(e.params[0],rP.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]":function(s){let o=!t||n&&"BlockStatement"===s.body.type,a=function(e){let t=r.getTokenBefore(e.params[0]);return t&&(0,rP.isOpeningParenToken)(t)&&e.range[0]<=t.range[0]?t:null}(s),l=null!==a,[c]=s.params;o&&!l&&e.report({node:s,messageId:n?"expectedParensBlock":"expectedParens",loc:c.loc,*fix(e){yield e.insertTextBefore(c,"("),yield e.insertTextAfter(c,")")}}),o||!l||"Identifier"!==c.type||c.optional||c.typeAnnotation||s.returnType||r.commentsExistBetween(a,i(s))||function(e,t){let n=+!!e.async;return r.getFirstToken(e,{skip:n})!==t}(s,a)||e.report({node:s,messageId:n?"unexpectedParensInline":"unexpectedParens",loc:c.loc,*fix(e){let t=r.getTokenBefore(a),n=i(s);t&&t.range[1]===a.range[0]&&!rS(t,r.getFirstToken(c))&&(yield e.insertTextBefore(a," ")),yield e.removeRange([a.range[0],c.range[0]]),yield e.removeRange([c.range[1],n.range[1]])}})}}}}),rH=rj({name:"arrow-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){let t=Object.assign({},e.options[0]);t.before=!1!==t.before,t.after=!1!==t.after;let n=e.sourceCode;return{ArrowFunctionExpression:function(r){var i;let s=function(e){let t=n.getTokenBefore(e.body,rP.isArrowToken);return{before:n.getTokenBefore(t),arrow:t,after:n.getTokenAfter(t)}}(r),o={before:(i=s).arrow.range[0]-i.before.range[1],after:i.after.range[0]-i.arrow.range[1]};t.before?0===o.before&&e.report({node:s.before,messageId:"expectedBefore",fix:e=>e.insertTextBefore(s.arrow," ")}):o.before>0&&e.report({node:s.before,messageId:"unexpectedBefore",fix:e=>e.removeRange([s.before.range[1],s.arrow.range[0]])}),t.after?0===o.after&&e.report({node:s.after,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s.arrow," ")}):o.after>0&&e.report({node:s.after,messageId:"unexpectedAfter",fix:e=>e.removeRange([s.arrow.range[1],s.after.range[0]])})}}}}),rK=rj({name:"block-spacing",meta:{type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},defaultOptions:["always"],create(e,[t]){let n=e.sourceCode,r="never"!==t,i=r?"missing":"extra";function s(e,t){return!(0,rP.isTokenOnSameLine)(e,t)||n.isSpaceBetween(e,t)===r}function o(t){let o=n.getFirstToken(t,{filter:e=>(0,rP.isOpeningBraceToken)(e)}),a=n.getLastToken(t),l=n.getTokenAfter(o,{includeComments:!0}),c=n.getTokenBefore(a,{includeComments:!0});if((0,rP.isOpeningBraceToken)(o)&&(0,rP.isClosingBraceToken)(a)&&l!==a&&(r||l.type!==e7.AST_TOKEN_TYPES.Line)){if(!s(o,l)){let n=o.loc;"extra"===i&&(n={start:o.loc.end,end:l.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"after",token:o.value},fix:e=>r?e.insertTextBefore(l," "):e.removeRange([o.range[1],l.range[0]])})}if(!s(c,a)){let n=a.loc;"extra"===i&&(n={start:c.loc.end,end:a.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"before",token:a.value},fix:e=>r?e.insertTextAfter(c," "):e.removeRange([c.range[1],a.range[0]])})}}}return{BlockStatement:o,StaticBlock:o,SwitchStatement:o}}}),rG=rj({name:"brace-style",meta:{type:"layout",docs:{description:"Enforce consistent brace style for blocks"},fixable:"whitespace",schema:[{type:"string",enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},defaultOptions:["1tbs",{allowSingleLine:!1}],create(e,t){let[n,{allowSingleLine:r}={allowSingleLine:!1}]=t,i="allman"===n,s=e.sourceCode;function o(e,t){let n=[e.range[1],t.range[0]];return s.text.slice(n[0],n[1]).trim()?null:e=>e.replaceTextRange(n," ")}function a(t,n){let a=s.getTokenBefore(t),l=s.getTokenBefore(n),c=s.getTokenAfter(t),u=r&&(0,rP.isTokenOnSameLine)(t,n);i||(0,rP.isTokenOnSameLine)(a,t)||e.report({node:t,messageId:"nextLineOpen",fix:o(a,t)}),i&&(0,rP.isTokenOnSameLine)(a,t)&&!u&&e.report({node:t,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(t,"\n")}),(0,rP.isTokenOnSameLine)(t,c)&&c!==n&&!u&&e.report({node:t,messageId:"blockSameLine",fix:e=>e.insertTextAfter(t,"\n")}),(0,rP.isTokenOnSameLine)(l,n)&&l!==t&&!u&&e.report({node:n,messageId:"singleLineClose",fix:e=>e.insertTextBefore(n,"\n")})}function l(t){let r=s.getTokenAfter(t);"1tbs"!==n||(0,rP.isTokenOnSameLine)(t,r)||e.report({node:t,messageId:"nextLineClose",fix:o(t,r)}),"1tbs"!==n&&(0,rP.isTokenOnSameLine)(t,r)&&e.report({node:t,messageId:"sameLineClose",fix:e=>e.insertTextAfter(t,"\n")})}return{BlockStatement(e){n2.has(e.parent.type)||a(s.getFirstToken(e),s.getLastToken(e))},StaticBlock(e){a(s.getFirstToken(e,{skip:1}),s.getLastToken(e))},ClassBody(e){a(s.getFirstToken(e),s.getLastToken(e))},SwitchStatement(e){let t=s.getLastToken(e);a(s.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&l(s.getLastToken(e.consequent))},TryStatement(e){l(s.getLastToken(e.block)),e.handler&&e.finalizer&&l(s.getLastToken(e.handler.body))},TSModuleBlock(e){a(s.getFirstToken(e),s.getLastToken(e))}}}});const rQ=["always-multiline","always","never","only-multiline"];var rZ=rj({name:"comma-dangle",meta:{type:"layout",docs:{description:"Require or disallow trailing commas"},schema:{$defs:{value:{type:"string",enum:rQ},valueWithIgnore:{type:"string",enum:[...rQ,"ignore"]}},type:"array",items:[{oneOf:[{$ref:"#/$defs/value"},{type:"object",properties:{arrays:{$ref:"#/$defs/valueWithIgnore"},objects:{$ref:"#/$defs/valueWithIgnore"},imports:{$ref:"#/$defs/valueWithIgnore"},exports:{$ref:"#/$defs/valueWithIgnore"},functions:{$ref:"#/$defs/valueWithIgnore"},importAttributes:{$ref:"#/$defs/valueWithIgnore"},dynamicImports:{$ref:"#/$defs/valueWithIgnore"},enums:{$ref:"#/$defs/valueWithIgnore"},generics:{$ref:"#/$defs/valueWithIgnore"},tuples:{$ref:"#/$defs/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},fixable:"code",messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},defaultOptions:["never"],create(e,[t]){let n=function(e={},t){let n="never";return"string"==typeof e?{arrays:e,objects:e,imports:e,exports:e,functions:t&&"latest"!==t&&t<2017?"ignore":e,importAttributes:e,dynamicImports:t&&"latest"!==t&&t<2025?"ignore":e,enums:e,generics:e,tuples:e}:{arrays:e.arrays??n,objects:e.objects??n,imports:e.imports??n,exports:e.exports??n,functions:e.functions??n,importAttributes:e.importAttributes??n,dynamicImports:e.dynamicImports??n,enums:e.enums??n,generics:e.generics??n,tuples:e.tuples??n}}(t,e?.languageOptions?.ecmaVersion??e.parserOptions.ecmaVersion),r=e.parserOptions?.ecmaFeatures?.jsx&&e.filename?.endsWith(".tsx"),i=e.sourceCode,s=["}","]",")",">"],o={always:p,"always-multiline":function(e){c(e)?p(e):u(e)},"only-multiline":function(e){c(e)||u(e)},never:u,ignore:()=>{}};function a(e){return e?e[e.length-1]??null:null}function l(e){switch(e.node.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":case"ImportExpression":return i.getLastToken(e.node,1);default:{let t=e.lastItem;if(!t)return null;let n=i.getTokenAfter(t);if((0,rP.isCommaToken)(n))return n;return i.getLastToken(t)}}}function c(e){if(!e.lastItem)return!1;let t=l(e);if(!t)return!1;let n=i.getTokenAfter(t);return!!n&&n.loc.end.line!==t.loc.end.line}function u(t){if(r&&t.node.type===e7.AST_NODE_TYPES.TSTypeParameterDeclaration&&1===t.node.params.length)return;let n=t.lastItem;if(!n)return;let s=l(t);s&&(0,rP.isCommaToken)(s)&&e.report({node:n,loc:s.loc,messageId:"unexpected",*fix(e){yield e.remove(s),yield e.insertTextBefore(i.getTokenBefore(s),""),yield e.insertTextAfter(i.getTokenAfter(s),"")}})}function p(t){let n=t.lastItem;if(!n)return;if("RestElement"===n.type)return void u(t);let r=l(t);if(!r||","===r.value)return;let o=i.getTokenAfter(r);o&&s.includes(o.value)&&e.report({node:n,loc:{start:r.loc.end,end:rT(i,r.loc.end)},messageId:"missing",*fix(e){yield e.insertTextAfter(r,","),yield e.insertTextBefore(r,""),yield e.insertTextAfter(i.getTokenAfter(r),"")}})}return{ObjectExpression:e=>{o[n.objects]({node:e,lastItem:a(e.properties)})},ObjectPattern:e=>{o[n.objects]({node:e,lastItem:a(e.properties)})},ArrayExpression:e=>{o[n.arrays]({node:e,lastItem:a(e.elements)})},ArrayPattern:e=>{o[n.arrays]({node:e,lastItem:a(e.elements)})},ImportDeclaration:e=>{let t=a(e.specifiers);t?.type==="ImportSpecifier"&&o[n.imports]({node:e,lastItem:t}),o[n.importAttributes]({node:e,lastItem:a(e.attributes)})},ExportNamedDeclaration:e=>{o[n.exports]({node:e,lastItem:a(e.specifiers)}),o[n.importAttributes]({node:e,lastItem:a(e.attributes)})},ExportAllDeclaration:e=>{o[n.importAttributes]({node:e,lastItem:a(e.attributes)})},FunctionDeclaration:e=>{o[n.functions]({node:e,lastItem:a(e.params)})},FunctionExpression:e=>{o[n.functions]({node:e,lastItem:a(e.params)})},ArrowFunctionExpression:e=>{o[n.functions]({node:e,lastItem:a(e.params)})},CallExpression:e=>{o[n.functions]({node:e,lastItem:a(e.arguments)})},NewExpression:e=>{o[n.functions]({node:e,lastItem:a(e.arguments)})},ImportExpression:e=>{o[n.dynamicImports]({node:e,lastItem:e.options??e.source})},TSEnumDeclaration(e){o[n.enums]({node:e,lastItem:a(e.body?.members??e.members)})},TSTypeParameterDeclaration(e){o[n.generics]({node:e,lastItem:a(e.params)})},TSTupleType(e){o[n.tuples]({node:e,lastItem:a(e.elementTypes)})}}}}),r0=rj({name:"comma-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after commas"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpected:"There should be no space {{loc}} ','.",missing:"A space is required {{loc}} ','."}},defaultOptions:[{before:!1,after:!0}],create(e,[t={}]){let{before:n,after:r}=t,i=e.sourceCode,s=i.tokensAndComments,o=new Set;function a(e){let t=i.getFirstToken(e);for(let n of e.elements){let e;null==n?(e=i.getTokenAfter(t))&&(0,rP.isCommaToken)(e)&&o.add(e):e=i.getTokenAfter(n),t=e}}return{TSTypeParameterDeclaration:function(e){let t=e.params.length;if(t){let n=e.params[t-1],r=i.getTokenAfter(n);r&&(0,rP.isCommaToken)(r)&&o.add(r)}},ArrayExpression:a,ArrayPattern:a,"Program:exit":function(){s.forEach((t,a)=>{var l,c;if(!(0,rP.isCommaToken)(t))return;let u=s[a-1],p=s[a+1];l=(0,rP.isCommaToken)(u)||o.has(t)?null:u,c=p&&(0,rP.isCommaToken)(p)||o.has(t)?null:p,l&&(0,rP.isTokenOnSameLine)(l,t)&&n!==i.isSpaceBetween(l,t)&&e.report({node:t,data:{loc:"before"},messageId:n?"missing":"unexpected",fix:e=>n?e.insertTextBefore(t," "):e.replaceTextRange([l.range[1],t.range[0]],"")}),c&&(0,rP.isTokenOnSameLine)(t,c)&&!(0,rP.isClosingParenToken)(c)&&!(0,rP.isClosingBracketToken)(c)&&!(0,rP.isClosingBraceToken)(c)&&!(!r&&c.type===e7.AST_TOKEN_TYPES.Line)&&r!==i.isSpaceBetween(t,c)&&e.report({node:t,data:{loc:"after"},messageId:r?"missing":"unexpected",fix:e=>r?e.insertTextAfter(t," "):e.replaceTextRange([t.range[1],c.range[0]],"")})})}}}}),r1=rj({name:"comma-style",meta:{type:"layout",docs:{description:"Enforce consistent comma style"},fixable:"code",schema:[{type:"string",enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){let t=e.options[0]||"last",n=e.sourceCode,r={};if(2===e.options.length&&Object.prototype.hasOwnProperty.call(e.options[1],"exceptions")){e.options[1]??={exceptions:{}};let t=e.options[1].exceptions,n=Object.keys(t);for(let e=0;e<n.length;e++)r[n[e]]=t[n[e]]}function i(e,t,r,i){let s=n.text.slice(t.range[1],r.range[0])+n.text.slice(r.range[1],i.range[0]),o=[t.range[1],i.range[0]];return function(t){return t.replaceTextRange(o,function(e,t){switch(e){case"between":return`,${t.replace(rP.LINEBREAK_MATCHER,"")}`;case"first":return`${t},`;case"last":return`,${t}`;default:return""}}(e,s))}}function s(r,s){(function(e,t){if(0===t.length)return[];let r=t.filter(e=>!!e);if(0===r.length)return n.getTokens(e).filter(rP.isCommaToken);let i=[],s=r[0],o=n.getTokenBefore(s);for(;o&&e.range[0]<=o.range[0];){if((0,rP.isCommaToken)(o))i.unshift(o);else if((0,rP.isNotOpeningParenToken)(o))break;o=n.getTokenBefore(o)}let a=null;for(let e of r){a&&i.push(...n.getTokensBetween(a,e).filter(rP.isCommaToken));let t=n.getLastToken(e);t&&(0,rP.isCommaToken)(t)&&i.push(t),a=e}let l=n.getTokenAfter(a);for(;l&&l.range[1]<=e.range[1];){if((0,rP.isCommaToken)(l))i.push(l);else if((0,rP.isNotClosingParenToken)(l))break;l=n.getTokenAfter(l)}return i})(r,s).forEach(r=>{let s=n.getTokenBefore(r),o=n.getTokenAfter(r);if(!((0,rP.isOpeningBracketToken)(s)||(0,rP.isCommaToken)(s)&&(0,rP.isOpeningBracketToken)(n.getTokenBefore(s,rP.isNotCommaToken)))&&(!(0,rP.isCommaToken)(o)||(0,rP.isTokenOnSameLine)(r,o)))if((0,rP.isTokenOnSameLine)(r,o)&&(0,rP.isTokenOnSameLine)(s,r));else if((0,rP.isTokenOnSameLine)(r,o)||(0,rP.isTokenOnSameLine)(s,r))"first"!==t||(0,rP.isTokenOnSameLine)(r,o)?"last"===t&&(0,rP.isTokenOnSameLine)(r,o)&&e.report({node:r,messageId:"expectedCommaLast",fix:i(t,s,r,o)}):e.report({node:r,messageId:"expectedCommaFirst",fix:i(t,s,r,o)});else{let a=n.getCommentsAfter(r)[0],l=a&&"Block"===a.type&&(0,rP.isTokenOnSameLine)(r,a)?t:"between";e.report({node:r,messageId:"unexpectedLineBeforeAndAfterComma",fix:i(l,s,r,o)})}})}let o={};return r.VariableDeclaration||(o.VariableDeclaration=e=>s(e,e.declarations)),r.ObjectExpression||(o.ObjectExpression=a),r.ObjectPattern||(o.ObjectPattern=a),r.ArrayExpression||(o.ArrayExpression=l),r.ArrayPattern||(o.ArrayPattern=l),r.FunctionDeclaration||(o.FunctionDeclaration=c),r.FunctionExpression||(o.FunctionExpression=c),r.ArrowFunctionExpression||(o.ArrowFunctionExpression=c),r.CallExpression||(o.CallExpression=u),r.ImportDeclaration||(o.ImportDeclaration=e=>{s(e,e.specifiers),p(e)}),r.NewExpression||(o.NewExpression=u),r.ExportAllDeclaration||(o.ExportAllDeclaration=p),r.ExportNamedDeclaration||(o.ExportNamedDeclaration=e=>{s(e,e.specifiers),p(e)}),r.ImportExpression||(o.ImportExpression=e=>{s(e,[e.source,e.options??null])}),r.SequenceExpression||(o.SequenceExpression=e=>s(e,e.expressions)),r.ClassDeclaration||(o.ClassDeclaration=f),r.ClassExpression||(o.ClassExpression=f),r.TSDeclareFunction||(o.TSDeclareFunction=c),r.TSFunctionType||(o.TSFunctionType=c),r.TSConstructorType||(o.TSConstructorType=c),r.TSEmptyBodyFunctionExpression||(o.TSEmptyBodyFunctionExpression=c),r.TSMethodSignature||(o.TSMethodSignature=c),r.TSCallSignatureDeclaration||(o.TSCallSignatureDeclaration=c),r.TSConstructSignatureDeclaration||(o.TSConstructSignatureDeclaration=c),r.TSTypeParameterDeclaration||(o.TSTypeParameterDeclaration=m),r.TSTypeParameterInstantiation||(o.TSTypeParameterInstantiation=m),r.TSEnumBody||(o.TSEnumBody=d),r.TSTypeLiteral||(o.TSTypeLiteral=d),r.TSIndexSignature||(o.TSIndexSignature=e=>s(e,e.parameters)),r.TSInterfaceDeclaration||(o.TSInterfaceDeclaration=e=>s(e,e.extends)),r.TSInterfaceBody||(o.TSInterfaceBody=e=>s(e,e.body)),r.TSTupleType||(o.TSTupleType=e=>s(e,e.elementTypes)),o;function a(e){s(e,e.properties)}function l(e){s(e,e.elements)}function c(e){s(e,e.params)}function u(e){s(e,e.arguments)}function p(e){e.attributes&&s(e,e.attributes)}function f(e){e.implements&&s(e,e.implements)}function d(e){s(e,e.members)}function m(e){s(e,e.params)}}}),r2=rj({name:"computed-property-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){let t=e.sourceCode,n="always"===e.options[0],r=!e.options[1]||e.options[1].enforceForClassMembers;function i(r){return function(i){if(!i.computed)return;let s=i[r],o=t.getTokenBefore(s,rP.isOpeningBracketToken),a=t.getTokenAfter(o,{includeComments:!0}),l=t.getTokenAfter(s,rP.isClosingBracketToken),c=t.getTokenBefore(l,{includeComments:!0});(0,rP.isTokenOnSameLine)(o,a)&&(n?!t.isSpaceBetween(o,a)&&(0,rP.isTokenOnSameLine)(o,a)&&e.report({node:i,loc:o.loc,messageId:"missingSpaceAfter",data:{tokenValue:o.value},fix:e=>e.insertTextAfter(o," ")}):t.isSpaceBetween(o,a)&&e.report({node:i,loc:{start:o.loc.end,end:a.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:o.value},fix:e=>e.removeRange([o.range[1],a.range[0]])})),(0,rP.isTokenOnSameLine)(c,l)&&(n?!t.isSpaceBetween(c,l)&&(0,rP.isTokenOnSameLine)(c,l)&&e.report({node:i,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}):t.isSpaceBetween(c,l)&&e.report({node:i,loc:{start:c.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix:e=>e.removeRange([c.range[1],l.range[0]])}))}}let s={Property:i("key"),MemberExpression:i("property")};return r&&(s.MethodDefinition=i("key"),s.PropertyDefinition=i("key"),s.AccessorProperty=i("key")),s}});const r3={multiline:{type:"boolean"},minElements:{type:"integer",minimum:0},consistent:{type:"boolean"}},r4={oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:r3,additionalProperties:!1}]};var r5=((i=r5||{}).IfStatementConsequent="IfStatementConsequent",i.IfStatementAlternative="IfStatementAlternative",i.DoWhileStatement="DoWhileStatement",i.ForInStatement="ForInStatement",i.ForOfStatement="ForOfStatement",i.ForStatement="ForStatement",i.WhileStatement="WhileStatement",i.SwitchStatement="SwitchStatement",i.SwitchCase="SwitchCase",i.TryStatementBlock="TryStatementBlock",i.TryStatementHandler="TryStatementHandler",i.TryStatementFinalizer="TryStatementFinalizer",i.BlockStatement="BlockStatement",i.ArrowFunctionExpression="ArrowFunctionExpression",i.FunctionDeclaration="FunctionDeclaration",i.FunctionExpression="FunctionExpression",i.Property="Property",i.ClassBody="ClassBody",i.StaticBlock="StaticBlock",i.WithStatement="WithStatement",i.TSModuleBlock="TSModuleBlock",i);const r6={multiline:!1,minElements:1/0,consistent:!0},r9={multiline:!1,minElements:0,consistent:!1},r8={multiline:!1,minElements:1/0,consistent:!1};function r7(e){return"always"===e?r9:"never"===e?r8:e?{consistent:!!e.consistent,minElements:e.minElements??1/0,multiline:!!e.multiline}:r6}var ie=rj({name:"curly-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{...Object.fromEntries(Object.entries(r5).map(([e])=>[e,r4])),...r3},additionalProperties:!1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(e){let t=e.sourceCode,n=function(e){let t=r7(e);return Object.fromEntries(Object.entries(r5).map(([n])=>[n,"object"==typeof e&&null!=e&&n in e?r7(e[n]):t]))}(e.options[0]);function r(r,i){let s,o,a,l=n[i];switch(r.type){case"SwitchStatement":o=t.getLastToken(r),s=t.getTokenBefore(r.cases.length?r.cases[0]:o),a=r.cases.length;break;case"StaticBlock":s=t.getFirstToken(r,e=>"{"===e.value),o=t.getLastToken(r),a=r.body.length;break;default:s=t.getFirstToken(r),o=t.getLastToken(r),a=r.body.length}let c=t.getTokenAfter(s,{includeComments:!0}),u=t.getTokenBefore(o,{includeComments:!0}),p=a>=l.minElements||l.multiline&&a>0&&!(0,rP.isTokenOnSameLine)(u,c),f=(0,rP.isCommentToken)(c),d=(0,rP.isCommentToken)(u);if(c=t.getTokenAfter(s),u=t.getTokenBefore(o),p)(0,rP.isTokenOnSameLine)(s,c)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:r,loc:s.loc,fix:e=>f?null:e.insertTextAfter(s,"\n")}),(0,rP.isTokenOnSameLine)(u,o)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:r,loc:o.loc,fix:e=>d?null:e.insertTextBefore(o,"\n")});else{let t=l.consistent,n=!(0,rP.isTokenOnSameLine)(s,c),i=!(0,rP.isTokenOnSameLine)(u,o);(!t&&n||t&&n&&!i)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:r,loc:s.loc,fix:e=>f?null:e.removeRange([s.range[1],c.range[0]])}),(!t&&i||t&&!n&&i)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:r,loc:o.loc,fix:e=>d?null:e.removeRange([u.range[1],o.range[0]])})}}function i(e){r(e,e.type)}return{BlockStatement(e){let{parent:t}=e;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"WhileStatement":case"ArrowFunctionExpression":case"FunctionDeclaration":case"WithStatement":r(e,t.type);break;case"FunctionExpression":"Property"===t.parent.type&&t.parent.method?r(e,"Property"):r(e,t.type);break;case"IfStatement":e===t.consequent&&r(e,"IfStatementConsequent"),e===t.alternate&&r(e,"IfStatementAlternative");break;case"TryStatement":e===t.block&&r(e,"TryStatementBlock"),e===t.finalizer&&r(e,"TryStatementFinalizer");break;case"CatchClause":r(e,"TryStatementHandler");break;default:"SwitchCase"===t.type&&1===t.consequent.length?r(e,"SwitchCase"):r(e,"BlockStatement")}},SwitchStatement:i,ClassBody:i,StaticBlock:i,TSModuleBlock:i}}}),it=rj({name:"dot-location",meta:{type:"layout",docs:{description:"Enforce consistent newlines before and after dots"},schema:[{type:"string",enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){let t=e.options[0],n="object"===t||!t,r=e.sourceCode;return{MemberExpression:function(t){"MemberExpression"!==t.type||t.computed||function(t){let i=t.property,s=r.getTokenBefore(i);if(n&&s){let n=r.getTokenBefore(s);n&&!(0,rP.isTokenOnSameLine)(n,s)&&e.report({node:t,loc:s.loc,messageId:"expectedDotAfterObject",*fix(e){s.value.startsWith(".")&&rb(n)?yield e.insertTextAfter(n,` ${s.value}`):yield e.insertTextAfter(n,s.value),yield e.remove(s)}})}else s&&!(0,rP.isTokenOnSameLine)(s,i)&&e.report({node:t,loc:s.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(s),yield e.insertTextBefore(i,s.value)}})}(t)}}}}),ir=rj({name:"eol-last",meta:{type:"layout",docs:{description:"Require or disallow newline at the end of files"},fixable:"whitespace",schema:[{type:"string",enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create:e=>({Program:function(t){let n=e.sourceCode,r=n.getText(),i={column:n.lines[n.lines.length-1].length,line:n.lines.length},s=`\r
2
- `,o=r.endsWith("\n");if(!r.length)return;let a=e.options[0]||"always",l=!1;if("unix"===a&&(nQ('option("unix")','"always" and "@stylistic/eslint-plugin/rules/linebreak-style"',"eol-last"),a="always"),"windows"===a&&(nQ('option("windows")','"always" and "@stylistic/eslint-plugin/rules/linebreak-style"',"eol-last"),a="always",l=!0),"always"!==a||o){if("never"===a&&o){let r=n.lines[n.lines.length-2];e.report({node:t,loc:{start:{line:n.lines.length-1,column:r.length},end:{line:n.lines.length,column:0}},messageId:"unexpected",fix(e){let t=/(?:\r?\n)+$/u.exec(n.text).index,r=n.text.length;return e.replaceTextRange([t,r],"")}})}}else e.report({node:t,loc:i,messageId:"missing",fix:e=>e.insertTextAfterRange([0,r.length],l?s:"\n")})}})}),ii=rj({name:"function-call-argument-newline",meta:{type:"layout",docs:{description:"Enforce line breaks between arguments of a function call"},fixable:"whitespace",schema:[{type:"string",enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(e){let t=e.sourceCode,n={messageId:"unexpectedLineBreak",check:(e,t)=>!(0,rP.isTokenOnSameLine)(e,t),createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]]," ")},r={messageId:"missingLineBreak",check:(e,t)=>(0,rP.isTokenOnSameLine)(e,t),createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],"\n")};function i(n,r){for(let i=1;i<n.length;i++){let s=n[i-1],o=t.getLastToken(s),a=t.getFirstToken(n[i]);if(r.check(o,a)){let s=t.getTokenBefore(a,{includeComments:!0}),o="Line"===s.type;e.report({node:n[i-1],loc:{start:s.loc.end,end:a.loc.start},messageId:r.messageId,fix:o?null:r.createFix(a,s)})}}}function s(s){if(s.length<2)return;let o=e.options[0]||"always";if("never"===o)i(s,n);else if("always"===o)i(s,r);else if("consistent"===o){let e=t.getLastToken(s[0]),o=t.getFirstToken(s[1]);(0,rP.isTokenOnSameLine)(e,o)?i(s,n):i(s,r)}}return{CallExpression:e=>s(e.arguments),NewExpression:e=>s(e.arguments),ImportExpression:e=>{e.options&&s([e.source,e.options])}}}}),is=rj({name:"function-call-spacing",meta:{type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{type:"string",enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{type:"string",enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"},optionalChain:{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},defaultOptions:["never",{}],create(e,[t,n]){let r=e.sourceCode,i=r.getText(),{allowNewlines:s=!1,optionalChain:o={before:!0,after:!0}}=n;function a(n,a,l){let c=(0,rP.isOptionalCallExpression)(n),u=i.slice(a.range[1],l.range[0]).replace(/\/\*.*?\*\//gu,""),p=/\s/u.test(u),f=p&&rP.LINEBREAK_MATCHER.test(u);if("never"===t){if(p)return e.report({node:n,loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedWhitespace",fix:e=>r.commentsExistBetween(a,l)?null:c?e.replaceTextRange([a.range[1],l.range[0]],"?."):e.removeRange([a.range[1],l.range[0]])})}else if(c){let{before:t=!0,after:i=!0}=o,c=/^\s/u.test(u),p=/\s$/u.test(u),d=t?c:!c,m=i?p:!p,h=s||!f;d&&m&&h||e.report({node:n,loc:{start:a.loc.end,end:l.loc.start},messageId:h?!t&&c||!i&&p?"unexpectedWhitespace":"missing":"unexpectedNewline",fix(e){if(r.commentsExistBetween(a,l))return null;let n=u;if(!s){let e=RegExp(rP.LINEBREAK_MATCHER.source,"g");n=n.replaceAll(e," ")}return d||(n=t?` ${n}`:n.trimStart()),m||(n=i?`${n} `:n.trimEnd()),e.replaceTextRange([a.range[1],l.range[0]],n)}})}else p?!s&&f&&e.report({node:n,loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedNewline",fix:e=>r.commentsExistBetween(a,l)?null:e.replaceTextRange([a.range[1],l.range[0]]," ")}):e.report({node:n,loc:{start:a.loc.end,end:l.loc.start},messageId:"missing",fix:e=>e.insertTextBefore(l," ")})}return{"CallExpression, NewExpression":function(e){let t=r.getLastToken(e),n=r.getLastToken(e.typeArguments??e.callee),i=r.getFirstTokenBetween(n,t,rP.isOpeningParenToken);i&&!(i.range[1]>=e.range[1])&&a(e,r.getTokenBefore(i,rP.isNotOptionalChainPunctuator),i)},ImportExpression(e){let t=r.getFirstToken(e),n=r.getTokenAfter(t);a(e,t,n)}}}}),io=rj({name:"function-paren-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks inside function parentheses"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){let t,n=e.sourceCode,r=e.options[0]||"multiline",i="multiline"===r,s="multiline-arguments"===r,o="consistent"===r;function a(e,n){return s&&1===e.length?n:i||s?e.some((t,n)=>n!==e.length-1&&!(0,rP.isTokenOnSameLine)(t,e[n+1])):o?n:null==t||e.length>=t}return"object"==typeof r?t=r.minItems:"always"===r?t=0:"never"===r&&(t=1/0),{"ArrowFunctionExpression, CallExpression, FunctionDeclaration, FunctionExpression, ImportExpression, NewExpression"(t){let r,i=function(e){let t=()=>{let e=0;return t=>("Punctuator"===t.type&&"<"===t.value&&(e+=1),"Punctuator"===t.type&&">"===t.value&&(e-=1),0===e&&(0,rP.isOpeningParenToken)(t))};switch(e.type){case"NewExpression":if(!e.arguments.length&&!((0,rP.isOpeningParenToken)(n.getLastToken(e,{skip:1}))&&(0,rP.isClosingParenToken)(n.getLastToken(e))&&e.callee.range[1]<e.range[1]))return null;case"CallExpression":return{leftParen:n.getTokenAfter(e.callee,t()),rightParen:n.getLastToken(e)};case"FunctionDeclaration":case"FunctionExpression":{let r=n.getFirstToken(e,t()),i=e.params.length?n.getTokenAfter(e.params[e.params.length-1],rP.isClosingParenToken):n.getTokenAfter(r);return{leftParen:r,rightParen:i}}case"ArrowFunctionExpression":{let t=n.getFirstToken(e,{skip:+!!e.async});if(!(0,rP.isOpeningParenToken)(t))return null;let r=e.params.length?n.getTokenAfter(e.params[e.params.length-1],rP.isClosingParenToken):n.getTokenAfter(t);return{leftParen:t,rightParen:r}}case"ImportExpression":return{leftParen:n.getFirstToken(e,1),rightParen:n.getLastToken(e)};default:throw TypeError(`unexpected node with type ${e.type}`)}}(t);r="ImportExpression"===t.type?[t.source,...t.options?[t.options]:[]]:(0,rP.isFunction)(t)?t.params:t.arguments,i&&(!function(t,r){let i=t.leftParen,s=t.rightParen,o=n.getTokenAfter(i),l=n.getTokenBefore(s),c=!(0,rP.isTokenOnSameLine)(i,o),u=!(0,rP.isTokenOnSameLine)(l,s),p=a(r,c);c&&!p?e.report({node:i,messageId:"unexpectedAfter",fix:e=>n.getText().slice(i.range[1],o.range[0]).trim()?null:e.removeRange([i.range[1],o.range[0]])}):!c&&p&&e.report({node:i,messageId:"expectedAfter",fix:e=>e.insertTextAfter(i,"\n")}),u&&!p?e.report({node:s,messageId:"unexpectedBefore",fix:e=>n.getText().slice(l.range[1],s.range[0]).trim()?null:e.removeRange([l.range[1],s.range[0]])}):!u&&p&&e.report({node:s,messageId:"expectedBefore",fix:e=>e.insertTextBefore(s,"\n")})}(i,r),s&&function(t,r){let i=t.leftParen,s=n.getTokenAfter(i),o=a(r,!(0,rP.isTokenOnSameLine)(i,s));for(let t=0;t<=r.length-2;t++){let n=r[t],i=r[t+1];(0,rP.isTokenOnSameLine)(n,i)&&o&&e.report({node:n,messageId:"expectedBetween",fix:e=>e.insertTextBefore(i,"\n")})}}(i,r))}}}});const ia={oneOf:[{type:"string",enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};var il=rj({name:"generator-star-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:ia,anonymous:ia,method:ia},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){let t={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function n(e,n){return e?"string"==typeof e?t[e]:Object.assign({},n,e):n}let r=function(e){let r=n(e,t.before);return{named:n(e.named,r),anonymous:n(e.anonymous,r),method:n(e.method,r)}}(e.options[0]||{}),i=e.sourceCode;function s(e){return"*"===e.value&&"Punctuator"===e.type}function o(t,n,i,s){if(!!(s.range[0]-i.range[1])!==r[t][n]){let o="*"===i.value,a=r[t][n],l=o?i:s,c=`${a?"missing":"unexpected"}${n[0].toUpperCase()+n.slice(1)}`;e.report({node:l,messageId:c,fix:e=>a?o?e.insertTextAfter(l," "):e.insertTextBefore(l," "):e.removeRange([i.range[1],s.range[0]])})}}function a(e){if(!e.generator)return;let t=i.getFirstToken("method"in e.parent&&e.parent.method||"MethodDefinition"===e.parent.type?e.parent:e,s),n=i.getTokenBefore(t),r=i.getTokenAfter(t),a="named";"MethodDefinition"===e.parent.type||"Property"===e.parent.type&&e.parent.method?a="method":e.id||(a="anonymous"),("method"!==a||t!==i.getFirstToken(e.parent))&&o(a,"before",n,t),o(a,"after",t,r)}return{FunctionDeclaration:a,FunctionExpression:a}}}),ic=rj({name:"implicit-arrow-linebreak",meta:{type:"layout",docs:{description:"Enforce the location of arrow function bodies"},fixable:"whitespace",schema:[{type:"string",enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(e){let t=e.sourceCode,n=e.options[0]||"beside";return{ArrowFunctionExpression:r=>(function(r){if("BlockStatement"===r.body.type)return;let i=t.getTokenBefore(r.body,rP.isNotOpeningParenToken),s=t.getTokenAfter(i),o=(0,rP.isTokenOnSameLine)(i,s);o&&"below"===n?e.report({node:s,messageId:"expected",fix:e=>e.insertTextBefore(s,"\n")}):o||"beside"!==n||e.report({node:s,messageId:"unexpected",fix:e=>rO(t,i,s)?null:e.replaceTextRange([i.range[1],s.range[0]]," ")})})(r)}}}),iu=rj({name:"indent-binary-ops",meta:{type:"layout",docs:{description:"Indentation for binary operators"},fixable:"whitespace",schema:[{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["tab"]}]}],messages:{wrongIndentation:"Expected indentation of {{expected}}"}},defaultOptions:[2],create:(e,t)=>{let{sourceCode:n}=e,r="tab"===t[0]?" ":" ".repeat(t[0]??2),i=new Map;function s(e){return i.has(e)?i.get(e):n.lines[e-1].match(/^\s*/)?.[0]??""}function o(o,a){var l,c;if(o.loc.start.line===o.loc.end.line)return;let u=n.getFirstToken(a),p=n.getTokenBefore(u);for(;"("===p.value;)if(u=p,(p=n.getTokenBefore(u)).range[0]<=a.parent.range[0])return;let f=n.getTokenBefore(o),d=n.getTokenBefore(p);if(u.loc.start.line===d.loc.start.line)return;let m=(l=d.loc.start.line,n.tokensAndComments.find(e=>e.loc.start.line===l)),h=(c=d.loc.start.line,[...n.tokensAndComments].reverse().find(e=>e.loc.end.line===c)),g=ra(m)&&!["typeof","instanceof","this"].includes(m.value)||m?.type==="Identifier"&&"type"===m.value&&function(t,n){for(;n.parent;)if("TSTypeAliasDeclaration"===(n=n.parent).type&&e.sourceCode.getTokenBefore(n.id)===t)return!0;return!1}(m,o)||[":","[","(","<"].concat(n5).includes(h?.value||"")||["[","(","{","=>",":"].concat(n5).includes(f?.value||"")&&m?.loc.start.line===f?.loc.start.line,y=h?.value===")"&&function(e){let t=n.tokensAndComments.filter(t=>t.loc.start.line===e),r=0,i=0;for(let e of t)"("===e.value&&r++,")"===e.value&&i++;return r<i}(d.loc.start.line)&&!["]",")","}"].includes(m?.value||""),x=s(d.loc.start.line),b=s(u.loc.start.line),T=function(e,n,i){if(n&&!i)return e+r;if(!n&&i)return"tab"===t[0]?e.slice(1):e.slice(t[0]??2);return e}(x,g,y);if(T!==b){let r={line:u.loc.start.line,column:0},s={line:u.loc.start.line,column:b.length};e.report({loc:{start:r,end:s},messageId:"wrongIndentation",data:{expected:`${T.length} ${"tab"===t[0]?"tab":"space"}${1===T.length?"":"s"}`},fix:e=>e.replaceTextRange([n.getIndexFromLoc(r),n.getIndexFromLoc(s)],T)}),i.set(u.loc.start.line,T)}}return{BinaryExpression(e){o(e,e.right)},LogicalExpression(e){o(e,e.right)},TSUnionType(e){e.types.length>1&&e.types.forEach(t=>{o(e,t)})},TSIntersectionType(e){e.types.length>1&&e.types.forEach(t=>{o(e,t)})}}}});const ip=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition",e7.AST_NODE_TYPES.AccessorProperty,"RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression","ImportAttribute",e7.AST_NODE_TYPES.TSAbstractKeyword,e7.AST_NODE_TYPES.TSAnyKeyword,e7.AST_NODE_TYPES.TSBooleanKeyword,e7.AST_NODE_TYPES.TSNeverKeyword,e7.AST_NODE_TYPES.TSNumberKeyword,e7.AST_NODE_TYPES.TSStringKeyword,e7.AST_NODE_TYPES.TSSymbolKeyword,e7.AST_NODE_TYPES.TSUndefinedKeyword,e7.AST_NODE_TYPES.TSUnknownKeyword,e7.AST_NODE_TYPES.TSVoidKeyword,e7.AST_NODE_TYPES.TSNullKeyword,e7.AST_NODE_TYPES.TSAbstractPropertyDefinition,e7.AST_NODE_TYPES.TSAbstractAccessorProperty,e7.AST_NODE_TYPES.TSAbstractMethodDefinition,e7.AST_NODE_TYPES.TSArrayType,e7.AST_NODE_TYPES.TSAsExpression,e7.AST_NODE_TYPES.TSCallSignatureDeclaration,e7.AST_NODE_TYPES.TSConditionalType,e7.AST_NODE_TYPES.TSConstructorType,e7.AST_NODE_TYPES.TSConstructSignatureDeclaration,e7.AST_NODE_TYPES.TSDeclareFunction,e7.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,e7.AST_NODE_TYPES.TSEnumDeclaration,e7.AST_NODE_TYPES.TSEnumBody,e7.AST_NODE_TYPES.TSEnumMember,e7.AST_NODE_TYPES.TSExportAssignment,e7.AST_NODE_TYPES.TSExternalModuleReference,e7.AST_NODE_TYPES.TSFunctionType,e7.AST_NODE_TYPES.TSImportType,e7.AST_NODE_TYPES.TSIndexedAccessType,e7.AST_NODE_TYPES.TSIndexSignature,e7.AST_NODE_TYPES.TSInferType,e7.AST_NODE_TYPES.TSInterfaceBody,e7.AST_NODE_TYPES.TSInterfaceDeclaration,e7.AST_NODE_TYPES.TSInterfaceHeritage,e7.AST_NODE_TYPES.TSImportEqualsDeclaration,e7.AST_NODE_TYPES.TSLiteralType,e7.AST_NODE_TYPES.TSMappedType,e7.AST_NODE_TYPES.TSMethodSignature,"TSMinusToken",e7.AST_NODE_TYPES.TSModuleBlock,e7.AST_NODE_TYPES.TSModuleDeclaration,e7.AST_NODE_TYPES.TSNonNullExpression,e7.AST_NODE_TYPES.TSParameterProperty,"TSPlusToken",e7.AST_NODE_TYPES.TSPropertySignature,e7.AST_NODE_TYPES.TSQualifiedName,"TSQuestionToken",e7.AST_NODE_TYPES.TSRestType,e7.AST_NODE_TYPES.TSThisType,e7.AST_NODE_TYPES.TSTupleType,e7.AST_NODE_TYPES.TSTypeAliasDeclaration,e7.AST_NODE_TYPES.TSTypeAnnotation,e7.AST_NODE_TYPES.TSTypeLiteral,e7.AST_NODE_TYPES.TSTypeOperator,e7.AST_NODE_TYPES.TSTypeParameter,e7.AST_NODE_TYPES.TSTypeParameterDeclaration,e7.AST_NODE_TYPES.TSTypeParameterInstantiation,e7.AST_NODE_TYPES.TSTypeReference,e7.AST_NODE_TYPES.Decorator]);var id=class{_values;constructor(e){this._values=Array(e+1)}insert(e,t){this._values[e]=t}findLastNotAfter(e){let t=this._values;for(let n=e;n>=0;n--){let e=t[n];if(e)return e}}deleteRange(e,t){this._values.fill(void 0,e,t)}},im=class{sourceCode;firstTokensByLineNumber;constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=new Map;let t=e.tokensAndComments;for(let n=0;n<t.length;n++){let r=t[n];this.firstTokensByLineNumber.has(r.loc.start.line)||this.firstTokensByLineNumber.set(r.loc.start.line,r),!this.firstTokensByLineNumber.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&this.firstTokensByLineNumber.set(r.loc.end.line,r)}}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}},ih=class{_tokenInfo;_indentSize;_indentType;_indexMap;_lockedFirstTokens=new WeakMap;_desiredIndentCache=new WeakMap;_ignoredTokens=new WeakSet;constructor(e,t,n,r){this._tokenInfo=e,this._indentSize=t,this._indentType=n,this._indexMap=new id(r),this._indexMap.insert(0,{offset:0,from:null,force:!1})}_getOffsetDescriptor(e){return this._indexMap.findLastNotAfter(e.range[0])}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,n){e&&this.setDesiredOffsets(e.range,t,n)}setDesiredOffsets(e,t,n,r=!1){let i={offset:n,from:t,force:r},s=this._indexMap.findLastNotAfter(e[1]),o=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],a=o&&this._getOffsetDescriptor(t);this._indexMap.deleteRange(e[0]+1,e[1]),this._indexMap.insert(e[0],i),o&&(this._indexMap.insert(t.range[0],a),this._indexMap.insert(t.range[1],i)),this._indexMap.insert(e[1],s)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){let t=this._lockedFirstTokens.get(e),n=this._tokenInfo.getFirstTokenOfLine(t);this._desiredIndentCache.set(e,this.getDesiredIndent(n)+this._indentType.repeat(t.loc.start.column-n.loc.start.column))}else{let t=this._getOffsetDescriptor(e),n=!t.from||t.from.loc.start.line!==e.loc.start.line||/^\s*?\n/u.test(e.value)||t.force?t.offset*this._indentSize:0;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):"")+this._indentType.repeat(n))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}};const ig={oneOf:[{type:"integer",minimum:0},{type:"string",enum:["first","off"]}]};var iy=rj({name:"indent",meta:{type:"layout",docs:{description:"Enforce consistent indentation"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[ig,{type:"object",properties:{var:ig,let:ig,const:ig,using:ig},additionalProperties:!1}]},assignmentOperator:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:ig,body:{type:"integer",minimum:0},returnType:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:ig,body:{type:"integer",minimum:0},returnType:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:ig},additionalProperties:!1},ArrayExpression:ig,ObjectExpression:ig,ImportDeclaration:ig,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressionsOffsetCallExpressions:{type:"boolean",default:!0},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1},tabLength:{type:"number",default:4}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},defaultOptions:[4,{SwitchCase:1,flatTernaryExpressions:!1,ignoredNodes:[]}],create(e,t){let n="space",r=4,i={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1,using:1},outerIIFEBody:1,assignmentOperator:1,FunctionDeclaration:{parameters:1,body:1,returnType:1},FunctionExpression:{parameters:1,body:1,returnType:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1,offsetTernaryExpressions:!1,offsetTernaryExpressionsOffsetCallExpressions:!0,tabLength:4};if(t.length){"tab"===t[0]?(r=1,n="tab"):(r=t[0]??r,n="space");let e=t[1];e&&(Object.assign(i,e),("number"==typeof e.VariableDeclarator||"first"===e.VariableDeclarator)&&(i.VariableDeclarator={var:e.VariableDeclarator,let:e.VariableDeclarator,const:e.VariableDeclarator,using:e.VariableDeclarator}))}let s=e.sourceCode,o=new im(s),a=new ih(o,r,"space"===n?" ":" ",s.text.length),l=new WeakSet;function c(e,t,r){let i=`space${1===t?"":"s"}`,s=`tab${1===r?"":"s"}`;return{expected:`${e} ${n}${1===e?"":"s"}`,actual:t>0?"space"===n?t:`${t} ${i}`:r>0?"tab"===n?r:`${r} ${s}`:"0"}}function u(e,t){return o.getTokenIndent(e)===t}function p(e,t,n,r){function i(e){let n=s.getTokenBefore(e);for(;(0,rP.isOpeningParenToken)(n)&&n!==t;)n=s.getTokenBefore(n);return s.getTokenAfter(n)}a.setDesiredOffsets([t.range[1],n.range[0]],t,"number"==typeof r?r:1),a.setDesiredOffset(n,t,0),("first"!==r||!e.length||e[0])&&e.forEach((n,l)=>{if(n&&("off"===r&&a.ignoreToken(i(n)),0!==l))if("first"===r&&o.isFirstTokenOfLine(i(n)))a.matchOffsetOf(i(e[0]),i(n));else{let r=e[l-1],o=r&&i(r),c=r&&s.getLastToken(r);r&&c.loc.end.line-function(e){let t=e.match(/\s*$/u)[0].match(n9());return null===t?0:t.length}(c.value)>t.loc.end.line&&a.setDesiredOffsets([r.range[1],n.range[1]],o,0)}})}function f(e){if("BlockStatement"!==e.type){let t=s.getTokenBefore(e,rP.isNotOpeningParenToken),n=s.getFirstToken(e),r=s.getLastToken(e);for(;(0,rP.isOpeningParenToken)(s.getTokenBefore(n))&&(0,rP.isClosingParenToken)(s.getTokenAfter(r));)n=s.getTokenBefore(n),r=s.getTokenAfter(r);a.setDesiredOffsets([n.range[0],r.range[1]],t,1)}}function d(e){let t;t=e.arguments.length?s.getTokenAfter(e.typeArguments??e.callee,rP.isOpeningParenToken):s.getLastToken(e,1);let n=s.getLastToken(e);if(l.add(t),l.add(n),"optional"in e&&e.optional){let n=s.getTokenAfter(e.callee,rP.isOptionalChainPunctuator),r=s.getTokensBetween(e.callee,n,{filter:rP.isClosingParenToken}).length,i=r?s.getTokenBefore(e.callee,{skip:r-1}):s.getFirstToken(e.callee),o=s.getTokenBefore(n),l=(0,rP.isTokenOnSameLine)(o,t)?o:i;a.setDesiredOffset(n,l,1)}let r="TaggedTemplateExpression"===e.callee.type?s.getFirstToken(e.callee.quasi):e.typeArguments??t,o=s.getTokenBefore(r);a.setDesiredOffset(t,o,0),p(e.arguments,t,n,i.CallExpression.arguments)}function m(e){let t=new Set(s.getTokens(e,{includeComments:!0}));t.forEach(e=>{if(!t.has(a.getFirstDependency(e))){let t=o.getFirstTokenOfLine(e);e===t?a.ignoreToken(e):a.setDesiredOffset(e,t,0)}})}function h(e,t){let n=e.loc.end.line,r=t.loc.start.line;if(n===r||n===r-1)return!1;for(let e=n+1;e<r;++e)if(!o.firstTokensByLineNumber.has(e))return!0;return!1}let g=new Set;function y(e){let t=s.getTokenBefore(e),n=s.getTokenAfter(e);"number"==typeof i.assignmentOperator?(a.setDesiredOffset(e,t,i.assignmentOperator),a.setDesiredOffset(n,e,i.assignmentOperator)):(a.ignoreToken(e),a.ignoreToken(n))}function x(e){let t=e.type===e7.AST_NODE_TYPES.TSTupleType?e.elementTypes:e.elements,n=s.getFirstToken(e),r=s.getTokenAfter([...t].reverse().find(e=>e)||n,rP.isClosingBracketToken);p(t,n,r,i.ArrayExpression)}function b(e,t){let n=s.getFirstToken(e,rP.isOpeningBraceToken),r=s.getTokenAfter(t.length?t[t.length-1]:n,rP.isClosingBraceToken);p(t,n,r,i.ObjectExpression)}function T(e,t,n,r){let o=s.getFirstToken(e);if(!i.flatTernaryExpressions||!(0,rP.isTokenOnSameLine)(t,n)||function(e,t){let n=t;for(;n.parent&&!n.parent.type.endsWith("Statement")&&!n.parent.type.endsWith("Declaration");)n=n.parent;return!(n=n.parent)||n.loc.start.line===e.loc.start.line}(o,e)){let e=s.getFirstTokenBetween(t,n,ro),l=s.getFirstTokenBetween(n,r,rP.isColonToken),c=s.getTokenAfter(e),u=s.getTokenBefore(l),p=s.getTokenAfter(l);a.setDesiredOffset(e,o,1),a.setDesiredOffset(l,o,1);let f=1;if(i.offsetTernaryExpressions){"Punctuator"===c.type&&(f=2);let e=rr(n).type;i.offsetTernaryExpressionsOffsetCallExpressions&&("CallExpression"===e||"AwaitExpression"===e)&&(f=2)}if(a.setDesiredOffset(c,o,f),(0,rP.isTokenOnSameLine)(u,p))a.setDesiredOffset(p,c,0);else{let e=1;if(i.offsetTernaryExpressions){"Punctuator"===p.type&&(e=2);let t=rr(r).type;i.offsetTernaryExpressionsOffsetCallExpressions&&("CallExpression"===t||"AwaitExpression"===t)&&(e=2)}a.setDesiredOffset(p,o,e)}}}function k(e,t,n){let r=s.getFirstTokenBetween(e,t,e=>e.value===n),i=s.getTokenAfter(r);a.ignoreToken(r),a.ignoreToken(i),a.setDesiredOffset(i,r,0)}function S(e,t,n,r=!1){let o=s.getFirstTokenBetween(t,n,rP.isNotClosingParenToken),l=s.getTokenAfter(o),c=s.getTokensBetween(t,n,{filter:rP.isClosingParenToken}).length,u=c?s.getTokenBefore(t,{skip:c-1}):s.getFirstToken(t),p=s.getTokenBefore(o),f=r?o:l;r&&(a.setDesiredOffset(s.getLastToken(e),o,0),a.setDesiredOffsets(n.range,o,1));let d=(0,rP.isTokenOnSameLine)(p,f)?p:u;"number"==typeof i.MemberExpression?(a.setDesiredOffset(o,d,i.MemberExpression),a.setDesiredOffset(l,r?o:d,i.MemberExpression)):(a.ignoreToken(o),a.ignoreToken(l),a.setDesiredOffset(o,d,0),a.setDesiredOffset(l,o,0))}function E(e){let t;t=e.parent&&function(e){if(!e.parent||"CallExpression"!==e.parent.type||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;"UnaryExpression"===t.type&&["!","~","+","-"].includes(t.operator)||"AssignmentExpression"===t.type||"LogicalExpression"===t.type||"SequenceExpression"===t.type||"VariableDeclarator"===t.type;)t=t.parent;return("ExpressionStatement"===t.type||"VariableDeclaration"===t.type)&&"Program"===t.parent.type}(e.parent)?i.outerIIFEBody:e.parent&&("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)?i.FunctionExpression.body:e.parent&&"FunctionDeclaration"===e.parent.type?i.FunctionDeclaration.body:1,n2.has(e.parent.type)||a.setDesiredOffset(s.getFirstToken(e),s.getFirstToken(e.parent),0),p(e.type===e7.AST_NODE_TYPES.TSEnumBody?e.members:e.body,s.getFirstToken(e),s.getLastToken(e),t)}function w(e,t){let n=s.getFirstToken(e),r=s.getTokenBefore(t[0],rP.isNotOpeningParenToken);a.setDesiredOffsets([r.range[0],e.body.range[0]],n,1)}function v(e){let t,n=s.getFirstToken(e),r=s.getLastToken(e);if(e.computed){let r=s.getTokenBefore(e.key,rP.isOpeningBracketToken),i=t=s.getTokenAfter(e.key,rP.isClosingBracketToken),o=[r.range[1],i.range[0]];r!==n&&a.setDesiredOffset(r,n,0),a.setDesiredOffsets(o,r,1),a.setDesiredOffset(i,r,0)}else{let r=t=s.getFirstToken(e.key);e.decorators?.length||r===n||a.setDesiredOffset(r,n,1)}if(e.value){let t=s.getTokenBefore(e.value,rs);y(t),(0,rP.isSemicolonToken)(r)&&a.setDesiredOffset(r,t,1)}else(0,rP.isSemicolonToken)(r)&&a.setDesiredOffset(r,t,1)}let A=[],C={};for(let[t,u]of Object.entries({ArrayExpression:x,ArrayPattern:x,ObjectExpression(e){b(e,e.properties)},ObjectPattern(e){b(e,e.properties)},ArrowFunctionExpression(e){let t=s.getFirstToken(e,{skip:+!!e.async});if((0,rP.isOpeningParenToken)(t)){let n=s.getTokenBefore(e.returnType??e.body,{filter:rP.isClosingParenToken});l.add(t),l.add(n),p(e.params,t,n,i.FunctionExpression.parameters)}f(e.body)},AssignmentExpression(e){y(s.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator))},AssignmentPattern(e){y(s.getFirstTokenBetween(e.left,e.right,rs))},BinaryExpression(e){k(e.left,e.right,e.operator)},LogicalExpression(e){k(e.left,e.right,e.operator)},BlockStatement:E,ClassBody:E,CallExpression:d,ClassDeclaration(e){e.superClass&&w(e,[e.superClass])},ClassExpression(e){e.superClass&&w(e,[e.superClass])},ConditionalExpression(e){T(e,e.test,e.consequent,e.alternate)},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":function(e){f(e.body)},ExportNamedDeclaration(e){if(null===e.declaration){let t=e.source?s.getTokenBefore(e.source,rP.isClosingBraceToken):s.getLastToken(e,rP.isClosingBraceToken);if(p(e.specifiers,s.getFirstToken(e,{skip:1}),t,1),e.source){let n=s.getTokenAfter(t,e=>"Identifier"===e.type&&"from"===e.value),r=s.getLastToken(e,rP.isNotSemicolonToken);a.setDesiredOffsets([n.range[0],r.range[1]],s.getFirstToken(e),1);let i=s.getLastToken(e,rP.isClosingBraceToken);if(i&&e.source.range[1]<i.range[0]){let t=s.getTokenAfter(e.source,rP.isOpeningBraceToken);p(e.attributes,t,i,1)}}}},ExportAllDeclaration(e){let t=s.getTokenAfter(e.exported||s.getFirstToken(e),e=>"Identifier"===e.type&&"from"===e.value),n=s.getLastToken(e,rP.isNotSemicolonToken);a.setDesiredOffsets([t.range[0],n.range[1]],s.getFirstToken(e),1);let r=s.getLastToken(e,rP.isClosingBraceToken);if(r&&e.source.range[1]<r.range[0]){let t=s.getTokenAfter(e.source,rP.isOpeningBraceToken);p(e.attributes,t,r,1)}},ForStatement(e){let t=s.getFirstToken(e,1);e.init&&a.setDesiredOffsets(e.init.range,t,1),e.test&&a.setDesiredOffsets(e.test.range,t,1),e.update&&a.setDesiredOffsets(e.update.range,t,1),f(e.body)},"FunctionDeclaration, FunctionExpression":function(e){let t=s.getTokenBefore(e.returnType??e.body,{filter:rP.isClosingParenToken}),n=s.getTokenBefore(e.params.length?e.params[0].decorators?.[0]??e.params[0]:t,{filter:rP.isOpeningParenToken});l.add(n),l.add(t),p(e.params,n,t,i[e.type].parameters),e.returnType&&a.setDesiredOffsets(e.returnType.range,t,i[e.type].returnType)},IfStatement(e){f(e.consequent),e.alternate&&f(e.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit":function(e){let t;for(let n of("IfStatement"===e.type?(t=[e.consequent],e.alternate&&t.push(e.alternate)):t=[e.body],t)){let t=s.getLastToken(n);if((0,rP.isSemicolonToken)(t)){let n=s.getTokenBefore(t),r=s.getTokenAfter(t);!(0,rP.isTokenOnSameLine)(n,t)&&r&&(0,rP.isTokenOnSameLine)(t,r)&&a.setDesiredOffset(t,s.getFirstToken(e),0)}}},ImportDeclaration(e){if(e.specifiers.some(e=>"ImportSpecifier"===e.type)){let t=s.getFirstToken(e,rP.isOpeningBraceToken),n=s.getTokenBefore(e.source,rP.isClosingBraceToken);p(e.specifiers.filter(e=>"ImportSpecifier"===e.type),t,n,i.ImportDeclaration)}let t=e.specifiers.length?s.getTokenAfter(e.specifiers[e.specifiers.length-1],e=>"Identifier"===e.type&&"from"===e.value):s.getFirstToken(e,e=>"Identifier"===e.type&&"from"===e.value),n=s.getLastToken(e,rP.isNotSemicolonToken);t&&a.setDesiredOffsets([t.range[0],n.range[1]],s.getFirstToken(e),1);let r=s.getLastToken(e,rP.isClosingBraceToken);if(r&&e.source.range[1]<r.range[0]){let i=s.getTokenAfter(e.source,rP.isOpeningBraceToken);if(!t){let t=s.getTokenBefore(i,e=>"with"===e.value);a.setDesiredOffsets([t.range[0],n.range[1]],s.getFirstToken(e),1)}p(e.attributes,i,r,1)}},ImportExpression(e){let t=s.getFirstToken(e,1),n=s.getLastToken(e);l.add(t),l.add(n),a.setDesiredOffset(t,s.getTokenBefore(t),0),p([e.source],t,n,i.CallExpression.arguments)},MemberExpression(e){S(e,e.object,e.property,e.computed)},MetaProperty(e){S(e,e.meta,e.property)},NewExpression(e){(e.arguments.length>0||(0,rP.isClosingParenToken)(s.getLastToken(e))&&(0,rP.isOpeningParenToken)(s.getLastToken(e,1)))&&d(e)},Property(e){if(!e.shorthand&&!e.method&&"init"===e.kind){let t=s.getFirstTokenBetween(e.key,e.value,rP.isColonToken);a.ignoreToken(s.getTokenAfter(t))}},PropertyDefinition:v,AccessorProperty:v,TSAbstractPropertyDefinition:v,TSAbstractAccessorProperty:v,StaticBlock(e){let t=s.getFirstToken(e,{skip:1}),n=s.getLastToken(e);p(e.body,t,n,i.StaticBlock.body)},SwitchStatement(e){let t=s.getTokenAfter(e.discriminant,rP.isOpeningBraceToken),n=s.getLastToken(e);a.setDesiredOffsets([t.range[1],n.range[0]],t,i.SwitchCase),e.cases.length&&rF(s,e.cases[e.cases.length-1],n).forEach(e=>a.ignoreToken(e))},SwitchCase(e){if(1!==e.consequent.length||"BlockStatement"!==e.consequent[0].type){let t=s.getFirstToken(e),n=s.getTokenAfter(e);a.setDesiredOffsets([t.range[1],n.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach((t,o)=>{let l=e.quasis[o],c=e.quasis[o+1],u=r_(l)?s.getFirstToken(l):null,p=(0,rP.isTokenOnSameLine)(l,t),f=(0,rP.isTokenOnSameLine)(t,c);if(u||f&&!p){a.setDesiredOffsets([l.range[1],c.range[0]],u,1),a.setDesiredOffset(s.getFirstToken(c),u,0);return}let d=s.text.slice(l.range[1]-l.loc.end.column,l.range[1]-2).split(""),m=d.findIndex(e=>" "!==e&&" "!==e);-1===m&&(m=d.length);let h=d.slice(0,m).filter(e=>" "===e).length,g=m-h+Math.ceil(h/("tab"===n?i.tabLength:r)),y=f?g:g+1;a.setDesiredOffsets([l.range[1],c.range[0]],u,y),a.setDesiredOffset(s.getFirstToken(c),u,g)})},VariableDeclaration(e){if(0===e.declarations.length)return;let t="await using"===e.kind?"using":e.kind,n=Object.prototype.hasOwnProperty.call(i.VariableDeclarator,t)?i.VariableDeclarator[t]:1,l="first"===n,c=s.getFirstToken(e),u=s.getLastToken(e);if(e.declarations.at(-1).loc.start.line>e.loc.start.line){if(l){p(e.declarations,c,u,n);let t=s.getFirstToken(e.declarations[0]);n=(o.getTokenIndent(t).length-o.getTokenIndent(c).length)/r}a.setDesiredOffsets(e.range,c,n,!0)}else l&&(n=1),a.setDesiredOffsets(e.range,c,n);(0,rP.isSemicolonToken)(u)&&a.ignoreToken(u)},VariableDeclarator(e){e.init&&y(s.getTokenBefore(e.init,rP.isNotOpeningParenToken));let t=s.getLastToken(e);(0,rP.isSemicolonToken)(t)&&a.ignoreToken(t)},JSXText(t){if(!t.parent||"JSXElement"!==t.parent.type&&"JSXFragment"!==t.parent.type)return;let i=t.value,s="space"===n?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,o=Array.from(String(i).matchAll(s),e=>e[1]?e[1].length:0),a=o.length>0,l=function(t,r=!1,i=!1){let s=e.sourceCode.getText(t,t.loc.start.column),o=s.split("\n");s=r?o[o.length-1]:o[0];let a=i?",":"",l=("space"===n?RegExp(`^[ ${a}]+`):RegExp(`^[ ${a}]+`)).exec(s);return l?l[0].length:0}(t.parent)+r;a&&!o.every(e=>e===l)&&o.forEach(r=>{e.report({node:t,messageId:"wrongIndentation",data:c(l,r,r),fix(e){let r="space"===n?" ":" ",i=Array(l+1).join(r),s=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
3
- ${i}${t}`);return e.replaceText(t,s)}})})},JSXAttribute(e){e.value&&y(s.getFirstTokenBetween(e.name,e.value,rs))},JSXElement(e){e.closingElement&&p(e.children,s.getFirstToken(e.openingElement),s.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){let t,n=s.getFirstToken(e);e.selfClosing?(t=s.getLastToken(e,{skip:1}),a.setDesiredOffset(s.getLastToken(e),t,0)):t=s.getLastToken(e),a.setDesiredOffsets(e.name.range,n,0),p(e.attributes,n,t,1)},JSXClosingElement(e){let t=s.getFirstToken(e);a.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){let t=s.getFirstToken(e.openingFragment),n=s.getFirstToken(e.closingFragment);p(e.children,t,n,1)},JSXOpeningFragment(e){let t=s.getFirstToken(e),n=s.getLastToken(e);a.setDesiredOffsets(e.range,t,1),a.matchOffsetOf(t,n)},JSXClosingFragment(e){let t=s.getFirstToken(e),n=s.getLastToken(e);a.setDesiredOffsets(e.range,t,1);let r=s.getLastToken(e,e=>"/"===e.value);if(r){let e=(0,rP.isTokenOnSameLine)(r,n)?r:n;a.matchOffsetOf(t,e)}},JSXExpressionContainer(e){let t=s.getFirstToken(e),n=s.getLastToken(e);a.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXSpreadAttribute(e){let t=s.getFirstToken(e),n=s.getLastToken(e);a.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXMemberExpression(e){S(e,e.object,e.property)},TSTypeAliasDeclaration(e){y(s.getTokenBefore(e.typeAnnotation,rP.isNotOpeningParenToken));let t=s.getLastToken(e);(0,rP.isSemicolonToken)(t)&&a.ignoreToken(t)},TSTupleType:x,TSEnumBody:E,TSEnumMember(e){e.initializer&&y(s.getTokenBefore(e.initializer,rs))},TSTypeLiteral(e){b(e,e.members)},TSMappedType(e){let t=s.getTokenBefore(e.constraint||e.typeParameter),n=[{parent:e,type:e7.AST_NODE_TYPES.Property,key:e.key||e.typeParameter,value:e.typeAnnotation,range:[t.range[0],e.typeAnnotation?e.typeAnnotation.range[1]:t.range[0]],loc:{start:t.loc.start,end:e.typeAnnotation?e.typeAnnotation.loc.end:t.loc.end},kind:"init",computed:!1,method:!1,optional:!1,shorthand:!1}];b(e,n)},TSAsExpression(e){k(e.expression,e.typeAnnotation,"as")},TSConditionalType(e){T(e,{parent:e,type:e7.AST_NODE_TYPES.BinaryExpression,operator:"extends",left:e.checkType,right:e.extendsType,range:[e.checkType.range[0],e.extendsType.range[1]],loc:{start:e.checkType.loc.start,end:e.extendsType.loc.end}},e.trueType,e.falseType)},TSImportEqualsDeclaration(e){e.moduleReference&&y(s.getTokenBefore(e.moduleReference,rs));let t=s.getLastToken(e);(0,rP.isSemicolonToken)(t)&&a.ignoreToken(t)},TSIndexedAccessType(e){S(e,e.objectType,e.indexType,!0)},TSInterfaceBody:E,TSInterfaceDeclaration(e){0!==e.extends.length&&w(e,e.extends)},TSQualifiedName(e){S(e,e.left,e.right)},TSTypeParameter(e){e.default&&y(s.getTokenBefore(e.default,rs))},TSTypeParameterDeclaration(e){if(!e.params.length)return;let t=s.getFirstToken(e),n=s.getLastToken(e);p(e.params,t,n,1)},TSTypeParameterInstantiation(e){if(!e.params.length)return;let t=s.getFirstToken(e),n=s.getLastToken(e);p(e.params,t,n,1)},TSModuleBlock:E,"*":function(e){let t=s.getFirstToken(e);t&&!g.has(t)&&a.setDesiredOffsets(e.range,t,0)}}))C[t]=e=>A.push({listener:u,node:e});let D=new Set;function _(e){D.add(e),g.add(s.getFirstToken(e))}let O=i.ignoredNodes.reduce((e,t)=>Object.assign(e,{[t]:_}),{});return{...C,...O,"*:exit":function(e){ip.has(e.type)||_(e)},"Program:exit":function(){i.ignoreComments&&s.getAllComments().forEach(e=>a.ignoreToken(e));for(let e=0;e<A.length;e++){let t=A[e];D.has(t.node)||t.listener?.(t.node)}D.forEach(m),function(e){let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];(0,rP.isOpeningParenToken)(i)?t.push(i):(0,rP.isClosingParenToken)(i)&&n.push({left:t.pop(),right:i})}for(let e=n.length-1;e>=0;e--){let t=n[e].left,r=n[e].right;if(!l.has(t)&&!l.has(r)){let e=new Set(s.getTokensBetween(t,r));e.forEach(n=>{e.has(a.getFirstDependency(n))||a.setDesiredOffset(n,t,1)})}a.setDesiredOffset(r,t,0)}}(s.ast.tokens);let t=new WeakMap;for(let e=0;e<s.ast.comments.length;e++){let n=s.ast.comments[e],r=s.getTokenBefore(n,{includeComments:!0}),i=t.has(r)?t.get(r):r;t.set(n,i)}for(let n=1;n<s.lines.length+1;n++){if(!o.firstTokensByLineNumber.has(n))continue;let r=o.firstTokensByLineNumber.get(n);if(r.loc.start.line===n){if((0,rP.isCommentToken)(r)){let e=t.get(r),n=e?s.getTokenAfter(e):s.ast.tokens[0],i=e&&!h(e,r),o=n&&!h(r,n);if(n&&(0,rP.isSemicolonToken)(n)&&!(0,rP.isTokenOnSameLine)(r,n)&&a.setDesiredOffset(r,n,0),i&&u(r,a.getDesiredIndent(e))||o&&u(r,a.getDesiredIndent(n)))continue}u(r,a.getDesiredIndent(r))||function(t,n){let r=Array.from(o.getTokenIndent(t)),i=r.filter(e=>" "===e).length,s=r.filter(e=>" "===e).length;e.report({node:t,messageId:"wrongIndentation",data:c(n.length,i,s),loc:{start:{line:t.loc.start.line,column:0},end:{line:t.loc.start.line,column:t.loc.start.column}},fix(e){let r=[t.range[0]-t.loc.start.column,t.range[0]];return e.replaceTextRange(r,n)}})}(r,a.getDesiredIndent(r))}}}}}});const ix=new Set(["a","abbr","acronym","b","bdo","big","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","tt","var"]);var ib=rj({name:"jsx-child-element-spacing",meta:{type:"layout",docs:{description:"Enforce or disallow spaces inside of curly braces in JSX attributes and expressions"},messages:{spacingAfterPrev:"Ambiguous spacing after previous element {{element}}",spacingBeforeNext:"Ambiguous spacing before next element {{element}}"},schema:[]},create(e){let t=/^[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*\S/,n=/\S[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*$/,r=e=>e.openingElement&&e.openingElement.name&&"JSXIdentifier"===e.openingElement.name.type&&e.openingElement.name.name||"",i=e=>"JSXElement"===e.type&&ix.has(r(e)),s=s=>{let o=null,a=null;[...s.children,null].forEach(s=>{(o||s)&&(!o||i(o))&&a&&("Literal"===a.type||"JSXText"===a.type)&&(!s||i(s))&&(o&&String(a.value).match(t)?e.report({messageId:"spacingAfterPrev",node:o,loc:o.loc.end,data:{element:r(o)}}):s&&String(a.value).match(n)&&e.report({messageId:"spacingBeforeNext",node:s,loc:s.loc.start,data:{element:r(s)}})),o=a,a=s})};return{JSXElement:s,JSXFragment:s}}}),iT=rj({name:"jsx-closing-bracket-location",meta:{type:"layout",docs:{description:"Enforce closing bracket location in JSX"},fixable:"code",messages:{bracketLocation:"The closing bracket must be {{location}}{{details}}"},schema:[{anyOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"object",properties:{location:{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]}},additionalProperties:!1},{type:"object",properties:{nonEmpty:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]},selfClosing:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]}},additionalProperties:!1}]}]},create(e){let t={"after-props":"placed after the last prop","after-tag":"placed after the opening tag","props-aligned":"aligned with the last prop","tag-aligned":"aligned with the opening tag","line-aligned":"aligned with the line containing the opening tag"},n="tag-aligned",r=e.options[0],i={nonEmpty:n,selfClosing:n};function s(e,t){switch(t){case"props-aligned":return e.lastProp.column;case"tag-aligned":return e.opening.column;case"line-aligned":return e.openingStartOfLine.column;default:return null}}function o(e,t){switch(t){case"after-tag":return e.tag.line===e.closing.line;case"after-props":return e.lastProp.lastLine===e.closing.line;case"props-aligned":case"tag-aligned":case"line-aligned":return s(e,t)===e.closing.column;default:return!0}}return"string"==typeof r?(i.nonEmpty=r,i.selfClosing=r):"object"==typeof r&&("location"in r&&(i.nonEmpty=r.location,i.selfClosing=r.location),"nonEmpty"in r&&(i.nonEmpty=r.nonEmpty),"selfClosing"in r&&(i.selfClosing=r.selfClosing)),{"JSXOpeningElement:exit":function(n){let r,a=n.attributes.at(-1),l=a?a.range[1]:null,c=function(t){let n,r=e.sourceCode,i=r.getFirstToken(t).loc.start,s=r.getLastTokens(t,t.selfClosing?2:1)[0].loc.start,o=r.getFirstToken(t.name).loc.start;t.attributes.length&&(n=t.attributes[t.attributes.length-1],n={column:r.getFirstToken(n).loc.start.column,firstLine:r.getFirstToken(n).loc.start.line,lastLine:r.getLastToken(n).loc.end.line});let a=r.lines[i.line-1],l=r.lines[s.line-1],c={openTab:/^\t/.test(a),closeTab:/^\t/.test(l)},u={column:/^\s*/.exec(a)?.[0].length,line:i.line};return{isTab:c,tag:o,opening:i,closing:s,lastProp:n,selfClosing:t.selfClosing,openingStartOfLine:u}}(n),u=void 0===c.lastProp?"after-tag":c.opening.line===c.lastProp.lastLine?"after-props":c.selfClosing?i.selfClosing:i.nonEmpty,p=!0;"tag-aligned"===u&&(p=c.isTab.openTab===c.isTab.closeTab);let f=e.sourceCode.getCommentsInside(n).at(-1),d=f&&f.range[0]>(a??n.name).range[1];if(("after-props"===u||"after-tag"===u)&&!(o(c,u)&&p)&&d&&(u="line-aligned"),o(c,u)&&p)return;let m={location:t[u],details:""},h=s(c,u);null!==h&&(r=c.lastProp&&c.lastProp.lastLine===c.closing.line,m.details=` (expected column ${h+1}${r?" on the next line)":")"}`),e.report({node:n,messageId:"bracketLocation",loc:c.closing,data:m,fix(t){let i=c.selfClosing?"/>":">";switch(u){case"after-tag":if(l)return t.replaceTextRange([l,n.range[1]],(r?"\n":"")+i);return t.replaceTextRange([n.name.range[1],n.range[1]],(r?"\n":" ")+i);case"after-props":return t.replaceTextRange([l,n.range[1]],(r?"\n":"")+i);case"props-aligned":case"tag-aligned":case"line-aligned":{let r=d?f.range[1]:l;return t.replaceTextRange([r,n.range[1]],`
4
- ${function(t,n,r){let i,s=[];switch(n){case"props-aligned":i=/^\s*/.exec(e.sourceCode.lines[t.lastProp.firstLine-1])[0];break;case"tag-aligned":case"line-aligned":i=/^\s*/.exec(e.sourceCode.lines[t.opening.line-1])[0];break;default:i=""}return i.length+1<(r||0)&&(s=Array.from({length:+r+1-i.length})),i+s.join(" ")}(c,u,h)}${i}`)}}return null}})}}}});const ik="tag-aligned",iS={"tag-aligned":"matchIndent","line-aligned":"alignWithOpening"};var iE=rj({name:"jsx-closing-tag-location",meta:{type:"layout",docs:{description:"Enforce closing tag location for multiline JSX"},fixable:"whitespace",messages:{onOwnLine:"Closing tag of a multiline JSX expression must be on its own line.",matchIndent:"Expected closing tag to match indentation of opening.",alignWithOpening:"Expected closing tag to be aligned with the line containing the opening tag"},schema:[{anyOf:[{type:"string",enum:["tag-aligned","line-aligned"],default:ik}]}]},defaultOptions:[ik],create(e){let t=e.options[0]||ik;function n(n){if(!n.parent)return;let r=e.sourceCode,i="openingFragment"in n.parent?n.parent.openingFragment:n.parent.openingElement,s=r.getFirstToken(i).loc.start,o=r.lines[s.line-1],a={column:/^\s*/.exec(o)?.[0].length,line:s.line};if(i.loc.start.line===n.loc.start.line||i.loc.start.column===n.loc.start.column&&"tag-aligned"===t||a.column===n.loc.start.column&&"line-aligned"===t)return;let l=rC(e,n)?iS[t]:"onOwnLine";e.report({node:n,messageId:l,loc:n.loc,fix(r){let s=Array((("line-aligned"===t?a.column:i.loc.start.column)||0)+1).join(" ");return rC(e,n)?r.replaceTextRange([n.range[0]-n.loc.start.column,n.range[0]],s):r.insertTextBefore(n,`
5
- ${s}`)}})}return{JSXClosingElement:n,JSXClosingFragment:n}}});const iw="always",iv="never",iA="ignore",iC=[iw,iv,iA],iD={props:iv,children:iv,propElementValues:iA};var i_=rj({name:"jsx-curly-brace-presence",meta:{type:"layout",docs:{description:"Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes"},fixable:"code",messages:{unnecessaryCurly:"Curly braces are unnecessary here.",missingCurly:"Need to wrap this literal in a JSX expression."},schema:[{anyOf:[{type:"object",properties:{props:{type:"string",enum:iC},children:{type:"string",enum:iC},propElementValues:{type:"string",enum:iC}},additionalProperties:!1},{type:"string",enum:iC}]}]},create(e){let t=e.options[0],n="string"==typeof t?{props:t,children:t,propElementValues:iA}:Object.assign({},iD,t);function r(e){return rP.LINEBREAK_MATCHER.test(e)}function i(e){return/&[A-Z\d#]+;/gi.test(e)}function s(e){return""===e.replace(/&[A-Z\d#]+;/gi,"").trim()}function o(e){return/['"]/.test(e)}function a(e,t){return e.includes("\\")||i(e)||"JSXAttribute"!==t.parent.type&&/[{<>}]/.test(e)}function l(e){if("JSXExpressionContainer"===e.type){let t=e.expression.value;return!!t&&rv(t)}return!1}function c(e){return r(e)&&""===e.trim()}function u(t){e.report({messageId:"unnecessaryCurly",node:t,fix(n){let r,i=t.expression;return r=rM(i)?e.sourceCode.getText(i):"JSXAttribute"===t.parent.type?`"${"TemplateLiteral"===i.type?i.quasis[0].value.raw:i.raw.slice(1,-1)}"`:rM(i)?e.sourceCode.getText(i):"TemplateLiteral"===i.type?i.quasis[0].value.cooked:i.value,n.replaceText(t,r)}})}function p(e){return e.type&&"Literal"===e.type&&e.value&&rv(e.value)}function f(e){return/^\s|\s$/.test(e)}function d(e,t,n){return"JSXAttribute"===e.type&&"string"==typeof t.props&&t.props===n||rM(e)&&"string"==typeof t.children&&t.children===n}function m(e,t){for(let n=1;n<t.length-1;n++)if(e===t[n])return[t[n-1],t[n+1]];return e===t[0]&&t[1]?[t[1]]:e===t[t.length-1]&&t[t.length-2]?[t[t.length-2]]:[]}return{"JSXAttribute > JSXExpressionContainer > JSXElement":function(e){n.propElementValues===iv&&u(e.parent)},JSXExpressionContainer(t){(function(e,t){var n,r;let i=e.parent;return!(i.type&&"JSXAttribute"===i.type&&e.expression&&e.expression.type&&"Literal"!==e.expression.type&&"StringLiteral"!==e.expression.type&&"TemplateLiteral"!==e.expression.type||rM(i)&&(n=i.children)&&m(e,n.filter(e=>!p(e))).some(e=>e.type&&"JSXExpressionContainer"===e.type))&&!(l(e)&&(r=i.children)&&m(e,r.filter(e=>!p(e))).some(e=>e.type&&["JSXExpressionContainer","JSXElement"].includes(e.type))||i.children&&1===i.children.length&&l(e))&&d(i,t,iv)})(t,n)&&function(t){let n=t.expression,r=n.type,i=e.sourceCode;if(!i.getCommentsInside||!(i.getCommentsInside(t).length>0)){var s;!(("Literal"===r||"JSXText"===r)&&"string"==typeof n.value&&("JSXAttribute"===t.parent.type&&!p(n)||!(n.type&&"Literal"===n.type&&n.value&&f(n.value)))&&(s=n.value,!/\/\*/.test(s))&&!a(n.raw,t)&&(rM(t.parent)||!o(n.value)))?"TemplateLiteral"!==r||0!==n.expressions.length||n.quasis[0].value.raw.includes("\n")||f(n.quasis[0].value.raw)||a(n.quasis[0].value.raw,t)||o(n.quasis[0].value.cooked)?rM(n)&&u(t):u(t):u(t)}}(t)},"JSXAttribute > JSXElement, Literal, JSXText":function(t){(function(e,t){if(rM(e))return t.propElementValues!==iA;if(c(e.raw)||s(e.raw))return!1;let n=e.parent;return!(n.children&&1===n.children.length&&l(n.children[0]))&&d(n,t,iw)})(t,n)&&e.report({messageId:"missingCurly",node:t,fix(n){var o;if(rM(t))return n.replaceText(t,`{${e.sourceCode.getText(t)}}`);if(s(t.raw)||"JSXAttribute"===t.parent.type&&r(t.raw)||c(t.raw))return null;let a="JSXAttribute"===t.parent.type?`{"${t.raw.slice(1,-1).replace(/\\/g,"\\\\").replace(/\\"/g,'"').replace(/"/g,'\\"')}"}`:r(o=t.raw)?o.split("\n").map(e=>{if(""===e.trim())return e;let t=e.search(/\S/),n=e.slice(0,t),r=e.slice(t);return i(e)?`${n}${function(e){let t="<HTML_ENTITY>",n=e.split(/&[A-Z\d#]+;/gi).map(e=>""===e?"":`{${JSON.stringify(e)}}`).join(t);return e.match(/&[A-Z\d#]+;/gi).reduce((e,n)=>e.replace(t,n),n)}(r)}`:`${n}{${JSON.stringify(r)}}`}).join("\n"):`{${JSON.stringify(o)}}`;return n.replaceText(t,a)}})}}}}),iO=rj({name:"jsx-curly-newline",meta:{type:"layout",docs:{description:"Enforce consistent linebreaks in curly braces in JSX attributes and expressions"},fixable:"whitespace",schema:[{anyOf:[{type:"string",enum:["consistent","never"]},{type:"object",properties:{singleline:{type:"string",enum:["consistent","require","forbid"]},multiline:{type:"string",enum:["consistent","require","forbid"]}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before '}'.",expectedAfter:"Expected newline after '{'.",unexpectedBefore:"Unexpected newline before '}'.",unexpectedAfter:"Unexpected newline after '{'."}},create(e){let t=e.sourceCode,n=function(e){let t=e.options[0]||"consistent";return"consistent"===t?{multiline:"consistent",singleline:"consistent"}:"never"===t?{multiline:"forbid",singleline:"forbid"}:{multiline:t.multiline||"consistent",singleline:t.singleline||"consistent"}}(e);return{JSXExpressionContainer(r){!function(r,i){let s=r.leftCurly,o=r.rightCurly,a=t.getTokenAfter(s),l=t.getTokenBefore(o),c=!(0,rP.isTokenOnSameLine)(s,a),u=!(0,rP.isTokenOnSameLine)(l,o),p=function(e,t){switch(!r_(e)?n.multiline:n.singleline){case"forbid":return!1;case"require":return!0;default:return t}}(i,c);c&&!p?e.report({node:s,messageId:"unexpectedAfter",fix:e=>t.getText().slice(s.range[1],a?.range[0]).trim()?null:e.removeRange([s.range[1],a.range[0]])}):!c&&p&&e.report({node:s,messageId:"expectedAfter",fix:e=>e.insertTextAfter(s,"\n")}),u&&!p?e.report({node:o,messageId:"unexpectedBefore",fix:e=>t.getText().slice(l.range[1],o.range[0]).trim()?null:e.removeRange([l.range[1],o.range[0]])}):!u&&p&&e.report({node:o,messageId:"expectedBefore",fix:e=>e.insertTextBefore(o,"\n")})}({leftCurly:t.getFirstToken(r),rightCurly:t.getLastToken(r)},r.expression)}}}});const iF="always",iP="never",iI=[iF,iP],iB={type:"object",properties:{when:{type:"string",enum:iI},allowMultiline:{type:"boolean"},spacing:{type:"object",properties:{objectLiterals:{type:"string",enum:iI}},additionalProperties:!1}},additionalProperties:!1},iL={anyOf:[iB,{type:"boolean"}]};var iN=rj({name:"jsx-curly-spacing",meta:{type:"layout",docs:{description:"Enforce or disallow spaces inside of curly braces in JSX attributes and expressions"},fixable:"code",messages:{noNewlineAfter:"There should be no newline after '{{token}}'",noNewlineBefore:"There should be no newline before '{{token}}'",noSpaceAfter:"There should be no space after '{{token}}'",noSpaceBefore:"There should be no space before '{{token}}'",spaceNeededAfter:"A space is required after '{{token}}'",spaceNeededBefore:"A space is required before '{{token}}'"},schema:{type:"array",items:[{anyOf:[{type:"object",additionalProperties:!1,properties:{...iB.properties,attributes:iL,children:iL}},{type:"string",enum:iI}]},{type:"object",properties:{allowMultiline:{type:"boolean"},spacing:{type:"object",properties:{objectLiterals:{type:"string",enum:iI}},additionalProperties:!1}},additionalProperties:!1}]}},create(e){function t(e,n,r=!1){let i=!0===e?{}:e,s=i.when||n.when,o="allowMultiline"in i?i.allowMultiline:n.allowMultiline,a=(i.spacing||{}).objectLiterals||n.objectLiteralSpaces;return r&&(a=a||s),{when:s,allowMultiline:o,objectLiteralSpaces:a}}let n=e.options[0]||{};iI.includes(n)&&(n=Object.assign({when:e.options[0]},e.options[1]));let r=t(n,{when:iP,allowMultiline:!0}),i=!("attributes"in n)||n.attributes,s=i?t(i,r,!0):null,o="children"in n&&n.children,a=o?t(o,r,!0):null;function l(t,n,r,i,s=""){let o=e.sourceCode.text.slice(n,r);return o="start"===i?o.replace(/^\s+/gm,""):o.replace(/\s+$/gm,""),s===iF&&("start"===i?o+=" ":o=` ${o}`),t.replaceTextRange([n,r],o)}function c(t,n,r){e.report({node:t,loc:n.loc.start,messageId:"noNewlineAfter",data:{token:n.value},fix(t){let i=e.sourceCode.getTokenAfter(n);return l(t,n.range[1],i.range[0],"start",r)}})}function u(t,n,r){e.report({node:t,loc:n.loc.start,messageId:"noNewlineBefore",data:{token:n.value},fix:t=>l(t,e.sourceCode.getTokenBefore(n).range[1],n.range[0],"end",r)})}function p(t){let n;switch(t.parent?.type){case"JSXAttribute":case"JSXOpeningElement":n=s;break;case"JSXElement":case"JSXFragment":n=a;break;default:return}if(null===n)return;let r=e.sourceCode,i=r.getFirstToken(t),o=r.getLastToken(t),p=r.getTokenAfter(i,{includeComments:!0}),f=r.getTokenBefore(o,{includeComments:!0});if(!p){p=r.getTokenAfter(i);let e=r.getCommentsBefore(p);p=e?e[0]:p}if(!f){f=r.getTokenBefore(o);let e=r.getCommentsAfter(f);f=e?e[e.length-1]:f}let d=i.value===p.value?n.objectLiteralSpaces:n.when;d===iF?(r.isSpaceBetween(i,p)?n.allowMultiline||(0,rP.isTokenOnSameLine)(i,p)||c(t,i,d):e.report({node:t,loc:i.loc.start,messageId:"spaceNeededAfter",data:{token:i.value},fix:e=>e.insertTextAfter(i," ")}),r.isSpaceBetween(f,o)?n.allowMultiline||(0,rP.isTokenOnSameLine)(f,o)||u(t,o,d):e.report({node:t,loc:o.loc.start,messageId:"spaceNeededBefore",data:{token:o.value},fix:e=>e.insertTextBefore(o," ")})):d===iP&&((0,rP.isTokenOnSameLine)(i,p)?r.isSpaceBetween(i,p)&&e.report({node:t,loc:i.loc.start,messageId:"noSpaceAfter",data:{token:i.value},fix(t){let n=e.sourceCode,r=n.getTokenAfter(i),s=n.getCommentsAfter(i);return s.length>0?l(t,i.range[1],Math.min(r.range[0],s[0].range[0]),"start"):l(t,i.range[1],r.range[0],"start")}}):n.allowMultiline||c(t,i,d),(0,rP.isTokenOnSameLine)(f,o)?r.isSpaceBetween(f,o)&&e.report({node:t,loc:o.loc.start,messageId:"noSpaceBefore",data:{token:o.value},fix(t){let n=e.sourceCode,r=n.getTokenBefore(o),i=n.getCommentsBefore(o);return i.length>0?l(t,Math.max(r.range[1],i[0].range[1]),o.range[0],"end"):l(t,r.range[1],o.range[0],"end")}}):n.allowMultiline||u(t,o,d))}return{JSXExpressionContainer:p,JSXSpreadAttribute:p}}}),ij=rj({name:"jsx-equals-spacing",meta:{type:"layout",docs:{description:"Enforce or disallow spaces around equal signs in JSX attributes"},fixable:"code",messages:{noSpaceBefore:"There should be no space before '='",noSpaceAfter:"There should be no space after '='",needSpaceBefore:"A space is required before '='",needSpaceAfter:"A space is required after '='"},schema:[{type:"string",enum:["always","never"]}]},create(e){let t=e.options[0]||"never";return{JSXOpeningElement(n){n.attributes.forEach(n=>{if("JSXSpreadAttribute"===n.type||null===n.value)return;let r=e.sourceCode,i=r.getTokenAfter(n.name),s=r.isSpaceBetween(n.name,i),o=r.isSpaceBetween(i,n.value);"never"===t?(s&&e.report({node:n,messageId:"noSpaceBefore",loc:i.loc.start,fix:e=>e.removeRange([n.name.range[1],i.range[0]])}),o&&e.report({node:n,messageId:"noSpaceAfter",loc:i.loc.start,fix:e=>e.removeRange([i.range[1],n.value.range[0]])})):"always"===t&&(s||e.report({messageId:"needSpaceBefore",node:n,loc:i.loc.start,fix:e=>e.insertTextBefore(i," ")}),o||e.report({node:n,messageId:"needSpaceAfter",loc:i.loc.start,fix:e=>e.insertTextAfter(i," ")}))})}}}}),iR=rj({name:"jsx-first-prop-new-line",meta:{type:"layout",docs:{description:"Enforce proper position of the first property in JSX"},fixable:"code",messages:{propOnNewLine:"Property should be placed on a new line",propOnSameLine:"Property should be placed on the same line as the component declaration"},schema:[{type:"string",enum:["always","never","multiline","multiline-multiprop","multiprop"]}]},create(e){let t=e.options[0]||"multiline-multiprop";return{JSXOpeningElement(n){if("multiline"===t&&!r_(n)||"multiline-multiprop"===t&&!r_(n)&&n.attributes.length>1||"multiprop"===t&&n.attributes.length>1||"always"===t)n.attributes.some(t=>(t.loc.start.line===n.loc.start.line&&e.report({node:t,messageId:"propOnNewLine",fix:e=>e.replaceTextRange([(n.typeArguments||n.name).range[1],t.range[0]],"\n")}),!0));else if("never"===t&&n.attributes.length>0||"multiprop"===t&&!r_(n)&&n.attributes.length<=1){let t=n.attributes[0];n.loc.start.line<t.loc.start.line&&e.report({node:t,messageId:"propOnSameLine",fix:e=>e.replaceTextRange([n.name.range[1],t.range[0]]," ")})}}}}}),iq=rj({name:"jsx-function-call-newline",meta:{type:"layout",docs:{description:"Enforce line breaks before and after JSX elements when they are used as arguments to a function."},fixable:"whitespace",messages:{missingLineBreak:"Missing line break around JSX"},schema:[{type:"string",enum:["always","multiline"]}]},create(e){let t=e.options[0]||"multiline";function n(n){if(!n||!rM(n))return;let r=e.sourceCode;if("always"===t||!r_(n)){let t=function(t){let n=e.sourceCode.getTokenBefore(t);return!!(0,rP.isTokenOnSameLine)(n,t)}(n),i=function(t){let n=e.sourceCode.getTokenAfter(t);return!function(e,t){let n=e.sourceCode.getTokenAfter(t);return!!n&&","===n.value&&n.range[0]>=t.range[1]}(e,t)&&t.loc.end.line===n.loc.end.line}(n);(t||i)&&e.report({node:n,messageId:"missingLineBreak",fix:e=>{let s=r.getText(n);return t&&(s=`
6
- ${s}`),i&&(s=`${s}
7
- `),e.replaceText(n,s)}})}}function r(e){0!==e.arguments.length&&e.arguments.forEach(n)}return{CallExpression(e){r(e)},NewExpression(e){r(e)}}}}),iM=rj({name:"jsx-indent-props",meta:{type:"layout",docs:{description:"Enforce props indentation in JSX"},fixable:"code",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"},{type:"object",properties:{indentMode:{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"}]},ignoreTernaryOperator:{type:"boolean"}},additionalProperties:!1}]}]},create(e){let t=e.options[0],n="space",r=4,i={isUsingOperator:!1,currentOperator:!1},s=!1;if(e.options.length){let i="object"==typeof e.options[0]?"object"==typeof t&&t.indentMode:t;"first"===i?(r="first",n="space"):"tab"===i?(r=1,n="tab"):"number"==typeof i&&(r=i,n="space"),"object"==typeof t&&t.ignoreTernaryOperator&&(s=!0)}function o(t){let r=e.sourceCode.getText(t,t.loc.start.column+0);r=r.split("\n")[0];let s=("space"===n?/^ +/:/^\t+/).exec(r),o=/^[ \t]*:/.test(r)||/^[ \t]*\?/.test(r),a=/</.test(r);return i.currentOperator=!1,o?(i.isUsingOperator=!0,i.currentOperator=!0):a&&(i.isUsingOperator=!1),s?s[0].length:0}return{JSXOpeningElement(t){let a;if(t.attributes.length){var l;let c;a="first"===r?t.attributes[0].loc.start.column:o(t)+r,l=t.attributes,c=a,l.forEach(t=>{let a=o(t);!i.isUsingOperator||i.currentOperator||"first"===r||s||(c+=r,i.isUsingOperator=!1),"ArrayExpression"!==t.type&&"ObjectExpression"!==t.type&&a!==c&&rC(e,t)&&e.report({node:t,messageId:"wrongIndent",data:{needed:c,type:n,characters:1===c?"character":"characters",gotten:a},fix:e=>e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],Array(c+1).join("space"===n?" ":" "))})})}}}}}),iV=rj({name:"jsx-indent",meta:{type:"layout",docs:{description:"Enforce JSX indentation. Deprecated, use `indent` rule instead."},deprecated:{message:"The rule was replaced with a more general rule.",deprecatedSince:"5.0.0",replacedBy:[{rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},fixable:"whitespace",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab"]},{type:"integer"}]},{type:"object",properties:{checkAttributes:{type:"boolean"},indentLogicalExpressions:{type:"boolean"}},additionalProperties:!1}]},create(e){let t="space",n=4;e.options.length&&("tab"===e.options[0]?(n=1,t="tab"):"number"==typeof e.options[0]&&(n=e.options[0],t="space"));let r="space"===t?" ":" ",i=e.options[1]||{},s=i.checkAttributes||!1,o=i.indentLogicalExpressions||!1;function a(n,i,s,o){let a={needed:i,type:t,characters:1===i?"character":"characters",gotten:s};e.report({node:n,messageId:"wrongIndent",data:a,fix:function(t,n){let i=Array(n+1).join(r);if("JSXText"===t.type||"Literal"===t.type)return function(e){let n=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
8
- ${i}${t}`);return e.replaceText(t,n)};if("ReturnStatement"===t.type){let n=e.sourceCode.getText(t);if(n.split("\n").length>1)return function(e){let r=n.lastIndexOf("\n"),s=n.slice(r).replace(/^\n[\t ]*(\S)/,(e,t)=>`
9
- ${i}${t}`);return e.replaceTextRange([t.range[0]+r,t.range[1]],s)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],i)}}(n,i),...{}})}function l(n,r=!1,i=!1){let s=e.sourceCode.getText(n,n.loc.start.column+0),o=s.split("\n");s=r?o[o.length-1]:o[0];let a=i?",":"",c=("space"===t?RegExp(`^[ ${a}]+`):RegExp(`^[ ${a}]+`)).exec(s);return c?c[0].length:0}function c(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!o}function u(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function p(t,r,i=!1){let s=l(t,!1,i),o=c(t)&&s-r===n,f=u(t)&&s-r==0;s!==r&&rC(e,t)&&!o&&!f&&a(t,r,s)}function f(t){let r=e.sourceCode,i=r.getTokenBefore(t);if(!i)return;if("JSXText"===i.type||(0,rP.isCommaToken)(i))i="Literal"===(i=r.getNodeByRangeIndex(i.range[0])).type||"JSXText"===i.type?i.parent:i;else if((0,rP.isColonToken)(i)){do i=r.getTokenBefore(i);while("Punctuator"===i.type&&"/"!==i.value);for(i=r.getNodeByRangeIndex(i.range[0]);i.parent&&"ConditionalExpression"!==i.parent.type;)i=i.parent}let s=l(i="JSXExpressionContainer"===i.type?i.expression:i),o=i.loc.start.line===t.loc.start.line||c(t)||u(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!(t.parent&&"BlockStatement"===t.parent.type&&t.parent.parent&&"DoExpression"===t.parent.parent.type)&&t.parent.body[0]!==t}(t)?0:n;p(t,s+o)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);p(e,t)}function m(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let r=l(e.parent);!function(e,n){let r=e.value,i="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,s=Array.from(String(r).matchAll(i),e=>e[1]?e[1].length:0);s.length>0&&!s.every(e=>e===n)&&s.forEach(t=>{a(e,n,t)})}(e,r+n)}return{JSXOpeningElement:f,JSXOpeningFragment:f,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!s||!t.value||"JSXExpressionContainer"!==t.value.type)return;let n=l(t.name),r=e.sourceCode.getLastToken(t.value),i=rA(e,r);if(i.loc.start.line!==r.loc.start.line)return;let o=t.name.loc.start.line===i.loc.start.line?0:n;p(i,o)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);p(e,t+n)},Literal:m,JSXText:m,ReturnStatement(t){if(!t.parent||!t.argument||!rM(t.argument))return;let n=t.parent;for(;n&&"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type;)n=n.parent;if(!n||!function(e,t,n=!1,r=!1){let i=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(n)return i(e.consequent)&&i(e.alternate);return i(e.consequent)||i(e.alternate);case"LogicalExpression":if(n)return i(e.left)&&i(e.right);return i(e.left)||i(e.right);case"SequenceExpression":return i(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!r&&null===e.value)return!0;return!1;case"Identifier":return rM(function(e,t){var n;let r=(n=function(e){let t=e.getScope(),n=t.variables;for(;"global"!==t.type;)n=(t=t.upper).variables.concat(n);return t.childScopes.length&&(n=t.childScopes[0].variables.concat(n),t.childScopes[0].childScopes.length&&(n=t.childScopes[0].childScopes[0].variables.concat(n))),n.reverse(),n}(e),n.find(e=>e.name===t));return r&&r.defs[0]&&r.defs[0].node?"TypeAlias"===r.defs[0].node.type?r.defs[0].node.right:"ImportBinding"===r.defs[0].type?r.defs[0].node:r.defs[0].node.init:null}(t,e.name));default:return!1}},s=!1;return!function(e,t){let n=e.type;"ReturnStatement"===n?t(e.argument,()=>{}):"ArrowFunctionExpression"===n&&e.expression?t(e.body,()=>{}):("FunctionExpression"===n||"FunctionDeclaration"===n||"ArrowFunctionExpression"===n||"MethodDefinition"===n)&&function(e,t){let n=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);n.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),nK.traverse(e,n)}(e.body,{enter(e){let n=()=>{this.break()};switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,n);return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{i(e)&&(s=!0,t())}),s}(t,e,!0))return;let r=l(t),i=l(t,!0);r!==i&&a(t,r,i)}}}}),i$=rj({name:"jsx-max-props-per-line",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},n=t.maximum||1,r="number"==typeof n?{single:"multiline"===t.when?1/0:n,multi:n}:{single:n.single||1/0,multi:n.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let n=r_(t);if((n?r.single:r.multi)===1/0)return;let i=[[t.attributes[0]]];t.attributes.reduce((e,t)=>((0,rP.isTokenOnSameLine)(e,t)?i[i.length-1].push(t):i.push([t]),t)),i.forEach(i=>{let s=n&&i[0].loc.start.line===t.loc.start.line?r.single:r.multi;if(i.length>s){var o;let t="JSXSpreadAttribute"===(o=i[s]).type?e.sourceCode.getText(o.argument):o.name.name;e.report({messageId:"newLine",node:i[s],data:{prop:t},fix:function(t,n){let r=e.sourceCode,i=[],s=t[0].range[0],o=t[t.length-1].range[1];for(let e=0;e<t.length;e+=n){let s=t.slice(e,e+n);i.push(s.reduce((e,t)=>""===e?r.getText(t):`${e} ${r.getText(t)}`,""))}let a=i.join("\n");return function(e){return e.replaceTextRange([s,o],a)}}(i,s)})}})}}}}),iU=rj({name:"jsx-newline",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,n=e.sourceCode;function r(e){let t=n.getText(e);return/^\s*\{\/\*/.test(t)}function i(e){return!r(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,s,o)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let a=e.options[0]||{},l=a.prevent||!1,c=a.allowMultilines||!1,u=o[s+1],p=o[s+2];if(!(u&&p&&("Literal"===u.type||"JSXText"===u.type)))return;let f=!/\n\s*\n/.test(u.value);if(r(t))return;let d=o.slice(s+2).find(i);if(c&&(!r_(t)||d&&!r_(d))){if(!f)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:p,fix:e=>e.replaceText(u,n.getText(u).replace(t,"\n\n"))});return}if(f===l)return;let m=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,h=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:p,fix:e=>e.replaceText(u,n.getText(u).replace(m,h))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});const iY={allow:"none"};var iJ=rj({name:"jsx-one-expression-per-line",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:iY,additionalProperties:!1}]},create(e){let t=Object.assign({},iY,e.options[0]);function n(t,n){e.report({messageId:"moveToNewLine",node:t,data:{descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")},fix:n})}function r(r){let i=r.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.some(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let s="JSXFragment"===r.type,o=s?r.openingFragment:r.openingElement,a=s?r.closingFragment:r.closingElement,l=o.loc.start.line,c=o.loc.end.line,u=a.loc.start.line,p=a.loc.end.line;if(1===i.length){let e=i[0];if(l===c&&c===u&&u===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],n=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===n&&0===r||2===n&&2===r)return}let f={},d={};i.forEach(e=>{let t=0,n=0;if("Literal"===e.type||"JSXText"===e.type){if(rv(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,n=(e.raw.match(/\n\s*$/g)||[]).length}let r=e.loc.start.line+t,i=e.loc.end.line-n;r===i?(f[r]||(f[r]=[]),f[r].push(e)):(f[r]||(f[r]=[]),f[r].push(e),f[i]||(f[i]=[]),f[i].push(e))});let m=Object.keys(f);if(1===m.length&&"single-line"===t.allow){let e=parseInt(m[0]),t=f[e],r=t[0];e===c&&n(r,e=>e.insertTextBefore(r,"\n"));let i=t.at(-1);e===u&&n(i,e=>e.insertTextAfter(i,"\n"))}else m.forEach(t=>{let n=parseInt(t,10),r=f[n].length-1;f[n].forEach((t,i)=>{let s,l;if(0===i?n===c&&(s=o):s=f[n][i-1],i===r&&n===u&&(l=a),!s&&!l)return;let p=e.sourceCode.getText(t),m=!!(s&&(()=>{let n=e.sourceCode.getTokensBetween(s,t)[0];return("Literal"===s.type||"JSXText"===s.type)&&s.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||rv(n?.value)})()),h=!!(l&&(()=>{let n=e.sourceCode.getTokensBetween(t,l)[0];return("Literal"===l.type||"JSXText"===l.type)&&l.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||rv(n?.value)})()),g=!!s,y=!!l,x=`${t.loc.start.line},${t.loc.start.column}`;d[x]||(d[x]={node:t,source:p}),m&&(d[x].leadingSpace=!0),g&&(d[x].leadingNewLine=!0),y&&(d[x].trailingNewLine=!0),h&&(d[x].trailingSpace=!0)})}),Object.keys(d).forEach(e=>{let t=d[e],r=t.node,i=t.source.replace(/(^ +| +$)/g,""),s=t.leadingSpace?"\n{' '}":"",o=t.trailingSpace?"{' '}\n":"",a=t.leadingNewLine?"\n":"",l=t.trailingNewLine?"\n":"",c=`${s}${a}${i}${l}${o}`;n(r,e=>e.replaceText(r,c))})}return{JSXElement:r,JSXFragment:r}}}),iW={};function iX(){if(y)return g;y=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,s=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,a=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:s,NO_DOT_SLASH:o,NO_DOTS_SLASH:a,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return g={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function iz(){if(x)return iW;x=1;let{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:r}=iX();return iW.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),iW.hasRegexChars=e=>n.test(e),iW.isRegexChar=e=>1===e.length&&iW.hasRegexChars(e),iW.escapeRegex=e=>e.replace(r,"\\$1"),iW.toPosixSlashes=t=>t.replace(e,"/"),iW.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"undefined"!=typeof process&&!!process.platform&&"win32"===process.platform},iW.removeBackslashes=e=>e.replace(t,e=>"\\"===e?"":e),iW.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return -1===r?e:"\\"===e[r-1]?iW.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`},iW.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},iW.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s},iW.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r},iW}var iH=function(){if(A)return v;A=1;let e=function(){if(w)return E;w=1;let e=function(){if(T)return b;T=1;let e=iz(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:p,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:d,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:h}=iX(),g=e=>e===a||e===r,y=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return b=(x,b)=>{let T,k,S=b||{},E=x.length-1,w=!0===S.parts||!0===S.scanToEnd,v=[],A=[],C=[],D=x,_=-1,O=0,F=0,P=!1,I=!1,B=!1,L=!1,N=!1,j=!1,R=!1,q=!1,M=!1,V=!1,$=0,U={value:"",depth:0,isGlob:!1},Y=()=>_>=E,J=()=>D.charCodeAt(_+1),W=()=>(T=k,D.charCodeAt(++_));for(;_<E;){let e;if((k=W())===r){R=U.backslashes=!0,(k=W())===l&&(j=!0);continue}if(!0===j||k===l){for($++;!0!==Y()&&(k=W());){if(k===r){R=U.backslashes=!0,W();continue}if(k===l){$++;continue}if(!0!==j&&k===s&&(k=W())===s||!0!==j&&k===i){if(P=U.isBrace=!0,B=U.isGlob=!0,V=!0,!0===w)continue;break}if(k===d&&0==--$){j=!1,P=U.isBrace=!0,V=!0;break}}if(!0===w)continue;break}if(k===a){if(v.push(_),A.push(U),U={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===s&&_===O+1){O+=2;continue}F=_+1;continue}if(!0!==S.noext&&!0==(k===p||k===n||k===t||k===f||k===o)&&J()===c){if(B=U.isGlob=!0,L=U.isExtglob=!0,V=!0,k===o&&_===O&&(M=!0),!0===w){for(;!0!==Y()&&(k=W());){if(k===r){R=U.backslashes=!0,k=W();continue}if(k===m){B=U.isGlob=!0,V=!0;break}}continue}break}if(k===t){if(T===t&&(N=U.isGlobstar=!0),B=U.isGlob=!0,V=!0,!0===w)continue;break}if(k===f){if(B=U.isGlob=!0,V=!0,!0===w)continue;break}if(k===u){for(;!0!==Y()&&(e=W());){if(e===r){R=U.backslashes=!0,W();continue}if(e===h){I=U.isBracket=!0,B=U.isGlob=!0,V=!0;break}}if(!0===w)continue;break}if(!0!==S.nonegate&&k===o&&_===O){q=U.negated=!0,O++;continue}if(!0!==S.noparen&&k===c){if(B=U.isGlob=!0,!0===w){for(;!0!==Y()&&(k=W());){if(k===c){R=U.backslashes=!0,k=W();continue}if(k===m){V=!0;break}}continue}break}if(!0===B){if(V=!0,!0===w)continue;break}}!0===S.noext&&(L=!1,B=!1);let X=D,z="",H="";O>0&&(z=D.slice(0,O),D=D.slice(O),F-=O),X&&!0===B&&F>0?(X=D.slice(0,F),H=D.slice(F)):!0===B?(X="",H=D):X=D,X&&""!==X&&"/"!==X&&X!==D&&g(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),!0===S.unescape&&(H&&(H=e.removeBackslashes(H)),X&&!0===R&&(X=e.removeBackslashes(X)));let K={prefix:z,input:x,start:O,base:X,glob:H,isBrace:P,isBracket:I,isGlob:B,isExtglob:L,isGlobstar:N,negated:q,negatedExtglob:M};if(!0===S.tokens&&(K.maxDepth=0,g(k)||A.push(U),K.tokens=A),!0===S.parts||!0===S.tokens){let e;for(let t=0;t<v.length;t++){let n=e?e+1:O,r=v[t],i=x.slice(n,r);S.tokens&&(0===t&&0!==O?(A[t].isPrefix=!0,A[t].value=z):A[t].value=i,y(A[t]),K.maxDepth+=A[t].depth),(0!==t||""!==i)&&C.push(i),e=r}if(e&&e+1<x.length){let t=x.slice(e+1);C.push(t),S.tokens&&(A[A.length-1].value=t,y(A[A.length-1]),K.maxDepth+=A[A.length-1].depth)}K.slashes=v,K.parts=C}return K}}(),t=function(){if(S)return k;S=1;let e=iX(),t=iz(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=e,a=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,p)=>{let f;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let d={...p},m="number"==typeof d.maxLength?Math.min(n,d.maxLength):n,h=u.length;if(h>m)throw SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${m}`);let g={type:"bos",value:"",output:d.prepend||""},y=[g],x=d.capture?"":"?:",b=e.globChars(d.windows),T=e.extglobChars(b),{DOT_LITERAL:k,PLUS_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:A,NO_DOT_SLASH:C,NO_DOTS_SLASH:D,QMARK:_,QMARK_NO_DOT:O,STAR:F,START_ANCHOR:P}=b,I=e=>`(${x}(?:(?!${P}${e.dot?v:k}).)*?)`,B=d.dot?"":A,L=d.dot?_:O,N=!0===d.bash?I(d):F;d.capture&&(N=`(${N})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let j={input:u,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};h=(u=t.removePrefix(u,j)).length;let R=[],q=[],M=[],V=g,$=()=>j.index===h-1,U=j.peek=(e=1)=>u[j.index+e],Y=j.advance=()=>u[++j.index]||"",J=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},X=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},z=()=>{let e=1;for(;"!"===U()&&("("!==U(2)||"?"===U(3));)Y(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},H=e=>{j[e]++,M.push(e)},K=e=>{j[e]--,M.pop()},G=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||R.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=N,j.output+=V.output)}if(R.length&&"paren"!==e.type&&(R[R.length-1].inner+=e.value),(e.value||e.output)&&X(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,y.push(e),V=e},Q=(e,t)=>{let n={...T[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(d.capture?"(":"")+n.open;H("parens"),G({type:e,value:t,output:j.output?"":w}),G({type:"paren",extglob:!0,value:Y(),output:r}),R.push(n)},Z=e=>{let t,n=e.close+(d.capture?")":"");if("negate"===e.type){let r=N;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=I(d)),(r!==N||$()||/^\)+$/.test(J()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=J())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{...p,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:f,output:n}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(s,(t,n,r,i,s,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(s?_.repeat(s.length):""):0===o?L+(s?_.repeat(s.length):""):_.repeat(r.length):"."===i?k.repeat(r.length):"*"===i?n?n+i+(s?N:""):N:n?t:`\\${t}`);return(!0===e&&(n=!0===d.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===d.contains)?j.output=u:j.output=t.wrapOutput(n,j,p),j}for(;!$();){if("\0"===(f=Y()))continue;if("\\"===f){let e=U();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){G({type:"text",value:f+="\\"});continue}let t=/^\\+/.exec(J()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(f+="\\")),!0===d.unescape?f=Y():f+=Y(),0===j.brackets){G({type:"text",value:f});continue}}if(j.brackets>0&&("]"!==f||"["===V.value||"[^"===V.value)){if(!1!==d.posix&&":"===f){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,Y(),g.output||1!==y.indexOf(V)||(g.output=w);continue}}}("["===f&&":"!==U()||"-"===f&&"]"===U())&&(f=`\\${f}`),"]"===f&&("["===V.value||"[^"===V.value)&&(f=`\\${f}`),!0===d.posix&&"!"===f&&"["===V.value&&(f="^"),V.value+=f,X({value:f});continue}if(1===j.quotes&&'"'!==f){f=t.escapeRegex(f),V.value+=f,X({value:f});continue}if('"'===f){j.quotes=+(1!==j.quotes),!0===d.keepQuotes&&G({type:"text",value:f});continue}if("("===f){H("parens"),G({type:"paren",value:f});continue}if(")"===f){if(0===j.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=R[R.length-1];if(e&&j.parens===e.parens+1){Z(R.pop());continue}G({type:"paren",value:f,output:j.parens?")":"\\)"}),K("parens");continue}if("["===f){if(!0!==d.nobracket&&J().includes("]"))H("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));f=`\\${f}`}G({type:"bracket",value:f});continue}if("]"===f){if(!0===d.nobracket||V&&"bracket"===V.type&&1===V.value.length){G({type:"text",value:f,output:`\\${f}`});continue}if(0===j.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));G({type:"text",value:f,output:`\\${f}`});continue}K("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(f=`/${f}`),V.value+=f,X({value:f}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===d.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${x}${n}|${V.value})`,j.output+=V.value;continue}if("{"===f&&!0!==d.nobrace){H("braces");let e={type:"brace",value:f,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};q.push(e),G(e);continue}if("}"===f){let e=q[q.length-1];if(!0===d.nobrace||!e){G({type:"text",value:f,output:f});continue}let t=")";if(!0===e.dots){let e=y.slice(),n=[];for(let t=e.length-1;t>=0&&(y.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=a(n,d),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",f=t="\\}",j.output=n,r))j.output+=i.output||i.value}G({type:"brace",value:f,output:t}),K("braces"),q.pop();continue}if("|"===f){R.length>0&&R[R.length-1].conditions++,G({type:"text",value:f});continue}if(","===f){let e=f,t=q[q.length-1];t&&"braces"===M[M.length-1]&&(t.comma=!0,e="|"),G({type:"comma",value:f,output:e});continue}if("/"===f){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",y.pop(),V=g;continue}G({type:"slash",value:f,output:E});continue}if("."===f){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=k);let e=q[q.length-1];V.type="dots",V.output+=f,V.value+=f,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){G({type:"text",value:f,output:k});continue}G({type:"dot",value:f,output:k});continue}if("?"===f){if(!(V&&"("===V.value)&&!0!==d.noextglob&&"("===U()&&"?"!==U(2)){Q("qmark",f);continue}if(V&&"paren"===V.type){let e=U(),t=f;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(J()))||(t=`\\${f}`),G({type:"text",value:f,output:t});continue}if(!0!==d.dot&&("slash"===V.type||"bos"===V.type)){G({type:"qmark",value:f,output:O});continue}G({type:"qmark",value:f,output:_});continue}if("!"===f){if(!0!==d.noextglob&&"("===U()&&("?"!==U(2)||!/[!=<:]/.test(U(3)))){Q("negate",f);continue}if(!0!==d.nonegate&&0===j.index){z();continue}}if("+"===f){if(!0!==d.noextglob&&"("===U()&&"?"!==U(2)){Q("plus",f);continue}if(V&&"("===V.value||!1===d.regex){G({type:"plus",value:f,output:S});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){G({type:"plus",value:f});continue}G({type:"plus",value:S});continue}if("@"===f){if(!0!==d.noextglob&&"("===U()&&"?"!==U(2)){G({type:"at",extglob:!0,value:f,output:""});continue}G({type:"text",value:f});continue}if("*"!==f){("$"===f||"^"===f)&&(f=`\\${f}`);let e=i.exec(J());e&&(f+=e[0],j.index+=e[0].length),G({type:"text",value:f});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=f,V.output=N,j.backtrack=!0,j.globstar=!0,W(f);continue}let e=J();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Q("star",f);continue}if("star"===V.type){if(!0===d.noglobstar){W(f);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===d.bash&&(!r||e[0]&&"/"!==e[0])){G({type:"star",value:f,output:""});continue}let s=j.braces>0&&("comma"===t.type||"brace"===t.type),o=R.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!s&&!o){G({type:"star",value:f,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&$()){V.type="globstar",V.value+=f,V.output=I(d),j.output=V.output,j.globstar=!0,W(f);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&$()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=I(d)+(d.strictSlashes?")":"|$)"),V.value+=f,j.globstar=!0,j.output+=t.output+V.output,W(f);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${I(d)}${E}|${E}${n})`,V.value+=f,j.output+=t.output+V.output,j.globstar=!0,W(f+Y()),G({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=f,V.output=`(?:^|${E}|${I(d)}${E})`,j.output=V.output,j.globstar=!0,W(f+Y()),G({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=I(d),V.value+=f,j.output+=V.output,j.globstar=!0,W(f);continue}let n={type:"star",value:f,output:N};if(!0===d.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=B+n.output),G(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===d.regex){n.output=f,G(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=C,V.output+=C):!0===d.dot?(j.output+=D,V.output+=D):(j.output+=B,V.output+=B),"*"!==U()&&(j.output+=w,V.output+=w)),G(n)}for(;j.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),K("brackets")}for(;j.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),K("parens")}for(;j.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===V.type||"bracket"===V.type)&&G({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let s={...i},a="number"==typeof s.maxLength?Math.min(n,s.maxLength):n,l=r.length;if(l>a)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${a}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:p,DOTS_SLASH:f,NO_DOT:d,NO_DOTS:m,NO_DOTS_SLASH:h,STAR:g,START_ANCHOR:y}=e.globChars(s.windows),x=s.dot?m:d,b=s.dot?h:d,T=s.capture?"":"?:",k=!0===s.bash?".*?":g;s.capture&&(k=`(${k})`);let S=e=>!0===e.noglobstar?k:`(${T}(?:(?!${y}${e.dot?f:c}).)*?)`,E=e=>{switch(e){case"*":return`${x}${p}${k}`;case".*":return`${c}${p}${k}`;case"*.*":return`${x}${k}${c}${p}${k}`;case"*/*":return`${x}${k}${u}${p}${b}${k}`;case"**":return x+S(s);case"**/*":return`(?:${x}${S(s)}${u})?${b}${p}${k}`;case"**/*.*":return`(?:${x}${S(s)}${u})?${b}${k}${c}${p}${k}`;case"**/.*":return`(?:${x}${S(s)}${u})?${c}${p}${k}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},w=E(t.removePrefix(r,{negated:!1,prefix:""}));return w&&!0!==s.strictSlashes&&(w+=`${u}?`),w},k=c}(),n=iz(),r=iX(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let s=t||{},o=s.windows,a=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=a.state;delete a.state;let c=()=>!1;if(s.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(s.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:p,output:f}=i.test(n,a,t,{glob:e,posix:o}),d={glob:e,state:l,regex:a,posix:o,input:n,output:f,match:p,isMatch:u};return("function"==typeof s.onResult&&s.onResult(d),!1===u)?(d.isMatch=!1,!!r&&d):c(n)?("function"==typeof s.onIgnore&&s.onIgnore(d),d.isMatch=!1,!!r&&d):("function"==typeof s.onMatch&&s.onMatch(d),!r||d)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:s,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let a=r||{},l=a.format||(o?n.toPosixSlashes:null),c=e===s,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===s),(!1===c||!0===a.capture)&&(c=!0===a.matchBase||!0===a.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let s=t||{},o=s.contains?"":"^",a=s.contains?"":"$",l=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,s=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,s)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,E=i}(),t=iz();function n(r,i,s=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,s)}return Object.assign(n,e),v=n}(),iK=G.a(iH);function iG(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function iQ(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var iZ=rj({name:"jsx-pascal-case",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:n=!1,allowNamespace:r=!1,ignore:i=[]}=e.options[0]||{},s=iK(i,{noglobstar:!0});return{JSXOpeningElement(o){if(rq(o))return;let a=r$(o),l=[a],c=0;a.includes(":")?l=a.split(":"):a.includes(".")&&(l=a.split("."));do{let r=l[c];if(1===r.length)return;let a=s(r)||i.includes(r),u=n&&r.startsWith("_")?r.slice(1):r,p=!(!iQ(u.charAt(0))||Array.prototype.some.call(u.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!iG(e)))&&Array.prototype.some.call(u.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||iG(e)),f=t&&function(e){let t=e.charAt(0);if(!(iQ(t)||iG(t)))return!1;for(let t=1;t<e.length-1;t+=1){let n=e.charAt(t);if(!(iQ(n)||iG(n)||"_"===n))return!1}let n=e.charAt(e.length-1);return!!(iQ(n)||iG(n))}(u);if(!p&&!f&&!a){let n=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:n,node:o,data:{name:r}});break}c+=1}while(c<l.length&&!r)}}}}),i0=rj({name:"jsx-props-no-multi-spaces",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead."},deprecated:{message:"The rule was replaced with a more general rule.",deprecatedSince:"5.0.0",replacedBy:[{rule:{name:"no-multi-spaces",url:"https://eslint.style/rules/no-multi-spaces"}}]},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function n(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${n(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(r){r.attributes.reduce((r,i)=>{var s,o;return function(e,n){let r=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(n):[],n);for(let e=1;e<r.length;e+=1){let t=r[e-1];if(r[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(s=r,o=i)&&e.report({messageId:"noLineGap",node:o,data:{prop1:n(s),prop2:n(o)}}),s.loc.end.line===o.loc.end.line&&" "!==t.text.slice(s.range[1],o.range[0])&&e.report({node:o,messageId:"onlyOneSpace",data:{prop1:n(s),prop2:n(o)},fix:e=>e.replaceTextRange([s.range[1],o.range[0]]," ")}),i},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let n=e.typeArguments;return Object.assign({},e,{range:[t.range[0],n?.range[1]]})}return t}(r))}}}});const i1={"prefer-double":{quote:'"',description:"singlequote",convert:e=>e.replace(/'/gu,'"')},"prefer-single":{quote:"'",description:"doublequote",convert:e=>e.replace(/"/gu,"'")}};var i2=rj({name:"jsx-quotes",meta:{type:"layout",docs:{description:"Enforce the consistent use of either double or single quotes in JSX attributes"},fixable:"whitespace",schema:[{type:"string",enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(e){let t=i1[e.options[0]||"prefer-double"];return{JSXAttribute(n){let r=n.value;r&&rm(r)&&!(r.value.includes(t.quote)||rg(r.raw,t.quote))&&e.report({node:r,messageId:"unexpected",data:{description:t.description},fix:e=>e.replaceText(r,t.convert(r.raw))})}}}});const i3={component:!0,html:!0};var i4=rj({name:"jsx-self-closing-comp",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:i3.component,type:"boolean"},html:{default:i3.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var n;let r=Object.assign({},i3,e.options[0]);return(r.component&&(n=t).name&&("JSXIdentifier"===n.name.type||"JSXMemberExpression"===n.name.type)&&!rq(n)||r.html&&rq(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let n=t.range[1]-1,r=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([n,r]," />")}})}})});function i5(e){return/^on[A-Z]/.test(e)}const i6=["children","dangerouslySetInnerHTML","key","ref"];function i9(e,t){return t.indexOf(e.split(":")[0])}function i8(e){let n=t.get(e);return!!n&&!!n.hasComment}const i7=new WeakMap;function se(e,n,r,i,s){let o=i7.get(e)||[];o.includes(n)||(o.push(n),i7.set(e,o),i.report({node:e.name??"",messageId:n,fix:function(e,n,r){let i=n.sourceCode,s=e.attributes.slice(0),o=n.options[0]||{},a=o.ignoreCase||!1,l=o.callbacksLast||!1,c=o.shorthandFirst||!1,u=o.shorthandLast||!1,p=o.multiline||"ignore",f=o.noSortAlphabetically||!1,d=o.reservedFirst||!1,m={ignoreCase:a,callbacksLast:l,shorthandFirst:c,shorthandLast:u,multiline:p,noSortAlphabetically:f,reservedFirst:d,reservedList:r,reservedLast:o.reservedLast||[],locale:o.locale||"auto"},h=function(e,n){let r=n.sourceCode,i=[],s=0;function o(e){i[s-1].push(e)}for(let n=0;n<e.length;n++){let a=e[n],l=e[n+1],c=a.loc.start.line,u=[];try{u=r.getCommentsAfter(a)}catch{}let p=e[n-1],f="JSXSpreadAttribute"===a.type;if(p&&("JSXSpreadAttribute"!==p.type||f)||(i[(s+=1)-1]=[]),!f)if(0===u.length)t.set(a,{end:a.range[1],hasComment:!1}),o(a);else{let e=u[0],i=e.loc.start.line;if(1===u.length)c+1===i&&l?(t.set(a,{end:l.range[1],hasComment:!0}),o(a),n+=1):c===i&&("Block"===e.type&&l?(t.set(a,{end:l.range[1],hasComment:!0}),n+=1):"Block"===e.type?t.set(a,{end:e.range[1],hasComment:!0}):t.set(a,{end:e.range[1],hasComment:!1}),o(a));else if(u.length>1&&c+1===u[1].loc.start.line&&l){let e=r.getCommentsAfter(l);t.set(a,{end:l.range[1],hasComment:!0}),1===e.length&&l.loc.start.line===e[0].loc.start.line&&t.set(a,{end:e[0].range[1],hasComment:!0}),o(a),n+=1}}}return i}(s,n),g=h.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,n){let r=rV(e),i=rV(t),s=r.split(":")[0],o=i.split(":")[0],a=i8(e),l=i8(t);if(a&&!l)return 1;if(!a&&l)return -1;if(n.reservedFirst){let e=i9(r,n.reservedList),t=i9(i,n.reservedList);if(e>-1&&-1===t)return -1;if(-1===e&&t>-1)return 1;if(e>-1&&t>-1&&s!==o)return e>t?1:-1}if(n.reservedLast.length>0){let e=i9(r,n.reservedLast),t=i9(i,n.reservedLast);if(e>-1&&-1===t)return 1;if(-1===e&&t>-1)return -1;if(e>-1&&t>-1&&s!==o)return e>t?-1:1}if(n.callbacksLast){let e=i5(r),t=i5(i);if(e&&!t)return 1;if(!e&&t)return -1}if(n.shorthandFirst||n.shorthandLast){let r=n.shorthandFirst?-1:1;if(!e.value&&t.value)return r;if(e.value&&!t.value)return-r}if("ignore"!==n.multiline){let r="first"===n.multiline?-1:1,i=!r_(e),s=!r_(t);if(i&&!s)return r;if(!i&&s)return-r}if(n.noSortAlphabetically)return 0;let c="auto"===n.locale?void 0:n.locale;return n.ignoreCase?(r=r.toLowerCase(),i=i.toLowerCase(),r.localeCompare(i,c)):r===i?0:"auto"===n.locale?r<i?-1:1:r.localeCompare(i,c)})(e,t,m)));return function(e){let n=[],r=i.getText();h.forEach((e,i)=>{e.forEach((e,s)=>{let o=g[i][s],a=r.slice(o.range[0],t.get(o).end);n.push({range:[e.range[0],t.get(e).end],text:a})})}),n.sort((e,t)=>t.range[0]-e.range[0]);let s=n[0],o=n[n.length-1],a=o?o.range[0]:0,l=s?s.range[1]:-0;return n.forEach(e=>{r=`${r.slice(0,e.range[0])}${e.text}${r.slice(e.range[1])}`}),e.replaceTextRange([a,l],r.slice(a,l))}}(r,i,s)}))}var st=rj({name:"jsx-sort-props",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listReservedPropsLast:"Reserved props must be listed after all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{oneOf:[{type:"array",items:{type:"string"}},{type:"boolean"}]},reservedLast:{type:"array",items:{type:"string"}},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(e){let n=e.options[0]||{},r=n.ignoreCase||!1,i=n.callbacksLast||!1,s=n.shorthandFirst||!1,o=n.shorthandLast||!1,a=n.multiline||"ignore",l=n.noSortAlphabetically||!1,c=n.reservedFirst||!1,u=function(e,t){if(t&&Array.isArray(t)&&0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})}}(e,c),p=Array.isArray(c)?c:i6,f=n.reservedLast||[],d=n.locale||"auto";return{Program(){t=new WeakMap},JSXOpeningElement(t){let n=c&&!rq(t)?p.filter(e=>"dangerouslySetInnerHTML"!==e):p;t.attributes.reduce((p,m,h,g)=>{if("JSXSpreadAttribute"===m.type)return g[h+1];let y=rV(p),x=rV(m),b=y.split(":")[0],T=x.split(":")[0],k=p.value,S=m.value,E=i5(y),w=i5(x);if(r&&(y=y.toLowerCase(),x=x.toLowerCase()),c){if(u)return u(m),p;let r=i9(y,n),i=i9(x,n);if(r>-1&&-1===i)return m;if(!0!==c&&r>i||-1===r&&i>-1)return se(m,"listReservedPropsFirst",t,e,n),p;if(r>-1&&i>-1&&i>r&&b!==T)return m}if(f.length>0){let r=i9(y,f),i=i9(x,f);if(-1===r&&i>-1)return m;if(r<i||r>-1&&-1===i)return se(m,"listReservedPropsLast",t,e,n),p;if(r>-1&&i>-1&&i>r&&b!==T)return m}if(i){if(!E&&w)return m;if(E&&!w)return se(p,"listCallbacksLast",t,e,n),p}if(s){if(S&&!k)return m;if(!S&&k)return se(m,"listShorthandFirst",t,e,n),p}if(o){if(!S&&k)return m;if(S&&!k)return se(p,"listShorthandLast",t,e,n),p}let v=!r_(p),A=!r_(m);if("first"===a){if(v&&!A)return m;if(!v&&A)return se(m,"listMultilineFirst",t,e,n),p}else if("last"===a){if(!v&&A)return m;if(v&&!A)return se(p,"listMultilineLast",t,e,n),p}return!l&&(r||"auto"!==d?y.localeCompare(x,"auto"===d?void 0:d)>0:y>x)?(se(m,"sortPropsByAlpha",t,e,n),p):m},t.attributes[0])}}}});function sn(e,t,n){let r,i=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let s=i.getLastTokens(t,2);r=!i.isSpaceBetween(s[0],s[1]),"never"===n?r||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:s[0].loc.start,end:s[1].loc.end},fix:e=>e.removeRange([s[0].range[1],s[1].range[0]])}):"always"===n&&r&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:s[0].loc.start,end:s[1].loc.end},fix:e=>e.insertTextBefore(s[1]," ")})}else{let s=i.getFirstTokens(t,2);r=!i.isSpaceBetween(s[0],s[1]),"never"===n?r||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:s[0].loc.start,end:s[1].loc.end},fix:e=>e.removeRange([s[0].range[1],s[1].range[0]])}):"always"===n&&r&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:s[0].loc.start,end:s[1].loc.end},fix:e=>e.insertTextBefore(s[1]," ")})}}function sr(e,t,n){let r=e.sourceCode,i=r.getTokenBefore(t.name);if("allow-multiline"===n&&i.loc.start.line!==t.name.loc.start.line)return;let s=!r.isSpaceBetween(i,t.name);"never"===n||"allow-multiline"===n?s||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:i.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([i.range[1],t.name.range[0]])}):"always"===n&&s&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:i.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function si(e,t,n){if(!("selfClosing"in t&&t.selfClosing)){let r=e.sourceCode,i="proportional-always"===n?rD(t):r.getLastTokens(t,2)[0],s=r.getTokenAfter(i);if(!r_(t)&&"proportional-always"===n&&(0,rP.isTokenOnSameLine)(i,s))return void e.report({node:t,messageId:"beforeCloseNeedNewline",loc:i.loc.end,fix:e=>e.insertTextBefore(s,"\n")});if(i.loc.start.line!==s.loc.start.line)return;let o=!r.isSpaceBetween(i,s);"never"!==n||o?"always"===n&&o?e.report({node:t,loc:{start:i.loc.end,end:s.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(s," ")}):"proportional-always"===n&&"JSXOpeningElement"===t.type&&o!==r_(t)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:i.loc.end,end:s.loc.start},fix:e=>e.insertTextBefore(s," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:i.loc.end,end:s.loc.start},fix:e=>e.removeRange([i.range[1],s.range[0]])})}}const ss={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var so=rj({name:"jsx-tag-spacing",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:ss,additionalProperties:!1}]},create(e){let t=Object.assign({},ss,e.options[0]);return{JSXOpeningElement(n){"allow"!==t.closingSlash&&n.selfClosing&&sn(e,n,t.closingSlash),"allow"!==t.afterOpening&&sr(e,n,t.afterOpening),"allow"!==t.beforeSelfClosing&&n.selfClosing&&function(e,t,n){let r=e.sourceCode,i=rD(t),s=r.getTokenAfter(i);if(!r_(t)&&"proportional-always"===n&&(0,rP.isTokenOnSameLine)(i,s))return e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:i.loc.end,fix:e=>e.insertTextBefore(s,"\n")});if(!(0,rP.isTokenOnSameLine)(i,s))return;let o=!r.isSpaceBetween(i,s);("always"===n||"proportional-always"===n)&&o?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:s.loc.start,fix:e=>e.insertTextBefore(s," ")}):"never"!==n||o||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:s.loc.start,fix(e){let t=r.getTokenBefore(s);return e.removeRange([t.range[1],s.range[0]])}})}(e,n,t.beforeSelfClosing),"allow"!==t.beforeClosing&&si(e,n,t.beforeClosing)},JSXClosingElement(n){"allow"!==t.afterOpening&&sr(e,n,t.afterOpening),"allow"!==t.closingSlash&&sn(e,n,t.closingSlash),"allow"!==t.beforeClosing&&si(e,n,t.beforeClosing)}}}});const sa={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sl=rj({name:"jsx-wrap-multilines",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let n=e.options[0]||{};return t in n?n[t]:sa[t]}function n(e){let n=t(e);return n&&"ignore"!==n}function r(n,r){if(!n||!rM(n))return;let i=e.sourceCode,s=t(r);if(!0!==s&&"parens"!==s||(0,rP.isParenthesized)(n,e.sourceCode)||r_(n)||e.report({node:n,messageId:"missingParens",fix:e=>e.replaceText(n,`(${i.getText(n)})`)}),"parens-new-line"===s&&!r_(n))if((0,rP.isParenthesized)(n,e.sourceCode)){let t=function(t){let n=e.sourceCode.getTokenBefore(t);return!!(0,rP.isParenthesized)(t,e.sourceCode)&&!!(0,rP.isTokenOnSameLine)(n,t)}(n),r=function(t){let n=e.sourceCode.getTokenAfter(t);return!!(0,rP.isParenthesized)(t,e.sourceCode)&&!!(0,rP.isTokenOnSameLine)(t,n)}(n);(t||r)&&e.report({node:n,messageId:"parensOnNewLines",fix:e=>{let s=i.getText(n);return t&&(s=`
10
- ${s}`),r&&(s=`${s}
11
- `),e.replaceText(n,s)}})}else{let t=i.getTokenBefore(n),r=i.getTokenAfter(n),s=n.loc.start;if(t.loc.end.line<s.line){let o=i.getText().slice(t.range[1],n.range[0]).trim(),a=/^\t/.test(i.lines[s.line-1]),l=a?" ":" ",c=l.repeat(s.column),u=l.repeat(Math.max(0,s.column-(a?1:2)));e.report({node:n,messageId:"missingParens",fix:e=>e.replaceTextRange([t.range[0],r&&(";"===r.value||"}"===r.value)?r.range[0]:n.range[1]],`${function(e){let t="{"===e.value||"["===e.value;return`${e.value.trim()}${t?"":" "}`}(t)}(
12
- ${c}${o}${o.length>0?`
13
- ${c}`:""}${i.getText(n)}
14
- ${u})`)})}else e.report({node:n,messageId:"missingParens",fix:e=>e.replaceText(n,`(
15
- ${i.getText(n)}
16
- )`)})}}return{VariableDeclarator(e){let t="declaration";if(n(t)){if(!n("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(n(t)){if(!n("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";n(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";n(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";n(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";n(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";n(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";n(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}});function sc(e,t){return e.mode=t.mode||"strict",void 0!==t.beforeColon?e.beforeColon=+t.beforeColon:e.beforeColon=0,void 0!==t.afterColon?e.afterColon=+t.afterColon:e.afterColon=1,void 0!==t.align&&("object"==typeof t.align?e.align=t.align:e.align={on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}var su=rj({name:"key-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing between property names and type annotations in types and interfaces"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{type:"string",enum:["colon","value"]},{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},on:{type:"string",enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{type:"string",enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"},ignoredNodes:{type:"array",items:{type:"string",enum:["ObjectExpression","ObjectPattern","ImportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TSTypeLiteral","TSInterfaceBody","ClassBody"]}}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{type:"string",enum:["colon","value"]},{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},on:{type:"string",enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{type:"string",enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{type:"string",enum:["strict","minimum"]},on:{type:"string",enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},defaultOptions:[{}],create(e,[t]){var n;let r=t||{},i=(n={},"object"==typeof r.align?(n.align=sc({},r.align),n.align.on=r.align.on||"colon",n.align.mode=r.align.mode||"strict",n.multiLine=sc({},r.multiLine||r),n.singleLine=sc({},r.singleLine||r)):(n.multiLine=sc({},r.multiLine||r),n.singleLine=sc({},r.singleLine||r),n.multiLine.align&&(n.align={on:n.multiLine.align.on,mode:n.multiLine.align.mode||n.multiLine.mode,beforeColon:n.multiLine.align.beforeColon,afterColon:n.multiLine.align.afterColon})),n.ignoredNodes=r.ignoredNodes||[],n),s=i.multiLine,o=i.singleLine,a=i.align||null,l=i.ignoredNodes,c=e.sourceCode;function u(e,t){if("TSImportType"===e.type)return"options"in e&&!!e.options&&r_(e.options);let n=t.getTokenBefore(e.attributes[0],rP.isOpeningBraceToken),r=t.getTokenAfter(e.attributes[e.attributes.length-1],rP.isClosingBraceToken);return(0,rP.isTokenOnSameLine)(r,n)}function p(e){return"ImportAttribute"===e.type||!("method"in e&&e.method||"shorthand"in e&&e.shorthand||"kind"in e&&"init"!==e.kind||"Property"!==e.type)}function f(e){return c.getTokenAfter(e,rP.isColonToken)}function d(e){let t=f(e);return c.getTokenBefore(t)}function m(t,n,r,i,s){let o=r.length-i;if((o&&"strict"===s||o<0&&"minimum"===s||o>0&&!i&&"minimum"===s)&&!(i&&rP.LINEBREAK_MATCHER.test(r))){let r,i=f(t.key),s=c.getTokenBefore(i,{includeComments:!0}),a=c.getTokenAfter(i,{includeComments:!0}),l="key"===n,u=o>0,p=Math.abs(o),d=Array(p+1).join(" "),m=l?s.loc.end:i.loc.start,h=l?i.loc.start:a.loc.start,g=l?s.loc:a.loc;if(u){let e;e=l?[s.range[1],s.range[1]+p]:[a.range[0]-p,a.range[0]],r=function(t){return t.removeRange(e)}}else r=l?function(e){return e.insertTextAfter(s,d)}:function(e){return e.insertTextBefore(a,d)};e.report({node:t[n],loc:u?{start:m,end:h}:g,messageId:u?"key"===n?"extraKey":"extraValue":"key"===n?"missingKey":"missingValue",data:{computed:"ImportAttribute"!==t.type&&t.computed?"computed ":"",key:function(e){let t=e.key;return"ImportAttribute"!==e.type&&e.computed?c.getText().slice(t.range[0],t.range[1]):rn(e)}(t)},fix:r})}}function h(e){let t=c.getFirstToken(e),n=d(e.key);return rU(c.getText().slice(t.range[0],n.range[1]))}function g(e){let t=/(\s*):(\s*)/u.exec(c.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function y(e,t){if(l.includes(e.parent.type))return;let n=g(e);n&&(m(e,"key",n.beforeColon,t.beforeColon,t.mode),m(e,"value",n.afterColon,t.afterColon,t.mode))}function x(e,t){let n=e.length;for(let r=0;r<n;r++)y(e[r],t)}function b(e){(1===e.length?[e]:e.reduce((e,t)=>{let n=e.at(-1),r=n.at(-1);return!r||function(e,t){let n=e.loc.start.line,r=(p(t)?function(e){let t=f(e);return c.getTokenAfter(t)}(t.key):t).loc.start.line;if(r-n<=1)return!0;let i=c.getCommentsBefore(t);if(i.length&&i[0].loc.start.line-n<=1&&r-i.at(-1).loc.end.line<=1){for(let e=1;e<i.length;e++)if(i[e].loc.start.line-i[e-1].loc.end.line>1)return!1;return!0}return!1}(r,t)?n.push(t):e.push([t]),e},[[]])).forEach(e=>{let t=e.filter(p);t.length>0&&function(e){let[t]=e,n=e.at(-1);return(0,rP.isTokenOnSameLine)(n,t)}(t)?x(t,s):function(e){let t,n,r,i=e.length,o=e.map(h),l=a.on,c=Math.max(...o);a&&i>1?(t=a.beforeColon,n=a.afterColon):(t=s.beforeColon,n=s.afterColon),r=a.mode,c+="colon"===l?t:n;for(let s=0;s<i;s++){let i=e[s],a=g(i);if(a){let e=o[s];"value"===l?(m(i,"key",a.beforeColon,t,r),m(i,"value",a.afterColon,c-e,r)):(m(i,"key",a.beforeColon,c-e,r),m(i,"value",a.afterColon,n,r))}}}(t)})}function T(e){!l.includes(e.type)&&e.attributes&&e.attributes.length&&(u(e,c)?x(e.attributes,o):b(e.attributes))}function k(e){let t=e.line-1;return rU(c.lines.at(t).slice(0,e.column))}function S(e){return(e.type===e7.AST_NODE_TYPES.TSPropertySignature||e.type===e7.AST_NODE_TYPES.TSIndexSignature||e.type===e7.AST_NODE_TYPES.PropertyDefinition)&&!!e.typeAnnotation}function E(e){return S(e)&&(0,rP.isTokenOnSameLine)(e,e.typeAnnotation)}function w(e){return e.type!==e7.AST_NODE_TYPES.TSIndexSignature?c.getText(e.key):c.getText(e).slice(0,c.getTokenAfter(e.parameters.at(-1),rP.isClosingBracketToken).range[1]-e.range[0])}function v(e){return d(e.type!==e7.AST_NODE_TYPES.TSIndexSignature?e.key:e.parameters.at(-1)).loc.end}function A(t,n,r){let{typeAnnotation:i}=t,s=i.loc.start.column-v(t).column-n;("strict"===r?s:s<0)&&e.report({node:t,messageId:s>0?"extraKey":"missingKey",fix:e=>s>0?e.removeRange([i.range[0]-s,i.range[0]]):e.insertTextBefore(i," ".repeat(-s)),data:{computed:"",key:w(t)}})}function C(t,n,r){let{typeAnnotation:i}=t,s=c.getFirstToken(i),o=c.getTokenAfter(s,{includeComments:!0}).loc.start.column-s.loc.start.column-1-n;("strict"===r?o:o<0)&&e.report({node:t,messageId:o>0?"extraValue":"missingValue",fix:e=>o>0?e.removeRange([s.range[1],s.range[1]+o]):e.insertTextAfter(s," ".repeat(-o)),data:{computed:"",key:w(t)}})}function D(t){if(l.includes(t.type))return;let n=t.type===e7.AST_NODE_TYPES.TSTypeLiteral?t.members:t.body,i=[],s=[];if(r.align||r.multiLine?.align){let e,t=[];for(let r of(i.push(t),n)){let n=t.at(-1);n!==e&&(n=void 0),n&&function(e,t){let n=e.loc.start.line,r=(S(t)?t.typeAnnotation:t).loc.start.line;if(r===n)return!1;if(r-n==1)return!0;let i=c.getCommentsBefore(t);if(i.length&&i[0].loc.start.line-n<=1&&r-i.at(-1).loc.end.line<=1){for(let e=1;e<i.length;e++)if(i[e].loc.start.line-i[e-1].loc.end.line>1)return!1;return!0}return!1}(n,r)?t.push(r):e?.loc.start.line===r.loc.start.line?(n&&(s.push(n),t.pop()),s.push(r)):(t=[r],i.push(t)),e=r}s=s.concat(...i.filter(e=>1===e.length)),i=i.filter(e=>e.length>=2)}else s=n;for(let t of i)!function(t){let n=0,i=("object"==typeof r.align?r.align.on:"object"==typeof r.multiLine?.align?r.multiLine.align.on:r.multiLine?.align??r.align)??"colon",s=+!!("object"==typeof r.align?r.align.beforeColon:r.multiLine?"object"==typeof r.multiLine.align?r.multiLine.align.beforeColon:r.multiLine.beforeColon:r.beforeColon),o=+!!(("object"==typeof r.align?r.align.afterColon:r.multiLine?"object"==typeof r.multiLine.align?r.multiLine.align.afterColon:r.multiLine.afterColon:r.afterColon)??!0),a=("object"==typeof r.align?r.align.mode:r.multiLine?"object"==typeof r.multiLine.align?r.multiLine.align.mode??r.multiLine.mode:r.multiLine.mode:r.mode)??"strict";for(let e of t)if(S(e)){let t=k(v(e));n=Math.max(n,"colon"===i?t+s:t+1+o+s)}for(let r of t){if(!E(r))continue;let{typeAnnotation:t}=r,l="colon"===i?t:t.typeAnnotation,c=k(l.loc.start)-n;c&&e.report({node:r,messageId:c>0?"colon"===i?"extraKey":"extraValue":"colon"===i?"missingKey":"missingValue",fix:e=>c>0?e.removeRange([l.range[0]-c,l.range[0]]):e.insertTextBefore(l," ".repeat(-c)),data:{computed:"",key:w(r)}}),"colon"===i?C(r,o,a):A(r,s,a)}}(t);for(let e of s)!function(e,{singleLine:t}){let n=(t?r.singleLine?r.singleLine.beforeColon:r.beforeColon:r.multiLine?r.multiLine.beforeColon:r.beforeColon)??!1,i=(t?r.singleLine?r.singleLine.afterColon:r.afterColon:r.multiLine?r.multiLine.afterColon:r.afterColon)??!0,s=(t?r.singleLine?r.singleLine.mode:r.mode:r.multiLine?r.multiLine.mode:r.mode)??"strict";E(e)&&(A(e,+!!n,s),C(e,+!!i,s))}(e,{singleLine:r_(t)})}return{...a?{ObjectExpression(e){l.includes(e.type)||(r_(e)?x(e.properties.filter(p),o):b(e.properties))},ImportDeclaration(e){T(e)},ExportNamedDeclaration(e){T(e)},ExportAllDeclaration(e){T(e)}}:{Property(e){y(e,r_(e.parent)?o:s)},ImportAttribute(e){let t=e.parent;y(e,u(t,c)?o:s)}},TSTypeLiteral:D,TSInterfaceBody:D,ClassBody:D}}});const sp=/^[)\]}>]$/u,sf=/^(?:[([{<~!]|\+\+?|--?)$/u,sd=/^[)\]}>*]$/u,sm=/^[{*]$/u,sh=/\$\{$/u,sg=/^\}/u,sy=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u;var sx=rj({name:"keyword-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after keywords"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:n6.reduce((e,t)=>(e[t]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},e),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},defaultOptions:[{}],create(e){let t=e.sourceCode,n=new WeakSet;function r(e){return"Template"===e.type&&sh.test(e.value)}function i(e){return"Template"===e.type&&sg.test(e.value)}function s(i,s){let o=t.getTokenBefore(i);o&&(sy.test(o.type)||s.test(o.value))&&!r(o)&&!n.has(o)&&(0,rP.isTokenOnSameLine)(o,i)&&!t.isSpaceBetween(o,i)&&e.report({loc:i.loc,messageId:"expectedBefore",data:i,fix:e=>e.insertTextBefore(i," ")})}function o(i,s){let o=t.getTokenBefore(i);o&&(sy.test(o.type)||s.test(o.value))&&!r(o)&&!n.has(o)&&(0,rP.isTokenOnSameLine)(o,i)&&t.isSpaceBetween(o,i)&&e.report({loc:{start:o.loc.end,end:i.loc.start},messageId:"unexpectedBefore",data:i,fix:e=>e.removeRange([o.range[1],i.range[0]])})}function a(r,s){let o=t.getTokenAfter(r);o&&(sy.test(o.type)||s.test(o.value))&&!i(o)&&!n.has(o)&&(0,rP.isTokenOnSameLine)(r,o)&&!t.isSpaceBetween(r,o)&&e.report({loc:r.loc,messageId:"expectedAfter",data:r,fix:e=>e.insertTextAfter(r," ")})}function l(r,s){let o=t.getTokenAfter(r);o&&(sy.test(o.type)||s.test(o.value))&&!i(o)&&!n.has(o)&&(0,rP.isTokenOnSameLine)(r,o)&&t.isSpaceBetween(r,o)&&e.report({loc:{start:r.loc.end,end:o.loc.start},messageId:"unexpectedAfter",data:r,fix:e=>e.removeRange([r.range[1],o.range[0]])})}let c=function(e={}){let t=!1!==e.before,n=!1!==e.after,r={before:t?s:o,after:n?a:l},i=e&&e.overrides||{},c=Object.create(null);for(let e=0;e<n6.length;++e){let u=n6[e],p=i[u];if(p){let e="before"in p?p.before:t,r="after"in p?p.after:n;c[u]={before:e?s:o,after:r?a:l}}else c[u]=r}return c}(e.options[0]);function u(e,t){c[e.value].before(e,t||sp)}function p(e,t){c[e.value].after(e,t||sf)}function f(e){u(e),p(e)}function d(e){let n=e&&t.getFirstToken(e);if(n){if(!ra(n)){if("VariableDeclaration"!==e.type)return;else if("using"!==e.kind&&"await using"!==e.kind||"Identifier"!==n.type)return}f(n)}}function m(e){let n=e&&t.getFirstToken(e);ra(n)&&u(n)}function h(e){if(e){let n=t.getTokenBefore(e,ra);n&&f(n)}}function g(e){let n=e&&t.getFirstToken(e);n&&(ra(n)&&"function"===n.value||"async"===n.value)&&u(n)}function y(e){d(e),h(e.superClass)}function x(e){let n=t.getFirstToken(e);if(u(n,sd),p(n,sm),"ExportDefaultDeclaration"===e.type&&f(t.getTokenAfter(n)),"ExportAllDeclaration"===e.type&&e.exported){let n=t.getTokenBefore(e.exported);u(n,sd),p(n,sm)}if("source"in e&&e.source){let n=t.getTokenBefore(e.source);if(u(n,sd),p(n,sm),e.attributes){let n=t.getTokenAfter(e.source);ra(n)&&f(n)}}"ExportDefaultDeclaration"!==e.type&&function(e){let n;switch(e.type){case e7.AST_NODE_TYPES.ImportDeclaration:n=e.importKind;break;case e7.AST_NODE_TYPES.ExportAllDeclaration:case e7.AST_NODE_TYPES.ExportNamedDeclaration:n=e.exportKind}if("type"!==n)return;let r=t.getFirstToken(e,{skip:1});(0,rP.isTypeKeyword)(r)&&(u(r,sd),p(r,sm))}(e)}function b(e){if("static"in e&&e.static&&d(e),"get"===e.kind||"set"===e.kind||("method"in e&&e.method||"MethodDefinition"===e.type)&&"async"in e.value&&e.value.async||e.type===e7.AST_NODE_TYPES.AccessorProperty){let n=t.getTokenBefore(e.key,e=>{switch(e.value){case"get":case"set":case"async":case"accessor":return!0;default:return!1}});if(!n)throw Error("Failed to find token get, set, or async beside method name");f(n)}}return{DebuggerStatement:d,WithStatement:d,BreakStatement:d,ContinueStatement:d,ReturnStatement:d,ThrowStatement:d,TryStatement(e){d(e),e.handler&&(e.handler.param?m(e.handler):d(e.handler)),h(e.finalizer)},IfStatement(e){d(e),h(e.alternate)},SwitchStatement:d,SwitchCase:d,DoWhileStatement(e){d(e),h(e.test)},ForInStatement(e){d(e);let n=t.getTokenBefore(e.right,rP.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(n).type&&u(n),p(n)},ForOfStatement(e){e.await?(u(t.getFirstToken(e,0)),p(t.getFirstToken(e,1))):d(e);let n=t.getTokenBefore(e.right,rP.isNotOpeningParenToken);"PrivateIdentifier"!==t.getTokenBefore(n).type&&u(n),p(n)},ForStatement:d,WhileStatement:d,ClassDeclaration:y,ExportNamedDeclaration:x,ExportDefaultDeclaration:x,ExportAllDeclaration:x,FunctionDeclaration:g,ImportDeclaration:x,VariableDeclaration:d,ArrowFunctionExpression:g,AwaitExpression(e){u(t.getFirstToken(e))},ClassExpression:y,FunctionExpression:g,NewExpression:m,Super:m,ThisExpression:m,UnaryExpression:m,YieldExpression:m,ImportSpecifier(e){e.imported.range[0]!==e.local.range[0]&&u(t.getTokenBefore(e.local),sd)},ExportSpecifier(e){if(e.local.range[0]!==e.exported.range[0]){let n=t.getTokenBefore(e.exported);u(n,sd),p(n,sm)}},ImportNamespaceSpecifier(e){u(t.getFirstToken(e,1),sd)},MethodDefinition:b,PropertyDefinition:b,AccessorProperty:b,StaticBlock:d,Property:b,BinaryExpression(e){if(">"!==e.operator)return;let r=t.getTokenBefore(e.right,rP.isNotOpeningParenToken);n.add(r)},TSAsExpression(e){f(t.getTokenAfter(e.expression,e=>"as"===e.value))},TSSatisfiesExpression(e){f(t.getTokenAfter(e.expression,e=>"satisfies"===e.value))}}}}),sb=rj({name:"line-comment-position",meta:{type:"layout",docs:{description:"Enforce position of line comments"},schema:[{oneOf:[{type:"string",enum:["above","beside"]},{type:"object",properties:{position:{type:"string",enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){let t,n,r,i=e.options[0],s=!0;i&&"string"!=typeof i?(t=!i.position||"above"===i.position,r=RegExp(n=i.ignorePattern,"u"),s=Object.hasOwn(i,"applyDefaultIgnorePatterns")?i.applyDefaultIgnorePatterns:!1!==i.applyDefaultPatterns,void 0!==i.applyDefaultPatterns&&nQ('option("applyDefaultPatterns")','"applyDefaultIgnorePatterns"',"line-comment-position")):t=!i||"above"===i;let o=/^\s*falls?\s?through/u,a=e.sourceCode;return{Program(){a.getAllComments().forEach(i=>{if("Line"!==i.type||s&&(n0.test(i.value)||o.test(i.value))||n&&r.test(i.value))return;let l=a.getTokenBefore(i,{includeComments:!0}),c=l&&(0,rP.isTokenOnSameLine)(l,i);t?c&&e.report({node:i,messageId:"above"}):c||e.report({node:i,messageId:"beside"})})}}}}),sT=rj({name:"linebreak-style",meta:{type:"layout",docs:{description:"Enforce consistent linebreak style"},fixable:"whitespace",schema:[{type:"string",enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){let t=e.sourceCode;return{Program:function(n){let r,i="unix"===(e.options[0]||"unix"),s=i?"\n":"\r\n",o=t.getText(),a=n9(),l=0;for(;null!==(r=a.exec(o));){if(l++,r[0]===s)continue;let o=r.index,a=[o,o+r[0].length];e.report({node:n,loc:{start:{line:l,column:t.lines[l-1].length},end:{line:l+1,column:0}},messageId:i?"expectedLF":"expectedCRLF",fix:e=>e.replaceTextRange(a,s)})}}}}}),sk=rj({name:"lines-around-comment",meta:{type:"layout",docs:{description:"Require empty lines around comments"},schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},allowInterfaceStart:{type:"boolean"},allowInterfaceEnd:{type:"boolean"},allowTypeStart:{type:"boolean"},allowTypeEnd:{type:"boolean"},allowEnumStart:{type:"boolean"},allowEnumEnd:{type:"boolean"},allowModuleStart:{type:"boolean"},allowModuleEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean"}},additionalProperties:!1}],fixable:"whitespace",messages:{after:"Expected line after comment.",before:"Expected line before comment."}},defaultOptions:[{beforeBlockComment:!0}],create(e,[t]){let n=RegExp(t.ignorePattern??"","u"),r=e.sourceCode,i=r.getAllComments(),s=r.lines,o=s.length+1,a=function(e){let t=[];return e.forEach(e=>{let n=e.loc.start.line,r=e.loc.end.line;t.push(n,r)}),t}(i),l=function(e){let t=[];return e.forEach((e,n)=>{e.trim()||t.push(n+1)}),t}(s),c=new Set(a.concat(l));function u(e){let t=r.getNodeByRangeIndex(e.range[0]);if(t&&"StaticBlock"===t.type){let n=r.getFirstToken(t,{skip:1});return n&&e.range[0]>=n.range[0]?t:null}return t}function p(e,t){let n=u(e);if(n&&n.type===t){let t=n;return"StaticBlock"===n.type?t=r.getFirstToken(n,{skip:1}):"SwitchStatement"===n.type&&(t=r.getTokenAfter(n.discriminant,{filter:rP.isOpeningBraceToken})),!!t&&e.loc.start.line-t.loc.start.line==1}return!1}function f(e,t){let n=u(e);return!!n&&n.type===t&&n.loc.end.line-e.loc.end.line==1}function d(e){return p(e,e7.AST_NODE_TYPES.ClassBody)}function m(e){return f(e,e7.AST_NODE_TYPES.ClassBody)}function h(i,{before:s,after:a}){if(!1!==t.applyDefaultIgnorePatterns&&n0.test(i.value)||t.ignorePattern&&n.test(i.value))return;let l=i.loc.start.line-1,u=i.loc.end.line+1;if(l<1&&(s=!1),u>=o&&(a=!1),function(e){let t=e;do t=r.getTokenBefore(t,{includeComments:!0});while(t&&(0,rP.isCommentToken)(t));if(t&&(0,rP.isTokenOnSameLine)(t,e))return!0;t=e;do t=r.getTokenAfter(t,{includeComments:!0});while(t&&(0,rP.isCommentToken)(t));return!!(t&&(0,rP.isTokenOnSameLine)(e,t))}(i))return;let h=!!t.allowBlockStart&&(p(i,e7.AST_NODE_TYPES.ClassBody)||p(i,e7.AST_NODE_TYPES.BlockStatement)||p(i,e7.AST_NODE_TYPES.StaticBlock)||p(i,e7.AST_NODE_TYPES.SwitchCase)||p(i,e7.AST_NODE_TYPES.SwitchStatement))&&!(!1===t.allowClassStart&&d(i)),g=!!t.allowBlockEnd&&(f(i,e7.AST_NODE_TYPES.ClassBody)||f(i,e7.AST_NODE_TYPES.BlockStatement)||f(i,e7.AST_NODE_TYPES.StaticBlock)||f(i,e7.AST_NODE_TYPES.SwitchCase)||f(i,e7.AST_NODE_TYPES.SwitchStatement))&&!(!1===t.allowClassEnd&&m(i)),y=!!t.allowClassStart&&d(i),x=!!t.allowClassEnd&&m(i),b=!!t.allowObjectStart&&(p(i,e7.AST_NODE_TYPES.ObjectExpression)||p(i,e7.AST_NODE_TYPES.ObjectPattern)),T=!!t.allowObjectEnd&&(f(i,e7.AST_NODE_TYPES.ObjectExpression)||f(i,e7.AST_NODE_TYPES.ObjectPattern)),k=!!t.allowArrayStart&&(p(i,e7.AST_NODE_TYPES.ArrayExpression)||p(i,e7.AST_NODE_TYPES.ArrayPattern)),S=!!t.allowArrayEnd&&(f(i,e7.AST_NODE_TYPES.ArrayExpression)||f(i,e7.AST_NODE_TYPES.ArrayPattern)),E=!!t.allowInterfaceStart&&p(i,e7.AST_NODE_TYPES.TSInterfaceBody),w=!!t.allowInterfaceEnd&&f(i,e7.AST_NODE_TYPES.TSInterfaceBody),v=!!t.allowTypeStart&&p(i,e7.AST_NODE_TYPES.TSTypeLiteral),A=!!t.allowTypeEnd&&f(i,e7.AST_NODE_TYPES.TSTypeLiteral),C=!!t.allowEnumStart&&(p(i,e7.AST_NODE_TYPES.TSEnumBody)||p(i,e7.AST_NODE_TYPES.TSEnumDeclaration)),D=!!t.allowEnumEnd&&(f(i,e7.AST_NODE_TYPES.TSEnumBody)||f(i,e7.AST_NODE_TYPES.TSEnumDeclaration)),_=!!t.allowModuleStart&&p(i,e7.AST_NODE_TYPES.TSModuleBlock),O=!!t.allowModuleEnd&&f(i,e7.AST_NODE_TYPES.TSModuleBlock),F=h||y||b||k||E||v||C||_,P=g||x||T||S||w||A||D||O,I=r.getTokenBefore(i,{includeComments:!0}),B=r.getTokenAfter(i,{includeComments:!0});if(!F&&s&&!c.has(l)&&!((0,rP.isCommentToken)(I)&&(0,rP.isTokenOnSameLine)(I,i))){let t=i.range[0]-i.loc.start.column,n=[t,t];e.report({node:i,messageId:"before",fix:e=>e.insertTextBeforeRange(n,"\n")})}P||!a||c.has(u)||(0,rP.isCommentToken)(B)&&(0,rP.isTokenOnSameLine)(i,B)||e.report({node:i,messageId:"after",fix:e=>e.insertTextAfter(i,"\n")})}return{Program(){i.forEach(e=>{e.type===e7.AST_TOKEN_TYPES.Line?(t.beforeLineComment||t.afterLineComment)&&h(e,{after:t.afterLineComment,before:t.beforeLineComment}):e.type===e7.AST_TOKEN_TYPES.Block?(t.beforeBlockComment||t.afterBlockComment)&&h(e,{after:t.afterBlockComment,before:t.beforeBlockComment}):rl(e)&&t.afterHashbangComment&&h(e,{after:t.afterHashbangComment,before:!1})})}}}});const sS={"*":{test:()=>!0},field:{test:e=>"PropertyDefinition"===e.type},method:{test:e=>"MethodDefinition"===e.type}};var sE=rj({name:"lines-between-class-members",meta:{type:"layout",docs:{description:"Require or disallow an empty line between class members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{type:"string",enum:["always","never"]},prev:{type:"string",enum:["method","field","*"]},next:{type:"string",enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{type:"string",enum:["always","never"]}]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1},exceptAfterOverload:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},defaultOptions:["always",{exceptAfterOverload:!0,exceptAfterSingleLine:!1}],create(e,[t,n]){let r=[];r[0]=e.options[0]||"always",r[1]=e.options[1]||{exceptAfterSingleLine:!1};let i="object"==typeof r[0]?r[0].enforce:[{blankLine:r[0],prev:"*",next:"*"}],s=e.sourceCode;function o(e,t,n){let r=s.getTokenAfter(e,{includeComments:!0});return r!==t&&r.loc.start.line-e.loc.end.line<=n?o(r,t,n):e}let a=n?.exceptAfterOverload&&("always"===t||"string"!=typeof t&&t?.enforce.some(({blankLine:e,prev:t,next:n})=>"always"===e&&"field"!==t&&"field"!==n));return{ClassBody(t){let n=a?t.body.filter(e=>e.type!==e7.AST_NODE_TYPES.TSAbstractMethodDefinition&&e.type!==e7.AST_NODE_TYPES.MethodDefinition||e.value.type!==e7.AST_NODE_TYPES.TSEmptyBodyFunctionExpression):t.body;for(let t=0;t<n.length-1;t++){let a=s.getFirstToken(n[t]),{curLast:l,nextFirst:c}=function(e,t){let n=s.getLastToken(e),r=s.getTokenBefore(n),i=s.getFirstToken(t);return(0,rP.isSemicolonToken)(n)&&!(0,rP.isTokenOnSameLine)(r,n)&&(0,rP.isTokenOnSameLine)(n,i)?{curLast:r,nextFirst:n}:{curLast:n,nextFirst:i}}(n[t],n[t+1]),u=!!(0,rP.isTokenOnSameLine)(a,l)&&r[1].exceptAfterSingleLine,p=o(l,c,1),f=function e(t,n,r){let i=s.getTokenBefore(t,{includeComments:!0});return i!==n&&t.loc.start.line-i.loc.end.line<=r?e(i,n,r):t}(c,l,1),d=f.loc.start.line-p.loc.end.line>1,m=0!==s.getTokensBetween(p,f,{includeComments:!0}).length,h=o(l,c,0),g=function(e,t){for(let n=i.length-1;n>=0;--n){let r=i[n];if(sS[r.prev].test(e)&&sS[r.next].test(t))return r.blankLine}return null}(n[t],n[t+1]);"never"===g&&d?e.report({node:n[t+1],messageId:"never",fix:e=>m?null:e.replaceTextRange([p.range[1],f.range[0]],"\n")}):"always"!==g||u||d||e.report({node:n[t+1],messageId:"always",fix:e=>m?null:e.insertTextAfter(h,"\n")})}}}}});const sw={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},sv={anyOf:[sw,{type:"integer",minimum:0}]};var sA=rj({name:"max-len",meta:{type:"layout",docs:{description:"Enforce a maximum line length"},schema:[sv,sv,sw],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(e){let t=/[^:/?#]:\/\/[^?#]/u,n=e.sourceCode,r=Object.assign({},e.options[e.options.length-1]);"number"==typeof e.options[0]&&(r.code=e.options[0]),"number"==typeof e.options[1]&&(r.tabWidth=e.options[1]);let i="number"==typeof r.code?r.code:80,s="number"==typeof r.tabWidth?r.tabWidth:4,o=!!r.ignoreComments,a=!!r.ignoreStrings,l=!!r.ignoreTemplateLiterals,c=!!r.ignoreRegExpLiterals,u=!!r.ignoreTrailingComments||!!r.ignoreComments,p=!!r.ignoreUrls,f=r.comments,d=null;function m(e,t,n){return n&&n.loc.start.line===t&&t<=n.loc.end.line&&(n.loc.end.line>t||n.loc.end.column===e.length)}function h(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,"")}function g(e){let t={};for(let r=0;r<e.length;r++){let i=e[r];for(let e=i.loc.start.line;e<=i.loc.end.line;++e){var n;Array.isArray(t[n=e])||(t[n]=[]),t[n].push(i)}}return t}return r.ignorePattern&&(d=RegExp(r.ignorePattern,"u")),{Program:function(r){let y=n.lines,x=o||f||u?function(){let e=[];return n.getAllComments().forEach(t=>{let r=n.getNodeByRangeIndex(t.range[0]);r&&r.parent&&"JSXEmptyExpression"===r.type&&"JSXExpressionContainer"===r.parent.type&&r_(r.parent)?e[e.length-1]!==r.parent&&e.push(r.parent):e.push(t)}),e}():[],b=0,T=g(n.ast.tokens.filter(e=>"String"===e.type||"JSXText"===e.type&&"JSXAttribute"===n.getNodeByRangeIndex(e.range[0]-1).type)),k=g(n.ast.tokens.filter(e=>"Template"===e.type)),S=g(n.ast.tokens.filter(e=>"RegularExpression"===e.type));y.forEach((n,g)=>{var y;let E,w,v=g+1,A=!1;if(b<x.length){let e=null;do e=x[++b];while(e&&e.loc.start.line<=v);if(function(e,t,n){let r=n.loc.start,i=n.loc.end,s=!e.slice(0,n.loc.start.column).trim();return n&&(r.line<t||r.line===t&&s)&&(i.line>t||i.line===t&&i.column===e.length)}(n,v,e=x[--b]))A=!0,E=n;else if(u&&m(n,v,e)){E=h(n,e);let t=b;for(;m(E,v,x[--t]);)E=h(E,x[t])}else E=n}else E=n;if(d&&d.test(E)||p&&t.test(E)||a&&T[v]||l&&k[v]||c&&S[v])return;let C=(w=0,(y=E).replace(/\t/gu,(e,t)=>{let n=t+w;return w+=s-(s?n%s:0)-1,""}),Array.from(y).length+w),D=A&&f;if(A&&o)return;let _={start:{line:v,column:0},end:{line:v,column:E.length}};D?C>f&&e.report({node:r,loc:_,messageId:"maxComment",data:{lineLength:C,maxCommentLength:f}}):C>i&&e.report({node:r,loc:_,messageId:"max",data:{lineLength:C,maxLength:i}})})}}}});const sC=["BreakStatement","ClassDeclaration","ContinueStatement","DebuggerStatement","DoWhileStatement","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","IfStatement","ImportDeclaration","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ExportNamedDeclaration","ExportDefaultDeclaration","ExportAllDeclaration"];var sD=rj({name:"max-statements-per-line",meta:{type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1},ignoredNodes:{type:"array",items:{type:"string",enum:sC}}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){let t=e.sourceCode,n=e.options[0]||{},r=void 0!==n.max?n.max:1,i=n.ignoredNodes||[],s=0,o=0,a=null,l=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function c(){a&&e.report({node:a,messageId:"exceed",data:{numberOfStatementsOnThisLine:o,maxStatementsPerLine:r,statements:1===o?"statement":"statements"}}),a=null}function u(e){let t=e.loc.start.line;(!(e.parent&&l.test(e.parent.type))||"alternate"in e.parent&&e.parent.alternate===e)&&(t===s?o+=1:(c(),o=1,s=t),o===r+1&&(a=a||e))}function p(e){let n=t.getLastToken(e,rP.isNotSemicolonToken).loc.end.line;n!==s&&(c(),o=1,s=n)}let f={"Program:exit":c};for(let e of sC)i.includes(e)||(f[e]=u,f[`${e}:exit`]=p);return f}});const s_={type:"object",properties:{multiline:{type:"object",properties:{delimiter:{$ref:"#/items/0/$defs/multiLineOption"},requireLast:{type:"boolean"}},additionalProperties:!1},singleline:{type:"object",properties:{delimiter:{$ref:"#/items/0/$defs/singleLineOption"},requireLast:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1};var sO=rj({name:"member-delimiter-style",meta:{type:"layout",docs:{description:"Require a specific member delimiter style for interfaces and type literals"},fixable:"whitespace",messages:{unexpectedComma:"Unexpected separator (,).",unexpectedSemi:"Unexpected separator (;).",expectedComma:"Expected a comma.",expectedSemi:"Expected a semicolon."},schema:[{$defs:{multiLineOption:{type:"string",enum:["none","semi","comma"]},singleLineOption:{type:"string",enum:["semi","comma"]},delimiterConfig:s_},type:"object",properties:{...s_.properties,overrides:{type:"object",properties:{interface:{$ref:"#/items/0/$defs/delimiterConfig"},typeLiteral:{$ref:"#/items/0/$defs/delimiterConfig"}},additionalProperties:!1},multilineDetection:{type:"string",enum:["brackets","last-member"]}},additionalProperties:!1}]},defaultOptions:[{multiline:{delimiter:"semi",requireLast:!0},singleline:{delimiter:"semi",requireLast:!1},multilineDetection:"brackets"}],create(e,[t]){let n=e.sourceCode,r=t.overrides??{},i=rN(t,r.interface),s=rN(t,r.typeLiteral);function o(r){let o=r.type===e7.AST_NODE_TYPES.TSInterfaceBody?r.body:r.members,a=r_(r);"last-member"===t.multilineDetection&&!a&&o.length>0&&o[o.length-1].loc.end.line===r.loc.end.line&&(a=!0);let l=r.type===e7.AST_NODE_TYPES.TSInterfaceBody?i:s,c=a?{...l.singleline,type:"single-line"}:{...l.multiline,type:"multi-line"};o.forEach((t,r)=>{!function(t,r,i){function s(e){return i&&!r.requireLast?"none"===e:r.delimiter===e}let o=null,a=!1,l=n.getLastToken(t,{includeComments:!1});if(!l)return;let c=n.getCommentsAfter(l).pop(),u=n.getLines()[l?.loc.start.line-1],p=s("semi"),f=s("comma"),d=s("none");";"===l.value?f?o="expectedComma":d&&(a=!0,o="unexpectedSemi"):","===l.value?p?o="expectedSemi":d&&(a=!0,o="unexpectedComma"):p?(a=!0,o="expectedSemi"):f&&(a=!0,o="expectedComma"),o&&e.report({node:l,loc:{start:{line:l.loc.end.line,column:l.loc.end.column},end:{line:l.loc.end.line,column:l.loc.end.column}},messageId:o,fix:function({optsNone:e,optsSemi:t,lastToken:n,commentsAfterLastToken:r,missingDelimiter:i,lastTokenLine:s,isSingleLine:o}){if(!e||n.loc.start.column===s.length-1||r&&(r.loc.end.line>n.loc.end.line||r.loc.end.column===s.length)||o)return r=>{if(e)return r.remove(n);let s=t?";":",";return i?r.insertTextAfter(n,s):r.replaceText(n,s)}}({optsNone:d,optsSemi:p,lastToken:l,commentsAfterLastToken:c,missingDelimiter:a,lastTokenLine:u,isSingleLine:"single-line"===r.type})})}(t,c??{},r===o.length-1)})}return{TSInterfaceBody:o,TSTypeLiteral:o}}}),sF=rj({name:"multiline-comment-style",meta:{type:"suggestion",docs:{description:"Enforce a particular style for multiline comments"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"],type:"string"}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"],type:"string"},{type:"object",properties:{checkJSDoc:{type:"boolean"},checkExclamation:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){let t=e.sourceCode,n=e.options[0]||"starred-block",r=e.options[1]||{},i=!!r.checkJSDoc,s=!!r.checkExclamation;function o(e){return/^\s*\*/u.test(e)}function a([e]){if("Block"!==e.type)return!1;let t=e.value.split(rP.LINEBREAK_MATCHER);return t.length>0&&t.every((e,n)=>0===n||n===t.length-1?rv(e):o(e))}function l([e]){if("Block"!==e.type)return!1;let t=e.value.split(rP.LINEBREAK_MATCHER);return/^\*\s*$/u.test(t[0])&&t.slice(1,-1).every(e=>/^\s* /u.test(e))&&rv(t.at(-1))}function c([e]){if("Block"!==e.type)return!1;let t=e.value.split(rP.LINEBREAK_MATCHER);return/^!\s*$/u.test(t[0])&&t.slice(1,-1).every(e=>/^\s* /u.test(e))&&rv(t.at(-1))}function u(e){let[n]=e;if("Line"===n.type){let t=e.every(({value:e})=>0===e.trim().length||e.startsWith(" "));return e.map(({value:e})=>t?e.replace(/^ /u,""):e)}if(a(e)){let e=n.value.split(rP.LINEBREAK_MATCHER).slice(1,-1).map(e=>e.replace(rw,"")),t=e.every(e=>{let t=e.replace(/\s*\*/u,"");return 0===t.trim().length||t.startsWith(" ")});return e.map(e=>e.replace(t?/\s*\* ?/u:/\s*\*/u,""))}return function(e){let n=e.value.split(rP.LINEBREAK_MATCHER).map(e=>e.replace(rw,"")),r=`${t.text.slice(e.range[0]-e.loc.start.column,e.range[0])} `,i="";for(let[e,t]of n.entries()){if(!t.trim().length||0===e)continue;let[,n]=t.match(/^(\s*\*?\s*)/u);if(n.length<r.length){let e=r.slice(n.length-r.length);e.length>i.length&&(i=e)}}return n.map(e=>{let[,t,n]=e.match(/^(\s*\*?\s*)(.*)/u);return t.length>r.length?`${t.slice(r.length-(i.length+t.length))}${n}`:t.length<r.length?`${t.slice(r.length)}${n}`:n})}(n)}function p(e){return t.text.slice(e.range[0]-e.loc.start.column,e.range[0])}function f(e,t){return`/* ${t.join(`
17
- ${p(e)} `)} */`}let d={"starred-block":function(n){let[r]=n,i=u(n);if(!i.some(e=>e.includes("*/")))if(n.length>1)e.report({loc:{start:r.loc.start,end:n.at(-1).loc.end},messageId:"expectedBlock",fix(e){let t=[r.range[0],n.at(-1).range[1]];return i.some(e=>e.startsWith("/"))?null:e.replaceTextRange(t,function(e,t){let n=p(e);return`/*
18
- ${t.map(e=>`${n} * ${e}`).join("\n")}
19
- ${n} */`}(r,i))}});else{let n=r.value.split(rP.LINEBREAK_MATCHER),i=p(r),s=`${i} *`;if(!/^[*!]?\s*$/u.test(n[0])){let t=/^[*!]/.test(r.value)?r.range[0]+1:r.range[0];e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:"startNewline",fix:e=>e.insertTextAfterRange([t,t+2],`
20
- ${s}`)})}rv(n.at(-1))||e.report({loc:{start:{line:r.loc.end.line,column:r.loc.end.column-2},end:r.loc.end},messageId:"endNewline",fix:e=>e.replaceTextRange([r.range[1]-2,r.range[1]],`
21
- ${s}/`)});for(let i=r.loc.start.line+1;i<=r.loc.end.line;i++){let a=t.lines[i-1],l=o(a)?"alignment":"missingStar";a.startsWith(s)||e.report({loc:{start:{line:i,column:0},end:{line:i,column:a.length}},messageId:l,fix(e){let o,c=t.getIndexFromLoc({line:i,column:0});if("alignment"===l){let[,t=""]=a.match(/^(\s*\*)/u)||[],n=c+t.length;return e.replaceTextRange([c,n],s)}let[,u=""]=a.match(/^(\s*)/u)||[],p=c+u.length;for(let[e,i]of n.entries()){if(!/\S+/u.test(i))continue;let[,n="",s=""]=t.lines[r.loc.start.line-1+e].match(/^(\s*(?:\/?\*)?(\s*))/u)||[];o=`${u.slice(n.length)}${s}`,/^\s*\//u.test(a)&&0===o.length&&(o+=" ");break}return e.replaceTextRange([c,p],`${s}${o}`)}})}}},"separate-lines":function(n){let[r]=n,o=l(n),a=c(n);if("Block"!==r.type||!i&&o||!s&&a)return;let f=u(n);(o||a)&&(f=f.slice(1,f.length-1));let d=t.getTokenAfter(r,{includeComments:!0});d&&(0,rP.isTokenOnSameLine)(r,d)||e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:"expectedLines",fix:e=>e.replaceText(r,f.map(e=>`// ${e}`).join(`
22
- ${p(r)}`))})},"bare-block":function(t){if(l(t)||c(t))return;let[n]=t,r=u(t);"Line"===n.type&&r.length>1&&!r.some(e=>e.includes("*/"))&&e.report({loc:{start:n.loc.start,end:t.at(-1).loc.end},messageId:"expectedBlock",fix:e=>e.replaceTextRange([n.range[0],t.at(-1).range[1]],f(n,r))}),a(t)&&e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"expectedBareBlock",fix:e=>e.replaceText(n,f(n,r))})}};return{Program(){let e=[];t.getAllComments().forEach((n,r,i)=>{if(rl(n)||n0.test(n.value))return;let s=t.getTokenBefore(n,{includeComments:!0});if(!s||!(s.loc.end.line>=n.loc.start.line))return"Line"===n.type&&r&&"Line"===i[r-1].type&&s&&s.loc.end.line===n.loc.start.line-1&&s===i[r-1]?e.at(-1).push(n):e.push([n]),e}),e.forEach(e=>{1===e.length&&r_(e[0])||(0,d[n])(e)})}}}}),sP=rj({name:"multiline-ternary",meta:{type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions"},schema:[{type:"string",enum:["always","always-multiline","never"]},{type:"object",properties:{ignoreJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){let t=e.sourceCode,n="never"!==e.options[0],r="always-multiline"===e.options[0],i=e.options[1]&&e.options[1].ignoreJSX;return{ConditionalExpression(s){let o=t.getTokenAfter(s.test,rP.isNotClosingParenToken),a=t.getTokenAfter(s.consequent,rP.isNotClosingParenToken),l=t.getFirstToken(s),c=t.getTokenBefore(o),u=t.getTokenAfter(o),p=t.getTokenBefore(a),f=t.getTokenAfter(a),d=(0,rP.isTokenOnSameLine)(c,u),m=(0,rP.isTokenOnSameLine)(p,f),h=!!t.getCommentsInside(s).length;if(i&&("JSXElement"===s.parent.type||"JSXFragment"===s.parent.type||"JSXExpressionContainer"===s.parent.type))return null;if(n){if(r&&r_(s))return;d&&e.report({node:s.test,loc:{start:l.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:e=>h?null:e.replaceTextRange([c.range[1],o.range[0]],"\n")}),m&&e.report({node:s.consequent,loc:{start:u.loc.start,end:p.loc.end},messageId:"expectedConsAlt",fix:e=>h?null:e.replaceTextRange([p.range[1],a.range[0]],"\n")})}else d||e.report({node:s.test,loc:{start:l.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix(e){if(h)return null;let t=[],n=(0,rP.isTokenOnSameLine)(c,o),r=(0,rP.isTokenOnSameLine)(o,u);return n||t.push(e.removeRange([c.range[1],o.range[0]])),r||t.push(e.removeRange([o.range[1],u.range[0]])),t}}),m||e.report({node:s.consequent,loc:{start:u.loc.start,end:p.loc.end},messageId:"unexpectedConsAlt",fix(e){if(h)return null;let t=[],n=(0,rP.isTokenOnSameLine)(p,a),r=(0,rP.isTokenOnSameLine)(a,f);return n||t.push(e.removeRange([p.range[1],a.range[0]])),r||t.push(e.removeRange([a.range[1],f.range[0]])),t}})}}}}),sI=rj({name:"new-parens",meta:{type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments"},fixable:"code",schema:[{type:"string",enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){let t="never"!==e.options[0],n=e.sourceCode;return{NewExpression(r){if(0!==r.arguments.length)return;let i=n.getLastToken(r),s=i&&(0,rP.isClosingParenToken)(i),o=n.getTokenBefore(i),a=s&&(0,rP.isOpeningParenToken)(o)&&r.callee.range[1]<r.range[1];t?a||e.report({node:r,messageId:"missing",fix:e=>e.insertTextAfter(r,"()")}):a&&e.report({node:r,messageId:"unnecessary",fix:e=>[e.remove(o),e.remove(i),e.insertTextBefore(r,"("),e.insertTextAfter(r,")")]})}}}}),sB=rj({name:"newline-per-chained-call",meta:{type:"layout",docs:{description:"Require a newline after each call in a method chain"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){let t=(e.options[0]||{}).ignoreChainWithDepth||2,n=e.sourceCode;return{"CallExpression:exit":function(r){let i=rr(r.callee);if("MemberExpression"!==i.type)return;let s=rr(i.object),o=1;for(;s&&"callee"in s&&s.callee;){o+=1;let e=rr(s.callee);if(!("object"in e))break;s=rr(e.object)}if(o>t&&(0,rP.isTokenOnSameLine)(i.object,i.property)){let t=n.getTokenAfter(i.object,rP.isNotClosingParenToken);e.report({node:i.property,loc:{start:t.loc.start,end:i.loc.end},messageId:"expected",data:{callee:function(e){var t;let r=(t=e).computed?t.optional?"?.[":"[":t.optional?"?.":".",i=n.getText(e.property).split(rP.LINEBREAK_MATCHER),s=e.computed&&1===i.length?"]":"";return r+i[0]+s}(i)},fix:e=>e.insertTextBefore(t,"\n")})}}}}}),sL=rj({name:"no-confusing-arrow",meta:{type:"layout",docs:{description:"Disallow arrow functions where they could be confused with comparisons"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(e){let t=e.options[0]||{},n=t.allowParens||void 0===t.allowParens,r=t.onlyOneSimpleParam,i=e.sourceCode;return{ArrowFunctionExpression:function(t){let s=t.body;"ConditionalExpression"!==s.type||n&&ri(i,s)||r&&(1!==t.params.length||"Identifier"!==t.params[0].type)||e.report({node:t,messageId:"confusing",fix:e=>n?e.replaceText(t.body,`(${i.getText(t.body)})`):null})}}}});const sN=(0,rP.isNodeOfTypes)([e7.AST_NODE_TYPES.TSAsExpression,e7.AST_NODE_TYPES.TSNonNullExpression,e7.AST_NODE_TYPES.TSSatisfiesExpression,e7.AST_NODE_TYPES.TSTypeAssertion]);var sj=rj({name:"no-extra-parens",meta:{type:"layout",docs:{description:"Disallow unnecessary parentheses"},fixable:"code",schema:{anyOf:[{type:"array",items:[{type:"string",enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{type:"string",enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},ternaryOperandBinaryExpressions:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{type:"string",enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"},allowParensAfterCommentPattern:{type:"string"},nestedConditionalExpressions:{type:"boolean"},allowNodesInSpreadElement:{type:"object",properties:{ConditionalExpression:{type:"boolean"},LogicalExpression:{type:"boolean"},AwaitExpression:{type:"boolean"}},additionalProperties:!1},ignoredNodes:{type:"array",items:{type:"string",not:{type:"string",pattern:":exit$"}}}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},defaultOptions:["all"],create(e,[t,n]){let r,i=e.sourceCode,s=new WeakSet,o="functions"!==t,a=o&&n?.conditionalAssign===!1,l=o&&n?.ternaryOperandBinaryExpressions===!1,c=o&&n?.nestedBinaryExpressions===!1,u=o&&n?.returnAssign===!1,p=o&&n?.ignoreJSX,f=o&&n?.enforceForArrowConditionals===!1,d=o&&n?.enforceForSequenceExpressions===!1,m=o&&n?.enforceForNewInMemberExpressions===!1,h=o&&n?.enforceForFunctionPrototypeMethods===!1,g=o&&n?.allowParensAfterCommentPattern,y=o&&n?.nestedConditionalExpressions===!1,x=o&&e.options[1]&&new Set(Object.entries(e.options[1].allowNodesInSpreadElement||{}).filter(([e,t])=>t).map(([e])=>e));f&&nQ('option("enforceForArrowConditionals")','"ignoreNodes"',"no-extra-parens"),m&&nQ('option("enforceForNewInMemberExpressions")','"ignoreNodes"',"no-extra-parens"),x&&nQ('option("allowNodesInSpreadElement")','"ignoreNodes"',"no-extra-parens");let b=ry({type:"AssignmentExpression"}),T=ry({type:"UpdateExpression"});function k(e){let t=rr(e);if("CallExpression"!==t.type)return!1;let n=rr(t.callee);return"MemberExpression"===n.type&&"FunctionExpression"===n.object.type&&["call","apply"].includes(rn(n))}function S(e){if("JSXElement"===e.type||"JSXFragment"===e.type)switch(p){case"all":return!1;case"multi-line":return r_(e);case"single-line":return!r_(e)}return!("SequenceExpression"===e.type&&d||k(e)&&h)&&(o||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type)}function E(e){return(0,rP.isParenthesized)(1,e,i)}function w(e){return(0,rP.isParenthesized)(2,e,i)}function v(e){return S(e)&&E(e)}function A(e){return S(e)&&w(e)}function C(e,t){return!!(S(e)&&E(e)&&(ry(e)>=t||w(e)))}function D(e){return a&&e.test&&"AssignmentExpression"===e.test.type}function _(e){let t=i.getLastToken(e),n=i.getTokenBefore(t);return e.arguments.length>0||(0,rP.isOpeningParenToken)(n)&&(0,rP.isClosingParenToken)(t)&&e.callee.range[1]<e.range[1]}function O(e){let t=e.object,n=e.object.type;for(;"MemberExpression"===n&&"object"in t;)n=(t=t.object).type;return"CallExpression"===n}function F(e){return"AssignmentExpression"===e.type||"ConditionalExpression"===e.type&&("AssignmentExpression"===e.consequent.type||"AssignmentExpression"===e.alternate.type)||"left"in e&&(!!e.left&&"AssignmentExpression"===e.left.type||!!e.right&&"AssignmentExpression"===e.right.type)}function P(e){return!!u&&!!function(e){for(let t=e;t;t=t.parent)if("ReturnStatement"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type)return!0;return!1}(e)&&("ReturnStatement"===e.type?e.argument&&F(e.argument):"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?F(e.body):F(e))}function I(e,t){return(0,rP.isTokenOnSameLine)(e,t)?v(t):A(t)}function B(e){let t=rr(e);return"CallExpression"===t.type&&"FunctionExpression"===t.callee.type}function L(e){return!!(e&&("Identifier"===e.type||"MemberExpression"===e.type))}function N(t){let n=i.getTokenBefore(t),o=i.getTokenAfter(t);if(!w(t)){if(s.has(i.getFirstToken(t))||B(t)&&!("callee"in t&&E(t.callee)))return;if(g){let e=i.getCommentsBefore(n),t=e.length,r=RegExp(g,"u");if(t>0&&r.test(e[t-1].value))return}}function a(){e.report({node:t,loc:n.loc,messageId:"unexpected",fix:"Literal"!==t.type||"string"!=typeof t.value||w(t)||!rd(t.parent)?e=>{let r=i.text.slice(n.range[1],o.range[0]);return e.replaceTextRange([n.range[0],o.range[1]],(!function(e){let t=i.getTokenBefore(e),n=i.getTokenBefore(t,{includeComments:!0}),r=i.getTokenAfter(t,{includeComments:!0});return n&&n.range[1]===t.range[0]&&t.range[1]===r.range[0]&&!rS(n,r)}(t)?"":" ")+r+(!function(e){let t=i.getTokensAfter(e,{count:2}),n=t[0],r=t[1],s=i.getLastToken(e);return n&&r&&!i.isSpaceBetween(n,r)&&!rS(s,r)}(t)?"":" "))}:null})}if(r)return void r.reports.push({node:t,finishReport:a});a()}function j(e){"argument"in e&&e.argument&&C(e.argument,ry(e))&&N(e.argument)}function R(e){let t=sN(e.left),n=sN(e.right);if(t&&n)return;let r=e=>{let t=ry(e),n=ry(e.left),r=ry(e.right),i="**"===e.operator,s=c&&("BinaryExpression"===e.left.type||"LogicalExpression"===e.left.type),o=c&&("BinaryExpression"===e.right.type||"LogicalExpression"===e.right.type);!s&&v(e.left)&&(!(["AwaitExpression","UnaryExpression"].includes(e.left.type)&&i)&&!rp(e.left,e)&&!("ReturnStatement"===e.parent.type&&e.parent.loc.start.line!==e.left.loc.start.line&&!E(e))&&(n>t||n===t&&!i)||w(e.left))&&N(e.left),!o&&v(e.right)&&(!rp(e.right,e)&&(r>t||r===t&&i)||w(e.right))&&N(e.right)};return r(t?{...e,left:{...e.left,type:e7.AST_NODE_TYPES.SequenceExpression}}:n?{...e,right:{...e.right,type:e7.AST_NODE_TYPES.SequenceExpression}}:e)}function q(e){let t=e=>{let t=e.callee;C(t,ry(e))&&(A(t)||!(B(e)||"NewExpression"===t.type&&!_(t)&&!("NewExpression"===e.type&&!_(e))||"NewExpression"===e.type&&"MemberExpression"===t.type&&O(t)||(!("optional"in e)||!e.optional)&&"ChainExpression"===t.type))&&N(e.callee),e.arguments.forEach(e=>{C(e,b)&&N(e)})};return t(sN(e.callee)?{...e,callee:{...e.callee,type:e7.AST_NODE_TYPES.SequenceExpression}}:e.typeArguments&&1===e.arguments.length&&i.getTokenAfter(e.callee,rP.isOpeningParenToken)!==i.getTokenBefore(e.arguments[0],rP.isOpeningParenToken)?{...e,arguments:[{...e.arguments[0],type:e7.AST_NODE_TYPES.SequenceExpression}]}:e)}function M(e){e.superClass&&(ry(e.superClass)>T?v(e.superClass):A(e.superClass))&&N(e.superClass)}function V(e){let t=E(e)?i.getTokenBefore(e):i.getFirstToken(e),n=i.getTokenAfter(t,rP.isNotOpeningParenToken),r=n?i.getTokenAfter(n):null,o=n?i.getTokenAfter(n,rP.isNotClosingParenToken):null;(0,rP.isOpeningParenToken)(t)&&((0,rP.isOpeningBraceToken)(n)||ra(n)&&("function"===n.value||"class"===n.value||"let"===n.value&&o&&((0,rP.isOpeningBracketToken)(o)||"Identifier"===o.type))||n&&"Identifier"===n.type&&"async"===n.value&&ra(r)&&"function"===r.value)&&s.add(n),("ExportDefaultDeclaration"===e.parent.type?C(e,b):v(e))&&N(e)}function $(e){return sN(e.argument)?j({...e,argument:{...e.argument,type:e7.AST_NODE_TYPES.SequenceExpression}}):j(e)}function U(e){e.computed&&C(e.key,b)&&N(e.key),e.value&&C(e.value,b)&&N(e.value)}function Y(e){e.types.forEach(t=>{(c&&(0,rP.isNodeOfTypes)([e7.AST_NODE_TYPES.TSUnionType,e7.AST_NODE_TYPES.TSIntersectionType])(t)?w(t):C(t,ry(e)))&&N(t)})}let J={ArrayExpression(e){e.elements.map(e=>sN(e)?{...e,type:e7.AST_NODE_TYPES.FunctionExpression}:e).forEach(e=>{e&&C(e,b)&&N(e)})},ArrayPattern(e){e.elements.forEach(e=>{e&&L(e)&&v(e)&&N(e)})},ArrowFunctionExpression(e){if(sN(e.body)||P(e)||"ConditionalExpression"===e.body.type&&f||"BlockStatement"===e.body.type)return;let t=i.getFirstToken(e.body,rP.isNotOpeningParenToken),n=i.getTokenBefore(t);(0,rP.isOpeningParenToken)(n)&&(0,rP.isOpeningBraceToken)(t)&&s.add(t),C(e.body,b)&&N(e.body)},AssignmentExpression(e){L(e.left)&&v(e.left)&&(!function({left:e,operator:t,right:n}){if("Identifier"===e.type&&["=","&&=","||=","??="].includes(t)){let e=n.type;if("ArrowFunctionExpression"===e||("FunctionExpression"===e||"ClassExpression"===e)&&!n.id)return!0}return!1}(e)||w(e.left))&&N(e.left),!P(e)&&C(e.right,ry(e))&&N(e.right)},AssignmentPattern(e){let{left:t,right:n}=e;L(t)&&v(t)&&N(t),n&&C(n,b)&&N(n)},AwaitExpression:e=>sN(e.argument)?j({...e,argument:{...e.argument,type:e7.AST_NODE_TYPES.SequenceExpression}}):j(e),BinaryExpression(e){r&&"in"===e.operator&&r.inExpressionNodes.push(e),R(e)},CallExpression:q,ClassDeclaration:e=>e.superClass?.type===e7.AST_NODE_TYPES.TSAsExpression?M({...e,superClass:{...e.superClass,type:e7.AST_NODE_TYPES.SequenceExpression}}):M(e),ClassExpression:e=>e.superClass?.type===e7.AST_NODE_TYPES.TSAsExpression?M({...e,superClass:{...e.superClass,type:e7.AST_NODE_TYPES.SequenceExpression}}):M(e),ConditionalExpression(e){let t=e=>{if(P(e))return;let t=new Set(["BinaryExpression","LogicalExpression"]);!(l&&t.has(e.test.type))&&!(y&&["ConditionalExpression"].includes(e.test.type))&&!D(e)&&C(e.test,ry({type:"LogicalExpression",operator:"||"}))&&N(e.test),!(l&&t.has(e.consequent.type))&&!(y&&["ConditionalExpression"].includes(e.consequent.type))&&C(e.consequent,b)&&N(e.consequent),!(l&&t.has(e.alternate.type))&&!(y&&["ConditionalExpression"].includes(e.alternate.type))&&C(e.alternate,b)&&N(e.alternate)};return t(sN(e.test)?{...e,test:{...e.test,type:e7.AST_NODE_TYPES.SequenceExpression}}:sN(e.consequent)?{...e,consequent:{...e.consequent,type:e7.AST_NODE_TYPES.SequenceExpression}}:sN(e.alternate)?{...e,alternate:{...e.alternate,type:e7.AST_NODE_TYPES.SequenceExpression}}:e)},DoWhileStatement(e){v(e.test)&&!D(e)&&N(e.test)},ExportDefaultDeclaration(e){V(e.declaration)},ExpressionStatement(e){V(e.expression)},ForInStatement(e){if(!sN(e.right)){if("VariableDeclaration"!==e.left.type){let t=i.getFirstToken(e.left,rP.isNotOpeningParenToken);"let"===t.value&&(0,rP.isOpeningBracketToken)(i.getTokenAfter(t,rP.isNotClosingParenToken))&&s.add(t)}v(e.left)&&N(e.left),v(e.right)&&N(e.right)}},ForOfStatement(e){if("VariableDeclaration"!==e.left.type){let t=i.getFirstToken(e.left,rP.isNotOpeningParenToken);"let"===t.value&&s.add(t)}v(e.left)&&N(e.left),!sN(e.right)&&C(e.right,b)&&N(e.right)},ForStatement(e){if(e.test&&v(e.test)&&!D(e)&&!sN(e.test)&&N(e.test),e.update&&v(e.update)&&!sN(e.update)&&N(e.update),e.init&&!sN(e.init)){if("VariableDeclaration"!==e.init.type){let t=i.getFirstToken(e.init,rP.isNotOpeningParenToken);"let"===t.value&&(0,rP.isOpeningBracketToken)(i.getTokenAfter(t,rP.isNotClosingParenToken))&&s.add(t)}r={upper:r,inExpressionNodes:[],reports:[]},v(e.init)&&N(e.init)}},"ForStatement > *.init:exit":function(e){if(!sN(e)){r?.reports.length&&r.inExpressionNodes.forEach(t=>{var n;let i=(function(e,t){let n=[e],r=e;for(;r!==t;){if(null==(r=r.parent))throw Error("Nodes are not in the ancestor-descendant relationship.");n.push(r)}return n})(t,e).reverse(),s=null;for(let e=0;e<i.length;e++){let t=i[e];if(e<i.length-1&&function(e,t){switch(e.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return e.params.includes(t);case"CallExpression":case"NewExpression":return e.arguments.includes(t);case"MemberExpression":return e.computed&&e.property===t;case"ConditionalExpression":return e.consequent===t;default:return!1}}(t,i[e+1]))return;if(E(t))if(!function(e){return r?.reports.some(t=>t.node===e)}(t))return;else{if(w(t))return;s||(s=t)}}s&&(n=s,r&&(r.reports=r.reports.filter(e=>e.node!==n)))});let{upper:t,inExpressionNodes:n,reports:i}=r??{};t?(t.inExpressionNodes.push(...n??[]),t.reports.push(...i??[])):i?.forEach(({finishReport:e})=>e()),r=t}},IfStatement(e){v(e.test)&&!D(e)&&N(e.test)},ImportExpression(e){let{source:t}=e;"SequenceExpression"===t.type?A(t)&&N(t):v(t)&&N(t)},LogicalExpression:R,MemberExpression(e){let t=e=>{let t=function e(t){return"MemberExpression"===t.type&&("NewExpression"===t.parent.type&&t.parent.callee===t||"object"in t.parent&&t.parent.object===t&&e(t.parent))}(e)&&O(e)?A(e.object):v(e.object)&&!(k(e.parent)&&"callee"in e.parent&&e.parent.callee===e&&h);t&&ry(e.object)>=ry(e)&&(e.computed||!(rx(e.object)||rh(e.object)))&&N(e.object),t&&"CallExpression"===e.object.type&&N(e.object),t&&!m&&"NewExpression"===e.object.type&&_(e.object)&&N(e.object),t&&e.optional&&"ChainExpression"===e.object.type&&N(e.object),e.computed&&v(e.property)&&N(e.property)};return t(sN(e.object)?{...e,object:{...e.object,type:e7.AST_NODE_TYPES.SequenceExpression}}:sN(e.property)?{...e,property:{...e.property,type:e7.AST_NODE_TYPES.FunctionExpression}}:e)},MethodDefinition(e){e.computed&&C(e.key,b)&&N(e.key)},NewExpression:q,ObjectExpression(e){e.properties.forEach(e=>{"Property"===e.type&&e.value&&C(e.value,b)&&N(e.value)})},ObjectPattern(e){e.properties.forEach(({value:e})=>{e&&L(e)&&v(e)&&N(e)})},Property(e){if(e.computed){let{key:t}=e;t&&C(t,b)&&N(t)}},PropertyDefinition:U,AccessorProperty:U,RestElement(e){let t=e.argument;L(t)&&v(t)&&N(t)},ReturnStatement(e){let t=i.getFirstToken(e);!P(e)&&e.argument&&t&&I(t,e.argument)&&!rh(e.argument)&&N(e.argument)},SequenceExpression(e){let t=ry(e);e.expressions.forEach(e=>{C(e,t)&&N(e)})},SpreadElement(e){!(sN(e.argument)||x&&x.has(e.argument.type))&&C(e.argument,b)&&N(e.argument)},SwitchCase(e){e.test&&!sN(e.test)&&v(e.test)&&N(e.test)},SwitchStatement(e){v(e.discriminant)&&N(e.discriminant)},TemplateLiteral(e){e.expressions.forEach(e=>{v(e)&&N(e)})},ThrowStatement(e){if(!e.argument||sN(e.argument))return;let t=i.getFirstToken(e);t&&I(t,e.argument)&&N(e.argument)},UnaryExpression:$,UpdateExpression(e){if(sN(e.argument))return $(e);if(e.prefix)j(e);else{let{argument:t}=e,n=i.getLastToken(e);(0,rP.isTokenOnSameLine)(t,n)?j(e):A(t)&&N(t)}},VariableDeclarator(e){let t=e=>{e.init&&C(e.init,b)&&!rh(e.init)&&N(e.init)};return t(sN(e.init)?{...e,type:e7.AST_NODE_TYPES.VariableDeclarator,init:{...e.init,type:e7.AST_NODE_TYPES.FunctionExpression}}:e)},WhileStatement(e){v(e.test)&&!D(e)&&N(e.test)},WithStatement(e){v(e.object)&&N(e.object)},YieldExpression(e){if(!e.argument||sN(e.argument))return;let t=i.getFirstToken(e);(ry(e.argument)>=ry(e)&&t&&I(t,e.argument)||A(e.argument))&&N(e.argument)},TSArrayType(e){C(e.elementType,ry(e))&&N(e.elementType)},TSIntersectionType:Y,TSUnionType:Y,TSTypeAnnotation(e){v(e.typeAnnotation)&&N(e.typeAnnotation)},TSTypeAliasDeclaration(e){v(e.typeAnnotation)&&N(e.typeAnnotation)},TSEnumMember(e){e.initializer&&v(e.initializer)&&N(e.initializer)}},W={},X=new Set,z=[];for(let e in J)W[e]=t=>z.push({node:t,listener:J[e]});return{...W,...n?.ignoredNodes?.reduce((e,t)=>Object.assign(e,{[t]:e=>X.add(e)}),{}),"Program:exit":function(){for(let e=0;e<z.length;e++){let{node:t,listener:n}=z[e];X.has(t)||n(t)}}}}}),sR=rj({name:"no-extra-semi",meta:{type:"layout",docs:{description:"Disallow unnecessary semicolons"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},defaultOptions:[],create(e){let t=e.sourceCode;function n(n){e.report({node:n,messageId:"unexpected",fix:!function(e){let n=t.getTokenAfter(e);return!n||"String"!==n.type||!rd(t.getNodeByRangeIndex(n.range[0]).parent)}(n)?null:t=>new rY(t,e.sourceCode).retainSurroundingTokens(n).remove(n)})}function r(e){for(let r=e;"Punctuator"===r.type&&!(0,rP.isClosingBraceToken)(r);r=t.getTokenAfter(r))(0,rP.isSemicolonToken)(r)&&n(r)}return{EmptyStatement(e){["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(e.parent.type)||n(e)},ClassBody(e){r(t.getFirstToken(e,1))},MethodDefinition(e){r(t.getTokenAfter(e))},PropertyDefinition(e){r(t.getTokenAfter(e))},AccessorProperty(e){r(t.getTokenAfter(e))},StaticBlock(e){r(t.getTokenAfter(e))},TSAbstractMethodDefinition(e){r(t.getTokenAfter(e))},TSAbstractPropertyDefinition(e){r(t.getTokenAfter(e))}}}}),sq=rj({name:"no-floating-decimal",meta:{type:"layout",docs:{description:"Disallow leading or trailing decimal points in numeric literals"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){let t=e.sourceCode;return{Literal(n){"number"==typeof n.value&&(n.raw.startsWith(".")&&e.report({node:n,messageId:"leading",fix(e){let r=t.getTokenBefore(n),i=r&&r.range[1]===n.range[0]&&!rS(r,`0${n.raw}`);return e.insertTextBefore(n,i?" 0":"0")}}),n.raw.indexOf(".")===n.raw.length-1&&e.report({node:n,messageId:"trailing",fix:e=>e.insertTextAfter(n,"0")}))}}}});const sM=["+","-","*","/","%","**"],sV=["&","|","^","~","<<",">>",">>>"],s$=["==","!=","===","!==",">",">=","<","<="],sU=["&&","||"],sY=["in","instanceof"],sJ=[].concat(sM,sV,s$,sU,sY,["?:"],["??"]),sW=[sM,sV,s$,sU,sY],sX=/^(?:Binary|Logical|Conditional)Expression$/u;function sz(e){return"ConditionalExpression"===e.type?e.test:e.left}var sH=rj({name:"no-mixed-operators",meta:{type:"layout",docs:{description:"Disallow mixed binary operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{type:"string",enum:sJ},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(e){let t=e.sourceCode,n=function(e={}){return{groups:e.groups&&e.groups.length>0?e.groups:sW,allowSamePrecedence:!1!==e.allowSamePrecedence}}(e.options[0]);function r(e){return t.getTokenAfter(sz(e),rP.isNotClosingParenToken)}function i(i){var s;sX.test(i.parent.type)&&(s=i).operator!==s.parent.operator&&!ri(t,s)&&!function(e){var t,r,i;let s=e.parent;return t=n.groups??[],r=e.operator,i="ConditionalExpression"===s.type?"?:":s.operator,!t.some(e=>e.includes(r)&&e.includes(i))||n.allowSamePrecedence&&ry(e)===ry(s)}(i)&&function(t){let n=t.parent,i=sz(n)===t?t:n,s=sz(n)!==t?t:n,o={leftOperator:i.operator||"?:",rightOperator:s.operator||"?:"};e.report({node:i,loc:r(i).loc,messageId:"unexpectedMixedOperator",data:o}),e.report({node:s,loc:r(s).loc,messageId:"unexpectedMixedOperator",data:o})}(i)}return{BinaryExpression:i,LogicalExpression:i}}}),sK=rj({name:"no-mixed-spaces-and-tabs",meta:{type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation"},schema:[{oneOf:[{type:"string",enum:["smart-tabs"]},{type:"boolean"}]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(e){let t,n=e.sourceCode;switch(e.options[0]){case!0:case"smart-tabs":t=!0;break;default:t=!1}return{"Program:exit":function(r){let i=n.lines,s=n.getAllComments(),o=new Set;s.forEach(e=>{for(let t=e.loc.start.line+1;t<=e.loc.end.line;t++)o.add(t)});let a=/^(?=( +|\t+))\1(?:\t| )/u;t&&(a=/^(?=(\t*))\1(?=( +))\2\t/u),i.forEach((t,i)=>{let s=a.exec(t);if(s){let t=i+1,a={start:{line:t,column:s[0].length-2},end:{line:t,column:s[0].length}};if(!o.has(t)){let t=n.getNodeByRangeIndex(n.getIndexFromLoc(a.start));t&&["Literal","TemplateElement"].includes(t.type)||e.report({node:r,loc:a,messageId:"mixedSpacesAndTabs"})}}})}}}}),sG=rj({name:"no-multi-spaces",meta:{type:"layout",docs:{description:"Disallow multiple spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1},includeTabs:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){let t=e.sourceCode,n=e.options[0]||{},r=n.ignoreEOLComments,i=Object.assign({Property:!0,ImportAttribute:!0},n.exceptions),s=Object.keys(i).some(e=>i[e]),o=!1===n.includeTabs?/ {2}/:/[ \t]{2}/;function a(e){let t=e.value.split("\n"),n=t[0],r=`${n.slice(0,12)}...`;return 1===t.length&&n.length<=12?n:r}return{Program(){t.tokensAndComments.forEach((n,l,c)=>{let u;if(l===c.length-1)return;let p=c[l+1];if(o.test(t.text.slice(n.range[1],p.range[0]))&&!(n.loc.end.line<p.loc.start.line)&&(!(r&&(0,rP.isCommentToken)(p))||l!==c.length-2&&!(p.loc.end.line<c[l+2].loc.start.line))){if(s){let e=t.getNodeByRangeIndex(p.range[0]-1);if(e&&i[e.type])return}u="Block"===p.type?`/*${a(p)}*/`:"Line"===p.type?`//${a(p)}`:p.value,e.report({node:p,loc:{start:n.loc.end,end:p.loc.start},messageId:"multipleSpaces",data:{displayValue:u},fix:e=>e.replaceTextRange([n.range[1],p.range[0]]," ")})}})}}}}),sQ=rj({name:"no-multiple-empty-lines",meta:{type:"layout",docs:{description:"Disallow multiple empty lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(e){let t=2,n=2,r=2;e.options.length&&e.options[0]&&(t=e.options[0].max,n=void 0!==e.options[0].maxEOF?e.options[0].maxEOF:t,r=void 0!==e.options[0].maxBOF?e.options[0].maxBOF:t);let i=e.sourceCode,s=""===i.lines[i.lines.length-1]?i.lines.slice(0,-1):i.lines,o=new Set;return{TemplateLiteral(e){e.quasis.forEach(e=>{for(let t=e.loc.start.line;t<e.loc.end.line;t++)o.add(t)})},"Program:exit":function(a){return s.reduce((e,t,n)=>((t.trim()||o.has(n+1))&&e.push(n+1),e),[]).concat(s.length+1).reduce((o,l)=>{let c,u;return 0===o?(c="blankBeginningOfFile",u=r):l===s.length+1?(c="blankEndOfFile",u=n):(c="consecutiveBlank",u=t),l-o-1>u&&e.report({node:a,loc:{start:{line:o+u+1,column:0},end:{line:l,column:0}},messageId:c,data:{max:u,pluralizedLines:1===u?"line":"lines"},fix(e){let t=i.getIndexFromLoc({line:o+1,column:0}),n=l-u,r=n<=s.length?i.getIndexFromLoc({line:n,column:0}):i.text.length;return e.removeRange([t,r])}}),l},0)}}}});const sZ=/\t+/gu,s0=/\S/u;var s1=rj({name:"no-tabs",meta:{type:"layout",docs:{description:"Disallow all tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(e){let t=e.sourceCode,n=e.options&&e.options[0]&&e.options[0].allowIndentationTabs;return{Program(r){t.getLines().forEach((t,i)=>{let s;for(;null!==(s=sZ.exec(t));)(!n||s0.test(t.slice(0,s.index)))&&e.report({node:r,loc:{start:{line:i+1,column:s.index},end:{line:i+1,column:s.index+s[0].length}},messageId:"unexpectedTab"})})}}}}),s2=rj({name:"no-trailing-spaces",meta:{type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){let t=e.sourceCode,n="[ \xa0 -​ ]",r=`^${n}*$`,i=`${n}+$`,s=e.options[0]||{},o=s.skipBlankLines||!1,a=s.ignoreComments||!1;return{Program:function(n){let s=RegExp(i,"u"),l=RegExp(r,"u"),c=t.lines,u=t.getText().match(n9()),p=function(e){let t=new Set;return e.forEach(e=>{let n="Block"===e.type?e.loc.end.line-1:e.loc.end.line;for(let r=e.loc.start.line;r<=n;r++)t.add(r)}),t}(t.getAllComments()),f=0;for(let r=0,i=c.length;r<i;r++){let i=r+1,d=u&&u[r]?u[r].length:1,m=c[r].length+d,h=s.exec(c[r]);if(h){let s={start:{line:i,column:h.index},end:{line:i,column:m-d}},u=f+s.start.column,g=f+s.end.column,y=t.getNodeByRangeIndex(u);if(y&&"TemplateElement"===y.type&&u>y.parent.range[0]&&g<y.parent.range[1]||o&&l.test(c[r])){f+=m;continue}let x=[u,g];a&&p.has(i)||function(t,n,r){e.report({node:t,loc:n,messageId:"trailingSpace",fix:e=>e.removeRange(r)})}(n,s,x)}f+=m}}}}}),s3=rj({name:"no-whitespace-before-property",meta:{type:"layout",docs:{description:"Disallow whitespace before properties"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){let t=e.sourceCode;return{MemberExpression(n){let r,i;if((0,rP.isTokenOnSameLine)(n.object,n.property)){var s,o;n.computed?(r=t.getTokenBefore(n.property,rP.isOpeningBracketToken),i=t.getTokenBefore(r,+!!n.optional)):(r=t.getFirstToken(n.property),i=t.getTokenBefore(r,1)),t.isSpaceBetween(i,r)&&(s=i,o=r,e.report({node:n,messageId:"unexpectedWhitespace",data:{propName:t.getText(n.property)},fix(e){let r="";return!n.computed&&!n.optional&&rx(n.object)||t.commentsExistBetween(s,o)?null:(n.optional?r="?.":n.computed||(r="."),e.replaceTextRange([s.range[1],o.range[0]],r))}}))}}}}});const s4={type:"string",enum:["beside","below","any"]};var s5=rj({name:"nonblock-statement-body-position",meta:{type:"layout",docs:{description:"Enforce the location of single-line statements"},fixable:"whitespace",schema:[s4,{type:"object",properties:{overrides:{type:"object",properties:{if:s4,else:s4,while:s4,do:s4,for:s4},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){let t=e.sourceCode;function n(n,r){let i=e.options[1]&&e.options[1].overrides&&e.options[1].overrides[r]||e.options[0]||"beside";if("BlockStatement"===n.type||"any"===i)return;let s=t.getTokenBefore(n),o=(0,rP.isTokenOnSameLine)(s,n);o&&"below"===i?e.report({node:n,messageId:"expectLinebreak",fix:e=>e.insertTextBefore(n,"\n")}):o||"beside"!==i||e.report({node:n,messageId:"expectNoLinebreak",fix:e=>t.getText().slice(s.range[1],n.range[0]).trim()?null:e.replaceTextRange([s.range[1],n.range[0]]," ")})}return{IfStatement(e){n(e.consequent,"if"),e.alternate&&"IfStatement"!==e.alternate.type&&n(e.alternate,"else")},WhileStatement:e=>n(e.body,"while"),DoWhileStatement:e=>n(e.body,"do"),ForStatement:e=>n(e.body,"for"),ForInStatement:e=>n(e.body,"for"),ForOfStatement:e=>n(e.body,"for")}}});const s6={oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]},s9={multiline:!1,minProperties:1/0,consistent:!0};var s8=rj({name:"object-curly-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces"},fixable:"whitespace",schema:[{oneOf:[s6,{type:"object",properties:{ObjectExpression:s6,ObjectPattern:s6,ImportDeclaration:s6,ExportDeclaration:s6,TSTypeLiteral:s6,TSInterfaceBody:s6,TSEnumBody:s6},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},defaultOptions:[{ObjectExpression:s9,ObjectPattern:s9,ImportDeclaration:s9,ExportDeclaration:s9,TSTypeLiteral:s9,TSInterfaceBody:s9}],create(e){let t=e.sourceCode;function n(e){let t=!1,n=1/0,r=!1;return e?"always"===e?n=0:"never"===e?n=1/0:(t=!!e.multiline,n=e.minProperties||1/0,r=!!e.consistent):r=!0,{multiline:t,minProperties:n,consistent:r}}function r(e){return"object"==typeof e&&null!==e}function i(e){return r(e)||"string"==typeof e}let s=function(e){if(r(e)&&Object.values(e).some(i))return{ObjectExpression:n(e.ObjectExpression),ObjectPattern:n(e.ObjectPattern),ImportDeclaration:n(e.ImportDeclaration),ExportNamedDeclaration:n(e.ExportDeclaration),TSTypeLiteral:n(e.TSTypeLiteral),TSInterfaceBody:n(e.TSInterfaceBody),TSEnumBody:n(e.TSEnumBody)};let t=n(e);return{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportNamedDeclaration:t,TSTypeLiteral:t,TSInterfaceBody:t,TSEnumBody:t}}(e.options[0]);function o(n){var r,i;let o,a,l=s[n.type];if("ImportDeclaration"===n.type&&!n.specifiers.some(e=>"ImportSpecifier"===e.type)||"ExportNamedDeclaration"===n.type&&!n.specifiers.some(e=>"ExportSpecifier"===e.type))return;let c=t.getFirstToken(n,e=>"{"===e.value);o="ObjectPattern"===n.type&&n.typeAnnotation?t.getTokenBefore(n.typeAnnotation):t.getLastToken(n,e=>"}"===e.value);let u=t.getTokenAfter(c,{includeComments:!0}),p=t.getTokenBefore(o,{includeComments:!0}),f=(r=u,i=p,(a="ObjectExpression"===n.type||"ObjectPattern"===n.type?n.properties:"TSTypeLiteral"===n.type?n.members:"TSInterfaceBody"===n.type?n.body:"TSEnumBody"===n.type?n.members:n.specifiers.filter(e=>"ImportSpecifier"===e.type||"ExportSpecifier"===e.type)).length>=l.minProperties||l.multiline&&a.length>0&&!(0,rP.isTokenOnSameLine)(i,r)),d=(0,rP.isCommentToken)(u),m=(0,rP.isCommentToken)(p);if(u=t.getTokenAfter(c),p=t.getTokenBefore(o),f)(0,rP.isTokenOnSameLine)(c,u)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:n,loc:c.loc,fix:e=>d?null:e.insertTextAfter(c,"\n")}),(0,rP.isTokenOnSameLine)(p,o)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:n,loc:o.loc,fix:e=>m?null:e.insertTextBefore(o,"\n")});else{let t=l.consistent,r=!(0,rP.isTokenOnSameLine)(c,u),i=!(0,rP.isTokenOnSameLine)(p,o);(!t&&r||t&&r&&!i)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:n,loc:c.loc,fix:e=>d?null:e.removeRange([c.range[1],u.range[0]])}),(!t&&i||t&&!r&&i)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:n,loc:o.loc,fix:e=>m?null:e.removeRange([p.range[1],o.range[0]])})}}return{ObjectExpression:o,ObjectPattern:o,ImportDeclaration:o,ExportNamedDeclaration:o,TSTypeLiteral:o,TSInterfaceBody:o,TSEnumBody:o}}}),s7=rj({name:"object-curly-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside braces"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},defaultOptions:["never"],create(e){let[t,n]=e.options,r="always"===t,i=e.sourceCode;function s(e){return!!n&&!r===n[e]}let o={spaced:r,arraysInObjectsException:s("arraysInObjects"),objectsInObjectsException:s("objectsInObjects")};function a(t,n,r){let s=i.getTokenAfter(n,{includeComments:!0});if((0,rP.isTokenOnSameLine)(n,s)){let r=i.isSpaceBetween(n,s),a=i.getNodeByRangeIndex(s.range[0]).type,l=o.arraysInObjectsException&&[e7.AST_NODE_TYPES.TSMappedType,e7.AST_NODE_TYPES.TSIndexSignature].includes(a)?!o.spaced:o.spaced;l&&!r&&e.report({node:t,loc:n.loc,messageId:"requireSpaceAfter",data:{token:n.value},fix:e=>e.insertTextAfter(n," ")}),!l&&r&&s.type!==e7.AST_TOKEN_TYPES.Line&&function(t,n){let r=i.getTokenAfter(n,{includeComments:!0});e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceAfter",data:{token:n.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(t,n)}let a=i.getTokenBefore(r,{includeComments:!0});if((0,rP.isTokenOnSameLine)(a,r)){let n=o.arraysInObjectsException&&(0,rP.isClosingBracketToken)(a)||o.objectsInObjectsException&&(0,rP.isClosingBraceToken)(a)?i.getNodeByRangeIndex(a.range[0]).type:void 0,s=o.arraysInObjectsException&&[e7.AST_NODE_TYPES.ArrayExpression,e7.AST_NODE_TYPES.TSTupleType].includes(n)||o.objectsInObjectsException&&void 0!==n&&[e7.AST_NODE_TYPES.ObjectExpression,e7.AST_NODE_TYPES.ObjectPattern,e7.AST_NODE_TYPES.TSMappedType,e7.AST_NODE_TYPES.TSTypeLiteral].includes(n)?!o.spaced:o.spaced,l=i.isSpaceBetween(a,r);s&&!l&&e.report({node:t,loc:r.loc,messageId:"requireSpaceBefore",data:{token:r.value},fix:e=>e.insertTextBefore(r," ")}),!s&&l&&function(t,n){let r=i.getTokenBefore(n,{includeComments:!0});e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceBefore",data:{token:n.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(t,r)}}function l(e,t){if(0!==t.length)a(e,i.getTokenBefore(t[0],rP.isOpeningBraceToken),i.getTokenAfter(t.at(-1),rP.isClosingBraceToken))}return{ObjectPattern(e){l(e,e.properties)},ObjectExpression(e){l(e,e.properties)},ImportDeclaration(e){e.attributes&&l(e,e.attributes);let t=e.specifiers.findIndex(e=>"ImportSpecifier"===e.type);-1!==t&&l(e,e.specifiers.slice(t))},ExportNamedDeclaration(e){l(e,e.specifiers),e.attributes&&l(e,e.attributes)},ExportAllDeclaration(e){e.attributes&&l(e,e.attributes)},TSMappedType(e){let t=i.getFirstToken(e),n=i.getLastToken(e);a(e,t,n)},TSTypeLiteral(e){l(e,e.members)},TSInterfaceBody(e){l(e,e.body)},TSEnumBody(e){l(e,e.members)}}}}),oe=rj({name:"object-property-newline",meta:{type:"layout",docs:{description:"Enforce placing object properties on separate lines"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},defaultOptions:[{allowAllPropertiesOnSameLine:!1}],create(e){let t=e.options[0]&&e.options[0].allowAllPropertiesOnSameLine,n=t?"propertiesOnNewlineAll":"propertiesOnNewline",r=e.sourceCode;function i(i,s){if(t&&s.length>1){let e=r.getFirstToken(s[0]),t=r.getLastToken(s[s.length-1]);if((0,rP.isTokenOnSameLine)(e,t))return}for(let t=1;t<s.length;t++){let o=r.getLastToken(s[t-1]),a=r.getFirstToken(s[t]);(0,rP.isTokenOnSameLine)(o,a)&&e.report({node:i,loc:a.loc,messageId:n,fix(e){let t=[r.getTokenBefore(a).range[1],a.range[0]];return r.text.slice(t[0],t[1]).trim()?null:e.replaceTextRange(t,"\n")}})}}return{ObjectExpression(e){i(e,e.properties)},TSTypeLiteral(e){i(e,e.members)},TSInterfaceBody(e){i(e,e.body)}}}}),ot=rj({name:"one-var-declaration-per-line",meta:{type:"layout",docs:{description:"Require or disallow newlines around variable declarations"},schema:[{type:"string",enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(e){let{sourceCode:t}=e,n="always"===e.options[0];return{VariableDeclaration:function(r){var i;let s;"ForStatement"!==(i=r.parent.type)&&"ForInStatement"!==i&&"ForOfStatement"!==i&&r.declarations.forEach(i=>{if(s&&(0,rP.isTokenOnSameLine)(s,i)&&(n||s.init||i.init)){let n=e=>e.insertTextBefore(i,"\n"),s=t.getTokenBefore(i,{includeComments:!1});if(s){let e=t.text.slice(s.range[1],i.range[0]);n=t=>t.replaceTextRange([s.range[1],i.range[0]],`${e}
23
- `)}e.report({node:r,messageId:"expectVarOnNewline",loc:i.loc,fix:n})}s=i})}}}}),on=rj({name:"operator-linebreak",meta:{type:"layout",docs:{description:"Enforce consistent linebreak style for operators"},schema:[{oneOf:[{type:"string",enum:["after","before","none"]},{type:"null"}]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{type:"string",enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){let t=!e.options[0],n=e.options[0]||"after",r=e.options[1]||{},i=r.overrides?Object.assign({},r.overrides):{};t&&!i["?"]&&(i["?"]="before"),t&&!i[":"]&&(i[":"]="before");let s=e.sourceCode;function o(t,r,o){let a=s.getTokenBefore(r,e=>e.value===o),l=s.getTokenBefore(a),c=s.getTokenAfter(a),u=i[o],p=u||n,f=e=>{let t,n,r=s.getTokenBefore(a),i=s.getTokenAfter(a),o=s.text.slice(r.range[1],a.range[0]),l=s.text.slice(a.range[1],i.range[0]),c=!(0,rP.isTokenOnSameLine)(r,a);if(!(0,rP.isTokenOnSameLine)(a,i)!==c&&"none"!==p){if(s.getTokenBefore(a,{includeComments:!0})!==r&&s.getTokenAfter(a,{includeComments:!0})!==i)return null;t=l,n=o}else{let e=n9();if(t="before"===p||o.trim()?o:o.replace(e,""),n="after"===p||l.trim()?l:l.replace(e,""),t===o&&n===l)return null}return""===n&&"Punctuator"===i.type&&"+-".includes(a.value)&&i.value===a.value&&(n+=" "),e.replaceTextRange([r.range[1],i.range[0]],t+a.value+n)};(0,rP.isTokenOnSameLine)(l,a)&&(0,rP.isTokenOnSameLine)(a,c)||("ignore"===u||(0,rP.isTokenOnSameLine)(l,a)||(0,rP.isTokenOnSameLine)(a,c)?"before"===p&&(0,rP.isTokenOnSameLine)(l,a)?e.report({node:t,loc:a.loc,messageId:"operatorAtBeginning",data:{operator:o},fix:f}):"after"===p&&(0,rP.isTokenOnSameLine)(a,c)?e.report({node:t,loc:a.loc,messageId:"operatorAtEnd",data:{operator:o},fix:f}):"none"===p&&e.report({node:t,loc:a.loc,messageId:"noLinebreak",data:{operator:o},fix:f}):e.report({node:t,loc:a.loc,messageId:"badLinebreak",data:{operator:o},fix:f}))}function a(e){o(e,e.right,e.operator)}return{BinaryExpression:a,LogicalExpression:a,AssignmentExpression:a,VariableDeclarator(e){e.init&&o(e,e.init,"=")},PropertyDefinition(e){e.value&&o(e,e.value,"=")},AccessorProperty(e){e.value&&o(e,e.value,"=")},ConditionalExpression(e){o(e,e.consequent,"?"),o(e,e.alternate,":")},TSImportEqualsDeclaration(e){o(e,e.moduleReference,"=")},TSTypeAliasDeclaration(e){o(e,e.typeAnnotation,"=")},TSConditionalType(e){o(e,e.trueType,"?"),o(e,e.falseType,":")},TSIntersectionType(e){let{types:t}=e;for(let e=0;e<t.length-1;e++)o(t[e],t[e+1],"&")},TSUnionType(e){let{types:t}=e;for(let e=0;e<t.length-1;e++)o(t[e],t[e+1],"|")},TSTypeParameter(e){e.default&&o(e,e.default,"=")},TSEnumMember(e){e.initializer&&o(e,e.initializer,"=")}}}});const or=["always","never","start","end"];var oi=rj({name:"padded-blocks",meta:{type:"layout",docs:{description:"Require or disallow padding within blocks"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:or},{type:"object",properties:{blocks:{type:"string",enum:or},switches:{type:"string",enum:or},classes:{type:"string",enum:or}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{missingPadBlock:"Block must be padded by blank lines.",extraPadBlock:"Block must not be padded by blank lines."}},create(e){let t={},n=e.options[0]||"always",r=e.options[1]||{};"string"==typeof n?(t.blocks=n,t.switches=n,t.classes=n):Object.assign(t,n),r.allowSingleLineBlocks??=!1;let i=e.sourceCode;function s(e){return"Line"===e.type||"Block"===e.type}function o(e,t){return t.loc.start.line-e.loc.end.line>=2}function a(n){let a=function(e){let t,n=e;do t=n,n=i.getTokenAfter(n,{includeComments:!0});while(s(n)&&(0,rP.isTokenOnSameLine)(t,n));return n}("SwitchStatement"===n.type?i.getTokenBefore(n.cases[0]):"StaticBlock"===n.type?i.getFirstToken(n,{skip:1}):i.getFirstToken(n)),l=i.getTokenBefore(a,{includeComments:!0}),c=function(e){let t,n=e;do t=n,n=i.getTokenBefore(n,{includeComments:!0});while(s(n)&&(0,rP.isTokenOnSameLine)(n,t));return n}(i.getLastToken(n)),u=i.getTokenAfter(c,{includeComments:!0}),p=o(l,a),f=o(c,u);if(r.allowSingleLineBlocks&&(0,rP.isTokenOnSameLine)(l,u))return;let d=function(e){switch(e.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw Error("unreachable")}}(n);p?("never"===d||"end"===d)&&e.report({node:n,loc:{start:l.loc.start,end:a.loc.start},fix:e=>e.replaceTextRange([l.range[1],a.range[0]-a.loc.start.column],"\n"),messageId:"extraPadBlock"}):("always"===d||"start"===d)&&e.report({node:n,loc:{start:l.loc.start,end:a.loc.start},fix:e=>e.insertTextAfter(l,"\n"),messageId:"missingPadBlock"}),f?("never"===d||"start"===d)&&e.report({node:n,loc:{end:u.loc.start,start:c.loc.end},messageId:"extraPadBlock",fix:e=>e.replaceTextRange([c.range[1],u.range[0]-u.loc.start.column],"\n")}):("always"===d||"end"===d)&&e.report({node:n,loc:{end:u.loc.start,start:c.loc.end},fix:e=>e.insertTextBefore(u,"\n"),messageId:"missingPadBlock"})}let l={};return Object.prototype.hasOwnProperty.call(t,"switches")&&(l.SwitchStatement=function(e){0!==e.cases.length&&a(e)}),Object.prototype.hasOwnProperty.call(t,"blocks")&&(l.BlockStatement=function(e){0!==e.body.length&&a(e)},l.StaticBlock=l.BlockStatement),Object.prototype.hasOwnProperty.call(t,"classes")&&(l.ClassBody=function(e){0!==e.body.length&&a(e)}),l}});const os=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,oo=/^require\(/u,oa=`[${Array.from(n1).join("")}]`,ol=RegExp(String.raw`^(\s*?${oa})\s*${oa}(\s*;?)$`,"u");function oc(e,t){return{test(n,r){let i=r.getFirstToken(n)?.value===t,s=Array.isArray(e)?e.includes(n.type):e===n.type;return i&&s}}}function ou(e){return{test:t=>t.type===e}}function op(e){if(e.type===e7.AST_NODE_TYPES.ExpressionStatement){let t=rr(e.expression);if(t.type===e7.AST_NODE_TYPES.UnaryExpression&&(t=rr(t.argument)),t.type===e7.AST_NODE_TYPES.CallExpression){let e=t.callee;for(;e.type===e7.AST_NODE_TYPES.SequenceExpression;)e=e.expressions[e.expressions.length-1];return(0,rP.isFunction)(e)}}return!1}function of(e,t){return rd(e)&&e.expression.type===e7.AST_NODE_TYPES.Literal&&"string"==typeof e.expression.value&&!(0,rP.isParenthesized)(e.expression,t)}function od(e,t){if(of(e,t)&&e.parent&&"body"in e.parent&&Array.isArray(e.parent.body)){for(let n of e.parent.body){if(n===e)break;if(!of(n,t))return!1}return!0}return!1}function om(e,t){let n=t.getLastToken(e),r=t.getTokenBefore(n),i=t.getTokenAfter(n);return r&&i&&r.range[0]>=e.range[0]&&(0,rP.isSemicolonToken)(n)&&!(0,rP.isTokenOnSameLine)(r,n)&&(0,rP.isTokenOnSameLine)(n,i)?r:n}function oh(e,t,n){return t+n}const og={any:{verify:function(){}},never:{verify:function(e,t,n,r){0!==r.length&&e.report({node:n,messageId:"unexpectedBlankLine",fix(t){if(r.length>=2)return null;let n=r[0][0],i=r[0][1],s=n.range[1],o=i.range[0],a=e.getSourceCode().text.slice(s,o).replace(ol,oh);return t.replaceTextRange([s,o],a)}})}},always:{verify:function(e,t,n,r){r.length>0||e.report({node:n,messageId:"expectedBlankLine",fix(r){let i=e.sourceCode,s=om(t,i),o=i.getFirstTokenBetween(s,n,{includeComments:!0,filter:e=>!(0,rP.isTokenOnSameLine)(s,e)||(s=e,!1)})||n,a=(0,rP.isTokenOnSameLine)(s,o)?"\n\n":"\n";return r.insertTextAfter(s,a)}})}}},oy={"block-like":{test:function(e,t){if(e.type===e7.AST_NODE_TYPES.DoWhileStatement&&e.body.type===e7.AST_NODE_TYPES.BlockStatement||op(e))return!0;let n=t.getLastToken(e,rP.isNotSemicolonToken),r=n&&(0,rP.isClosingBraceToken)(n)?t.getNodeByRangeIndex(n.range[0]):null;return!!r&&(r.type===e7.AST_NODE_TYPES.BlockStatement||r.type===e7.AST_NODE_TYPES.SwitchStatement)}},expression:{test:function(e,t){return e.type===e7.AST_NODE_TYPES.ExpressionStatement&&!od(e,t)}},return:oc(e7.AST_NODE_TYPES.ReturnStatement,"return"),export:oc([e7.AST_NODE_TYPES.ExportAllDeclaration,e7.AST_NODE_TYPES.ExportDefaultDeclaration,e7.AST_NODE_TYPES.ExportNamedDeclaration],"export"),var:oc(e7.AST_NODE_TYPES.VariableDeclaration,"var"),let:oc(e7.AST_NODE_TYPES.VariableDeclaration,"let"),const:oc(e7.AST_NODE_TYPES.VariableDeclaration,"const"),using:{test:e=>"VariableDeclaration"===e.type&&("using"===e.kind||"await using"===e.kind)},type:oc(e7.AST_NODE_TYPES.TSTypeAliasDeclaration,"type")},ox={"*":{test:()=>!0},exports:{test:function(e){if(e.type===e7.AST_NODE_TYPES.ExpressionStatement){let t=e.expression;if(t.type===e7.AST_NODE_TYPES.AssignmentExpression){let e=t.left;if(e.type===e7.AST_NODE_TYPES.MemberExpression){for(;e.object.type===e7.AST_NODE_TYPES.MemberExpression;)e=e.object;return e.object.type===e7.AST_NODE_TYPES.Identifier&&("exports"===e.object.name||"module"===e.object.name&&e.property.type===e7.AST_NODE_TYPES.Identifier&&"exports"===e.property.name)}}}return!1}},require:{test:function(e){if(e.type===e7.AST_NODE_TYPES.VariableDeclaration){let t=e.declarations[0];if(t?.init){let e=t?.init;for(;e.type===e7.AST_NODE_TYPES.MemberExpression;)e=e.object;if(e.type===e7.AST_NODE_TYPES.CallExpression&&e.callee.type===e7.AST_NODE_TYPES.Identifier)return"require"===e.callee.name}}return!1}},directive:{test:od},iife:{test:op},block:ou(e7.AST_NODE_TYPES.BlockStatement),empty:ou(e7.AST_NODE_TYPES.EmptyStatement),function:ou(e7.AST_NODE_TYPES.FunctionDeclaration),"ts-method":ou(e7.AST_NODE_TYPES.TSMethodSignature),break:oc(e7.AST_NODE_TYPES.BreakStatement,"break"),case:oc(e7.AST_NODE_TYPES.SwitchCase,"case"),class:oc(e7.AST_NODE_TYPES.ClassDeclaration,"class"),continue:oc(e7.AST_NODE_TYPES.ContinueStatement,"continue"),debugger:oc(e7.AST_NODE_TYPES.DebuggerStatement,"debugger"),default:oc([e7.AST_NODE_TYPES.SwitchCase,e7.AST_NODE_TYPES.ExportDefaultDeclaration],"default"),do:oc(e7.AST_NODE_TYPES.DoWhileStatement,"do"),for:oc([e7.AST_NODE_TYPES.ForStatement,e7.AST_NODE_TYPES.ForInStatement,e7.AST_NODE_TYPES.ForOfStatement],"for"),if:oc(e7.AST_NODE_TYPES.IfStatement,"if"),import:oc(e7.AST_NODE_TYPES.ImportDeclaration,"import"),switch:oc(e7.AST_NODE_TYPES.SwitchStatement,"switch"),throw:oc(e7.AST_NODE_TYPES.ThrowStatement,"throw"),try:oc(e7.AST_NODE_TYPES.TryStatement,"try"),while:oc([e7.AST_NODE_TYPES.WhileStatement,e7.AST_NODE_TYPES.DoWhileStatement],"while"),with:oc(e7.AST_NODE_TYPES.WithStatement,"with"),"cjs-export":{test:(e,t)=>"ExpressionStatement"===e.type&&"AssignmentExpression"===e.expression.type&&os.test(t.getText(e.expression.left))},"cjs-import":{test:(e,t)=>"VariableDeclaration"===e.type&&e.declarations.length>0&&!!e.declarations[0].init&&oo.test(t.getText(e.declarations[0].init))},enum:oc(e7.AST_NODE_TYPES.TSEnumDeclaration,"enum"),interface:oc(e7.AST_NODE_TYPES.TSInterfaceDeclaration,"interface"),"function-overload":ou(e7.AST_NODE_TYPES.TSDeclareFunction),...Object.fromEntries(Object.entries(oy).flatMap(([e,t])=>[[e,t],[`singleline-${e}`,{...t,test:(e,n)=>t.test(e,n)&&r_(e)}],[`multiline-${e}`,{...t,test:(e,n)=>t.test(e,n)&&!r_(e)}]]))};var ob=rj({name:"padding-line-between-statements",meta:{type:"layout",docs:{description:"Require or disallow padding lines between statements"},fixable:"whitespace",hasSuggestions:!1,schema:{$defs:{paddingType:{type:"string",enum:Object.keys(og)},statementType:{type:"string",enum:Object.keys(ox)},statementOption:{anyOf:[{$ref:"#/$defs/statementType"},{type:"array",items:{$ref:"#/$defs/statementType"},minItems:1,uniqueItems:!0,additionalItems:!1}]}},type:"array",additionalItems:!1,items:{type:"object",properties:{blankLine:{$ref:"#/$defs/paddingType"},prev:{$ref:"#/$defs/statementOption"},next:{$ref:"#/$defs/statementOption"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},defaultOptions:[],create(e){let t=e.sourceCode,n=e.options||[],r=null;function i(){r={upper:r,prevNode:null}}function s(){r&&(r=r.upper)}function o(e,n){let r=e;for(;r.type===e7.AST_NODE_TYPES.LabeledStatement;)r=r.body;return Array.isArray(n)?n.some(o.bind(null,r)):ox[n].test(r,t)}function a(i){if(!i.parent||![e7.AST_NODE_TYPES.BlockStatement,e7.AST_NODE_TYPES.Program,e7.AST_NODE_TYPES.StaticBlock,e7.AST_NODE_TYPES.SwitchCase,e7.AST_NODE_TYPES.SwitchStatement,e7.AST_NODE_TYPES.TSInterfaceBody,e7.AST_NODE_TYPES.TSModuleBlock,e7.AST_NODE_TYPES.TSTypeLiteral].includes(i.parent.type))return;let s=r.prevNode;if(s){let r=function(e,t){for(let r=n.length-1;r>=0;--r){let i=n[r];if(o(e,i.prev)&&o(t,i.next))return og[i.blankLine]}return og.any}(s,i),a=function(e,n){let r=[],i=om(e,t);if(n.loc.start.line-i.loc.end.line>=2)do{let e=t.getTokenAfter(i,{includeComments:!0});e.loc.start.line-i.loc.end.line>=2&&r.push([i,e]),i=e}while(i.range[0]<n.range[0]);return r}(s,i);r.verify(e,s,i,a)}r.prevNode=i}function l(e){a(e),i()}return{Program:i,"Program:exit":s,BlockStatement:i,"BlockStatement:exit":s,SwitchStatement:i,"SwitchStatement:exit":s,SwitchCase:l,"SwitchCase:exit":s,StaticBlock:i,"StaticBlock:exit":s,TSInterfaceBody:i,"TSInterfaceBody:exit":s,TSModuleBlock:i,"TSModuleBlock:exit":s,TSTypeLiteral:i,"TSTypeLiteral:exit":s,TSDeclareFunction:l,"TSDeclareFunction:exit":s,TSMethodSignature:l,"TSMethodSignature:exit":s,":statement":a}}}),oT=rj({name:"quote-props",meta:{type:"layout",docs:{description:"Require quotes around object literal, type literal, interfaces and enums property names"},fixable:"code",schema:{anyOf:[{type:"array",items:[{type:"string",enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{type:"string",enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},defaultOptions:["always"],create(e){let t=e.options[0],n=e.options[1]&&e.options[1].keywords,r=!e.options[1]||!1!==e.options[1].unnecessary,i=e.options[1]&&e.options[1].numbers,s=e.sourceCode;function o(e){return n6.includes(e)}function a(e,t,n=!1){return 1===t.length&&0===t[0].start&&t[0].end===e.length&&(["Identifier","Keyword","Null","Boolean"].includes(t[0].type)||"Numeric"===t[0].type&&!n&&String(+t[0].value)===t[0].value)}function l(e){return"Identifier"===e.type?e.name:e.value}function c(e){return rm(e)?s.getText(e):`"${"Identifier"===e.type?e.name:e.value}"`}function u(t){if("Property"===t.type&&(t.method||t.computed||t.shorthand)||"ImportAttribute"!==t.type&&t.computed)return;let s="TSEnumMember"===t.type?t.id:t.key;if("Literal"===s.type&&"string"==typeof s.value){let c;try{c=nJ(s.value)}catch{return}if(1!==c.length||o(c[0].value)&&n)return;r&&a(s.value,c,i)&&e.report({node:t,messageId:"unnecessarilyQuotedProperty",data:{property:s.value},fix:e=>e.replaceText(s,l(s))})}else n&&"Identifier"===s.type&&o(s.name)?e.report({node:t,messageId:"unquotedReservedProperty",data:{property:s.name},fix:e=>e.replaceText(s,c(s))}):i&&rk(s)&&e.report({node:t,messageId:"unquotedNumericProperty",data:{property:s.value},fix:e=>e.replaceText(s,c(s))})}function p(t){if("Property"===t.type&&(t.method||t.computed||t.shorthand)||"ImportAttribute"!==t.type&&t.computed)return;let n="TSEnumMember"===t.type?t.id:t.key;("Literal"!==n.type||"string"!=typeof n.value)&&e.report({node:t,messageId:"unquotedPropertyFound",data:{property:n.name||n.value},fix:e=>e.replaceText(n,c(n))})}function f(e,t){m(e.filter(e=>"SpreadElement"!==e.type&&e.key&&!e.method&&!e.computed&&!e.shorthand),t)}function d(e){e&&("consistent"===t&&m(e,!1),"consistent-as-needed"===t&&m(e,!0))}function m(t,r){let i=[],s=[],u=null,p=!1;t.forEach(e=>{let t=e.key;if("Literal"===t.type&&"string"==typeof t.value){if(i.push(e),r){let e;try{e=nJ(t.value)}catch{p=!0;return}p=p||!a(t.value,e)||n&&o(e[0].value)}}else n&&r&&"Identifier"===t.type&&o(t.name)?(s.push(e),p=!0,u=t.name):s.push(e)}),r&&i.length&&!p?i.forEach(t=>{let n=t.key;e.report({node:t,messageId:"redundantQuoting",fix:e=>e.replaceText(n,l(n))})}):s.length&&u?s.forEach(t=>{e.report({node:t,messageId:"requireQuotesDueToReservedWord",data:{property:u},fix:e=>e.replaceText(t.key,c(t.key))})}):i.length&&s.length&&s.forEach(t=>{e.report({node:t,messageId:"inconsistentlyQuotedProperty",data:{key:t.key.name||t.key.value},fix:e=>e.replaceText(t.key,c(t.key))})})}return{Property(e){"always"!==t&&t||p(e),"as-needed"===t&&u(e)},ObjectExpression(e){"consistent"===t&&f(e.properties,!1),"consistent-as-needed"===t&&f(e.properties,!0)},ImportAttribute(e){"always"!==t&&t||p(e),"as-needed"===t&&u(e)},ImportDeclaration(e){d(e.attributes)},ExportAllDeclaration(e){d(e.attributes)},ExportNamedDeclaration(e){d(e.attributes)},TSPropertySignature(e){"always"!==t&&t||p(e),"as-needed"===t&&u(e)},TSEnumMember(e){"always"!==t&&t||p(e),"as-needed"===t&&u(e)},TSTypeLiteral(e){"consistent"===t&&f(e.members,!1),"consistent-as-needed"===t&&f(e.members,!0)},TSInterfaceBody(e){"consistent"===t&&f(e.body,!1),"consistent-as-needed"===t&&f(e.body,!0)},TSEnumDeclaration(e){let n=(e.body?.members||e.members).map(e=>({...e,key:e.id}));"consistent"===t&&f(n,!1),"consistent-as-needed"===t&&f(n,!0)}}}});function ok(e){let t=this.quote,n=e[0];return t===n?e:t+e.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(e,r,i)=>r===n||"`"===n&&"${"===r?r:e===t||"`"===t&&"${"===e?`\\${e}`:i&&"`"===n?"\\n":e)+t}const oS={double:{quote:'"',alternateQuote:"'",description:"doublequote",convert:ok},single:{quote:"'",alternateQuote:'"',description:"singlequote",convert:ok},backtick:{quote:"`",alternateQuote:'"',description:"backtick",convert:ok}},oE=RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(n1).join("")}]`,"u"),ow="avoid-escape";var ov=rj({name:"quotes",meta:{type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes"},fixable:"code",schema:[{type:"string",enum:["single","double","backtick"]},{anyOf:[{type:"string",enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{anyOf:[{type:"boolean"},{type:"string",enum:["never","avoidEscape","always"]}]},ignoreStringLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},defaultOptions:["double",{allowTemplateLiterals:"never",avoidEscape:!1,ignoreStringLiterals:!1}],create(e){let t=e.options[0],n=oS[t||"double"],r=e.options[1],i=e.sourceCode,s=!1,o=!1,a=!1,l=!1;return"object"==typeof r?(s=!0===r.avoidEscape,o=!0===r.ignoreStringLiterals,"string"==typeof r.allowTemplateLiterals?l=(a="always"===r.allowTemplateLiterals)||"avoidEscape"===r.allowTemplateLiterals:"boolean"==typeof r.allowTemplateLiterals&&(nQ('value(boolean) for "allowTemplateLiterals"','"always"/"never"',"quotes"),a=!0===r.allowTemplateLiterals,l=!0===r.allowTemplateLiterals)):r===ow&&(nQ(`option("${ow}")`,'"avoidEscape"',"quotes"),s=!0),{Literal(r){if(o)return;let a=r.value,l=r.raw;if(n&&"string"==typeof a){let o="backtick"===t&&function(e){let t=e.parent;if(!t)return!1;switch(t.type){case e7.AST_NODE_TYPES.ExpressionStatement:return!ri(i,e)&&function(e){if(!e.parent||!rd(e.parent))return!1;let t=e.parent.parent;if(!t||!("body"in t)||!Array.isArray(t.body))return!1;for(let n=0;n<t.body.length;++n){let r=t.body[n];if(r===e.parent)return!0;if(!("ExpressionStatement"===r.type&&"Literal"===r.expression.type&&"string"==typeof r.expression.value&&!ri(i,r.expression)))break}return!1}(e);case e7.AST_NODE_TYPES.Property:case e7.AST_NODE_TYPES.MethodDefinition:return t.key===e&&!t.computed;case e7.AST_NODE_TYPES.ImportDeclaration:case e7.AST_NODE_TYPES.ExportNamedDeclaration:return t.source===e;case e7.AST_NODE_TYPES.ExportAllDeclaration:return t.exported===e||t.source===e;case e7.AST_NODE_TYPES.ImportSpecifier:return t.imported===e;case e7.AST_NODE_TYPES.ExportSpecifier:return t.local===e||t.exported===e;case e7.AST_NODE_TYPES.ImportAttribute:return t.value===e;case e7.AST_NODE_TYPES.TSAbstractMethodDefinition:case e7.AST_NODE_TYPES.TSMethodSignature:case e7.AST_NODE_TYPES.TSPropertySignature:case e7.AST_NODE_TYPES.TSModuleDeclaration:case e7.AST_NODE_TYPES.TSExternalModuleReference:return!0;case e7.AST_NODE_TYPES.TSEnumMember:return e===t.id;case e7.AST_NODE_TYPES.TSAbstractPropertyDefinition:case e7.AST_NODE_TYPES.PropertyDefinition:case e7.AST_NODE_TYPES.AccessorProperty:return t.key===e&&!t.computed;case e7.AST_NODE_TYPES.TSLiteralType:return t.parent?.type===e7.AST_NODE_TYPES.TSImportType;default:return!1}}(r)||!!r.parent&&("JSXAttribute"===r.parent.type||"JSXElement"===r.parent.type||"JSXFragment"===r.parent.type)||rg(l,n.quote);!o&&s&&(o=rg(l,n.alternateQuote)&&l.includes(n.quote)),o||e.report({node:r,messageId:"wrongQuotes",data:{description:n.description},fix:e=>"backtick"===t&&rE(l)?null:e.replaceText(r,n.convert(r.raw))})}},TemplateLiteral(r){!(a||"backtick"===t||"TaggedTemplateExpression"===r.parent.type&&r===r.parent.quasi||r.expressions.length>0||r.quasis.length>=1&&oE.test(r.quasis[0].value.raw))&&(l&&s&&i.getText(r).includes(n.quote)||e.report({node:r,messageId:"wrongQuotes",data:{description:n.description},fix:e=>rd(r.parent)&&!ri(i,r)?null:e.replaceText(r,n.convert(i.getText(r)))}))}}}}),oA=rj({name:"rest-spread-spacing",meta:{type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(e){let t=e.sourceCode,n="always"===e.options[0];function r(r){let i,s=t.getFirstToken(r),o=t.getTokenAfter(s),a=t.isSpaceBetween(s,o);switch(r.type){case"SpreadElement":i="spread","ObjectExpression"===r.parent.type&&(i+=" property");break;case"RestElement":i="rest","ObjectPattern"===r.parent.type&&(i+=" property");break;default:return}n&&!a?e.report({node:r,loc:s.loc,messageId:"expectedWhitespace",data:{type:i},fix:e=>e.replaceTextRange([s.range[1],o.range[0]]," ")}):!n&&a&&e.report({node:r,loc:{start:s.loc.end,end:o.loc.start},messageId:"unexpectedWhitespace",data:{type:i},fix:e=>e.removeRange([s.range[1],o.range[0]])})}return{SpreadElement:r,RestElement:r}}}),oC=rj({name:"semi-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){let t=e.options[0],n=e.sourceCode,r=!1,i=!0;function s(t,s){if((0,rP.isSemicolonToken)(t)){if(function(e){let t=n.getTokenBefore(e);return t&&(0,rP.isTokenOnSameLine)(t,e)&&n.isSpaceBetween(t,e)}(t)){if(!r){let r=n.getTokenBefore(t),i={start:r.loc.end,end:t.loc.start};e.report({node:s,loc:i,messageId:"unexpectedWhitespaceBefore",fix:e=>e.removeRange([r.range[1],t.range[0]])})}}else if(r){let n=t.loc;e.report({node:s,loc:n,messageId:"missingWhitespaceBefore",fix:e=>e.insertTextBefore(t," ")})}if(!function(e){let t=n.getTokenBefore(e);return!(t&&(0,rP.isTokenOnSameLine)(e,t))}(t)&&!function(e){let t=n.getTokenAfter(e);return!(t&&(0,rP.isTokenOnSameLine)(e,t))}(t)&&!function(e){let t=n.getTokenAfter(e);return t&&(0,rP.isClosingBraceToken)(t)||(0,rP.isClosingParenToken)(t)}(t)){if(function(e){let t=n.getTokenAfter(e);return t&&(0,rP.isTokenOnSameLine)(e,t)&&n.isSpaceBetween(e,t)}(t)){if(!i){let r=n.getTokenAfter(t),i={start:t.loc.end,end:r.loc.start};e.report({node:s,loc:i,messageId:"unexpectedWhitespaceAfter",fix:e=>e.removeRange([t.range[1],r.range[0]])})}}else if(i){let n=t.loc;e.report({node:s,loc:n,messageId:"missingWhitespaceAfter",fix:e=>e.insertTextAfter(t," ")})}}}}function o(e){s(n.getLastToken(e),e)}return"object"==typeof t&&(r=t.before,i=t.after),{VariableDeclaration:o,ExpressionStatement:o,BreakStatement:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ReturnStatement:o,ThrowStatement:o,ImportDeclaration:o,ExportNamedDeclaration:o,ExportAllDeclaration:o,ExportDefaultDeclaration:o,ForStatement(e){e.init&&s(n.getTokenAfter(e.init),e),e.test&&s(n.getTokenAfter(e.test),e)},PropertyDefinition:o,AccessorProperty:o,TSDeclareFunction:o,TSTypeAliasDeclaration:o,TSTypeAnnotation(e){let t=new Set([e7.AST_NODE_TYPES.TSDeclareFunction]);e.parent&&!t.has(e.parent.type)&&o(e.parent)}}}}),oD=rj({name:"semi-style",meta:{type:"layout",docs:{description:"Enforce location of semicolons"},schema:[{type:"string",enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(e){let t=e.sourceCode,n=e.options[0]||"last";function r(n,r){let i=t.getTokenBefore(n),s=t.getTokenAfter(n),o=!i||(0,rP.isTokenOnSameLine)(i,n),a=!s||(0,rP.isTokenOnSameLine)(n,s);("last"!==r||o)&&("first"!==r||a)||e.report({loc:n.loc,messageId:"expectedSemiColon",data:{pos:"last"===r?"the end of the previous line":"the beginning of the next line"},fix(e){if(i&&s&&t.commentsExistBetween(i,s))return null;let o=i?i.range[1]:n.range[0],a=s?s.range[0]:n.range[1];return e.replaceTextRange([o,a],"last"===r?";\n":"\n;")}})}return{"BreakStatement,ContinueStatement,DebuggerStatement,DoWhileStatement,ExportAllDeclaration,ExportDefaultDeclaration,ExportNamedDeclaration,ExpressionStatement,ImportDeclaration,ReturnStatement,ThrowStatement,VariableDeclaration,PropertyDefinition,AccessorProperty"(e){if("first"===n&&function(e){if(!e.parent)return!0;let t=e.parent.type;if("IfStatement"===t&&e.parent.consequent===e&&e.parent.alternate||"DoWhileStatement"===t)return!0;let n=function(e){let t=e.type;return"BlockStatement"===t||"StaticBlock"===t||"Program"===t||"ClassBody"===t?e.body:"SwitchCase"===t?e.consequent:null}(e.parent);return null!==n&&n[n.length-1]===e}(e))return;let i=t.getLastToken(e);(0,rP.isSemicolonToken)(i)&&r(i,n)},ForStatement(e){let n=e.init&&t.getTokenAfter(e.init,rP.isSemicolonToken),i=e.test&&t.getTokenAfter(e.test,rP.isSemicolonToken);n&&r(n,"last"),i&&r(i,"last")}}}}),o_=rj({name:"semi",meta:{type:"layout",docs:{description:"Require or disallow semicolons instead of ASI"},fixable:"code",schema:{anyOf:[{type:"array",items:[{type:"string",enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{type:"string",enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{type:"string",enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},defaultOptions:["always",{omitLastInOneLineBlock:!1,beforeStatementContinuationChars:"any"}],create(e){let t=/^[-[(/+`]/u,n=new Set(["get","set","static"]),r=new Set(["*","in","instanceof"]),i=e.options[1],s="never"===e.options[0],o=!!(i&&"omitLastInOneLineBlock"in i&&i.omitLastInOneLineBlock),a=!!(i&&"omitLastInOneLineClassBody"in i&&i.omitLastInOneLineClassBody),l=i&&"beforeStatementContinuationChars"in i&&i.beforeStatementContinuationChars||"any",c=e.sourceCode;function u(t,n=!1){let r,i,s=c.getLastToken(t),o="missingSemi";n?(o="extraSemi",i=s.loc,r=function(e){return new rY(e,c).retainSurroundingTokens(s).remove(s)}):(i={start:s.loc.end,end:rT(c,s.loc.end)},r=function(e){return e.insertTextAfter(s,";")}),e.report({node:t,loc:i,messageId:o,fix:r})}function p(e){return!!e&&t.test(e.value)&&"++"!==e.value&&"--"!==e.value}function f(e){let t=c.getLastToken(e),i=(0,rP.isSemicolonToken)(t);if(s){let t=c.getTokenAfter(e);!i||(!function(e){let t=c.getTokenAfter(e);return!t||(0,rP.isClosingBraceToken)(t)||(0,rP.isSemicolonToken)(t)}(c.getLastToken(e))?function(e){if("PropertyDefinition"!==e.type)return!1;if(!e.computed&&"Identifier"===e.key.type&&"name"in e.key&&n.has(e.key.name)&&!(e.static&&"static"===e.key.name)&&!e.value)return!0;let t=c.getTokenAfter(e);return r.has(t.value)}(e)||function(e){let t=c.getLastToken(e,1),n=c.getTokenAfter(e);return!!n&&(0,rP.isTokenOnSameLine)(t,n)}(e)||("PropertyDefinition"===e.type||"never"!==l||function(e){let t=e.type;return"DoWhileStatement"!==t&&"BreakStatement"!==t&&"ContinueStatement"!==t&&"DebuggerStatement"!==t&&"ImportDeclaration"!==t&&"ExportAllDeclaration"!==t&&("ReturnStatement"===t?!!e.argument:"ExportNamedDeclaration"===t?!!e.declaration:!function(e){if(!(0,rP.isClosingBraceToken)(e))return!1;let t=c.getNodeByRangeIndex(e.range[0]);return"BlockStatement"===t.type&&"ArrowFunctionExpression"===t.parent.type}(c.getLastToken(e,1)))}(e))&&p(c.getTokenAfter(e))?1:0:0)?!i&&"always"===l&&"PropertyDefinition"!==e.type&&p(t)&&u(e):u(e,!0)}else{let t=o&&function(e){let t=e.parent,n=c.getTokenAfter(e);if(!n||"}"!==n.value)return!1;if("BlockStatement"===t.type)return r_(t);if("StaticBlock"===t.type){let e=c.getFirstToken(t,{skip:1});return(0,rP.isTokenOnSameLine)(t,e)}return!1}(e),n=a&&function(e){let t=e.parent,n=c.getTokenAfter(e);return!!n&&"}"===n.value&&"ClassBody"===t.type&&r_(t)}(e),r=t||n;i&&r?u(e,!0):i||r||u(e)}}return{VariableDeclaration(e){let t=e.parent;"ForStatement"===t.type&&t.init===e||/^For(?:In|Of)Statement/u.test(t.type)&&t.left===e||f(e)},ExpressionStatement:f,ReturnStatement:f,ThrowStatement:f,DoWhileStatement:f,DebuggerStatement:f,BreakStatement:f,ContinueStatement:f,ImportDeclaration:f,ExportAllDeclaration:f,ExportNamedDeclaration(e){e.declaration||f(e)},ExportDefaultDeclaration(e){e.declaration.type!==e7.AST_NODE_TYPES.TSInterfaceDeclaration&&(/(?:Class|Function)Declaration/u.test(e.declaration.type)||f(e))},PropertyDefinition:f,AccessorProperty:f,TSAbstractPropertyDefinition:f,TSDeclareFunction:f,TSExportAssignment:f,TSImportEqualsDeclaration:f,TSTypeAliasDeclaration:f,TSEmptyBodyFunctionExpression:f}}}),oO=rj({name:"space-before-blocks",meta:{type:"layout",docs:{description:"Enforce consistent spacing before blocks"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{keywords:{type:"string",enum:["always","never","off"]},functions:{type:"string",enum:["always","never","off"]},classes:{type:"string",enum:["always","never","off"]},modules:{type:"string",enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},defaultOptions:["always"],create(e,[t]){let n=e.sourceCode,r=!0,i=!0,s=!0,o=!0,a=!1,l=!1,c=!1,u=!1;function p(e){if(!("parent"in e))return!1;let t=e.parent;return"BlockStatement"===e.type&&(0,rP.isFunction)(t)&&t.body===e}function f(t){let f=n.getTokenBefore(t);if(f&&!((0,rP.isArrowToken)(f)||ra(f)&&!p(t)||(0,rP.isColonToken)(f)&&"parent"in t&&t.parent&&"SwitchCase"===t.parent.type&&f===rf(t.parent,n))&&(0,rP.isTokenOnSameLine)(f,t)){let d,m,h=n.isSpaceBetween(f,t);p(t)?(d=r,m=a):"ClassBody"===t.type||"TSEnumBody"===t.type||"TSInterfaceBody"===t.type?(d=s,m=c):"TSModuleBlock"===t.type?(d=o,m=u):(d=i,m=l),d&&!h?e.report({node:t,messageId:"missingSpace",fix:e=>e.insertTextBefore(t," ")}):m&&h&&e.report({node:t,messageId:"unexpectedSpace",fix:e=>e.removeRange([f.range[1],t.range[0]])})}}return"object"==typeof t?(r="always"===t.functions,i="always"===t.keywords,s="always"===t.classes,o="always"===t.modules,a="never"===t.functions,l="never"===t.keywords,c="never"===t.classes,u="never"===t.modules):"never"===t&&(r=!1,i=!1,s=!1,o=!1,a=!0,l=!0,c=!0,u=!0),{BlockStatement:f,ClassBody:f,SwitchStatement(e){let t=e.cases;f(t.length>0?n.getTokenBefore(t[0]):n.getLastToken(e,1))},TSEnumBody:f,TSInterfaceBody:f,TSModuleBlock:f}}}),oF=rj({name:"space-before-function-paren",meta:{type:"layout",docs:{description:"Enforce consistent spacing before function parenthesis"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{anonymous:{type:"string",enum:["always","never","ignore"]},named:{type:"string",enum:["always","never","ignore"]},asyncArrow:{type:"string",enum:["always","never","ignore"]},catch:{type:"string",enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},defaultOptions:["always"],create(e,[t]){let n=e.sourceCode,r="string"==typeof t?t:"always",i="object"==typeof t?t:{};function s(e){let t,s,a=function(e){if(e.type===e7.AST_NODE_TYPES.ArrowFunctionExpression){if(e.async&&(0,rP.isOpeningParenToken)(n.getFirstToken(e,{skip:1})))return i.asyncArrow??r}else if(function(e){if(null!=e.id)return!0;let t=e.parent;return t.type===e7.AST_NODE_TYPES.MethodDefinition||t.type===e7.AST_NODE_TYPES.TSAbstractMethodDefinition||t.type===e7.AST_NODE_TYPES.Property&&("get"===t.kind||"set"===t.kind||t.method)}(e))return i.named??r;else if(!e.generator)return i.anonymous??r;return"ignore"}(e);"ignore"!==a&&("always"!==a||!e.typeParameters||e.id)&&(e.typeParameters?(t=n.getLastToken(e.typeParameters),s=n.getTokenAfter(t)):(s=n.getFirstToken(e,rP.isOpeningParenToken),t=n.getTokenBefore(s)),o(e,t,s,a))}function o(t,r,i,s){let o=n.isSpaceBetween(r,i);o&&"never"===s?e.report({node:t,loc:{start:r.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix:e=>{let t=n.getCommentsBefore(i);return t.some(e=>"Line"===e.type)?null:e.replaceTextRange([r.range[1],i.range[0]],t.reduce((e,t)=>e+n.getText(t),""))}}):o||"always"!==s||e.report({node:t,loc:i.loc,messageId:"missingSpace",fix:e=>e.insertTextAfter(r," ")})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s,TSEmptyBodyFunctionExpression:s,TSDeclareFunction:s,CatchClause(e){if(!e.param)return;let t=i.catch??r;if("ignore"===t)return;let s=n.getFirstToken(e,rP.isOpeningParenToken);o(e,n.getTokenBefore(s),s,t)}}}}),oP=rj({name:"space-in-parens",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside parentheses"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string",enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){let t="always"===e.options[0],n=e.options[1]&&e.options[1].exceptions||[],r={braceException:!1,bracketException:!1,parenException:!1,empty:!1},i={openers:[],closers:[]};n.length&&(r.braceException=n.includes("{}"),r.bracketException=n.includes("[]"),r.parenException=n.includes("()"),r.empty=n.includes("empty"));let s=e.sourceCode;function o(e){return i.openers.includes(e.value)}function a(e){return i.closers.includes(e.value)}return{Program:function(n){i=function(){let e=[],t=[];return r.braceException&&(e.push("{"),t.push("}")),r.bracketException&&(e.push("["),t.push("]")),r.parenException&&(e.push("("),t.push(")")),r.empty&&(e.push(")"),t.push("(")),{openers:e,closers:t}}();let l=s.tokensAndComments;l.forEach((i,c)=>{let u=l[c-1],p=l[c+1];((0,rP.isOpeningParenToken)(i)||(0,rP.isClosingParenToken)(i))&&("("===i.value&&!(s.isSpaceBetween(i,p)||!r.empty&&(0,rP.isClosingParenToken)(p))&&(t?!o(p):o(p))&&e.report({node:n,loc:i.loc,messageId:"missingOpeningSpace",fix:e=>e.insertTextAfter(i," ")}),"("===i.value&&(0,rP.isTokenOnSameLine)(i,p)&&"Line"!==p.type&&s.isSpaceBetween(i,p)&&(t?o(p):!o(p))&&e.report({node:n,loc:{start:i.loc.end,end:p.loc.start},messageId:"rejectedOpeningSpace",fix:e=>e.removeRange([i.range[1],p.range[0]])}),")"===i.value&&!(s.isSpaceBetween(u,i)||!r.empty&&(0,rP.isOpeningParenToken)(u))&&(t?!a(u):a(u))&&e.report({node:n,loc:i.loc,messageId:"missingClosingSpace",fix:e=>e.insertTextBefore(i," ")}),")"===i.value&&(0,rP.isTokenOnSameLine)(u,i)&&s.isSpaceBetween(u,i)&&(t?a(u):!a(u))&&e.report({node:n,loc:{start:u.loc.end,end:i.loc.start},messageId:"rejectedClosingSpace",fix:e=>e.removeRange([u.range[1],i.range[0]])}))})}}}});const oI=["|","&"];var oB=rj({name:"space-infix-ops",meta:{type:"layout",docs:{description:"Require spacing around infix operators"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1},ignoreTypes:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},defaultOptions:[{int32Hint:!1,ignoreTypes:!1}],create(e){let t=!!e.options[0]&&!0===e.options[0].int32Hint,n=!!e.options[0]&&!0===e.options[0].ignoreTypes,r=e.sourceCode;function i(t,n){e.report({node:t,loc:n.loc,messageId:"missingSpace",data:{operator:n.value},fix(e){let t=r.getTokenBefore(n),i=r.getTokenAfter(n),s="";return n.range[0]-t.range[1]==0&&(s=" "),s+=n.value,i.range[0]-n.range[1]==0&&(s+=" "),e.replaceText(n,s)}})}function s(e,t,n){let i=r.getFirstTokenBetween(e,t,e=>e.value===n),s=r.getTokenBefore(i),o=r.getTokenAfter(i);return r.isSpaceBetween(s,i)&&r.isSpaceBetween(i,o)?null:i}function o(e){let n="typeAnnotation"in e.left&&e.left.typeAnnotation?e.left.typeAnnotation:e.left,o=s(n,e.right,"operator"in e&&e.operator?e.operator:"=");o&&!(t&&r.getText(e).endsWith("|0"))&&i(e,o)}function a(e){return e.type===e7.AST_TOKEN_TYPES.Punctuator&&/^[=?:]$/.test(e.value)}function l(e,t,n){if(!n||!t)return;let s=r.getFirstTokenBetween(t,n,a),o=r.getTokenBefore(s),l=r.getTokenAfter(s);r.isSpaceBetween(o,s)&&r.isSpaceBetween(s,l)||i(e,s)}function c(e){let t=e.optional&&!e.typeAnnotation?r.getTokenAfter(e.key):e.typeAnnotation??e.key;l(e,t,e.value)}function u(e){e.types.forEach(t=>{let s=t.type===e7.AST_NODE_TYPES.TSFunctionType?rP.isNotOpeningParenToken:0,o=r.getTokenBefore(t,s);if(!n&&null!=o&&oI.includes(o.value)){let t=r.getTokenBefore(o),n=r.getTokenAfter(o);r.isSpaceBetween(t,o)&&r.isSpaceBetween(o,n)||i(e,o)}})}return{AssignmentExpression:o,AssignmentPattern:o,BinaryExpression:o,LogicalExpression:o,ConditionalExpression:function(e){let t=s(e.test,e.consequent,"?"),n=s(e.consequent,e.alternate,":");t&&i(e,t),n&&i(e,n)},VariableDeclarator:function(e){let t=e.id.typeAnnotation?e.id.typeAnnotation:e.id,n=e.init;if(n){let r=s(t,n,"=");r&&i(e,r)}},TSEnumMember:function(e){l(e,e.id,e.initializer)},PropertyDefinition:c,AccessorProperty:c,TSTypeAliasDeclaration:function(e){l(e,e.typeParameters??e.id,e.typeAnnotation)},TSUnionType:u,TSIntersectionType:u,TSConditionalType:function(e){l(e,e.extendsType,e.trueType),l(e,e.trueType,e.falseType)}}}}),oL=rj({name:"space-unary-ops",meta:{type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",requireAfterWord:"Unary word operator '{{word}}' must be followed by whitespace.",requireAfter:"Unary operator '{{operator}}' must be followed by whitespace.",requireBefore:"Space is required before unary operator '{{operator}}'."}},create(e){let t=e.options[0]||{words:!0,nonwords:!1},n=e.sourceCode;function r(e){return t.overrides&&Object.prototype.hasOwnProperty.call(t.overrides,e)}function i(e){return t.overrides?.[e]}function s(n,s,o,a){(r(a)?i(a):t.words)?o.range[0]===s.range[1]&&e.report({node:n,messageId:"requireAfterWord",data:{word:a},fix:e=>e.insertTextAfter(s," ")}):rS(s,o)&&o.range[0]>s.range[1]&&e.report({node:n,messageId:"unexpectedAfterWord",data:{word:a},fix:e=>e.removeRange([s.range[1],o.range[0]])})}function o(t,n,r){if("prefix"in t&&t.prefix)t&&"UnaryExpression"===t.type&&t.argument&&"UnaryExpression"===t.argument.type&&"!"===t.argument.operator||n.range[1]!==r.range[0]||e.report({node:t,messageId:"requireAfter",data:{operator:n.value},fix:e=>e.insertTextAfter(n," ")});else n.range[1]===r.range[0]&&e.report({node:t,messageId:"requireBefore",data:{operator:r.value},fix:e=>e.insertTextBefore(r," ")})}function a(t,n,r){"prefix"in t&&t.prefix?r.range[0]>n.range[1]&&e.report({node:t,messageId:"unexpectedAfter",data:{operator:n.value},fix:e=>rS(n,r)?e.removeRange([n.range[1],r.range[0]]):null}):r.range[0]>n.range[1]&&e.report({node:t,messageId:"unexpectedBefore",data:{operator:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}function l(e){let l="UpdateExpression"!==e.type||e.prefix?n.getFirstTokens(e,2):n.getLastTokens(e,2),c=l[0],u=l[1];if(("NewExpression"===e.type||e.prefix)&&ra(c))return void s(e,c,u,c.value);let p="prefix"in e&&e.prefix?l[0].value:l[1].value;(r(p)?i(p):t.nonwords)?o(e,c,u):a(e,c,u)}return{UnaryExpression:l,UpdateExpression:l,NewExpression:l,YieldExpression:function(e){let t=n.getFirstTokens(e,3);e.argument&&!e.delegate&&s(e,t[0],t[1],"yield")},AwaitExpression:function(e){let t=n.getFirstTokens(e,3);s(e,t[0],t[1],"await")},TSNonNullExpression:function(e){let s=n.getLastToken(e,e=>"!"===e.value),l=n.getTokenBefore(s);(r("!")?i("!"):t.nonwords)?o(e,l,s):a(e,l,s)}}}});function oN(e){return`(?:${function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e)})`}function oj(e){return`${oN(e)}+`}function oR(e){let t="";return 0===e.length?t+="\\s":(t+="(?:\\s|",1===e.length?t+=oj(e[0]):(t+="(?:",t+=e.map(oj).join("|"),t+=")"),t+=`(?:$|[${Array.from(n1).join("")}]))`),t}var oq=rj({name:"spaced-comment",meta:{type:"layout",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(e){let t=e.sourceCode,n="never"!==e.options[0],r=e.options[1]||{},i=r.block&&r.block.balanced,s=["block","line"].reduce((e,t)=>{var s;let o,a=(s=r[t]&&r[t]?.markers||r.markers||[]).includes("*")?s:s.concat("*"),l=r[t]&&r[t]?.exceptions||r.exceptions||[];return e[t]={beginRegex:n?(o="^",1===a.length?o+=oN(a[0]):(o+="(?:",o+=a.map(oN).join("|"),o+=")"),o+="?",RegExp(o+=oR(l),"u")):RegExp(`^(${a.map(oN).join("|")})?[ ]+`,"u"),endRegex:i&&n?RegExp(`${oR(l)}$`,"u"):RegExp("[ ]+$","u"),hasExceptions:l.length>0,captureMarker:RegExp(`^(${a.map(oN).join("|")})`,"u"),markers:new Set(a)},e},{});function o(t,r,i,s){let o="block"===t.type.toLowerCase()?"/*":"//";e.report({node:t,fix(e){let r=t.range[0],s=r+2;return n?(i&&(s+=i[0].length),e.insertTextAfterRange([r,s]," ")):(i&&(s+=i[0].length),e.replaceTextRange([r,s],o+(i&&i[1]?i[1]:"")))},messageId:r,data:{refChar:s}})}function a(t,r,i){e.report({node:t,fix(e){if(n)return e.insertTextAfterRange([t.range[0],t.range[1]-2]," ");let r=t.range[1]-2,s=r;return i&&(s-=i[0].length),e.replaceTextRange([s,r],"")},messageId:r})}return{Program(){t.getAllComments().forEach(e=>{rl(e)||function(e){let t=e.type.toLowerCase(),r=s[t],l="block"===t?"/*":"//";if(0===e.value.length||r.markers.has(e.value)||"line"===t&&(e.value.startsWith("/ <reference")||e.value.startsWith("/ <amd")))return;let c=r.beginRegex.exec(e.value),u=r.endRegex.exec(e.value);if(n){if(!c){let t=r.captureMarker.exec(e.value),n=t?l+t[0]:l;r.hasExceptions?o(e,"expectedExceptionAfter",t,n):o(e,"expectedSpaceAfter",t,n)}i&&"block"===t&&!u&&a(e,"expectedSpaceBefore",null)}else c&&(c[1]?o(e,"unexpectedSpaceAfterMarker",c,c[1]):o(e,"unexpectedSpaceAfter",c,l)),i&&"block"===t&&u&&a(e,"unexpectedSpaceBefore",u)}(e)})}}}}),oM=rj({name:"switch-colon-spacing",meta:{type:"layout",docs:{description:"Enforce spacing around colons of switch statements"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){let t=e.sourceCode,n=e.options[0]||{},r=!0===n.before,i=!1!==n.after;function s(e,n,r){return(0,rP.isClosingBraceToken)(n)||!(0,rP.isTokenOnSameLine)(e,n)||t.isSpaceBetween(e,n)===r}function o(e,n,r,i){return rO(t,n,r)?null:i?e.insertTextAfter(n," "):e.removeRange([n.range[1],r.range[0]])}return{SwitchCase(n){let a=rf(n,t),l=t.getTokenBefore(a),c=t.getTokenAfter(a);s(l,a,r)||e.report({node:n,loc:a.loc,messageId:r?"expectedBefore":"unexpectedBefore",fix:e=>o(e,l,a,r)}),s(a,c,i)||e.report({node:n,loc:a.loc,messageId:i?"expectedAfter":"unexpectedAfter",fix:e=>o(e,a,c,i)})}}}}),oV=rj({name:"template-curly-spacing",meta:{type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){let t=e.sourceCode,n="always"===e.options[0];return{TemplateElement(r){let i=t.getFirstToken(r);!function(r){if(!r.value.startsWith("}"))return;let i=t.getTokenBefore(r,{includeComments:!0}),s=t.isSpaceBetween(i,r);(0,rP.isTokenOnSameLine)(i,r)&&(n&&!s&&e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+1}},messageId:"expectedBefore",fix:e=>e.insertTextBefore(r," ")}),!n&&s&&e.report({loc:{start:i.loc.end,end:r.loc.start},messageId:"unexpectedBefore",fix:e=>e.removeRange([i.range[1],r.range[0]])}))}(i),function(r){if(!r.value.endsWith("${"))return;let i=t.getTokenAfter(r,{includeComments:!0}),s=t.isSpaceBetween(r,i);(0,rP.isTokenOnSameLine)(r,i)&&(n&&!s&&e.report({loc:{start:{line:r.loc.end.line,column:r.loc.end.column-2},end:r.loc.end},messageId:"expectedAfter",fix:e=>e.insertTextAfter(r," ")}),!n&&s&&e.report({loc:{start:r.loc.end,end:i.loc.start},messageId:"unexpectedAfter",fix:e=>e.removeRange([r.range[1],i.range[0]])}))}(i)}}}}),o$=rj({name:"template-tag-spacing",meta:{type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(e){let t="always"!==e.options[0],n=e.sourceCode;return{TaggedTemplateExpression:function(r){let i=n.getTokenBefore(r.quasi),s=n.getFirstToken(r.quasi),o=n.isSpaceBetween(i,s);t&&o?e.report({node:r,loc:{start:i.loc.end,end:s.loc.start},messageId:"unexpected",fix(e){let t=n.getCommentsBefore(r.quasi);return t.some(e=>"Line"===e.type)?null:e.replaceTextRange([i.range[1],s.range[0]],t.reduce((e,t)=>e+n.getText(t),""))}}):t||o||e.report({node:r,loc:{start:r.loc.start,end:s.loc.start},messageId:"missing",fix:e=>e.insertTextAfter(i," ")})}}}}),oU=rj({name:"type-annotation-spacing",meta:{type:"layout",docs:{description:"Require consistent spacing around type annotations"},fixable:"whitespace",messages:{expectedSpaceAfter:"Expected a space after the '{{type}}'.",expectedSpaceBefore:"Expected a space before the '{{type}}'.",unexpectedSpaceAfter:"Unexpected space after the '{{type}}'.",unexpectedSpaceBefore:"Unexpected space before the '{{type}}'.",unexpectedSpaceBetween:"Unexpected space between the '{{previousToken}}' and the '{{type}}'."},schema:[{$defs:{spacingConfig:{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}},type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},overrides:{type:"object",properties:{colon:{$ref:"#/items/0/$defs/spacingConfig"},arrow:{$ref:"#/items/0/$defs/spacingConfig"},variable:{$ref:"#/items/0/$defs/spacingConfig"},parameter:{$ref:"#/items/0/$defs/spacingConfig"},property:{$ref:"#/items/0/$defs/spacingConfig"},returnType:{$ref:"#/items/0/$defs/spacingConfig"}},additionalProperties:!1}},additionalProperties:!1}]},defaultOptions:[{}],create(e,[t]){let n=[":","=>"],r=e.sourceCode,i=function(e){let t={...e?.before!==void 0?{before:e.before}:{},...e?.after!==void 0?{after:e.after}:{}},n=e?.overrides??{},r={before:!1,after:!0,...t,...n?.colon};return{colon:r,arrow:{before:!0,after:!0,...t,...n?.arrow},variable:{...r,...n?.variable},property:{...r,...n?.property},parameter:{...r,...n?.parameter},returnType:{...r,...n?.returnType}}}(t);function s(t){let s=r.getTokenBefore(t,rP.isNotOpeningParenToken),o=s,a=r.getTokenBefore(s),l=s.value;if(!n.includes(l))return;let{before:c,after:u}=function(e,t){let n=t?.parent?.parent;if((0,rP.isTSFunctionType)(n)||(0,rP.isTSConstructorType)(n))return e.arrow;if((0,rP.isIdentifier)(n)){let t=n?.parent;return(0,rP.isVariableDeclarator)(t)?e.variable:(0,rP.isFunctionOrFunctionType)(t)?e.parameter:e.colon}return(0,rP.isClassOrTypeElement)(n)?e.property:(0,rP.isFunction)(n)?e.returnType:e.colon}(i,t);":"===l&&"?"===a.value&&(r.isSpaceBetween(a,o)&&e.report({node:o,messageId:"unexpectedSpaceBetween",data:{type:l,previousToken:a.value},fix:e=>e.removeRange([a.range[1],o.range[0]])}),l="?:",o=a,("+"===(a=r.getTokenBefore(a)).value||"-"===a.value)&&(l=`${a.value}?:`,o=a,a=r.getTokenBefore(a)));let p=r.isSpaceBetween(s,t);u&&!p?e.report({node:s,messageId:"expectedSpaceAfter",data:{type:l},fix:e=>e.insertTextAfter(s," ")}):!u&&p&&e.report({node:s,messageId:"unexpectedSpaceAfter",data:{type:l},fix:e=>e.removeRange([s.range[1],t.range[0]])});let f=r.isSpaceBetween(a,o);c&&!f?e.report({node:o,messageId:"expectedSpaceBefore",data:{type:l},fix:e=>e.insertTextAfter(a," ")}):!c&&f&&e.report({node:o,messageId:"unexpectedSpaceBefore",data:{type:l},fix:e=>e.removeRange([a.range[1],o.range[0]])})}return{TSMappedType(e){e.typeAnnotation&&s(e.typeAnnotation)},TSTypeAnnotation(e){s(e.typeAnnotation)}}}});const oY=new Set(["TSCallSignatureDeclaration","ArrowFunctionExpression","TSFunctionType","FunctionExpression","ClassExpression"]);var oJ=rj({name:"type-generic-spacing",meta:{type:"layout",docs:{description:"Enforces consistent spacing inside TypeScript type generics"},fixable:"whitespace",schema:[],messages:{genericSpacingMismatch:"Generic spaces mismatch"}},defaultOptions:[],create:e=>{let t=e.sourceCode;function n(n,r){let i=t.text.slice(n.range[1],r.range[0]);/\s/.test(i)&&!/^[\r\n]/.test(i)&&e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"genericSpacingMismatch",*fix(e){yield e.replaceTextRange([n.range[1],r.range[0]],"")}})}function r(e,r){if(e){let r=t.getTokenAfter(e);r&&n(e,r)}if(r){let e=t.getTokenBefore(r);e&&n(e,r)}}return{TSTypeParameterInstantiation:e=>{let n=e.params;if(0!==n.length)r(t.getTokenBefore(n[0]),t.getTokenAfter(n[n.length-1]))},TSTypeParameterDeclaration:n=>{if(!oY.has(n.parent.type)){let r=t.text.slice(0,n.range[0]),i=r.match(/(\s+)$/)?.[0];i&&i.length&&e.report({node:n,messageId:"genericSpacingMismatch",*fix(e){yield e.replaceTextRange([n.range[0]-i.length,n.range[0]],"")}})}let i=n.params;if(0!==i.length){r(t.getTokenBefore(i[0]),t.getTokenAfter(i[i.length-1]));for(let r=1;r<i.length;r++){let s=i[r-1],o=i[r],a=s.range[1],l=o.range[0],c=t.text.slice(a,l);", "===c||c.match(/,\s*\n/)||e.report({*fix(e){yield e.replaceTextRange([a,l],", ")},loc:{start:s.loc.end,end:o.loc.start},messageId:"genericSpacingMismatch",node:n})}}},TSTypeParameter:n=>{if(!n.default)return;let r=n.constraint||n.name,i=r.range[1],s=n.default.range[0],o=t.text.slice(i,s);o.match(/(?:^|[^ ]) = (?:$|[^ ])/)||e.report({*fix(e){yield e.replaceTextRange([i,s],o.replace(/\s*=\s*/," = "))},loc:{start:r.loc.end,end:n.default.loc.start},messageId:"genericSpacingMismatch",node:n})}}}});const oW=/^([\w$]+)(\s*)(\?\s*)?:(\s*)(.*)$/;var oX={rules:{"array-bracket-newline":rJ,"array-bracket-spacing":rW,"array-element-newline":rX,"arrow-parens":rz,"arrow-spacing":rH,"block-spacing":rK,"brace-style":rG,"comma-dangle":rZ,"comma-spacing":r0,"comma-style":r1,"computed-property-spacing":r2,"curly-newline":ie,"dot-location":it,"eol-last":ir,"function-call-argument-newline":ii,"function-call-spacing":is,"function-paren-newline":io,"generator-star-spacing":il,"implicit-arrow-linebreak":ic,indent:iy,"indent-binary-ops":iu,"jsx-child-element-spacing":ib,"jsx-closing-bracket-location":iT,"jsx-closing-tag-location":iE,"jsx-curly-brace-presence":i_,"jsx-curly-newline":iO,"jsx-curly-spacing":iN,"jsx-equals-spacing":ij,"jsx-first-prop-new-line":iR,"jsx-function-call-newline":iq,"jsx-indent":iV,"jsx-indent-props":iM,"jsx-max-props-per-line":i$,"jsx-newline":iU,"jsx-one-expression-per-line":iJ,"jsx-pascal-case":iZ,"jsx-props-no-multi-spaces":i0,"jsx-quotes":i2,"jsx-self-closing-comp":i4,"jsx-sort-props":st,"jsx-tag-spacing":so,"jsx-wrap-multilines":sl,"key-spacing":su,"keyword-spacing":sx,"line-comment-position":sb,"linebreak-style":sT,"lines-around-comment":sk,"lines-between-class-members":sE,"max-len":sA,"max-statements-per-line":sD,"member-delimiter-style":sO,"multiline-comment-style":sF,"multiline-ternary":sP,"new-parens":sI,"newline-per-chained-call":sB,"no-confusing-arrow":sL,"no-extra-parens":sj,"no-extra-semi":sR,"no-floating-decimal":sq,"no-mixed-operators":sH,"no-mixed-spaces-and-tabs":sK,"no-multi-spaces":sG,"no-multiple-empty-lines":sQ,"no-tabs":s1,"no-trailing-spaces":s2,"no-whitespace-before-property":s3,"nonblock-statement-body-position":s5,"object-curly-newline":s8,"object-curly-spacing":s7,"object-property-newline":oe,"one-var-declaration-per-line":ot,"operator-linebreak":on,"padded-blocks":oi,"padding-line-between-statements":ob,"quote-props":oT,quotes:ov,"rest-spread-spacing":oA,semi:o_,"semi-spacing":oC,"semi-style":oD,"space-before-blocks":oO,"space-before-function-paren":oF,"space-in-parens":oP,"space-infix-ops":oB,"space-unary-ops":oL,"spaced-comment":oq,"switch-colon-spacing":oM,"template-curly-spacing":oV,"template-tag-spacing":o$,"type-annotation-spacing":oU,"type-generic-spacing":oJ,"type-named-tuple-spacing":rj({name:"type-named-tuple-spacing",meta:{type:"layout",docs:{description:"Expect space before the type declaration in the named tuple"},fixable:"whitespace",schema:[],messages:{expectedSpaceAfter:"Expected a space after the ':'.",unexpectedSpaceBetween:"Unexpected space between '?' and the ':'.",unexpectedSpaceBefore:"Unexpected space before the ':'."}},defaultOptions:[],create:e=>{let t=e.getSourceCode();return{TSNamedTupleMember:n=>{let r=t.text.slice(n.range[0],n.range[1]),i=r.match(oW);if(!i)return;let s=n.label.name,o=i[2],a=i[3],l=i[4],c=i[5];function u(){let e=s;return n.optional&&(e+="?"),e+=": ",e+=c}a?.length>1&&e.report({node:n,messageId:"unexpectedSpaceBetween",*fix(e){yield e.replaceTextRange(n.range,r.replace(oW,u()))}}),o?.length&&e.report({node:n,messageId:"unexpectedSpaceBefore",*fix(e){yield e.replaceTextRange(n.range,r.replace(oW,u()))}}),null!=l&&1!==l.length&&e.report({node:n,messageId:"expectedSpaceAfter",*fix(e){yield e.replaceTextRange(n.range,r.replace(oW,u()))}})}}}}),"wrap-iife":rj({name:"wrap-iife",meta:{type:"layout",docs:{description:"Require parentheses around immediate `function` invocations"},schema:[{type:"string",enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(e){let t=e.options[0]||"outside",n=e.options[1]&&e.options[1].functionPrototypeMethods,r=e.sourceCode;return{CallExpression(i){let s=function(e){let t=rr(e.callee);return"FunctionExpression"===t.type?t:n&&"MemberExpression"===t.type&&"FunctionExpression"===t.object.type&&("call"===rn(t)||"apply"===rn(t))?t.object:null}(i);if(!s)return;let o=ri(r,i),a=ri(r,s);o||a?"inside"!==t||a?"outside"!==t||o||e.report({node:i,messageId:"moveInvocation",fix(e){let t=r.getTokenAfter(s);return e.replaceTextRange([t.range[0],i.range[1]],`${r.getText().slice(t.range[1],i.range[1])})`)}}):e.report({node:i,messageId:"wrapExpression",fix(e){if((0,rP.isParenthesized)(i,r)&&!function(e){let t=e.parent?.type==="ChainExpression"?e.parent:e;return t.parent?.type==="NewExpression"&&t.parent.callee===t}(i)){let t=r.getTokenAfter(i);return e.replaceTextRange([s.range[1],t.range[1]],`)${r.getText().slice(s.range[1],t.range[0])}`)}return e.replaceText(s,`(${r.getText(s)})`)}}):e.report({node:i,messageId:"wrapInvocation",fix(e){let n="inside"===t?s:i;return e.replaceText(n,`(${r.getText(n)})`)}})}}}}),"wrap-regex":rj({name:"wrap-regex",meta:{type:"layout",docs:{description:"Require parenthesis around regex literals"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(e){let t=e.sourceCode;return{Literal(n){if("RegularExpression"===t.getFirstToken(n).type){let r=t.getTokenBefore(n),i=t.getTokenAfter(n),{parent:s}=n;"MemberExpression"!==s.type||s.object!==n||r&&"("===r.value&&i&&")"===i.value||e.report({node:n,messageId:"requireParens",fix:e=>e.replaceText(n,`(${t.getText(n)})`)})}}}}}),"yield-star-spacing":rj({name:"yield-star-spacing",meta:{type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){let t=e.sourceCode,n=function(e="after"){return"string"==typeof e?({before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}})[e]:e}(e.options[0]);function r(r,i,s){if(t.isSpaceBetween(i,s)!==n[r]){let t="*"===i.value,o=n[r],a=t?i:s;e.report({node:a,messageId:o?"before"===r?"missingBefore":"missingAfter":"before"===r?"unexpectedBefore":"unexpectedAfter",fix:e=>o?t?e.insertTextAfter(a," "):e.insertTextBefore(a," "):e.removeRange([i.range[1],s.range[0]])})}}return{YieldExpression:function(e){if(!("delegate"in e&&e.delegate))return;let n=t.getFirstTokens(e,3),i=n[0],s=n[1],o=n[2];r("before",i,s),r("after",s,o)}}}})}};function oz(e={}){let{arrowParens:t=!1,blockSpacing:n=!0,braceStyle:r="stroustrup",commaDangle:i="always-multiline",indent:s=2,jsx:o=!0,pluginName:a="@stylistic",quoteProps:l="consistent-as-needed",quotes:c="single",semi:u=!1,severity:p="error"}=e,f={"@stylistic/array-bracket-spacing":[p,"never"],"@stylistic/arrow-parens":[p,t?"always":"as-needed",{requireForBlockBody:!0}],"@stylistic/arrow-spacing":[p,{after:!0,before:!0}],"@stylistic/block-spacing":[p,n?"always":"never"],"@stylistic/brace-style":[p,r,{allowSingleLine:!0}],"@stylistic/comma-dangle":[p,i],"@stylistic/comma-spacing":[p,{after:!0,before:!1}],"@stylistic/comma-style":[p,"last"],"@stylistic/computed-property-spacing":[p,"never",{enforceForClassMembers:!0}],"@stylistic/dot-location":[p,"property"],"@stylistic/eol-last":p,"@stylistic/generator-star-spacing":[p,{after:!0,before:!1}],"@stylistic/indent":[p,s,{ArrayExpression:1,CallExpression:{arguments:1},flatTernaryExpressions:!1,FunctionDeclaration:{body:1,parameters:1,returnType:1},FunctionExpression:{body:1,parameters:1,returnType:1},ignoreComments:!1,ignoredNodes:["TSUnionType","TSIntersectionType"],ImportDeclaration:1,MemberExpression:1,ObjectExpression:1,offsetTernaryExpressions:!0,outerIIFEBody:1,SwitchCase:1,tabLength:"tab"===s?4:s,VariableDeclarator:1}],"@stylistic/indent-binary-ops":[p,s],"@stylistic/key-spacing":[p,{afterColon:!0,beforeColon:!1}],"@stylistic/keyword-spacing":[p,{after:!0,before:!0}],"@stylistic/lines-between-class-members":[p,"always",{exceptAfterSingleLine:!0}],"@stylistic/max-statements-per-line":[p,{max:1}],"@stylistic/member-delimiter-style":[p,{multiline:{delimiter:u?"semi":"none",requireLast:u},multilineDetection:"brackets",overrides:{interface:{multiline:{delimiter:u?"semi":"none",requireLast:u}}},singleline:{delimiter:u?"semi":"comma"}}],"@stylistic/multiline-ternary":[p,"always-multiline"],"@stylistic/new-parens":p,"@stylistic/no-extra-parens":[p,"functions"],"@stylistic/no-floating-decimal":p,"@stylistic/no-mixed-operators":[p,{allowSamePrecedence:!0,groups:[["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]]}],"@stylistic/no-mixed-spaces-and-tabs":p,"@stylistic/no-multi-spaces":p,"@stylistic/no-multiple-empty-lines":[p,{max:1,maxBOF:0,maxEOF:0}],"@stylistic/no-tabs":"tab"===s?"off":p,"@stylistic/no-trailing-spaces":p,"@stylistic/no-whitespace-before-property":p,"@stylistic/object-curly-spacing":[p,"always"],"@stylistic/operator-linebreak":[p,"before"],"@stylistic/padded-blocks":[p,{blocks:"never",classes:"never",switches:"never"}],"@stylistic/quote-props":[p,l],"@stylistic/quotes":[p,c,{allowTemplateLiterals:"always",avoidEscape:!1}],"@stylistic/rest-spread-spacing":[p,"never"],"@stylistic/semi":[p,u?"always":"never"],"@stylistic/semi-spacing":[p,{after:!0,before:!1}],"@stylistic/space-before-blocks":[p,"always"],"@stylistic/space-before-function-paren":[p,{anonymous:"always",asyncArrow:"always",named:"never"}],"@stylistic/space-in-parens":[p,"never"],"@stylistic/space-infix-ops":p,"@stylistic/space-unary-ops":[p,{nonwords:!1,words:!0}],"@stylistic/spaced-comment":[p,"always",{block:{balanced:!0,exceptions:["*"],markers:["!"]},line:{exceptions:["/","#"],markers:["/"]}}],"@stylistic/template-curly-spacing":p,"@stylistic/template-tag-spacing":[p,"never"],"@stylistic/type-annotation-spacing":[p,{}],"@stylistic/type-generic-spacing":p,"@stylistic/type-named-tuple-spacing":p,"@stylistic/wrap-iife":[p,"any",{functionPrototypeMethods:!0}],"@stylistic/yield-star-spacing":[p,{after:!0,before:!1}],...o?{"@stylistic/jsx-closing-bracket-location":p,"@stylistic/jsx-closing-tag-location":p,"@stylistic/jsx-curly-brace-presence":[p,{propElementValues:"always"}],"@stylistic/jsx-curly-newline":p,"@stylistic/jsx-curly-spacing":[p,"never"],"@stylistic/jsx-equals-spacing":p,"@stylistic/jsx-first-prop-new-line":p,"@stylistic/jsx-function-call-newline":[p,"multiline"],"@stylistic/jsx-indent-props":[p,s],"@stylistic/jsx-max-props-per-line":[p,{maximum:1,when:"multiline"}],"@stylistic/jsx-one-expression-per-line":[p,{allow:"single-child"}],"@stylistic/jsx-quotes":p,"@stylistic/jsx-tag-spacing":[p,{afterOpening:"never",beforeClosing:"never",beforeSelfClosing:"always",closingSlash:"never"}],"@stylistic/jsx-wrap-multilines":[p,{arrow:"parens-new-line",assignment:"parens-new-line",condition:"parens-new-line",declaration:"parens-new-line",logical:"parens-new-line",prop:"parens-new-line",propertyValue:"parens-new-line",return:"parens-new-line"}]}:{}};if("@stylistic"!==a){let e=/^@stylistic\//;f=Object.fromEntries(Object.entries(f).map(([t,n])=>[t.replace(e,`${a}/`),n]))}return{plugins:{[a]:oX},rules:f}}const oH=[/^jsx-/,/^curly-newline$/],oK=function(e,t,n){let r=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&(!n||n(e,t))).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:r}}(oX,"@stylistic",e=>!oH.some(t=>t.test(e))),oG=oz(),oQ=Object.assign(oX,{configs:new Proxy({"disable-legacy":{rules:{"array-bracket-newline":0,"array-bracket-spacing":0,"array-element-newline":0,"arrow-parens":0,"arrow-spacing":0,"block-spacing":0,"brace-style":0,"comma-dangle":0,"comma-spacing":0,"comma-style":0,"computed-property-spacing":0,"dot-location":0,"eol-last":0,"func-call-spacing":0,"function-call-argument-newline":0,"function-paren-newline":0,"generator-star-spacing":0,"implicit-arrow-linebreak":0,indent:0,"jsx-quotes":0,"key-spacing":0,"keyword-spacing":0,"linebreak-style":0,"lines-around-comment":0,"lines-between-class-members":0,"max-len":0,"max-statements-per-line":0,"multiline-ternary":0,"new-parens":0,"newline-per-chained-call":0,"no-confusing-arrow":0,"no-extra-parens":0,"no-extra-semi":0,"no-floating-decimal":0,"no-mixed-operators":0,"no-mixed-spaces-and-tabs":0,"no-multi-spaces":0,"no-multiple-empty-lines":0,"no-tabs":0,"no-trailing-spaces":0,"no-whitespace-before-property":0,"nonblock-statement-body-position":0,"object-curly-newline":0,"object-curly-spacing":0,"object-property-newline":0,"one-var-declaration-per-line":0,"operator-linebreak":0,"padded-blocks":0,"padding-line-between-statements":0,"quote-props":0,quotes:0,"rest-spread-spacing":0,semi:0,"semi-spacing":0,"semi-style":0,"space-before-blocks":0,"space-before-function-paren":0,"space-in-parens":0,"space-infix-ops":0,"space-unary-ops":0,"spaced-comment":0,"switch-colon-spacing":0,"template-curly-spacing":0,"template-tag-spacing":0,"wrap-iife":0,"wrap-regex":0,"yield-star-spacing":0,"@typescript-eslint/block-spacing":0,"@typescript-eslint/brace-style":0,"@typescript-eslint/comma-dangle":0,"@typescript-eslint/comma-spacing":0,"@typescript-eslint/func-call-spacing":0,"@typescript-eslint/indent":0,"@typescript-eslint/key-spacing":0,"@typescript-eslint/keyword-spacing":0,"@typescript-eslint/lines-around-comment":0,"@typescript-eslint/lines-between-class-members":0,"@typescript-eslint/member-delimiter-style":0,"@typescript-eslint/no-extra-parens":0,"@typescript-eslint/no-extra-semi":0,"@typescript-eslint/object-curly-spacing":0,"@typescript-eslint/padding-line-between-statements":0,"@typescript-eslint/quotes":0,"@typescript-eslint/semi":0,"@typescript-eslint/space-before-blocks":0,"@typescript-eslint/space-before-function-paren":0,"@typescript-eslint/space-infix-ops":0,"@typescript-eslint/type-annotation-spacing":0,"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},customize:oz,recommended:oG,"recommended-flat":oG,all:oK,"all-flat":oK},{get(e,t,n){let r=t.toString();return r.endsWith("-flat")&&nQ(`config("${r}")`,`"${r.replace("-flat","")}"`),Reflect.get(e,t,n)}})}),oZ=["consistent-chaining","consistent-list-newline","curly","if-newline","import-dedupe","indent-unindent","top-level-function"],o0="https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/",o1=(s=e=>oZ.includes(e)?`${o0}${e}.md`:`${o0}${e}.test.ts`,function({name:e,meta:t,...n}){return function({create:e,defaultOptions:t,meta:n}){return{create:n=>{let r=n.options.map((e,n)=>({...t[n]||{},...e||{}}));return e(n,r)},defaultOptions:t,meta:n}}({meta:{...t,docs:{...t.docs,url:s(e)}},...n})}),o2=o1({name:"consistent-chaining",meta:{type:"layout",docs:{description:"Having line breaks styles to object, array and named imports"},fixable:"whitespace",schema:[{type:"object",properties:{allowLeadingPropertyAccess:{type:"boolean",description:"Allow leading property access to be on the same line",default:!0}},additionalProperties:!1}],messages:{shouldWrap:"Should have line breaks between items, in node {{name}}",shouldNotWrap:"Should not have line breaks between items, in node {{name}}"}},defaultOptions:[{allowLeadingPropertyAccess:!0}],create:e=>{let t=new WeakSet,{allowLeadingPropertyAccess:n=!0}=e.options[0]||{};return{MemberExpression(r){let i=r;for(;i.parent&&("MemberExpression"===i.parent.type||"CallExpression"===i.parent.type);)i=i.parent;if(t.has(i))return;t.add(i);let s=[],o=i;for(;o;)switch(o.type){case"MemberExpression":o.computed||s.unshift(o),o=o.object;break;case"CallExpression":o=o.callee;break;default:o=void 0}let a=n,l=null;s.forEach(t=>{let n=e.sourceCode.getTokenBefore(t.property),r=e.sourceCode.getTokenBefore(n),s=n.loc.start.line===r.loc.end.line?"single":"multi";if(!a||"ThisExpression"!==t.object.type&&"Identifier"!==t.object.type&&"MemberExpression"!==t.object.type&&"Literal"!==t.object.type||"single"!==s){if(a=!1,null==l){l=s;return}l!==s&&e.report({messageId:"single"===l?"shouldNotWrap":"shouldWrap",loc:n.loc,data:{name:i.type},fix:e=>"multi"===l?e.insertTextAfter(r,"\n"):e.removeRange([r.range[1],n.range[0]])})}})}}}}),o3=o1({name:"consistent-list-newline",meta:{type:"layout",docs:{description:"Having line breaks styles to object, array and named imports"},fixable:"whitespace",schema:[{type:"object",properties:{ArrayExpression:{type:"boolean"},ArrayPattern:{type:"boolean"},ArrowFunctionExpression:{type:"boolean"},CallExpression:{type:"boolean"},ExportNamedDeclaration:{type:"boolean"},FunctionDeclaration:{type:"boolean"},FunctionExpression:{type:"boolean"},ImportDeclaration:{type:"boolean"},JSONArrayExpression:{type:"boolean"},JSONObjectExpression:{type:"boolean"},JSXOpeningElement:{type:"boolean"},NewExpression:{type:"boolean"},ObjectExpression:{type:"boolean"},ObjectPattern:{type:"boolean"},TSFunctionType:{type:"boolean"},TSInterfaceDeclaration:{type:"boolean"},TSTupleType:{type:"boolean"},TSTypeLiteral:{type:"boolean"},TSTypeParameterDeclaration:{type:"boolean"},TSTypeParameterInstantiation:{type:"boolean"}},additionalProperties:!1}],messages:{shouldWrap:"Should have line breaks between items, in node {{name}}",shouldNotWrap:"Should not have line breaks between items, in node {{name}}"}},defaultOptions:[{}],create:(e,[t={}]=[{}])=>{let n=new Set(["ArrayExpression","FunctionDeclaration","ObjectExpression","ObjectPattern","TSTypeLiteral","TSTupleType","TSInterfaceDeclaration"]);function r(t,n,r,i){let s=[n,r],o=e.sourceCode.text.slice(...s);return t.replaceTextRange(s,o.replace(/(\r\n|\n)/g,i??""))}function i(t,n){if("TSInterfaceDeclaration"===t.type||"TSTypeLiteral"===t.type)return e.sourceCode.text.slice(n.range[0],n.range[1]).match(/(?:,|;)$/)?void 0:","}function s(e){let t=e;for(;"Program"!==t.type;)t=t.parent;let n=e.range;return!!t.comments?.some(e=>{let t=e.range;return t[0]>n[0]&&t[1]<n[1]})}function o(t,s,o){let a=s.filter(Boolean);if(0===a.length)return;let l=["CallExpression","NewExpression"].includes(t.type)?void 0:e.sourceCode.getFirstToken(t);"CallExpression"===t.type&&(l=e.sourceCode.getTokenAfter(t.typeArguments?t.typeArguments:"MemberExpression"===t.callee.type?t.callee.property:t.callee)),l?.type!=="Punctuator"&&(l=e.sourceCode.getTokenBefore(a[0]));let c=e.sourceCode.getTokenAfter(a[a.length-1]),u=l.loc.start.line;if(l.loc.start.line===c.loc.end.line)return;let p=null,f=u;a.forEach((n,s)=>{if(null==p){p=n.loc.start.line===f?"inline":"newline",f=n.loc.end.line;return}let o=n.loc.start.line;if("newline"===p&&o===f)e.report({node:n,messageId:"shouldWrap",data:{name:t.type},*fix(e){yield e.insertTextBefore(n,"\n")}});else if("inline"===p&&o!==f){let o=a[s-1];if(e.sourceCode.getCommentsBefore(n).length>0)return;e.sourceCode.text.slice(o.range[1],n.range[0]).includes("\n")&&e.report({node:n,messageId:"shouldNotWrap",data:{name:t.type},*fix(e){yield r(e,o.range[1],n.range[0],i(t,o))}})}f=n.loc.end.line});let d=o?Math.min(e.sourceCode.getTokenBefore(o).range[0],t.range[1]):t.range[1],m=e.sourceCode.getLocFromIndex(d),h=a[a.length-1];if("newline"===p&&m.line===f)e.report({node:h,messageId:"shouldWrap",data:{name:t.type},*fix(e){yield e.insertTextAfter(h,"\n")}});else if("inline"===p&&m.line!==f){if(1===a.length&&!n.has(t.type)||e.sourceCode.getCommentsAfter(h).length>0)return;e.sourceCode.text.slice(h.range[1],d).includes("\n")&&e.report({node:h,messageId:"shouldNotWrap",data:{name:t.type},*fix(e){let n=1===a.length?"":i(t,h);yield r(e,h.range[1],d,n)}})}}let a={ObjectExpression:e=>{o(e,e.properties)},ArrayExpression:e=>{o(e,e.elements)},ImportDeclaration:e=>{o(e,e.specifiers[0]?.type==="ImportDefaultSpecifier"?e.specifiers.slice(1):e.specifiers)},ExportNamedDeclaration:e=>{o(e,e.specifiers)},FunctionDeclaration:e=>{o(e,e.params,e.returnType||e.body)},FunctionExpression:e=>{o(e,e.params,e.returnType||e.body)},ArrowFunctionExpression:e=>{e.params.length<=1||o(e,e.params,e.returnType||e.body)},CallExpression:e=>{o(e,e.arguments)},TSInterfaceDeclaration:e=>{o(e,e.body.body)},TSTypeLiteral:e=>{o(e,e.members)},TSTupleType:e=>{o(e,e.elementTypes)},TSFunctionType:e=>{o(e,e.params)},NewExpression:e=>{o(e,e.arguments)},TSTypeParameterDeclaration(e){o(e,e.params)},TSTypeParameterInstantiation(e){o(e,e.params)},ObjectPattern(e){o(e,e.properties,e.typeAnnotation)},ArrayPattern(e){o(e,e.elements)},JSXOpeningElement(e){e.attributes.some(e=>e.loc.start.line!==e.loc.end.line)||o(e,e.attributes)},JSONArrayExpression(e){s(e)||o(e,e.elements)},JSONObjectExpression(e){s(e)||o(e,e.properties)}};return Object.keys(t).forEach(e=>{!1===t[e]&&delete a[e]}),a}}),o4=o1({name:"curly",meta:{type:"layout",docs:{description:"Enforce Anthony's style of curly bracket"},fixable:"whitespace",schema:[],messages:{missingCurlyBrackets:"Expect curly brackets"}},defaultOptions:[],create:e=>{function t(n,r=[]){[...n,...r].map(e=>(function(e){if(!e)return!1;if("BlockStatement"===e.type||["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"].includes(e.type))return!0;let t="ExpressionStatement"===e.type?e.expression:e;return t.loc.start.line!==t.loc.end.line})(e)).some(e=>e)&&n.map(t=>{"BlockStatement"!==t.type&&e.report({node:t,messageId:"missingCurlyBrackets",*fix(n){yield n.insertTextAfter(t,"\n}");let r=e.sourceCode.getTokenBefore(t);yield n.insertTextAfterRange(r.range," {")}})})}return{IfStatement(e){let n=e.parent;if("IfStatement"===n.type&&n.alternate===e)return;let r=[],i=[];!function e(t){r.push(t.consequent),t.test&&i.push(t.test),t.alternate&&("IfStatement"===t.alternate.type?e(t.alternate):r.push(t.alternate))}(e),t(r,i)},WhileStatement(e){t([e.body],[e.test])},DoWhileStatement(e){t([e.body],[e.test])},ForStatement(e){t([e.body])},ForInStatement(e){t([e.body])},ForOfStatement(e){t([e.body])}}}}),o5=o1({name:"if-newline",meta:{type:"layout",docs:{description:"Newline after if"},fixable:"whitespace",schema:[],messages:{missingIfNewline:"Expect newline after if"}},defaultOptions:[],create:e=>({IfStatement(t){t.consequent&&"BlockStatement"!==t.consequent.type&&t.test.loc.end.line===t.consequent.loc.start.line&&e.report({node:t,loc:{start:t.test.loc.end,end:t.consequent.loc.start},messageId:"missingIfNewline",fix:e=>e.replaceTextRange([t.consequent.range[0],t.consequent.range[0]],"\n")})}})}),o6=o1({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{importDedupe:"Expect no duplication in imports"}},defaultOptions:[],create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let n=new Set;t.specifiers.forEach(r=>{let i=r.local.name;n.has(i)&&e.report({node:t,loc:{start:r.loc.end,end:r.loc.start},messageId:"importDedupe",fix(t){let n=r.range[0],i=r.range[1];return","===e.getSourceCode().text[i]&&(i+=1),t.removeRange([n,i])}}),n.add(i)})}})}),o9=/^\s*$/,o8=o1({name:"indent-unindent",meta:{type:"layout",docs:{description:"Enforce consistent indentation in `unindent` template tag"},fixable:"code",schema:[{type:"object",properties:{indent:{type:"number",minimum:0,default:2},tags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{"indent-unindent":"Consistent indentation in unindent tag"}},defaultOptions:[{}],create(e){let{tags:t=["$","unindent","unIndent"],indent:n=2}=e.options?.[0]??{};return{TaggedTemplateExpression(r){let i=r.tag;if(!i||"Identifier"!==i.type||!t.includes(i.name)||1!==r.quasi.quasis.length)return;let s=r.quasi.quasis[0],o=s.value.raw,a=e.sourceCode.getIndexFromLoc({line:r.loc.start.line,column:0}),l=e.sourceCode.text.slice(a).match(/^\s*/)?.[0]??"",c=l+" ".repeat(n),u=(function(e){let t=("string"==typeof e?e:e[0]).split("\n"),n=t.map(e=>o9.test(e)),r=t.reduce((e,t,r)=>{if(n[r])return e;let i=t.match(/^\s*/)?.[0].length;return void 0===i?e:Math.min(e,i)},1/0),i=0;for(;i<t.length&&n[i];)i++;let s=0;for(;s<t.length&&n[t.length-s-1];)s++;return t.slice(i,t.length-s).map(e=>e.slice(r)).join("\n")})([o]).split("\n").map(e=>c+e).join("\n");(u=`
24
- ${u}
25
- ${l}`)!==o&&e.report({node:s,messageId:"indent-unindent",fix:e=>e.replaceText(s,`\`${u}\``)})}}}}),o7=o1({name:"no-import-dist",meta:{type:"problem",docs:{description:"Prevent importing modules in `dist` folder"},schema:[],messages:{noImportDist:"Do not import modules in `dist` folder, got {{path}}"}},defaultOptions:[],create:e=>({ImportDeclaration:t=>{var n;((n=t.source.value).startsWith(".")&&n.match(/\/dist(\/|$)/)||"dist"===n)&&e.report({node:t,messageId:"noImportDist",data:{path:t.source.value}})}})}),ae=o1({name:"no-import-node-modules-by-path",meta:{type:"problem",docs:{description:"Prevent importing modules in `node_modules` folder by relative or absolute path"},schema:[],messages:{noImportNodeModulesByPath:"Do not import modules in `node_modules` folder by path"}},defaultOptions:[],create:e=>({ImportDeclaration:t=>{t.source.value.includes("/node_modules/")&&e.report({node:t,messageId:"noImportNodeModulesByPath"})},'CallExpression[callee.name="require"]':t=>{let n=t.arguments[0]?.value;"string"==typeof n&&n.includes("/node_modules/")&&e.report({node:t,messageId:"noImportNodeModulesByPath"})}})}),at=o1({name:"no-top-level-await",meta:{type:"problem",docs:{description:"Prevent using top-level await"},schema:[],messages:{NoTopLevelAwait:"Do not use top-level await"}},defaultOptions:[],create:e=>({AwaitExpression:t=>{let n=t.parent;for(;n;){if("FunctionDeclaration"===n.type||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type)return;n=n.parent}e.report({node:t,messageId:"NoTopLevelAwait"})}})}),an={meta:{name:"antfu",version:"3.1.1"},rules:{"consistent-chaining":o2,"consistent-list-newline":o3,curly:o4,"if-newline":o5,"import-dedupe":o6,"indent-unindent":o8,"no-import-dist":o7,"no-import-node-modules-by-path":ae,"no-top-level-await":at,"no-ts-export-equal":o1({name:"no-ts-export-equal",meta:{type:"problem",docs:{description:"Do not use `exports =`"},schema:[],messages:{noTsExportEqual:"Use ESM `export default` instead"}},defaultOptions:[],create:e=>{let t=e.getFilename().split(".").pop();return t&&["ts","tsx","mts","cts"].includes(t)?{TSExportAssignment(t){e.report({node:t,messageId:"noTsExportEqual"})}}:{}}}),"top-level-function":o1({name:"top-level-function",meta:{type:"problem",docs:{description:"Enforce top-level functions to be declared with function keyword"},fixable:"code",schema:[],messages:{topLevelFunctionDeclaration:"Top-level functions should be declared with function keyword"}},defaultOptions:[],create:e=>({VariableDeclaration(t){if("Program"!==t.parent.type&&"ExportNamedDeclaration"!==t.parent.type||1!==t.declarations.length||"const"!==t.kind||t.declare)return;let n=t.declarations[0];if(n.init?.type!=="ArrowFunctionExpression"&&n.init?.type!=="FunctionExpression"||n.id?.type!=="Identifier"||n.id.typeAnnotation||"BlockStatement"!==n.init.body.type&&n.id?.loc.start.line===n.init?.body.loc.end.line)return;let r=n.init,i=n.init.body,s=n.id;e.report({node:t,loc:{start:s.loc.start,end:i.loc.start},messageId:"topLevelFunctionDeclaration",fix(n){let o=e.getSourceCode().text,a=o.slice(s.range[0],s.range[1]),l=r.params.length?o.slice(r.params[0].range[0],r.params[r.params.length-1].range[1]):"",c="BlockStatement"===i.type?o.slice(i.range[0],i.range[1]):`{
26
- return ${o.slice(i.range[0],i.range[1])}
27
- }`,u=r.typeParameters?o.slice(r.typeParameters.range[0],r.typeParameters.range[1]):"",p=r.returnType?o.slice(r.returnType.range[0],r.returnType.range[1]):"",f=r.async?"async ":"",d=`${f}function ${a} ${u}(${l})${p} ${c}`;return n.replaceTextRange([t.range[0],t.range[1]],d)}})}})})}},ar=[".js",".jsx",".mjs",".cjs"],ai={plugins:{jsonc:X.memo(eu,"eslint-plugin-jsonc")},languageOptions:{parser:ep}},as={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},ao={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"off","no-redeclare":"off","@typescript-eslint/no-redeclare":"off","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","sukka/no-return-await":"off","@typescript-eslint/return-await":"error","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error",camelcase:"off","no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},aa=[".ts",".cts",".mts",".tsx",".d.ts"],al=[...aa,".js",".jsx",".mjs",".cjs"];async function ac(e){if(!ex.isCI&&K.stdout.isTTY&&!X.isPackageExists(e)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.b}).then(t=>t.installPackage(e,{dev:!0}))}return Promise.resolve(require(e))}const au={};function ap(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return af(e.children,t,n)}return Array.isArray(e)?af(e,t,n):""}function af(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ap(e[i],t,n);return r.join("")}const ad={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},am={}.hasOwnProperty;function ah(e){return!!am.call(ad,e)&&ad[e]}function ag(e,t,n,r){let i,s=e.length,o=0;if(t=t<0?-t>s?0:s+t:t>s?s:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function ay(e,t){return e.length>0?(ag(e,e.length,0,t),e):t}const ax={}.hasOwnProperty;function ab(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ax.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(r in s){ax.call(i,r)||(i[r]=[]);let e=s[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ag(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}function aT(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function ak(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const aS=aB(/[A-Za-z]/),aE=aB(/[\dA-Za-z]/),aw=aB(/[#-'*+\--9=?A-Z^-~]/);function av(e){return null!==e&&(e<32||127===e)}const aA=aB(/\d/),aC=aB(/[\dA-Fa-f]/),aD=aB(/[!-/:-@[-`{-~]/);function a_(e){return null!==e&&e<-2}function aO(e){return null!==e&&(e<0||32===e)}function aF(e){return -2===e||-1===e||32===e}const aP=aB(/\p{P}|\p{S}/u),aI=aB(/\s/);function aB(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function aL(e,t,n,r){let i=r?r-1:1/0,s=0;return function(r){return aF(r)?(e.enter(n),function r(o){return aF(o)&&s++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}const aN={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aL(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return a_(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},aj={tokenize:function(e){let t,n,r,i=this,s=[],o=0;return a;function a(t){if(o<s.length){let n=s[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,s=r;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){n=i.events[s][1].end;break}g(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return ag(i.events,s+1,0,i.events.slice(r)),i.events.length=a,c(e)}return a(e)}function c(n){if(o===s.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(aR,u,p)(n)}function u(e){return t&&y(),g(o),f(e)}function p(e){return i.parser.lazy[i.now().line]=o!==s.length,r=i.now().offset,m(e)}function f(t){return i.containerState={},e.attempt(aR,d,m)(t)}function d(e){return o++,s.push([i.currentConstruct,i.containerState]),f(e)}function m(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){h(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return a_(n)?(e.consume(n),h(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function h(e,s){let a=i.sliceStream(e);if(s&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,s=t.events.length;for(;s--;)if(t.events[s][1].start.offset<r&&(!t.events[s][1].end||t.events[s][1].end.offset>r))return;let a=i.events.length,l=a;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),s=a;s<i.events.length;)i.events[s][1].end={...n},s++;ag(i.events,l+1,0,i.events.slice(a)),i.events.length=s}}function g(t){let n=s.length;for(;n-- >t;){let t=s[n];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},aR={tokenize:function(e,t,n){return aL(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function aq(e){return null===e||aO(e)||aI(e)?1:aP(e)?2:void 0}function aM(e,t,n){let r=[],i=-1;for(;++i<e.length;){let s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const aV={name:"attention",resolveAll:function(e,t){let n,r,i,s,o,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let p={...e[n][1].end},f={...e[u][1].start};a$(p,-a),a$(f,a),s={type:a>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ay(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ay(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=ay(l,aM(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ay(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ay(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ag(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=aq(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let l=e.exit("attentionSequence"),c=aq(a),u=!c||2===c&&s||r.includes(a),p=!s||2===s&&c||r.includes(i);return l._open=!!(42===n?u:u&&(s||!p)),l._close=!!(42===n?p:p&&(c||!u)),t(a)}(o)}}};function a$(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aU={partial:!0,tokenize:function(e,t,n){return function(t){return aF(t)?aL(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||a_(e)?t(e):n(e)}}},aY={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return aF(t)?aL(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(aY,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return aF(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},aJ={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return aD(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},aW={name:"characterReference",tokenize:function(e,t,n){let r,i,s=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=aE,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=aC,c):(e.enter("characterReferenceValue"),r=7,i=aA,c(t))}function c(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==aE||ah(s.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),c):n(a)}}},aX={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},az={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,s={partial:!0,tokenize:function(e,t,n){let s=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),aF(t)?aL(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s>=a?(e.exit("codeFencedFenceSequence"),aF(i)?aL(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||a_(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var s=t;let c=i.events[i.events.length-1];return o=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=s,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),aF(i)?aL(e,l,"whitespace")(i):l(i))}(s)};function l(s){return null===s||a_(s)?(e.exit("codeFencedFence"),i.interrupt?t(s):e.check(aX,u,m)(s)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||a_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):aF(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),aL(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(s))}function c(t){return null===t||a_(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||a_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(s,m,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&aF(t)?aL(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||a_(t)?e.check(aX,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||a_(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},aH={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),aL(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?s(n):a_(n)?e.attempt(aK,t,s)(n):(e.enter("codeFlowValue"),function n(r){return null===r||a_(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function s(n){return e.exit("codeIndented"),t(n)}}},aK={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):a_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):aL(e,s,"linePrefix",5)(t)}function s(e){let s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):a_(e)?i(e):n(e)}}};class aG{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&aQ(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),aQ(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),aQ(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);aQ(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);aQ(this.left,t.reverse())}}}function aQ(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function aZ(e){let t,n,r,i,s,o,a,l={},c=-1,u=new aG(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],s=e.get(t)[2],o=t-1,a=[],l=i._tokenizer;!l&&(l=s.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],p={},f=-1,d=i,m=0,h=0,g=[0];for(;d;){for(;e.get(++o)[1]!==d;);a.push(o),!d._tokenizer&&(n=s.sliceStream(d),d.next||n.push(null),r&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++f<c.length;)"exit"===c[f][0]&&"enter"===c[f-1][0]&&c[f][1].type===c[f-1][1].type&&c[f][1].start.line!==c[f][1].end.line&&(h=f+1,g.push(h),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),f=g.length;f--;){let t=c.slice(g[f],g[f+1]),n=a.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),f=-1;++f<u.length;)p[m+u[f][0]]=m+u[f][1],m+=u[f][1]-u[f][0]-1;return p}(u,c)),c=l[c],a=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(s=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,s))}}return ag(e,0,1/0,u.slice(0)),!a}const a0={resolve:function(e){return aZ(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):a_(t)?e.check(a1,s,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},a1={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aL(e,i,"linePrefix")};function i(i){if(null===i||a_(i))return n(i);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function a2(e,t,n,r,i,s,o,a,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(s),e.consume(t),e.exit(s),p):null===t||32===t||41===t||av(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(t))};function p(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),p(t)):null===t||60===t||a_(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function m(i){return!u&&(null===i||41===i||aO(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,m):41===i?(e.consume(i),u--,m):null===i||32===i||40===i||av(i)?n(i):(e.consume(i),92===i?h:m)}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function a3(e,t,n,r,i,s){let o,a=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),c};function c(p){return l>999||null===p||91===p||93===p&&!o||94===p&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):a_(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||a_(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!aF(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function a4(e,t,n,r,i,s){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(s),l(n))}function l(t){return t===o?(e.exit(s),a(o)):null===t?n(t):a_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),aL(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||a_(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function a5(e,t){let n;return function r(i){return a_(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):aF(i)?aL(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const a6={partial:!0,tokenize:function(e,t,n){return function(t){return aO(t)?a5(e,r)(t):n(t)};function r(t){return a4(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return aF(t)?aL(e,s,"whitespace")(t):s(t)}function s(e){return null===e||a_(e)?t(e):n(e)}}},a9=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],a8=["pre","script","style","textarea"],a7={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(aU,t,n)}}},le={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return a_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},lt={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ag(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,s,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return s=ay(s=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+a+3)),s=ay(s,[["enter",u,t]]),s=ay(s,aM(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),s=ay(s,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),s=ay(s,e.slice(i+1)),s=ay(s,[["exit",l,t]]),ag(e,r,e.length,s),e},tokenize:function(e,t,n){let r,i,s=this,o=s.events.length;for(;o--;)if(("labelImage"===s.events[o][1].type||"labelLink"===s.events[o][1].type)&&!s.events[o][1]._balanced){r=s.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=s.parser.defined.includes(ak(s.sliceSerialize({start:r.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(ln,c,i?c:u)(t):91===t?e.attempt(lr,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(li,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},ln={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return aO(t)?a5(e,i)(t):i(t)}function i(t){return 41===t?c(t):a2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return aO(t)?a5(e,a)(t):c(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?a4(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return aO(t)?a5(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},lr={tokenize:function(e,t,n){let r=this;return function(t){return a3.call(r,e,i,s,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(ak(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},li={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ls={name:"labelStartImage",resolveAll:lt.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},lo={name:"labelStartLink",resolveAll:lt.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},la={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),aL(e,t,"linePrefix")}}},ll={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(s){var o;return e.enter("thematicBreak"),r=o=s,function s(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),aF(n)?aL(e,s,"whitespace")(n):s(n))}(o)):i>=3&&(null===o||a_(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},lc={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(aU,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,aL(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!aF(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lp,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,aL(e,e.attempt(lc,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:aA(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ll,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return aA(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(aU,r.interrupt?n:l,e.attempt(lu,u,c))}function l(e){return r.containerState.initialBlankLine=!0,s++,u(e)}function c(t){return aF(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},lu={partial:!0,tokenize:function(e,t,n){let r=this;return aL(e,function(e){let i=r.events[r.events.length-1];return!aF(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},lp={partial:!0,tokenize:function(e,t,n){let r=this;return aL(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},lf={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){a="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),aF(n)?aL(e,s,"lineSuffix")(n):s(n))}(o)):n(t)};function s(r){return null===r||a_(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},ld={tokenize:function(e){let t=this,n=e.attempt(aU,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,aL(e,e.attempt(this.parser.constructs.flow,r,e.attempt(a0,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},lm={resolveAll:lx()},lh=ly("string"),lg=ly("text");function ly(e){return{resolveAll:lx("text"===e?lb:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,s,o);return s;function s(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function lx(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function lb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],s=t.sliceStream(i),o=s.length,a=-1,l=0;for(;o--;){let e=s[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let s={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}var lT=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,a3.call(i,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function s(t){return(r=ak(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return aO(t)?a5(e,a)(t):a(t)}function a(t){return a2(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(a6,c,c)(t)}function c(t){return aF(t)?aL(e,u,"whitespace")(t):u(t)}function u(s){return null===s||a_(s)?(e.exit("definition"),i.parser.defined.push(r),t(s)):n(s)}}}},disable:{null:[]},document:{42:lc,43:lc,45:lc,48:lc,49:lc,50:lc,51:lc,52:lc,53:lc,54:lc,55:lc,56:lc,57:lc,62:aY},flow:{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,s=3;return"whitespace"===e[3][1].type&&(s+=2),i-2>s&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},ag(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var s;return e.enter("atxHeading"),s=i,e.enter("atxHeadingSequence"),function i(s){return 35===s&&r++<6?(e.consume(s),i):null===s||aO(s)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||a_(r)?(e.exit("atxHeading"),t(r)):aF(r)?aL(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||aO(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(s)):n(s)}(s)}}},42:ll,45:[lf,ll],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,s,o,a,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,l.interrupt?t:P):aS(o)?(e.consume(o),s=String.fromCharCode(o),m):n(o)}function u(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,o=0,f):aS(i)?(e.consume(i),r=4,l.interrupt?t:P):n(i)}function p(r){return 45===r?(e.consume(r),l.interrupt?t:P):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:w:f:n(r)}function d(t){return aS(t)?(e.consume(t),s=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||aO(o)){let a=47===o,c=s.toLowerCase();return!a&&!i&&a8.includes(c)?(r=1,l.interrupt?t(o):w(o)):a9.includes(s.toLowerCase())?(r=6,a)?(e.consume(o),h):l.interrupt?t(o):w(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return aF(n)?(e.consume(n),t):S(n)}(o):g(o))}return 45===o||aE(o)?(e.consume(o),s+=String.fromCharCode(o),m):n(o)}function h(r){return 62===r?(e.consume(r),l.interrupt?t:w):n(r)}function g(t){return 47===t?(e.consume(t),S):58===t||95===t||aS(t)?(e.consume(t),y):aF(t)?(e.consume(t),g):S(t)}function y(t){return 45===t||46===t||58===t||95===t||aE(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),b):aF(t)?(e.consume(t),x):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,T):aF(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||aO(n)?x(n):(e.consume(n),t)}(t)}function T(t){return t===a?(e.consume(t),a=null,k):null===t||a_(t)?n(t):(e.consume(t),T)}function k(e){return 47===e||62===e||aF(e)?g(e):n(e)}function S(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||a_(t)?w(t):aF(t)?(e.consume(t),E):n(t)}function w(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),I):63===t&&3===r?(e.consume(t),P):93===t&&5===r?(e.consume(t),F):a_(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(a7,B,v)(t)):null===t||a_(t)?(e.exit("htmlFlowData"),v(t)):(e.consume(t),w)}function v(t){return e.check(le,A,B)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||a_(t)?v(t):(e.enter("htmlFlowData"),w(t))}function D(t){return 45===t?(e.consume(t),P):w(t)}function _(t){return 47===t?(e.consume(t),s="",O):w(t)}function O(t){if(62===t){let n=s.toLowerCase();return a8.includes(n)?(e.consume(t),I):w(t)}return aS(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),O):w(t)}function F(t){return 93===t?(e.consume(t),P):w(t)}function P(t){return 62===t?(e.consume(t),I):45===t&&2===r?(e.consume(t),P):w(t)}function I(t){return null===t||a_(t)?(e.exit("htmlFlowData"),B(t)):(e.consume(t),I)}function B(n){return e.exit("htmlFlow"),t(n)}}},61:lf,95:ll,96:az,126:az},flowInitial:{[-2]:aH,[-1]:aH,32:aH},insideSpan:{null:[aV,lm]},string:{38:aW,92:aJ},text:{[-5]:la,[-4]:la,[-3]:la,33:ls,38:aW,42:aV,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return aS(t)?(e.consume(t),s):64===t?n(t):a(t)}function s(t){return 43===t||45===t||46===t||aE(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||aE(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||av(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),l):aw(t)?(e.consume(t),a):n(t)}function l(i){return aE(i)?function i(s){return 46===s?(e.consume(s),r=0,l):62===s?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(s),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(s){if((45===s||aE(s))&&r++<63){let n=45===s?t:i;return e.consume(s),n}return n(s)}(s)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,s,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),T):63===t?(e.consume(t),x):aS(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):aS(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),p):a_(t)?(s=u,O(t)):(e.consume(t),u)}function p(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?_(e):45===e?p(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):a_(t)?(s=m,O(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?_(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?_(t):a_(t)?(s=y,O(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),b):a_(t)?(s=x,O(t)):(e.consume(t),x)}function b(e){return 62===e?_(e):x(e)}function T(t){return aS(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||aE(t)?(e.consume(t),k):function t(n){return a_(n)?(s=t,O(n)):aF(n)?(e.consume(n),t):_(n)}(t)}function S(t){return 45===t||aE(t)?(e.consume(t),S):47===t||62===t||aO(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),_):58===t||95===t||aS(t)?(e.consume(t),w):a_(t)?(s=E,O(t)):aF(t)?(e.consume(t),E):_(t)}function w(t){return 45===t||46===t||58===t||95===t||aE(t)?(e.consume(t),w):function t(n){return 61===n?(e.consume(n),v):a_(n)?(s=t,O(n)):aF(n)?(e.consume(n),t):E(n)}(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):a_(t)?(s=v,O(t)):aF(t)?(e.consume(t),v):(e.consume(t),C)}function A(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):a_(t)?(s=A,O(t)):(e.consume(t),A)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||aO(t)?E(t):(e.consume(t),C)}function D(e){return 47===e||62===e||aO(e)?E(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return aF(t)?aL(e,P,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),s(t)}}}],91:lo,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return a_(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},aJ],93:lt,95:aV,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),s++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(l)):a_(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(l))}function a(t){return null===t||32===t||96===t||a_(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}});const lk=/[\0\t\n\r]/g,lS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lE(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return aT(n.slice(t?2:1),t?16:10)}return ah(n)||e}function lw(e){return e&&"object"==typeof e?"position"in e||"type"in e?lA(e.position):"start"in e||"end"in e?lA(e):"line"in e||"column"in e?lv(e):"":""}function lv(e){return lC(e&&e.line)+":"+lC(e&&e.column)}function lA(e){return lv(e&&e.start)+"-"+lv(e&&e.end)}function lC(e){return e&&"number"==typeof e?e:1}const lD={}.hasOwnProperty;function l_(e,t,n){let r,i,s,o;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(h),hardBreakTrailing:r(h),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(x),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=aT(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ah(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=lO(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ak(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(p),hardBreakTrailing:o(p),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(lS,lE),n.identifier=ak(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=lO(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ak(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(lD.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:s,exit:a,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,s,o,a=t-1,l=-1,c=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||s||(s=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}s&&(!i||s<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,s=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];lD.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||lF).call(o,void 0,e[0])}for(r.position={start:lO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lO(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lF).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+lw({start:e.start,end:e.end})+"): it’s not open");n.position.end=lO(e.end)}function l(){return ap(this.stack.pop(),"boolean"!=typeof au.includeImageAlt||au.includeImageAlt,"boolean"!=typeof au.includeHtml||au.includeHtml)}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:lO(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lO(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function h(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!aZ(e););return e}((function(e){let t={constructs:ab([lT,...(e||{}).extensions||[]]),content:n(aN),defined:[],document:n(aj),flow:n(ld),lazy:{},string:n(lh),text:n(lg)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],o=[],a=[],l={attempt:m(function(e,t){h(e,t.from)}),check:m(d),consume:function(e){a_(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:m(d,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let s,o=e[r];if("string"==typeof o)s=o;else switch(o){case -5:s="\r";break;case -4:s="\n";break;case -3:s="\r\n";break;case -2:s=t?" ":" ";break;case -1:if(!t&&n)continue;s=" ";break;default:s=String.fromCharCode(o)}n=-2===o,i.push(s)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(o=ay(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(h(t,0),c.events=aM(s,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&s.push(t),c;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;if(r===s)n=[e[r].slice(i,o)];else{if(n=e.slice(r,s),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[s].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:s}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:s}}function d(e,t){t.restore()}function m(e,t){return function(n,i,s){var o;let u,p,d,m;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function h(e){return(u=e,p=0,0===e.length)?s:y(e[p])}function y(e){return function(n){return(m=function(){let e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,s=Array.from(a);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=s,g()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,x,b)(n)}}function x(t){return e(d,m),i}function b(e){return(m.restore(),++p<u.length)?y(u[p]):s}}}function h(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&ag(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(n).document().write((i=1,s="",o=!0,function(e,t,n){let a,l,c,u,p,f=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,s="",o&&(65279===e.charCodeAt(0)&&c++,o=void 0);c<e.length;){if(lk.lastIndex=c,u=(a=lk.exec(e))&&void 0!==a.index?a.index:e.length,p=e.charCodeAt(u),!a){s=e.slice(c);break}if(10===p&&c===u&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),c<u&&(f.push(e.slice(c,u)),i+=u-c),p){case 0:f.push(65533),i++;break;case 9:for(l=4*Math.ceil(i/4),f.push(-2);i++<l;)f.push(-1);break;case 10:f.push(-4),i=1;break;default:r=!0,i=1}c=u+1}return n&&(r&&f.push(-5),s&&f.push(s),f.push(null)),f})(e,t,!0))))}function lO(e){return{line:e.line,column:e.column,offset:e.offset}}function lF(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+lw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lw({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+lw({start:t.start,end:t.end})+") is still open")}const lP=new Set(["eol-last","unicode-bom"]),lI=new Map,lB=/^[>\s]*/u;function lL(e){return e.position.start.offset-e.position.start.column+1}function lN(e,t){return lB.exec(e.slice(lL(t)))[0]}const lj=/filename=(?<quote>["'])(?<filename>.*?)\1/u,lR={javascript:"js",ecmascript:"js",typescript:"ts",markdown:"md"};function lq(e,t){return{range:t.range.map(t=>{let n=1;for(;n<e.rangeMap.length&&e.rangeMap[n].js<=t;)n++;return t+e.rangeMap[n-1].md}),text:t.text.replace(/\n/gu,`
28
- ${e.baseIndentText}`)}}function lM(e){return e&&!lP.has(e.ruleId)}var lV={},l$={exports:{}},lU={exports:{}};function lY(){if(R)return j;R=1;var e,t,n,r,i,s,o,a,l={}.toString;function c(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return e=function(){if(D)return C;D=1;var e,t,n={}.toString;function r(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return e=r(function(e,t){return e.apply(null,t)}),t=r(function(e,t,n){return e(n,t)}),C={curry:function(e){return r(e)},flip:t,fix:function(e){var t;return t=function(t){return function(){return e(t(t)).apply(null,arguments)}},function(){return e(t(t)).apply(null,arguments)}},apply:e,over:r(function(e,t,n,r){return e(t(n),t(r))}),memoize:function(e){var t;return t={},function(){var r,i,s,o,a;for(i=0,r=[],s=arguments.length;i<s;++i)r.push(arguments[i]);return t[o=(function(){var e,t,i=[];for(e=0,t=r.length;e<t;++e)i.push((a=r[e])+n.call(a).slice(8,-1));return i})().join("")]=o in t?t[o]:e.apply(null,r)}}}}(),t=function(){if(O)return _;O=1;var e,t,n,r,i,s,o,a,l,c,u,p,f,d,m,h,g,y,x,b,T,k,S,E,w,v,A,C,D,F,P,I,B,L,N,j,R,q,M,V,$,U,Y,J,W,X,z,H,K,G,Q={}.toString;function Z(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}function ee(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}function et(e){return!e}return e=Z(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)e(t[n]);return t}),t=Z(function(e,t){var n,r,i=[];for(n=0,r=t.length;n<r;++n)i.push(e(t[n]));return i}),n=Z(function(e,t){var n,r,i,s=[];for(n=0,r=t.length;n<r;++n)e(i=t[n])&&s.push(i);return s}),r=Z(function(e,t){var n,r,i,s=[];for(n=0,r=t.length;n<r;++n)e(i=t[n])||s.push(i);return s}),i=Z(function(e,t){var n,r;return n=z(e,t),r=t.slice(),null!=n&&r.splice(n,1),r}),s=Z(function(e,t){var n,r,i,s,o;for(i=0,n=[],r=[],s=t.length;i<s;++i)(e(o=t[i])?n:r).push(o);return[n,r]}),o=Z(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(e(i=t[n]))return i}),a=l=function(e){return e[0]},c=Z(function(e,t){var n,r,i,s,o,a=[];for(r=0,n=[],i=t.length;r<i;++r)ee(o=e(s=t[r]),n)||(n.push(o),a.push(s));return a}),u=p=Z(function(e,t,n){var r,i;for(r=0,i=n.length;r<i;++r)t=e(t,n[r]);return t}),f=d=Z(function(e,t){return u(e,t[0],t.slice(1))}),m=Z(function(e,t,n){var r;for(r=n.length-1;r>=0;--r)t=e(n[r],t);return t}),h=Z(function(e,t){return m(e,t[t.length-1],t.slice(0,-1))}),g=Z(function(e,t){var n,r,i;for(n=[],r=t;null!=(i=e(r));)n.push(i[0]),r=i[1];return n}),y=Z(function(e,t){return[].concat.apply([],function(){var n,r,i=[];for(n=0,r=t.length;n<r;++n)i.push(e(t[n]));return i}())}),x=function(e){var t;return[].concat.apply([],function(){var n,r,i=[];for(n=0,r=e.length;n<r;++n)t=e[n],"Array"===Q.call(t).slice(8,-1)?i.push(x(t)):i.push(t);return i}())},b=Z(function(e,t){var n,r,i,s;for(r=0,n={},i=t.length;r<i;++r)(s=e(t[r]))in n?n[s]+=1:n[s]=1;return n}),T=Z(function(e,t){var n,r,i,s,o;for(r=0,n={},i=t.length;r<i;++r)(o=e(s=t[r]))in n?n[o].push(s):n[o]=[s];return n}),k=Z(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(e(t[n]))return!0;return!1}),S=Z(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}),E=Z(function(e,t){return t.concat().sort(e)}),w=Z(function(e,t){return t.concat().sort(function(t,n){return e(t)>e(n)?1:e(t)<e(n)?-1:0})}),v=A=function(e){var t,n,r;for(n=0,t=0,r=e.length;n<r;++n)t+=e[n];return t/e.length},C=Z(function(e,t){var n,r,i,s,o;for(r=0,n=t[0],s=(i=t.slice(1)).length;r<s;++r)e(o=i[r])>e(n)&&(n=o);return n}),D=Z(function(e,t){var n,r,i,s,o;for(r=0,n=t[0],s=(i=t.slice(1)).length;r<s;++r)e(o=i[r])<e(n)&&(n=o);return n}),F=P=Z(function(e,t,n){var r,i;return r=t,[t].concat(function(){var t,s,o=[];for(t=0,s=n.length;t<s;++t)i=n[t],o.push(r=e(r,i));return o}())}),I=B=Z(function(e,t){if(t.length)return F(e,t[0],t.slice(1))}),L=Z(function(e,t,n){return F(e,t,n=n.concat().reverse()).reverse()}),N=Z(function(e,t){if(t.length)return F(e,(t=t.concat().reverse())[0],t.slice(1)).reverse()}),j=Z(function(e,t,n){return n.slice(e,t)}),R=Z(function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)}),q=Z(function(e,t){return e<=0?t:t.slice(e)}),M=Z(function(e,t){return[R(e,t),q(e,t)]}),V=Z(function(e,t){var n,r;if(!(n=t.length))return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(0,r)}),$=Z(function(e,t){var n,r;if(!(n=t.length))return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(r)}),U=Z(function(e,t){return[V(e,t),$(e,t)]}),Y=Z(function(e,t){return U(function(){var e=arguments;return function(){var t,n;for(t=1,n=e[0].apply(this,arguments);t<e.length;++t)n=e[t](n);return n}}(e,et),t)}),J=Z(function(e,t){var n,r,i,s,o,a;for(i=0,n=[],r=t.length,s=e.length;i<s&&(o=i,a=e[i],o!==r);++i)n.push([a,t[o]]);return n}),W=Z(function(e,t,n){var r,i,s,o,a,l;for(s=0,r=[],i=n.length,o=t.length;s<o&&(a=s,l=t[s],a!==i);++s)r.push(e(l,n[a]));return r}),X=Z(function(e,t){return e<0?t[t.length+e]:t[e]}),z=Z(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=n,t[n]===e)return i}),H=Z(function(e,t){var n,r,i,s=[];for(n=0,r=t.length;n<r;++n)i=n,t[n]===e&&s.push(i);return s}),K=Z(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=n,e(t[n]))return i}),G=Z(function(e,t){var n,r,i,s=[];for(n=0,r=t.length;n<r;++n)i=n,e(t[n])&&s.push(i);return s}),_={each:e,map:t,filter:n,compact:function(e){var t,n,r,i=[];for(t=0,n=e.length;t<n;++t)(r=e[t])&&i.push(r);return i},reject:r,remove:i,partition:s,find:o,head:a,first:l,tail:function(e){if(e.length)return e.slice(1)},last:function(e){return e[e.length-1]},initial:function(e){if(e.length)return e.slice(0,-1)},empty:function(e){return!e.length},reverse:function(e){return e.concat().reverse()},difference:function(e){var t,n,r,i,s,o,a,l;for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);i=[];n:for(n=0,s=e.length;n<s;++n){for(a=0,o=e[n],l=t.length;a<l;++a)if(ee(o,t[a]))continue n;i.push(o)}return i},intersection:function(e){var t,n,r,i,s,o,a,l;for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);i=[];n:for(n=0,s=e.length;n<s;++n){for(a=0,o=e[n],l=t.length;a<l;++a)if(!ee(o,t[a]))continue n;i.push(o)}return i},union:function(){var e,t,n,r,i,s,o,a,l;for(t=0,e=[],n=arguments.length;t<n;++t)e.push(arguments[t]);for(t=0,r=[],i=e.length;t<i;++t)for(o=0,a=(s=e[t]).length;o<a;++o)ee(l=s[o],r)||r.push(l);return r},countBy:b,groupBy:T,fold:u,fold1:f,foldl:p,foldl1:d,foldr:m,foldr1:h,unfoldr:g,andList:function(e){var t,n;for(t=0,n=e.length;t<n;++t)if(!e[t])return!1;return!0},orList:function(e){var t,n;for(t=0,n=e.length;t<n;++t)if(e[t])return!0;return!1},any:k,all:S,unique:function(e){var t,n,r,i;for(n=0,t=[],r=e.length;n<r;++n)ee(i=e[n],t)||t.push(i);return t},uniqueBy:c,sort:function(e){return e.concat().sort(function(e,t){return e>t?1:e<t?-1:0})},sortWith:E,sortBy:w,sum:function(e){var t,n,r;for(n=0,t=0,r=e.length;n<r;++n)t+=e[n];return t},product:function(e){var t,n,r;for(n=0,t=1,r=e.length;n<r;++n)t*=e[n];return t},mean:v,average:A,concat:function(e){return[].concat.apply([],e)},concatMap:y,flatten:x,maximum:function(e){var t,n,r,i,s;for(n=0,t=e[0],i=(r=e.slice(1)).length;n<i;++n)(s=r[n])>t&&(t=s);return t},minimum:function(e){var t,n,r,i,s;for(n=0,t=e[0],i=(r=e.slice(1)).length;n<i;++n)(s=r[n])<t&&(t=s);return t},maximumBy:C,minimumBy:D,scan:F,scan1:I,scanl:P,scanl1:B,scanr:L,scanr1:N,slice:j,take:R,drop:q,splitAt:M,takeWhile:V,dropWhile:$,span:U,breakList:Y,zip:J,zipWith:W,zipAll:function(){var e,t,n,r,i,s,o,a,l,c,u=[];for(t=0,e=[],n=arguments.length;t<n;++t)e.push(arguments[t]);for(t=0,r=void 0,i=e.length;t<i;++t)r<=(o=(s=e[t]).length)||(r=o);for(t=0;t<r;++t){for(c=0,a=t,l=[],i=e.length;c<i;++c)s=e[c],l.push(s[a]);u.push(l)}return u},zipAllWith:function(e){var t,n,r,i,s,o,a,l,c=[];for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);for(n=0,i=void 0,s=t.length;n<s;++n)i<=(a=(o=t[n]).length)||(i=a);for(n=0;n<i;++n)l=n,c.push(e.apply(null,function(){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push((o=t[e])[l]);return r}()));return c},at:X,elemIndex:z,elemIndices:H,findIndex:K,findIndices:G}}(),n=function(){var e,t,n,r,i;if(P)return F;function s(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return P=1,e=s(function(e,t){var n,r,i,s={};for(n=0,r=e.length;n<r;++n)i=n,s[e[n]]=t[i];return s}),t=s(function(e,t){var n;for(n in t)e(t[n]);return t}),n=s(function(e,t){var n,r,i={};for(n in t)r=t[n],i[n]=e(r);return i}),r=s(function(e,t){var n,r,i={};for(n in t)e(r=t[n])&&(i[n]=r);return i}),i=s(function(e,t){var n,r,i={};for(n in t)e(r=t[n])||(i[n]=r);return i}),F={values:function(e){var t,n,r=[];for(t in e)n=e[t],r.push(n);return r},keys:function(e){var t,n=[];for(t in e)n.push(t);return n},pairsToObj:function(e){var t,n,r,i={};for(t=0,n=e.length;t<n;++t)i[(r=e[t])[0]]=r[1];return i},objToPairs:function(e){var t,n,r=[];for(t in e)n=e[t],r.push([t,n]);return r},listsToObj:e,objToLists:function(e){var t,n,r,i;for(r in t=[],n=[],e)i=e[r],t.push(r),n.push(i);return[t,n]},empty:function(e){var t;for(t in e)return!1;return!0},each:t,map:n,filter:r,compact:function(e){var t,n,r={};for(t in e)(n=e[t])&&(r[t]=n);return r},reject:i,partition:s(function(e,t){var n,r,i,s;for(i in n={},r={},t)(e(s=t[i])?n:r)[i]=s;return[n,r]}),find:s(function(e,t){var n,r;for(n in t)if(e(r=t[n]))return r})}}(),r=function(){var e;if(B)return I;function t(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return B=1,e=t(function(e,t){return t.split(e)}),I={split:e,join:t(function(e,t){return t.join(e)}),lines:function(e){return e.length?e.split("\n"):[]},unlines:function(e){return e.join("\n")},words:function(e){return e.length?e.split(/[ ]+/):[]},unwords:function(e){return e.join(" ")},chars:function(e){return e.split("")},unchars:function(e){return e.join("")},reverse:function(e){return e.split("").reverse().join("")},repeat:t(function(e,t){var n,r;for(r=0,n="";r<e;++r)n+=t;return n}),capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return e.replace(/[-_]+(.)?/g,function(e,t){return(null!=t?t:"").toUpperCase()})},dasherize:function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,function(e,t,n){return t+"-"+(n.length>1?n:n.toLowerCase())}).replace(/^([A-Z]+)/,function(e,t){return t.length>1?t+"-":t.toLowerCase()})}}}(),i=function(){var e,t,n,r,i,s,o,a,l,c,u,p,f,d,m,h,g,y,x,b,T,k,S,E;if(N)return L;function w(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return N=1,e=w(function(e,t){return e>t?e:t}),t=w(function(e,t){return e<t?e:t}),n=Math.abs,r=w(function(e,t){return~~(e/t)}),i=w(function(e,t){return e%t}),s=w(function(e,t){return Math.floor(e/t)}),o=w(function(e,t){return(e%t+t)%t}),a=Math.PI,l=Math.exp,c=Math.sqrt,u=Math.log,p=w(function(e,t){return Math.pow(e,t)}),f=Math.sin,d=Math.tan,m=Math.cos,h=Math.asin,g=Math.acos,y=Math.atan,x=w(function(e,t){return Math.atan2(e,t)}),b=Math.round,T=Math.ceil,k=Math.floor,S=w(function(e,t){var n;for(e=Math.abs(e),t=Math.abs(t);0!==t;)n=e%t,e=t,t=n;return e}),E=w(function(e,t){return Math.abs(Math.floor(e/S(e,t)*t))}),L={max:e,min:t,negate:function(e){return-e},abs:n,signum:function(e){return e<0?-1:+(e>0)},quot:r,rem:i,div:s,mod:o,recip:function(e){return 1/e},pi:a,tau:2*a,exp:l,sqrt:c,ln:u,pow:p,sin:f,tan:d,cos:m,acos:g,asin:h,atan:y,atan2:x,truncate:function(e){return~~e},round:b,ceiling:T,floor:k,isItNaN:function(e){return e!=e},even:function(e){return e%2==0},odd:function(e){return e%2!=0},gcd:S,lcm:E}}(),s=c(function(e,t){return l.call(t).slice(8,-1)===e}),o=c(function(e,t){var n,r=[];for(n=0;n<e;++n)r.push(t);return r}),r.empty=t.empty,r.slice=t.slice,r.take=t.take,r.drop=t.drop,r.splitAt=t.splitAt,r.takeWhile=t.takeWhile,r.dropWhile=t.dropWhile,r.span=t.span,r.breakStr=t.breakList,(a={Func:e,List:t,Obj:n,Str:r,Num:i,id:function(e){return e},isType:s,replicate:o}).each=t.each,a.map=t.map,a.filter=t.filter,a.compact=t.compact,a.reject=t.reject,a.partition=t.partition,a.find=t.find,a.head=t.head,a.first=t.first,a.tail=t.tail,a.last=t.last,a.initial=t.initial,a.empty=t.empty,a.reverse=t.reverse,a.difference=t.difference,a.intersection=t.intersection,a.union=t.union,a.countBy=t.countBy,a.groupBy=t.groupBy,a.fold=t.fold,a.foldl=t.foldl,a.fold1=t.fold1,a.foldl1=t.foldl1,a.foldr=t.foldr,a.foldr1=t.foldr1,a.unfoldr=t.unfoldr,a.andList=t.andList,a.orList=t.orList,a.any=t.any,a.all=t.all,a.unique=t.unique,a.uniqueBy=t.uniqueBy,a.sort=t.sort,a.sortWith=t.sortWith,a.sortBy=t.sortBy,a.sum=t.sum,a.product=t.product,a.mean=t.mean,a.average=t.average,a.concat=t.concat,a.concatMap=t.concatMap,a.flatten=t.flatten,a.maximum=t.maximum,a.minimum=t.minimum,a.maximumBy=t.maximumBy,a.minimumBy=t.minimumBy,a.scan=t.scan,a.scanl=t.scanl,a.scan1=t.scan1,a.scanl1=t.scanl1,a.scanr=t.scanr,a.scanr1=t.scanr1,a.slice=t.slice,a.take=t.take,a.drop=t.drop,a.splitAt=t.splitAt,a.takeWhile=t.takeWhile,a.dropWhile=t.dropWhile,a.span=t.span,a.breakList=t.breakList,a.zip=t.zip,a.zipWith=t.zipWith,a.zipAll=t.zipAll,a.zipAllWith=t.zipAllWith,a.at=t.at,a.elemIndex=t.elemIndex,a.elemIndices=t.elemIndices,a.findIndex=t.findIndex,a.findIndices=t.findIndices,a.apply=e.apply,a.curry=e.curry,a.flip=e.flip,a.fix=e.fix,a.over=e.over,a.split=r.split,a.join=r.join,a.lines=r.lines,a.unlines=r.unlines,a.words=r.words,a.unwords=r.unwords,a.chars=r.chars,a.unchars=r.unchars,a.repeat=r.repeat,a.capitalize=r.capitalize,a.camelize=r.camelize,a.dasherize=r.dasherize,a.values=n.values,a.keys=n.keys,a.pairsToObj=n.pairsToObj,a.objToPairs=n.objToPairs,a.listsToObj=n.listsToObj,a.objToLists=n.objToLists,a.max=i.max,a.min=i.min,a.negate=i.negate,a.abs=i.abs,a.signum=i.signum,a.quot=i.quot,a.rem=i.rem,a.div=i.div,a.mod=i.mod,a.recip=i.recip,a.pi=i.pi,a.tau=i.tau,a.exp=i.exp,a.sqrt=i.sqrt,a.ln=i.ln,a.pow=i.pow,a.sin=i.sin,a.tan=i.tan,a.cos=i.cos,a.acos=i.acos,a.asin=i.asin,a.atan=i.atan,a.atan2=i.atan2,a.truncate=i.truncate,a.round=i.round,a.ceiling=i.ceiling,a.floor=i.floor,a.isItNaN=i.isItNaN,a.even=i.even,a.odd=i.odd,a.gcd=i.gcd,a.lcm=i.lcm,a.VERSION="1.2.1",j=a}var lJ=lU.exports,lW={exports:{}},lX={exports:{}},lz={exports:{}},lH=lz.exports,lK={exports:{}},lG=lK.exports,lQ=lX.exports;function lZ(){return $||($=1,(function(){var e,t;M||(M=1,(function(){var e,t;function n(e){var t;if(null==(t=e[0]))throw Error("Unexpected end of input.");return t}function r(t){var r;if(r=n(t),!e.test(r))throw Error("Expected text, got '"+r+"' instead.");return t.shift()}function i(e,t){var r;if((r=n(e))!==t)throw Error("Expected '"+t+"', got '"+r+"' instead.");return e.shift()}function s(e,t){return e[0]===t?e.shift():null}function o(e){var t,o;switch(e[0]){case"[":if(i(e,"["),"]"===n(e))throw Error("Must specify type of Array - eg. [Type], got [] instead.");return t=a(e),i(e,"]"),{structure:"array",of:t};case"(":if(o=[],i(e,"("),")"===n(e))throw Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;o.push(a(e)),s(e,","),")"!==n(e););return i(e,")"),{structure:"tuple",of:o};case"{":return function(e){var t,o,l,c,u;for(t={},i(e,"{"),o=!1;;){if(s(e,"...")){o=!0;break}if(c=(l=function(e){var t;return t=r(e),i(e,":"),[t,a(e)]}(e))[0],u=l[1],t[c]=u,s(e,","),"}"===n(e))break}return i(e,"}"),{structure:"fields",of:t,subset:o}}(e)}}function a(t){var a,l,c,u,p,f;if("::"===n(t))throw Error("No comment before comment separator '::' found.");for(null!=(a=t[1])&&"::"===a&&(t.shift(),t.shift()),l=[],c={},"Maybe"===n(t)&&(t.shift(),l=[{type:"Undefined"},{type:"Null"}],c={Undefined:!0,Null:!0});p=(u=function(t){var s,a,l,c;if((a="*"===(s=n(t)))||e.test(s))return(l=a?i(t,"*"):r(t),c=o(t))?(c.type=l,c):{type:l};if(!(c=o(t)))throw Error("Unexpected character: "+s);return c}(t)).type,f=u.structure,c[p]||l.push(u),null==f&&(c[p]=!0),s(t,"|"););return l}t=RegExp("\\.\\.\\.|::|->|"+(e=/[\$\w]+/).source+"|\\S","g"),lz.exports=function(e){var n;if(!e.length)throw Error("No type specified.");if(function(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if("->"===t[n])return!0;return!1}("->",n=e.match(t)||[]))throw Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return a(n)}catch(t){throw Error(t.message+" - Remaining tokens: "+JSON.stringify(n)+" - Initial input: '"+e+"'")}}}).call(lH)),e=lz.exports,V||(V=1,(function(){var e,t,n,r,i,s,o={}.toString;function a(e,t,r){if(!(e instanceof Object))return!1;switch(t.structure){case"fields":return function(e,t,n){var r,i,s,o,a,c,u;for(s in r={},i=0,e)r[s]=!0,i++;for(a in o=0,c=t.of){if(u=c[a],!l(e[a],u,n))return!1;r[a]&&o++}return t.subset||i===o}(e,t,r);case"array":return n(function(e){return l(e,t.of,r)},e);case"tuple":return function(e,t,n){var r,i,s,o,a;for(i=0,r=0,o=(s=t.of).length;i<o;++i){if(a=s[i],!l(e[r],a,n))return!1;r++}return e.length<=r}(e,t,r)}}function l(e,n,r){if("Array"!==o.call(n).slice(8,-1))throw Error("Types must be in an array. Input: "+e+".");return t(function(t){var n,l,c,u;if(n=t.type,l=t.structure,n)return"*"===n||((c=r.customTypes[n]||i[n])?(void 0===c.typeOf||c.typeOf===o.call(e).slice(8,-1))&&c.validate(e):n===o.call(e).slice(8,-1)&&(!l||a(e,t,r)));if(l)return(!(u=s[l])||u===o.call(e).slice(8,-1))&&a(e,t,r);throw Error("No type defined. Input: "+e+".")},n)}t=(e=lY()).any,n=e.all,i={Number:{typeOf:"Number",validate:function(e){return!r(e)}},NaN:{typeOf:"Number",validate:r=e.isItNaN},Int:{typeOf:"Number",validate:function(e){return!r(e)&&e%1==0}},Float:{typeOf:"Number",validate:function(e){return!r(e)}},Date:{typeOf:"Date",validate:function(e){return!r(e.getTime())}}},s={array:"Array",tuple:"Array"},lK.exports=function(e,t,n){return null==n&&(n={}),null==n.customTypes&&(n.customTypes={}),l(t,e,n)}}).call(lG)),lX.exports={VERSION:"0.4.0",typeCheck:function(n,r,i){return t(e(n),r,i)},parsedTypeCheck:t=lK.exports,parseType:e}}).call(lQ)),lX.exports}var l0=lW.exports,l1=l$.exports,l2=function(){if(J)return lV;J=1;var e=(Y||(Y=1,(function(){var e,t,n,r;q||(q=1,(function(){var e,t,n;function r(e,t){if(e[0]===t)return e.shift();throw Error("Expected '"+t+"', but got '"+e[0]+"' instead in "+JSON.stringify(e)+".")}function i(e,t){if(e[0]===t)return e.shift()}function s(e,t,n){var s,o,a,l;for(s=t[0],o=t[1],n&&r(e,s),a=[],l=","+(n?o:"");e.length&&n&&e[0]!==o;)a.push(u(e,l)),i(e,",");return n&&r(e,o),a}function o(e,t){return s(e,["[","]"],t)}function a(e,t){return s(e,["(",")"],t)}function l(e,t){var n,s,o;for(t&&r(e,"{"),n={},s=","+(t?"}":"");e.length&&(!t||"}"!==e[0]);)o=c(e,":"),r(e,":"),n[o]=u(e,s),i(e,",");return t&&r(e,"}"),n}function c(e,t){var n;for(null==t&&(t=""),n="";e.length&&-1===t.indexOf(e[0]);)n+=e.shift();return n}function u(e,t){switch(e[0]){case"[":return o(e,!0);case"(":return a(e,!0);case"{":return l(e,!0);default:return c(e,t)}}function p(e){return!e}e=lY().reject,n=RegExp("(\"(?:\\\\\"|[^\"])*\")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|(["+(t=/\[\]\(\)}{:,/.source)+"])|([^\\s"+t+"](?:\\s*[^\\s"+t+"]+)*)|\\s*"),lU.exports=function(t,r,i){var s,c,f,d,m,h,g,y,x;if(null==i&&(i={}),!i.explicit&&1===t.length&&"String"===t[0].type)return r;if(c=e(p,r.split(n)),f=i,m=(d=t[0]).type,h=d.structure,g=c.concat(),f.explicit||1!==t.length||(m||!h)&&"Array"!==m&&"Object"!==m?x=u(c):(y="array"===h||"Array"===m?o(c,"["===c[0]):"tuple"===h?a(c,"("===c[0]):l(c,"{"===c[0]),x=c.length?u(("array"===h||"Array"===m?(g.unshift("["),g.push("]")):(g.unshift("("),g.push(")")),g)):y),!(s=x))throw Error("Error parsing '"+r+"'.");return s}}).call(lJ)),e=lU.exports,U||(U=1,(function(){var e,t,n={}.toString;function r(e,t,r){var i;return"Array"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(i=t.of,{type:"Just",value:function(){var t,n,s=[];for(t=0,n=e.length;t<n;++t)s.push(o(e[t],i,r));return s}()})}function i(e,t,r){var i,s,a;return"Object"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(i=t.of,{type:"Just",value:function(){var t,n={};for(s in t=e)a=t[s],n[o(s,[{type:"String"}],r)]=o(a,i[s]||[{type:"*"}],r);return n}()})}function s(e,s,a){var l,c,u,p;if(l=s.type,c=s.structure,l){if(!(u=(null!=(p=a.customTypes[l])?p.cast:void 0)||t[l]))throw Error("Type not defined: "+l+".");return u(e,a,o)}switch(c){case"array":return r(e,s,a);case"tuple":return function(e,t,r){var i,s,a,l,c,u,p;if("Array"!==n.call(e).slice(8,-1))return{type:"Nothing"};for(a=0,i=[],s=0,c=(l=t.of).length;a<c;++a)u=l[a],p=o(e[s],u,r),"Undefined"!==n.call(p).slice(8,-1)&&i.push(p),s++;return e.length<=s?{type:"Just",value:i}:{type:"Nothing"}}(e,s,a);case"fields":return i(e,s,a)}}function o(t,n,r){var i,o,a,l,c,u;for(i=0,o=n.length;i<o;++i)if(c=(l=s(t,a=n[i],r)).type,u=l.value,"Nothing"!==c&&e([a],u,{customTypes:r.customTypes}))return u;throw Error("Value "+JSON.stringify(t)+" does not type check against "+JSON.stringify(n)+".")}e=lZ().parsedTypeCheck,t={"*":function(e,t){switch(n.call(e).slice(8,-1)){case"Array":return s(e,{type:"Array"},t);case"Object":return s(e,{type:"Object"},t);default:return{type:"Just",value:o(e,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(t.explicit=!0,t))}}},Undefined:function(e){return"undefined"===e||void 0===e?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(e){return"null"===e?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(e){return"NaN"===e?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(e){return"true"===e?{type:"Just",value:!0}:"false"===e?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(e){return{type:"Just",value:+e}},Int:function(e){return{type:"Just",value:+e}},Float:function(e){return{type:"Just",value:+e}},Date:function(e,t){var n;return(n=/^\#([\s\S]*)\#$/.exec(e))?{type:"Just",value:new Date(+n[1]||n[1])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+e||e)}},RegExp:function(e,t){var n;return(n=/^\/([\s\S]*)\/([gimy]*)$/.exec(e))?{type:"Just",value:new RegExp(n[1],n[2])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(e)}},Array:function(e,t){return r(e,{of:[{type:"*"}]},t)},Object:function(e,t){return i(e,{of:{}},t)},String:function(e){var t,r;return"String"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(t=function(e,t){return e.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(e,n){switch(n[0]){case t:return t;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+e+'"');default:return n}})},r=e.match(/^'([\s\S]*)'$/))?{type:"Just",value:t(r[1],"'")}:(r=e.match(/^"([\s\S]*)"$/))?{type:"Just",value:t(r[1],'"')}:{type:"Just",value:e}}},lW.exports=function(e,t,n){return n.explicit||1!==t.length||"String"!==t[0].type?o(e,t,n):e}}).call(l0)),t=lW.exports,n=lZ().parseType,l$.exports={VERSION:"0.4.1",parse:function(e,t,i){return r(n(e),t,i)},parsedTypeParse:r=function(n,r,i){return null==i&&(i={}),null==i.explicit&&(i.explicit=!1),null==i.customTypes&&(i.customTypes={}),t(e(n,r,i),n,i)}}}).call(l1)),l$.exports);let t=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function r(e){let t=Array.isArray(e)?e[0]:e;return n.has(t)}class i{label="";value="";justification="";constructor(e,t,n){this.label=e,this.value=t,this.justification=n}}return lV.CallMethodStep=class{type="call";kind=2;target;args;constructor({target:e,args:t}){this.target=e,this.args=t}},lV.ConfigCommentParser=class{parseStringConfig(e){let t={};return e.trim().replace(/(?<!\s)\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach(e=>{if(!e)return;let[n,r=null]=e.split(":");t[n]=r}),t}parseJSONLikeConfig(t){try{let n=e.parse("Object",t)||{};if(Object.values(n).every(r))return{ok:!0,config:n}}catch{}let n=t.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{let e=JSON.parse(`{${n}}`);return{ok:!0,config:e}}catch(t){let e=t instanceof Error?t.message:String(t);return{ok:!1,error:{message:`Failed to parse JSON from '${n}': ${e}`}}}}parseListConfig(e){let t={};return e.split(",").forEach(e=>{let n=e.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");n&&(t[n]=!0)}),t}#e(e){let t=/\s-{2,}\s/u.exec(e);return t?{directivePart:e.slice(0,t.index).trim(),justificationPart:e.slice(t.index+t[0].length).trim()}:{directivePart:e.trim(),justificationPart:""}}parseDirective(e){let{directivePart:n,justificationPart:r}=this.#e(e),s=t.exec(n);if(!s)return;let o=s[1],a=n.slice(s.index+o.length);return new i(o,a.trim(),r)}},lV.Directive=class{type;node;value;justification;constructor({type:e,node:t,value:n,justification:r}){this.type=e,this.node=t,this.value=n,this.justification=r}},lV.TextSourceCodeBase=class{#t;ast;text;constructor({text:e,ast:t,lineEndingPattern:n=/\r?\n/u}){this.ast=t,this.text=e,this.#t=e.split(n)}getLoc(e){if("loc"in e)return e.loc;if("position"in e)return e.position;throw Error("Custom getLoc() method must be implemented in the subclass.")}getRange(e){if("range"in e)return e.range;if("position"in e)return[e.position.start.offset,e.position.end.offset];throw Error("Custom getRange() method must be implemented in the subclass.")}getParent(e){throw Error("Not implemented.")}getAncestors(e){if(!e)throw TypeError("Missing required argument: node.");let t=[];for(let n=this.getParent(e);n;n=this.getParent(n))t.push(n);return t.reverse()}getText(e,t,n){if(e){let r=this.getRange(e);return this.text.slice(Math.max(r[0]-(t||0),0),r[1]+(n||0))}return this.text}get lines(){return this.#t}traverse(){throw Error("Not implemented.")}},lV.VisitNodeStep=class{type="visit";kind=1;target;phase;args;constructor({target:e,phase:t,args:n}){this.target=e,this.phase=t,this.args=n}},lV}();const l3=/\]\[\s+\]$/u,l4=/<!--[\s\S]*?-->/gu;function l5(e,t){let n=0,r=0;for(let i=0;i<t;i++)"\n"===e[i]?(n++,r=0):r++;return{lineOffset:n,columnOffset:r}}function l6(e,t){if(!t)return!1;for(let n of e.split("\n"))if(t.test(n))return!0;return!1}function l9(e){return e.replace(l4,e=>e.replace(/[^\n]/gu," "))}const l8=new l2.ConfigCommentParser,l7=/<!--\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|-->)/u,ce=/<!--(.*?)-->/gsu;class ct{value;position;constructor({value:e,position:t}){this.value=e.trim(),this.position=t}}function cn(e){let t;if(!l7.test(e.value))return[];let n=[];for(;t=ce.exec(e.value);)if(l7.test(t[0])){let r=t[0],i={...e.position.start},s={...e.position.start},{lineOffset:o,columnOffset:a}=l5(e.value,t.index);i.line+=o,i.column+=a,i.offset+=t.index;let l=r.split("\n").length-1;s.line=i.line+l,s.column=0===l?i.column+r.length:r.length-r.lastIndexOf("\n"),s.offset=i.offset+r.length,n.push(new ct({value:t[1].trim(),position:{start:i,end:s}}))}return n}class cr extends l2.TextSourceCodeBase{#n;#r=new WeakMap;#i=[];#s;ast=void 0;constructor({text:e,ast:t}){super({ast:t,text:e}),this.ast=t,this.traverse()}getParent(e){return this.#r.get(e)}getInlineConfigNodes(){return this.#s||(this.#s=this.#i.flatMap(cn)),this.#s}getDisableDirectives(){let e=[],t=[];return this.getInlineConfigNodes().forEach(n=>{let{label:r,value:i,justification:s}=l8.parseDirective(n.value);if("eslint-disable-line"===r&&n.position.start.line!==n.position.end.line){let t=`${r} comment should not span multiple lines.`;e.push({ruleId:null,message:t,loc:n.position});return}switch(r){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let e=r.slice(7);t.push(new l2.Directive({type:e,node:n,value:i,justification:s}))}}}),{problems:e,directives:t}}applyInlineConfig(){let e=[],t=[];return this.getInlineConfigNodes().forEach(n=>{let{label:r,value:i}=l8.parseDirective(n.value);if("eslint"===r){let r=l8.parseJSONLikeConfig(i);r.ok?t.push({config:{rules:r.config},loc:n.position}):e.push({ruleId:null,message:r.error.message,loc:n.position})}}),{configs:t,problems:e}}traverse(){if(this.#n)return this.#n.values();let e=this.#n=[],t=(n,r)=>{this.#r.set(n,r),e.push(new l2.VisitNodeStep({target:n,phase:1,args:[n,r]})),"html"===n.type&&this.#i.push(n),n.children&&n.children.forEach(e=>{t(e,n)}),e.push(new l2.VisitNodeStep({target:n,phase:2,args:[n,r]}))};return t(this.ast),e.values()}}var ci={exports:{}},cs=function(){var e;if(W)return ci.exports;function t(e){for(var t,n,r,i,s=1,o=[].slice.call(arguments),a=0,l=e.length,c="",u=!1,p=!1,f=function(){return o[s++]};a<l;++a)if(t=e[a],u)switch(u=!1,"."==t?(p=!1,t=e[++a]):"0"==t&&"."==e[a+1]?(p=!0,a+=2,t=e[a]):p=!0,i=function(){for(var n="";/\d/.test(e[a]);)n+=e[a++],t=e[a];return n.length>0?parseInt(n):null}(),t){case"b":c+=parseInt(f(),10).toString(2);break;case"c":"string"==typeof(n=f())||n instanceof String?c+=n:c+=String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(f(),10);break;case"f":r=String(parseFloat(f()).toFixed(i||6)),c+=p?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(f());break;case"o":c+="0"+parseInt(f(),10).toString(8);break;case"s":c+=f();break;case"x":c+="0x"+parseInt(f(),10).toString(16);break;case"X":c+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?u=!0:c+=t;return c}return W=1,(e=ci.exports=t).format=t,e.vsprintf=function(e,n){return t.apply(null,[e].concat(n))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))}),ci.exports}(),co=G.a(cs);const ca=Object.assign(cl(Error),{eval:cl(EvalError),range:cl(RangeError),reference:cl(ReferenceError),syntax:cl(SyntaxError),type:cl(TypeError),uri:cl(URIError)});function cl(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){return new e(n?co(n,...r):n)}}const cc={}.hasOwnProperty,cu={yaml:"-",toml:"+"};function cp(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=function(e){let t=e;if("string"==typeof t){if(!cc.call(cu,t))throw ca("Missing matter definition for `%s`",t);t={type:t,marker:cu[t]}}else if("object"!=typeof t)throw ca("Expected matter to be an object, not `%j`",t);if(!cc.call(t,"type"))throw ca("Missing `type` in matter `%j`",t);if(!cc.call(t,"fence")&&!cc.call(t,"marker"))throw ca("Missing `marker` or `fence` in matter `%j`",t);return t}(r[n]);return t}function cf(e){let t=cp(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=cd(e,"open").charCodeAt(0),s=function(e){let t,n=e.anywhere,r=e.type,i=r+"Fence",s=i+"Sequence",o=r+"Value",a={tokenize:function(e,n,r){let o=0;return function(n){return n===t.charCodeAt(o)?(e.enter(i),e.enter(s),function n(i){return o===t.length?(e.exit(s),aF(i))?(e.enter("whitespace"),function t(n){return aF(n)?(e.consume(n),t):(e.exit("whitespace"),a(n))}(i)):a(i):i===t.charCodeAt(o++)?(e.consume(i),n):r(i)}(n)):r(n)};function a(t){return null===t||a_(t)?(e.exit(i),n(t)):r(t)}},partial:!0},l=0;return{tokenize:function(c,u,p){let f=this;return function(o){let a=f.now();return 1===a.column&&(1===a.line||n)&&(t=cd(e,"open"),l=0,o===t.charCodeAt(l))?(c.enter(r),c.enter(i),c.enter(s),function e(n){return l===t.length?(c.exit(s),aF(n))?(c.enter("whitespace"),function e(t){return aF(t)?(c.consume(t),e):(c.exit("whitespace"),d(t))}(n)):d(n):n===t.charCodeAt(l++)?(c.consume(n),e):p(n)}(o)):p(o)};function d(n){return a_(n)?(c.exit(i),c.enter("lineEnding"),c.consume(n),c.exit("lineEnding"),t=cd(e,"close"),l=0,c.attempt(a,g,m)):p(n)}function m(e){return null===e||a_(e)?h(e):(c.enter(o),function e(t){return null===t||a_(t)?(c.exit(o),h(t)):(c.consume(t),e)}(e))}function h(e){return null===e?p(e):(c.enter("lineEnding"),c.consume(e),c.exit("lineEnding"),c.attempt(a,g,m))}function g(e){return c.exit(r),u(e)}},concrete:!0}}(e),o=n[i];Array.isArray(o)?o.push(s):n[i]=[s]}return{flow:n}}function cd(e,t){return e.marker?cm(e.marker,t).repeat(3):cm(e.fence,t)}function cm(e,t){return"string"==typeof e?e:e[t]}function ch(e){let t=cp(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=function(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}(e),r[e.type]=cg,r[e.type+"Value"]=cy}return{enter:n,exit:r}}function cg(e){let t=this.resume(),n=this.stack[this.stack.length-1];this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function cy(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function cx(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const cb=function(e){var t,n;if(null==e)return ck;if("function"==typeof e)return cT(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=cb(e[n]);return cT(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,cT(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,cT(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function cT(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ck(){return!0}const cS=[];function cE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cw(e){this.config.enter.autolinkProtocol.call(this,e)}function cv(e){this.config.exit.autolinkProtocol.call(this,e)}function cA(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function cC(e){this.config.exit.autolinkEmail.call(this,e)}function cD(e){this.exit(e)}function c_(e){!function(e,t,n){let r=cb((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),s=-1;for(;++s<i.length;)!function(e,t,n,r){let i=cb(t);(function e(t,r,s){let o=t&&"object"==typeof t?t:{};if("string"==typeof o.type){let e="string"==typeof o.tagName?o.tagName:"string"==typeof o.name?o.name:void 0;Object.defineProperty(a,"name",{value:"node (\x1b[33m"+t.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return a;function a(){var o;let a,l,c,u=cS;if(i(t,r,s[s.length-1]||void 0)&&!1===(u=Array.isArray(o=n(t,s))?o:"number"==typeof o?[!0,o]:null==o?cS:[o])[0])return u;if("children"in t&&t.children&&t.children&&"skip"!==u[0])for(l=0,c=s.concat(t);l>-1&&l<t.children.length;){if(!1===(a=e(t.children[l],l,c)())[0])return a;l="number"==typeof a[1]?a[1]:l+1}return u}})(e,void 0,[])()}(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[s][0],o=i[s][1],a=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){let n=p.index,i={index:p.index,input:p.input,stack:[...t,e]},s=o(...p,i);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),a=n+p[0].length,c=!0),!r.global)break;p=r.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cO],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,cF]],{ignore:["link","linkReference"]})}function cO(e,t,n,r,i){let s="";if(!cP(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=cx(e,"("),s=cx(e,")");for(;-1!==r&&i>s;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),s++;return[e,n]}(n+r);if(!o[0])return!1;let a={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function cF(e,t,n,r){return!(!cP(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function cP(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||aI(n)||aP(n))&&(!t||47!==n)}function cI(){this.buffer()}function cB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function cL(){this.buffer()}function cN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function cj(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ak(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cR(e){this.exit(e)}function cq(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ak(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cM(e){this.exit(e)}function cV(e){this.enter({type:"delete",children:[]},e)}function c$(e){this.exit(e)}function cU(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function cY(e){this.exit(e),this.data.inTable=void 0}function cJ(e){this.enter({type:"tableRow",children:[]},e)}function cW(e){this.exit(e)}function cX(e){this.enter({type:"tableCell",children:[]},e)}function cz(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cH));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cH(e,t){return"|"===t?t:e}function cK(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function cG(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,s=-1;for(;++s<i.length;){let e=i[s];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}const cQ={tokenize:function(e,t,n){let r=0;return function t(s){return(87===s||119===s)&&r<3?(r++,e.consume(s),t):46===s&&3===r?(e.consume(s),i):n(s)};function i(e){return null===e?n(e):t(e)}},partial:!0},cZ={tokenize:function(e,t,n){let r,i,s;return o;function o(t){return 46===t||95===t?e.check(c1,l,a)(t):null===t||aO(t)||aI(t)||45!==t&&aP(t)?l(t):(s=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!s?n(e):t(e)}},partial:!0},c0={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?s(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(c1,t,s)(o):null===o||aO(o)||aI(o)?t(o):(e.consume(o),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},c1={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),s):93===o?(e.consume(o),i):60===o||null===o||aO(o)||aI(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||aO(e)||aI(e)?t(e):r(e)}function s(t){return aS(t)?function t(i){return 59===i?(e.consume(i),r):aS(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},c2={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return aE(e)?n(e):t(e)}},partial:!0},c3={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!c8.call(r,r.previous)||un(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(cQ,e.attempt(cZ,e.attempt(c0,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:c8},c4={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",s=!1;return function(t){return(72===t||104===t)&&c7.call(r,r.previous)&&!un(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(aS(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),s)?l:(s=!0,a):n(t)}function l(t){return null===t||av(t)||aO(t)||aI(t)||aP(t)?n(t):e.attempt(cZ,e.attempt(c0,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:c7},c5={name:"emailAutolink",tokenize:function(e,t,n){let r,i,s=this;return function(t){return!ut(t)||!ue.call(s,s.previous)||un(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ut(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(c2,l,a)(t):45===t||95===t||aE(t)?(i=!0,e.consume(t),o):l(t)}function a(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&aS(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:ue},c6={};let c9=48;for(;c9<123;)c6[c9]=c5,58==++c9?c9=65:91===c9&&(c9=97);function c8(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||aO(e)}function c7(e){return!aS(e)}function ue(e){return!(47===e||ut(e))}function ut(e){return 43===e||45===e||46===e||95===e||aE(e)}function un(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}c6[43]=c5,c6[45]=c5,c6[46]=c5,c6[95]=c5,c6[72]=[c5,c4],c6[104]=[c5,c4],c6[87]=[c5,c3],c6[119]=[c5,c3];const ur={tokenize:function(e,t,n){let r=this;return aL(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ui(e,t,n){let r,i=this,s=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;s--;){let e=i.events[s][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(s){if(!r||!r._balanced)return n(s);let a=ak(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s)):n(s)}}function us(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function uo(e,t,n){let r,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(o>999||93===a&&!r||null===a||91===a||aO(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes(ak(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return aO(a)||(r=!0),o++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function ua(e,t,n){let r,i,s=this,o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!i||null===t||91===t||aO(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=ak(s.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return aO(t)||(i=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),aL(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ul(e,t,n){return e.check(aU,t,e.attempt(ur,t,n))}function uc(e){e.exit("gfmFootnoteDefinition")}class uu{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function up(e,t,n){let r,i=this,s=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,s="tableHead"===r||"tableRow"===r?x:a;return s===x&&i.parser.lazy[i.now().line]?n(e):s(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):a_(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):aF(t)?aL(e,l,"whitespace")(t):(o+=1,r&&(r=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||aO(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,aF(t))?aL(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return aF(t)?aL(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(o+=1,h(t)):null===t||a_(t)?y(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return aF(t)?aL(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return f(i);if(null===i||a_(i))return r&&s===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function x(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||a_(n)?(e.exit("tableRow"),t(n)):aF(n)?aL(e,b,"whitespace")(n):(e.enter("data"),T(n))}function T(t){return null===t||124===t||aO(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:T)}function k(t){return 92===t||124===t?(e.consume(t),T):T(t)}}function uf(e,t){let n,r,i,s=-1,o=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0,f=new uu;for(;++s<e.length;){let d=e[s],m=d[1];"enter"===d[0]?"tableHead"===m.type?(u=!1,0!==p&&(um(f,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(s,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,s+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(s,0,[["enter",r,t]])),a="tableDelimiterRow"===m.type?2:r?3:1):a&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)?(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=ud(f,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=s)):"tableCellDivider"===m.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=ud(f,t,l,a,void 0,i)),c=[(l=c)[1],s,0,0])):"tableHead"===m.type?(u=!0,p=s):"tableRow"===m.type||"tableDelimiterRow"===m.type?(p=s,0!==l[1]?(c[0]=c[1],i=ud(f,t,l,a,s,i)):0!==c[1]&&(i=ud(f,t,c,a,s,i)),a=0):a&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)&&(c[3]=s)}for(0!==p&&um(f,t,p,n,r),f.consume(t.events),s=-1;++s<t.events.length;){let e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,s))}return e}function ud(e,t,n,r,i,s){0!==n[0]&&(s.end=Object.assign({},uh(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let o=uh(t.events,n[1]);if(s={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){let i=uh(t.events,n[2]),s=uh(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(s.end=Object.assign({},uh(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function um(e,t,n,r,i){let s=[],o=uh(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function uh(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const ug={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return aO(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return a_(r)?t(r):aF(r)?e.check({tokenize:uy},t,n)(r):n(r)}}};function uy(e,t,n){return aL(e,function(e){return null===e?n(e):t(e)},"whitespace")}const ux={type:"json",marker:"-"};class ub{fileType="text";lineStart=1;columnStart=1;nodeTypeKey="type";defaultLanguageOptions={frontmatter:!1};#o="commonmark";constructor({mode:e}={}){e&&(this.#o=e)}validateLanguageOptions(e){let t=e?.frontmatter,n=new Set([!1,"yaml","toml","json"]);if(void 0!==t&&!n.has(t))throw Error(`Invalid language option value \`${t}\` for frontmatter.`)}parse(e,t){let n=e.body;try{let e=function(e,t){let n=[],r=[];"gfm"===e&&(n.push(ab([{text:c6},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ua,continuation:{tokenize:ul},exit:uc}},text:{91:{name:"gfmFootnoteCall",tokenize:uo},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ui,resolveTo:us}}},function(e){let t,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,s=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==s[s.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function s(a){let l=aq(i);if(126===a)return o>1?r(a):(e.consume(a),o++,s);if(o<2&&!t)return r(a);let c=e.exit("strikethroughSequenceTemporary"),u=aq(a);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],a=t.parser.constructs.insideSpan.null;a&&ag(o,o.length,0,aM(a,e.slice(r+1,n),t)),ag(o,o.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ag(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(),{flow:{null:{name:"table",tokenize:up,resolveAll:uf}}},{text:{91:ug}}])),r.push([{transforms:[c_],enter:{literalAutolink:cE,literalAutolinkEmail:cw,literalAutolinkHttp:cw,literalAutolinkWww:cw},exit:{literalAutolink:cD,literalAutolinkEmail:cC,literalAutolinkHttp:cv,literalAutolinkWww:cA}},{enter:{gfmFootnoteCallString:cI,gfmFootnoteCall:cB,gfmFootnoteDefinitionLabelString:cL,gfmFootnoteDefinition:cN},exit:{gfmFootnoteCallString:cj,gfmFootnoteCall:cR,gfmFootnoteDefinitionLabelString:cq,gfmFootnoteDefinition:cM}},{canContainEols:["delete"],enter:{strikethrough:cV},exit:{strikethrough:c$}},{enter:{table:cU,tableData:cX,tableHeader:cX,tableRow:cJ},exit:{codeText:cz,table:cY,tableData:cW,tableHeader:cW,tableRow:cW}},{exit:{taskListCheckValueChecked:cK,taskListCheckValueUnchecked:cK,paragraph:cG}}]));let i=t?.frontmatter;return!1!==i&&("yaml"===i?(n.push(cf(["yaml"])),r.push(ch(["yaml"]))):"toml"===i?(n.push(cf(["toml"])),r.push(ch(["toml"]))):"json"===i&&(n.push(cf(ux)),r.push(ch(ux)))),{extensions:n,mdastExtensions:r}}(this.#o,t?.languageOptions),r=l_(n,e);return{ok:!0,ast:r}}catch(e){return{ok:!1,errors:[e]}}}createSourceCode(e,t){return new cr({text:e.body,ast:t.ast})}}const uT=new Set(["`","~"]);var uk={meta:{type:"problem",docs:{recommended:!0,description:"Require languages for fenced code blocks",url:"https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md"},messages:{missingLanguage:"Missing code block language.",disallowedLanguage:'Code block language "{{lang}}" is not allowed.'},schema:[{type:"object",properties:{required:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{required:[]}]},create(e){let t=new Set(e.options[0]?.required),{sourceCode:n}=e;return{code(r){if(!r.lang){if(!uT.has(n.text[r.position.start.offset]))return;e.report({loc:{start:r.position.start,end:{line:r.position.start.line,column:n.lines[r.position.start.line-1].length+1}},messageId:"missingLanguage"});return}if(t.size&&!t.has(r.lang)){let t=n.lines[r.position.start.line-1].indexOf(r.lang);e.report({loc:{start:r.position.start,end:{line:r.position.start.line,column:r.position.start.column+t+r.lang.length}},messageId:"disallowedLanguage",data:{lang:r.lang}})}}}}},uS={meta:{type:"problem",docs:{recommended:!0,description:"Enforce heading levels increment by one",url:"https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md"},messages:{skippedHeading:"Heading level skipped from {{fromLevel}} to {{toLevel}}."},schema:[{type:"object",properties:{frontmatterTitle:{type:"string"}},additionalProperties:!1}],defaultOptions:[{frontmatterTitle:"^(?!\\s*['\"]title[:=]['\"])\\s*\\{?\\s*['\"]?title['\"]?\\s*[:=]"}]},create(e){let[{frontmatterTitle:t}]=e.options,n=""===t?null:RegExp(t,"iu"),r=0;return{yaml(e){l6(e.value,n)&&(r=1)},toml(e){l6(e.value,n)&&(r=1)},json(e){l6(e.value,n)&&(r=1)},heading(t){r>0&&t.depth>r+1&&e.report({loc:t.position,messageId:"skippedHeading",data:{fromLevel:r.toString(),toLevel:t.depth.toString()}}),r=t.depth}}}};const uE=/^<([^!>][^/\s>]*)/u;function uw(e){let t=e.match(uE);if(t){let e=t[1].toLowerCase(),n=e.startsWith("/");return{name:n?e.slice(1):e,isClosing:n}}return null}var uv={meta:{type:"problem",docs:{recommended:!0,description:"Disallow duplicate definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md"},messages:{duplicateDefinition:"Unexpected duplicate definition `{{ identifier }}` found.",duplicateFootnoteDefinition:"Unexpected duplicate footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[]}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>ak(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>ak(e).toLowerCase())),r=new Set,i=new Set;return{definition(n){t.has(n.identifier)||(r.has(n.identifier)?e.report({node:n,messageId:"duplicateDefinition",data:{identifier:n.identifier}}):r.add(n.identifier))},footnoteDefinition(t){n.has(t.identifier)||(i.has(t.identifier)?e.report({node:t,messageId:"duplicateFootnoteDefinition",data:{identifier:t.identifier}}):i.add(t.identifier))}}}},uA={meta:{type:"problem",docs:{description:"Disallow duplicate headings in the same document",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md"},messages:{duplicateHeading:'Duplicate heading "{{text}}" found.'},schema:[{type:"object",properties:{checkSiblingsOnly:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkSiblingsOnly:!1}]},create(e){let t,n,[{checkSiblingsOnly:r}]=e.options,i=new Map(r?[[1,new Set],[2,new Set],[3,new Set],[4,new Set],[5,new Set],[6,new Set]]:[[1,new Set]]),s=1,o=i.get(s);return{heading(e){if(t="",n="",r){let t=e.depth;if(t<s)for(let e=s;e>t;e--)i.get(e).clear();s=t,o=i.get(t)}},"heading *"({type:e,value:r}){r?(t+=`[${e},${r}]`,"html"!==e&&(n+=r)):t+=`[${e}]`},"heading:exit"(r){o.has(t)?e.report({loc:r.position,messageId:"duplicateHeading",data:{text:n}}):o.add(t)}}}},uC={meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md"},messages:{emptyDefinition:"Unexpected empty definition `{{ identifier }}` found.",emptyFootnoteDefinition:"Unexpected empty footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},checkFootnoteDefinitions:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[],checkFootnoteDefinitions:!0}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>ak(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>ak(e).toLowerCase())),[{checkFootnoteDefinitions:r}]=e.options;return{definition(n){n.url&&"#"!==n.url||t.has(n.identifier)||e.report({loc:n.position,messageId:"emptyDefinition",data:{identifier:n.identifier}})},footnoteDefinition(t){r&&!n.has(t.identifier)&&(0===t.children.length||t.children.every(e=>"html"===e.type&&0===e.value.replace(l4,"").trim().length))&&e.report({loc:t.position,messageId:"emptyFootnoteDefinition",data:{identifier:t.identifier}})}}}};const uD=/<([a-z0-9]+(?:-[a-z0-9]+)*)(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?>/giu,u_=/\r\n?|\n/u;var uO={meta:{type:"problem",docs:{description:"Disallow HTML tags",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md"},messages:{disallowedElement:'HTML element "{{name}}" is not allowed.'},schema:[{type:"object",properties:{allowed:{type:"array",items:{type:"string"},uniqueItems:!0},allowedIgnoreCase:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowed:[],allowedIgnoreCase:!1}]},create(e){let[{allowed:t,allowedIgnoreCase:n}]=e.options,r=new Set(n?t.map(e=>e.toLowerCase()):t);return{html(t){let i;for(;null!==(i=uD.exec(t.value));){let s=i[0],o=i[1],{lineOffset:a,columnOffset:l}=l5(t.value,i.index),c={line:t.position.start.line+a,column:t.position.start.column+l},u=s.search(u_),p=-1===u?c.column+s.length:c.column+u,f={line:c.line,column:p},d=n?o.toLowerCase():o;0!==r.size&&r.has(d)||e.report({loc:{start:c,end:f},messageId:"disallowedElement",data:{name:o}})}}}}};const uF=/\]\[([^\]]+)\]/u,uP=/^(#{1,6})(?:[^# \t]|$)/u,uI=/(?<![ \t])([ \t]*)(?<!(?<!\\)\\)(#+)([ \t]*)$/u,uB=/\r?\n/u;var uL={meta:{type:"problem",docs:{recommended:!0,description:"Disallow headings without a space after the hash characters",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md"},fixable:"whitespace",messages:{missingSpace:"Missing space {{position}} hash(es) on ATX style heading."},schema:[{type:"object",properties:{checkClosedHeadings:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkClosedHeadings:!1}]},create(e){let[{checkClosedHeadings:t}]=e.options;return{heading(n){if(!t)return;let r=e.sourceCode.getText(n),i=n.position.start.line,s=n.position.start.column,o=function(e){let t=uI.exec(e);if(t){let[,n,r,i]=t;if(0===n.length){let t=e.length-(i.length+r.length),n=t+r.length;return{closingHashIdx:t,beforeHashIdx:t-1,endIdx:n}}}return null}(r);o&&e.report({loc:{start:{line:i,column:s+o.beforeHashIdx},end:{line:i,column:s+o.endIdx}},messageId:"missingSpace",data:{position:"before"},fix:e=>e.insertTextBeforeRange([n.position.start.offset+o.closingHashIdx,n.position.start.offset+o.closingHashIdx+1]," ")})},paragraph(t){let n=e.sourceCode.getText(t).split(uB),r=t.position.start.column,i=t.position.start.offset;n.forEach((n,s)=>{let o=uP.exec(n),a=t.position.start.line+s;if(o){let t=o[1];e.report({loc:{start:{line:a,column:r},end:{line:a,column:r+t.length+1}},messageId:"missingSpace",data:{position:"after"},fix:e=>e.insertTextAfterRange([i+t.length-1,i+t.length]," ")})}i+=n.length+1})}}}};const uN=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,uj=Object.hasOwnProperty;class uR{constructor(){this.occurrences,this.reset()}slug(e,t){var n,r;let i=(n=e,r=!0===t,"string"!=typeof n?"":(r||(n=n.toLowerCase()),n.replace(uN,"").replace(/ /g,"-"))),s=i;for(;uj.call(this.occurrences,i);)this.occurrences[s]++,i=s+"-"+this.occurrences[s];return this.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}const uq=/^L\d+(?:C\d+)?(?:-L\d+(?:C\d+)?)?$/u,uM=/\{#(?<id>[^}\s]+)\}\s*$/u,uV=/(?<!<)<(?:[^>]+)\s(?:id|name)\s*=\s*["']?(?<id>[^"'\s>]+)["']?/giu;var u$={meta:{type:"problem",docs:{recommended:!0,description:"Disallow link fragments that do not reference valid headings",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],messages:{invalidFragment:"Link fragment '#{{fragment}}' does not reference a heading or anchor in this document."},defaultOptions:[{ignoreCase:!0,allowPattern:""}]},create(e){let t,[{allowPattern:n,ignoreCase:r}]=e.options,i=n?RegExp(n,"u"):null,s=new Set(["top"]),o=new uR,a=[];return{heading(){t=""},"heading *:not(html)"({value:e}){t+=e??""},"heading:exit"(){let e=t.match(uM),n=e?e.groups.id:t,i=o.slug(n);s.add(r?i.toLowerCase():i)},html(e){for(let t of e.value.trim().replace(l4,"").matchAll(uV)){let e=t.groups.id,n=o.slug(e);s.add(r?n.toLowerCase():n)}},link(e){let t=e.url;if(!t||!t.startsWith("#"))return;let n=t.slice(1);n&&a.push({node:e,fragment:n})},"root:exit"(){for(let{node:t,fragment:n}of a){let o;try{o=decodeURIComponent(n)}catch{o=n}if(i?.test(o)||uq.test(o))continue;let a=r?o.toLowerCase():o;s.has(a)||e.report({loc:t.position,messageId:"invalidFragment",data:{fragment:n}})}}}}};const uU=/<h1[^>]*>[\s\S]*?<\/h1>/giu;var uY={meta:{type:"problem",docs:{recommended:!0,description:"Disallow multiple H1 headings in the same document",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md"},messages:{multipleH1:"Unexpected additional H1 heading found."},schema:[{type:"object",properties:{frontmatterTitle:{type:"string"}},additionalProperties:!1}],defaultOptions:[{frontmatterTitle:"^(?!\\s*['\"]title[:=]['\"])\\s*\\{?\\s*['\"]?title['\"]?\\s*[:=]"}]},create(e){let[{frontmatterTitle:t}]=e.options,n=""===t?null:RegExp(t,"iu"),r=0;return{yaml(e){l6(e.value,n)&&r++},toml(e){l6(e.value,n)&&r++},json(e){l6(e.value,n)&&r++},html(t){let n,i=l9(t.value);for(;null!==(n=uU.exec(i));)if(++r>1){let{lineOffset:r,columnOffset:i}=l5(t.value,n.index),{lineOffset:s,columnOffset:o}=l5(t.value,n.index+n[0].length),a=t.position.start.line,l=t.position.start.column,c=a+r,u=a+s,p=(c===a?l:1)+i,f=(u===a?l:1)+o;e.report({loc:{start:{line:c,column:p},end:{line:u,column:f}},messageId:"multipleH1"})}},heading(t){1===t.depth&&++r>1&&e.report({loc:t.position,messageId:"multipleH1"})}}}};const uJ=/(?<!\\)\(((?:\\.|[^()\\]|\([\s\S]*\))*)\)\[((?:\\.|[^\]\\\n])*)\](?!\()/gu,uW=/[ \t]/u;var uX={meta:{type:"problem",docs:{recommended:!0,description:"Disallow spaces around emphasis markers",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md"},fixable:"whitespace",messages:{spaceInEmphasis:"Unexpected space around emphasis marker."},schema:[{type:"object",properties:{checkStrikethrough:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkStrikethrough:!1}]},create(e){let{sourceCode:t}=e,[{checkStrikethrough:n}]=e.options,r=n?/(?<=(?<!\\)(?:\\{2})*)(?<marker>\*\*\*|\*\*|\*|___|__|_|~~|~)/gu:/(?<=(?<!\\)(?:\\{2})*)(?<marker>\*\*\*|\*\*|\*|___|__|_)/gu;function i({originalText:t,checkIndex:n,highlightStartIndex:r,highlightEndIndex:i,removeIndex:s,nodeStartLine:o,nodeStartColumn:a}){if(uW.test(t[n])){let{lineOffset:n,columnOffset:l}=l5(t,r),{lineOffset:c,columnOffset:u}=l5(t,i);e.report({loc:{start:{line:o+n,column:a+l},end:{line:o+c,column:a+u}},messageId:"spaceInEmphasis",fix:e=>e.removeRange([s,s+1])})}}let s={state:null,enter(e){let[n,r]=t.getRange(e);this.state={buffer:Array(r-n).fill(" "),startOffset:n}},addText(e){let n=e.position.start.offset-this.state.startOffset,r=t.getText(e);for(let e=0;e<r.length;e++)this.state.buffer[n+e]=r[e]},exit(e){!function(e,n){let s=t.getText(e),o=function(e,t){let n,r=[];for(;null!==(n=t.exec(e));)r.push({marker:n.groups.marker,startIndex:n.index,endIndex:n.index+n.groups.marker.length});return r}(n,r),a=e.position.start.line,l=e.position.start.column,c=e.position.start.offset,u=new Map;for(let e of o)u.has(e.marker)||u.set(e.marker,[]),u.get(e.marker).push(e);for(let e of u.values())for(let t=0;t<e.length-1;t+=2){let n=e[t];i({originalText:s,checkIndex:n.endIndex,highlightStartIndex:n.startIndex,highlightEndIndex:n.endIndex+2,removeIndex:c+n.endIndex,nodeStartLine:a,nodeStartColumn:l});let r=e[t+1];i({originalText:s,checkIndex:r.startIndex-1,highlightStartIndex:r.startIndex-2,highlightEndIndex:r.endIndex,removeIndex:c+r.startIndex-1,nodeStartLine:a,nodeStartColumn:l})}}(e,this.state.buffer.join("")),this.state=null}};return{heading(e){s.enter(e)},"heading > text"(e){s.addText(e)},"heading:exit"(e){s.exit(e)},paragraph(e){s.enter(e)},"paragraph > text"(e){s.addText(e)},"paragraph:exit"(e){s.exit(e)},tableCell(e){s.enter(e)},"tableCell > text"(e){s.addText(e)},"tableCell:exit"(e){s.exit(e)}}}},uz={meta:{type:"problem",docs:{recommended:!0,description:"Disallow unused definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md"},messages:{unusedDefinition:"Unexpected unused definition `{{ identifier }}` found.",unusedFootnoteDefinition:"Unexpected unused footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[]}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>ak(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>ak(e).toLowerCase())),r=new Set,i=new Set,s=new Set,o=new Set;return{imageReference(e){r.add(e.identifier)},linkReference(e){r.add(e.identifier)},footnoteReference(e){i.add(e.identifier)},definition(e){t.has(e.identifier)||s.add(e)},footnoteDefinition(e){n.has(e.identifier)||o.add(e)},"root:exit"(){for(let t of s)r.has(t.identifier)||e.report({node:t,messageId:"unusedDefinition",data:{identifier:t.identifier}});for(let t of o)i.has(t.identifier)||e.report({node:t,messageId:"unusedFootnoteDefinition",data:{identifier:t.identifier}})}}}};const uH=/<img[^>]*>/giu;function uK(e){return RegExp(`\\s${e}(?:\\s*=\\s*['"]([^'"]*)['"])?`,"iu")}var uG={meta:{type:"problem",docs:{recommended:!0,description:"Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row",url:"https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md"},messages:{extraCells:"Table column count mismatch (Expected: {{expectedCells}}, Actual: {{actualCells}}), extra data starting here will be ignored.",missingCells:"Table column count mismatch (Expected: {{expectedCells}}, Actual: {{actualCells}}), row might be missing data."},schema:[{type:"object",properties:{checkMissingCells:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkMissingCells:!1}]},create(e){let[{checkMissingCells:t}]=e.options;return{table(n){if(n.children.length<1)return;let r=n.children[0].children.length;for(let i=1;i<n.children.length;i++){let s=n.children[i],o=s.children.length,a=s.children[o-1];if(o>r){let t=s.children[r];e.report({loc:{start:t.position.start,end:a.position.end},messageId:"extraCells",data:{actualCells:String(o),expectedCells:String(r)}})}else t&&o<r&&e.report({loc:{start:{column:a.position.end.column-1,line:a.position.end.line},end:s.position.end},messageId:"missingCells",data:{actualCells:String(o),expectedCells:String(r)}})}}}}};const uQ={"eol-last":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","padded-blocks":"off",strict:"off","unicode-bom":"off"},uZ={meta:{name:"@eslint/markdown",version:"7.2.0"},processors:{markdown:{meta:{name:"@eslint/markdown/markdown",version:"7.2.0"},preprocess:function(e,t){let n=e.startsWith("\uFEFF")?e.slice(1):e,r=l_(n),i=[];lI.set(t,i);let s=[];return!function e(t,n){if(n[t.type]?n[t.type](t):n["*"](),void 0!==t.children)for(let r=0;r<t.children.length;r++)e(t.children[r],n)}(r,{"*"(){s=[]},code(e){if(e.lang){let t=[];for(let e of s){if("eslint-skip"===e.trim()){s=[];return}t.push(`/*${e}*/`)}s=[],i.push({...e,baseIndentText:lN(n,e),comments:t,rangeMap:function(e,t,n){let r=lL(t),i=e.slice(r,t.position.end.offset).split("\n"),s=lN(e,t).length,o=n.reduce((e,t)=>e+t.length+1,0),a=[{indent:s,js:0,md:0}],l=o,c=r+i[0].length+1;for(let e=0;e+1<i.length;e++){let t=i[e+1],n=Math.min(s,lB.exec(t)[0].length);a.push({indent:n,js:l,md:c+n-l}),c+=t.length+1,l+=t.length-n+1}return a}(n,e,t)})}},html(e){let t=function(e){let t="\x3c!--";if(e.slice(0,t.length)!==t||"--\x3e"!==e.slice(-3))return"";let n=e.slice(t.length,-3);return/^(eslint\b|global\s)/u.test(n.trim())?n:""}(e.value);t?s.push(t):s=[]}}),i.map((e,t)=>{let[n]=e.lang.trim().split(" "),r=Object.hasOwn(lR,n)?lR[n]:n;return{filename:e.meta?.match(lj)?.groups.filename.replaceAll(/\s+/gu,"_")??`${t}.${r}`,text:[...e.comments,e.value,""].join("\n")}})},postprocess:function(e,t){let n=lI.get(t);return lI.delete(t),e.flatMap((e,t)=>{let r=function(e){let t=e.comments.reduce((e,t)=>e+t.split("\n").length,0),n=e.position.start.line;return function(r){if(!Number.isInteger(r.line))return{...r,line:n,column:e.position.start.column};let i=r.line-t;if(i<1||i>=e.rangeMap.length)return null;let s={line:i+n,column:r.column+e.rangeMap[i].indent};Number.isInteger(r.endLine)&&(s.endLine=r.endLine-t+n),Array.isArray(r.suggestions)&&(s.suggestions=r.suggestions.map(t=>({...t,fix:lq(e,t.fix)})));let o={};return r.fix&&(o.fix=lq(e,r.fix)),{...r,...s,...o}}}(n[t]);return e.map(r).filter(lM)})},supportsAutofix:!0}},languages:{commonmark:new ub({mode:"commonmark"}),gfm:new ub({mode:"gfm"})},rules:{"fenced-code-language":uk,"heading-increment":uS,"no-bare-urls":{meta:{type:"problem",docs:{description:"Disallow bare URLs",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md"},fixable:"code",messages:{bareUrl:"Unexpected bare URL. Use autolink (<URL>) or link ([text](URL)) instead."}},create(e){let{sourceCode:t}=e,n=[];function r(e){!function e(r){if("children"in r&&Array.isArray(r.children))for(let i=0;i<r.children.length;i++){let s=r.children[i];if("html"===s.type){let e=uw(t.getText(s));if(e&&!e.isClosing){for(let n=i+1;n<r.children.length;n++){let s=r.children[n];if("html"===s.type){let r=uw(t.getText(s));if(r?.name===e.name&&r?.isClosing){i=n;break}}}continue}}if("link"===s.type){let e=t.getText(s),{url:r}=s;(e===r||r===`http://${e}`||r===`mailto:${e}`)&&n.push(s)}e(s)}}(e)}return{"root:exit"(){for(let r of n)e.report({node:r,messageId:"bareUrl",fix(e){let n=t.getText(r);return e.replaceText(r,`<${n}>`)}})},paragraph(e){r(e)},heading(e){r(e)},tableCell(e){r(e)}}}},"no-duplicate-definitions":uv,"no-duplicate-headings":uA,"no-empty-definitions":uC,"no-empty-images":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty images",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md"},messages:{emptyImage:"Unexpected empty image found."}},create:e=>({image(t){t.url&&"#"!==t.url||e.report({loc:t.position,messageId:"emptyImage"})}})},"no-empty-links":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty links",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md"},messages:{emptyLink:"Unexpected empty link found."}},create:e=>({link(t){t.url&&"#"!==t.url||e.report({loc:t.position,messageId:"emptyLink"})}})},"no-html":uO,"no-invalid-label-refs":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow invalid label references",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md"},messages:{invalidLabelRef:"Label reference '{{label}}' is invalid due to white space between [ and ]."}},create(e){let{sourceCode:t}=e;return{text(n){for(let r of function(e,t){let n=t.getText(e),r=t.text,i=[],s=0,o=e.position.start.offset,a=e.position.start.line,l=e.position.start.column;for(;s<n.length;){let e=n.slice(s).match(uF);if(!e)break;if(!l3.test(e[0])){s+=e.index+e[0].length;continue}let t=s+e.index,c=o+t,u=r.lastIndexOf("[",c);if(-1===u){s+=e.index+e[0].length;continue}let p=r.slice(u,c+e[0].length).match(/!?\[([^\]]+)\]/u)[1],{lineOffset:f,columnOffset:d}=l5(n,t+1),{lineOffset:m,columnOffset:h}=l5(n,t+e[0].length),g=a+f,y=l+d,x=a+m,b=(x===g?l:0)+h;i.push({label:p.trim(),position:{start:{line:g,column:y},end:{line:x,column:b}}}),s+=e.index+e[0].length}return i}(n,t))e.report({loc:r.position,messageId:"invalidLabelRef",data:{label:r.label}})}}}},"no-missing-atx-heading-space":uL,"no-missing-label-refs":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow missing label references",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md"},messages:{notFound:"Label reference '{{label}}' not found."}},create(e){let{sourceCode:t}=e,n=[];return{"root:exit"(){for(let t of n)e.report({loc:t.position,messageId:"notFound",data:{label:t.label}})},text(e){n.push(...function(e,t){let n,r=[],i=e.position.start.line,s=e.position.start.column,o=/(?<!\\)\[(?<left>(?:\\.|[^[\]])*)(?<!\\)\](?<!\\)(?:\[(?<right>(?:\\.|[^\]])*)(?<!\\)\])?/dgu;for(;n=o.exec(t);){let e,o;if(l3.test(n[0]))continue;let{left:a,right:l}=n.groups;if(!a&&!l)continue;l?(e=l,o=n.indices.groups.right):(e=a,o=n.indices.groups.left);let{lineOffset:c,columnOffset:u}=l5(t,o[0]),{lineOffset:p,columnOffset:f}=l5(t,o[1]);r.push({label:e.trim(),position:{start:{line:i+c,column:c>0?u+1:s+u},end:{line:i+p,column:p>0?f+1:s+f}}})}return r}(e,t.getText(e)))},definition(e){n=n.filter(t=>t.label!==e.identifier)}}}},"no-missing-link-fragments":u$,"no-multiple-h1":uY,"no-reversed-media-syntax":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow reversed link and image syntax",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md"},fixable:"code",messages:{reversedSyntax:"Unexpected reversed syntax found. Use [label](URL) syntax instead."}},create(e){let{sourceCode:t}=e,n=[];function r(r){let i,s=t.getText(r);for(;null!==(i=uJ.exec(s));){let[t,o,a]=i,l=i.index,c=t.length;if(function(e,t){return t.some(t=>t[0]<=e&&e<t[1])}(l+r.position.start.offset,n))continue;let{lineOffset:u,columnOffset:p}=l5(s,l),{lineOffset:f,columnOffset:d}=l5(s,l+c),m=r.position.start.line,h=r.position.start.column,g=m+u,y=m+f,x=(g===m?h:1)+p,b=(y===m?h:1)+d;e.report({loc:{start:{line:g,column:x},end:{line:y,column:b}},messageId:"reversedSyntax",fix(e){let t=r.position.start.offset+l,n=t+c;return e.replaceTextRange([t,n],`[${o}](${a})`)}})}}return{"heading :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"heading:exit"(e){r(e),n=[]},"paragraph :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"paragraph:exit"(e){r(e),n=[]},"tableCell :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"tableCell:exit"(e){r(e),n=[]}}}},"no-space-in-emphasis":uX,"no-unused-definitions":uz,"require-alt-text":{meta:{type:"problem",docs:{recommended:!0,description:"Require alternative text for images",url:"https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md"},messages:{altTextRequired:"Alternative text for image is required."}},create:e=>({image(t){0===t.alt.trim().length&&e.report({loc:t.position,messageId:"altTextRequired"})},imageReference(t){0===t.alt.trim().length&&e.report({loc:t.position,messageId:"altTextRequired"})},html(t){let n,r=l9(t.value);for(;null!==(n=uH.exec(r));){let r=n[0],i=r.match(uK("aria-hidden"));if(i&&"true"===i[1].toLowerCase())continue;let s=r.match(uK("alt"));if(!s||s[1]&&0===s[1].trim().length&&s[1].length>0){let{lineOffset:i,columnOffset:s}=l5(t.value,n.index),{lineOffset:o,columnOffset:a}=l5(t.value,n.index+r.length),l=t.position.start.line,c=t.position.start.column,u=l+i,p=l+o,f=(u===l?c:1)+s,d=(p===l?c:1)+a;e.report({loc:{start:{line:u,column:f},end:{line:p,column:d}},messageId:"altTextRequired"})}}}})},"table-column-count":uG},configs:{"recommended-legacy":{plugins:["markdown"],overrides:[{files:["*.md"],processor:"markdown/markdown"},{files:["**/*.md/**"],parserOptions:{ecmaFeatures:{impliedStrict:!0}},rules:{...uQ}}]},recommended:[{name:"markdown/recommended",files:["**/*.md"],language:"markdown/commonmark",plugins:n={},rules:{"markdown/fenced-code-language":"error","markdown/heading-increment":"error","markdown/no-duplicate-definitions":"error","markdown/no-empty-definitions":"error","markdown/no-empty-images":"error","markdown/no-empty-links":"error","markdown/no-invalid-label-refs":"error","markdown/no-missing-atx-heading-space":"error","markdown/no-missing-label-refs":"error","markdown/no-missing-link-fragments":"error","markdown/no-multiple-h1":"error","markdown/no-reversed-media-syntax":"error","markdown/no-space-in-emphasis":"error","markdown/no-unused-definitions":"error","markdown/require-alt-text":"error","markdown/table-column-count":"error"}}],processor:[{name:"markdown/recommended/plugin",plugins:r={}},{name:"markdown/recommended/processor",files:["**/*.md"],processor:"markdown/markdown"},{name:"markdown/recommended/code-blocks",files:["**/*.md/**"],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{...uQ}}]}};async function u0(e){if(!X.isPackageExists(e))return;if(console.error(eb.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`)),ex.isCI||!process.stdout.isTTY)throw Error(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`);let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.i});await t({message:` "${e}" is deprecated. Do you want to uninstall it?`})&&await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.b}).then(t=>t.uninstallPackage(e,{dev:!0}))}function u1(e,t=!1){return"boolean"==typeof e?e:void 0===e?t:!!e.enable||t}function u2(e,...t){let n;if("boolean"==typeof e||void 0===e)n={};else{let{enable:t,...r}=e;n=r}return t.length?ey.defu(n,...t):n}async function u3(e,...t){let n=Date.now(),r=[];await u0("@eslint-sukka/js"),await u0("@eslint-sukka/json"),await u0("@eslint-sukka/ts"),await u0("@eslint-sukka/legacy");let i=u1(e?.ts,X.isPackageExists("typescript"));if(r.push(eL(e?.ignores),[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":ee,sukka:X.memo(et,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}]),u1(e?.js,!0)&&r.push(function(e={}){let{files:t,disableNoConsoleInCLI:n=!0,env:r={}}=e,{browser:i=!0,webextensions:s=!1,greasemonkey:o=!1,customGlobals:a={}}=r,l=e.module??X.getPackageJson()?.type==="module",c=[{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint/js recommended",...ei.configs.recommended},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:l?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:l?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...X.globals.es2025,...i&&X.globals.browser,...s&&X.globals.webextensions,...o&&X.globals.greasemonkey,...a}},settings:{"import-x/extensions":ar,"import-x/resolver-next":[ea.createNodeResolver({extensions:ar})]},plugins:{"unused-imports":X.memo(eo,"eslint-plugin-unused-imports"),"@stylistic":X.memo(oQ,"@stylistic/eslint-plugin"),sukka:X.memo(et,"eslint-plugin-sukka"),"import-x":X.memo(ea,"eslint-plugin-import-x"),autofix:ec,antfu:X.memo(an,"eslint_plugin_antfu")},rules:{...ea.configs.recommended.rules,"import-x/newline-after-import":["error",{considerComments:!1}],"import-x/no-absolute-path":"error","import-x/no-empty-named-blocks":"error","import-x/no-mutable-exports":"error","import-x/no-useless-path-segments":"warn","import-x/no-webpack-loader-syntax":"error","import-x/no-relative-packages":"warn","accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!1}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(n=>({object:n,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/template-curly-spacing":["error","never"],"@stylistic/yield-star-spacing":["error","before"],"@stylistic/array-bracket-newline":["off","consistent"],"@stylistic/array-bracket-spacing":["error","never"],"@stylistic/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/comma-dangle":["error","never"],"@stylistic/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/eol-last":["error","always"],"@stylistic/function-call-spacing":["error","never"],"@stylistic/function-call-argument-newline":["off","consistent"],"@stylistic/function-paren-newline":["error","consistent"],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/indent":["error",2,{SwitchCase:1}],"@stylistic/indent-binary-ops":["error",2],"@stylistic/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/linebreak-style":"error","@stylistic/lines-around-comment":"off","@stylistic/lines-around-directive":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/multiline-ternary":["error","always-multiline"],"new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","sukka/unicorn/no-lonely-if":"error","@stylistic/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","sukka/unicorn/no-negated-condition":"warn","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/no-spaced-func":"off","@stylistic/no-tabs":"error","no-ternary":"off","@stylistic/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/no-whitespace-before-property":"error","@stylistic/nonblock-statement-body-position":"error","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":["error","always"],"@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/operator-linebreak":["error","before",{overrides:{"=":"after"}}],"@stylistic/padded-blocks":["error","never"],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/quotes":["error","single"],"@stylistic/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/jsx-quotes":["error","prefer-double"],"@stylistic/rest-spread-spacing":["error","never"],"@stylistic/semi":["error","always"],"@stylistic/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/semi-style":["error","last"],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/space-in-parens":["error","never"],"@stylistic/space-infix-ops":"error","@stylistic/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/no-expression-empty-lines":"error","sukka/prefer-single-boolean-return":"error","sukka/no-all-duplicated-branches":"error","sukka/no-duplicated-branches":"error","sukka/bool-param-default":"error","sukka/call-argument-line":"error","sukka/class-prototype":"warn","sukka/comma-or-logical-or-case":"error","sukka/track-todo-fixme-comment":"warn","sukka/no-element-overwrite":"warn","sukka/no-empty-collection":"warn","sukka/no-equals-in-for-termination":"error","sukka/no-top-level-this":"error","sukka/no-invariant-returns":"error","sukka/no-redundant-assignments":"warn","sukka/no-same-line-conditional":"error","sukka/no-small-switch":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/no-useless-plusplus":"error","sukka/no-chain-array-higher-order-functions":"error","sukka/unicorn/catch-error-name":["error",{ignore:[/^(?:e|err|error|\w+Err|\w+Error)[\d_]?$/]}],"sukka/unicorn/custom-error-definition":"error","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/prefer-negative-index":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-builtins":["error",{strategy:"loose"}],"sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/prefer-single-call":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"error","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/no-magic-array-flat-depth":"error","sukka/unicorn/no-object-as-default-parameter":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-unnecessary-slice-end":"error","sukka/unicorn/consistent-date-clone":"error","sukka/unicorn/no-accessor-recursion":"error","sukka/unicorn/no-unnecessary-array-flat-depth":"error","sukka/unicorn/no-unnecessary-array-splice-count":"error","sukka/unicorn/no-useless-error-capture-stack-trace":"error","sukka/unicorn/prefer-class-fields":"error","sukka/unicorn/prefer-bigint-literals":"error","sukka/unicorn/prefer-classlist-toggle":"warn","sukka/unicorn/require-module-attributes":"error","no-restricted-imports":["error",{paths:X.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error","antfu/import-dedupe":"error","antfu/consistent-chaining":"error","antfu/no-top-level-await":"error","antfu/top-level-function":"warn"}},el.configs.recommended];if(!1!==n){let e="boolean"==typeof n?null:Array.isArray(n)?n:[n];c.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${X.constants.GLOB_SRC}`,`**/cli/${X.constants.GLOB_SRC}`,`**/cli.${X.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return c}(u2(e?.js)),function({typescript:e}){return[{name:"sukka/promise",plugins:{promise:en},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn","promise/prefer-catch":"error"}}]}({typescript:i}),[{name:"sukka/regexp",plugins:{sukka:X.memo(et,"eslint-plugin-sukka"),regexp:X.memo(ew,"eslint-plugin-regexp")},rules:{"sukka/unicorn/better-regex":"warn",...er.configs["flat/recommended"].rules,"regexp/strict":"off"}}]),u1(e?.markdown,!0)&&r.push(uZ.configs.recommended),u1(e?.yaml,X.isDirectDependency("yaml")||X.isDirectDependency("js-yaml"))&&r.push((await ac("@eslint-sukka/yaml")).yaml()),u1(e?.json,!0)&&r.push([...eu.configs["flat/base"],{name:"@eslint-sukka/json json",files:[X.constants.GLOB_JSON],rules:{...eu.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...as}},{name:"@eslint-sukka/json json5",...ai,files:[X.constants.GLOB_JSON5],rules:{...eu.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...as}},{name:"@eslint-sukka/json jsonc",...ai,files:[X.constants.GLOB_JSONC],rules:{...eu.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...as}},{name:"@eslint-sukka/json package.json",...ai,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...ai,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]),i){let t=e?.isInEditor??(!(process.env.CI||ex.isCI||process.env.GIT_PARAMS||process.env.VSCODE_GIT_COMMAND||process.env.npm_lifecycle_script?.startsWith("lint-staged"))&&!!(process.env.VSCODE_PID||process.env.VSCODE_CWD||process.env.JETBRAINS_IDE||process.env.VIM||process.env.NVIM));r.push(function(e={}){let{allowJs:t=!1,tsconfigPath:n=!0,tsconfigRootDir:r=K.cwd(),componentExtensions:i=[],isInEditor:s=!1,allowDefaultProject:o=["next.config.ts","rollup.config.ts","webpack.config.ts"]}=e,a="string"==typeof __dirname?__dirname:Q.fileURLToPath(void 0),l=X.packageResolver.sync(a,"@typescript-eslint/parser"),c=Z.nullthrow(l.path,"[eslint-config-sukka#ts] Expect @typescript-eslint/parser to exist");return[{name:"@eslint-sukka/ts base",files:[X.constants.GLOB_TS,X.constants.GLOB_TSX,...i.map(e=>`**/*.${e}`),...t?[X.constants.GLOB_JS]:[]],plugins:{"@typescript-eslint":X.memo(ed,"@typescript-eslint/eslint-plugin"),"@stylistic/":X.memo(oQ,"@stylistic/eslint-plugin"),"import-x":X.memo(ea,"eslint-plugin-import-x"),paths:eh},languageOptions:{parser:em,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===n?{projectService:{allowDefaultProject:o,loadTypeScriptPlugins:s}}:{project:n},tsconfigRootDir:r,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":al,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver-next":[eg.createTypeScriptImportResolver()],"import-x/parsers":{[c]:aa}},rules:{...ef.configs.base.rules,...ef.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...ef.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...ea.configs.typescript.rules,...ao,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/no-unnecessary-type-conversion":"error","@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:X.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-unnecessary-template-expression":"warn","@typescript-eslint/prefer-readonly":"error","@typescript-eslint/class-literal-property-style":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[],ignoreClassesThatImplementAnInterface:"public-fields"}],"no-restricted-syntax":["error",{message:'Unnecessary "as const"',selector:"VariableDeclarator > TSAsExpression[expression.properties.length=0] > TSTypeReference > Identifier[name=const]"},{message:'Unnecessary "as const"',selector:"VariableDeclarator[id.typeAnnotation] > TSAsExpression > TSTypeReference > Identifier[name=const]"},{message:'Static class methods requires "this: void", or change to arrow function',selector:'MethodDefinition[static=true][kind!="get"][kind!="set"] > FunctionExpression:not([params.0.name=this][params.0.typeAnnotation.typeAnnotation.type=TSVoidKeyword])'},{message:'Public "static" fields should be read-only',selector:'PropertyDefinition[readonly!=true][static=true][accessibility!="private"][accessibility!="protected"]'}],"@stylistic/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":["error",{allowSingleElementEquality:"always"}],"@typescript-eslint/switch-exhaustiveness-check":["error",{allowDefaultCaseForExhaustiveSwitch:!0,considerDefaultExhaustiveForUnions:!0}],"@typescript-eslint/parameter-properties":["warn",{prefer:"parameter-property"}],"no-throw-literal":"off","@typescript-eslint/only-throw-error":["error",{allowRethrowing:!0,allowThrowingAny:!0,allowThrowingUnknown:!0}],"sukka/string/no-unneeded-to-string":"error","sukka/type/no-force-cast-via-top-type":"error","sukka/type/no-wrapper-type-reference":"error","sukka/no-default-error":"off","sukka/no-export-const-enum":"error","sukka/no-for-in-iterable":"error","sukka/only-await-thenable":"error","sukka/no-undefined-optional-parameters":"warn","sukka/no-try-promise":"error","sukka/no-useless-string-operation":"warn","@stylistic/type-generic-spacing":"error","@stylistic/type-named-tuple-spacing":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":s?"error":"off","import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/named":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-duplicates":"off","import-x/no-named-as-default-member":"off","import-x/no-deprecated":"off","paths/alias":"warn"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":X.memo(ea,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:{"@typescript-eslint":X.memo(ed,"@typescript-eslint/eslint-plugin")},rules:{"@typescript-eslint/no-require-imports":"off"}}]}({isInEditor:t,...u2(e?.ts)}))}let s=X.isPackageExists("next"),o=u1(e?.react,s||X.isPackageExists("react")||X.isPackageExists("@types/react"));if(o)if(i){let t=await ac("@eslint-sukka/react"),n=X.isPackageExists("@remix-run/node")||X.isPackageExists("@remix-run/react")||X.isPackageExists("@remix-run/serve")||X.isPackageExists("@remix-run/dev");r.push(t.react(u2(e?.react,{nextjs:s,remix:n,reactRefresh:{allowConstantExport:X.isPackageExists("vite")},reactCompiler:X.isPackageExists("babel-plugin-react-compiler")||X.isPackageExists("react-compiler-webpack")?"error":"off"}))),u1(e?.next,s)&&r.push(t.next()),u1(e?.stylex,X.isPackageExists("@stylexjs/stylex")||X.isPackageExists("stylex-webpack"))&&r.push(t.stylex(u2(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.");u1(e?.node,X.isPackageExists("@types/node")||X.isPackageExists("@types/bun"))&&r.push((await ac("@eslint-sukka/node")).node({...u2(e?.node),hasTypeScript:i,hasReact:o})),u1(e?.legacy)&&r.push(function(e={}){return[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:X.memo(et,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?X.globals.browser:{},...e.node?X.globals.node:{}}}}]}(u2(e?.legacy))),r.push(t);let a=(await Promise.all(r)).flat();return process.env.TIMING&&console.log(`[eslint-config-sukka] Timing: ${Date.now()-n}ms`),a}n.markdown=r.markdown=uZ,exports.constants=X.constants,exports.ignores=eL,exports.sukka=u3;
1
+ let e,t;"use strict";var n,r,i,o,s,a,u,l,c,p,f,d,m,h,g,y,D,k,b,x,w,F,v=require("@eslint-sukka/shared"),E=require("node:fs"),C=require("node:path"),A=require("node:process"),S=require("./vendor-47KOc287.cjs");require("node:fs/promises");var T=require("node:url"),B=require("foxts/guard"),I=require("@eslint-community/eslint-plugin-eslint-comments"),q=require("eslint-plugin-sukka"),L=require("eslint-plugin-promise"),j=require("eslint-plugin-regexp"),O=require("@eslint/js"),R=require("eslint-plugin-unused-imports"),P=require("eslint-plugin-import-x"),N=require("eslint-plugin-de-morgan"),M=require("eslint-plugin-autofix"),_=require("@eslint-sukka/eslint-plugin-stylistic"),z=require("eslint-plugin-jsonc"),U=require("jsonc-eslint-parser"),V=require("typescript-eslint"),H=require("@typescript-eslint/eslint-plugin"),$=require("@typescript-eslint/parser"),W=require("eslint-plugin-paths"),G=require("eslint-import-resolver-typescript"),J=require("defu"),Q=require("ci-info"),Z=require("picocolors");function X(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var Y=X(E),K=X(C),ee=X(j),et={},en=S.g(Y),er=S.g(K),ei=function(){if(r)return et;r=1;let e=new Map([["getSource","getText"],["getSourceLines","getLines"],["getAllComments","getAllComments"],["getDeclaredVariables","getDeclaredVariables"],["getNodeByRangeIndex","getNodeByRangeIndex"],["getCommentsBefore","getCommentsBefore"],["getCommentsAfter","getCommentsAfter"],["getCommentsInside","getCommentsInside"],["getJSDocComment","getJSDocComment"],["getFirstToken","getFirstToken"],["getFirstTokens","getFirstTokens"],["getLastToken","getLastToken"],["getLastTokens","getLastTokens"],["getTokenAfter","getTokenAfter"],["getTokenBefore","getTokenBefore"],["getTokenByRangeStart","getTokenByRangeStart"],["getTokens","getTokens"],["getTokensAfter","getTokensAfter"],["getTokensBefore","getTokensBefore"],["getTokensBetween","getTokensBetween"]]),t=new WeakMap,n=new WeakSet,i=new WeakMap,o=new WeakSet;function s(r){if(t.has(r))return t.get(r);let i="function"==typeof r;if(!i&&n.has(r))return r;let o=i?r:r.create.bind(r),s={...i?void 0:r,create:function(t){if("getScope"in t)return o(t);let n=t.sourceCode,r=n.ast,i=Object.assign(Object.create(t),{parserServices:n.parserServices,getScope:()=>n.getScope(r),getAncestors:()=>n.getAncestors(r),markVariableAsUsed(e){n.markVariableAsUsed(e,r)}});for(let[t,r]of e)i[t]=n[r].bind(n);Object.freeze(i);let s=o(i);for(let[e,t]of Object.entries(s)){if(e.startsWith("on")){s[e]=(...n)=>(r=n["onCodePathSegmentLoop"===e?2:1],t.call(s,...n));continue}s[e]=(...e)=>(r=e[0],t.call(s,...e))}return s}},{schema:a}=r;return a&&(s.meta?s.meta={...s.meta,schema:a}:s.meta={schema:a}),t.set(r,s),n.add(s),s}function a(e){if(i.has(e))return i.get(e);if(o.has(e)||!e.rules)return e;let t={...e,rules:Object.fromEntries(Object.entries(e.rules).map(([e,t])=>[e,s(t)]))};return i.set(e,t),o.add(t),t}function u(e){let t=e.startsWith("!"),n=t?"!":"",r=(t?e.slice(1):e).trimEnd();if(["","**","/**","**/"].includes(r))return`${n}${r}`;let i=r.indexOf("/"),o=i<0||i===r.length-1?"**/":"",s=(0===i?r.slice(1):r).replaceAll(/(?=((?:\\.|[^{(])*))\1([{(])/guy,"$1\\$2"),a=r.endsWith("/**")?"/*":"";return`${n}${o}${s}${a}`}return et.convertIgnorePatternToMinimatch=u,et.fixupConfigRules=function(e){return(Array.isArray(e)?e:[e]).map(e=>{if(!e.plugins)return e;let t=Object.fromEntries(Object.entries(e.plugins).map(([e,t])=>[e,a(t)]));return{...e,plugins:t}})},et.fixupPluginRules=a,et.fixupRule=s,et.includeIgnoreFile=function(e,t){if(!er.isAbsolute(e))throw Error("The ignore file location must be an absolute path.");return{name:t||"Imported .gitignore patterns",ignores:en.readFileSync(e,"utf8").split(/\r?\n/u).map(e=>e.trim()).filter(e=>e&&!e.startsWith("#")).map(u)}},et}();function eo(e){return Array.isArray(e=e??[])?e:[e]}const es=e=>e instanceof URL?T.fileURLToPath(e):e;function ea(e,{cwd:t=A.cwd(),type:n="file",stopAt:r}={}){let i=C.resolve(es(t)??""),{root:o}=C.parse(i);for(r=C.resolve(i,es(r)??o);i&&i!==r&&i!==o;){let t=C.isAbsolute(e)?e:C.join(i,e);try{let e=E.statSync(t,{throwIfNoEntry:!1});if("file"===n&&e?.isFile()||"directory"===n&&e?.isDirectory())return t}catch{}i=C.dirname(i)}}const eu=".gitignore",el=".gitmodules";function ec(e={}){let t=[],{cwd:n=A.cwd(),root:r=!1,files:i=r?eu:ea(eu,{cwd:n})||[],filesGitModules:o=r?E.existsSync(C.join(n,el))?el:[]:ea(el,{cwd:n})||[],strict:s=!0}=e,a=eo(i).map(e=>C.resolve(n,e)),u=eo(o).map(e=>C.resolve(n,e));for(let e of a){let r="";try{r=E.readFileSync(e,"utf8")}catch(e){if(s)throw e;continue}let i=C.relative(n,C.dirname(e)).replaceAll("\\","/"),o=r.split(/\r?\n/u).filter(e=>e&&!e.startsWith("#")).map(e=>ei.convertIgnorePatternToMinimatch(e)).map(e=>(function(e,t,n){if(["",".","/"].includes(t))return e;let r=e.startsWith("!")?"!":"",i=r?e.slice(1):e;if(t.endsWith("/")||(t=`${t}/`),!t.startsWith(".."))return`${r}${t}${i}`;if(!t.match(/^(\.\.\/)+$/))throw Error("The ignore file location should be either a parent or child directory");if(i.startsWith("**"))return e;let o=C.relative(C.resolve(n,t),n).split(/[/\\]/);for(;o.length&&i.startsWith(`${o[0]}/`);)i=i.slice(o[0].length+1),o.shift();return i.startsWith("**")||0===o.length?`${r}${i}`:null})(e,i,n)).filter(e=>null!==e);t.push(...o)}for(let e of u){let n="";try{n=E.readFileSync(e,"utf8")}catch(e){if(s)throw e;continue}let r=n.split(/\r?\n/u).map(e=>e.match(/path\s*=\s*(.+)/u)).filter(e=>null!==e).map(e=>e[1].trim());t.push(...r.map(e=>`${e}/**`))}if(s&&0===a.length)throw Error("No .gitignore file found");return{name:e.name||"gitignore",ignores:t}}function ep(e={}){let{customGlobs:t=null,gitignore:n=[".gitignore"]}=e,r=[],i=[];return!1===t||null===t?i=v.constants.GLOB_EXCLUDE:"function"==typeof t?i=t(v.constants.GLOB_EXCLUDE):"string"==typeof t?i.push(...v.constants.GLOB_EXCLUDE,t):Array.isArray(t)?i.push(...v.constants.GLOB_EXCLUDE,...t):B.never(t),r.push({ignores:i}),!1===n||null===n||(!0===n?r.push(ec({files:[".gitignore"],strict:!1})):"string"==typeof n||Array.isArray(n)?r.push(ec({files:n,strict:!1})):B.never(n)),r}const ef=["consistent-chaining","consistent-list-newline","curly","if-newline","import-dedupe","indent-unindent","top-level-function"],ed="https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/",em=(n=e=>ef.includes(e)?`${ed}${e}.md`:`${ed}${e}.test.ts`,function({name:e,meta:t,...r}){return function({create:e,defaultOptions:t,meta:n}){return{create:n=>{let r=n.options.map((e,n)=>({...t[n]||{},...e||{}}));return e(n,r)},defaultOptions:t,meta:n}}({meta:{...t,docs:{...t.docs,url:n(e)}},...r})}),eh=em({name:"consistent-chaining",meta:{type:"layout",docs:{description:"Having line breaks styles to object, array and named imports"},fixable:"whitespace",schema:[{type:"object",properties:{allowLeadingPropertyAccess:{type:"boolean",description:"Allow leading property access to be on the same line",default:!0}},additionalProperties:!1}],messages:{shouldWrap:"Should have line breaks between items, in node {{name}}",shouldNotWrap:"Should not have line breaks between items, in node {{name}}"}},defaultOptions:[{allowLeadingPropertyAccess:!0}],create:e=>{let t=new WeakSet,{allowLeadingPropertyAccess:n=!0}=e.options[0]||{};return{MemberExpression(r){let i=r;for(;i.parent&&("MemberExpression"===i.parent.type||"CallExpression"===i.parent.type);)i=i.parent;if(t.has(i))return;t.add(i);let o=[],s=i;for(;s;)switch(s.type){case"MemberExpression":s.computed||o.unshift(s),s=s.object;break;case"CallExpression":s=s.callee;break;default:s=void 0}let a=n,u=null;o.forEach(t=>{let n=e.sourceCode.getTokenBefore(t.property),r=e.sourceCode.getTokenBefore(n),o=n.loc.start.line===r.loc.end.line?"single":"multi";if(!a||"ThisExpression"!==t.object.type&&"Identifier"!==t.object.type&&"MemberExpression"!==t.object.type&&"Literal"!==t.object.type||"single"!==o){if(a=!1,null==u){u=o;return}u!==o&&e.report({messageId:"single"===u?"shouldNotWrap":"shouldWrap",loc:n.loc,data:{name:i.type},fix:e=>"multi"===u?e.insertTextAfter(r,"\n"):e.removeRange([r.range[1],n.range[0]])})}})}}}}),eg=em({name:"consistent-list-newline",meta:{type:"layout",docs:{description:"Having line breaks styles to object, array and named imports"},fixable:"whitespace",schema:[{type:"object",properties:{ArrayExpression:{type:"boolean"},ArrayPattern:{type:"boolean"},ArrowFunctionExpression:{type:"boolean"},CallExpression:{type:"boolean"},ExportNamedDeclaration:{type:"boolean"},FunctionDeclaration:{type:"boolean"},FunctionExpression:{type:"boolean"},ImportDeclaration:{type:"boolean"},JSONArrayExpression:{type:"boolean"},JSONObjectExpression:{type:"boolean"},JSXOpeningElement:{type:"boolean"},NewExpression:{type:"boolean"},ObjectExpression:{type:"boolean"},ObjectPattern:{type:"boolean"},TSFunctionType:{type:"boolean"},TSInterfaceDeclaration:{type:"boolean"},TSTupleType:{type:"boolean"},TSTypeLiteral:{type:"boolean"},TSTypeParameterDeclaration:{type:"boolean"},TSTypeParameterInstantiation:{type:"boolean"}},additionalProperties:!1}],messages:{shouldWrap:"Should have line breaks between items, in node {{name}}",shouldNotWrap:"Should not have line breaks between items, in node {{name}}"}},defaultOptions:[{}],create:(e,[t={}]=[{}])=>{let n=new Set(["ArrayExpression","FunctionDeclaration","ObjectExpression","ObjectPattern","TSTypeLiteral","TSTupleType","TSInterfaceDeclaration"]);function r(t,n,r,i){let o=[n,r],s=e.sourceCode.text.slice(...o);return t.replaceTextRange(o,s.replace(/(\r\n|\n)/g,i??""))}function i(t,n){if("TSInterfaceDeclaration"===t.type||"TSTypeLiteral"===t.type)return e.sourceCode.text.slice(n.range[0],n.range[1]).match(/(?:,|;)$/)?void 0:","}function o(e){let t=e;for(;"Program"!==t.type;)t=t.parent;let n=e.range;return!!t.comments?.some(e=>{let t=e.range;return t[0]>n[0]&&t[1]<n[1]})}function s(t,o,s){let a=o.filter(Boolean);if(0===a.length)return;let u=["CallExpression","NewExpression"].includes(t.type)?void 0:e.sourceCode.getFirstToken(t);"CallExpression"===t.type&&(u=e.sourceCode.getTokenAfter(t.typeArguments?t.typeArguments:"MemberExpression"===t.callee.type?t.callee.property:t.callee)),u?.type!=="Punctuator"&&(u=e.sourceCode.getTokenBefore(a[0]));let l=e.sourceCode.getTokenAfter(a[a.length-1]),c=u.loc.start.line;if(u.loc.start.line===l.loc.end.line)return;let p=null,f=c;a.forEach((n,o)=>{if(null==p){p=n.loc.start.line===f?"inline":"newline",f=n.loc.end.line;return}let s=n.loc.start.line;if("newline"===p&&s===f)e.report({node:n,messageId:"shouldWrap",data:{name:t.type},*fix(e){yield e.insertTextBefore(n,"\n")}});else if("inline"===p&&s!==f){let s=a[o-1];if(e.sourceCode.getCommentsBefore(n).length>0)return;e.sourceCode.text.slice(s.range[1],n.range[0]).includes("\n")&&e.report({node:n,messageId:"shouldNotWrap",data:{name:t.type},*fix(e){yield r(e,s.range[1],n.range[0],i(t,s))}})}f=n.loc.end.line});let d=s?Math.min(e.sourceCode.getTokenBefore(s).range[0],t.range[1]):t.range[1],m=e.sourceCode.getLocFromIndex(d),h=a[a.length-1];if("newline"===p&&m.line===f)e.report({node:h,messageId:"shouldWrap",data:{name:t.type},*fix(e){yield e.insertTextAfter(h,"\n")}});else if("inline"===p&&m.line!==f){if(1===a.length&&!n.has(t.type)||e.sourceCode.getCommentsAfter(h).length>0)return;e.sourceCode.text.slice(h.range[1],d).includes("\n")&&e.report({node:h,messageId:"shouldNotWrap",data:{name:t.type},*fix(e){let n=1===a.length?"":i(t,h);yield r(e,h.range[1],d,n)}})}}let a={ObjectExpression:e=>{s(e,e.properties)},ArrayExpression:e=>{s(e,e.elements)},ImportDeclaration:e=>{s(e,e.specifiers[0]?.type==="ImportDefaultSpecifier"?e.specifiers.slice(1):e.specifiers)},ExportNamedDeclaration:e=>{s(e,e.specifiers)},FunctionDeclaration:e=>{s(e,e.params,e.returnType||e.body)},FunctionExpression:e=>{s(e,e.params,e.returnType||e.body)},ArrowFunctionExpression:e=>{e.params.length<=1||s(e,e.params,e.returnType||e.body)},CallExpression:e=>{s(e,e.arguments)},TSInterfaceDeclaration:e=>{s(e,e.body.body)},TSTypeLiteral:e=>{s(e,e.members)},TSTupleType:e=>{s(e,e.elementTypes)},TSFunctionType:e=>{s(e,e.params)},NewExpression:e=>{s(e,e.arguments)},TSTypeParameterDeclaration(e){s(e,e.params)},TSTypeParameterInstantiation(e){s(e,e.params)},ObjectPattern(e){s(e,e.properties,e.typeAnnotation)},ArrayPattern(e){s(e,e.elements)},JSXOpeningElement(e){e.attributes.some(e=>e.loc.start.line!==e.loc.end.line)||s(e,e.attributes)},JSONArrayExpression(e){o(e)||s(e,e.elements)},JSONObjectExpression(e){o(e)||s(e,e.properties)}};return Object.keys(t).forEach(e=>{!1===t[e]&&delete a[e]}),a}}),ey=em({name:"curly",meta:{type:"layout",docs:{description:"Enforce Anthony's style of curly bracket"},fixable:"whitespace",schema:[],messages:{missingCurlyBrackets:"Expect curly brackets"}},defaultOptions:[],create:e=>{function t(n,r=[]){[...n,...r].map(e=>(function(e){if(!e)return!1;if("BlockStatement"===e.type||["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"].includes(e.type))return!0;let t="ExpressionStatement"===e.type?e.expression:e;return t.loc.start.line!==t.loc.end.line})(e)).some(e=>e)&&n.map(t=>{"BlockStatement"!==t.type&&e.report({node:t,messageId:"missingCurlyBrackets",*fix(n){yield n.insertTextAfter(t,"\n}");let r=e.sourceCode.getTokenBefore(t);yield n.insertTextAfterRange(r.range," {")}})})}return{IfStatement(e){let n=e.parent;if("IfStatement"===n.type&&n.alternate===e)return;let r=[],i=[];!function e(t){r.push(t.consequent),t.test&&i.push(t.test),t.alternate&&("IfStatement"===t.alternate.type?e(t.alternate):r.push(t.alternate))}(e),t(r,i)},WhileStatement(e){t([e.body],[e.test])},DoWhileStatement(e){t([e.body],[e.test])},ForStatement(e){t([e.body])},ForInStatement(e){t([e.body])},ForOfStatement(e){t([e.body])}}}}),eD=em({name:"if-newline",meta:{type:"layout",docs:{description:"Newline after if"},fixable:"whitespace",schema:[],messages:{missingIfNewline:"Expect newline after if"}},defaultOptions:[],create:e=>({IfStatement(t){t.consequent&&"BlockStatement"!==t.consequent.type&&t.test.loc.end.line===t.consequent.loc.start.line&&e.report({node:t,loc:{start:t.test.loc.end,end:t.consequent.loc.start},messageId:"missingIfNewline",fix:e=>e.replaceTextRange([t.consequent.range[0],t.consequent.range[0]],"\n")})}})}),ek=em({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{importDedupe:"Expect no duplication in imports"}},defaultOptions:[],create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let n=new Set;t.specifiers.forEach(r=>{let i=r.local.name;n.has(i)&&e.report({node:t,loc:{start:r.loc.end,end:r.loc.start},messageId:"importDedupe",fix(t){let n=r.range[0],i=r.range[1];return","===e.getSourceCode().text[i]&&(i+=1),t.removeRange([n,i])}}),n.add(i)})}})}),eb=/^\s*$/,ex=em({name:"indent-unindent",meta:{type:"layout",docs:{description:"Enforce consistent indentation in `unindent` template tag"},fixable:"code",schema:[{type:"object",properties:{indent:{type:"number",minimum:0,default:2},tags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{"indent-unindent":"Consistent indentation in unindent tag"}},defaultOptions:[{}],create(e){let{tags:t=["$","unindent","unIndent"],indent:n=2}=e.options?.[0]??{};return{TaggedTemplateExpression(r){let i=r.tag;if(!i||"Identifier"!==i.type||!t.includes(i.name)||1!==r.quasi.quasis.length)return;let o=r.quasi.quasis[0],s=o.value.raw,a=e.sourceCode.getIndexFromLoc({line:r.loc.start.line,column:0}),u=e.sourceCode.text.slice(a).match(/^\s*/)?.[0]??"",l=u+" ".repeat(n),c=(function(e){let t=("string"==typeof e?e:e[0]).split("\n"),n=t.map(e=>eb.test(e)),r=t.reduce((e,t,r)=>{if(n[r])return e;let i=t.match(/^\s*/)?.[0].length;return void 0===i?e:Math.min(e,i)},1/0),i=0;for(;i<t.length&&n[i];)i++;let o=0;for(;o<t.length&&n[t.length-o-1];)o++;return t.slice(i,t.length-o).map(e=>e.slice(r)).join("\n")})([s]).split("\n").map(e=>l+e).join("\n");(c=`
2
+ ${c}
3
+ ${u}`)!==s&&e.report({node:o,messageId:"indent-unindent",fix:e=>e.replaceText(o,`\`${c}\``)})}}}}),ew=em({name:"no-import-dist",meta:{type:"problem",docs:{description:"Prevent importing modules in `dist` folder"},schema:[],messages:{noImportDist:"Do not import modules in `dist` folder, got {{path}}"}},defaultOptions:[],create:e=>({ImportDeclaration:t=>{var n;((n=t.source.value).startsWith(".")&&n.match(/\/dist(\/|$)/)||"dist"===n)&&e.report({node:t,messageId:"noImportDist",data:{path:t.source.value}})}})}),eF=em({name:"no-import-node-modules-by-path",meta:{type:"problem",docs:{description:"Prevent importing modules in `node_modules` folder by relative or absolute path"},schema:[],messages:{noImportNodeModulesByPath:"Do not import modules in `node_modules` folder by path"}},defaultOptions:[],create:e=>({ImportDeclaration:t=>{t.source.value.includes("/node_modules/")&&e.report({node:t,messageId:"noImportNodeModulesByPath"})},'CallExpression[callee.name="require"]':t=>{let n=t.arguments[0]?.value;"string"==typeof n&&n.includes("/node_modules/")&&e.report({node:t,messageId:"noImportNodeModulesByPath"})}})}),ev=em({name:"no-top-level-await",meta:{type:"problem",docs:{description:"Prevent using top-level await"},schema:[],messages:{NoTopLevelAwait:"Do not use top-level await"}},defaultOptions:[],create:e=>({AwaitExpression:t=>{let n=t.parent;for(;n;){if("FunctionDeclaration"===n.type||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type)return;n=n.parent}e.report({node:t,messageId:"NoTopLevelAwait"})}})}),eE={meta:{name:"antfu",version:"3.1.1"},rules:{"consistent-chaining":eh,"consistent-list-newline":eg,curly:ey,"if-newline":eD,"import-dedupe":ek,"indent-unindent":ex,"no-import-dist":ew,"no-import-node-modules-by-path":eF,"no-top-level-await":ev,"no-ts-export-equal":em({name:"no-ts-export-equal",meta:{type:"problem",docs:{description:"Do not use `exports =`"},schema:[],messages:{noTsExportEqual:"Use ESM `export default` instead"}},defaultOptions:[],create:e=>{let t=e.getFilename().split(".").pop();return t&&["ts","tsx","mts","cts"].includes(t)?{TSExportAssignment(t){e.report({node:t,messageId:"noTsExportEqual"})}}:{}}}),"top-level-function":em({name:"top-level-function",meta:{type:"problem",docs:{description:"Enforce top-level functions to be declared with function keyword"},fixable:"code",schema:[],messages:{topLevelFunctionDeclaration:"Top-level functions should be declared with function keyword"}},defaultOptions:[],create:e=>({VariableDeclaration(t){if("Program"!==t.parent.type&&"ExportNamedDeclaration"!==t.parent.type||1!==t.declarations.length||"const"!==t.kind||t.declare)return;let n=t.declarations[0];if(n.init?.type!=="ArrowFunctionExpression"&&n.init?.type!=="FunctionExpression"||n.id?.type!=="Identifier"||n.id.typeAnnotation||"BlockStatement"!==n.init.body.type&&n.id?.loc.start.line===n.init?.body.loc.end.line)return;let r=n.init,i=n.init.body,o=n.id;e.report({node:t,loc:{start:o.loc.start,end:i.loc.start},messageId:"topLevelFunctionDeclaration",fix(n){let s=e.getSourceCode().text,a=s.slice(o.range[0],o.range[1]),u=r.params.length?s.slice(r.params[0].range[0],r.params[r.params.length-1].range[1]):"",l="BlockStatement"===i.type?s.slice(i.range[0],i.range[1]):`{
4
+ return ${s.slice(i.range[0],i.range[1])}
5
+ }`,c=r.typeParameters?s.slice(r.typeParameters.range[0],r.typeParameters.range[1]):"",p=r.returnType?s.slice(r.returnType.range[0],r.returnType.range[1]):"",f=r.async?"async ":"",d=`${f}function ${a} ${c}(${u})${p} ${l}`;return n.replaceTextRange([t.range[0],t.range[1]],d)}})}})})}},eC=[".js",".jsx",".mjs",".cjs"],eA={plugins:{jsonc:v.memo(z,"eslint-plugin-jsonc")},languageOptions:{parser:U}},eS={"jsonc/array-bracket-spacing":["error","never"],"jsonc/comma-dangle":["error","never"],"jsonc/comma-style":["error","last"],"jsonc/indent":["error",2],"jsonc/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"jsonc/object-curly-newline":"off","jsonc/object-curly-spacing":["error","always"],"jsonc/object-property-newline":["error",{allowMultiplePropertiesPerLine:!0}],"jsonc/quote-props":"error","jsonc/quotes":"error"},eT={"no-dupe-class-members":"off","@typescript-eslint/no-dupe-class-members":"off","no-redeclare":"off","@typescript-eslint/no-redeclare":"off","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"class-methods-use-this":"off","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[]}],"default-param-last":"off","@typescript-eslint/default-param-last":"error","dot-notation":"off","@typescript-eslint/dot-notation":["error",{allowKeywords:!0}],"no-implied-eval":"off","@typescript-eslint/no-implied-eval":"error","no-invalid-this":"off","@typescript-eslint/no-invalid-this":"off","no-loop-func":"off","@typescript-eslint/no-loop-func":"error","sukka/no-return-await":"off","@typescript-eslint/return-await":"error","no-unused-expressions":"off","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"prefer-promise-reject-errors":"off","@typescript-eslint/prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"require-await":"off","@typescript-eslint/require-await":"error","no-empty-function":"off","@typescript-eslint/no-empty-function":"error","no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error",camelcase:"off","no-array-constructor":"off","@typescript-eslint/no-array-constructor":"error","no-use-before-define":"off","@typescript-eslint/no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-imports":"off"},eB=[".ts",".cts",".mts",".tsx",".d.ts"],eI=[...eB,".js",".jsx",".mjs",".cjs"];async function eq(e){if(!Q.isCI&&A.stdout.isTTY&&!v.isPackageExists(e,"string"==typeof __dirname?__dirname:void 0)){let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.i});await t({message:`Package is required for this config: ${e}. Do you want to install it?`})&&await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.b}).then(t=>t.installPackage(e,{dev:!0}))}return Promise.resolve(require(e))}const eL={};function ej(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eO(e.children,t,n)}return Array.isArray(e)?eO(e,t,n):""}function eO(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ej(e[i],t,n);return r.join("")}const eR={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},eP={}.hasOwnProperty;function eN(e){return!!eP.call(eR,e)&&eR[e]}function eM(e,t,n,r){let i,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function e_(e,t){return e.length>0?(eM(e,e.length,0,t),e):t}const ez={}.hasOwnProperty;function eU(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ez.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ez.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eM(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}function eV(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function eH(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const e$=e4(/[A-Za-z]/),eW=e4(/[\dA-Za-z]/),eG=e4(/[#-'*+\--9=?A-Z^-~]/);function eJ(e){return null!==e&&(e<32||127===e)}const eQ=e4(/\d/),eZ=e4(/[\dA-Fa-f]/),eX=e4(/[!-/:-@[-`{-~]/);function eY(e){return null!==e&&e<-2}function eK(e){return null!==e&&(e<0||32===e)}function e0(e){return -2===e||-1===e||32===e}const e1=e4(/\p{P}|\p{S}/u),e2=e4(/\s/);function e4(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function e3(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return e0(r)?(e.enter(n),function r(s){return e0(s)&&o++<i?(e.consume(s),r):(e.exit(n),t(s))}(r)):t(r)}}const e9={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e3(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eY(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},e5={tokenize:function(e){let t,n,r,i=this,o=[],s=0;return a;function a(t){if(s<o.length){let n=o[s];return i.containerState=n[1],e.attempt(n[0].continuation,u,l)(t)}return l(t)}function u(e){if(s++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(s);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eM(i.events,o+1,0,i.events.slice(r)),i.events.length=a,l(e)}return a(e)}function l(n){if(s===o.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(e6,c,p)(n)}function c(e){return t&&y(),g(s),f(e)}function p(e){return i.parser.lazy[i.now().line]=s!==o.length,r=i.now().offset,m(e)}function f(t){return i.containerState={},e.attempt(e6,d,m)(t)}function d(e){return s++,o.push([i.currentConstruct,i.containerState]),f(e)}function m(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){h(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eY(n)?(e.consume(n),h(e.exit("chunkFlow")),s=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function h(e,o){let a=i.sliceStream(e);if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,u=a;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(g(s),o=a;o<i.events.length;)i.events[o][1].end={...n},o++;eM(i.events,u+1,0,i.events.slice(a)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},e6={tokenize:function(e,t,n){return e3(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function e8(e){return null===e||eK(e)||e2(e)?1:e1(e)?2:void 0}function e7(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const te={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,u,l,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p={...e[n][1].end},f={...e[c][1].start};tt(p,-a),tt(f,a),o={type:a>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[c][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=e_(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=e_(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=e_(u,e7(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=e_(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,u=e_(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,eM(e,n-1,c-n+3,u),c=n+u.length-l-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=e8(i);return function(s){return n=s,e.enter("attentionSequence"),function s(a){if(a===n)return e.consume(a),s;let u=e.exit("attentionSequence"),l=e8(a),c=!l||2===l&&o||r.includes(a),p=!o||2===o&&l||r.includes(i);return u._open=!!(42===n?c:c&&(o||!p)),u._close=!!(42===n?p:p&&(l||!c)),t(a)}(s)}}};function tt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tn={partial:!0,tokenize:function(e,t,n){return function(t){return e0(t)?e3(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eY(e)?t(e):n(e)}}},tr={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e0(t)?e3(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tr,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e0(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},ti={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eX(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},to={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,i=eW,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eZ,l):(e.enter("characterReferenceValue"),r=7,i=eQ,l(t))}function l(a){if(59===a&&s){let r=e.exit("characterReferenceValue");return i!==eW||eN(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&s++<r?(e.consume(a),l):n(a)}}},ts={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ta={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};function s(t){return e.enter("codeFencedFence"),e0(t)?e3(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),e0(i)?e3(e,l,"whitespace")(i):l(i)):n(i)}(t)):n(t)}function l(r){return null===r||eY(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,a=0;return function(t){var o=t;let l=i.events[i.events.length-1];return s=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),e0(i)?e3(e,u,"whitespace")(i):u(i))}(o)};function u(o){return null===o||eY(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(ts,c,m)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):e0(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e3(e,l,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function l(t){return null===t||eY(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,m,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return s>0&&e0(t)?e3(e,d,"linePrefix",s+1)(t):d(t)}function d(t){return null===t||eY(t)?e.check(ts,c,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eY(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},tu={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),e3(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eY(n)?e.attempt(tl,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eY(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},tl={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):e3(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eY(e)?i(e):n(e)}}};class tc{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&tp(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),tp(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),tp(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);tp(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);tp(this.left,t.reverse())}}}function tp(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function tf(e){let t,n,r,i,o,s,a,u={},l=-1,c=new tc(e);for(;++l<c.length;){for(;l in u;)l=u[l];if(t=c.get(l),l&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(l-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(u,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],s=t-1,a=[],u=i._tokenizer;!u&&(u=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));let l=u.events,c=[],p={},f=-1,d=i,m=0,h=0,g=[0];for(;d;){for(;e.get(++s)[1]!==d;);a.push(s),!d._tokenizer&&(n=o.sliceStream(d),d.next||n.push(null),r&&u.defineSkip(d.start),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(n),d._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++f<l.length;)"exit"===l[f][0]&&"enter"===l[f-1][0]&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(h=f+1,g.push(h),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(u.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),f=g.length;f--;){let t=l.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)p[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return p}(c,l)),l=u[l],a=!0);else if(t[1]._container){for(r=l,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,l)).unshift(t),c.splice(n,l-n+1,o))}}return eM(e,0,1/0,c.slice(0)),!a}const td={resolve:function(e){return tf(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eY(t)?e.check(tm,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tm={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e3(e,i,"linePrefix")};function i(i){if(null===i||eY(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function th(e,t,n,r,i,o,s,a,u){let l=u||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),p):null===t||32===t||41===t||eJ(t)?n(t):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(t))};function p(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),p(t)):null===t||60===t||eY(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function m(i){return!c&&(null===i||41===i||eK(i))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i)):c<l&&40===i?(e.consume(i),c++,m):41===i?(e.consume(i),c--,m):null===i||32===i||40===i||eJ(i)?n(i):(e.consume(i),92===i?h:m)}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function tg(e,t,n,r,i,o){let s,a=this,u=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(p){return u>999||null===p||91===p||93===p&&!s||94===p&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):93===p?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):eY(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||eY(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),s||(s=!e0(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function ty(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a):n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===s?(e.exit(o),a(s)):null===t?n(t):eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e3(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===s||null===t||eY(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return t===s||92===t?(e.consume(t),l):l(t)}}function tD(e,t){let n;return function r(i){return eY(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e0(i)?e3(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const tk={partial:!0,tokenize:function(e,t,n){return function(t){return eK(t)?tD(e,r)(t):n(t)};function r(t){return ty(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e0(t)?e3(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eY(e)?t(e):n(e)}}},tb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tx=["pre","script","style","textarea"],tw={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tn,t,n)}}},tF={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tv={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eM(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);let u={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=e_(o=[["enter",u,t],["enter",l,t]],e.slice(r+1,r+a+3)),o=e_(o,[["enter",c,t]]),o=e_(o,e7(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=e_(o,[["exit",c,t],e[i-2],e[i-1],["exit",l,t]]),o=e_(o,e.slice(i+1)),o=e_(o,[["exit",u,t]]),eM(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(eH(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tE,l,i?l:c)(t):91===t?e.attempt(tC,l,i?u:c)(t):i?l(t):c(t)}function u(t){return e.attempt(tA,l,c)(t)}function l(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},tE={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eK(t)?tD(e,i)(t):i(t)}function i(t){return 41===t?l(t):th(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eK(t)?tD(e,a)(t):l(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?ty(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):l(t)}function u(t){return eK(t)?tD(e,l)(t):l(t)}function l(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tC={tokenize:function(e,t,n){let r=this;return function(t){return tg.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(eH(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tA={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tS={name:"labelStartImage",resolveAll:tv.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tT={name:"labelStartLink",resolveAll:tv.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tB={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e3(e,t,"linePrefix")}}},tI={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var s;return e.enter("thematicBreak"),r=s=o,function o(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e0(n)?e3(e,o,"whitespace")(n):o(n))}(s)):i>=3&&(null===s||eY(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},tq={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(tn,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,e3(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e0(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tj,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,e3(e,e.attempt(tq,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eQ(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tI,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eQ(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(tn,r.interrupt?n:u,e.attempt(tL,c,l))}function u(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function l(t){return e0(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tL={partial:!0,tokenize:function(e,t,n){let r=this;return e3(e,function(e){let i=r.events[r.events.length-1];return!e0(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tj={partial:!0,tokenize:function(e,t,n){let r=this;return e3(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tO={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let a,u=i.events.length;for(;u--;)if("lineEnding"!==i.events[u][1].type&&"linePrefix"!==i.events[u][1].type&&"content"!==i.events[u][1].type){a="paragraph"===i.events[u][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e0(n)?e3(e,o,"lineSuffix")(n):o(n))}(s)):n(t)};function o(r){return null===r||eY(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tR={tokenize:function(e){let t=this,n=e.attempt(tn,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,e3(e,e.attempt(this.parser.constructs.flow,r,e.attempt(td,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},tP={resolveAll:tz()},tN=t_("string"),tM=t_("text");function t_(e){return{resolveAll:tz("text"===e?tU:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return u(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tz(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),s=o.length,a=-1,u=0;for(;s--;){let e=o[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)u++,a--;if(a)break;a=-1}else if(-2===e)r=!0,u++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){let o={type:n===e.length||r||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:i.start._bufferIndex+a,_index:i.start._index+s,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}var tV=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,tg.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=eH(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return eK(t)?tD(e,a)(t):a(t)}function a(t){return th(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(tk,l,l)(t)}function l(t){return e0(t)?e3(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eY(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},disable:{null:[]},document:{42:tq,43:tq,45:tq,48:tq,49:tq,50:tq,51:tq,52:tq,53:tq,54:tq,55:tq,56:tq,57:tq,62:tr},flow:{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eM(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eK(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eY(r)?(e.exit("atxHeading"),t(r)):e0(r)?e3(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eK(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:tI,45:[tO,tI],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,s,a,u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),l};function l(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),r=3,u.interrupt?t:q):e$(s)?(e.consume(s),o=String.fromCharCode(s),m):n(s)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,s=0,f):e$(i)?(e.consume(i),r=4,u.interrupt?t:q):n(i)}function p(r){return 45===r?(e.consume(r),u.interrupt?t:q):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?u.interrupt?t:v:f:n(r)}function d(t){return e$(t)?(e.consume(t),o=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||eK(s)){let a=47===s,l=o.toLowerCase();return!a&&!i&&tx.includes(l)?(r=1,u.interrupt?t(s):v(s)):tb.includes(o.toLowerCase())?(r=6,a)?(e.consume(s),h):u.interrupt?t(s):v(s):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(s):i?function t(n){return e0(n)?(e.consume(n),t):w(n)}(s):g(s))}return 45===s||eW(s)?(e.consume(s),o+=String.fromCharCode(s),m):n(s)}function h(r){return 62===r?(e.consume(r),u.interrupt?t:v):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||e$(t)?(e.consume(t),y):e0(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eW(t)?(e.consume(t),y):D(t)}function D(t){return 61===t?(e.consume(t),k):e0(t)?(e.consume(t),D):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):e0(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eK(n)?D(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,x):null===t||eY(t)?n(t):(e.consume(t),b)}function x(e){return 47===e||62===e||e0(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),F):n(t)}function F(t){return null===t||eY(t)?v(t):e0(t)?(e.consume(t),F):n(t)}function v(t){return 45===t&&2===r?(e.consume(t),S):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),q):93===t&&5===r?(e.consume(t),I):eY(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tw,j,E)(t)):null===t||eY(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),v)}function E(t){return e.check(tF,C,j)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||eY(t)?E(t):(e.enter("htmlFlowData"),v(t))}function S(t){return 45===t?(e.consume(t),q):v(t)}function T(t){return 47===t?(e.consume(t),o="",B):v(t)}function B(t){if(62===t){let n=o.toLowerCase();return tx.includes(n)?(e.consume(t),L):v(t)}return e$(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),B):v(t)}function I(t){return 93===t?(e.consume(t),q):v(t)}function q(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),q):v(t)}function L(t){return null===t||eY(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),L)}function j(n){return e.exit("htmlFlow"),t(n)}}},61:tO,95:tI,96:ta,126:ta},flowInitial:{[-2]:tu,[-1]:tu,32:tu},insideSpan:{null:[te,tP]},string:{38:to,92:ti},text:{[-5]:tB,[-4]:tB,[-3]:tB,33:tS,38:to,42:te,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return e$(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||eW(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||eW(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eJ(r)?n(r):(e.consume(r),s)}function a(t){return 64===t?(e.consume(t),u):eG(t)?(e.consume(t),a):n(t)}function u(i){return eW(i)?function i(o){return 46===o?(e.consume(o),r=0,u):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eW(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),b):63===t?(e.consume(t),D):e$(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),i=0,d):e$(t)?(e.consume(t),y):n(t)}function l(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):eY(t)?(o=c,B(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?T(e):45===e?p(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):eY(t)?(o=m,B(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?T(t):eY(t)?(o=y,B(t)):(e.consume(t),y)}function D(t){return null===t?n(t):63===t?(e.consume(t),k):eY(t)?(o=D,B(t)):(e.consume(t),D)}function k(e){return 62===e?T(e):D(e)}function b(t){return e$(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||eW(t)?(e.consume(t),x):function t(n){return eY(n)?(o=t,B(n)):e0(n)?(e.consume(n),t):T(n)}(t)}function w(t){return 45===t||eW(t)?(e.consume(t),w):47===t||62===t||eK(t)?F(t):n(t)}function F(t){return 47===t?(e.consume(t),T):58===t||95===t||e$(t)?(e.consume(t),v):eY(t)?(o=F,B(t)):e0(t)?(e.consume(t),F):T(t)}function v(t){return 45===t||46===t||58===t||95===t||eW(t)?(e.consume(t),v):function t(n){return 61===n?(e.consume(n),E):eY(n)?(o=t,B(n)):e0(n)?(e.consume(n),t):F(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):eY(t)?(o=E,B(t)):e0(t)?(e.consume(t),E):(e.consume(t),A)}function C(t){return t===r?(e.consume(t),r=void 0,S):null===t?n(t):eY(t)?(o=C,B(t)):(e.consume(t),C)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eK(t)?F(t):(e.consume(t),A)}function S(e){return 47===e||62===e||eK(e)?F(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return e0(t)?e3(e,q,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):q(t)}function q(t){return e.enter("htmlTextData"),o(t)}}}],91:tT,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eY(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ti],93:tv,95:te,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),s):96===u?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",a(s))}(u)):eY(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(u))}function a(t){return null===t||32===t||96===t||eY(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),a)}}}}});const tH=/[\0\t\n\r]/g,t$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tW(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eV(n.slice(t?2:1),t?16:10)}return eN(n)||e}function tG(e){return e&&"object"==typeof e?"position"in e||"type"in e?tQ(e.position):"start"in e||"end"in e?tQ(e):"line"in e||"column"in e?tJ(e):"":""}function tJ(e){return tZ(e&&e.line)+":"+tZ(e&&e.column)}function tQ(e){return tJ(e&&e.start)+"-"+tJ(e&&e.end)}function tZ(e){return e&&"number"==typeof e?e:1}const tX={}.hasOwnProperty;function tY(e,t,n){let r,i,o,s;return"string"!=typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:l,autolinkEmail:l,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:l,characterReference:l,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:l,data:l,codeFlowValue:l,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(h),hardBreakTrailing:r(h),htmlFlow:r(g,i),htmlFlowData:l,htmlText:r(g,i),htmlTextData:l,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(D,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(D),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=eV(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=eN(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tK(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=eH(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t$,tW),n.identifier=eH(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tK(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(l.call(this,e),c.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=eH(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tX.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},s={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:u,data:n},l=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?l.push(c):c=function(e,t,n){let r,i,o,s,a=t-1,u=-1,l=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?u++:u--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||u||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",l=!0),t[1].type="lineEnding",i=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=l,n}(e,l.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tX.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},s),e[c][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||t0).call(s,void 0,e[0])}for(r.position={start:tK(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tK(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tK(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||t0).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+tG({start:e.start,end:e.end})+"): it’s not open");n.position.end=tK(e.end)}function u(){return ej(this.stack.pop(),"boolean"!=typeof eL.includeImageAlt||eL.includeImageAlt,"boolean"!=typeof eL.includeHtml||eL.includeHtml)}function l(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tK(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tK(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function h(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function D(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!tf(e););return e}((function(e){let t={constructs:eU([tV,...(e||{}).extensions||[]]),content:n(e9),defined:[],document:n(e5),flow:n(tR),lazy:{},string:n(tN),text:n(tM)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],s=[],a=[],u={attempt:m(function(e,t){h(e,t.from)}),check:m(d),consume:function(e){eY(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),l.events.push(["enter",n,l]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),l.events.push(["exit",t,l]),t},interrupt:m(d,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,s=e[r];if("string"==typeof s)o=s;else switch(s){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(s)}n=-2===s,i.push(o)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(s=e_(s,e),function(){let e;for(;r._index<s.length;){let n=s[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==s[s.length-1])?[]:(h(t,0),l.events=e7(o,l.events,l),l.events)}},c=t.tokenize.call(l,u);return t.resolveAll&&o.push(t),l;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,s)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function d(e,t){t.restore()}function m(e,t){return function(n,i,o){var s;let c,p,d,m;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function h(e){return(c=e,p=0,0===e.length)?o:y(e[p])}function y(e){return function(n){return(m=function(){let e=f(),t=l.previous,n=l.currentConstruct,i=l.events.length,o=Array.from(a);return{from:i,restore:function(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,a=o,g()}}}(),d=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name))?k():e.tokenize.call(t?Object.assign(Object.create(l),t):l,u,D,k)(n)}}function D(t){return e(d,m),i}function k(e){return(m.restore(),++p<c.length)?y(c[p]):o}}}function h(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eM(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(n).document().write((i=1,o="",s=!0,function(e,t,n){let a,u,l,c,p,f=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,o="",s&&(65279===e.charCodeAt(0)&&l++,s=void 0);l<e.length;){if(tH.lastIndex=l,c=(a=tH.exec(e))&&void 0!==a.index?a.index:e.length,p=e.charCodeAt(c),!a){o=e.slice(l);break}if(10===p&&l===c&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),l<c&&(f.push(e.slice(l,c)),i+=c-l),p){case 0:f.push(65533),i++;break;case 9:for(u=4*Math.ceil(i/4),f.push(-2);i++<u;)f.push(-1);break;case 10:f.push(-4),i=1;break;default:r=!0,i=1}l=c+1}return n&&(r&&f.push(-5),o&&f.push(o),f.push(null)),f})(e,t,!0))))}function tK(e){return{line:e.line,column:e.column,offset:e.offset}}function t0(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+tG({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tG({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+tG({start:t.start,end:t.end})+") is still open")}const t1=new Set(["eol-last","unicode-bom"]),t2=new Map,t4=/^[>\s]*/u;function t3(e){return e.position.start.offset-e.position.start.column+1}function t9(e,t){return t4.exec(e.slice(t3(t)))[0]}const t5=/filename=(?<quote>["'])(?<filename>.*?)\1/u,t6={javascript:"js",ecmascript:"js",typescript:"ts",markdown:"md"};function t8(e,t){return{range:t.range.map(t=>{let n=1;for(;n<e.rangeMap.length&&e.rangeMap[n].js<=t;)n++;return t+e.rangeMap[n-1].md}),text:t.text.replace(/\n/gu,`
6
+ ${e.baseIndentText}`)}}function t7(e){return e&&!t1.has(e.ruleId)}var ne={},nt={exports:{}},nn={exports:{}};function nr(){if(h)return m;h=1;var e,t,n,r,g,y,D,k,b={}.toString;function x(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return e=function(){if(o)return i;o=1;var e,t,n={}.toString;function r(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return e=r(function(e,t){return e.apply(null,t)}),t=r(function(e,t,n){return e(n,t)}),i={curry:function(e){return r(e)},flip:t,fix:function(e){var t;return t=function(t){return function(){return e(t(t)).apply(null,arguments)}},function(){return e(t(t)).apply(null,arguments)}},apply:e,over:r(function(e,t,n,r){return e(t(n),t(r))}),memoize:function(e){var t;return t={},function(){var r,i,o,s,a;for(i=0,r=[],o=arguments.length;i<o;++i)r.push(arguments[i]);return t[s=(function(){var e,t,i=[];for(e=0,t=r.length;e<t;++e)i.push((a=r[e])+n.call(a).slice(8,-1));return i})().join("")]=s in t?t[s]:e.apply(null,r)}}}}(),t=function(){if(a)return s;a=1;var e,t,n,r,i,o,u,l,c,p,f,d,m,h,g,y,D,k,b,x,w,F,v,E,C,A,S,T,B,I,q,L,j,O,R,P,N,M,_,z,U,V,H,$,W,G,J,Q,Z,X,Y={}.toString;function K(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}function ee(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}function et(e){return!e}return e=K(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)e(t[n]);return t}),t=K(function(e,t){var n,r,i=[];for(n=0,r=t.length;n<r;++n)i.push(e(t[n]));return i}),n=K(function(e,t){var n,r,i,o=[];for(n=0,r=t.length;n<r;++n)e(i=t[n])&&o.push(i);return o}),r=K(function(e,t){var n,r,i,o=[];for(n=0,r=t.length;n<r;++n)e(i=t[n])||o.push(i);return o}),i=K(function(e,t){var n,r;return n=J(e,t),r=t.slice(),null!=n&&r.splice(n,1),r}),o=K(function(e,t){var n,r,i,o,s;for(i=0,n=[],r=[],o=t.length;i<o;++i)(e(s=t[i])?n:r).push(s);return[n,r]}),u=K(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(e(i=t[n]))return i}),l=c=function(e){return e[0]},p=K(function(e,t){var n,r,i,o,s,a=[];for(r=0,n=[],i=t.length;r<i;++r)ee(s=e(o=t[r]),n)||(n.push(s),a.push(o));return a}),f=d=K(function(e,t,n){var r,i;for(r=0,i=n.length;r<i;++r)t=e(t,n[r]);return t}),m=h=K(function(e,t){return f(e,t[0],t.slice(1))}),g=K(function(e,t,n){var r;for(r=n.length-1;r>=0;--r)t=e(n[r],t);return t}),y=K(function(e,t){return g(e,t[t.length-1],t.slice(0,-1))}),D=K(function(e,t){var n,r,i;for(n=[],r=t;null!=(i=e(r));)n.push(i[0]),r=i[1];return n}),k=K(function(e,t){return[].concat.apply([],function(){var n,r,i=[];for(n=0,r=t.length;n<r;++n)i.push(e(t[n]));return i}())}),b=function(e){var t;return[].concat.apply([],function(){var n,r,i=[];for(n=0,r=e.length;n<r;++n)t=e[n],"Array"===Y.call(t).slice(8,-1)?i.push(b(t)):i.push(t);return i}())},x=K(function(e,t){var n,r,i,o;for(r=0,n={},i=t.length;r<i;++r)(o=e(t[r]))in n?n[o]+=1:n[o]=1;return n}),w=K(function(e,t){var n,r,i,o,s;for(r=0,n={},i=t.length;r<i;++r)(s=e(o=t[r]))in n?n[s].push(o):n[s]=[o];return n}),F=K(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(e(t[n]))return!0;return!1}),v=K(function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)if(!e(t[n]))return!1;return!0}),E=K(function(e,t){return t.concat().sort(e)}),C=K(function(e,t){return t.concat().sort(function(t,n){return e(t)>e(n)?1:e(t)<e(n)?-1:0})}),A=S=function(e){var t,n,r;for(n=0,t=0,r=e.length;n<r;++n)t+=e[n];return t/e.length},T=K(function(e,t){var n,r,i,o,s;for(r=0,n=t[0],o=(i=t.slice(1)).length;r<o;++r)e(s=i[r])>e(n)&&(n=s);return n}),B=K(function(e,t){var n,r,i,o,s;for(r=0,n=t[0],o=(i=t.slice(1)).length;r<o;++r)e(s=i[r])<e(n)&&(n=s);return n}),I=q=K(function(e,t,n){var r,i;return r=t,[t].concat(function(){var t,o,s=[];for(t=0,o=n.length;t<o;++t)i=n[t],s.push(r=e(r,i));return s}())}),L=j=K(function(e,t){if(t.length)return I(e,t[0],t.slice(1))}),O=K(function(e,t,n){return I(e,t,n=n.concat().reverse()).reverse()}),R=K(function(e,t){if(t.length)return I(e,(t=t.concat().reverse())[0],t.slice(1)).reverse()}),P=K(function(e,t,n){return n.slice(e,t)}),N=K(function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)}),M=K(function(e,t){return e<=0?t:t.slice(e)}),_=K(function(e,t){return[N(e,t),M(e,t)]}),z=K(function(e,t){var n,r;if(!(n=t.length))return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(0,r)}),U=K(function(e,t){var n,r;if(!(n=t.length))return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(r)}),V=K(function(e,t){return[z(e,t),U(e,t)]}),H=K(function(e,t){return V(function(){var e=arguments;return function(){var t,n;for(t=1,n=e[0].apply(this,arguments);t<e.length;++t)n=e[t](n);return n}}(e,et),t)}),$=K(function(e,t){var n,r,i,o,s,a;for(i=0,n=[],r=t.length,o=e.length;i<o&&(s=i,a=e[i],s!==r);++i)n.push([a,t[s]]);return n}),W=K(function(e,t,n){var r,i,o,s,a,u;for(o=0,r=[],i=n.length,s=t.length;o<s&&(a=o,u=t[o],a!==i);++o)r.push(e(u,n[a]));return r}),G=K(function(e,t){return e<0?t[t.length+e]:t[e]}),J=K(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=n,t[n]===e)return i}),Q=K(function(e,t){var n,r,i,o=[];for(n=0,r=t.length;n<r;++n)i=n,t[n]===e&&o.push(i);return o}),Z=K(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=n,e(t[n]))return i}),X=K(function(e,t){var n,r,i,o=[];for(n=0,r=t.length;n<r;++n)i=n,e(t[n])&&o.push(i);return o}),s={each:e,map:t,filter:n,compact:function(e){var t,n,r,i=[];for(t=0,n=e.length;t<n;++t)(r=e[t])&&i.push(r);return i},reject:r,remove:i,partition:o,find:u,head:l,first:c,tail:function(e){if(e.length)return e.slice(1)},last:function(e){return e[e.length-1]},initial:function(e){if(e.length)return e.slice(0,-1)},empty:function(e){return!e.length},reverse:function(e){return e.concat().reverse()},difference:function(e){var t,n,r,i,o,s,a,u;for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);i=[];e:for(n=0,o=e.length;n<o;++n){for(a=0,s=e[n],u=t.length;a<u;++a)if(ee(s,t[a]))continue e;i.push(s)}return i},intersection:function(e){var t,n,r,i,o,s,a,u;for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);i=[];e:for(n=0,o=e.length;n<o;++n){for(a=0,s=e[n],u=t.length;a<u;++a)if(!ee(s,t[a]))continue e;i.push(s)}return i},union:function(){var e,t,n,r,i,o,s,a,u;for(t=0,e=[],n=arguments.length;t<n;++t)e.push(arguments[t]);for(t=0,r=[],i=e.length;t<i;++t)for(s=0,a=(o=e[t]).length;s<a;++s)ee(u=o[s],r)||r.push(u);return r},countBy:x,groupBy:w,fold:f,fold1:m,foldl:d,foldl1:h,foldr:g,foldr1:y,unfoldr:D,andList:function(e){var t,n;for(t=0,n=e.length;t<n;++t)if(!e[t])return!1;return!0},orList:function(e){var t,n;for(t=0,n=e.length;t<n;++t)if(e[t])return!0;return!1},any:F,all:v,unique:function(e){var t,n,r,i;for(n=0,t=[],r=e.length;n<r;++n)ee(i=e[n],t)||t.push(i);return t},uniqueBy:p,sort:function(e){return e.concat().sort(function(e,t){return e>t?1:e<t?-1:0})},sortWith:E,sortBy:C,sum:function(e){var t,n,r;for(n=0,t=0,r=e.length;n<r;++n)t+=e[n];return t},product:function(e){var t,n,r;for(n=0,t=1,r=e.length;n<r;++n)t*=e[n];return t},mean:A,average:S,concat:function(e){return[].concat.apply([],e)},concatMap:k,flatten:b,maximum:function(e){var t,n,r,i,o;for(n=0,t=e[0],i=(r=e.slice(1)).length;n<i;++n)(o=r[n])>t&&(t=o);return t},minimum:function(e){var t,n,r,i,o;for(n=0,t=e[0],i=(r=e.slice(1)).length;n<i;++n)(o=r[n])<t&&(t=o);return t},maximumBy:T,minimumBy:B,scan:I,scan1:L,scanl:q,scanl1:j,scanr:O,scanr1:R,slice:P,take:N,drop:M,splitAt:_,takeWhile:z,dropWhile:U,span:V,breakList:H,zip:$,zipWith:W,zipAll:function(){var e,t,n,r,i,o,s,a,u,l,c=[];for(t=0,e=[],n=arguments.length;t<n;++t)e.push(arguments[t]);for(t=0,r=void 0,i=e.length;t<i;++t)r<=(s=(o=e[t]).length)||(r=s);for(t=0;t<r;++t){for(l=0,a=t,u=[],i=e.length;l<i;++l)o=e[l],u.push(o[a]);c.push(u)}return c},zipAllWith:function(e){var t,n,r,i,o,s,a,u,l=[];for(n=1,t=[],r=arguments.length;n<r;++n)t.push(arguments[n]);for(n=0,i=void 0,o=t.length;n<o;++n)i<=(a=(s=t[n]).length)||(i=a);for(n=0;n<i;++n)u=n,l.push(e.apply(null,function(){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push((s=t[e])[u]);return r}()));return l},at:G,elemIndex:J,elemIndices:Q,findIndex:Z,findIndices:X}}(),n=function(){var e,t,n,r,i;if(l)return u;function o(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return l=1,e=o(function(e,t){var n,r,i,o={};for(n=0,r=e.length;n<r;++n)i=n,o[e[n]]=t[i];return o}),t=o(function(e,t){var n;for(n in t)e(t[n]);return t}),n=o(function(e,t){var n,r,i={};for(n in t)r=t[n],i[n]=e(r);return i}),r=o(function(e,t){var n,r,i={};for(n in t)e(r=t[n])&&(i[n]=r);return i}),i=o(function(e,t){var n,r,i={};for(n in t)e(r=t[n])||(i[n]=r);return i}),u={values:function(e){var t,n,r=[];for(t in e)n=e[t],r.push(n);return r},keys:function(e){var t,n=[];for(t in e)n.push(t);return n},pairsToObj:function(e){var t,n,r,i={};for(t=0,n=e.length;t<n;++t)i[(r=e[t])[0]]=r[1];return i},objToPairs:function(e){var t,n,r=[];for(t in e)n=e[t],r.push([t,n]);return r},listsToObj:e,objToLists:function(e){var t,n,r,i;for(r in t=[],n=[],e)i=e[r],t.push(r),n.push(i);return[t,n]},empty:function(e){var t;for(t in e)return!1;return!0},each:t,map:n,filter:r,compact:function(e){var t,n,r={};for(t in e)(n=e[t])&&(r[t]=n);return r},reject:i,partition:o(function(e,t){var n,r,i,o;for(i in n={},r={},t)(e(o=t[i])?n:r)[i]=o;return[n,r]}),find:o(function(e,t){var n,r;for(n in t)if(e(r=t[n]))return r})}}(),r=function(){var e;if(p)return c;function t(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return p=1,e=t(function(e,t){return t.split(e)}),c={split:e,join:t(function(e,t){return t.join(e)}),lines:function(e){return e.length?e.split("\n"):[]},unlines:function(e){return e.join("\n")},words:function(e){return e.length?e.split(/[ ]+/):[]},unwords:function(e){return e.join(" ")},chars:function(e){return e.split("")},unchars:function(e){return e.join("")},reverse:function(e){return e.split("").reverse().join("")},repeat:t(function(e,t){var n,r;for(r=0,n="";r<e;++r)n+=t;return n}),capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},camelize:function(e){return e.replace(/[-_]+(.)?/g,function(e,t){return(null!=t?t:"").toUpperCase()})},dasherize:function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,function(e,t,n){return t+"-"+(n.length>1?n:n.toLowerCase())}).replace(/^([A-Z]+)/,function(e,t){return t.length>1?t+"-":t.toLowerCase()})}}}(),g=function(){var e,t,n,r,i,o,s,a,u,l,c,p,m,h,g,y,D,k,b,x,w,F,v,E;if(d)return f;function C(e,t){var n,r=function(t){return e.length>1?function(){var i=t?t.concat():[];return n=this,i.push.apply(i,arguments)<e.length&&arguments.length?r.call(n,i):e.apply(n,i)}:e};return r()}return d=1,e=C(function(e,t){return e>t?e:t}),t=C(function(e,t){return e<t?e:t}),n=Math.abs,r=C(function(e,t){return~~(e/t)}),i=C(function(e,t){return e%t}),o=C(function(e,t){return Math.floor(e/t)}),s=C(function(e,t){return(e%t+t)%t}),a=Math.PI,u=Math.exp,l=Math.sqrt,c=Math.log,p=C(function(e,t){return Math.pow(e,t)}),m=Math.sin,h=Math.tan,g=Math.cos,y=Math.asin,D=Math.acos,k=Math.atan,b=C(function(e,t){return Math.atan2(e,t)}),x=Math.round,w=Math.ceil,F=Math.floor,v=C(function(e,t){var n;for(e=Math.abs(e),t=Math.abs(t);0!==t;)n=e%t,e=t,t=n;return e}),E=C(function(e,t){return Math.abs(Math.floor(e/v(e,t)*t))}),f={max:e,min:t,negate:function(e){return-e},abs:n,signum:function(e){return e<0?-1:+(e>0)},quot:r,rem:i,div:o,mod:s,recip:function(e){return 1/e},pi:a,tau:2*a,exp:u,sqrt:l,ln:c,pow:p,sin:m,tan:h,cos:g,acos:D,asin:y,atan:k,atan2:b,truncate:function(e){return~~e},round:x,ceiling:w,floor:F,isItNaN:function(e){return e!=e},even:function(e){return e%2==0},odd:function(e){return e%2!=0},gcd:v,lcm:E}}(),y=x(function(e,t){return b.call(t).slice(8,-1)===e}),D=x(function(e,t){var n,r=[];for(n=0;n<e;++n)r.push(t);return r}),r.empty=t.empty,r.slice=t.slice,r.take=t.take,r.drop=t.drop,r.splitAt=t.splitAt,r.takeWhile=t.takeWhile,r.dropWhile=t.dropWhile,r.span=t.span,r.breakStr=t.breakList,(k={Func:e,List:t,Obj:n,Str:r,Num:g,id:function(e){return e},isType:y,replicate:D}).each=t.each,k.map=t.map,k.filter=t.filter,k.compact=t.compact,k.reject=t.reject,k.partition=t.partition,k.find=t.find,k.head=t.head,k.first=t.first,k.tail=t.tail,k.last=t.last,k.initial=t.initial,k.empty=t.empty,k.reverse=t.reverse,k.difference=t.difference,k.intersection=t.intersection,k.union=t.union,k.countBy=t.countBy,k.groupBy=t.groupBy,k.fold=t.fold,k.foldl=t.foldl,k.fold1=t.fold1,k.foldl1=t.foldl1,k.foldr=t.foldr,k.foldr1=t.foldr1,k.unfoldr=t.unfoldr,k.andList=t.andList,k.orList=t.orList,k.any=t.any,k.all=t.all,k.unique=t.unique,k.uniqueBy=t.uniqueBy,k.sort=t.sort,k.sortWith=t.sortWith,k.sortBy=t.sortBy,k.sum=t.sum,k.product=t.product,k.mean=t.mean,k.average=t.average,k.concat=t.concat,k.concatMap=t.concatMap,k.flatten=t.flatten,k.maximum=t.maximum,k.minimum=t.minimum,k.maximumBy=t.maximumBy,k.minimumBy=t.minimumBy,k.scan=t.scan,k.scanl=t.scanl,k.scan1=t.scan1,k.scanl1=t.scanl1,k.scanr=t.scanr,k.scanr1=t.scanr1,k.slice=t.slice,k.take=t.take,k.drop=t.drop,k.splitAt=t.splitAt,k.takeWhile=t.takeWhile,k.dropWhile=t.dropWhile,k.span=t.span,k.breakList=t.breakList,k.zip=t.zip,k.zipWith=t.zipWith,k.zipAll=t.zipAll,k.zipAllWith=t.zipAllWith,k.at=t.at,k.elemIndex=t.elemIndex,k.elemIndices=t.elemIndices,k.findIndex=t.findIndex,k.findIndices=t.findIndices,k.apply=e.apply,k.curry=e.curry,k.flip=e.flip,k.fix=e.fix,k.over=e.over,k.split=r.split,k.join=r.join,k.lines=r.lines,k.unlines=r.unlines,k.words=r.words,k.unwords=r.unwords,k.chars=r.chars,k.unchars=r.unchars,k.repeat=r.repeat,k.capitalize=r.capitalize,k.camelize=r.camelize,k.dasherize=r.dasherize,k.values=n.values,k.keys=n.keys,k.pairsToObj=n.pairsToObj,k.objToPairs=n.objToPairs,k.listsToObj=n.listsToObj,k.objToLists=n.objToLists,k.max=g.max,k.min=g.min,k.negate=g.negate,k.abs=g.abs,k.signum=g.signum,k.quot=g.quot,k.rem=g.rem,k.div=g.div,k.mod=g.mod,k.recip=g.recip,k.pi=g.pi,k.tau=g.tau,k.exp=g.exp,k.sqrt=g.sqrt,k.ln=g.ln,k.pow=g.pow,k.sin=g.sin,k.tan=g.tan,k.cos=g.cos,k.acos=g.acos,k.asin=g.asin,k.atan=g.atan,k.atan2=g.atan2,k.truncate=g.truncate,k.round=g.round,k.ceiling=g.ceiling,k.floor=g.floor,k.isItNaN=g.isItNaN,k.even=g.even,k.odd=g.odd,k.gcd=g.gcd,k.lcm=g.lcm,k.VERSION="1.2.1",m=k}var ni=nn.exports,no={exports:{}},ns={exports:{}},na={exports:{}},nu=na.exports,nl={exports:{}},nc=nl.exports,np=ns.exports;function nf(){return k||(k=1,(function(){var e,t;y||(y=1,(function(){var e,t;function n(e){var t;if(null==(t=e[0]))throw Error("Unexpected end of input.");return t}function r(t){var r;if(r=n(t),!e.test(r))throw Error("Expected text, got '"+r+"' instead.");return t.shift()}function i(e,t){var r;if((r=n(e))!==t)throw Error("Expected '"+t+"', got '"+r+"' instead.");return e.shift()}function o(e,t){return e[0]===t?e.shift():null}function s(e){var t,s;switch(e[0]){case"[":if(i(e,"["),"]"===n(e))throw Error("Must specify type of Array - eg. [Type], got [] instead.");return t=a(e),i(e,"]"),{structure:"array",of:t};case"(":if(s=[],i(e,"("),")"===n(e))throw Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;s.push(a(e)),o(e,","),")"!==n(e););return i(e,")"),{structure:"tuple",of:s};case"{":return function(e){var t,s,u,l,c;for(t={},i(e,"{"),s=!1;;){if(o(e,"...")){s=!0;break}if(l=(u=function(e){var t;return t=r(e),i(e,":"),[t,a(e)]}(e))[0],c=u[1],t[l]=c,o(e,","),"}"===n(e))break}return i(e,"}"),{structure:"fields",of:t,subset:s}}(e)}}function a(t){var a,u,l,c,p,f;if("::"===n(t))throw Error("No comment before comment separator '::' found.");for(null!=(a=t[1])&&"::"===a&&(t.shift(),t.shift()),u=[],l={},"Maybe"===n(t)&&(t.shift(),u=[{type:"Undefined"},{type:"Null"}],l={Undefined:!0,Null:!0});p=(c=function(t){var o,a,u,l;if((a="*"===(o=n(t)))||e.test(o))return(u=a?i(t,"*"):r(t),l=s(t))?(l.type=u,l):{type:u};if(!(l=s(t)))throw Error("Unexpected character: "+o);return l}(t)).type,f=c.structure,l[p]||u.push(c),null==f&&(l[p]=!0),o(t,"|"););return u}t=RegExp("\\.\\.\\.|::|->|"+(e=/[\$\w]+/).source+"|\\S","g"),na.exports=function(e){var n;if(!e.length)throw Error("No type specified.");if(function(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if("->"===t[n])return!0;return!1}("->",n=e.match(t)||[]))throw Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return a(n)}catch(t){throw Error(t.message+" - Remaining tokens: "+JSON.stringify(n)+" - Initial input: '"+e+"'")}}}).call(nu)),e=na.exports,D||(D=1,(function(){var e,t,n,r,i,o,s={}.toString;function a(e,t,r){if(!(e instanceof Object))return!1;switch(t.structure){case"fields":return function(e,t,n){var r,i,o,s,a,l,c;for(o in r={},i=0,e)r[o]=!0,i++;for(a in s=0,l=t.of){if(c=l[a],!u(e[a],c,n))return!1;r[a]&&s++}return t.subset||i===s}(e,t,r);case"array":return n(function(e){return u(e,t.of,r)},e);case"tuple":return function(e,t,n){var r,i,o,s,a;for(i=0,r=0,s=(o=t.of).length;i<s;++i){if(a=o[i],!u(e[r],a,n))return!1;r++}return e.length<=r}(e,t,r)}}function u(e,n,r){if("Array"!==s.call(n).slice(8,-1))throw Error("Types must be in an array. Input: "+e+".");return t(function(t){var n,u,l,c;if(n=t.type,u=t.structure,n)return"*"===n||((l=r.customTypes[n]||i[n])?(void 0===l.typeOf||l.typeOf===s.call(e).slice(8,-1))&&l.validate(e):n===s.call(e).slice(8,-1)&&(!u||a(e,t,r)));if(u)return(!(c=o[u])||c===s.call(e).slice(8,-1))&&a(e,t,r);throw Error("No type defined. Input: "+e+".")},n)}t=(e=nr()).any,n=e.all,i={Number:{typeOf:"Number",validate:function(e){return!r(e)}},NaN:{typeOf:"Number",validate:r=e.isItNaN},Int:{typeOf:"Number",validate:function(e){return!r(e)&&e%1==0}},Float:{typeOf:"Number",validate:function(e){return!r(e)}},Date:{typeOf:"Date",validate:function(e){return!r(e.getTime())}}},o={array:"Array",tuple:"Array"},nl.exports=function(e,t,n){return null==n&&(n={}),null==n.customTypes&&(n.customTypes={}),u(t,e,n)}}).call(nc)),ns.exports={VERSION:"0.4.0",typeCheck:function(n,r,i){return t(e(n),r,i)},parsedTypeCheck:t=nl.exports,parseType:e}}).call(np)),ns.exports}var nd=no.exports,nm=nt.exports,nh=function(){if(w)return ne;w=1;var e=(x||(x=1,(function(){var e,t,n,r;g||(g=1,(function(){var e,t,n;function r(e,t){if(e[0]===t)return e.shift();throw Error("Expected '"+t+"', but got '"+e[0]+"' instead in "+JSON.stringify(e)+".")}function i(e,t){if(e[0]===t)return e.shift()}function o(e,t,n){var o,s,a,u;for(o=t[0],s=t[1],n&&r(e,o),a=[],u=","+(n?s:"");e.length&&n&&e[0]!==s;)a.push(c(e,u)),i(e,",");return n&&r(e,s),a}function s(e,t){return o(e,["[","]"],t)}function a(e,t){return o(e,["(",")"],t)}function u(e,t){var n,o,s;for(t&&r(e,"{"),n={},o=","+(t?"}":"");e.length&&(!t||"}"!==e[0]);)s=l(e,":"),r(e,":"),n[s]=c(e,o),i(e,",");return t&&r(e,"}"),n}function l(e,t){var n;for(null==t&&(t=""),n="";e.length&&-1===t.indexOf(e[0]);)n+=e.shift();return n}function c(e,t){switch(e[0]){case"[":return s(e,!0);case"(":return a(e,!0);case"{":return u(e,!0);default:return l(e,t)}}function p(e){return!e}e=nr().reject,n=RegExp("(\"(?:\\\\\"|[^\"])*\")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|(["+(t=/\[\]\(\)}{:,/.source)+"])|([^\\s"+t+"](?:\\s*[^\\s"+t+"]+)*)|\\s*"),nn.exports=function(t,r,i){var o,l,f,d,m,h,g,y,D;if(null==i&&(i={}),!i.explicit&&1===t.length&&"String"===t[0].type)return r;if(l=e(p,r.split(n)),f=i,m=(d=t[0]).type,h=d.structure,g=l.concat(),f.explicit||1!==t.length||(m||!h)&&"Array"!==m&&"Object"!==m?D=c(l):(y="array"===h||"Array"===m?s(l,"["===l[0]):"tuple"===h?a(l,"("===l[0]):u(l,"{"===l[0]),D=l.length?c(("array"===h||"Array"===m?(g.unshift("["),g.push("]")):(g.unshift("("),g.push(")")),g)):y),!(o=D))throw Error("Error parsing '"+r+"'.");return o}}).call(ni)),e=nn.exports,b||(b=1,(function(){var e,t,n={}.toString;function r(e,t,r){var i;return"Array"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(i=t.of,{type:"Just",value:function(){var t,n,o=[];for(t=0,n=e.length;t<n;++t)o.push(s(e[t],i,r));return o}()})}function i(e,t,r){var i,o,a;return"Object"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(i=t.of,{type:"Just",value:function(){var t,n={};for(o in t=e)a=t[o],n[s(o,[{type:"String"}],r)]=s(a,i[o]||[{type:"*"}],r);return n}()})}function o(e,o,a){var u,l,c,p;if(u=o.type,l=o.structure,u){if(!(c=(null!=(p=a.customTypes[u])?p.cast:void 0)||t[u]))throw Error("Type not defined: "+u+".");return c(e,a,s)}switch(l){case"array":return r(e,o,a);case"tuple":return function(e,t,r){var i,o,a,u,l,c,p;if("Array"!==n.call(e).slice(8,-1))return{type:"Nothing"};for(a=0,i=[],o=0,l=(u=t.of).length;a<l;++a)c=u[a],p=s(e[o],c,r),"Undefined"!==n.call(p).slice(8,-1)&&i.push(p),o++;return e.length<=o?{type:"Just",value:i}:{type:"Nothing"}}(e,o,a);case"fields":return i(e,o,a)}}function s(t,n,r){var i,s,a,u,l,c;for(i=0,s=n.length;i<s;++i)if(l=(u=o(t,a=n[i],r)).type,c=u.value,"Nothing"!==l&&e([a],c,{customTypes:r.customTypes}))return c;throw Error("Value "+JSON.stringify(t)+" does not type check against "+JSON.stringify(n)+".")}e=nf().parsedTypeCheck,t={"*":function(e,t){switch(n.call(e).slice(8,-1)){case"Array":return o(e,{type:"Array"},t);case"Object":return o(e,{type:"Object"},t);default:return{type:"Just",value:s(e,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(t.explicit=!0,t))}}},Undefined:function(e){return"undefined"===e||void 0===e?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(e){return"null"===e?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(e){return"NaN"===e?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(e){return"true"===e?{type:"Just",value:!0}:"false"===e?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(e){return{type:"Just",value:+e}},Int:function(e){return{type:"Just",value:+e}},Float:function(e){return{type:"Just",value:+e}},Date:function(e,t){var n;return(n=/^\#([\s\S]*)\#$/.exec(e))?{type:"Just",value:new Date(+n[1]||n[1])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+e||e)}},RegExp:function(e,t){var n;return(n=/^\/([\s\S]*)\/([gimy]*)$/.exec(e))?{type:"Just",value:new RegExp(n[1],n[2])}:t.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(e)}},Array:function(e,t){return r(e,{of:[{type:"*"}]},t)},Object:function(e,t){return i(e,{of:{}},t)},String:function(e){var t,r;return"String"!==n.call(e).slice(8,-1)?{type:"Nothing"}:(t=function(e,t){return e.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(e,n){switch(n[0]){case t:return t;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+e+'"');default:return n}})},r=e.match(/^'([\s\S]*)'$/))?{type:"Just",value:t(r[1],"'")}:(r=e.match(/^"([\s\S]*)"$/))?{type:"Just",value:t(r[1],'"')}:{type:"Just",value:e}}},no.exports=function(e,t,n){return n.explicit||1!==t.length||"String"!==t[0].type?s(e,t,n):e}}).call(nd)),t=no.exports,n=nf().parseType,nt.exports={VERSION:"0.4.1",parse:function(e,t,i){return r(n(e),t,i)},parsedTypeParse:r=function(n,r,i){return null==i&&(i={}),null==i.explicit&&(i.explicit=!1),null==i.customTypes&&(i.customTypes={}),t(e(n,r,i),n,i)}}}).call(nm)),nt.exports);let t=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function r(e){let t=Array.isArray(e)?e[0]:e;return n.has(t)}class i{label="";value="";justification="";constructor(e,t,n){this.label=e,this.value=t,this.justification=n}}return ne.CallMethodStep=class{type="call";kind=2;target;args;constructor({target:e,args:t}){this.target=e,this.args=t}},ne.ConfigCommentParser=class{parseStringConfig(e){let t={};return e.trim().replace(/(?<!\s)\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach(e=>{if(!e)return;let[n,r=null]=e.split(":");t[n]=r}),t}parseJSONLikeConfig(t){try{let n=e.parse("Object",t)||{};if(Object.values(n).every(r))return{ok:!0,config:n}}catch{}let n=t.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{let e=JSON.parse(`{${n}}`);return{ok:!0,config:e}}catch(t){let e=t instanceof Error?t.message:String(t);return{ok:!1,error:{message:`Failed to parse JSON from '${n}': ${e}`}}}}parseListConfig(e){let t={};return e.split(",").forEach(e=>{let n=e.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");n&&(t[n]=!0)}),t}#e(e){let t=/\s-{2,}\s/u.exec(e);return t?{directivePart:e.slice(0,t.index).trim(),justificationPart:e.slice(t.index+t[0].length).trim()}:{directivePart:e.trim(),justificationPart:""}}parseDirective(e){let{directivePart:n,justificationPart:r}=this.#e(e),o=t.exec(n);if(!o)return;let s=o[1],a=n.slice(o.index+s.length);return new i(s,a.trim(),r)}},ne.Directive=class{type;node;value;justification;constructor({type:e,node:t,value:n,justification:r}){this.type=e,this.node=t,this.value=n,this.justification=r}},ne.TextSourceCodeBase=class{#t;ast;text;constructor({text:e,ast:t,lineEndingPattern:n=/\r?\n/u}){this.ast=t,this.text=e,this.#t=e.split(n)}getLoc(e){if("loc"in e)return e.loc;if("position"in e)return e.position;throw Error("Custom getLoc() method must be implemented in the subclass.")}getRange(e){if("range"in e)return e.range;if("position"in e)return[e.position.start.offset,e.position.end.offset];throw Error("Custom getRange() method must be implemented in the subclass.")}getParent(e){throw Error("Not implemented.")}getAncestors(e){if(!e)throw TypeError("Missing required argument: node.");let t=[];for(let n=this.getParent(e);n;n=this.getParent(n))t.push(n);return t.reverse()}getText(e,t,n){if(e){let r=this.getRange(e);return this.text.slice(Math.max(r[0]-(t||0),0),r[1]+(n||0))}return this.text}get lines(){return this.#t}traverse(){throw Error("Not implemented.")}},ne.VisitNodeStep=class{type="visit";kind=1;target;phase;args;constructor({target:e,phase:t,args:n}){this.target=e,this.phase=t,this.args=n}},ne}();const ng=/\]\[\s+\]$/u,ny=/<!--[\s\S]*?-->/gu;function nD(e,t){let n=0,r=0;for(let i=0;i<t;i++)"\n"===e[i]?(n++,r=0):r++;return{lineOffset:n,columnOffset:r}}function nk(e,t){if(!t)return!1;for(let n of e.split("\n"))if(t.test(n))return!0;return!1}function nb(e){return e.replace(ny,e=>e.replace(/[^\n]/gu," "))}const nx=new nh.ConfigCommentParser,nw=/<!--\s*(?:eslint(?:-enable|-disable(?:(?:-next)?-line)?)?)(?:\s|-->)/u,nF=/<!--(.*?)-->/gsu;class nv{value;position;constructor({value:e,position:t}){this.value=e.trim(),this.position=t}}function nE(e){let t;if(!nw.test(e.value))return[];let n=[];for(;t=nF.exec(e.value);)if(nw.test(t[0])){let r=t[0],i={...e.position.start},o={...e.position.start},{lineOffset:s,columnOffset:a}=nD(e.value,t.index);i.line+=s,i.column+=a,i.offset+=t.index;let u=r.split("\n").length-1;o.line=i.line+u,o.column=0===u?i.column+r.length:r.length-r.lastIndexOf("\n"),o.offset=i.offset+r.length,n.push(new nv({value:t[1].trim(),position:{start:i,end:o}}))}return n}class nC extends nh.TextSourceCodeBase{#n;#r=new WeakMap;#i=[];#o;ast=void 0;constructor({text:e,ast:t}){super({ast:t,text:e}),this.ast=t,this.traverse()}getParent(e){return this.#r.get(e)}getInlineConfigNodes(){return this.#o||(this.#o=this.#i.flatMap(nE)),this.#o}getDisableDirectives(){let e=[],t=[];return this.getInlineConfigNodes().forEach(n=>{let{label:r,value:i,justification:o}=nx.parseDirective(n.value);if("eslint-disable-line"===r&&n.position.start.line!==n.position.end.line){let t=`${r} comment should not span multiple lines.`;e.push({ruleId:null,message:t,loc:n.position});return}switch(r){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let e=r.slice(7);t.push(new nh.Directive({type:e,node:n,value:i,justification:o}))}}}),{problems:e,directives:t}}applyInlineConfig(){let e=[],t=[];return this.getInlineConfigNodes().forEach(n=>{let{label:r,value:i}=nx.parseDirective(n.value);if("eslint"===r){let r=nx.parseJSONLikeConfig(i);r.ok?t.push({config:{rules:r.config},loc:n.position}):e.push({ruleId:null,message:r.error.message,loc:n.position})}}),{configs:t,problems:e}}traverse(){if(this.#n)return this.#n.values();let e=this.#n=[],t=(n,r)=>{this.#r.set(n,r),e.push(new nh.VisitNodeStep({target:n,phase:1,args:[n,r]})),"html"===n.type&&this.#i.push(n),n.children&&n.children.forEach(e=>{t(e,n)}),e.push(new nh.VisitNodeStep({target:n,phase:2,args:[n,r]}))};return t(this.ast),e.values()}}var nA={exports:{}},nS=function(){var e;if(F)return nA.exports;function t(e){for(var t,n,r,i,o=1,s=[].slice.call(arguments),a=0,u=e.length,l="",c=!1,p=!1,f=function(){return s[o++]};a<u;++a)if(t=e[a],c)switch(c=!1,"."==t?(p=!1,t=e[++a]):"0"==t&&"."==e[a+1]?(p=!0,a+=2,t=e[a]):p=!0,i=function(){for(var n="";/\d/.test(e[a]);)n+=e[a++],t=e[a];return n.length>0?parseInt(n):null}(),t){case"b":l+=parseInt(f(),10).toString(2);break;case"c":"string"==typeof(n=f())||n instanceof String?l+=n:l+=String.fromCharCode(parseInt(n,10));break;case"d":l+=parseInt(f(),10);break;case"f":r=String(parseFloat(f()).toFixed(i||6)),l+=p?r:r.replace(/^0/,"");break;case"j":l+=JSON.stringify(f());break;case"o":l+="0"+parseInt(f(),10).toString(8);break;case"s":l+=f();break;case"x":l+="0x"+parseInt(f(),10).toString(16);break;case"X":l+="0x"+parseInt(f(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?c=!0:l+=t;return l}return F=1,(e=nA.exports=t).format=t,e.vsprintf=function(e,n){return t.apply(null,[e].concat(n))},"undefined"!=typeof console&&"function"==typeof console.log&&(e.printf=function(){console.log(t.apply(null,arguments))}),nA.exports}(),nT=S.a(nS);const nB=Object.assign(nI(Error),{eval:nI(EvalError),range:nI(RangeError),reference:nI(ReferenceError),syntax:nI(SyntaxError),type:nI(TypeError),uri:nI(URIError)});function nI(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){return new e(n?nT(n,...r):n)}}const nq={}.hasOwnProperty,nL={yaml:"-",toml:"+"};function nj(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=function(e){let t=e;if("string"==typeof t){if(!nq.call(nL,t))throw nB("Missing matter definition for `%s`",t);t={type:t,marker:nL[t]}}else if("object"!=typeof t)throw nB("Expected matter to be an object, not `%j`",t);if(!nq.call(t,"type"))throw nB("Missing `type` in matter `%j`",t);if(!nq.call(t,"fence")&&!nq.call(t,"marker"))throw nB("Missing `marker` or `fence` in matter `%j`",t);return t}(r[n]);return t}function nO(e){let t=nj(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=nR(e,"open").charCodeAt(0),o=function(e){let t,n=e.anywhere,r=e.type,i=r+"Fence",o=i+"Sequence",s=r+"Value",a={tokenize:function(e,n,r){let s=0;return function(n){return n===t.charCodeAt(s)?(e.enter(i),e.enter(o),function n(i){return s===t.length?(e.exit(o),e0(i))?(e.enter("whitespace"),function t(n){return e0(n)?(e.consume(n),t):(e.exit("whitespace"),a(n))}(i)):a(i):i===t.charCodeAt(s++)?(e.consume(i),n):r(i)}(n)):r(n)};function a(t){return null===t||eY(t)?(e.exit(i),n(t)):r(t)}},partial:!0},u=0;return{tokenize:function(l,c,p){let f=this;return function(s){let a=f.now();return 1===a.column&&(1===a.line||n)&&(t=nR(e,"open"),u=0,s===t.charCodeAt(u))?(l.enter(r),l.enter(i),l.enter(o),function e(n){return u===t.length?(l.exit(o),e0(n))?(l.enter("whitespace"),function e(t){return e0(t)?(l.consume(t),e):(l.exit("whitespace"),d(t))}(n)):d(n):n===t.charCodeAt(u++)?(l.consume(n),e):p(n)}(s)):p(s)};function d(n){return eY(n)?(l.exit(i),l.enter("lineEnding"),l.consume(n),l.exit("lineEnding"),t=nR(e,"close"),u=0,l.attempt(a,g,m)):p(n)}function m(e){return null===e||eY(e)?h(e):(l.enter(s),function e(t){return null===t||eY(t)?(l.exit(s),h(t)):(l.consume(t),e)}(e))}function h(e){return null===e?p(e):(l.enter("lineEnding"),l.consume(e),l.exit("lineEnding"),l.attempt(a,g,m))}function g(e){return l.exit(r),c(e)}},concrete:!0}}(e),s=n[i];Array.isArray(s)?s.push(o):n[i]=[o]}return{flow:n}}function nR(e,t){return e.marker?nP(e.marker,t).repeat(3):nP(e.fence,t)}function nP(e,t){return"string"==typeof e?e:e[t]}function nN(e){let t=nj(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=function(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}(e),r[e.type]=nM,r[e.type+"Value"]=n_}return{enter:n,exit:r}}function nM(e){let t=this.resume(),n=this.stack[this.stack.length-1];this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function n_(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function nz(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const nU=function(e){var t,n;if(null==e)return nH;if("function"==typeof e)return nV(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nU(e[n]);return nV(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,nV(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,nV(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function nV(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nH(){return!0}const n$=[];function nW(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nG(e){this.config.enter.autolinkProtocol.call(this,e)}function nJ(e){this.config.exit.autolinkProtocol.call(this,e)}function nQ(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function nZ(e){this.config.exit.autolinkEmail.call(this,e)}function nX(e){this.exit(e)}function nY(e){!function(e,t,n){let r=nU((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<i.length;)!function(e,t,n,r){let i=nU(t);(function e(t,r,o){let s=t&&"object"==typeof t?t:{};if("string"==typeof s.type){let e="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0;Object.defineProperty(a,"name",{value:"node (\x1b[33m"+t.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return a;function a(){var s;let a,u,l,c=n$;if(i(t,r,o[o.length-1]||void 0)&&!1===(c=Array.isArray(s=n(t,o))?s:"number"==typeof s?[!0,s]:null==s?n$:[s])[0])return c;if("children"in t&&t.children&&t.children&&"skip"!==c[0])for(u=0,l=o.concat(t);u>-1&&u<t.children.length;){if(!1===(a=e(t.children[u],u,l)())[0])return a;u="number"==typeof a[1]?a[1]:u+1}return c}})(e,void 0,[])()}(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],s=i[o][1],a=0,u=n.children.indexOf(e),l=!1,c=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){let n=p.index,i={index:p.index,input:p.input,stack:[...t,e]},o=s(...p,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),a=n+p[0].length,l=!0),!r.global)break;p=r.exec(e.value)}return l?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(u,1,...c)):c=[e],u+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nK],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,n0]],{ignore:["link","linkReference"]})}function nK(e,t,n,r,i){let o="";if(!n1(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nz(e,"("),o=nz(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function n0(e,t,n,r){return!(!n1(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function n1(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||e2(n)||e1(n))&&(!t||47!==n)}function n2(){this.buffer()}function n4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n3(){this.buffer()}function n9(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n5(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=eH(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n6(e){this.exit(e)}function n8(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=eH(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n7(e){this.exit(e)}function re(e){this.enter({type:"delete",children:[]},e)}function rt(e){this.exit(e)}function rn(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rr(e){this.exit(e),this.data.inTable=void 0}function ri(e){this.enter({type:"tableRow",children:[]},e)}function ro(e){this.exit(e)}function rs(e){this.enter({type:"tableCell",children:[]},e)}function ra(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ru));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ru(e,t){return"|"===t?t:e}function rl(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rc(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}const rp={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},rf={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(rm,u,a)(t):null===t||eK(t)||e2(t)||45!==t&&e1(t)?u(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function u(e){return i||r||!o?n(e):t(e)}},partial:!0},rd={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(rm,t,o)(s):null===s||eK(s)||e2(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rm={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||eK(s)||e2(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||eK(e)||e2(e)?t(e):r(e)}function o(t){return e$(t)?function t(i){return 59===i?(e.consume(i),r):e$(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rh={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eW(e)?n(e):t(e)}},partial:!0},rg={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rx.call(r,r.previous)||rE(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rp,e.attempt(rf,e.attempt(rd,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rx},ry={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&rw.call(r,r.previous)&&!rE(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if(e$(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o)?u:(o=!0,a):n(t)}function u(t){return null===t||eJ(t)||eK(t)||e2(t)||e1(t)?n(t):e.attempt(rf,e.attempt(rd,l),n)(t)}function l(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rw},rD={name:"emailAutolink",tokenize:function(e,t,n){let r,i,o=this;return function(t){return!rv(t)||!rF.call(o,o.previous)||rE(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rv(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(rh,u,a)(t):45===t||95===t||eW(t)?(i=!0,e.consume(t),s):u(t)}function a(t){return e.consume(t),r=!0,s}function u(s){return i&&r&&e$(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:rF},rk={};let rb=48;for(;rb<123;)rk[rb]=rD,58==++rb?rb=65:91===rb&&(rb=97);function rx(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eK(e)}function rw(e){return!e$(e)}function rF(e){return!(47===e||rv(e))}function rv(e){return 43===e||45===e||46===e||95===e||eW(e)}function rE(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rk[43]=rD,rk[45]=rD,rk[46]=rD,rk[95]=rD,rk[72]=[rD,ry],rk[104]=[rD,ry],rk[87]=[rD,rg],rk[119]=[rD,rg];const rC={tokenize:function(e,t,n){let r=this;return e3(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rA(e,t,n){let r,i=this,o=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let a=eH(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&s.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function rS(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function rT(e,t,n){let r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(a){if(s>999||93===a&&!r||null===a||91===a||eK(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes(eH(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return eK(a)||(r=!0),s++,e.consume(a),92===a?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function rB(e,t,n){let r,i,o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(a>999||93===t&&!i||null===t||91===t||eK(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=eH(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return eK(t)||(i=!0),a++,e.consume(t),92===t?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),e3(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function rI(e,t,n){return e.check(tn,t,e.attempt(rC,t,n))}function rq(e){e.exit("gfmFootnoteDefinition")}class rL{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rj(e,t,n){let r,i=this,o=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?D:a;return o===D&&i.parser.lazy[i.now().line]?n(e):o(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),u(n)}function u(t){return null===t?n(t):eY(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):e0(t)?e3(e,u,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),l(t))}function l(t){return null===t||124===t||eK(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return 92===t||124===t?(e.consume(t),l):l(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e0(t))?e3(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return e0(t)?e3(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(s+=1,h(t)):null===t||eY(t)?y(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return e0(t)?e3(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return f(i);if(null===i||eY(i))return r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function D(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||eY(n)?(e.exit("tableRow"),t(n)):e0(n)?e3(e,k,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||eK(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?x:b)}function x(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function rO(e,t){let n,r,i,o=-1,s=!0,a=0,u=[0,0,0,0],l=[0,0,0,0],c=!1,p=0,f=new rL;for(;++o<e.length;){let d=e[o],m=d[1];"enter"===d[0]?"tableHead"===m.type?(c=!1,0!==p&&(rP(f,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(o,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(s=!0,i=void 0,u=[0,0,0,0],l=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===m.type?2:r?3:1):a&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)?(s=!1,0===l[2]&&(0!==u[1]&&(l[0]=l[1],i=rR(f,t,u,a,void 0,i),u=[0,0,0,0]),l[2]=o)):"tableCellDivider"===m.type&&(s?s=!1:(0!==u[1]&&(l[0]=l[1],i=rR(f,t,u,a,void 0,i)),l=[(u=l)[1],o,0,0])):"tableHead"===m.type?(c=!0,p=o):"tableRow"===m.type||"tableDelimiterRow"===m.type?(p=o,0!==u[1]?(l[0]=l[1],i=rR(f,t,u,a,o,i)):0!==l[1]&&(i=rR(f,t,l,a,o,i)),a=0):a&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)&&(l[3]=o)}for(0!==p&&rP(f,t,p,n,r),f.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function rR(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},rN(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let s=rN(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=rN(t.events,n[2]),o=rN(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},rN(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function rP(e,t,n,r,i){let o=[],s=rN(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function rN(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const rM={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return eK(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return eY(r)?t(r):e0(r)?e.check({tokenize:r_},t,n)(r):n(r)}}};function r_(e,t,n){return e3(e,function(e){return null===e?n(e):t(e)},"whitespace")}const rz={type:"json",marker:"-"};class rU{fileType="text";lineStart=1;columnStart=1;nodeTypeKey="type";defaultLanguageOptions={frontmatter:!1};#s="commonmark";constructor({mode:e}={}){e&&(this.#s=e)}validateLanguageOptions(e){let t=e?.frontmatter,n=new Set([!1,"yaml","toml","json"]);if(void 0!==t&&!n.has(t))throw Error(`Invalid language option value \`${t}\` for frontmatter.`)}parse(e,t){let n=e.body;try{let e=function(e,t){let n=[],r=[];"gfm"===e&&(n.push(eU([{text:rk},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rB,continuation:{tokenize:rI},exit:rq}},text:{91:{name:"gfmFootnoteCall",tokenize:rT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rA,resolveTo:rS}}},function(e){let t,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,s=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let u=e8(i);if(126===a)return s>1?r(a):(e.consume(a),s++,o);if(s<2&&!t)return r(a);let l=e.exit("strikethroughSequenceTemporary"),c=e8(a);return l._open=!c||2===c&&!!u,l._close=!u||2===u&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&eM(s,s.length,0,e7(a,e.slice(r+1,n),t)),eM(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eM(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(),{flow:{null:{name:"table",tokenize:rj,resolveAll:rO}}},{text:{91:rM}}])),r.push([{transforms:[nY],enter:{literalAutolink:nW,literalAutolinkEmail:nG,literalAutolinkHttp:nG,literalAutolinkWww:nG},exit:{literalAutolink:nX,literalAutolinkEmail:nZ,literalAutolinkHttp:nJ,literalAutolinkWww:nQ}},{enter:{gfmFootnoteCallString:n2,gfmFootnoteCall:n4,gfmFootnoteDefinitionLabelString:n3,gfmFootnoteDefinition:n9},exit:{gfmFootnoteCallString:n5,gfmFootnoteCall:n6,gfmFootnoteDefinitionLabelString:n8,gfmFootnoteDefinition:n7}},{canContainEols:["delete"],enter:{strikethrough:re},exit:{strikethrough:rt}},{enter:{table:rn,tableData:rs,tableHeader:rs,tableRow:ri},exit:{codeText:ra,table:rr,tableData:ro,tableHeader:ro,tableRow:ro}},{exit:{taskListCheckValueChecked:rl,taskListCheckValueUnchecked:rl,paragraph:rc}}]));let i=t?.frontmatter;return!1!==i&&("yaml"===i?(n.push(nO(["yaml"])),r.push(nN(["yaml"]))):"toml"===i?(n.push(nO(["toml"])),r.push(nN(["toml"]))):"json"===i&&(n.push(nO(rz)),r.push(nN(rz)))),{extensions:n,mdastExtensions:r}}(this.#s,t?.languageOptions),r=tY(n,e);return{ok:!0,ast:r}}catch(e){return{ok:!1,errors:[e]}}}createSourceCode(e,t){return new nC({text:e.body,ast:t.ast})}}const rV=new Set(["`","~"]);var rH={meta:{type:"problem",docs:{recommended:!0,description:"Require languages for fenced code blocks",url:"https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md"},messages:{missingLanguage:"Missing code block language.",disallowedLanguage:'Code block language "{{lang}}" is not allowed.'},schema:[{type:"object",properties:{required:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{required:[]}]},create(e){let t=new Set(e.options[0]?.required),{sourceCode:n}=e;return{code(r){if(!r.lang){if(!rV.has(n.text[r.position.start.offset]))return;e.report({loc:{start:r.position.start,end:{line:r.position.start.line,column:n.lines[r.position.start.line-1].length+1}},messageId:"missingLanguage"});return}if(t.size&&!t.has(r.lang)){let t=n.lines[r.position.start.line-1].indexOf(r.lang);e.report({loc:{start:r.position.start,end:{line:r.position.start.line,column:r.position.start.column+t+r.lang.length}},messageId:"disallowedLanguage",data:{lang:r.lang}})}}}}},r$={meta:{type:"problem",docs:{recommended:!0,description:"Enforce heading levels increment by one",url:"https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md"},messages:{skippedHeading:"Heading level skipped from {{fromLevel}} to {{toLevel}}."},schema:[{type:"object",properties:{frontmatterTitle:{type:"string"}},additionalProperties:!1}],defaultOptions:[{frontmatterTitle:"^(?!\\s*['\"]title[:=]['\"])\\s*\\{?\\s*['\"]?title['\"]?\\s*[:=]"}]},create(e){let[{frontmatterTitle:t}]=e.options,n=""===t?null:RegExp(t,"iu"),r=0;return{yaml(e){nk(e.value,n)&&(r=1)},toml(e){nk(e.value,n)&&(r=1)},json(e){nk(e.value,n)&&(r=1)},heading(t){r>0&&t.depth>r+1&&e.report({loc:t.position,messageId:"skippedHeading",data:{fromLevel:r.toString(),toLevel:t.depth.toString()}}),r=t.depth}}}};const rW=/^<([^!>][^/\s>]*)/u;function rG(e){let t=e.match(rW);if(t){let e=t[1].toLowerCase(),n=e.startsWith("/");return{name:n?e.slice(1):e,isClosing:n}}return null}var rJ={meta:{type:"problem",docs:{recommended:!0,description:"Disallow duplicate definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md"},messages:{duplicateDefinition:"Unexpected duplicate definition `{{ identifier }}` found.",duplicateFootnoteDefinition:"Unexpected duplicate footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[]}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>eH(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>eH(e).toLowerCase())),r=new Set,i=new Set;return{definition(n){t.has(n.identifier)||(r.has(n.identifier)?e.report({node:n,messageId:"duplicateDefinition",data:{identifier:n.identifier}}):r.add(n.identifier))},footnoteDefinition(t){n.has(t.identifier)||(i.has(t.identifier)?e.report({node:t,messageId:"duplicateFootnoteDefinition",data:{identifier:t.identifier}}):i.add(t.identifier))}}}},rQ={meta:{type:"problem",docs:{description:"Disallow duplicate headings in the same document",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md"},messages:{duplicateHeading:'Duplicate heading "{{text}}" found.'},schema:[{type:"object",properties:{checkSiblingsOnly:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkSiblingsOnly:!1}]},create(e){let t,n,[{checkSiblingsOnly:r}]=e.options,i=new Map(r?[[1,new Set],[2,new Set],[3,new Set],[4,new Set],[5,new Set],[6,new Set]]:[[1,new Set]]),o=1,s=i.get(o);return{heading(e){if(t="",n="",r){let t=e.depth;if(t<o)for(let e=o;e>t;e--)i.get(e).clear();o=t,s=i.get(t)}},"heading *"({type:e,value:r}){r?(t+=`[${e},${r}]`,"html"!==e&&(n+=r)):t+=`[${e}]`},"heading:exit"(r){s.has(t)?e.report({loc:r.position,messageId:"duplicateHeading",data:{text:n}}):s.add(t)}}}},rZ={meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md"},messages:{emptyDefinition:"Unexpected empty definition `{{ identifier }}` found.",emptyFootnoteDefinition:"Unexpected empty footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},checkFootnoteDefinitions:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[],checkFootnoteDefinitions:!0}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>eH(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>eH(e).toLowerCase())),[{checkFootnoteDefinitions:r}]=e.options;return{definition(n){n.url&&"#"!==n.url||t.has(n.identifier)||e.report({loc:n.position,messageId:"emptyDefinition",data:{identifier:n.identifier}})},footnoteDefinition(t){r&&!n.has(t.identifier)&&(0===t.children.length||t.children.every(e=>"html"===e.type&&0===e.value.replace(ny,"").trim().length))&&e.report({loc:t.position,messageId:"emptyFootnoteDefinition",data:{identifier:t.identifier}})}}}};const rX=/<([a-z0-9]+(?:-[a-z0-9]+)*)(?:\s+(?:[^>"']|"[^"]*"|'[^']*')*)?>/giu,rY=/\r\n?|\n/u;var rK={meta:{type:"problem",docs:{description:"Disallow HTML tags",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md"},messages:{disallowedElement:'HTML element "{{name}}" is not allowed.'},schema:[{type:"object",properties:{allowed:{type:"array",items:{type:"string"},uniqueItems:!0},allowedIgnoreCase:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowed:[],allowedIgnoreCase:!1}]},create(e){let[{allowed:t,allowedIgnoreCase:n}]=e.options,r=new Set(n?t.map(e=>e.toLowerCase()):t);return{html(t){let i;for(;null!==(i=rX.exec(t.value));){let o=i[0],s=i[1],{lineOffset:a,columnOffset:u}=nD(t.value,i.index),l={line:t.position.start.line+a,column:t.position.start.column+u},c=o.search(rY),p=-1===c?l.column+o.length:l.column+c,f={line:l.line,column:p},d=n?s.toLowerCase():s;0!==r.size&&r.has(d)||e.report({loc:{start:l,end:f},messageId:"disallowedElement",data:{name:s}})}}}}};const r0=/\]\[([^\]]+)\]/u,r1=/^(#{1,6})(?:[^# \t]|$)/u,r2=/(?<![ \t])([ \t]*)(?<!(?<!\\)\\)(#+)([ \t]*)$/u,r4=/\r?\n/u;var r3={meta:{type:"problem",docs:{recommended:!0,description:"Disallow headings without a space after the hash characters",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md"},fixable:"whitespace",messages:{missingSpace:"Missing space {{position}} hash(es) on ATX style heading."},schema:[{type:"object",properties:{checkClosedHeadings:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkClosedHeadings:!1}]},create(e){let[{checkClosedHeadings:t}]=e.options;return{heading(n){if(!t)return;let r=e.sourceCode.getText(n),i=n.position.start.line,o=n.position.start.column,s=function(e){let t=r2.exec(e);if(t){let[,n,r,i]=t;if(0===n.length){let t=e.length-(i.length+r.length),n=t+r.length;return{closingHashIdx:t,beforeHashIdx:t-1,endIdx:n}}}return null}(r);s&&e.report({loc:{start:{line:i,column:o+s.beforeHashIdx},end:{line:i,column:o+s.endIdx}},messageId:"missingSpace",data:{position:"before"},fix:e=>e.insertTextBeforeRange([n.position.start.offset+s.closingHashIdx,n.position.start.offset+s.closingHashIdx+1]," ")})},paragraph(t){let n=e.sourceCode.getText(t).split(r4),r=t.position.start.column,i=t.position.start.offset;n.forEach((n,o)=>{let s=r1.exec(n),a=t.position.start.line+o;if(s){let t=s[1];e.report({loc:{start:{line:a,column:r},end:{line:a,column:r+t.length+1}},messageId:"missingSpace",data:{position:"after"},fix:e=>e.insertTextAfterRange([i+t.length-1,i+t.length]," ")})}i+=n.length+1})}}}};const r9=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,r5=Object.hasOwnProperty;class r6{constructor(){this.occurrences,this.reset()}slug(e,t){var n,r;let i=(n=e,r=!0===t,"string"!=typeof n?"":(r||(n=n.toLowerCase()),n.replace(r9,"").replace(/ /g,"-"))),o=i;for(;r5.call(this.occurrences,i);)this.occurrences[o]++,i=o+"-"+this.occurrences[o];return this.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}const r8=/^L\d+(?:C\d+)?(?:-L\d+(?:C\d+)?)?$/u,r7=/\{#(?<id>[^}\s]+)\}\s*$/u,ie=/(?<!<)<(?:[^>]+)\s(?:id|name)\s*=\s*["']?(?<id>[^"'\s>]+)["']?/giu;var it={meta:{type:"problem",docs:{recommended:!0,description:"Disallow link fragments that do not reference valid headings",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],messages:{invalidFragment:"Link fragment '#{{fragment}}' does not reference a heading or anchor in this document."},defaultOptions:[{ignoreCase:!0,allowPattern:""}]},create(e){let t,[{allowPattern:n,ignoreCase:r}]=e.options,i=n?RegExp(n,"u"):null,o=new Set(["top"]),s=new r6,a=[];return{heading(){t=""},"heading *:not(html)"({value:e}){t+=e??""},"heading:exit"(){let e=t.match(r7),n=e?e.groups.id:t,i=s.slug(n);o.add(r?i.toLowerCase():i)},html(e){for(let t of e.value.trim().replace(ny,"").matchAll(ie)){let e=t.groups.id,n=s.slug(e);o.add(r?n.toLowerCase():n)}},link(e){let t=e.url;if(!t||!t.startsWith("#"))return;let n=t.slice(1);n&&a.push({node:e,fragment:n})},"root:exit"(){for(let{node:t,fragment:n}of a){let s;try{s=decodeURIComponent(n)}catch{s=n}if(i?.test(s)||r8.test(s))continue;let a=r?s.toLowerCase():s;o.has(a)||e.report({loc:t.position,messageId:"invalidFragment",data:{fragment:n}})}}}}};const ir=/<h1[^>]*>[\s\S]*?<\/h1>/giu;var ii={meta:{type:"problem",docs:{recommended:!0,description:"Disallow multiple H1 headings in the same document",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md"},messages:{multipleH1:"Unexpected additional H1 heading found."},schema:[{type:"object",properties:{frontmatterTitle:{type:"string"}},additionalProperties:!1}],defaultOptions:[{frontmatterTitle:"^(?!\\s*['\"]title[:=]['\"])\\s*\\{?\\s*['\"]?title['\"]?\\s*[:=]"}]},create(e){let[{frontmatterTitle:t}]=e.options,n=""===t?null:RegExp(t,"iu"),r=0;return{yaml(e){nk(e.value,n)&&r++},toml(e){nk(e.value,n)&&r++},json(e){nk(e.value,n)&&r++},html(t){let n,i=nb(t.value);for(;null!==(n=ir.exec(i));)if(++r>1){let{lineOffset:r,columnOffset:i}=nD(t.value,n.index),{lineOffset:o,columnOffset:s}=nD(t.value,n.index+n[0].length),a=t.position.start.line,u=t.position.start.column,l=a+r,c=a+o,p=(l===a?u:1)+i,f=(c===a?u:1)+s;e.report({loc:{start:{line:l,column:p},end:{line:c,column:f}},messageId:"multipleH1"})}},heading(t){1===t.depth&&++r>1&&e.report({loc:t.position,messageId:"multipleH1"})}}}};const io=/(?<!\\)\(((?:\\.|[^()\\]|\([\s\S]*\))*)\)\[((?:\\.|[^\]\\\n])*)\](?!\()/gu,is=/[ \t]/u;var ia={meta:{type:"problem",docs:{recommended:!0,description:"Disallow spaces around emphasis markers",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md"},fixable:"whitespace",messages:{spaceInEmphasis:"Unexpected space around emphasis marker."},schema:[{type:"object",properties:{checkStrikethrough:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkStrikethrough:!1}]},create(e){let{sourceCode:t}=e,[{checkStrikethrough:n}]=e.options,r=n?/(?<=(?<!\\)(?:\\{2})*)(?<marker>\*\*\*|\*\*|\*|___|__|_|~~|~)/gu:/(?<=(?<!\\)(?:\\{2})*)(?<marker>\*\*\*|\*\*|\*|___|__|_)/gu;function i({originalText:t,checkIndex:n,highlightStartIndex:r,highlightEndIndex:i,removeIndex:o,nodeStartLine:s,nodeStartColumn:a}){if(is.test(t[n])){let{lineOffset:n,columnOffset:u}=nD(t,r),{lineOffset:l,columnOffset:c}=nD(t,i);e.report({loc:{start:{line:s+n,column:a+u},end:{line:s+l,column:a+c}},messageId:"spaceInEmphasis",fix:e=>e.removeRange([o,o+1])})}}let o={state:null,enter(e){let[n,r]=t.getRange(e);this.state={buffer:Array(r-n).fill(" "),startOffset:n}},addText(e){let n=e.position.start.offset-this.state.startOffset,r=t.getText(e);for(let e=0;e<r.length;e++)this.state.buffer[n+e]=r[e]},exit(e){!function(e,n){let o=t.getText(e),s=function(e,t){let n,r=[];for(;null!==(n=t.exec(e));)r.push({marker:n.groups.marker,startIndex:n.index,endIndex:n.index+n.groups.marker.length});return r}(n,r),a=e.position.start.line,u=e.position.start.column,l=e.position.start.offset,c=new Map;for(let e of s)c.has(e.marker)||c.set(e.marker,[]),c.get(e.marker).push(e);for(let e of c.values())for(let t=0;t<e.length-1;t+=2){let n=e[t];i({originalText:o,checkIndex:n.endIndex,highlightStartIndex:n.startIndex,highlightEndIndex:n.endIndex+2,removeIndex:l+n.endIndex,nodeStartLine:a,nodeStartColumn:u});let r=e[t+1];i({originalText:o,checkIndex:r.startIndex-1,highlightStartIndex:r.startIndex-2,highlightEndIndex:r.endIndex,removeIndex:l+r.startIndex-1,nodeStartLine:a,nodeStartColumn:u})}}(e,this.state.buffer.join("")),this.state=null}};return{heading(e){o.enter(e)},"heading > text"(e){o.addText(e)},"heading:exit"(e){o.exit(e)},paragraph(e){o.enter(e)},"paragraph > text"(e){o.addText(e)},"paragraph:exit"(e){o.exit(e)},tableCell(e){o.enter(e)},"tableCell > text"(e){o.addText(e)},"tableCell:exit"(e){o.exit(e)}}}},iu={meta:{type:"problem",docs:{recommended:!0,description:"Disallow unused definitions",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md"},messages:{unusedDefinition:"Unexpected unused definition `{{ identifier }}` found.",unusedFootnoteDefinition:"Unexpected unused footnote definition `{{ identifier }}` found."},schema:[{type:"object",properties:{allowDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0},allowFootnoteDefinitions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allowDefinitions:["//"],allowFootnoteDefinitions:[]}]},create(e){let t=new Set(e.options[0].allowDefinitions.map(e=>eH(e).toLowerCase())),n=new Set(e.options[0].allowFootnoteDefinitions.map(e=>eH(e).toLowerCase())),r=new Set,i=new Set,o=new Set,s=new Set;return{imageReference(e){r.add(e.identifier)},linkReference(e){r.add(e.identifier)},footnoteReference(e){i.add(e.identifier)},definition(e){t.has(e.identifier)||o.add(e)},footnoteDefinition(e){n.has(e.identifier)||s.add(e)},"root:exit"(){for(let t of o)r.has(t.identifier)||e.report({node:t,messageId:"unusedDefinition",data:{identifier:t.identifier}});for(let t of s)i.has(t.identifier)||e.report({node:t,messageId:"unusedFootnoteDefinition",data:{identifier:t.identifier}})}}}};const il=/<img[^>]*>/giu;function ic(e){return RegExp(`\\s${e}(?:\\s*=\\s*['"]([^'"]*)['"])?`,"iu")}var ip={meta:{type:"problem",docs:{recommended:!0,description:"Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row",url:"https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md"},messages:{extraCells:"Table column count mismatch (Expected: {{expectedCells}}, Actual: {{actualCells}}), extra data starting here will be ignored.",missingCells:"Table column count mismatch (Expected: {{expectedCells}}, Actual: {{actualCells}}), row might be missing data."},schema:[{type:"object",properties:{checkMissingCells:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkMissingCells:!1}]},create(e){let[{checkMissingCells:t}]=e.options;return{table(n){if(n.children.length<1)return;let r=n.children[0].children.length;for(let i=1;i<n.children.length;i++){let o=n.children[i],s=o.children.length,a=o.children[s-1];if(s>r){let t=o.children[r];e.report({loc:{start:t.position.start,end:a.position.end},messageId:"extraCells",data:{actualCells:String(s),expectedCells:String(r)}})}else t&&s<r&&e.report({loc:{start:{column:a.position.end.column-1,line:a.position.end.line},end:o.position.end},messageId:"missingCells",data:{actualCells:String(s),expectedCells:String(r)}})}}}}};const id={"eol-last":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","padded-blocks":"off",strict:"off","unicode-bom":"off"},im={meta:{name:"@eslint/markdown",version:"7.2.0"},processors:{markdown:{meta:{name:"@eslint/markdown/markdown",version:"7.2.0"},preprocess:function(e,t){let n=e.startsWith("\uFEFF")?e.slice(1):e,r=tY(n),i=[];t2.set(t,i);let o=[];return!function e(t,n){if(n[t.type]?n[t.type](t):n["*"](),void 0!==t.children)for(let r=0;r<t.children.length;r++)e(t.children[r],n)}(r,{"*"(){o=[]},code(e){if(e.lang){let t=[];for(let e of o){if("eslint-skip"===e.trim()){o=[];return}t.push(`/*${e}*/`)}o=[],i.push({...e,baseIndentText:t9(n,e),comments:t,rangeMap:function(e,t,n){let r=t3(t),i=e.slice(r,t.position.end.offset).split("\n"),o=t9(e,t).length,s=n.reduce((e,t)=>e+t.length+1,0),a=[{indent:o,js:0,md:0}],u=s,l=r+i[0].length+1;for(let e=0;e+1<i.length;e++){let t=i[e+1],n=Math.min(o,t4.exec(t)[0].length);a.push({indent:n,js:u,md:l+n-u}),l+=t.length+1,u+=t.length-n+1}return a}(n,e,t)})}},html(e){let t=function(e){let t="\x3c!--";if(e.slice(0,t.length)!==t||"--\x3e"!==e.slice(-3))return"";let n=e.slice(t.length,-3);return/^(eslint\b|global\s)/u.test(n.trim())?n:""}(e.value);t?o.push(t):o=[]}}),i.map((e,t)=>{let[n]=e.lang.trim().split(" "),r=Object.hasOwn(t6,n)?t6[n]:n;return{filename:e.meta?.match(t5)?.groups.filename.replaceAll(/\s+/gu,"_")??`${t}.${r}`,text:[...e.comments,e.value,""].join("\n")}})},postprocess:function(e,t){let n=t2.get(t);return t2.delete(t),e.flatMap((e,t)=>{let r=function(e){let t=e.comments.reduce((e,t)=>e+t.split("\n").length,0),n=e.position.start.line;return function(r){if(!Number.isInteger(r.line))return{...r,line:n,column:e.position.start.column};let i=r.line-t;if(i<1||i>=e.rangeMap.length)return null;let o={line:i+n,column:r.column+e.rangeMap[i].indent};Number.isInteger(r.endLine)&&(o.endLine=r.endLine-t+n),Array.isArray(r.suggestions)&&(o.suggestions=r.suggestions.map(t=>({...t,fix:t8(e,t.fix)})));let s={};return r.fix&&(s.fix=t8(e,r.fix)),{...r,...o,...s}}}(n[t]);return e.map(r).filter(t7)})},supportsAutofix:!0}},languages:{commonmark:new rU({mode:"commonmark"}),gfm:new rU({mode:"gfm"})},rules:{"fenced-code-language":rH,"heading-increment":r$,"no-bare-urls":{meta:{type:"problem",docs:{description:"Disallow bare URLs",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md"},fixable:"code",messages:{bareUrl:"Unexpected bare URL. Use autolink (<URL>) or link ([text](URL)) instead."}},create(e){let{sourceCode:t}=e,n=[];function r(e){!function e(r){if("children"in r&&Array.isArray(r.children))for(let i=0;i<r.children.length;i++){let o=r.children[i];if("html"===o.type){let e=rG(t.getText(o));if(e&&!e.isClosing){for(let n=i+1;n<r.children.length;n++){let o=r.children[n];if("html"===o.type){let r=rG(t.getText(o));if(r?.name===e.name&&r?.isClosing){i=n;break}}}continue}}if("link"===o.type){let e=t.getText(o),{url:r}=o;(e===r||r===`http://${e}`||r===`mailto:${e}`)&&n.push(o)}e(o)}}(e)}return{"root:exit"(){for(let r of n)e.report({node:r,messageId:"bareUrl",fix(e){let n=t.getText(r);return e.replaceText(r,`<${n}>`)}})},paragraph(e){r(e)},heading(e){r(e)},tableCell(e){r(e)}}}},"no-duplicate-definitions":rJ,"no-duplicate-headings":rQ,"no-empty-definitions":rZ,"no-empty-images":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty images",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md"},messages:{emptyImage:"Unexpected empty image found."}},create:e=>({image(t){t.url&&"#"!==t.url||e.report({loc:t.position,messageId:"emptyImage"})}})},"no-empty-links":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow empty links",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md"},messages:{emptyLink:"Unexpected empty link found."}},create:e=>({link(t){t.url&&"#"!==t.url||e.report({loc:t.position,messageId:"emptyLink"})}})},"no-html":rK,"no-invalid-label-refs":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow invalid label references",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md"},messages:{invalidLabelRef:"Label reference '{{label}}' is invalid due to white space between [ and ]."}},create(e){let{sourceCode:t}=e;return{text(n){for(let r of function(e,t){let n=t.getText(e),r=t.text,i=[],o=0,s=e.position.start.offset,a=e.position.start.line,u=e.position.start.column;for(;o<n.length;){let e=n.slice(o).match(r0);if(!e)break;if(!ng.test(e[0])){o+=e.index+e[0].length;continue}let t=o+e.index,l=s+t,c=r.lastIndexOf("[",l);if(-1===c){o+=e.index+e[0].length;continue}let p=r.slice(c,l+e[0].length).match(/!?\[([^\]]+)\]/u)[1],{lineOffset:f,columnOffset:d}=nD(n,t+1),{lineOffset:m,columnOffset:h}=nD(n,t+e[0].length),g=a+f,y=u+d,D=a+m,k=(D===g?u:0)+h;i.push({label:p.trim(),position:{start:{line:g,column:y},end:{line:D,column:k}}}),o+=e.index+e[0].length}return i}(n,t))e.report({loc:r.position,messageId:"invalidLabelRef",data:{label:r.label}})}}}},"no-missing-atx-heading-space":r3,"no-missing-label-refs":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow missing label references",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md"},messages:{notFound:"Label reference '{{label}}' not found."}},create(e){let{sourceCode:t}=e,n=[];return{"root:exit"(){for(let t of n)e.report({loc:t.position,messageId:"notFound",data:{label:t.label}})},text(e){n.push(...function(e,t){let n,r=[],i=e.position.start.line,o=e.position.start.column,s=/(?<!\\)\[(?<left>(?:\\.|[^[\]])*)(?<!\\)\](?<!\\)(?:\[(?<right>(?:\\.|[^\]])*)(?<!\\)\])?/dgu;for(;n=s.exec(t);){let e,s;if(ng.test(n[0]))continue;let{left:a,right:u}=n.groups;if(!a&&!u)continue;u?(e=u,s=n.indices.groups.right):(e=a,s=n.indices.groups.left);let{lineOffset:l,columnOffset:c}=nD(t,s[0]),{lineOffset:p,columnOffset:f}=nD(t,s[1]);r.push({label:e.trim(),position:{start:{line:i+l,column:l>0?c+1:o+c},end:{line:i+p,column:p>0?f+1:o+f}}})}return r}(e,t.getText(e)))},definition(e){n=n.filter(t=>t.label!==e.identifier)}}}},"no-missing-link-fragments":it,"no-multiple-h1":ii,"no-reversed-media-syntax":{meta:{type:"problem",docs:{recommended:!0,description:"Disallow reversed link and image syntax",url:"https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md"},fixable:"code",messages:{reversedSyntax:"Unexpected reversed syntax found. Use [label](URL) syntax instead."}},create(e){let{sourceCode:t}=e,n=[];function r(r){let i,o=t.getText(r);for(;null!==(i=io.exec(o));){let[t,s,a]=i,u=i.index,l=t.length;if(function(e,t){return t.some(t=>t[0]<=e&&e<t[1])}(u+r.position.start.offset,n))continue;let{lineOffset:c,columnOffset:p}=nD(o,u),{lineOffset:f,columnOffset:d}=nD(o,u+l),m=r.position.start.line,h=r.position.start.column,g=m+c,y=m+f,D=(g===m?h:1)+p,k=(y===m?h:1)+d;e.report({loc:{start:{line:g,column:D},end:{line:y,column:k}},messageId:"reversedSyntax",fix(e){let t=r.position.start.offset+u,n=t+l;return e.replaceTextRange([t,n],`[${s}](${a})`)}})}}return{"heading :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"heading:exit"(e){r(e),n=[]},"paragraph :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"paragraph:exit"(e){r(e),n=[]},"tableCell :matches(html, inlineCode)"(e){n.push(t.getRange(e))},"tableCell:exit"(e){r(e),n=[]}}}},"no-space-in-emphasis":ia,"no-unused-definitions":iu,"require-alt-text":{meta:{type:"problem",docs:{recommended:!0,description:"Require alternative text for images",url:"https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md"},messages:{altTextRequired:"Alternative text for image is required."}},create:e=>({image(t){0===t.alt.trim().length&&e.report({loc:t.position,messageId:"altTextRequired"})},imageReference(t){0===t.alt.trim().length&&e.report({loc:t.position,messageId:"altTextRequired"})},html(t){let n,r=nb(t.value);for(;null!==(n=il.exec(r));){let r=n[0],i=r.match(ic("aria-hidden"));if(i&&"true"===i[1].toLowerCase())continue;let o=r.match(ic("alt"));if(!o||o[1]&&0===o[1].trim().length&&o[1].length>0){let{lineOffset:i,columnOffset:o}=nD(t.value,n.index),{lineOffset:s,columnOffset:a}=nD(t.value,n.index+r.length),u=t.position.start.line,l=t.position.start.column,c=u+i,p=u+s,f=(c===u?l:1)+o,d=(p===u?l:1)+a;e.report({loc:{start:{line:c,column:f},end:{line:p,column:d}},messageId:"altTextRequired"})}}}})},"table-column-count":ip},configs:{"recommended-legacy":{plugins:["markdown"],overrides:[{files:["*.md"],processor:"markdown/markdown"},{files:["**/*.md/**"],parserOptions:{ecmaFeatures:{impliedStrict:!0}},rules:{...id}}]},recommended:[{name:"markdown/recommended",files:["**/*.md"],language:"markdown/commonmark",plugins:e={},rules:{"markdown/fenced-code-language":"error","markdown/heading-increment":"error","markdown/no-duplicate-definitions":"error","markdown/no-empty-definitions":"error","markdown/no-empty-images":"error","markdown/no-empty-links":"error","markdown/no-invalid-label-refs":"error","markdown/no-missing-atx-heading-space":"error","markdown/no-missing-label-refs":"error","markdown/no-missing-link-fragments":"error","markdown/no-multiple-h1":"error","markdown/no-reversed-media-syntax":"error","markdown/no-space-in-emphasis":"error","markdown/no-unused-definitions":"error","markdown/require-alt-text":"error","markdown/table-column-count":"error"}}],processor:[{name:"markdown/recommended/plugin",plugins:t={}},{name:"markdown/recommended/processor",files:["**/*.md"],processor:"markdown/markdown"},{name:"markdown/recommended/code-blocks",files:["**/*.md/**"],languageOptions:{parserOptions:{ecmaFeatures:{impliedStrict:!0}}},rules:{...id}}]}};async function ih(e){if(!v.isPackageExists(e,"string"==typeof __dirname?__dirname:void 0))return;if(console.error(Z.yellow(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`)),Q.isCI||!process.stdout.isTTY)throw Error(`[eslint-config-sukka] "${e}" is deprecated and you should uninstall it`);let{confirm:t}=await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.i});await t({message:` "${e}" is deprecated. Do you want to uninstall it?`})&&await Promise.resolve().then(function(){return require("./vendor-47KOc287.cjs")}).then(function(e){return e.b}).then(t=>t.uninstallPackage(e,{dev:!0}))}function ig(e,t=!1){return"boolean"==typeof e?e:void 0===e?t:!!e.enable||t}function iy(e,...t){let n;if("boolean"==typeof e||void 0===e)n={};else{let{enable:t,...r}=e;n=r}return t.length?J.defu(n,...t):n}e.markdown=t.markdown=im;const iD=e=>v.isPackageExists(e,"string"==typeof __dirname?__dirname:void 0);async function ik(e,...t){let n=Date.now(),r=[];await ih("@eslint-sukka/js"),await ih("@eslint-sukka/json"),await ih("@eslint-sukka/ts"),await ih("@eslint-sukka/legacy");let i=iD("@types/node"),o=ig(e?.ts,iD("typescript")||i);if(r.push(ep(e?.ignores),[{name:"sukka/eslint-comments",plugins:{"@eslint-community/eslint-comments":I,sukka:v.memo(q,"eslint-plugin-sukka")},rules:{"sukka/ban-eslint-disable":["error","allow-with-description"],"@eslint-community/eslint-comments/disable-enable-pair":["error",{allowWholeFile:!0}],"@eslint-community/eslint-comments/no-aggregating-enable":"error","@eslint-community/eslint-comments/no-duplicate-disable":"error","@eslint-community/eslint-comments/no-unlimited-disable":"error","@eslint-community/eslint-comments/no-unused-disable":"error","@eslint-community/eslint-comments/no-unused-enable":"error"}}]),ig(e?.js,!0)&&r.push(function(e={}){let{files:t,disableNoConsoleInCLI:n=!0,env:r={}}=e,{browser:i=!0,webextensions:o=!1,greasemonkey:s=!1,customGlobals:a={}}=r,u=e.module??v.getPackageJson()?.type==="module",l=[{linterOptions:{reportUnusedDisableDirectives:!0}},{name:"@eslint/js recommended",...O.configs.recommended},{name:"@eslint-sukka/js base",...t?{files:t}:{},languageOptions:{ecmaVersion:"latest",sourceType:u?"module":"commonjs",parserOptions:{ecmaVersion:"latest",sourceType:u?"module":"commonjs",ecmaFeatures:{jsx:!0}},globals:{...v.globals.es2025,...i&&v.globals.browser,...o&&v.globals.webextensions,...s&&v.globals.greasemonkey,...a}},settings:{"import-x/extensions":eC,"import-x/resolver-next":[P.createNodeResolver({extensions:eC})]},plugins:{"unused-imports":v.memo(R,"eslint-plugin-unused-imports"),"@stylistic":v.memo(_.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),sukka:v.memo(q,"eslint-plugin-sukka"),"import-x":v.memo(P,"eslint-plugin-import-x"),autofix:M,antfu:v.memo(eE,"eslint_plugin_antfu")},rules:{...P.configs.recommended.rules,"import-x/newline-after-import":["error",{considerComments:!1}],"import-x/no-absolute-path":"error","import-x/no-empty-named-blocks":"error","import-x/no-mutable-exports":"error","import-x/no-useless-path-segments":"warn","import-x/no-webpack-loader-syntax":"error","import-x/no-relative-packages":"warn","accessor-pairs":"off","array-callback-return":["error",{allowImplicit:!0}],"arrow-body-style":["error","as-needed",{requireReturnForObjectLiteral:!1}],"block-scoped-var":"error","class-methods-use-this":["error",{exceptMethods:[]}],curly:["error","multi-line"],"default-case":["error",{commentPattern:"^no default$"}],"default-case-last":"error","default-param-last":"error","dot-notation":["error",{allowKeywords:!0}],"@stylistic/dot-location":["error","property"],eqeqeq:["error","always",{null:"ignore"}],"grouped-accessor-pairs":"error","guard-for-in":"error","no-alert":"warn","no-caller":"off","autofix/no-caller":"error","no-constructor-return":"error","no-else-return":["error",{allowElseIf:!1}],"no-empty-pattern":"error","no-empty-static-block":"error","no-eval":"error","no-extend-native":"error","no-extra-bind":"error","no-extra-label":"error","no-implicit-coercion":["off",{boolean:!1,number:!0,string:!0,allow:[]}],"no-implicit-globals":"off","no-implied-eval":"error","no-invalid-this":"off","no-labels":["error",{allowLoop:!1,allowSwitch:!1}],"no-lone-blocks":"error","no-loop-func":"error","@stylistic/no-multi-spaces":["error",{ignoreEOLComments:!1}],"no-multi-str":"error","no-new":"error","no-new-func":"error","no-new-wrappers":"error","no-octal-escape":"error","no-proto":"off","autofix/no-proto":"error","no-restricted-properties":["error",...[["isFinite","Number.isFinite"],["isNaN","Number.isNaN"]].flatMap(([e,t])=>["global","globalThis","window","self"].map(n=>({object:n,property:e,message:`Please use ${t} instead`}))),{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."},{object:"Math",property:"pow",message:"Use the exponentiation operator (**) instead."}],"no-return-assign":["error","always"],"no-return-await":"off","sukka/no-return-await":"error","no-self-compare":"off","no-sequences":"error","no-unmodified-loop-condition":"off","no-unused-expressions":["error",{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1}],"no-useless-call":"off","no-useless-catch":"off","autofix/no-useless-catch":"error","no-useless-concat":"off","autofix/no-useless-concat":"error","no-useless-escape":"error","no-useless-return":"error","no-void":["error",{allowAsStatement:!0}],"no-with":"error","prefer-promise-reject-errors":["error",{allowEmptyReject:!0}],"prefer-object-has-own":"error","prefer-regex-literals":["error",{disallowRedundantWrapping:!0}],radix:"off","autofix/radix":"error","require-await":"error","require-yield":"error","require-unicode-regexp":"off","vars-on-top":"error","@stylistic/wrap-iife":["error","outside",{functionPrototypeMethods:!1}],yoda:"error","no-await-in-loop":"warn","no-console":"warn","no-constant-condition":"warn","no-empty-function":"error","no-empty":["error",{allowEmptyCatch:!0}],"no-constant-binary-expression":"error","@stylistic/no-extra-parens":["off","all",{conditionalAssign:!0,nestedBinaryExpressions:!1,returnAssign:!1,ignoreJSX:"all",enforceForArrowConditionals:!1}],"no-loss-of-precision":"warn","no-promise-executor-return":"error","no-template-curly-in-string":"error","no-unreachable-loop":["error",{ignore:[]}],"no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-vars":"off","unused-imports/no-unused-imports":"off","no-unused-private-class-members":"error","no-useless-backreference":"error","no-negated-in-lhs":"off","require-atomic-updates":"off","use-isnan":["error",{enforceForIndexOf:!0}],"valid-typeof":"off","autofix/valid-typeof":["error",{requireStringLiterals:!0}],"no-new-native-nonconstructor":"off","autofix/no-new-native-nonconstructor":"error","@stylistic/arrow-spacing":["error",{before:!0,after:!0}],"@stylistic/generator-star-spacing":["error",{before:!0,after:!1}],"@stylistic/no-confusing-arrow":["error",{allowParens:!0}],"no-duplicate-imports":"off","no-restricted-exports":["error",{restrictedNamedExports:["then"]}],"no-useless-constructor":"error","no-useless-rename":["error",{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],"no-var":"warn","object-shorthand":["error","always",{ignoreConstructors:!1,avoidQuotes:!0,avoidExplicitReturnArrows:!0}],"prefer-arrow-callback":["error",{allowNamedFunctions:!0,allowUnboundThis:!0}],"prefer-const":["error",{ignoreReadBeforeAssign:!0}],"prefer-numeric-literals":"error","prefer-rest-params":"error","prefer-template":"off","symbol-description":"error","@stylistic/template-curly-spacing":["error","never"],"@stylistic/yield-star-spacing":["error","before"],"@stylistic/array-bracket-newline":["off","consistent"],"@stylistic/array-bracket-spacing":["error","never"],"@stylistic/array-element-newline":["off",{multiline:!0,minItems:5}],"@stylistic/block-spacing":["error","always"],"@stylistic/brace-style":["error","1tbs",{allowSingleLine:!0}],camelcase:["warn",{properties:"never",ignoreDestructuring:!1,ignoreImports:!0,ignoreGlobals:!0,allow:["^UNSAFE_","^experimental_","^__DEV__"]}],"@stylistic/comma-dangle":["error","never"],"@stylistic/comma-spacing":["error",{before:!1,after:!0}],"@stylistic/comma-style":["error","last",{exceptions:{ArrayExpression:!1,ArrayPattern:!1,ArrowFunctionExpression:!1,CallExpression:!1,FunctionDeclaration:!1,FunctionExpression:!1,ImportDeclaration:!1,ObjectExpression:!1,ObjectPattern:!1,VariableDeclaration:!1,NewExpression:!1}}],"@stylistic/computed-property-spacing":["error","never"],"consistent-this":"off","@stylistic/eol-last":["error","always"],"@stylistic/function-call-spacing":["error","never"],"@stylistic/function-call-argument-newline":["off","consistent"],"@stylistic/function-paren-newline":["error","consistent"],"@stylistic/implicit-arrow-linebreak":["error","beside"],"@stylistic/indent":["error",2,{SwitchCase:1}],"@stylistic/indent-binary-ops":["error",2],"@stylistic/key-spacing":["error",{beforeColon:!1,afterColon:!0}],"@stylistic/keyword-spacing":["error",{before:!0,after:!0,overrides:{return:{after:!0},throw:{after:!0},case:{after:!0}}}],"@stylistic/linebreak-style":"error","@stylistic/lines-around-comment":"off","@stylistic/lines-around-directive":"off","@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0}],"@stylistic/multiline-ternary":["error","always-multiline"],"new-cap":["error",{newIsCap:!0,newIsCapExceptions:[],capIsNew:!1,capIsNewExceptions:["Immutable.Map","Immutable.Set","Immutable.List"]}],"@stylistic/newline-per-chained-call":["error",{ignoreChainWithDepth:6}],"@stylistic/new-parens":"error","no-bitwise":"off","no-lonely-if":"error","sukka/unicorn/no-lonely-if":"error","@stylistic/no-mixed-operators":["error",{groups:[["**","+"],["**","-"],["**","*"],["**","/"],["%","+"],["%","-"],["%","*"],["%","/"],["%","**"],["==","!=","===","!==",">",">=","<","<="],["&&","||"],["in","instanceof"]],allowSamePrecedence:!0}],"@stylistic/no-mixed-spaces-and-tabs":"error","no-multi-assign":"error","@stylistic/no-multiple-empty-lines":["error",{max:1,maxBOF:0,maxEOF:0}],"no-negated-condition":"off","sukka/unicorn/no-negated-condition":"warn","no-nested-ternary":"off","sukka/unicorn/no-nested-ternary":"warn","no-new-object":"off","no-object-constructor":"error","no-array-constructor":"error","@stylistic/no-spaced-func":"off","@stylistic/no-tabs":"error","no-ternary":"off","@stylistic/no-trailing-spaces":"error","no-unneeded-ternary":"error","@stylistic/no-whitespace-before-property":"error","@stylistic/nonblock-statement-body-position":"error","@stylistic/object-curly-newline":"off","@stylistic/object-curly-spacing":["error","always"],"@stylistic/object-property-newline":"off","@stylistic/one-var-declaration-per-line":"off","prefer-exponentiation-operator":"error","@stylistic/operator-linebreak":["error","before",{overrides:{"=":"after"}}],"@stylistic/padded-blocks":["error","never"],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"}],"@stylistic/quotes":["error","single"],"@stylistic/quote-props":["error","as-needed",{keywords:!1,unnecessary:!0,numbers:!1}],"@stylistic/jsx-quotes":["error","prefer-double"],"@stylistic/rest-spread-spacing":["error","never"],"@stylistic/semi":["error","always"],"@stylistic/semi-spacing":["error",{before:!1,after:!0}],"@stylistic/semi-style":["error","last"],"@stylistic/space-before-blocks":"error","@stylistic/space-before-function-paren":["error",{anonymous:"always",named:"never",asyncArrow:"always"}],"@stylistic/space-in-parens":["error","never"],"@stylistic/space-infix-ops":"error","@stylistic/space-unary-ops":["error",{words:!0,nonwords:!1,overrides:{}}],"@stylistic/spaced-comment":["error","always",{line:{exceptions:["-","+"],markers:["=","!","/"]},block:{exceptions:["-","+"],markers:["=","!",":","::"],balanced:!0}}],"@stylistic/switch-colon-spacing":["error",{after:!0,before:!1}],"@stylistic/template-tag-spacing":["error","never"],"unicode-bom":["error","never"],"@stylistic/wrap-regex":"off","no-label-var":"error","no-use-before-define":["error",{functions:!1,classes:!0,variables:!0}],"no-restricted-globals":["error",{name:"isFinite",message:"Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite"},{name:"isNaN",message:"Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan"}],"no-undef-init":"error","sukka/no-expression-empty-lines":"error","sukka/prefer-single-boolean-return":"error","sukka/no-all-duplicated-branches":"error","sukka/no-duplicated-branches":"error","sukka/bool-param-default":"error","sukka/call-argument-line":"error","sukka/class-prototype":"warn","sukka/comma-or-logical-or-case":"error","sukka/track-todo-fixme-comment":"warn","sukka/no-element-overwrite":"warn","sukka/no-empty-collection":"warn","sukka/no-equals-in-for-termination":"error","sukka/no-top-level-this":"error","sukka/no-invariant-returns":"error","sukka/no-redundant-assignments":"warn","sukka/no-same-line-conditional":"error","sukka/no-small-switch":"error","sukka/array/no-unneeded-flat-map":"error","sukka/browser/prefer-location-assign":"warn","sukka/jsx/no-template-literal":"error","sukka/jsx/no-unneeded-nested":"error","sukka/string/no-locale-case":"warn","sukka/string/no-simple-template-literal":"error","sukka/unicode/no-bidi":"warn","sukka/unicode/no-invisible":"warn","sukka/no-redundant-variable":"error","sukka/no-single-return":"error","sukka/prefer-early-return":["error",{maximumStatements:16}],"sukka/prefer-fetch":"error","sukka/prefer-timer-id":"warn","sukka/no-useless-plusplus":"error","sukka/no-chain-array-higher-order-functions":"error","sukka/unicorn/catch-error-name":["error",{ignore:[/^(?:e|err|error|\w+Err|\w+Error)[\d_]?$/]}],"sukka/unicorn/custom-error-definition":"error","sukka/unicorn/require-array-join-separator":"warn","sukka/unicorn/no-thenable":"error","sukka/unicorn/no-invalid-remove-event-listener":"error","sukka/unicorn/consistent-function-scoping":"warn","sukka/unicorn/prefer-event-target":"warn","sukka/unicorn/prefer-keyboard-event-key":"warn","sukka/unicorn/prefer-text-content":"warn","sukka/unicorn/no-console-spaces":"warn","sukka/unicorn/no-empty-file":"warn","sukka/unicorn/no-useless-fallback-in-spread":"warn","sukka/unicorn/no-useless-length-check":"warn","sukka/unicorn/no-useless-promise-resolve-reject":"warn","sukka/unicorn/no-zero-fractions":"warn","sukka/unicorn/prefer-export-from":["warn",{ignoreUsedVariables:!0}],"sukka/unicorn/prefer-native-coercion-functions":"warn","sukka/unicorn/prefer-negative-index":"warn","sukka/unicorn/no-document-cookie":"error","sukka/unicorn/prefer-add-event-listener":"warn","sukka/unicorn/prefer-array-index-of":"warn","sukka/unicorn/prefer-blob-reading-methods":"warn","sukka/unicorn/prefer-date-now":"warn","sukka/unicorn/prefer-dom-node-dataset":"warn","sukka/unicorn/prefer-modern-math-apis":"warn","sukka/unicorn/number-literal-case":"error","sukka/unicorn/prefer-number-properties":["warn",{checkInfinity:!1}],"sukka/unicorn/prefer-reflect-apply":"warn","sukka/unicorn/prefer-set-size":"warn","sukka/unicorn/prefer-string-replace-all":"warn","sukka/unicorn/prefer-string-slice":"warn","sukka/unicorn/prefer-string-trim-start-end":"warn","sukka/unicorn/no-unreadable-iife":"warn","sukka/unicorn/throw-new-error":"warn","sukka/unicorn/escape-case":"warn","sukka/unicorn/no-hex-escape":"warn","sukka/unicorn/prefer-prototype-methods":"warn","sukka/unicorn/error-message":"error","sukka/unicorn/no-instanceof-builtins":["error",{strategy:"loose"}],"sukka/unicorn/prefer-type-error":"error","sukka/unicorn/consistent-destructuring":"warn","sukka/unicorn/new-for-builtins":"warn","sukka/unicorn/prefer-single-call":"warn","sukka/unicorn/no-static-only-class":"warn","sukka/unicorn/no-unreadable-array-destructuring":"error","sukka/unicorn/no-useless-spread":"error","sukka/unicorn/no-useless-switch-case":"warn","sukka/unicorn/no-useless-undefined":["error",{checkArguments:!1}],"sukka/unicorn/numeric-separators-style":["warn",{onlyIfContainsSeparator:!1,number:{minimumDigits:7,groupLength:3},binary:{minimumDigits:9,groupLength:4},octal:{minimumDigits:9,groupLength:4},hexadecimal:{minimumDigits:5,groupLength:2}}],"sukka/unicorn/prefer-array-find":"warn","sukka/unicorn/prefer-array-flat-map":"warn","sukka/unicorn/prefer-array-flat":"warn","sukka/unicorn/prefer-array-some":"warn","sukka/unicorn/prefer-code-point":"warn","sukka/unicorn/prefer-default-parameters":"warn","sukka/unicorn/prefer-logical-operator-over-ternary":"warn","sukka/unicorn/prefer-optional-catch-binding":"error","sukka/unicorn/prefer-regexp-test":"warn","sukka/unicorn/prefer-set-has":"error","sukka/unicorn/prefer-switch":"warn","sukka/unicorn/require-number-to-fixed-digits-argument":"warn","sukka/unicorn/prefer-string-raw":"warn","sukka/unicorn/no-single-promise-in-promise-methods":"error","sukka/unicorn/no-await-in-promise-methods":"error","sukka/unicorn/no-magic-array-flat-depth":"error","sukka/unicorn/no-object-as-default-parameter":"error","sukka/unicorn/template-indent":["warn",{tags:["outdent","dedent","gql","sql","html","styled","css"],functions:["dedent","stripIndent","strip_indent","stripTags","striptags","strip_tags","stripHtml","stripHTML","strip_html"],selectors:[],comments:["HTML","html","CSS","css","indent"]}],"sukka/unicorn/no-negation-in-equality-check":"error","sukka/unicorn/no-unnecessary-slice-end":"error","sukka/unicorn/consistent-date-clone":"error","sukka/unicorn/no-accessor-recursion":"error","sukka/unicorn/no-unnecessary-array-flat-depth":"error","sukka/unicorn/no-unnecessary-array-splice-count":"error","sukka/unicorn/no-useless-error-capture-stack-trace":"error","sukka/unicorn/prefer-class-fields":"error","sukka/unicorn/prefer-bigint-literals":"error","sukka/unicorn/prefer-classlist-toggle":"warn","sukka/unicorn/require-module-attributes":"error","no-restricted-imports":["error",{paths:v.RESTRICTED_IMPORT_JS}],"no-prototype-builtins":"off","autofix/no-prototype-builtins":"error","antfu/import-dedupe":"error","antfu/consistent-chaining":"error","antfu/no-top-level-await":"error","antfu/top-level-function":"warn"}},N.configs.recommended];if(!1!==n){let e="boolean"==typeof n?null:Array.isArray(n)?n:[n];l.push({name:"@eslint-sukka/js cli specific",files:e??[`**/scripts/${v.constants.GLOB_SRC}`,`**/cli/${v.constants.GLOB_SRC}`,`**/cli.${v.constants.GLOB_SRC_EXT}`],rules:{"no-console":"off"}})}return l}(iy(e?.js)),function({typescript:e}){return[{name:"sukka/promise",plugins:{promise:L},rules:{"promise/always-return":e?"off":["error",{ignoreLastCallback:!0}],"promise/no-return-wrap":"error","promise/param-names":"error","promise/catch-or-return":["error",{allowFinally:!0,terminationMethod:["catch","asCallback","finally"]}],"promise/no-native":"off","promise/no-nesting":"warn","promise/no-promise-in-callback":"warn","promise/no-callback-in-promise":"warn","promise/avoid-new":"off","promise/no-new-statics":"error","promise/no-return-in-finally":"warn","promise/valid-params":"warn","promise/prefer-catch":"error"}}]}({typescript:o}),[{name:"sukka/regexp",plugins:{sukka:v.memo(q,"eslint-plugin-sukka"),regexp:v.memo(ee,"eslint-plugin-regexp")},rules:{"sukka/unicorn/better-regex":"warn",...j.configs["flat/recommended"].rules,"regexp/strict":"off"}}]),ig(e?.markdown,!0)&&r.push(im.configs.recommended),ig(e?.yaml,v.isDirectDependency("yaml")||v.isDirectDependency("js-yaml"))&&r.push((await eq("@eslint-sukka/yaml")).yaml()),ig(e?.json,!0)&&r.push([...z.configs["flat/base"],{name:"@eslint-sukka/json json",files:[v.constants.GLOB_JSON],rules:{...z.configs["flat/recommended-with-json"].reduce((e,t)=>({...e,...t.rules}),{}),...eS}},{name:"@eslint-sukka/json json5",...eA,files:[v.constants.GLOB_JSON5],rules:{...z.configs["flat/recommended-with-json5"].reduce((e,t)=>({...e,...t.rules}),{}),...eS}},{name:"@eslint-sukka/json jsonc",...eA,files:[v.constants.GLOB_JSONC],rules:{...z.configs["flat/recommended-with-jsonc"].reduce((e,t)=>({...e,...t.rules}),{}),...eS}},{name:"@eslint-sukka/json package.json",...eA,files:["**/package.json"],rules:{"jsonc/sort-array-values":["error",{order:{type:"asc"},pathPattern:"^files$"}],"jsonc/sort-keys":["error",{order:["$schema","publisher","name","displayName","version","private","description","funding","homepage","repository","bugs","categories","type","main","module","types","typesVersions","bin","files","exports","icon","unpkg","jsdelivr","sideEffects","activationEvents","contributes","scripts","keywords","author","license","dependencies","devDependencies","peerDependencies","peerDependenciesMeta","optionalDependencies","packageManager","engines","pnpm","overrides","resolutions","husky","simple-git-hooks","lint-staged","eslintConfig"],pathPattern:"^$"},{order:{type:"asc"},pathPattern:"^(?:dev|peer|optional|bundled)?[Dd]ependencies(Meta)?$"},{order:["types","import","module","require","default"],pathPattern:"^exports.*$"}]}},{name:"@eslint-sukka/json tsconfig.json",...eA,files:["**/tsconfig.json","**/tsconfig.*.json","**/tsconfig-*.json","**/jsconfig.json","**/jsconfig.*.json","**/jsconfig-*.json"],rules:{"jsonc/sort-keys":["error",{order:["$schema","extends","compilerOptions","references","files","include","exclude"],pathPattern:"^$"},{order:["incremental","composite","tsBuildInfoFile","disableSourceOfProjectReferenceRedirect","disableSolutionSearching","disableReferencedProjectLoad","target","lib","jsx","experimentalDecorators","emitDecoratorMetadata","jsxFactory","jsxFragmentFactory","jsxImportSource","reactNamespace","noLib","useDefineForClassFields","moduleDetection","module","rootDir","moduleResolution","baseUrl","paths","rootDirs","typeRoots","types","allowUmdGlobalAccess","moduleSuffixes","allowImportingTsExtensions","resolvePackageJsonExports","resolvePackageJsonImports","customConditions","resolveJsonModule","allowArbitraryExtensions","noResolve","allowJs","checkJs","maxNodeModuleJsDepth","declaration","declarationMap","emitDeclarationOnly","sourceMap","inlineSourceMap","outFile","outDir","removeComments","noEmit","importHelpers","importsNotUsedAsValues","downlevelIteration","sourceRoot","mapRoot","inlineSources","emitBOM","newLine","stripInternal","noEmitHelpers","noEmitOnError","preserveConstEnums","declarationDir","preserveValueImports","isolatedModules","verbatimModuleSyntax","allowSyntheticDefaultImports","esModuleInterop","preserveSymlinks","forceConsistentCasingInFileNames","strict","strictBindCallApply","strictFunctionTypes","strictNullChecks","strictPropertyInitialization","allowUnreachableCode","allowUnusedLabels","alwaysStrict","exactOptionalPropertyTypes","noFallthroughCasesInSwitch","noImplicitAny","noImplicitOverride","noImplicitReturns","noImplicitThis","noPropertyAccessFromIndexSignature","noUncheckedIndexedAccess","noUnusedLocals","noUnusedParameters","useUnknownInCatchVariables","skipDefaultLibCheck","skipLibCheck"],pathPattern:"^compilerOptions$"}]}}]),o){let t=e?.isInEditor??(!(process.env.CI||Q.isCI||process.env.GIT_PARAMS||process.env.VSCODE_GIT_COMMAND||process.env.npm_lifecycle_script?.startsWith("lint-staged"))&&!!(process.env.VSCODE_PID||process.env.VSCODE_CWD||process.env.JETBRAINS_IDE||process.env.VIM||process.env.NVIM));r.push(function(e={}){let{allowJs:t=!1,tsconfigPath:n=!0,tsconfigRootDir:r=A.cwd(),componentExtensions:i=[],isInEditor:o=!1,allowDefaultProject:s=["next.config.ts","rollup.config.ts","webpack.config.ts"]}=e,a="string"==typeof __dirname?__dirname:void 0,u=v.packageResolver.sync(a,"@typescript-eslint/parser"),l=B.nullthrow(u.path,"[eslint-config-sukka#ts] Expect @typescript-eslint/parser to exist");return[{name:"@eslint-sukka/ts base",files:[v.constants.GLOB_TS,v.constants.GLOB_TSX,...i.map(e=>`**/*.${e}`),...t?[v.constants.GLOB_JS]:[]],plugins:{"@typescript-eslint":v.memo(H,"@typescript-eslint/eslint-plugin"),"@stylistic":v.memo(_.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"import-x":v.memo(P,"eslint-plugin-import-x"),paths:W},languageOptions:{parser:$,sourceType:"module",parserOptions:{sourceType:"module",ecmaVersion:"latest",...!0===n?{projectService:{allowDefaultProject:s,loadTypeScriptPlugins:o}}:{project:n},tsconfigRootDir:r,ecmaFeatures:{jsx:!0},jsxPragma:void 0,warnOnUnsupportedTypeScriptVersion:!0}},settings:{"import-x/extensions":eI,"import-x/external-module-folders":["node_modules","node_modules/@types"],"import-x/resolver-next":[G.createTypeScriptImportResolver()],"import-x/parsers":{[l]:eB}},rules:{...V.configs.base.rules,...V.configs.recommendedTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...V.configs.stylisticTypeChecked.reduce((e,t)=>({...e,...t.rules}),{}),...P.configs.typescript.rules,...eT,"@typescript-eslint/ban-ts-comment":["error",{"ts-expect-error":"allow-with-description","ts-ignore":!0,"ts-nocheck":!0,"ts-check":!1,minimumDescriptionLength:10}],"@typescript-eslint/naming-convention":["warn",{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE","snake_case"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"function",format:["camelCase","PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"},{selector:"typeLike",format:["PascalCase"],leadingUnderscore:"allowSingleOrDouble",trailingUnderscore:"allowSingleOrDouble"}],"@typescript-eslint/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"@typescript-eslint/no-unnecessary-type-conversion":"error","@typescript-eslint/require-await":"error","@typescript-eslint/await-thenable":"error","@typescript-eslint/no-for-in-array":"error","@typescript-eslint/no-misused-promises":["error",{checksVoidReturn:!1}],"@typescript-eslint/no-unnecessary-type-assertion":"error","@typescript-eslint/restrict-template-expressions":["error",{allowNumber:!0,allowAny:!0,allowBoolean:!0,allowNever:!0}],"@typescript-eslint/unbound-method":"error","@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",disallowTypeAnnotations:!1,fixStyle:"separate-type-imports"}],"@typescript-eslint/no-import-type-side-effects":"warn","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-definitions":"warn","@typescript-eslint/consistent-generic-constructors":["error","constructor"],"@typescript-eslint/no-base-to-string":["error",{ignoredTypeNames:["Error","RegExp","URL","URLSearchParams"]}],"@typescript-eslint/no-confusing-non-null-assertion":"error","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-extraneous-class":["warn",{allowConstructorOnly:!0,allowEmpty:!0,allowWithDecorator:!0}],"@typescript-eslint/no-invalid-void-type":["off",{allowInGenericTypeArguments:!0,allowAsThisParameter:!0}],"@typescript-eslint/no-non-null-asserted-nullish-coalescing":"error","@typescript-eslint/no-unnecessary-boolean-literal-compare":"error","@typescript-eslint/no-unnecessary-condition":["warn",{allowConstantLoopConditions:!0}],"@typescript-eslint/no-unnecessary-type-arguments":"error","@typescript-eslint/no-unsafe-declaration-merging":"error","@typescript-eslint/non-nullable-type-assertion-style":"error","@typescript-eslint/prefer-includes":"error","@typescript-eslint/prefer-literal-enum-member":["error",{allowBitwiseExpressions:!0}],"@typescript-eslint/prefer-nullish-coalescing":"off","@typescript-eslint/prefer-return-this-type":"error","@typescript-eslint/prefer-optional-chain":"error","@typescript-eslint/prefer-reduce-type-parameter":"error","@typescript-eslint/unified-signatures":["error",{ignoreDifferentlyNamedParameters:!0}],"@typescript-eslint/prefer-for-of":"off","@typescript-eslint/prefer-function-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/prefer-enum-initializers":"warn","@typescript-eslint/no-duplicate-enum-values":"error","@typescript-eslint/no-extra-non-null-assertion":"error","@typescript-eslint/no-meaningless-void-operator":"warn","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/array-type":["warn",{default:"array-simple"}],"@typescript-eslint/no-restricted-imports":["error",{paths:v.RESTRICTED_IMPORT_TS}],"@typescript-eslint/no-empty-object-type":["error",{allowInterfaces:"with-single-extends",allowObjectTypes:"never",allowWithName:"Props$"}],"@typescript-eslint/no-unsafe-function-type":"warn","@typescript-eslint/no-restricted-types":["error",{types:{FC:{message:"To declare a component, you don't have to use FC to annotate it. To type something that accepts/is a React Component, use ComponentType<T>.",fixWith:"ComponentType"},"React.FC":{message:"To declare a component, you don't have to use React.FC to annotate it. To type something that accepts/is a React Component, use React.ComponentType<T>.",fixWith:"React.ComponentType"},ReactElement:{message:"In most cases, you want ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"ReactNode"},"React.ReactElement":{message:"In most cases, you want React.ReactNode. Only ignore this rule when you want to use cloneElement.",fixWith:"React.ReactNode"}}}],"@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-loop-func":"warn","@typescript-eslint/no-redundant-type-constituents":"off","@typescript-eslint/no-floating-promises":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unsafe-enum-comparison":"warn","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/no-deprecated":"warn","@typescript-eslint/no-unnecessary-template-expression":"warn","@typescript-eslint/prefer-readonly":"error","@typescript-eslint/class-literal-property-style":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:[],ignoreClassesThatImplementAnInterface:"public-fields"}],"no-restricted-syntax":["error",{message:'Unnecessary "as const"',selector:"VariableDeclarator > TSAsExpression[expression.properties.length=0] > TSTypeReference > Identifier[name=const]"},{message:'Unnecessary "as const"',selector:"VariableDeclarator[id.typeAnnotation] > TSAsExpression > TSTypeReference > Identifier[name=const]"},{message:'Static class methods requires "this: void", or change to arrow function',selector:'MethodDefinition[static=true][kind!="get"][kind!="set"] > FunctionExpression:not([params.0.name=this][params.0.typeAnnotation.typeAnnotation.type=TSVoidKeyword])'},{message:'Public "static" fields should be read-only',selector:'PropertyDefinition[readonly!=true][static=true][accessibility!="private"][accessibility!="protected"]'}],"@stylistic/member-delimiter-style":["error",{multiline:{delimiter:"comma",requireLast:!1},singleline:{delimiter:"comma",requireLast:!1}}],"@stylistic/lines-between-class-members":["error","always",{exceptAfterSingleLine:!0,exceptAfterOverload:!0}],"@stylistic/padding-line-between-statements":["error",{blankLine:"always",prev:"directive",next:"*"},{blankLine:"always",prev:"*",next:["class","with"]},{blankLine:"always",prev:["class","with"],next:"*"},{blankLine:"any",prev:["interface","type"],next:["interface","type"]}],"@stylistic/type-annotation-spacing":["error",{before:!1,after:!0,overrides:{arrow:{before:!0,after:!0}}}],"@typescript-eslint/no-namespace":"off","@typescript-eslint/prefer-string-starts-ends-with":["error",{allowSingleElementEquality:"always"}],"@typescript-eslint/switch-exhaustiveness-check":["error",{allowDefaultCaseForExhaustiveSwitch:!0,considerDefaultExhaustiveForUnions:!0}],"@typescript-eslint/parameter-properties":["warn",{prefer:"parameter-property"}],"no-throw-literal":"off","@typescript-eslint/only-throw-error":["error",{allowRethrowing:!0,allowThrowingAny:!0,allowThrowingUnknown:!0}],"sukka/string/no-unneeded-to-string":"error","sukka/type/no-force-cast-via-top-type":"error","sukka/type/no-wrapper-type-reference":"error","sukka/no-default-error":"off","sukka/no-export-const-enum":"error","sukka/no-for-in-iterable":"error","sukka/only-await-thenable":"error","sukka/no-undefined-optional-parameters":"warn","sukka/no-try-promise":"error","sukka/no-useless-string-operation":"warn","@stylistic/type-generic-spacing":"error","@stylistic/type-named-tuple-spacing":"error","@typescript-eslint/no-unused-vars":"off","unused-imports/no-unused-vars":["error",{vars:"all",varsIgnorePattern:"^_",args:"after-used",argsIgnorePattern:"^_",ignoreRestSiblings:!0}],"unused-imports/no-unused-imports":o?"error":"off","import-x/consistent-type-specifier-style":["error","prefer-top-level"],"import-x/named":"off","import-x/namespace":"off","import-x/default":"off","import-x/no-duplicates":"off","import-x/no-named-as-default-member":"off","import-x/no-deprecated":"off","paths/alias":"warn"}},{name:"@eslint-sukka/ts dts",files:["**/*.d.ts"],plugins:{"import-x":v.memo(P,"eslint-plugin-import-x")},rules:{"import-x/no-duplicates":"off","unused-imports/no-unused-vars":"off"}},{name:"@eslint-sukka/ts jest/mocha",files:["**/*.{test,spec}.ts?(x)"],rules:{"no-unused-expressions":"off"}},{name:"@eslint-sukka/ts commonjs",files:["**/*.js","**/*.cjs"],plugins:{"@typescript-eslint":v.memo(H,"@typescript-eslint/eslint-plugin")},rules:{"@typescript-eslint/no-require-imports":"off"}}]}({isInEditor:t,...iy(e?.ts)}))}let s=iD("next"),a=ig(e?.react,s||iD("react")||iD("@types/react"));if(a)if(o){let t=await eq("@eslint-sukka/react"),n=iD("@remix-run/node")||iD("@remix-run/react")||iD("@remix-run/serve")||iD("@remix-run/dev");r.push(t.react(iy(e?.react,{nextjs:s,remix:n,reactRefresh:{allowConstantExport:iD("vite")},reactCompiler:iD("babel-plugin-react-compiler")||iD("react-compiler-webpack")?"error":"off"}))),ig(e?.next,s)&&r.push(t.next()),ig(e?.stylex,iD("@stylexjs/stylex")||iD("stylex-webpack"))&&r.push(t.stylex(iy(e?.stylex)))}else console.warn("[eslint-config-sukka] React preset will not be enabled when TypeScript is missing.");ig(e?.node,i||iD("@types/bun"))&&r.push((await eq("@eslint-sukka/node")).node({...iy(e?.node),hasTypeScript:o,hasReact:a})),ig(e?.legacy)&&r.push(function(e={}){return[{name:"@eslint-sukka/legacy base",...e.files?{files:e.files}:{},plugins:{sukka:v.memo(q,"eslint-plugin-sukka")},rules:{"prefer-numeric-literals":"off","no-restricted-properties":["error",{object:"arguments",property:"callee",message:"arguments.callee is deprecated"},{property:"__defineGetter__",message:"Please use Object.defineProperty instead."},{property:"__defineSetter__",message:"Please use Object.defineProperty instead."}],"no-var":"off","prefer-object-spread":"off",strict:["error","safe"],"sukka/unicorn/prefer-default-parameters":"off","sukka/unicorn/prefer-logical-operator-over-ternary":"off","sukka/unicorn/prefer-optional-catch-binding":"off"},languageOptions:{globals:{...e.browser??!0?v.globals.browser:{},...e.node?v.globals.node:{}}}}]}(iy(e?.legacy))),r.push(t);let u=(await Promise.all(r)).flat();return process.env.TIMING&&console.log(`[eslint-config-sukka] Timing: ${Date.now()-n}ms`),u}exports.constants=v.constants,exports.ignores=ep,exports.sukka=ik;