eslint-cli-bundle 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,256 @@
1
+ import{n as e,r as t,t as n}from"./chunk-qnHZjHhP.js";import r from"node:path";import{fileURLToPath as i}from"node:url";var a=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),o=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=i,n.enabled=c,n.humanize=a(),n.destroy=u,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function o(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function s(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function c(e){for(let t of n.skips)if(o(e,t))return!1;for(let t of n.names)if(o(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),s=n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=s(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function s(){try{return localStorage}catch{}}t.exports=o()(e);let{formatters:c}=t.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),c=n(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),l=n(((e,n)=>{let r=t(`os`),i=t(`tty`),a=c(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function d(e){return l(u(e,e&&e.isTTY))}n.exports={supportsColor:d,stdout:l(u(!0,i.isatty(1))),stderr:l(u(!0,i.isatty(2)))}})),u=n(((e,n)=>{let r=t(`tty`),i=t(`util`);e.init=p,e.log=u,e.formatArgs=s,e.save=d,e.load=f,e.useColors=a,e.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=l();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
2
+ `).join(`
3
+ `+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=c()+t+` `+e[0]}function c(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function u(...t){return process.stderr.write(i.formatWithOptions(e.inspectOpts,...t)+`
4
+ `)}function d(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function f(){return process.env.DEBUG}function p(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}n.exports=o()(e);let{formatters:m}=n.exports;m.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
5
+ `).map(e=>e.trim()).join(` `)},m.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}})),d=n(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=s():t.exports=u()})),f=n(((e,t)=>{t.exports={name:`eslint`,version:`10.1.0`,author:`Nicholas C. Zakas <nicholas+npm@nczconsulting.com>`,description:`An AST-based pattern checker for JavaScript.`,type:`commonjs`,bin:{eslint:`./bin/eslint.js`},main:`./lib/api.js`,types:`./lib/types/index.d.ts`,exports:{".":{types:`./lib/types/index.d.ts`,default:`./lib/api.js`},"./config":{types:`./lib/types/config-api.d.ts`,default:`./lib/config-api.js`},"./package.json":`./package.json`,"./use-at-your-own-risk":{types:`./lib/types/use-at-your-own-risk.d.ts`,default:`./lib/unsupported-api.js`},"./rules":{types:`./lib/types/rules.d.ts`},"./universal":{types:`./lib/types/universal.d.ts`,default:`./lib/universal.js`}},typesVersions:{"*":{"use-at-your-own-risk":[`./lib/types/use-at-your-own-risk.d.ts`],rules:[`./lib/types/rules.d.ts`],universal:[`./lib/types/universal.d.ts`],config:[`./lib/types/config-api.d.ts`]}},scripts:{"build:docs:update-links":`node tools/fetch-docs-links.js`,"build:site":`node Makefile.js gensite`,"build:webpack":`node Makefile.js webpack`,"build:readme":`node tools/update-readme.js`,"build:rules-index":`node Makefile.js generateRuleIndexPage`,fmt:`prettier --write .`,"fmt:check":`prettier --check .`,lint:`node Makefile.js lint`,"lint:docs:js":`node Makefile.js lintDocsJS`,"lint:docs:rule-examples":`node Makefile.js checkRuleExamples`,"lint:unused":`knip`,"lint:fix":`node Makefile.js lint -- fix`,"lint:fix:docs:js":`node Makefile.js lintDocsJS -- fix`,"lint:rule-types":`node tools/update-rule-type-headers.js --check`,"lint:types":`attw --pack`,"release:generate:alpha":`node Makefile.js generatePrerelease -- alpha`,"release:generate:beta":`node Makefile.js generatePrerelease -- beta`,"release:generate:latest":`node Makefile.js generateRelease -- latest`,"release:generate:maintenance":`node Makefile.js generateRelease -- maintenance`,"release:generate:rc":`node Makefile.js generatePrerelease -- rc`,"release:publish":`node Makefile.js publishRelease`,test:`node Makefile.js test`,"test:browser":`node Makefile.js cypress`,"test:cli":`mocha`,"test:emfile":`node tools/check-emfile-handling.js`,"test:fuzz":`node Makefile.js fuzz`,"test:performance":`node Makefile.js perf`,"test:pnpm":`cd tests/pnpm && node check.js && pnpm install && pnpm exec tsc`,"test:types":`tsc -p tests/lib/types/tsconfig.json`},gitHooks:{"pre-commit":`lint-staged`},"lint-staged":{"*.{js,json,jsonc,json5,yml,yaml}":[`eslint --fix`,`prettier --write`],"docs/src/**/*.md":[`markdownlint-cli2 --fix`,`prettier --write`],"!({{*.,**/*.}{js,json,jsonc,json5,yml,yaml},docs/src/**/*.md})":`prettier --write --ignore-unknown`,"lib/rules/*.js":[`node tools/update-eslint-all.js`,`node tools/update-eslint-recommended.js`,`node tools/update-rule-type-headers.js`,`git add packages/js/src/configs/*.js lib/types/rules.d.ts`],"docs/src/rules/*.md":[`node tools/check-rule-examples.js`,`node tools/fetch-docs-links.js`,`git add docs/src/_data/further_reading_links.json`],"docs/**/*.svg":`npx -y svgo -r --multipass`},files:[`LICENSE`,`README.md`,`bin`,`conf`,`lib`,`messages`],repository:`eslint/eslint`,funding:`https://eslint.org/donate`,homepage:`https://eslint.org`,bugs:`https://github.com/eslint/eslint/issues/`,dependencies:{"@eslint-community/eslint-utils":`^4.8.0`,"@eslint-community/regexpp":`^4.12.2`,"@eslint/config-array":`^0.23.3`,"@eslint/config-helpers":`^0.5.3`,"@eslint/core":`^1.1.1`,"@eslint/plugin-kit":`^0.6.1`,"@humanfs/node":`^0.16.6`,"@humanwhocodes/module-importer":`^1.0.1`,"@humanwhocodes/retry":`^0.4.2`,"@types/estree":`^1.0.6`,ajv:`^6.14.0`,"cross-spawn":`^7.0.6`,debug:`^4.3.2`,"escape-string-regexp":`^4.0.0`,"eslint-scope":`^9.1.2`,"eslint-visitor-keys":`^5.0.1`,espree:`^11.2.0`,esquery:`^1.7.0`,esutils:`^2.0.2`,"fast-deep-equal":`^3.1.3`,"file-entry-cache":`^8.0.0`,"find-up":`^5.0.0`,"glob-parent":`^6.0.2`,ignore:`^5.2.0`,imurmurhash:`^0.1.4`,"is-glob":`^4.0.0`,"json-stable-stringify-without-jsonify":`^1.0.1`,minimatch:`^10.2.4`,"natural-compare":`^1.4.0`,optionator:`^0.9.3`},devDependencies:{"@arethetypeswrong/cli":`^0.18.0`,"@babel/core":`^7.4.3`,"@babel/preset-env":`^7.4.3`,"@cypress/webpack-preprocessor":`^6.0.2`,"@eslint/eslintrc":`^3.3.5`,"@eslint/json":`^1.2.0`,"@types/esquery":`^1.5.4`,"@types/node":`^22.13.14`,"@typescript-eslint/parser":`^8.56.0`,"babel-loader":`^8.0.5`,c8:`^11.0.0`,chai:`^4.0.1`,cheerio:`^0.22.0`,"common-tags":`^1.8.0`,"core-js":`^3.1.3`,cypress:`^14.1.0`,ejs:`^3.0.2`,eslint:`file:.`,"eslint-config-eslint":`file:packages/eslint-config-eslint`,"eslint-plugin-eslint-plugin":`^6.0.0`,"eslint-plugin-expect-type":`^0.6.0`,"eslint-plugin-yml":`^1.14.0`,"eslint-release":`^3.3.0`,"eslint-rule-extender":`^0.0.1`,eslump:`^3.0.0`,esprima:`^4.0.1`,"fs-teardown":`^0.1.3`,glob:`^10.0.0`,globals:`^16.2.0`,got:`^11.8.3`,"gray-matter":`^4.0.3`,jiti:`^2.6.1`,knip:`^5.60.2`,"lint-staged":`^11.0.0`,"markdown-it":`^12.2.0`,"markdown-it-container":`^3.0.0`,"markdownlint-cli2":`^0.21.0`,marked:`^4.0.8`,metascraper:`^5.25.7`,"metascraper-description":`^5.25.7`,"metascraper-image":`^5.29.3`,"metascraper-logo":`^5.25.7`,"metascraper-logo-favicon":`^5.25.7`,"metascraper-title":`^5.25.7`,mocha:`^11.7.1`,"node-polyfill-webpack-plugin":`^1.0.3`,"npm-license":`^0.3.3`,prettier:`3.8.1`,progress:`^2.0.3`,proxyquire:`^2.0.1`,recast:`^0.23.0`,"regenerator-runtime":`^0.14.0`,semver:`^7.5.3`,shelljs:`^0.10.0`,sinon:`^11.0.0`,typescript:`^5.9.3`,webpack:`^5.23.0`,"webpack-cli":`^4.5.0`,yorkie:`^2.0.0`},peerDependencies:{jiti:`*`},peerDependenciesMeta:{jiti:{optional:!0}},keywords:[`ast`,`lint`,`javascript`,`ecmascript`,`espree`],license:`MIT`,engines:{node:`^20.19.0 || ^22.13.0 || >=24`}}})),p,m,h,g,_=e((()=>{p=()=>i(import.meta.url),m=()=>r.dirname(p()),h=m(),g=p()})),v=n(((e,t)=>{let n=d()(`eslint:rules`);var r=class e extends Map{constructor(t){let r=t.length;super(n.enabled?t.map(([e,t])=>{let i=null;return[e,()=>(i||=(n(`Loading rule %o (remaining=%d)`,e,--r),t()),i)]}):t),Object.defineProperty(e.prototype,`set`,{configurable:!0,value:void 0})}get(e){let t=super.get(e);return t&&t()}*values(){for(let e of super.values())yield e()}*entries(){for(let[e,t]of super.entries())yield[e,t()]}forEach(e,t){for(let[n,r]of super.entries())e.call(t,r(),n,this)}};Object.defineProperties(r.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:r.prototype.entries}}),t.exports={LazyLoadingRuleMap:r}})),y=n((e=>{let t={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],ExportAllDeclaration:[`exported`,`source`,`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`]},n=Object.keys(t);for(let e of n)Object.freeze(t[e]);Object.freeze(t);let r=new Set([`parent`,`leadingComments`,`trailingComments`]);function i(e){return!r.has(e)&&e[0]!==`_`}function a(e){return Object.keys(e).filter(i)}function o(e){let n=Object.assign({},t);for(let t of Object.keys(e))if(Object.hasOwn(n,t)){let r=new Set(e[t]);for(let e of n[t])r.add(e);n[t]=Object.freeze(Array.from(r))}else n[t]=Object.freeze(Array.from(e[t]));return Object.freeze(n)}e.KEYS=t,e.getKeys=a,e.unionWith=o})),b=n(((e,t)=>{(function(){function e(e){if(e==null)return!1;switch(e.type){case`ArrayExpression`:case`AssignmentExpression`:case`BinaryExpression`:case`CallExpression`:case`ConditionalExpression`:case`FunctionExpression`:case`Identifier`:case`Literal`:case`LogicalExpression`:case`MemberExpression`:case`NewExpression`:case`ObjectExpression`:case`SequenceExpression`:case`ThisExpression`:case`UnaryExpression`:case`UpdateExpression`:return!0}return!1}function n(e){if(e==null)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:return!0}return!1}function r(e){if(e==null)return!1;switch(e.type){case`BlockStatement`:case`BreakStatement`:case`ContinueStatement`:case`DebuggerStatement`:case`DoWhileStatement`:case`EmptyStatement`:case`ExpressionStatement`:case`ForInStatement`:case`ForStatement`:case`IfStatement`:case`LabeledStatement`:case`ReturnStatement`:case`SwitchStatement`:case`ThrowStatement`:case`TryStatement`:case`VariableDeclaration`:case`WhileStatement`:case`WithStatement`:return!0}return!1}function i(e){return r(e)||e!=null&&e.type===`FunctionDeclaration`}function a(e){switch(e.type){case`IfStatement`:return e.alternate==null?e.consequent:e.alternate;case`LabeledStatement`:case`ForStatement`:case`ForInStatement`:case`WhileStatement`:case`WithStatement`:return e.body}return null}function o(e){var t;if(e.type!==`IfStatement`||e.alternate==null)return!1;t=e.consequent;do{if(t.type===`IfStatement`&&t.alternate==null)return!0;t=a(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:o,trailingStatement:a}})()})),x=n(((e,t)=>{(function(){var e,n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r,i,a,o;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function s(e){return 48<=e&&e<=57}function c(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&r.indexOf(e)>=0}function d(e){return e===10||e===13||e===8232||e===8233}function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(i=Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function p(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(f(e))}function m(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(f(e))}function h(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(f(t))}function g(t){return t<128?a[t]:e.NonAsciiIdentifierPart.test(f(t))}t.exports={isDecimalDigit:s,isHexDigit:c,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:d,isIdentifierStartES5:p,isIdentifierPartES5:m,isIdentifierStartES6:h,isIdentifierPartES6:g}})()})),S=n(((e,t)=>{(function(){var e=x();function n(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`let`:return!0;default:return!1}}function r(e,t){return!t&&e===`yield`?!1:i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}}function a(e,t){return e===`null`||e===`true`||e===`false`||r(e,t)}function o(e,t){return e===`null`||e===`true`||e===`false`||i(e,t)}function s(e){return e===`eval`||e===`arguments`}function c(t){var n,r,i;if(t.length===0||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return(e-55296)*1024+(t-56320)+65536}function u(t){var n,r,i,a,o;if(t.length===0)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(i=t.charCodeAt(n),55296<=i&&i<=56319){if(++n,n>=r||(a=t.charCodeAt(n),!(56320<=a&&a<=57343)))return!1;i=l(i,a)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function d(e,t){return c(e)&&!a(e,t)}function f(e,t){return u(e)&&!o(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:s,isIdentifierNameES5:c,isIdentifierNameES6:u,isIdentifierES5:d,isIdentifierES6:f}})()})),C=n((e=>{(function(){e.ast=b(),e.code=x(),e.keyword=S()})()})),w=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(e,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],r=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={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`},o=`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`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t===!1?!1:d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(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 h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e){return e===10||e===13||e===8232||e===8233}function w(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(C(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var T=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,E=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,O=D.hasOwnProperty,k=D.toString,A=Object.hasOwn||(function(e,t){return O.call(e,t)}),j=Array.isArray||(function(e){return k.call(e)===`[object Array]`}),M=Object.create(null);function N(e){return M[e]||(M[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var F=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var L=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function R(e,t){for(var n=1,r=0;;){var i=w(e,r,t);if(i<0)return new I(n,t-r);++n,r=i}}var z={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},ee=!1;function B(e){var t={};for(var n in z)t[n]=e&&A(e,n)?e[n]:z[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ee&&typeof console==`object`&&console.warn&&(ee=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
6
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),j(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(j(t.onComment)&&(t.onComment=te(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function te(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new L(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var V=1,H=2,U=4,W=8,ne=16,re=32,G=64,ie=128,ae=256,oe=512,se=1024,ce=V|H|ae;function le(e,t){return H|(e?U:0)|(t?W:0)}var ue=0,de=1,fe=2,pe=3,me=4,he=5,ge=function(e,t,n){this.options=e=B(e),this.sourceFile=e.sourceFile,this.keywords=N(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=N(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=N(i),this.reservedWordsStrictBind=N(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
7
+ `,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.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=e.sourceType===`module`,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),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?H:V),this.regexpState=null,this.privateNameStack=[]},_e={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ge.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},_e.inFunction.get=function(){return(this.currentVarScope().flags&H)>0},_e.inGenerator.get=function(){return(this.currentVarScope().flags&W)>0},_e.inAsync.get=function(){return(this.currentVarScope().flags&U)>0},_e.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ae|oe))return!1;if(t&H)return(t&U)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},_e.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&V)},_e.allowSuper.get=function(){return(this.currentThisScope().flags&G)>0||this.options.allowSuperOutsideMethod},_e.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ie)>0},_e.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},_e.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ae|oe)||t&H&&!(t&ne))return!0}return!1},_e.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&se||!this.inModule&&e&V)},_e.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ae)>0},ge.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},ge.parse=function(e,t){return new this(t,e).parse()},ge.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},ge.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(ge.prototype,_e);var K=ge.prototype,ve=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;K.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=ve.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){E.lastIndex=e+t[0].length;var n=E.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,E.lastIndex=e,e+=E.exec(this.input)[0].length,this.input[e]===`;`&&e++}},K.eat=function(e){return this.type===e?(this.next(),!0):!1},K.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},K.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},K.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},K.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},K.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},K.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},K.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},K.expect=function(e){this.eat(e)||this.unexpected()},K.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ye=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};K.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`)}},K.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`)},K.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`)},K.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var q=ge.prototype;q.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==b.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 a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var J={kind:`loop`},Y={kind:`switch`};q.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;E.lastIndex=this.pos;var t=E.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(f(r)){var i=n;do n+=r<=65535?1:2;while(p(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!c.test(a))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;E.lastIndex=this.pos;var e=E.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.fullCharCodeAt(t+8))||n===92))},q.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;E.lastIndex=this.pos;var n=E.exec(this.input),r=this.pos+n[0].length;if(x.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||p(a=this.fullCharCodeAt(i))||a===92)return!1;E.lastIndex=i;var o=E.exec(this.input);if(r=i+o[0].length,o&&x.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!f(s)&&s!==92)return!1;var l=r;do r+=s<=65535?1:2;while(p(s=this.fullCharCodeAt(r)));if(s===92)return!0;var u=this.input.slice(l,r);return!(c.test(u)||t&&u===`of`)},q.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},q.isUsing=function(e){return this.isUsingKeyword(!1,e)},q.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){E.lastIndex=this.pos;var o=E.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,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'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===b.name&&d.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},q.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},q.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},q.parseDoStatement=function(e){return this.next(),this.labels.push(J),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(J),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._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 a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new ye,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&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))},q.parseForAfterInit=function(e,t,n){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},q.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,xe|(n?0:Se),!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},q.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},q.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Y),this.enterScope(se);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._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(b.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`)},q.parseThrowStatement=function(e){return this.next(),x.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 be=[];q.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?re:0),this.checkLValPattern(e,t?me:fe),this.expect(b.parenR),e},q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.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(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},q.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(J),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},q.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`)},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},q.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},q.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},q.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},q.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&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(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},q.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(b.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==b._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&!(t&&(this.type===b._in||this.isContextual(`of`)))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(b.comma))break}return e},q.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?de:fe,!1)};var xe=1,Se=2,X=4;q.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Se&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&xe&&(e.id=t&X&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Se)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?de:fe:pe));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(le(e.async,e.generator)),t&xe||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&xe?`FunctionDeclaration`:`FunctionExpression`)},q.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.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(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ce(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`)},q.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}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===b.parenL||o!==`method`||i||a){var l=!n.static&&Z(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},q.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},q.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},q.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(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&&Z(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},q.parseClassField=function(e){return Z(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&Z(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)?(this.enterScope(oe|G),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},q.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(ae|G);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},q.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,fe,!1)):(t===!0&&this.unexpected(),e.id=null)},q.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},q.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];A(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ce(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function Z(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}q.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!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},q.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?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!==b.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),i.local.type===`Literal`&&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`)},q.parseExportDeclaration=function(e){return this.parseStatement(null)},q.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,xe|X,!1,e)}else if(this.type===b._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}else{var r=this.parseMaybeAssign();return this.semicolon(),r}},q.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),A(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},q.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},q.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},q.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},q.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`)},q.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},q.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=be,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},q.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,fe),this.finishNode(e,`ImportSpecifier`)},q.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,fe),this.finishNode(e,`ImportDefaultSpecifier`)},q.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,fe),this.finishNode(e,`ImportNamespaceSpecifier`)},q.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},q.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},n=!0;!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;A(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},q.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return F.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},q.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)},q.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var we=ge.prototype;we.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&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 a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&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),e.argument.type===`AssignmentPattern`&&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},we.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 a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},we.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},we.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},we.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},we.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(b.comma),t&&this.type===b.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===b.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},we.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},we.parseBindingListItem=function(e){return e},we.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},we.checkLValSimple=function(e,t,n){t===void 0&&(t=ue);var r=t!==ue;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&&(t===fe&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(A(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==he&&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`)}},we.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=ue),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},we.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=ue),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 Te=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Ee={b_stat:new Te(`{`,!1),b_expr:new Te(`{`,!0),b_tmpl:new Te("${",!1),p_stat:new Te(`(`,!1),p_expr:new Te(`(`,!0),q_tmpl:new Te("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Te(`function`,!1),f_expr:new Te(`function`,!0),f_expr_gen:new Te(`function`,!0,!1,null,!0),f_gen:new Te(`function`,!1,!1,null,!0)},De=ge.prototype;De.initialContext=function(){return[Ee.b_stat]},De.curContext=function(){return this.context[this.context.length-1]},De.braceIsBlock=function(e){var t=this.curContext();return t===Ee.f_expr||t===Ee.f_stat?!0:e===b.colon&&(t===Ee.b_stat||t===Ee.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===Ee.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},De.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},De.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},De.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===Ee.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ee.b_stat:Ee.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Ee.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Ee.p_stat:Ee.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&!(e===b.semi&&this.curContext()!==Ee.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===Ee.b_stat)?this.context.push(Ee.f_expr):this.context.push(Ee.f_stat),this.exprAllowed=!1},b.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===Ee.q_tmpl?this.context.pop():this.context.push(Ee.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Ee.f_expr?this.context[t]=Ee.f_expr_gen:this.context[t]=Ee.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Q=ge.prototype;Q.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},Q.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},Q.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ye,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},Q.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(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},Q.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&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},Q.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.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},Q.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&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,a?`LogicalExpression`:`BinaryExpression`)},Q.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&Oe(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&ke(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1);else return o};function Oe(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&Oe(e.expression)}function ke(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&ke(e.expression)||e.type===`ParenthesizedExpression`&&ke(e.expression)}Q.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},Q.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},Q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},Q.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},Q.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&e.type!==`Super`?u.property=this.parsePrivateIdent():u.property=this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ye,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},Q.parseExprAtom=function(e,t,n){this.type===b.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(r,`Super`);case b._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case b.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(Ee.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===b.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case b.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return r=this.startNode(),r.value=this.type===b._null?null:this.type===b._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case b.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case b.braceL:return this.overrideContext(Ee.b_expr),this.parseObj(!1,e);case b._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},Q.parseExprAtomDefault=function(){this.unexpected()},Q.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.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)}else this.unexpected()},Q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},Q.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&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`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},Q.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},Q.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},Q.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Q.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ye,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}else if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}else c.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}else return i},Q.parseParenItem=function(e){return e},Q.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Ae=[];Q.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===b.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),e.property.name!==`target`&&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(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ae,this.finishNode(e,`NewExpression`)},Q.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
8
+ `),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
9
+ `),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},Q.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},Q.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},Q.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},Q.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},Q.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},Q.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},Q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},Q.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Q.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=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(le(t,r.generator)|G|(n?ie:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},Q.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(le(n,!1)|ne),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=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},Q.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,he),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},Q.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},Q.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,de,t?null:n)}},Q.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},Q.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&ce)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&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&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},Q.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},Q.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name===`class`||e.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=b.name):this.unexpected(),e},Q.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?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},Q.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},Q.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var je=ge.prototype;je.raise=function(e,t){var n=R(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},je.raiseRecoverable=je.raise,je.curPosition=function(){if(this.options.locations)return new I(this.curLine,this.pos-this.lineStart)};var Me=ge.prototype,Ne=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Me.enterScope=function(e){this.scopeStack.push(new Ne(e))},Me.exitScope=function(){this.scopeStack.pop()},Me.treatFunctionsAsVarInScope=function(e){return e.flags&H||!this.inModule&&e.flags&V},Me.declareName=function(e,t,n){var r=!1;if(t===fe){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&&i.flags&V&&delete this.undefinedExports[e]}else if(t===me)this.currentScope().lexical.push(e);else if(t===pe){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&re&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&V&&delete this.undefinedExports[e],s.flags&ce)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Me.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Me.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Me.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ce|oe|ae))return t}},Me.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(ce|oe|ae)&&!(t.flags&ne))return t}};var Pe=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new L(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Fe=ge.prototype;Fe.startNode=function(){return new Pe(this,this.start,this.startLoc)},Fe.startNodeAt=function(e,t){return new Pe(this,e,t)};function Ie(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}Fe.finishNode=function(e,t){return Ie.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Fe.finishNodeAt=function(e,t,n,r){return Ie.call(this,e,t,n,r)},Fe.copyNode=function(e){var t=new Pe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Le=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,Re=`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`,ze=Re+` Extended_Pictographic`,Be=ze,Ve=Be+` EBase EComp EMod EPres ExtPict`,He=Ve,Ue=He,We={9:Re,10:ze,11:Be,12:Ve,13:He,14:Ue},Ge=`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`,Ke={9:``,10:``,11:``,12:``,13:``,14:Ge},qe=`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`,Je=`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`,Ye=Je+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Xe=Ye+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Ze=Xe+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Qe=Ze+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,$e=Qe+` `+Le,et={9:Je,10:Ye,11:Xe,12:Ze,13:Qe,14:$e},tt={};function nt(e){var t=tt[e]={binary:N(We[e]+` `+qe),binaryOfStrings:N(Ke[e]),nonBinary:{General_Category:N(qe),Script:N(et[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}for(var rt=0,it=[9,10,11,12,13,14];rt<it.length;rt+=1){var at=it[rt];nt(at)}var $=ge.prototype,ot=function(e,t){this.parent=e,this.base=t||this};ot.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},ot.prototype.sibling=function(){return new ot(this.parent,this.base)};var st=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=tt[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};st.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,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)},st.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},st.prototype.at=function(e,t){t===void 0&&(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 a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},st.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},st.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},st.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},st.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},st.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1},st.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},$.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function ct(e){for(var t in e)return!0;return!1}$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&ct(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},$.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`)}},$.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new ot(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`)},$.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},$.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):!1},$.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},$.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},$.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},$.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 i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},$.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)},$.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},$.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 a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-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},$.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},$.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&lt(n);)t+=P(n),e.advance();return t};function lt(e){return e===105||e===109||e===115}$.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)},$.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},$.regexp_eatSyntaxCharacter=function(e){var t=e.current();return ut(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ut(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}$.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!ut(n);)e.advance();return e.pos!==t},$.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},$.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,i=n;r<i.length;r+=1)i[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}},$.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},$.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},$.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),dt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function dt(e){return f(e,!0)||e===36||e===95}$.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),ft(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ft(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}$.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},$.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},$.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},$.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)},$.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},$.regexp_eatZero=function(e){return e.current()===48&&!wt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},$.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},$.regexp_eatControlLetter=function(e){var t=e.current();return pt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function pt(e){return e>=65&&e<=90||e>=97&&e<=122}$.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&mt(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function mt(e){return e>=0&&e<=1114111}$.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},$.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};var ht=0,gt=1,_t=2;$.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(vt(t))return e.lastIntValue=-1,e.advance(),gt;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===_t&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return ht};function vt(e){return e===100||e===68||e===115||e===83||e===119||e===87}$.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),gt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return ht},$.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},$.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return gt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return _t;e.raise(`Invalid property name`)},$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;yt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function yt(e){return pt(e)||e===95}$.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;bt(t=e.current());)e.lastStringValue+=P(t),e.advance();return e.lastStringValue!==``};function bt(e){return yt(e)||wt(e)}$.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},$.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&&n===_t&&e.raise(`Negated character class may contain strings`),!0}return!1},$.regexp_classContents=function(e){return e.current()===93?gt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),gt)},$.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&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},$.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();(n===99||Dt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r===93?!1:(e.lastIntValue=r,e.advance(),!0)},$.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)},$.regexp_classSetExpression=function(e){var t=gt,n;if(!this.regexp_eatClassSetRange(e))if(n=this.regexp_eatClassSetOperand(e)){n===_t&&(t=_t);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){n!==_t&&(t=gt);continue}e.raise(`Invalid character in character class`)}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`);for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===_t&&(t=_t)}},$.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 n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},$.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?gt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},$.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&&r===_t&&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},$.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},$.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===_t&&(t=_t);return t},$.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?gt:_t},$.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&xt(n)||St(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function xt(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function St(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}$.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Ct(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ct(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}$.regexp_eatClassControlLetter=function(e){var t=e.current();return wt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},$.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},$.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;wt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function wt(e){return e>=48&&e<=57}$.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Tt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Et(n),e.advance();return e.pos!==t};function Tt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Et(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}$.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=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1},$.regexp_eatOctalDigit=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Dt(e){return e>=48&&e<=55}$.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Tt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Et(i),e.advance()}return!0};var Ot=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new L(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},kt=ge.prototype;kt.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 Ot(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},kt.getToken=function(){return this.next(),new Ot(this)},typeof Symbol<`u`&&(kt[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),kt.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},kt.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},kt.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},kt.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},kt.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=w(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())},kt.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&&!C(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())},kt.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++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 loop}break;default:if(e>8&&e<14||e>=5760&&T.test(String.fromCharCode(e)))++this.pos;else break loop}}},kt.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)},kt.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&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},kt.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},kt.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},kt.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},kt.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},kt.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},kt.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},kt.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},kt.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},kt.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+P(t)+`'`)},kt.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)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(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+P(e)+`'`)},kt.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},kt.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(x.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 a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new st(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},kt.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95){i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;continue}if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function At(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function jt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}kt.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=jt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},kt.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=jt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=At(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},kt.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},kt.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;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Mt={};kt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Mt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},kt.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Mt;this.raise(e,t)},kt.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(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
10
+ `;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},kt.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(b.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
11
+ `&&++this.pos;case`
12
+ `:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,`Unterminated template`)},kt.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
13
+ `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++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&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},kt.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},kt.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(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=P(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},kt.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var Nt=`8.16.0`;ge.acorn={Parser:ge,version:Nt,defaultOptions:z,Position:I,SourceLocation:L,getLineInfo:R,Node:Pe,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Te,tokContexts:Ee,isIdentifierChar:p,isIdentifierStart:f,Token:Ot,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:T};function Pt(e,t){return ge.parse(e,t)}function Ft(e,t,n){return ge.parseExpressionAt(e,t,n)}function It(e,t){return ge.tokenizer(e,t)}e.Node=Pe,e.Parser=ge,e.Position=I,e.SourceLocation=L,e.TokContext=Te,e.Token=Ot,e.TokenType=m,e.defaultOptions=z,e.getLineInfo=R,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=T,e.parse=Pt,e.parseExpressionAt=Ft,e.tokContexts=Ee,e.tokTypes=b,e.tokenizer=It,e.version=Nt}))})),T=n(((e,t)=>{t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,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:`♦`}})),E=n(((e,t)=>{let n=T(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,`tokTypes`,{get:function(){return o(w()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||w(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}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:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(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 `"+(n===62?`&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=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
14
+ `:`\r
15
+ `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}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;r===38?(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(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);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(l.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===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.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 l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.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===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.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!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.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),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}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===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}})),D=n((e=>{var t=w(),n=E(),r=y();function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==`default`){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=i(t);let o={Boolean:`Boolean`,EOF:`<end>`,Identifier:`Identifier`,PrivateIdentifier:`PrivateIdentifier`,Keyword:`Keyword`,Null:`Null`,Numeric:`Numeric`,Punctuator:`Punctuator`,String:`String`,RegularExpression:`RegularExpression`,Template:`Template`,JSXIdentifier:`JSXIdentifier`,JSXText:`JSXText`};function s(e,t){let n=e[0],r=e.at(-1),i={type:o.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}var c=class{constructor(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}translate(e,t){let n=e.type,r=this._acornTokTypes,i=e;if(n===r.name)i.type=o.Identifier,`value`in e&&e.value===`static`&&(i.type=o.Keyword),t.ecmaVersion>5&&`value`in e&&(e.value===`yield`||e.value===`let`)&&(i.type=o.Keyword);else if(n===r.privateId)i.type=o.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||`binop`in n&&n.binop&&!n.keyword||`isAssign`in n&&n.isAssign)i.type=o.Punctuator,i.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)i.type=o.JSXIdentifier;else if(n.label===`jsxText`||n===r.jsxAttrValueToken)i.type=o.JSXText;else if(n.keyword)n.keyword===`true`||n.keyword===`false`?i.type=o.Boolean:n.keyword===`null`?i.type=o.Null:i.type=o.Keyword;else if(n===r.num)i.type=o.Numeric,i.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,i.type=o.JSXText):i.type=o.String,i.value=this._code.slice(e.start,e.end);else if(n===r.regexp){i.type=o.RegularExpression;let t=`value`in e&&e.value;i.regex={flags:t.flags,pattern:t.pattern},i.value=`/${t.pattern}/${t.flags}`}return i}onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,a=()=>{r.push(s(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)),null),i.push(e),i.length>1&&a();return}if(e.type===n.dollarBraceL){i.push(e),a();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),null),i.push(e);return}this._curlyBrace&&=(r.push(this.translate(this._curlyBrace,t)),null),r.push(this.translate(e,t))}};let l=[3,5,6,7,8,9,10,11,12,13,14,15,16,17],u=l.at(-1);function d(){return u}function f(){return[...l]}function p(e=5){let t=e===`latest`?d():e;if(typeof t!=`number`)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!l.includes(t))throw Error(`Invalid ecmaVersion.`);return t}function m(e=`script`){if(e===`script`||e===`module`||e===`commonjs`)return e;throw Error(`Invalid sourceType.`)}function h(e){let t=p(e.ecmaVersion),n=m(e.sourceType),r=e.range===!0,i=e.loc===!0;if(t!==3&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(e.allowReserved!==void 0&&typeof e.allowReserved!=`boolean`)throw Error("`allowReserved`, when present, must be `true` or `false`");let a=t===3?e.allowReserved||`never`:!1,o=e.ecmaFeatures||{},s=e.sourceType===`commonjs`||!!o.globalReturn;if(n===`module`&&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:a,allowReturnOutsideFunction:s})}let g=Symbol(`espree's internal state`),_=Symbol(`espree's esprimaFinishNode`);function v(e,t,n,r,i,a,o){let s;s=e?`Block`:o.slice(n,n+2)===`#!`?`Hashbang`:`Line`;let c={type:s,value:t};return typeof n==`number`&&(c.start=n,c.end=r,c.range=[n,r]),typeof i==`object`&&(c.loc={start:i,end:a}),c}var b=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){(typeof e!=`object`||!e)&&(e={}),typeof n!=`string`&&!(n instanceof String)&&(n=String(n));let r=e.sourceType,i=h(e),a=i.ecmaFeatures||{},o=i.tokens===!0?new c(t,n):null,s={originalSourceType:r||i.sourceType,tokens:o?[]:null,comments:i.comment===!0?[]:null,impliedStrict:a.impliedStrict===!0&&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,s),e.type!==t.eof&&(s.lastToken=e)},onComment(e,t,r,i,a,o){if(s.comments){let c=v(e,t,r,i,a,o,n);s.comments.push(c)}}},n),this[g]=s}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[g],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(e,t){let n=super.finishNode(e,t);return this[_](n)}finishNodeAt(e,t,n,r){let i=super.finishNodeAt(e,t,n,r);return this[_](i)}parse(){let e=this[g],t=super.parse();return t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),this[g].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[g].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(e!=null){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
16
+ `,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[g].jsxAttrValueToken=!0),n}[_](e){return e.type===`TemplateElement`&&this[g].templateElements.push(e),e.type.includes(`Function`)&&!(`generator`in e)&&(e.generator=!1),e}}};let x={_regular:null,_jsx:null,get regular(){if(this._regular===null){let e=b();this._regular=a.Parser.extend(e)}return this._regular},get jsx(){if(this._jsx===null){let e=b(),t=n();this._jsx=a.Parser.extend(t,e)}return this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function S(e,t){let n=x.get(t);return(!t||t.tokens!==!0)&&(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}function C(e,t){return new(x.get(t))(t,e).parse()}let T=(function(){let e,t={};for(e in typeof Object.create==`function`&&(t=Object.create(null)),r.KEYS)Object.hasOwn(r.KEYS,e)&&(t[e]=e);return typeof Object.freeze==`function`&&Object.freeze(t),t})(),D=d(),O=f();Object.defineProperty(e,`VisitorKeys`,{enumerable:!0,get:function(){return r.KEYS}}),e.Syntax=T,e.latestEcmaVersion=D,e.name=`espree`,e.parse=C,e.supportedEcmaVersions=O,e.tokenize=S,e.version=`11.2.0`})),O=n(((e,t)=>{t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}})),k=n(((e,t)=>{let n=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,r=/\r\n|[\r\n\u2028\u2029]/u,i=/^#!([^\r\n]+)/u;function a(){return new RegExp(r.source,`gu`)}t.exports={breakableTypePattern:n,lineBreakPattern:r,createGlobalLinebreakMatcher:a,shebangPattern:i}})),A=n(((e,t)=>{let n={exports:!0,global:!1,module:!1,require:!1},r={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},i={...r,JSON:!1},a={...i,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},o={...a},s={...o,Atomics:!1,SharedArrayBuffer:!1},c={...s},l={...c},u={...l,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},d={...u,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},f={...d},p={...f},m={...p},h={...m,Float16Array:!1,Iterator:!1};t.exports={commonjs:n,es3:r,es5:i,es2015:a,es2016:o,es2017:s,es2018:c,es2019:l,es2020:u,es2021:d,es2022:f,es2023:p,es2024:m,es2025:h,es2026:{...h,AsyncDisposableStack:!1,DisposableStack:!1,SuppressedError:!1}}})),j=n(((e,t)=>{t.exports={LATEST_ECMA_VERSION:2026}})),M=n(((e,t)=>{let{KEYS:n}=y(),r=C(),i=D(),a=O(),{breakableTypePattern:o,createGlobalLinebreakMatcher:s,lineBreakPattern:c,shebangPattern:l}=k(),u=A(),{LATEST_ECMA_VERSION:d}=j(),f=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,p=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,m=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,h=/Array$/u,g=/^(?:bind|call|apply)$/u,_=/^[\s*]*@this/mu,v=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,b=/^(?:eslint[- ]|(?:globals?|exported) )/u,x=new Set([`\r
17
+ `,`\r`,`
18
+ `,`\u2028`,`\u2029`]),S=new Set([`Program`,`BlockStatement`,`StaticBlock`,`SwitchCase`]),w=new Set([`let`,`const`,`using`,`await using`]),T=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,E=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,M=new Set([`&&=`,`||=`,`??=`]),N=u[`es${d}`];function P(e,t,n){let r=e.identifier,i=t===0||n[t-1].identifier!==r;return r&&e.init===!1&&e.isWrite()&&i}function F(e){return e[0]!==e[0].toLocaleLowerCase()}function I(e){return e.id&&F(e.id.name)}function L(e){for(let t=e;t;t=t.parent)if(f.test(t.type))return t;return null}function R(e){return!!(e&&f.test(e.type))}function z(e){return!!(e&&p.test(e.type))}function ee(e){for(let t=e;t&&!R(t);t=t.parent)if(z(t))return!0;return!1}function B(e){return e.type===`Literal`&&e.value===null&&!e.regex&&!e.bigint}function te(e){return B(e)||e.type===`Identifier`&&e.name===`undefined`||e.type===`UnaryExpression`&&e.operator===`void`}function V(e){return e.parent.type===`CallExpression`&&e.parent.callee===e}function H(e){switch(e.type){case`Literal`:if(e.value===null){if(B(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}else return String(e.value);break;case`TemplateLiteral`:if(e.expressions.length===0&&e.quasis.length===1)return e.quasis[0].value.cooked;break}return null}function U(e){let t;switch(e&&e.type){case`ChainExpression`:return U(e.expression);case`Property`:case`PropertyDefinition`:case`MethodDefinition`:case`TSPropertySignature`:case`TSMethodSignature`:t=e.key;break;case`MemberExpression`:t=e.property;break}return t?t.type===`Identifier`&&!e.computed?t.name:H(t):null}function W(e){return e&&e.type===`ChainExpression`?e.expression:e}function ne(e,t){return typeof t==`string`?e===t:t.test(e)}function re(e,t){return e.type===`Identifier`&&ne(e.name,t)}function G(e,t,n){let r=W(e);if(r.type!==`MemberExpression`||t&&!re(r.object,t))return!1;if(n){let e=U(r);if(typeof e!=`string`||!ne(e,n))return!1}return!0}function ie(e,t){return e.regex||t.regex?!!(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value}function ae(e,t,n=!1){if(e.type!==t.type)return e.type===`ChainExpression`?ae(e.expression,t,n):t.type===`ChainExpression`?ae(e,t.expression,n):!1;switch(e.type){case`Super`:case`ThisExpression`:return!0;case`Identifier`:case`PrivateIdentifier`:return e.name===t.name;case`Literal`:return ie(e,t);case`ChainExpression`:return ae(e.expression,t.expression,n);case`MemberExpression`:if(!n){let r=U(e);if(r!==null)return ae(e.object,t.object,n)&&r===U(t)}return e.computed===t.computed&&ae(e.object,t.object,n)&&ae(e.property,t.property,n);default:return!1}}function oe(e){return G(e,`Reflect`,`apply`)}function se(e){return G(e,h,`from`)}function ce(e){return G(e,`Array`,`fromAsync`)}function le(e){return G(e,null,m)}function ue(e){return t=>!e(t)}function de(e,t){let n=e.getTokenBefore(t),r=e.getTokenAfter(t);return!!(n&&r)&&n.value===`(`&&n.range[1]<=t.range[0]&&r.value===`)`&&r.range[0]>=t.range[1]}function fe(e){return e.value===`=`&&e.type===`Punctuator`}function pe(e){return e.value===`=>`&&e.type===`Punctuator`}function me(e){return e.value===`,`&&e.type===`Punctuator`}function he(e){return e.value===`.`&&e.type===`Punctuator`}function ge(e){return e.value===`?.`&&e.type===`Punctuator`}function _e(e){return e.value===`;`&&e.type===`Punctuator`}function K(e){return e.value===`:`&&e.type===`Punctuator`}function ve(e){return e.value===`(`&&e.type===`Punctuator`}function ye(e){return e.value===`)`&&e.type===`Punctuator`}function q(e){return e.value===`[`&&e.type===`Punctuator`}function J(e){return e.value===`]`&&e.type===`Punctuator`}function Y(e){return e.value===`{`&&e.type===`Punctuator`}function be(e){return e.value===`}`&&e.type===`Punctuator`}function xe(e){return e.type===`Line`||e.type===`Block`||e.type===`Shebang`}function Se(e){return e.type===`Keyword`}function X(e){return e.type===`ExportDefaultDeclaration`||e.type===`ExportNamedDeclaration`||e.type===`ExportAllDeclaration`}function Ce(e,t){let n=t.getTokenBefore(e,{includeComments:!0});return n&&n.type===`Block`&&n.value.charAt(0)===`*`&&e.loc.start.line-n.loc.end.line<=1?n:null}function Z(e,t){let n=e.parent;switch(e.type){case`ClassDeclaration`:case`FunctionDeclaration`:return Ce(X(n)?n:e,t);case`ClassExpression`:return Ce(n.parent,t);case`ArrowFunctionExpression`:case`FunctionExpression`:if(n.type!==`CallExpression`&&n.type!==`NewExpression`){for(;!t.getCommentsBefore(n).length&&!/Function/u.test(n.type)&&n.type!==`MethodDefinition`&&n.type!==`Property`&&(n=n.parent,n););if(n&&n.type!==`FunctionDeclaration`&&n.type!==`Program`)return Ce(n,t)}return Ce(e,t);default:return null}}function we(e,t){let n=Z(e,t);return n&&_.test(n.value)?!0:t.getCommentsBefore(e).some(e=>_.test(e.value))}function Te(e,t){if(e.type===`ArrowFunctionExpression`&&e.params.length===1){let n=t.getFirstToken(e.params[0]),r=t.getTokenBefore(n);return ve(r)?r:n}return e.id?t.getTokenAfter(e.id,ve):t.getFirstToken(e,ve)}function Ee(e,t,n){let r=n.getTokens(e),i=n.getTokens(t);if(r.length!==i.length)return!1;for(let e=0;e<r.length;++e)if(r[e].type!==i[e].type||r[e].value!==i[e].value)return!1;return!0}function De(e){return e.type===`LogicalExpression`&&(e.operator===`&&`||e.operator===`||`)}function Q(e){return e.type===`LogicalExpression`&&e.operator===`??`}function Oe(e,t){return De(e)&&Q(t)||Q(e)&&De(t)}function ke(e){return M.has(e)}function Ae(e,t){return e.test?t.getTokenAfter(e.test,K):t.getFirstToken(e,1)}function je(e){return e.type===`Identifier`?e.name:e.value}function Me(e){return e.value===null?e.raw===`null`?!1:typeof e.regex==`object`?!0:null:!!e.value}function Ne(e,t){switch(e.type){case`Literal`:return t===`||`&&Me(e)===!0||t===`&&`&&Me(e)===!1;case`UnaryExpression`:return t===`&&`&&e.operator===`void`;case`LogicalExpression`:return t===e.operator&&(Ne(e.left,t)||Ne(e.right,t));case`AssignmentExpression`:return[`||=`,`&&=`].includes(e.operator)&&t===e.operator.slice(0,-1)&&Ne(e.right,t)}return!1}function Pe(e,t){let n=e.references.find(e=>e.identifier===t);return!!(n&&n.resolved&&n.resolved.scope.type===`global`&&n.resolved.defs.length===0)}function Fe(e,t,n){if(!t)return!0;switch(t.type){case`Literal`:case`ArrowFunctionExpression`:case`FunctionExpression`:return!0;case`ClassExpression`:case`ObjectExpression`:return!0;case`TemplateLiteral`:return n&&t.quasis.some(e=>e.value.cooked.length)||t.expressions.every(t=>Fe(e,t,!1));case`ArrayExpression`:return n?!0:t.elements.every(t=>Fe(e,t,!1));case`UnaryExpression`:return t.operator===`void`||t.operator===`typeof`&&n?!0:t.operator===`!`?Fe(e,t.argument,!0):Fe(e,t.argument,!1);case`BinaryExpression`:return Fe(e,t.left,!1)&&Fe(e,t.right,!1)&&t.operator!==`in`;case`LogicalExpression`:{let r=Fe(e,t.left,n),i=Fe(e,t.right,n),a=r&&Ne(t.left,t.operator),o=n&&i&&Ne(t.right,t.operator);return r&&i||a||o}case`NewExpression`:return n;case`AssignmentExpression`:return t.operator===`=`?Fe(e,t.right,n):[`||=`,`&&=`].includes(t.operator)&&n?Ne(t.right,t.operator.slice(0,-1)):!1;case`SequenceExpression`:return Fe(e,t.expressions.at(-1),n);case`SpreadElement`:return Fe(e,t.argument,n);case`CallExpression`:return t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&(t.arguments.length===0||Fe(e,t.arguments[0],!0))?Pe(e,t.callee):!1;case`Identifier`:return t.name===`undefined`&&Pe(e,t)}return!1}function Ie(e){if(e.type!==`ExpressionStatement`)return!1;let t=e.parent;return t.type===`Program`||t.type===`TSModuleBlock`||t.type===`BlockStatement`&&R(t.parent)}function Le(e){return e.type===`ExpressionStatement`&&typeof e.directive==`string`}function Re(e){let t=e.range[0],n=e;for(;(n=n.parent)&&n.range[0]===t;)if(n.type===`ExpressionStatement`)return!0;return!1}let ze;{let e=new Set([`BreakStatement`,`ContinueStatement`]),t=new Set([`ExportAllDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`]),n=new Set([`Identifier`,`Keyword`]),r={__proto__:null,break:`BreakStatement`,continue:`ContinueStatement`,debugger:`DebuggerStatement`,do:`DoWhileStatement`,else:`IfStatement`,return:`ReturnStatement`,yield:`YieldExpression`},i=new Set([`:`,`;`,`{`,`=>`,`++`,`--`]),a=new Set([`DoWhileStatement`,`ForInStatement`,`ForOfStatement`,`ForStatement`,`IfStatement`,`WhileStatement`,`WithStatement`]),o=new Set([`TSAsExpression`,`TSSatisfiesExpression`,`TSTypeAliasDeclaration`,`TSTypeAnnotation`]);function s(e){for(let t=e;;){let{parent:e}=t;if(!e)break;if(o.has(e.type)&&t===e.typeAnnotation)return!0;t=e}return!1}ze=function(c,l){let u=c.getTokenBefore(l);if(!u||u.type===`Punctuator`&&i.has(u.value))return!1;let d=c.getNodeByRangeIndex(u.range[0]);if(d.type===`TSDeclareFunction`||d.parent.type===`TSImportEqualsDeclaration`||d.parent.parent?.type===`TSImportEqualsDeclaration`||o.has(d.type)||s(d))return!1;if(ye(u))return!a.has(d.type);if(be(u))return d.type===`BlockStatement`&&d.parent.type===`FunctionExpression`&&d.parent.parent.type!==`MethodDefinition`||d.type===`ClassBody`&&d.parent.type===`ClassExpression`||d.type===`ObjectExpression`;if(n.has(u.type)){if(d.parent.type===`VariableDeclarator`&&!d.parent.init||e.has(d.parent.type))return!1;let t=r[u.value];return d.type!==t}return u.type===`String`?!t.has(d.parent.type):!0}}function Be(e){let{parent:t}=e;if(t.type===`ImportAttribute`&&t.key===e)return!0;if(t.type===`Property`&&!t.computed&&(t.key===e||t.value===e&&t.shorthand&&!t.method)&&t.parent.type===`ObjectExpression`){let e=t.parent,n=e.parent;if(n.type===`ImportExpression`&&n.options===e)return!0;if(n.type===`Property`&&n.value===e)return Be(n.key)}return!1}t.exports={COMMENTS_IGNORE_PATTERN:v,LINEBREAKS:x,LINEBREAK_MATCHER:c,SHEBANG_MATCHER:l,STATEMENT_LIST_PARENTS:S,ECMASCRIPT_GLOBALS:N,isTokenOnSameLine(e,t){return e.loc.end.line===t.loc.start.line},isNullOrUndefined:te,isCallee:V,isES5Constructor:I,getUpperFunction:L,isFunction:R,isLoop:z,isInLoop:ee,isArrayFromMethod:se,isArrayFromAsyncMethod:ce,isParenthesised:de,createGlobalLinebreakMatcher:s,equalTokens:Ee,isArrowToken:pe,isClosingBraceToken:be,isClosingBracketToken:J,isClosingParenToken:ye,isColonToken:K,isCommaToken:me,isCommentToken:xe,isDotToken:he,isQuestionDotToken:ge,isKeywordToken:Se,isNotClosingBraceToken:ue(be),isNotClosingBracketToken:ue(J),isNotClosingParenToken:ue(ye),isNotColonToken:ue(K),isNotCommaToken:ue(me),isNotDotToken:ue(he),isNotQuestionDotToken:ue(ge),isNotOpeningBraceToken:ue(Y),isNotOpeningBracketToken:ue(q),isNotOpeningParenToken:ue(ve),isNotSemicolonToken:ue(_e),isOpeningBraceToken:Y,isOpeningBracketToken:q,isOpeningParenToken:ve,isSemicolonToken:_e,isEqToken:fe,isStringLiteral(e){return e.type===`Literal`&&typeof e.value==`string`||e.type===`TemplateLiteral`},isBreakableStatement(e){return o.test(e.type)},getModifyingReferences(e){return e.filter(P)},isSurroundedBy(e,t){return e[0]===t&&e.at(-1)===t},isDirectiveComment(e){let t=e.value.trim();return e.type===`Line`&&t.startsWith(`eslint-`)||e.type===`Block`&&b.test(t)},getTrailingStatement:r.ast.trailingStatement,getVariableByName(e,t){let n=e;for(;n;){let e=n.set.get(t);if(e)return e;n=n.upper}return null},isDefaultThisBinding(e,t,{capIsConstructor:n=!0}={}){if(e.parent.type===`PropertyDefinition`&&e.parent.value===e||e.type===`StaticBlock`||(e.type===`FunctionDeclaration`||e.type===`FunctionExpression`)&&e.params.some(e=>e.type===`Identifier`&&e.name===`this`)||n&&I(e)||we(e,t))return!1;let r=e.id===null,i=e;for(;i;){let e=i.parent;switch(e.type){case`LogicalExpression`:case`ConditionalExpression`:case`ChainExpression`:i=e;break;case`ReturnStatement`:{let t=L(e);if(t===null||!V(t))return!0;i=t.parent;break}case`ArrowFunctionExpression`:if(i!==e.body||!V(e))return!0;i=e.parent;break;case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return e.value!==i;case`AssignmentExpression`:case`AssignmentPattern`:return!(e.left.type===`MemberExpression`||n&&r&&e.left.type===`Identifier`&&F(e.left.name));case`VariableDeclarator`:return!(n&&r&&e.init===i&&e.id.type===`Identifier`&&F(e.id.name));case`MemberExpression`:if(e.object===i&&G(e,null,g)){let t=e.parent.type===`ChainExpression`?e.parent:e;return!(V(t)&&t.parent.arguments.length>=1&&!te(t.parent.arguments[0]))}return!0;case`CallExpression`:return oe(e.callee)?e.arguments.length!==3||e.arguments[0]!==i||te(e.arguments[1]):se(e.callee)||ce(e.callee)?e.arguments.length!==3||e.arguments[1]!==i||te(e.arguments[2]):le(e.callee)?e.arguments.length!==2||e.arguments[0]!==i||te(e.arguments[1]):!0;default:return!0}}return!0},getPrecedence(e){switch(e.type){case`SequenceExpression`:return 0;case`AssignmentExpression`:case`ArrowFunctionExpression`:case`YieldExpression`:return 1;case`ConditionalExpression`: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`UnaryExpression`:case`AwaitExpression`:return 16;case`UpdateExpression`:return 17;case`CallExpression`:case`ChainExpression`:case`ImportExpression`:return 18;case`NewExpression`:return 19;default:return e.type in n?20:-1}},isEmptyBlock(e){return!!(e&&e.type===`BlockStatement`&&e.body.length===0)},isEmptyFunction(e){return R(e)&&t.exports.isEmptyBlock(e.body)},getDirectivePrologue(e){let t=[];if(e.type===`Program`||e.type===`FunctionDeclaration`||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`){let n=e.type===`Program`?e.body:e.body.body;for(let e of n)if(e.type===`ExpressionStatement`&&e.expression.type===`Literal`)t.push(e);else break}return t},isDecimalInteger(e){return e.type===`Literal`&&typeof e.value==`number`&&T.test(e.raw)},isDecimalIntegerNumericToken(e){return e.type===`Numeric`&&T.test(e.value)},getFunctionNameWithKind(e){let t=e.parent,n=[];if((t.type===`MethodDefinition`||t.type===`PropertyDefinition`||e.type===`TSPropertySignature`||e.type===`TSMethodSignature`)&&(t.static&&n.push(`static`),!t.computed&&t.key?.type===`PrivateIdentifier`&&n.push(`private`)),e.async&&n.push(`async`),e.generator&&n.push(`generator`),t.type===`Property`||t.type===`MethodDefinition`){if(t.kind===`constructor`)return`constructor`;t.kind===`get`?n.push(`getter`):t.kind===`set`?n.push(`setter`):n.push(`method`)}else e.type===`TSMethodSignature`?e.kind===`get`?n.push(`getter`):e.kind===`set`?n.push(`setter`):n.push(`method`):t.type===`PropertyDefinition`?n.push(`method`):(e.type===`ArrowFunctionExpression`&&n.push(`arrow`),n.push(`function`));if(t.type===`Property`||t.type===`MethodDefinition`||t.type===`PropertyDefinition`)if(!t.computed&&t.key.type===`PrivateIdentifier`)n.push(`#${t.key.name}`);else{let r=U(t);r===null?e.id&&n.push(`'${e.id.name}'`):n.push(`'${r}'`)}else e.type===`TSMethodSignature`?n.push(`'${U(e)}'`):e.id&&n.push(`'${e.id.name}'`);return n.join(` `)},getFunctionHeadLoc(e,t){let n=e.parent,r,i;if(n.type===`Property`||n.type===`MethodDefinition`||n.type===`PropertyDefinition`||n.type===`TSPropertySignature`||n.type===`TSMethodSignature`)r=n.loc.start,i=Te(e,t).loc.start;else if(e.type===`ArrowFunctionExpression`){let n=t.getTokenBefore(e.body,pe);r=n.loc.start,i=n.loc.end}else r=e.loc.start,i=Te(e,t).loc.start;return{start:Object.assign({},r),end:Object.assign({},i)}},getNextLocation(e,{line:t,column:n}){return n<e.lines[t-1].length?{line:t,column:n+1}:t<e.lines.length?{line:t+1,column:0}:null},getParenthesisedText(e,t){let n=e.getFirstToken(t),r=e.getLastToken(t);for(;e.getTokenBefore(n)&&e.getTokenBefore(n).type===`Punctuator`&&e.getTokenBefore(n).value===`(`&&e.getTokenAfter(r)&&e.getTokenAfter(r).type===`Punctuator`&&e.getTokenAfter(r).value===`)`;)n=e.getTokenBefore(n),r=e.getTokenAfter(r);return e.getText().slice(n.range[0],r.range[1])},couldBeError(e){switch(e.type){case`Identifier`:case`CallExpression`:case`NewExpression`:case`MemberExpression`:case`TaggedTemplateExpression`:case`YieldExpression`:case`AwaitExpression`:case`ChainExpression`:return!0;case`AssignmentExpression`:return[`=`,`&&=`].includes(e.operator)?t.exports.couldBeError(e.right):[`||=`,`??=`].includes(e.operator)?t.exports.couldBeError(e.left)||t.exports.couldBeError(e.right):!1;case`SequenceExpression`:{let n=e.expressions;return n.length!==0&&t.exports.couldBeError(n.at(-1))}case`LogicalExpression`:return e.operator===`&&`?t.exports.couldBeError(e.right):t.exports.couldBeError(e.left)||t.exports.couldBeError(e.right);case`ConditionalExpression`:return t.exports.couldBeError(e.consequent)||t.exports.couldBeError(e.alternate);default:return!1}},isNumericLiteral(e){return e.type===`Literal`&&(typeof e.value==`number`||!!e.bigint)},canTokensBeAdjacent(e,t){let n={ecmaVersion:i.latestEcmaVersion,comment:!0,range:!0},r;if(typeof e==`string`){let t;try{t=i.tokenize(e,n)}catch{return!1}let a=t.comments;if(r=t.at(-1),a.length){let e=a.at(-1);(!r||e.range[0]>r.range[0])&&(r=e)}}else r=e;if(r.type===`Shebang`||r.type===`Hashbang`)return!1;let a;if(typeof t==`string`){let e;try{e=i.tokenize(t,n)}catch{return!1}let r=e.comments;if(a=e[0],r.length){let e=r[0];(!a||e.range[0]<a.range[0])&&(a=e)}}else a=t;if(r.type===`Punctuator`||a.type===`Punctuator`){if(r.type===`Punctuator`&&a.type===`Punctuator`){let e=new Set([`+`,`++`]),t=new Set([`-`,`--`]);return!(e.has(r.value)&&e.has(a.value)||t.has(r.value)&&t.has(a.value))}return r.type===`Punctuator`&&r.value===`/`?![`Block`,`Line`,`RegularExpression`].includes(a.type):!0}return!!(r.type===`String`||a.type===`String`||r.type===`Template`||a.type===`Template`||r.type!==`Numeric`&&a.type===`Numeric`&&a.value.startsWith(`.`)||r.type===`Block`||a.type===`Block`||a.type===`Line`||a.type===`PrivateIdentifier`)},getNameLocationInGlobalDirectiveComment(e,t,n){let r=RegExp(`[\\s,]${a(n)}(?:$|[\\s,:])`,`gu`);r.lastIndex=t.value.indexOf(`global`)+6;let i=r.exec(t.value),o=e.getLocFromIndex(t.range[0]+2+(i?i.index+1:0));return{start:o,end:{line:o.line,column:o.column+(i?n.length:1)}}},hasOctalOrNonOctalDecimalEscapeSequence(e){return E.test(e)},isStaticTemplateLiteral(e){return e.type===`TemplateLiteral`&&e.expressions.length===0},areBracesNecessary(e,t){function n(e){return e.type===`VariableDeclaration`?w.has(e.kind):e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`}function r(e){return e.value===`else`&&e.type===`Keyword`}function i(e){let n=t.getTokenAfter(e);return!!n&&r(n)}function a(e){switch(e.type){case`IfStatement`:return e.alternate?a(e.alternate):!0;case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:case`LabeledStatement`:case`WithStatement`:case`WhileStatement`:return a(e.body);default:return!1}}let o=e.body[0];return n(o)||a(o)&&i(e)},isReferenceToGlobalVariable:Pe,isLogicalExpression:De,isCoalesceExpression:Q,isMixedLogicalAndCoalesceExpressions:Oe,isNullLiteral:B,getStaticStringValue:H,getStaticPropertyName:U,skipChainExpression:W,isSpecificId:re,isSpecificMemberAccess:G,equalLiteralValue:ie,isSameReference:ae,isLogicalAssignmentOperator:ke,getSwitchCaseColonToken:Ae,getModuleExportName:je,isConstant:Fe,isTopLevelExpressionStatement:Ie,isDirective:Le,isStartOfExpressionStatement:Re,needsPrecedingSemicolon:ze,isImportAttributeKey:Be,getOpeningParenOfParams:Te}})),N=n(((e,t)=>{let n=M();function r(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||r.value!==i.value)return!1}return!0}function i(e,t){return typeof e==`string`&&typeof t==`string`?e===t:Array.isArray(e)&&Array.isArray(t)?r(e,t):!1}function a(e){return e.kind===`get`||e.kind===`set`}function o(e,t,r,i){let a=e.parent;return a.type===`CallExpression`&&n.isSpecificMemberAccess(a.callee,r,i)&&a.arguments[t]===e}function s(e){if(o(e,2,`Object`,`defineProperty`)||o(e,2,`Reflect`,`defineProperty`))return!0;let t=e.parent.parent;return t.type===`ObjectExpression`&&(o(t,1,`Object`,`create`)||o(t,1,`Object`,`defineProperties`))}t.exports={meta:{type:`suggestion`,defaultOptions:[{enforceForTSTypes:!1,enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:`Enforce getter and setter pairs in objects and classes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/accessor-pairs`},schema:[{type:`object`,properties:{getWithoutSet:{type:`boolean`},setWithoutGet:{type:`boolean`},enforceForClassMembers:{type:`boolean`},enforceForTSTypes:{type:`boolean`}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:`Getter is not present in property descriptor.`,missingSetterInPropertyDescriptor:`Setter is not present in property descriptor.`,missingGetterInObjectLiteral:`Getter is not present for {{ name }}.`,missingSetterInObjectLiteral:`Setter is not present for {{ name }}.`,missingGetterInClass:`Getter is not present for class {{ name }}.`,missingSetterInClass:`Setter is not present for class {{ name }}.`,missingGetterInType:`Getter is not present for type {{ name }}.`,missingSetterInType:`Setter is not present for type {{ name }}.`}},create(e){let[{getWithoutSet:t,setWithoutGet:r,enforceForClassMembers:o,enforceForTSTypes:c}]=e.options,l=e.sourceCode;function u(t,r){t.type===`Property`?e.report({node:t,messageId:`${r}InObjectLiteral`,loc:n.getFunctionHeadLoc(t.value,l),data:{name:n.getFunctionNameWithKind(t.value)}}):t.type===`MethodDefinition`?e.report({node:t,messageId:`${r}InClass`,loc:n.getFunctionHeadLoc(t.value,l),data:{name:n.getFunctionNameWithKind(t.value)}}):t.type===`TSMethodSignature`?e.report({node:t,messageId:`${r}InType`,loc:n.getFunctionHeadLoc(t,l),data:{name:n.getFunctionNameWithKind(t)}}):e.report({node:t,messageId:`${r}InPropertyDescriptor`})}function d(e,t){for(let n of e)u(n,t)}function f(e){let o=[],s=!1;for(let t=0;t<e.length;t++){let r=e[t];if(a(r)){let e=n.getStaticPropertyName(r),t=e===null?l.getTokens(r.key):e;for(let e=0;e<o.length;e++){let n=o[e];if(i(n.key,t)){n.getters.push(...r.kind===`get`?[r]:[]),n.setters.push(...r.kind===`set`?[r]:[]),s=!0;break}}s||o.push({key:t,getters:r.kind===`get`?[r]:[],setters:r.kind===`set`?[r]:[]}),s=!1}}for(let{getters:e,setters:n}of o)r&&n.length&&!e.length&&d(n,`missingGetter`),t&&e.length&&!n.length&&d(e,`missingSetter`)}function p(e){f(e.properties.filter(e=>e.type===`Property`))}function m(e){let n=new Set(e.properties.filter(e=>e.type===`Property`&&e.kind===`init`&&!e.computed).map(({key:e})=>e.name)),i=n.has(`get`),a=n.has(`set`);r&&a&&!i&&u(e,`missingGetter`),t&&i&&!a&&u(e,`missingSetter`)}function h(e){p(e),s(e)&&m(e)}function g(e){let t=e.body.filter(e=>e.type===`MethodDefinition`);f(t.filter(e=>e.static)),f(t.filter(e=>!e.static))}function _(e){f((e.type===`TSTypeLiteral`?e.members:e.body).filter(e=>e.type===`TSMethodSignature`))}let v={};return(r||t)&&(v.ObjectExpression=h,o&&(v.ClassBody=g),c&&(v[`TSTypeLiteral, TSInterfaceBody`]=_)),v}}})),P=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-bracket-newline`,url:`https://eslint.style/rules/array-bracket-newline`}}]},type:`layout`,docs:{description:`Enforce linebreaks after opening and before closing array brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-bracket-newline`},fixable:`whitespace`,schema:[{oneOf:[{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 r(e){let t=!1,n=!1,r;return e?e===`consistent`?(t=!0,r=1/0):e===`always`||e.minItems===0?r=0:e===`never`?r=1/0:(n=!!e.multiline,r=e.minItems||1/0):(t=!1,n=!0,r=1/0),{consistent:t,multiline:n,minItems:r}}function i(e){let t=r(e);return{ArrayExpression:t,ArrayPattern:t}}function a(r,i){e.report({node:r,loc:i.loc,messageId:`unexpectedOpeningLinebreak`,fix(e){let r=t.getTokenAfter(i,{includeComments:!0});return n.isCommentToken(r)?null:e.removeRange([i.range[1],r.range[0]])}})}function o(r,i){e.report({node:r,loc:i.loc,messageId:`unexpectedClosingLinebreak`,fix(e){let r=t.getTokenBefore(i,{includeComments:!0});return n.isCommentToken(r)?null:e.removeRange([r.range[1],i.range[0]])}})}function s(t,n){e.report({node:t,loc:n.loc,messageId:`missingOpeningLinebreak`,fix(e){return e.insertTextAfter(n,`
19
+ `)}})}function c(t,n){e.report({node:t,loc:n.loc,messageId:`missingClosingLinebreak`,fix(e){return e.insertTextBefore(n,`
20
+ `)}})}function l(r){let l=r.elements,u=i(e.options[0])[r.type],d=t.getFirstToken(r),f=t.getLastToken(r),p=t.getTokenAfter(d,{includeComments:!0}),m=t.getTokenBefore(f,{includeComments:!0}),h=t.getTokenAfter(d),g=t.getTokenBefore(f);l.length>=u.minItems||u.multiline&&l.length>0&&p.loc.start.line!==m.loc.end.line||l.length===0&&p.type===`Block`&&p.loc.start.line!==m.loc.end.line&&p===m||u.consistent&&d.loc.end.line!==h.loc.start.line?(n.isTokenOnSameLine(d,h)&&s(r,d),n.isTokenOnSameLine(g,f)&&c(r,f)):(n.isTokenOnSameLine(d,h)||a(r,d),n.isTokenOnSameLine(g,f)||o(r,f))}return{ArrayPattern:l,ArrayExpression:l}}}})),F=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-bracket-spacing`,url:`https://eslint.style/rules/array-bracket-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside array brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-bracket-spacing`},fixable:`whitespace`,schema:[{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=e.options[0]===`always`,r=e.sourceCode;function i(n){return e.options[1]?e.options[1][n]===!t:!1}let a={spaced:t,singleElementException:i(`singleValue`),objectsInArraysException:i(`objectsInArrays`),arraysInArraysException:i(`arraysInArrays`)};function o(t,n){let i=r.getTokenAfter(n);e.report({node:t,loc:{start:n.loc.end,end:i.loc.start},messageId:`unexpectedSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.removeRange([n.range[1],i.range[0]])}})}function s(t,n){let i=r.getTokenBefore(n);e.report({node:t,loc:{start:i.loc.end,end:n.loc.start},messageId:`unexpectedSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.removeRange([i.range[1],n.range[0]])}})}function c(t,n){e.report({node:t,loc:n.loc,messageId:`missingSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function l(t,n){e.report({node:t,loc:n.loc,messageId:`missingSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function u(e){return e&&(e.type===`ObjectExpression`||e.type===`ObjectPattern`)}function d(e){return e&&(e.type===`ArrayExpression`||e.type===`ArrayPattern`)}function f(e){if(a.spaced&&e.elements.length===0)return;let t=r.getFirstToken(e),i=r.getFirstToken(e,1),f=e.typeAnnotation?r.getTokenBefore(e.typeAnnotation):r.getLastToken(e),p=r.getTokenBefore(f),m=e.elements[0],h=e.elements.at(-1),g=a.objectsInArraysException&&u(m)||a.arraysInArraysException&&d(m)||a.singleElementException&&e.elements.length===1?!a.spaced:a.spaced,_=a.objectsInArraysException&&u(h)||a.arraysInArraysException&&d(h)||a.singleElementException&&e.elements.length===1?!a.spaced:a.spaced;n.isTokenOnSameLine(t,i)&&(g&&!r.isSpaceBetween(t,i)&&c(e,t),!g&&r.isSpaceBetween(t,i)&&o(e,t)),t!==p&&n.isTokenOnSameLine(p,f)&&(_&&!r.isSpaceBetween(p,f)&&l(e,f),!_&&r.isSpaceBetween(p,f)&&s(e,f))}return{ArrayPattern:f,ArrayExpression:f}}}})),I=n(((e,t)=>{let n=M(),r=/^(?:Arrow)?FunctionExpression$/u,i=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function a(e){return n.isSpecificMemberAccess(e,null,i)}function o(e){for(let t of e)if(t.reachable)return!0;return!1}function s(e){return[`from`,`fromAsync`,`of`,`isArray`].includes(e)?`Array.${e}`:`Array.prototype.${e}`}function c(e){if(e.generator)return null;let t=e;for(;t;){let r=t.parent;switch(r.type){case`LogicalExpression`:case`ConditionalExpression`:case`ChainExpression`:t=r;break;case`ReturnStatement`:{let e=n.getUpperFunction(r);if(e===null||!n.isCallee(e))return null;t=e.parent;break}case`CallExpression`:if(!e.async){if(n.isArrayFromMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===t)return`from`;if(a(r.callee)&&r.arguments.length>=1&&r.arguments[0]===t)return n.getStaticPropertyName(r.callee)}return n.isArrayFromAsyncMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===t?`fromAsync`:null;default:return null}}return null}function l(e){return e.type===`UnaryExpression`&&e.operator===`void`}function u(e,t,r){let i=n.getPrecedence(t)<n.getPrecedence({type:`UnaryExpression`,operator:`void`})&&!n.isParenthesised(e,t),a=e.getTokenBefore(t,t.parent.type===`ArrowFunctionExpression`?n.isArrowToken:e=>e.type===`Keyword`&&e.value===`return`),o=e.getTokenAfter(a),s=a.value===`return`&&a.range[1]===o.range[0];return[r.insertTextBefore(o,`${s?` `:``}void ${i?`(`:``}`),r.insertTextAfter(t,i?`)`:``)]}function d(e,t,r){let i=e.getTokenBefore(t.body,n.isArrowToken),a=e.getTokenAfter(i),o=e.getLastToken(t);return[r.insertTextBefore(a,`{`),r.insertTextAfter(o,`}`)]}t.exports={meta:{type:`problem`,defaultOptions:[{allowImplicit:!1,checkForEach:!1,allowVoid:!1}],docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:`https://eslint.org/docs/latest/rules/array-callback-return`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowImplicit:{type:`boolean`},checkForEach:{type:`boolean`},allowVoid:{type:`boolean`}},additionalProperties:!1}],messages:{expectedAtEnd:`{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.`,expectedInside:`{{arrayMethodName}}() expects a return value from {{name}}.`,expectedReturnValue:`{{arrayMethodName}}() expects a return value from {{name}}.`,expectedNoReturnValue:`{{arrayMethodName}}() expects no useless return value from {{name}}.`,wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(e){let[t]=e.options,i=e.sourceCode,a={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function f(r){if(!a.shouldCheck)return;let c={messageId:``,suggest:[]};if(a.arrayMethodName===`forEach`){if(t.checkForEach&&r.type===`ArrowFunctionExpression`&&r.expression)if(t.allowVoid){if(l(r.body))return;c.messageId=`expectedNoReturnValue`,c.suggest=[{messageId:`wrapBraces`,fix(e){return d(i,r,e)}},{messageId:`prependVoid`,fix(e){return u(i,r.body,e)}}]}else c.messageId=`expectedNoReturnValue`,c.suggest=[{messageId:`wrapBraces`,fix(e){return d(i,r,e)}}]}else r.body.type===`BlockStatement`&&o(a.currentSegments)&&(c.messageId=a.hasReturn?`expectedAtEnd`:`expectedInside`);if(c.messageId){let t=n.getFunctionNameWithKind(r);e.report({node:r,loc:n.getFunctionHeadLoc(r,i),messageId:c.messageId,data:{name:t,arrayMethodName:s(a.arrayMethodName)},suggest:c.suggest.length===0?null:c.suggest})}}return{onCodePathStart(e,t){let n=null;r.test(t.type)&&(n=c(t)),a={arrayMethodName:n,upper:a,codePath:e,hasReturn:!1,shouldCheck:!!n,node:t,currentSegments:new Set}},onCodePathEnd(){a=a.upper},onUnreachableCodePathSegmentStart(e){a.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){a.currentSegments.delete(e)},onCodePathSegmentStart(e){a.currentSegments.add(e)},onCodePathSegmentEnd(e){a.currentSegments.delete(e)},ReturnStatement(r){if(!a.shouldCheck)return;a.hasReturn=!0;let o={messageId:``,suggest:[]};if(a.arrayMethodName===`forEach`){if(t.checkForEach&&r.argument)if(t.allowVoid){if(l(r.argument))return;o.messageId=`expectedNoReturnValue`,o.suggest=[{messageId:`prependVoid`,fix(e){return u(i,r.argument,e)}}]}else o.messageId=`expectedNoReturnValue`}else !t.allowImplicit&&!r.argument&&(o.messageId=`expectedReturnValue`);o.messageId&&e.report({node:r,messageId:o.messageId,data:{name:n.getFunctionNameWithKind(a.node),arrayMethodName:s(a.arrayMethodName)},suggest:o.suggest.length===0?null:o.suggest})},"FunctionExpression:exit":f,"ArrowFunctionExpression:exit":f}}}})),L=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`array-element-newline`,url:`https://eslint.style/rules/array-element-newline`}}]},type:`layout`,docs:{description:`Enforce line breaks after each array element`,recommended:!1,url:`https://eslint.org/docs/latest/rules/array-element-newline`},fixable:`whitespace`,schema:{definitions:{basicConfig:{oneOf:[{enum:[`always`,`never`,`consistent`]},{type:`object`,properties:{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 r(e){let t=!1,n=!1,r,i=e||`always`;return!i||i===`always`||i.minItems===0?r=0:i===`never`?r=1/0:i===`consistent`?(t=!0,r=1/0):(n=!!i.multiline,r=i.minItems||1/0),{consistent:t,multiline:n,minItems:r}}function i(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,n;return e.ArrayExpression&&(t=r(e.ArrayExpression)),e.ArrayPattern&&(n=r(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:n}}let t=r(e);return{ArrayExpression:t,ArrayPattern:t}}function a(r){let i=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:i.loc.end,end:r.loc.start},messageId:`unexpectedLineBreak`,fix(e){if(n.isCommentToken(i))return null;if(!n.isTokenOnSameLine(i,r))return e.replaceTextRange([i.range[1],r.range[0]],` `);let a=t.getTokenBefore(i,{includeComments:!0});return n.isCommentToken(a)?null:e.replaceTextRange([a.range[1],i.range[0]],``)}})}function o(n){let r=t.getTokenBefore(n,{includeComments:!0});e.report({loc:{start:r.loc.end,end:n.loc.start},messageId:`missingLineBreak`,fix(e){return e.replaceTextRange([r.range[1],n.range[0]],`
21
+ `)}})}function s(r){let s=r.elements,c=i(e.options[0])[r.type];if(!c)return;let l=!1;c.multiline&&(l=s.filter(e=>e!==null).some(e=>e.loc.start.line!==e.loc.end.line));let u=0;for(let e=0;e<r.elements.length;e++){let i=r.elements[e],a=s[e-1];if(e===0||i===null||a===null)continue;let o=t.getFirstTokenBetween(a,i,n.isCommaToken),c=t.getTokenBefore(o),l=t.getTokenAfter(o);n.isTokenOnSameLine(c,l)||u++}let d=s.length>=c.minItems||c.multiline&&l||c.consistent&&u>0&&u<r.elements.length;s.forEach((e,r)=>{let i=s[r-1];if(r===0||e===null||i===null)return;let c=t.getFirstTokenBetween(i,e,n.isCommaToken),l=t.getTokenBefore(c),u=t.getTokenAfter(c);d?n.isTokenOnSameLine(l,u)&&o(u):n.isTokenOnSameLine(l,u)||a(u)})}return{ArrayPattern:s,ArrayExpression:s}}}})),R=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[`as-needed`],docs:{description:`Require braces around arrow function bodies`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/arrow-body-style`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`never`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`as-needed`]},{type:`object`,properties:{requireReturnForObjectLiteral:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:`code`,messages:{unexpectedOtherBlock:`Unexpected block statement surrounding arrow body.`,unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:`Expected block statement surrounding arrow body.`}},create(e){let t=e.options,r=t[0]===`always`,i=t[0]===`as-needed`,a=t[0]===`never`,o=t[1]&&t[1].requireReturnForObjectLiteral,s=e.sourceCode,c=null;function l(e){return e&&e.type===`Punctuator`&&/^[([/`+-]/u.test(e.value)}function u(e){let t=e;for(;!n.isParenthesised(s,t);)t=t.parent;return s.getTokenAfter(t)}function d(e){return e&&e.parent?e.parent.type===`ForStatement`&&e.parent.init===e?!0:d(e.parent):!1}function f(t){let f=t.body;if(f.type===`BlockStatement`){let r=f.body;if(r.length!==1&&!a||i&&o&&r[0].type===`ReturnStatement`&&r[0].argument&&r[0].argument.type===`ObjectExpression`)return;if(a||i&&r[0].type===`ReturnStatement`){let i;i=r.length===0?`unexpectedEmptyBlock`:r.length>1||r[0].type!==`ReturnStatement`?`unexpectedOtherBlock`:r[0].argument===null?`unexpectedSingleBlock`:n.isOpeningBraceToken(s.getFirstToken(r[0],{skip:1}))?`unexpectedObjectBlock`:`unexpectedSingleBlock`,e.report({node:t,loc:f.loc,messageId:i,fix(e){let i=[];if(r.length!==1||r[0].type!==`ReturnStatement`||!r[0].argument||l(s.getTokenAfter(f)))return i;let a=s.getFirstToken(f),o=s.getLastToken(f),u=s.getFirstToken(r[0],1),p=s.getLastToken(r[0]);return s.commentsExistBetween(a,u)||s.commentsExistBetween(p,o)?i.push(e.remove(a),e.remove(o),e.remove(s.getTokenAfter(a))):i.push(e.removeRange([a.range[0],u.range[0]]),e.removeRange([p.range[1],o.range[1]])),(n.isOpeningBraceToken(u)||r[0].argument.type===`SequenceExpression`||c.hasInOperator&&d(t))&&(n.isParenthesised(s,r[0].argument)||i.push(e.insertTextBefore(u,`(`),e.insertTextAfter(p,`)`))),n.isSemicolonToken(p)&&i.push(e.remove(p)),i}})}}else (r||i&&o&&f.type===`ObjectExpression`)&&e.report({node:t,loc:f.loc,messageId:`expectedBlock`,fix(e){let r=[],i=s.getTokenBefore(f,n.isArrowToken),[a,o]=s.getTokensAfter(i,{count:2}),c=s.getLastToken(t),l=null;if(n.isOpeningParenToken(a)&&n.isOpeningBraceToken(o)){let e=s.getNodeByRangeIndex(o.range[0]);e.type===`ObjectExpression`&&(l=e)}if(l){let t=a,i=o;n.isTokenOnSameLine(t,i)?r.push(e.replaceText(t,`{return `)):r.push(e.replaceText(t,`{`),e.insertTextBefore(i,`return `)),r.push(e.remove(u(l))),r.push(e.insertTextAfter(c,`}`))}else r.push(e.insertTextBefore(a,`{return `)),r.push(e.insertTextAfter(c,`}`));return r}})}return{"BinaryExpression[operator='in']"(){let e=c;for(;e;)e.hasInOperator=!0,e=e.upper},ArrowFunctionExpression(){c={upper:c,hasInOperator:!1}},"ArrowFunctionExpression:exit"(e){f(e),c=c.upper}}}}})),z=n(((e,t)=>{let n=M();function r(e){return e.body.type===`BlockStatement`}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`arrow-parens`,url:`https://eslint.style/rules/arrow-parens`}}]},type:`layout`,docs:{description:`Require parentheses around arrow function arguments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/arrow-parens`},fixable:`code`,schema:[{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=e.options[0]===`as-needed`,i=t&&e.options[1]&&e.options[1].requireForBlockBody===!0,a=e.sourceCode;function o(e){let t=a.getTokenBefore(e.params[0]);return t&&n.isOpeningParenToken(t)&&e.range[0]<=t.range[0]?t:null}function s(e){return a.getTokenAfter(e.params[0],n.isClosingParenToken)}function c(e,t){return a.commentsExistBetween(t,s(e))}function l(e,t){let n=e.async?1:0;return a.getFirstToken(e,{skip:n})!==t}return{"ArrowFunctionExpression[params.length=1]"(u){let d=!t||i&&r(u),f=o(u),p=f!==null,[m]=u.params;d&&!p&&e.report({node:u,messageId:i?`expectedParensBlock`:`expectedParens`,loc:m.loc,*fix(e){yield e.insertTextBefore(m,`(`),yield e.insertTextAfter(m,`)`)}}),!d&&p&&m.type===`Identifier`&&!m.typeAnnotation&&!u.returnType&&!c(u,f)&&!l(u,f)&&e.report({node:u,messageId:i?`unexpectedParensInline`:`unexpectedParens`,loc:m.loc,*fix(e){let t=a.getTokenBefore(f),r=s(u);t&&t.range[1]===f.range[0]&&!n.canTokensBeAdjacent(t,a.getFirstToken(m))&&(yield e.insertTextBefore(f,` `)),yield e.removeRange([f.range[0],m.range[0]]),yield e.removeRange([m.range[1],r.range[1]])}})}}}}})),ee=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`arrow-spacing`,url:`https://eslint.style/rules/arrow-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after the arrow in arrow functions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/arrow-spacing`},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=t.before!==!1,t.after=t.after!==!1;let r=e.sourceCode;function i(e){let t=r.getTokenBefore(e.body,n.isArrowToken);return{before:r.getTokenBefore(t),arrow:t,after:r.getTokenAfter(t)}}function a(e){return{before:e.arrow.range[0]-e.before.range[1],after:e.after.range[0]-e.arrow.range[1]}}function o(n){let r=i(n),o=a(r);t.before?o.before===0&&e.report({node:r.before,messageId:`expectedBefore`,fix(e){return e.insertTextBefore(r.arrow,` `)}}):o.before>0&&e.report({node:r.before,messageId:`unexpectedBefore`,fix(e){return e.removeRange([r.before.range[1],r.arrow.range[0]])}}),t.after?o.after===0&&e.report({node:r.after,messageId:`expectedAfter`,fix(e){return e.insertTextAfter(r.arrow,` `)}}):o.after>0&&e.report({node:r.after,messageId:`unexpectedAfter`,fix(e){return e.removeRange([r.arrow.range[1],r.after.range[0]])}})}return{ArrowFunctionExpression:o}}}})),B=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Enforce the use of variables within the scope they are defined`,recommended:!1,url:`https://eslint.org/docs/latest/rules/block-scoped-var`},schema:[],messages:{outOfScope:`'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context.`}},create(e){let t=[],n=e.sourceCode;function r(e){t.push(e.range)}function i(){t.pop()}function a(t,n){let r=t.identifier,i=n.name.loc.start;e.report({node:r,messageId:`outOfScope`,data:{name:r.name,definitionLine:i.line,definitionColumn:i.column+1}})}function o(e){if(e.kind!==`var`)return;let r=t.at(-1);function i(e){let t=e.identifier.range;return t[0]<r[0]||t[1]>r[1]}let o=n.getDeclaredVariables(e);for(let t=0;t<o.length;++t)o[t].references.filter(i).forEach(n=>a(n,o[t].defs.find(t=>t.parent===e)))}return{Program(e){t=[e.range]},BlockStatement:r,"BlockStatement:exit":i,ForStatement:r,"ForStatement:exit":i,ForInStatement:r,"ForInStatement:exit":i,ForOfStatement:r,"ForOfStatement:exit":i,SwitchStatement:r,"SwitchStatement:exit":i,CatchClause:r,"CatchClause:exit":i,StaticBlock:r,"StaticBlock:exit":i,VariableDeclaration:o}}}})),te=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`block-spacing`,url:`https://eslint.style/rules/block-spacing`}}]},type:`layout`,docs:{description:`Disallow or enforce spaces inside of blocks after opening block and before closing block`,recommended:!1,url:`https://eslint.org/docs/latest/rules/block-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{missing:`Requires a space {{location}} '{{token}}'.`,extra:`Unexpected space(s) {{location}} '{{token}}'.`}},create(e){let t=e.options[0]!==`never`,r=t?`missing`:`extra`,i=e.sourceCode;function a(e){return e.type===`SwitchStatement`?e.cases.length>0?i.getTokenBefore(e.cases[0]):i.getLastToken(e,1):e.type===`StaticBlock`?i.getFirstToken(e,{skip:1}):i.getFirstToken(e)}function o(e,r){return!n.isTokenOnSameLine(e,r)||i.isSpaceBetween(e,r)===t}function s(n){let s=a(n),c=i.getLastToken(n),l=i.getTokenAfter(s,{includeComments:!0}),u=i.getTokenBefore(c,{includeComments:!0});if(!(s.type!==`Punctuator`||s.value!==`{`||c.type!==`Punctuator`||c.value!==`}`||l===c)&&!(!t&&l.type===`Line`)){if(!o(s,l)){let i=s.loc;r===`extra`&&(i={start:s.loc.end,end:l.loc.start}),e.report({node:n,loc:i,messageId:r,data:{location:`after`,token:s.value},fix(e){return t?e.insertTextBefore(l,` `):e.removeRange([s.range[1],l.range[0]])}})}if(!o(u,c)){let i=c.loc;r===`extra`&&(i={start:u.loc.end,end:c.loc.start}),e.report({node:n,loc:i,messageId:r,data:{location:`before`,token:c.value},fix(e){return t?e.insertTextAfter(u,` `):e.removeRange([u.range[1],c.range[0]])}})}}}return{BlockStatement:s,StaticBlock:s,SwitchStatement:s}}}})),V=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`brace-style`,url:`https://eslint.style/rules/brace-style`}}]},type:`layout`,docs:{description:`Enforce consistent brace style for blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/brace-style`},schema:[{enum:[`1tbs`,`stroustrup`,`allman`]},{type:`object`,properties:{allowSingleLine:{type:`boolean`,default:!1}},additionalProperties:!1}],fixable:`whitespace`,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.`}},create(e){let t=e.options[0]||`1tbs`,r=e.options[1]||{},i=e.sourceCode;function a(e,t){let n=[e.range[1],t.range[0]];return i.text.slice(n[0],n[1]).trim()?null:e=>e.replaceTextRange(n,` `)}function o(o,s){let c=i.getTokenBefore(o),l=i.getTokenAfter(o),u=i.getTokenBefore(s),d=r.allowSingleLine&&n.isTokenOnSameLine(o,s);t!==`allman`&&!n.isTokenOnSameLine(c,o)&&e.report({node:o,messageId:`nextLineOpen`,fix:a(c,o)}),t===`allman`&&n.isTokenOnSameLine(c,o)&&!d&&e.report({node:o,messageId:`sameLineOpen`,fix:e=>e.insertTextBefore(o,`
22
+ `)}),n.isTokenOnSameLine(o,l)&&l!==s&&!d&&e.report({node:o,messageId:`blockSameLine`,fix:e=>e.insertTextAfter(o,`
23
+ `)}),u!==o&&!d&&n.isTokenOnSameLine(u,s)&&e.report({node:s,messageId:`singleLineClose`,fix:e=>e.insertTextBefore(s,`
24
+ `)})}function s(r){let o=i.getTokenAfter(r);t===`1tbs`&&!n.isTokenOnSameLine(r,o)&&e.report({node:r,messageId:`nextLineClose`,fix:a(r,o)}),t!==`1tbs`&&n.isTokenOnSameLine(r,o)&&e.report({node:r,messageId:`sameLineClose`,fix:e=>e.insertTextAfter(r,`
25
+ `)})}return{BlockStatement(e){n.STATEMENT_LIST_PARENTS.has(e.parent.type)||o(i.getFirstToken(e),i.getLastToken(e))},StaticBlock(e){o(i.getFirstToken(e,{skip:1}),i.getLastToken(e))},ClassBody(e){o(i.getFirstToken(e),i.getLastToken(e))},SwitchStatement(e){let t=i.getLastToken(e);o(i.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){e.consequent.type===`BlockStatement`&&e.alternate&&s(i.getLastToken(e.consequent))},TryStatement(e){s(i.getLastToken(e.block)),e.handler&&e.finalizer&&s(i.getLastToken(e.handler.body))}}}}})),H=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`callback-return`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md`}}]},type:`suggestion`,docs:{description:"Require `return` statements after callbacks",recommended:!1,url:`https://eslint.org/docs/latest/rules/callback-return`},schema:[{type:`array`,items:{type:`string`}}],messages:{missingReturn:`Expected return with your callback function.`}},create(e){let t=e.options[0]||[`callback`,`cb`,`next`],n=e.sourceCode;function r(e,t){return e.parent?t.includes(e.parent.type)?e.parent:r(e.parent,t):null}function i(e){if(e.type===`Identifier`)return!0;if(e.type===`MemberExpression`){if(e.object.type===`Identifier`)return!0;if(e.object.type===`MemberExpression`)return i(e.object)}return!1}function a(e){return i(e.callee)&&t.includes(n.getText(e.callee))}function o(e,t){return!t||t.type!==`ExpressionStatement`?!1:t.expression===e||(t.expression.type===`BinaryExpression`||t.expression.type===`LogicalExpression`)&&t.expression.right===e}return{CallExpression(t){if(!a(t))return;let n=r(t,[`BlockStatement`,`ReturnStatement`,`ArrowFunctionExpression`])||{};if(n.type!==`ReturnStatement`&&n.type!==`ArrowFunctionExpression`){if(n.type===`BlockStatement`){let e=n.body.at(-1);if(o(t,e)){let e=n.parent.type;if(e===`FunctionExpression`||e===`FunctionDeclaration`||e===`ArrowFunctionExpression`)return}if(e.type===`ReturnStatement`&&o(t,n.body.at(-2)))return}r(t,[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`])&&e.report({node:t,messageId:`missingReturn`})}}}}}})),U=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:`always`}],docs:{description:`Enforce camelcase naming convention`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/camelcase`},schema:[{type:`object`,properties:{ignoreDestructuring:{type:`boolean`},ignoreImports:{type:`boolean`},ignoreGlobals:{type:`boolean`},properties:{enum:[`always`,`never`]},allow:{type:`array`,items:{type:`string`},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:`Identifier '{{name}}' is not in camel case.`,notCamelCasePrivate:`#{{name}} is not in camel case.`}},create(e){let[{allow:t,ignoreDestructuring:r,ignoreGlobals:i,ignoreImports:a,properties:o}]=e.options,s=e.sourceCode,c=new Set;function l(e){let t=e.replace(/^_+|_+$/gu,``);return t.includes(`_`)&&t!==t.toUpperCase()}function u(e){return t.some(t=>e===t||e.match(new RegExp(t,`u`)))}function d(e){return!l(e)||u(e)}function f(e){let t=e.parent;switch(t.type){case`AssignmentExpression`:case`AssignmentPattern`:return t.left===e;case`Property`:return t.parent.type===`ObjectPattern`&&t.value===e;case`ArrayPattern`:case`RestElement`:return!0;default:return!1}}function p(e){let t=e.name,r=e.parent.type===`AssignmentPattern`?e.parent:e,i=r.parent;switch(i.type){case`Property`:return(i.parent.type===`ObjectPattern`||i.parent.type===`ObjectExpression`)&&i.value===r&&!i.computed&&i.key.type===`Identifier`&&i.key.name===t;case`ImportSpecifier`:return i.local===e&&n.getModuleExportName(i.imported)===t;default:return!1}}function m(t){c.has(t.range[0])||(c.add(t.range[0]),e.report({node:t,messageId:t.type===`PrivateIdentifier`?`notCamelCasePrivate`:`notCamelCase`,data:{name:t.name}}))}function h(e){e.parent.type===`CallExpression`||e.parent.type===`NewExpression`||e.parent.type===`AssignmentPattern`&&e.parent.right===e||r&&p(e)||n.isImportAttributeKey(e)||m(e)}return{Program(e){let t=s.getScope(e);if(!i){for(let e of t.variables)if(!(e.identifiers.length>0||d(e.name)))for(let t of e.references)h(t.identifier)}for(let e of t.through){let t=e.identifier;d(t.name)||n.isImportAttributeKey(t)||h(t)}},[[`VariableDeclaration`,`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`,`ClassDeclaration`,`ClassExpression`,`CatchClause`]](e){for(let t of s.getDeclaredVariables(e)){if(d(t.name))continue;let e=t.identifiers[0];r&&p(e)||m(e);for(let e of t.references)e.init||h(e.identifier)}},[[`ObjectExpression > Property[computed!=true] > Identifier.key`,`MethodDefinition[computed!=true] > Identifier.key`,`PropertyDefinition[computed!=true] > Identifier.key`,`MethodDefinition > PrivateIdentifier.key`,`PropertyDefinition > PrivateIdentifier.key`]](e){o===`never`||n.isImportAttributeKey(e)||d(e.name)||m(e)},"MemberExpression[computed!=true] > Identifier.property"(e){o===`never`||!f(e.parent)||d(e.name)||m(e)},ImportDeclaration(e){for(let t of s.getDeclaredVariables(e)){if(d(t.name))continue;let e=t.identifiers[0];a&&p(e)||m(e);for(let e of t.references)h(e.identifier)}},[[`ExportAllDeclaration > Identifier.exported`,`ExportSpecifier > Identifier.exported`]](e){d(e.name)||m(e)},[[`LabeledStatement > Identifier.label`,`BreakStatement > Identifier.label`,`ContinueStatement > Identifier.label`]](e){d(e.name)||m(e)}}}}})),W=n(((e,t)=>{let n=M().COMMENTS_IGNORE_PATTERN,r=/\s/gu,i=/^\s*[^:/?#\s]+:\/\/[^?#]/u,a=/\p{L}/u,o={type:`object`,properties:{ignorePattern:{type:`string`},ignoreInlineComments:{type:`boolean`},ignoreConsecutiveComments:{type:`boolean`}},additionalProperties:!1},s={ignorePattern:``,ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function c(e,t){return Object.assign({},s,e[t]||e)}function l(e={}){return{Line:c(e,`line`),Block:c(e,`block`)}}function u(e){Object.keys(e).forEach(t=>{let n=e[t].ignorePattern;if(n){let r=RegExp(`^\\s*(?:${n})`,`u`);e[t].ignorePatternRegExp=r}})}t.exports={meta:{type:`suggestion`,docs:{description:`Enforce or disallow capitalization of the first letter of a comment`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/capitalized-comments`},fixable:`code`,schema:[{enum:[`always`,`never`]},{oneOf:[o,{type:`object`,properties:{line:o,block:o},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:`Comments should not begin with a lowercase character.`,unexpectedUppercaseComment:`Comments should not begin with an uppercase character.`}},create(e){let t=e.options[0]||`always`,o=l(e.options[1]),s=e.sourceCode;u(o);function c(e){let t=s.getTokenBefore(e,{includeComments:!0}),n=s.getTokenAfter(e,{includeComments:!0});return!!(t&&n&&e.loc.start.line===t.loc.end.line&&e.loc.end.line===n.loc.start.line)}function d(e){let t=s.getTokenBefore(e,{includeComments:!0});return!!(t&&[`Block`,`Line`].includes(t.type))}function f(e,o){if(n.test(e.value))return!0;let s=e.value.replace(/\*/gu,``);if(o.ignorePatternRegExp&&o.ignorePatternRegExp.test(s)||o.ignoreInlineComments&&c(e)||o.ignoreConsecutiveComments&&d(e)||i.test(s))return!0;let l=s.replace(r,``);if(l.length===0)return!0;let[u]=l;if(!a.test(u))return!0;let f=u!==u.toLocaleLowerCase(),p=u!==u.toLocaleUpperCase();return!(t===`always`&&p||t===`never`&&f)}function p(n){let r=o[n.type];if(!f(n,r)){let r=t===`always`?`unexpectedLowercaseComment`:`unexpectedUppercaseComment`;e.report({node:null,loc:n.loc,messageId:r,fix(e){let r=n.value.match(a),i=r[0],o=n.range[0]+r.index+2;return e.replaceTextRange([o,o+i.length],t===`always`?i.toLocaleUpperCase():i.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(e=>e.type!==`Shebang`).forEach(p)}}}}})),ne=n(((e,t)=>{let n=M();t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:`https://eslint.org/docs/latest/rules/class-methods-use-this`},schema:[{type:`object`,properties:{exceptMethods:{type:`array`,items:{type:`string`}},enforceForClassFields:{type:`boolean`},ignoreOverrideMethods:{type:`boolean`},ignoreClassesWithImplements:{enum:[`all`,`public-fields`]}},additionalProperties:!1}],messages:{missingThis:`Expected 'this' to be used by class {{name}}.`}},create(e){let[t]=e.options,{enforceForClassFields:r,ignoreOverrideMethods:i,ignoreClassesWithImplements:a}=t,o=new Set(t.exceptMethods),s=[];function c(){s.push(!1)}function l(){return s.pop()}function u(){c()}function d(e){switch(e.type){case`MethodDefinition`:return!e.static&&e.kind!==`constructor`;case`AccessorProperty`:case`PropertyDefinition`:return!e.static&&r;default:return!1}}function f(e){let t=e.parent.parent;return t?.type===`ClassDeclaration`&&t.implements?.length>0}function p(e){if(d(e)){if(e.computed)return!0;if(i&&e.override||a&&f(e)&&(a===`all`||a===`public-fields`&&e.key.type!==`PrivateIdentifier`&&(!e.accessibility||e.accessibility===`public`)))return!1;let t=e.key.type===`PrivateIdentifier`?`#`:``,r=e.key.type===`Literal`?n.getStaticStringValue(e.key):e.key.name||``;return!o.has(t+r)}return!1}function m(t){let r=l();p(t.parent)&&!r&&e.report({node:t,loc:n.getFunctionHeadLoc(t,e.sourceCode),messageId:`missingThis`,data:{name:n.getFunctionNameWithKind(t)}})}function h(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:u,"FunctionDeclaration:exit":m,FunctionExpression:u,"FunctionExpression:exit":m,"AccessorProperty > *.key:exit":c,"AccessorProperty:exit":l,"PropertyDefinition > *.key:exit":c,"PropertyDefinition:exit":l,StaticBlock:c,"StaticBlock:exit":l,ThisExpression:h,Super:h,...r&&{"AccessorProperty > ArrowFunctionExpression.value":u,"AccessorProperty > ArrowFunctionExpression.value:exit":m,"PropertyDefinition > ArrowFunctionExpression.value":u,"PropertyDefinition > ArrowFunctionExpression.value:exit":m}}}}})),re=n(((e,t)=>{let n=M(),r=Object.freeze({arrays:`never`,objects:`never`,imports:`never`,exports:`never`,functions:`never`});function i(e){return!(e.type===`RestElement`||e.type===`RestProperty`||e.type===`ExperimentalRestProperty`)}function a(e,t){return typeof e==`string`?{arrays:e,objects:e,imports:e,exports:e,functions:t<2017?`ignore`:e}:typeof e==`object`&&e?{arrays:e.arrays||r.arrays,objects:e.objects||r.objects,imports:e.imports||r.imports,exports:e.exports||r.exports,functions:e.functions||r.functions}:r}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-dangle`,url:`https://eslint.style/rules/comma-dangle`}}]},type:`layout`,docs:{description:`Require or disallow trailing commas`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-dangle`},fixable:`code`,schema:{definitions:{value:{enum:[`always-multiline`,`always`,`never`,`only-multiline`]},valueWithIgnore:{enum:[`always-multiline`,`always`,`ignore`,`never`,`only-multiline`]}},type:`array`,items:[{oneOf:[{$ref:`#/definitions/value`},{type:`object`,properties:{arrays:{$ref:`#/definitions/valueWithIgnore`},objects:{$ref:`#/definitions/valueWithIgnore`},imports:{$ref:`#/definitions/valueWithIgnore`},exports:{$ref:`#/definitions/valueWithIgnore`},functions:{$ref:`#/definitions/valueWithIgnore`}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:`Unexpected trailing comma.`,missing:`Missing trailing comma.`}},create(e){let t=a(e.options[0],e.languageOptions.ecmaVersion),r=e.sourceCode;function o(e){function t(e){return e.at(-1)}switch(e.type){case`ObjectExpression`:case`ObjectPattern`:return t(e.properties);case`ArrayExpression`:case`ArrayPattern`:return t(e.elements);case`ImportDeclaration`:case`ExportNamedDeclaration`:return t(e.specifiers);case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:return t(e.params);case`CallExpression`:case`NewExpression`:return t(e.arguments);default:return null}}function s(e,t){switch(e.type){case`ObjectExpression`:case`ArrayExpression`:case`CallExpression`:case`NewExpression`:return r.getLastToken(e,1);default:{let e=r.getTokenAfter(t);return n.isCommaToken(e)?e:r.getLastToken(t)}}}function c(e){let t=o(e);if(!t)return!1;let n=s(e,t);return r.getTokenAfter(n).loc.end.line!==n.loc.end.line}function l(t){let i=o(t);if(!i||t.type===`ImportDeclaration`&&i.type!==`ImportSpecifier`)return;let a=s(t,i);n.isCommaToken(a)&&e.report({node:i,loc:a.loc,messageId:`unexpected`,*fix(e){yield e.remove(a),yield e.insertTextBefore(r.getTokenBefore(a),``),yield e.insertTextAfter(r.getTokenAfter(a),``)}})}function u(t){let a=o(t);if(!a||t.type===`ImportDeclaration`&&a.type!==`ImportSpecifier`)return;if(!i(a)){l(t);return}let c=s(t,a);c.value!==`,`&&e.report({node:a,loc:{start:c.loc.end,end:n.getNextLocation(r,c.loc.end)},messageId:`missing`,*fix(e){yield e.insertTextAfter(c,`,`),yield e.insertTextBefore(c,``),yield e.insertTextAfter(r.getTokenAfter(c),``)}})}function d(e){c(e)?u(e):l(e)}function f(e){c(e)||l(e)}let p={always:u,"always-multiline":d,"only-multiline":f,never:l,ignore(){}};return{ObjectExpression:p[t.objects],ObjectPattern:p[t.objects],ArrayExpression:p[t.arrays],ArrayPattern:p[t.arrays],ImportDeclaration:p[t.imports],ExportNamedDeclaration:p[t.exports],FunctionDeclaration:p[t.functions],FunctionExpression:p[t.functions],ArrowFunctionExpression:p[t.functions],CallExpression:p[t.functions],NewExpression:p[t.functions]}}}})),G=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-spacing`,url:`https://eslint.style/rules/comma-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after commas`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!1},after:{type:`boolean`,default:!0}},additionalProperties:!1}],messages:{missing:`A space is required {{loc}} ','.`,unexpected:`There should be no space {{loc}} ','.`}},create(e){let t=e.sourceCode,r=t.tokensAndComments,i={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},a=[];function o(t,n,r){e.report({node:t,fix(e){if(i[n])return n===`before`?e.insertTextBefore(t,` `):e.insertTextAfter(t,` `);let a,o;return n===`before`?(a=r.range[1],o=t.range[0]):(a=t.range[1],o=r.range[0]),e.replaceTextRange([a,o],``)},messageId:i[n]?`missing`:`unexpected`,data:{loc:n}})}function s(e){let r=t.getFirstToken(e);e.elements.forEach(e=>{let i;e===null?(i=t.getTokenAfter(r),n.isCommaToken(i)&&a.push(i)):i=t.getTokenAfter(e),r=i})}return{"Program:exit"(){r.forEach((e,s)=>{if(!n.isCommaToken(e))return;let c=r[s-1],l=r[s+1];c&&!n.isCommaToken(c)&&!a.includes(e)&&n.isTokenOnSameLine(c,e)&&i.before!==t.isSpaceBetween(c,e)&&o(e,`before`,c),l&&!n.isCommaToken(l)&&!n.isClosingParenToken(l)&&!n.isClosingBracketToken(l)&&!n.isClosingBraceToken(l)&&!(!i.after&&l.type===`Line`)&&n.isTokenOnSameLine(e,l)&&i.after!==t.isSpaceBetween(e,l)&&o(e,`after`,l)})},ArrayExpression:s,ArrayPattern:s}}}})),ie=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`comma-style`,url:`https://eslint.style/rules/comma-style`}}]},type:`layout`,docs:{description:`Enforce consistent comma style`,recommended:!1,url:`https://eslint.org/docs/latest/rules/comma-style`},fixable:`code`,schema:[{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`,r=e.sourceCode,i={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],`exceptions`)){let t=Object.keys(e.options[1].exceptions);for(let n=0;n<t.length;n++)i[t[n]]=e.options[1].exceptions[t[n]]}function a(e,t){switch(e){case`between`:return`,${t.replace(n.LINEBREAK_MATCHER,``)}`;case`first`:return`${t},`;case`last`:return`,${t}`;default:return``}}function o(e,t,n,i){let o=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],i.range[0]),s=[t.range[1],i.range[0]];return function(t){return t.replaceTextRange(s,a(e,o))}}function s(i,a,s,c){if(!(n.isTokenOnSameLine(a,s)&&n.isTokenOnSameLine(i,a)))if(!n.isTokenOnSameLine(a,s)&&!n.isTokenOnSameLine(i,a)){let l=r.getCommentsAfter(a)[0],u=l&&l.type===`Block`&&n.isTokenOnSameLine(a,l)?t:`between`;e.report({node:c,loc:a.loc,messageId:`unexpectedLineBeforeAndAfterComma`,fix:o(u,i,a,s)})}else t===`first`&&!n.isTokenOnSameLine(a,s)?e.report({node:c,loc:a.loc,messageId:`expectedCommaFirst`,fix:o(t,i,a,s)}):t===`last`&&n.isTokenOnSameLine(a,s)&&e.report({node:c,loc:a.loc,messageId:`expectedCommaLast`,fix:o(t,i,a,s)})}function c(e,t){let i=e[t],a=e.type===`ArrayExpression`||e.type===`ArrayPattern`;if(i.length>1||a){let t=r.getFirstToken(e);if(i.forEach(e=>{let i=e?r.getTokenBefore(e):t,a=e?r.getFirstToken(e):r.getTokenAfter(i),o=e||a;if(n.isCommaToken(i)&&s(t,i,a,o),e){let i=r.getTokenAfter(e,n.isNotClosingParenToken);t=i?r.getTokenBefore(i):r.ast.tokens.at(-1)}else t=a}),a){let t=r.getLastToken(e),i=r.getTokenBefore(t);n.isCommaToken(i)&&s(r.getTokenBefore(i),i,t,t)}}}let l={};return i.VariableDeclaration||(l.VariableDeclaration=function(e){c(e,`declarations`)}),i.ObjectExpression||(l.ObjectExpression=function(e){c(e,`properties`)}),i.ObjectPattern||(l.ObjectPattern=function(e){c(e,`properties`)}),i.ArrayExpression||(l.ArrayExpression=function(e){c(e,`elements`)}),i.ArrayPattern||(l.ArrayPattern=function(e){c(e,`elements`)}),i.FunctionDeclaration||(l.FunctionDeclaration=function(e){c(e,`params`)}),i.FunctionExpression||(l.FunctionExpression=function(e){c(e,`params`)}),i.ArrowFunctionExpression||(l.ArrowFunctionExpression=function(e){c(e,`params`)}),i.CallExpression||(l.CallExpression=function(e){c(e,`arguments`)}),i.ImportDeclaration||(l.ImportDeclaration=function(e){c(e,`specifiers`)}),i.NewExpression||(l.NewExpression=function(e){c(e,`arguments`)}),l}}})),ae=n(((e,t)=>{let n=/^[\u0000-\u007f]*$/u,r;function i(e){return e.length<=1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}function a(e){if(n.test(e))return e.length;r??=new Intl.Segmenter(`en-US`);let t=0;for(let n of r.segment(e))t++;return t}t.exports={upperCaseFirst:i,getGraphemeCount:a}})),oe=n(((e,t)=>{let n=M(),{upperCaseFirst:r}=ae();t.exports={meta:{type:`suggestion`,defaultOptions:[20],docs:{description:`Enforce a maximum cyclomatic complexity allowed in a program`,recommended:!1,url:`https://eslint.org/docs/latest/rules/complexity`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0},variant:{enum:[`classic`,`modified`]}},additionalProperties:!1}]}],messages:{complex:`{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}.`}},create(e){let t=e.sourceCode,i=e.options[0],a=20,o=`classic`;typeof i==`object`?((Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))&&(a=i.maximum||i.max),Object.hasOwn(i,`variant`)&&(o=i.variant)):typeof i==`number`&&(a=i);let s=o===`modified`,c=[];function l(){c[c.length-1]++}return{onCodePathStart(){c.push(1)},CatchClause:l,ConditionalExpression:l,LogicalExpression:l,ForStatement:l,ForInStatement:l,ForOfStatement:l,IfStatement:l,WhileStatement:l,DoWhileStatement:l,AssignmentPattern:l,"SwitchCase[test]":()=>s||l(),SwitchStatement:()=>s&&l(),AssignmentExpression(e){n.isLogicalAssignmentOperator(e.operator)&&l()},MemberExpression(e){e.optional===!0&&l()},CallExpression(e){e.optional===!0&&l()},onCodePathEnd(i,o){let s=c.pop();if(!(i.origin!==`function`&&i.origin!==`class-field-initializer`&&i.origin!==`class-static-block`)&&s>a){let c,l=o.loc;i.origin===`class-field-initializer`?c=`class field initializer`:i.origin===`class-static-block`?(c=`class static block`,l=t.getFirstToken(o).loc):(c=n.getFunctionNameWithKind(o),l=n.getFunctionHeadLoc(o,t)),e.report({node:o,loc:l,messageId:`complex`,data:{name:r(c),complexity:s,max:a}})}}}}}})),se=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`computed-property-spacing`,url:`https://eslint.style/rules/computed-property-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside computed property brackets`,recommended:!1,url:`https://eslint.org/docs/latest/rules/computed-property-spacing`},fixable:`whitespace`,schema:[{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,r=e.options[0]===`always`,i=!e.options[1]||e.options[1].enforceForClassMembers;function a(t,n,r){e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:`unexpectedSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.removeRange([n.range[1],r.range[0]])}})}function o(t,n,r){e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:`unexpectedSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.removeRange([r.range[1],n.range[0]])}})}function s(t,n){e.report({node:t,loc:n.loc,messageId:`missingSpaceAfter`,data:{tokenValue:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function c(t,n){e.report({node:t,loc:n.loc,messageId:`missingSpaceBefore`,data:{tokenValue:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function l(e){return function(i){if(!i.computed)return;let l=i[e],u=t.getTokenBefore(l,n.isOpeningBracketToken),d=t.getTokenAfter(u,{includeComments:!0}),f=t.getTokenAfter(l,n.isClosingBracketToken),p=t.getTokenBefore(f,{includeComments:!0});n.isTokenOnSameLine(u,d)&&(r?!t.isSpaceBetween(u,d)&&n.isTokenOnSameLine(u,d)&&s(i,u):t.isSpaceBetween(u,d)&&a(i,u,d)),n.isTokenOnSameLine(p,f)&&(r?!t.isSpaceBetween(p,f)&&n.isTokenOnSameLine(p,f)&&c(i,f):t.isSpaceBetween(p,f)&&o(i,f,p))}}let u={Property:l(`key`),MemberExpression:l(`property`)};return i&&(u.MethodDefinition=u.PropertyDefinition=u.Property),u}}})),ce=n(((e,t)=>{let n=M(),{upperCaseFirst:r}=ae();function i(e){for(let t of e)if(t.reachable)return!1;return!0}function a(e){return e.type===`FunctionExpression`&&e.parent&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}t.exports={meta:{type:`suggestion`,docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:`https://eslint.org/docs/latest/rules/consistent-return`},schema:[{type:`object`,properties:{treatUndefinedAsUnspecified:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:`Expected to return a value at the end of {{name}}.`,missingReturnValue:`{{name}} expected a return value.`,unexpectedReturnValue:`{{name}} expected no return value.`}},create(e){let[{treatUndefinedAsUnspecified:t}]=e.options,o=null;function s(t){let r,s;!o.hasReturnValue||i(o.currentSegments)||n.isES5Constructor(t)||a(t)||(t.type===`Program`?(r={line:1,column:0},s=`program`):r=t.type===`ArrowFunctionExpression`?e.sourceCode.getTokenBefore(t.body,n.isArrowToken).loc:t.parent.type===`MethodDefinition`||t.parent.type===`Property`&&t.parent.method?t.parent.key.loc:(t.id||e.sourceCode.getFirstToken(t)).loc,s||=n.getFunctionNameWithKind(t),e.report({node:t,loc:r,messageId:`missingReturn`,data:{name:s}}))}return{onCodePathStart(e,t){o={upper:o,codePath:e,hasReturn:!1,hasReturnValue:!1,messageId:``,node:t,currentSegments:new Set}},onCodePathEnd(){o=o.upper},onUnreachableCodePathSegmentStart(e){o.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){o.currentSegments.delete(e)},onCodePathSegmentStart(e){o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},ReturnStatement(i){let a=i.argument,s=!!a;t&&s&&(s=!n.isSpecificId(a,`undefined`)&&a.operator!==`void`),o.hasReturn?o.hasReturnValue!==s&&e.report({node:i,messageId:o.messageId,data:o.data}):(o.hasReturn=!0,o.hasReturnValue=s,o.messageId=s?`missingReturnValue`:`unexpectedReturnValue`,o.data={name:o.node.type===`Program`?`Program`:r(n.getFunctionNameWithKind(o.node))})},"Program:exit":s,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}})),le=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Enforce consistent naming when capturing the current execution context`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/consistent-this`},schema:{type:`array`,items:{type:`string`,minLength:1},uniqueItems:!0},defaultOptions:[`that`],messages:{aliasNotAssignedToThis:`Designated alias '{{name}}' is not assigned to 'this'.`,unexpectedAlias:`Unexpected alias '{{name}}' for 'this'.`}},create(e){let t=e.options,n=e.sourceCode;function r(t,n){e.report({node:t,messageId:`aliasNotAssignedToThis`,data:{name:n}})}function i(n,i,a){let o=a.type===`ThisExpression`;t.includes(i)?(!o||n.operator&&n.operator!==`=`)&&r(n,i):o&&e.report({node:n,messageId:`unexpectedAlias`,data:{name:i}})}function a(e,t){let n=t.set.get(e);n&&(n.defs.some(e=>e.node.type===`VariableDeclarator`&&e.node.init!==null)||n.references.some(e=>{let n=e.writeExpr;return e.from===t&&n&&n.type===`ThisExpression`&&n.parent.operator===`=`})||n.defs.map(e=>e.node).forEach(t=>{r(t,e)}))}function o(e){let r=n.getScope(e),i=e.type===`Program`&&e.sourceType===`module`?r.childScopes[0]:null;t.forEach(e=>{a(e,r),i&&a(e,i)})}return{"Program:exit":o,"FunctionExpression:exit":o,"FunctionDeclaration:exit":o,VariableDeclarator(e){let t=e.id,n=t.type===`ArrayPattern`||t.type===`ObjectPattern`;e.init!==null&&!n&&i(e,t.name,e.init)},AssignmentExpression(e){e.left.type===`Identifier`&&i(e,e.left.name,e.right)}}}}})),ue=n(((e,t)=>{function n(e){return e.type===`FunctionExpression`&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}function r(e){if(!e)return!1;switch(e.type){case`ClassExpression`:case`FunctionExpression`:case`ThisExpression`:case`MemberExpression`:case`CallExpression`:case`NewExpression`:case`ChainExpression`:case`YieldExpression`:case`TaggedTemplateExpression`:case`MetaProperty`:return!0;case`Identifier`:return e.name!==`undefined`;case`AssignmentExpression`:return[`=`,`&&=`].includes(e.operator)?r(e.right):[`||=`,`??=`].includes(e.operator)?r(e.left)||r(e.right):!1;case`LogicalExpression`:return e.operator===`&&`?r(e.right):r(e.left)||r(e.right);case`ConditionalExpression`:return r(e.alternate)||r(e.consequent);case`SequenceExpression`:return r(e.expressions.at(-1));default:return!1}}var i=class{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]};t.exports={meta:{type:`problem`,docs:{description:"Require `super()` calls in constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/constructor-super`},schema:[],messages:{missingSome:`Lacked a call of 'super()' in some code paths.`,missingAll:`Expected to call 'super()'.`,duplicate:`Unexpected duplicate 'super()'.`,badSuper:`Unexpected 'super()' because 'super' is not a constructor.`}},create(e){let t=null,a=Object.create(null);function o(e){return e.reachable&&a[e.id].calledInSomePaths}function s(e){return!!a[e.id]}function c(e){return e.reachable&&a[e.id].calledInEveryPaths}return{onCodePathStart(e,i){if(n(i)){let n=i.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:!!n,superIsConstructor:r(n),codePath:e,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:e,currentSegments:new Set}},onCodePathEnd(n,r){let i=t.hasExtends;if(t=t.upper,!i)return;let a=n.returnedSegments,s=a.every(c),l=a.some(o);s||e.report({messageId:l?`missingSome`:`missingAll`,node:r.parent})},onCodePathSegmentStart(e,n){if(t.currentSegments.add(e),!(t.isConstructor&&t.hasExtends))return;let r=a[e.id]=new i,l=e.prevSegments.filter(s);l.length>0&&(r.calledInSomePaths=l.some(o),r.calledInEveryPaths=l.every(c)),n.parent&&n.parent.type===`ForStatement`&&n.parent.update===n&&(r.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(e){t.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){t.currentSegments.delete(e)},onCodePathSegmentEnd(e){t.currentSegments.delete(e)},onCodePathSegmentLoop(n,r){t.isConstructor&&t.hasExtends&&t.codePath.traverseSegments({first:r,last:n},(t,n)=>{let r=a[t.id];if(!r){n.skip();return}let i=t.prevSegments.filter(s),l=i.some(o),u=i.every(c);if(r.calledInSomePaths||=l,r.calledInEveryPaths||=u,l){let t=r.validNodes;r.validNodes=[];for(let n=0;n<t.length;++n){let r=t[n];e.report({messageId:`duplicate`,node:r})}}})},"CallExpression:exit"(n){if(!(t.isConstructor&&t.hasExtends)||n.callee.type!==`Super`)return;let r=t.currentSegments,i=!1,o=null;for(let e of r)e.reachable&&(o=a[e.id],i||=o.calledInSomePaths,o.calledInSomePaths=o.calledInEveryPaths=!0);o&&(i?e.report({messageId:`duplicate`,node:n}):t.superIsConstructor?o.validNodes.push(n):e.report({messageId:`badSuper`,node:n}))},ReturnStatement(e){if(!(t.isConstructor&&t.hasExtends)||!e.argument)return;let n=t.currentSegments;for(let e of n)if(e.reachable){let t=a[e.id];t.calledInSomePaths=t.calledInEveryPaths=!0}}}}}})),de=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Enforce consistent brace style for all control statements`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/curly`},schema:{anyOf:[{type:`array`,items:[{enum:[`all`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`multi`,`multi-line`,`multi-or-nest`]},{enum:[`consistent`]}],minItems:0,maxItems:2}]},defaultOptions:[`all`],fixable:`code`,messages:{missingCurlyAfter:`Expected { after '{{name}}'.`,missingCurlyAfterCondition:`Expected { after '{{name}}' condition.`,unexpectedCurlyAfter:`Unnecessary { after '{{name}}'.`,unexpectedCurlyAfterCondition:`Unnecessary { after '{{name}}' condition.`}},create(e){let t=e.options[0]===`multi`,r=e.options[0]===`multi-line`,i=e.options[0]===`multi-or-nest`,a=e.options[1]===`consistent`,o=e.sourceCode;function s(e){let t=o.getTokenBefore(e),r=o.getLastToken(e),i=n.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===i.loc.end.line}function c(e){if(e.type===`EmptyStatement`)return!0;let t=o.getFirstToken(e),r=o.getLastToken(e),i=n.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===i.loc.end.line}function l(e){let t=o.getTokenBefore(e),r=o.getTokenAfter(e),i=o.getNodeByRangeIndex(t.range[0]);return n.isSemicolonToken(t)||!r||i.type===`BlockStatement`&&i.parent.type!==`FunctionExpression`&&i.parent.type!==`ArrowFunctionExpression`?!1:!!(t.loc.end.line===r.loc.start.line||/^[([/`+-]/u.test(r.value)||t.type===`Punctuator`&&(t.value===`++`||t.value===`--`))}function u(a,u,d,f){let p=u.type===`BlockStatement`,m=null;if(p&&(u.body.length!==1||n.areBracesNecessary(u,o)))m=!0;else if(t)m=!1;else if(r)s(u)||(m=!0);else if(i)if(p){let e=u.body[0],t=o.getCommentsBefore(e);m=!c(e)||t.length>0}else m=!c(u);else m=!0;return{actual:p,expected:m,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:a,loc:u.loc,messageId:f&&f.condition?`missingCurlyAfterCondition`:`missingCurlyAfter`,data:{name:d},fix:e=>e.replaceText(u,`{${o.getText(u)}}`)}):e.report({node:a,loc:u.loc,messageId:f&&f.condition?`unexpectedCurlyAfterCondition`:`unexpectedCurlyAfter`,data:{name:d},fix(e){let t=a.type===`DoWhileStatement`&&o.getTokenBefore(u).range[1]===u.range[0]&&!n.canTokensBeAdjacent(`do`,o.getFirstToken(u,{skip:1})),r=o.getFirstToken(u),i=o.getLastToken(u),s=o.getTokenBefore(i);if(l(i))return null;let c=o.getText().slice(r.range[1],s.range[0])+o.getText(s)+o.getText().slice(s.range[1],i.range[0]);return e.replaceText(u,(t?` `:``)+c)}}))}}}function d(e){let t=[];for(let n=e;n;n=n.alternate)if(t.push(u(n,n.consequent,`if`,{condition:!0})),n.alternate&&n.alternate.type!==`IfStatement`){t.push(u(n,n.alternate,`else`));break}if(a){let e=t.some(e=>e.expected===null?e.actual:e.expected);t.forEach(t=>{t.expected=e})}return t}return{IfStatement(e){let t=e.parent;t.type===`IfStatement`&&t.alternate===e||d(e).forEach(e=>{e.check()})},WhileStatement(e){u(e,e.body,`while`,{condition:!0}).check()},DoWhileStatement(e){u(e,e.body,`do`).check()},ForStatement(e){u(e,e.body,`for`,{condition:!0}).check()},ForInStatement(e){u(e,e.body,`for-in`).check()},ForOfStatement(e){u(e,e.body,`for-of`).check()}}}}})),fe=n(((e,t)=>{let n=/^no default$/iu;t.exports={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/default-case`},schema:[{type:`object`,properties:{commentPattern:{type:`string`}},additionalProperties:!1}],messages:{missingDefaultCase:`Expected a default case.`}},create(e){let[t]=e.options,r=t.commentPattern?new RegExp(t.commentPattern,`u`):n,i=e.sourceCode;function a(e){return e.at(-1)}return{SwitchStatement(t){if(t.cases.length&&!t.cases.some(e=>e.test===null)){let n,o=a(t.cases),s=i.getCommentsAfter(o);s.length&&(n=a(s)),(!n||!r.test(n.value.trim()))&&e.report({node:t,messageId:`missingDefaultCase`})}}}}}})),pe=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:`https://eslint.org/docs/latest/rules/default-case-last`},schema:[],messages:{notLast:`Default clause should be the last clause.`}},create(e){return{SwitchStatement(t){let n=t.cases,r=n.findIndex(e=>e.test===null);if(r!==-1&&r!==n.length-1){let t=n[r];e.report({node:t,messageId:`notLast`})}}}}}})),me=n(((e,t)=>{function n(e){return!(e.type===`AssignmentPattern`||e.type===`RestElement`||e.optional)}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,docs:{description:`Enforce default parameters to be last`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/default-param-last`},schema:[],messages:{shouldBeLast:`Default parameters should be last.`}},create(e){function t(t){let r=!1;for(let i=t.params.length-1;i>=0;--i){let a=t.params[i];if(n(a.type===`TSParameterProperty`?a.parameter:a)){r=!0;continue}r&&e.report({node:a,messageId:`shouldBeLast`})}}return{FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t}}}})),he=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`dot-location`,url:`https://eslint.style/rules/dot-location`}}]},type:`layout`,docs:{description:`Enforce consistent newlines before and after dots`,recommended:!1,url:`https://eslint.org/docs/latest/rules/dot-location`},schema:[{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],r=t===`object`||!t,i=e.sourceCode;function a(t){let a=t.property,o=i.getTokenBefore(a);if(r){let r=i.getTokenBefore(o);n.isTokenOnSameLine(r,o)||e.report({node:t,loc:o.loc,messageId:`expectedDotAfterObject`,*fix(e){o.value.startsWith(`.`)&&n.isDecimalIntegerNumericToken(r)?yield e.insertTextAfter(r,` ${o.value}`):yield e.insertTextAfter(r,o.value),yield e.remove(o)}})}else n.isTokenOnSameLine(o,a)||e.report({node:t,loc:o.loc,messageId:`expectedDotBeforeProperty`,*fix(e){yield e.remove(o),yield e.insertTextBefore(a,o.value)}})}function o(e){e.computed||a(e)}return{MemberExpression:o}}}})),ge=n(((e,t)=>{t.exports=`abstract.boolean.break.byte.case.catch.char.class.const.continue.debugger.default.delete.do.double.else.enum.export.extends.false.final.finally.float.for.function.goto.if.implements.import.in.instanceof.int.interface.long.native.new.null.package.private.protected.public.return.short.static.super.switch.synchronized.this.throw.throws.transient.true.try.typeof.var.void.volatile.while.with`.split(`.`)})),_e=n(((e,t)=>{let n=M(),r=ge(),i=/^[a-zA-Z_$][\w$]*$/u,a=new Set([`string`,`boolean`]);t.exports={meta:{type:`suggestion`,defaultOptions:[{allowKeywords:!0,allowPattern:``}],docs:{description:`Enforce dot notation whenever possible`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/dot-notation`},schema:[{type:`object`,properties:{allowKeywords:{type:`boolean`},allowPattern:{type:`string`}},additionalProperties:!1}],fixable:`code`,messages:{useDot:`[{{key}}] is better written in dot notation.`,useBrackets:`.{{key}} is a syntax error.`}},create(e){let[t]=e.options,o=t.allowKeywords,s=e.sourceCode,c;t.allowPattern&&(c=new RegExp(t.allowPattern,`u`));function l(t,a){if(i.test(a)&&(o||!r.includes(String(a)))&&!(c&&c.test(a))){let r=t.property.type===`Literal`?JSON.stringify(a):`\`${a}\``;e.report({node:t.property,messageId:`useDot`,data:{key:r},*fix(e){let r=s.getTokenAfter(t.object,n.isOpeningBracketToken),i=s.getLastToken(t),o=s.getTokenAfter(t);s.commentsExistBetween(r,i)||(t.optional||(yield e.insertTextBefore(r,n.isDecimalInteger(t.object)?` .`:`.`)),yield e.replaceTextRange([r.range[0],i.range[1]],String(a)),o&&i.range[1]===o.range[0]&&!n.canTokensBeAdjacent(String(a),o)&&(yield e.insertTextAfter(t,` `)))}})}}return{MemberExpression(t){t.computed&&t.property.type===`Literal`&&(a.has(typeof t.property.value)||n.isNullLiteral(t.property))&&l(t,t.property.value),t.computed&&n.isStaticTemplateLiteral(t.property)&&l(t,t.property.quasis[0].value.cooked),!o&&!t.computed&&t.property.type===`Identifier`&&r.includes(String(t.property.name))&&e.report({node:t.property,messageId:`useBrackets`,data:{key:t.property.name},*fix(e){let n=s.getTokenBefore(t.property);t.object.type===`Identifier`&&t.object.name===`let`&&!t.optional||s.commentsExistBetween(n,t.property)||(t.optional||(yield e.remove(n)),yield e.replaceText(t.property,`["${t.property.name}"]`))}})}}}}})),K=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`eol-last`,url:`https://eslint.style/rules/eol-last`}}]},type:`layout`,docs:{description:`Require or disallow newline at the end of files`,recommended:!1,url:`https://eslint.org/docs/latest/rules/eol-last`},fixable:`whitespace`,schema:[{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){return{Program:function(t){let n=e.sourceCode,r=n.getText(),i={column:n.lines.at(-1).length,line:n.lines.length},a=r.endsWith(`
26
+ `);if(!r.length)return;let o=e.options[0]||`always`,s=!1;if(o===`unix`&&(o=`always`),o===`windows`&&(o=`always`,s=!0),o===`always`&&!a)e.report({node:t,loc:i,messageId:`missing`,fix(e){return e.insertTextAfterRange([0,r.length],s?`\r
27
+ `:`
28
+ `)}});else if(o===`never`&&a){let r=n.lines.at(-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],``)}})}}}}}})),ve=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,hasSuggestions:!0,docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:`https://eslint.org/docs/latest/rules/eqeqeq`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{null:{enum:[`always`,`never`,`ignore`]}},additionalProperties:!1}],additionalItems:!1},{type:`array`,items:[{enum:[`smart`,`allow-null`]}],additionalItems:!1}]},fixable:`code`,messages:{unexpected:`Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.`,replaceOperator:`Use '{{expectedOperator}}' instead of '{{actualOperator}}'.`}},create(e){let t=e.options[0]||`always`,r=e.options[1]||{},i=e.sourceCode,a=t===`always`?r.null||`always`:`ignore`,o=a===`always`,s=a===`never`;function c(e){return e.type===`UnaryExpression`&&e.operator===`typeof`}function l(e){return c(e.left)||c(e.right)}function u(e){return e.left.type===`Literal`&&e.right.type===`Literal`&&typeof e.left.value==typeof e.right.value}function d(e){return n.isNullLiteral(e.right)||n.isNullLiteral(e.left)}function f(t,n){let r=i.getFirstTokenBetween(t.left,t.right,e=>e.value===t.operator),a={node:t,loc:r.loc,messageId:`unexpected`,data:{expectedOperator:n,actualOperator:t.operator}};l(t)||u(t)?e.report({...a,fix(e){return e.replaceText(r,n)}}):e.report({...a,suggest:[{messageId:`replaceOperator`,data:{expectedOperator:n,actualOperator:t.operator},fix:e=>e.replaceText(r,n)}]})}return{BinaryExpression(e){let n=d(e);if(e.operator!==`==`&&e.operator!==`!=`){s&&n&&f(e,e.operator.slice(0,-1));return}t===`smart`&&(l(e)||u(e)||n)||!o&&n||f(e,`${e.operator}=`)}}}}})),ye=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t={ArrayExpression:[`elements`],ArrayPattern:[`elements`],ArrowFunctionExpression:[`params`,`body`],AssignmentExpression:[`left`,`right`],AssignmentPattern:[`left`,`right`],AwaitExpression:[`argument`],BinaryExpression:[`left`,`right`],BlockStatement:[`body`],BreakStatement:[`label`],CallExpression:[`callee`,`arguments`],CatchClause:[`param`,`body`],ChainExpression:[`expression`],ClassBody:[`body`],ClassDeclaration:[`id`,`superClass`,`body`],ClassExpression:[`id`,`superClass`,`body`],ConditionalExpression:[`test`,`consequent`,`alternate`],ContinueStatement:[`label`],DebuggerStatement:[],DoWhileStatement:[`body`,`test`],EmptyStatement:[],ExperimentalRestProperty:[`argument`],ExperimentalSpreadProperty:[`argument`],ExportAllDeclaration:[`exported`,`source`],ExportDefaultDeclaration:[`declaration`],ExportNamedDeclaration:[`declaration`,`specifiers`,`source`],ExportSpecifier:[`exported`,`local`],ExpressionStatement:[`expression`],ForInStatement:[`left`,`right`,`body`],ForOfStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`],FunctionExpression:[`id`,`params`,`body`],Identifier:[],IfStatement:[`test`,`consequent`,`alternate`],ImportDeclaration:[`specifiers`,`source`],ImportDefaultSpecifier:[`local`],ImportExpression:[`source`],ImportNamespaceSpecifier:[`local`],ImportSpecifier:[`imported`,`local`],JSXAttribute:[`name`,`value`],JSXClosingElement:[`name`],JSXClosingFragment:[],JSXElement:[`openingElement`,`children`,`closingElement`],JSXEmptyExpression:[],JSXExpressionContainer:[`expression`],JSXFragment:[`openingFragment`,`children`,`closingFragment`],JSXIdentifier:[],JSXMemberExpression:[`object`,`property`],JSXNamespacedName:[`namespace`,`name`],JSXOpeningElement:[`name`,`attributes`],JSXOpeningFragment:[],JSXSpreadAttribute:[`argument`],JSXSpreadChild:[`expression`],JSXText:[],LabeledStatement:[`label`,`body`],Literal:[],LogicalExpression:[`left`,`right`],MemberExpression:[`object`,`property`],MetaProperty:[`meta`,`property`],MethodDefinition:[`key`,`value`],NewExpression:[`callee`,`arguments`],ObjectExpression:[`properties`],ObjectPattern:[`properties`],PrivateIdentifier:[],Program:[`body`],Property:[`key`,`value`],PropertyDefinition:[`key`,`value`],RestElement:[`argument`],ReturnStatement:[`argument`],SequenceExpression:[`expressions`],SpreadElement:[`argument`],StaticBlock:[`body`],Super:[],SwitchCase:[`test`,`consequent`],SwitchStatement:[`discriminant`,`cases`],TaggedTemplateExpression:[`tag`,`quasi`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],ThisExpression:[],ThrowStatement:[`argument`],TryStatement:[`block`,`handler`,`finalizer`],UnaryExpression:[`argument`],UpdateExpression:[`argument`],VariableDeclaration:[`declarations`],VariableDeclarator:[`id`,`init`],WhileStatement:[`test`,`body`],WithStatement:[`object`,`body`],YieldExpression:[`argument`]},n=Object.keys(t);for(let e of n)Object.freeze(t[e]);Object.freeze(t);let r=new Set([`parent`,`leadingComments`,`trailingComments`]);function i(e){return!r.has(e)&&e[0]!==`_`}function a(e){return Object.keys(e).filter(i)}function o(e){let n=Object.assign({},t);for(let t of Object.keys(e))if(Object.prototype.hasOwnProperty.call(n,t)){let r=new Set(e[t]);for(let e of n[t])r.add(e);n[t]=Object.freeze(Array.from(r))}else n[t]=Object.freeze(Array.from(e[t]));return Object.freeze(n)}e.KEYS=t,e.getKeys=a,e.unionWith=o})),q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ye();function n(e,t){let n=t.range[0],r=e,i=!1;do{i=!1;for(let e of r.childScopes){let t=e.block.range;if(t[0]<=n&&n<t[1]){r=e,i=!0;break}}}while(i);return r}function r(e,t){let r=``,i=e;for(typeof t==`string`?r=t:(r=t.name,i=n(i,t));i!=null;){let e=i.set.get(r);if(e!=null)return e;i=i.upper}return null}function i(e){return t=>!e(t)}function a(e,t){return e.type===`Punctuator`&&e.value===t}function o(e){return a(e,`=>`)}function s(e){return a(e,`,`)}function c(e){return a(e,`;`)}function l(e){return a(e,`:`)}function u(e){return a(e,`(`)}function d(e){return a(e,`)`)}function f(e){return a(e,`[`)}function p(e){return a(e,`]`)}function m(e){return a(e,`{`)}function h(e){return a(e,`}`)}function g(e){return[`Block`,`Line`,`Shebang`].includes(e.type)}let _=i(o),v=i(s),y=i(c),b=i(l),x=i(u),S=i(d),C=i(f),w=i(p),T=i(m),E=i(h),D=i(g);function O(e,t){return e.id?t.getTokenAfter(e.id,u):t.getFirstToken(e,u)}function k(e,t){let n=e.parent,r=null,i=null;if(e.type===`ArrowFunctionExpression`){let n=t.getTokenBefore(e.body,o);r=n.loc.start,i=n.loc.end}else n&&(n.type===`Property`||n.type===`MethodDefinition`||n.type===`PropertyDefinition`)?(r=n.loc.start,i=O(e,t).loc.start):(r=e.loc.start,i=O(e,t).loc.start);return{start:{...r},end:{...i}}}let A=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},j=Object.freeze(new Set(`Array.ArrayBuffer.BigInt.BigInt64Array.BigUint64Array.Boolean.DataView.Date.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.Float32Array.Float64Array.Function.Infinity.Int16Array.Int32Array.Int8Array.isFinite.isNaN.isPrototypeOf.JSON.Map.Math.NaN.Number.Object.parseFloat.parseInt.Promise.Proxy.Reflect.RegExp.Set.String.Symbol.Uint16Array.Uint32Array.Uint8Array.Uint8ClampedArray.undefined.unescape.WeakMap.WeakSet`.split(`.`))),M=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,typeof BigInt==`function`?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>e!==`random`).map(e=>Math[e]).filter(e=>typeof e==`function`),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>typeof e==`function`)),N=new Set([Object.freeze,Object.preventExtensions,Object.seal]),P=[[Map,new Set([`size`])],[RegExp,new Set([`dotAll`,`flags`,`global`,`hasIndices`,`ignoreCase`,`multiline`,`source`,`sticky`,`unicode`])],[Set,new Set([`size`])]];function F(e,t){let n=e;for(;(typeof n==`object`||typeof n==`function`)&&n!==null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}return null}function I(e,t){let n=F(e,t);return n!=null&&n.get!=null}function L(e,t){let n=[];for(let r=0;r<e.length;++r){let i=e[r];if(i==null)n.length=r+1;else if(i.type===`SpreadElement`){let e=V(i.argument,t);if(e==null)return null;n.push(...e.value)}else{let e=V(i,t);if(e==null)return null;n.push(e.value)}}return n}function R(e){return e!=null&&e.defs.length===0&&j.has(e.name)&&e.name in A}function z(e){if(e.defs.length!==1)return!1;let t=e.defs[0];return!!(t.parent&&t.type===`Variable`&&(t.parent.kind===`const`||ee(e)))}function ee(e){let t=e.references,n=t.filter(e=>e.init).length,r=t.filter(e=>e.isReadOnly()).length;return n===1&&r+n===t.length}function B(e,t){for(let r of e.references){let e=r.identifier;for(;e&&e.parent&&e.parent.type===`MemberExpression`;)e=e.parent;if(!(!e||!e.parent)&&(e.parent.type===`AssignmentExpression`&&e.parent.left===e||e.parent.type===`UpdateExpression`&&e.parent.argument===e||e.parent.type===`CallExpression`&&e.parent.callee===e&&e.type===`MemberExpression`&&n(H(e,t))))return!0}return!1;function n(e){if(e==null||e.value==null)return!1;let t=e.value;return t===`copyWithin`||t===`fill`||t===`pop`||t===`push`||t===`reverse`||t===`shift`||t===`sort`||t===`splice`||t===`unshift`}}let te=Object.freeze({ArrayExpression(e,t){let n=L(e.elements,t);return n==null?null:{value:n}},AssignmentExpression(e,t){return e.operator===`=`?V(e.right,t):null},BinaryExpression(e,t){if(e.operator===`in`||e.operator===`instanceof`)return null;let n=V(e.left,t),r=V(e.right,t);if(n!=null&&r!=null)switch(e.operator){case`==`:return{value:n.value==r.value};case`!=`:return{value:n.value!=r.value};case`===`:return{value:n.value===r.value};case`!==`:return{value:n.value!==r.value};case`<`:return{value:n.value<r.value};case`<=`:return{value:n.value<=r.value};case`>`:return{value:n.value>r.value};case`>=`:return{value:n.value>=r.value};case`<<`:return{value:n.value<<r.value};case`>>`:return{value:n.value>>r.value};case`>>>`:return{value:n.value>>>r.value};case`+`:return{value:n.value+r.value};case`-`:return{value:n.value-r.value};case`*`:return{value:n.value*r.value};case`/`:return{value:n.value/r.value};case`%`:return{value:n.value%r.value};case`**`:return{value:n.value**r.value};case`|`:return{value:n.value|r.value};case`^`:return{value:n.value^r.value};case`&`:return{value:n.value&r.value}}return null},CallExpression(e,t){let n=e.callee,r=L(e.arguments,t);if(r!=null)if(n.type===`MemberExpression`){if(n.property.type===`PrivateIdentifier`)return null;let i=V(n.object,t);if(i!=null){if(i.value==null&&(i.optional||e.optional))return{value:void 0,optional:!0};let a=H(n,t);if(a!=null){let e=i.value,t=a.value;if(M.has(e[t]))return{value:e[t](...r)};if(N.has(e[t]))return{value:r[0]}}}}else{let i=V(n,t);if(i!=null){if(i.value==null&&e.optional)return{value:void 0,optional:!0};let t=i.value;if(M.has(t))return{value:t(...r)};if(N.has(t))return{value:r[0]}}}return null},ConditionalExpression(e,t){let n=V(e.test,t);return n==null?null:n.value?V(e.consequent,t):V(e.alternate,t)},ExpressionStatement(e,t){return V(e.expression,t)},Identifier(e,t){if(t!=null){let n=r(t,e);if(n!=null){if(R(n))return{value:A[n.name]};if(z(n)){let e=n.defs[0];if(e.node.id.type===`Identifier`){let r=V(e.node.init,t);return r&&typeof r.value==`object`&&r.value!==null&&B(n,t)?null:r}}}}return null},Literal(e){let t=e;return(t.regex!=null||t.bigint!=null)&&t.value==null?null:{value:t.value}},LogicalExpression(e,t){let n=V(e.left,t);if(n!=null){if(e.operator===`||`&&n.value||e.operator===`&&`&&!n.value||e.operator===`??`&&n.value!=null)return n;let r=V(e.right,t);if(r!=null)return r}return null},MemberExpression(e,t){if(e.property.type===`PrivateIdentifier`)return null;let n=V(e.object,t);if(n!=null){if(n.value==null&&(n.optional||e.optional))return{value:void 0,optional:!0};let r=H(e,t);if(r!=null){if(!I(n.value,r.value))return{value:n.value[r.value]};for(let[e,t]of P)if(n.value instanceof e&&t.has(r.value))return{value:n.value[r.value]}}}return null},ChainExpression(e,t){let n=V(e.expression,t);return n==null?null:{value:n.value}},NewExpression(e,t){let n=V(e.callee,t),r=L(e.arguments,t);if(n!=null&&r!=null){let e=n.value;if(M.has(e))return{value:new e(...r)}}return null},ObjectExpression(e,t){let n={};for(let r of e.properties)if(r.type===`Property`){if(r.kind!==`init`)return null;let e=H(r,t),i=V(r.value,t);if(e==null||i==null)return null;n[e.value]=i.value}else if(r.type===`SpreadElement`||r.type===`ExperimentalSpreadProperty`){let e=V(r.argument,t);if(e==null)return null;Object.assign(n,e.value)}else return null;return{value:n}},SequenceExpression(e,t){let n=e.expressions[e.expressions.length-1];return V(n,t)},TaggedTemplateExpression(e,t){let n=V(e.tag,t),r=L(e.quasi.expressions,t);if(n!=null&&r!=null){let t=n.value,i=e.quasi.quasis.map(e=>e.value.cooked);if(i.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(i,...r)}}return null},TemplateLiteral(e,t){let n=L(e.expressions,t);if(n!=null){let t=e.quasis[0].value.cooked;for(let r=0;r<n.length;++r)t+=n[r],t+=e.quasis[r+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if(e.operator===`delete`)return null;if(e.operator===`void`)return{value:void 0};let n=V(e.argument,t);if(n!=null)switch(e.operator){case`-`:return{value:-n.value};case`+`:return{value:+n.value};case`!`:return{value:!n.value};case`~`:return{value:~n.value};case`typeof`:return{value:typeof n.value}}return null},TSAsExpression(e,t){return V(e.expression,t)},TSSatisfiesExpression(e,t){return V(e.expression,t)},TSTypeAssertion(e,t){return V(e.expression,t)},TSNonNullExpression(e,t){return V(e.expression,t)},TSInstantiationExpression(e,t){return V(e.expression,t)}});function V(e,t){return e!=null&&Object.hasOwnProperty.call(te,e.type)?te[e.type](e,t):null}function H(e,t){let n=e.type===`Property`?e.key:e.property;return e.computed?V(n,t):n.type===`Identifier`?{value:n.name}:n.type===`Literal`?n.bigint?{value:n.bigint}:{value:String(n.value)}:null}function U(e,t=null){try{return V(e,t)}catch{return null}}function W(e,t=null){if(e&&e.type===`Literal`&&e.value===null){let t=e;if(t.regex)return`/${t.regex.pattern}/${t.regex.flags}`;if(t.bigint)return t.bigint}let n=U(e,t);if(n)try{return String(n.value)}catch{}return null}function ne(e,t){switch(e.type){case`MemberExpression`:return e.computed?W(e.property,t):e.property.type===`PrivateIdentifier`?null:e.property.name;case`Property`:case`MethodDefinition`:case`PropertyDefinition`:return e.computed?W(e.key,t):e.key.type===`Literal`?String(e.key.value):e.key.type===`PrivateIdentifier`?null:e.key.name}return null}function re(e,t){let n=e.parent;if(!n)return``;let r=[],i=n.type===`Property`&&n.value===e,a=n.type===`MethodDefinition`&&n.value===e,o=n.type===`PropertyDefinition`&&n.value===e;if((a||o)&&(n.static&&r.push(`static`),n.key.type===`PrivateIdentifier`&&r.push(`private`)),e.async&&r.push(`async`),e.generator&&r.push(`generator`),i||a){if(n.kind===`constructor`)return`constructor`;n.kind===`get`?r.push(`getter`):n.kind===`set`?r.push(`setter`):r.push(`method`)}else o?r.push(`method`):(e.type===`ArrowFunctionExpression`&&r.push(`arrow`),r.push(`function`));if(i||a||o)if(n.key.type===`PrivateIdentifier`)r.push(`#${n.key.name}`);else{let e=ne(n);if(e)r.push(`'${e}'`);else if(t){let e=t.getText(n.key);e.includes(`
29
+ `)||r.push(`[${e}]`)}}else G(e)?r.push(`'${e.id.name}'`):n.type===`VariableDeclarator`&&n.id&&n.id.type===`Identifier`?r.push(`'${n.id.name}'`):(n.type===`AssignmentExpression`||n.type===`AssignmentPattern`)&&n.left&&n.left.type===`Identifier`?r.push(`'${n.left.name}'`):n.type===`ExportDefaultDeclaration`&&n.declaration===e&&r.push(`'default'`);return r.join(` `)}function G(e){return!!e.id}let ie=Object.freeze(new Set([`==`,`!=`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`|`,`^`,`&`,`in`])),ae=Object.freeze(new Set([`-`,`+`,`!`,`~`]));function oe(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}let se=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,n){let{type:r}=e;return typeof this[r]==`function`?this[r](e,t,n):this.$visitChildren(e,t,n)},$visitChildren(e,n,r){let{type:i}=e;for(let a of r[i]||t.getKeys(e)){let t=e[a];if(Array.isArray(t)){for(let e of t)if(oe(e)&&this.$visit(e,n,r))return!0}else if(oe(t)&&this.$visit(t,n,r))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(e,t,n){return t.considerImplicitTypeConversion&&ie.has(e.operator)&&(e.left.type!==`Literal`||e.right.type!==`Literal`)?!0:this.$visitChildren(e,t,n)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(e,t,n){return t.considerGetters||t.considerImplicitTypeConversion&&e.computed&&e.property.type!==`Literal`?!0:this.$visitChildren(e,t,n)},MethodDefinition(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},NewExpression(){return!0},Property(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},PropertyDefinition(e,t,n){return t.considerImplicitTypeConversion&&e.computed&&e.key.type!==`Literal`?!0:this.$visitChildren(e,t,n)},UnaryExpression(e,t,n){return e.operator===`delete`||t.considerImplicitTypeConversion&&ae.has(e.operator)&&e.argument.type!==`Literal`?!0:this.$visitChildren(e,t,n)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function ce(e,n,r={}){let{considerGetters:i=!1,considerImplicitTypeConversion:a=!1}=r;return se.$visit(e,{considerGetters:i,considerImplicitTypeConversion:a},n.visitorKeys||t.KEYS)}function le(e,t){let n=e.parent;if(!n)return null;switch(n.type){case`CallExpression`:case`NewExpression`:return n.arguments.length===1&&n.arguments[0]===e?t.getTokenAfter(n.typeArguments||n.typeParameters||n.callee,u):null;case`DoWhileStatement`:return n.test===e?t.getTokenAfter(n.body,u):null;case`IfStatement`:case`WhileStatement`:return n.test===e?t.getFirstToken(n,1):null;case`ImportExpression`:return n.source===e?t.getFirstToken(n,1):null;case`SwitchStatement`:return n.discriminant===e?t.getFirstToken(n,1):null;case`WithStatement`:return n.object===e?t.getFirstToken(n,1):null;default:return null}}function ue(e,t,n){let r,i,a,o,s;if(typeof e==`number`){if(r=e|0,i=t,a=n,!(r>=1))throw TypeError(`'times' should be a positive integer.`)}else r=1,i=e,a=t;if(i==null||i.parent==null||i.parent.type===`CatchClause`&&i.parent.param===i)return!1;o=s=i;do o=a.getTokenBefore(o),s=a.getTokenAfter(s);while(o!=null&&s!=null&&u(o)&&d(s)&&o!==le(i,a)&&--r>0);return r===0}let de=/\$(?:[$&`']|[1-9][0-9]?)/gu,fe=new WeakMap;function pe(e,t){let n=!1;for(let r=t-1;r>=0&&e.charCodeAt(r)===92;--r)n=!n;return n}function me(e,t,n){let r=[],i=0;function a(e,n){switch(e){case`$$`:return`$`;case`$&`:return n[0];case"$`":return t.slice(0,n.index);case`$'`:return t.slice(n.index+n[0].length);default:{let t=e.slice(1);return t in n?n[t]:e}}}for(let o of e.execAll(t))r.push(t.slice(i,o.index)),r.push(n.replace(de,e=>a(e,o))),i=o.index+o[0].length;return r.push(t.slice(i)),r.join(``)}function he(e,t,n){let r=[],i=0;for(let a of e.execAll(t))r.push(t.slice(i,a.index)),r.push(String(n(...a,a.index,a.input))),i=a.index+a[0].length;return r.push(t.slice(i)),r.join(``)}var ge=class{constructor(e,t={}){let{escaped:n=!1}=t;if(!(e instanceof RegExp))throw TypeError(`'pattern' should be a RegExp instance.`);if(!e.flags.includes(`g`))throw Error(`'pattern' should contains 'g' flag.`);fe.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!n})}*execAll(e){let{pattern:t,escaped:n}=fe.get(this),r=null,i=0;for(t.lastIndex=0;(r=t.exec(e))!=null;)(n||!pe(e,r.index))&&(i=t.lastIndex,yield r,t.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return typeof t==`function`?he(this,String(e),t):me(this,String(e),String(t))}};let _e=/^(?:Import|Export(?:All|Default|Named))Declaration$/u;function K(e){return _e.test(e.type)&&e.source!=null}let ve=Function.call.bind(Object.hasOwnProperty),q=Symbol(`read`),J=Symbol(`call`),Y=Symbol(`construct`),be=Symbol(`esm`),xe={require:{[J]:!0}};function Se(e){return e==null||e.defs.length!==0||e.references.some(e=>e.isWrite())}function X(e){let t=e.parent;if(t)switch(t.type){case`ConditionalExpression`:return t.consequent===e||t.alternate===e;case`LogicalExpression`:return!0;case`SequenceExpression`:return t.expressions[t.expressions.length-1]===e;case`ChainExpression`:return!0;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:case`TSInstantiationExpression`:return!0;default:return!1}return!1}var Ce=class{constructor(e,t={}){let{mode:n=`strict`,globalObjectNames:r=[`global`,`globalThis`,`self`,`window`]}=t;this.variableStack=[],this.globalScope=e,this.mode=n,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let n=e[t],r=[t],i=this.globalScope.set.get(t);Se(i)||(yield*this._iterateVariableReferences(i,r,n,!0))}for(let t of this.globalObjectNames){let n=[],r=this.globalScope.set.get(t);Se(r)||(yield*this._iterateVariableReferences(r,n,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(xe)){let n=W(t.arguments[0]);if(n==null||!ve(e,n))continue;let r=e[n],i=[n];r[q]&&(yield{node:t,path:i,type:q,info:r[q]}),yield*this._iteratePropertyReferences(t,i,r)}}*iterateEsmReferences(e){let t=this.globalScope.block;for(let n of t.body){if(!K(n))continue;let t=n.source.value;if(!ve(e,t))continue;let r=e[t],i=[t];if(r[q]&&(yield{node:n,path:i,type:q,info:r[q]}),n.type===`ExportAllDeclaration`)for(let e of Object.keys(r)){let t=r[e];t[q]&&(yield{node:n,path:i.concat(e),type:q,info:t[q]})}else for(let e of n.specifiers){let t=ve(r,be),n=this._iterateImportReferences(e,i,t?r:this.mode===`legacy`?{default:r,...r}:{default:r});if(t)yield*n;else for(let e of n)e.path=e.path.filter(Z),(e.path.length>=2||e.type!==q)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_iterateVariableReferences(e,t,n,r){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let e=i.identifier;r&&n[q]&&(yield{node:e,path:t,type:q,info:n[q]}),yield*this._iteratePropertyReferences(e,t,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,n){let r=e;for(;X(r);)r=r.parent;let i=r.parent;if(i){if(i.type===`MemberExpression`){if(i.object===r){let e=ne(i);if(e==null||!ve(n,e))return;t=t.concat(e);let r=n[e];r[q]&&(yield{node:i,path:t,type:q,info:r[q]}),yield*this._iteratePropertyReferences(i,t,r)}return}if(i.type===`CallExpression`){i.callee===r&&n[J]&&(yield{node:i,path:t,type:J,info:n[J]});return}if(i.type===`NewExpression`){i.callee===r&&n[Y]&&(yield{node:i,path:t,type:Y,info:n[Y]});return}if(i.type===`AssignmentExpression`){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n),yield*this._iteratePropertyReferences(i,t,n));return}if(i.type===`AssignmentPattern`){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n));return}i.type===`VariableDeclarator`&&i.init===r&&(yield*this._iterateLhsReferences(i.id,t,n))}}*_iterateLhsReferences(e,t,n){if(e.type===`Identifier`){let i=r(this.globalScope,e);i!=null&&(yield*this._iterateVariableReferences(i,t,n,!1));return}if(e.type===`ObjectPattern`){for(let r of e.properties){let e=ne(r);if(e==null||!ve(n,e))continue;let i=t.concat(e),a=n[e];a[q]&&(yield{node:r,path:i,type:q,info:a[q]}),yield*this._iterateLhsReferences(r.value,i,a)}return}e.type===`AssignmentPattern`&&(yield*this._iterateLhsReferences(e.left,t,n))}*_iterateImportReferences(e,t,n){let i=e.type;if(i===`ImportSpecifier`||i===`ImportDefaultSpecifier`){let a=i===`ImportDefaultSpecifier`?`default`:e.imported.type===`Identifier`?e.imported.name:e.imported.value;if(!ve(n,a))return;t=t.concat(a);let o=n[a];o[q]&&(yield{node:e,path:t,type:q,info:o[q]}),yield*this._iterateVariableReferences(r(this.globalScope,e.local),t,o,!1);return}if(i===`ImportNamespaceSpecifier`){yield*this._iterateVariableReferences(r(this.globalScope,e.local),t,n,!1);return}if(i===`ExportSpecifier`){let r=e.local.type===`Identifier`?e.local.name:e.local.value;if(!ve(n,r))return;t=t.concat(r);let i=n[r];i[q]&&(yield{node:e,path:t,type:q,info:i[q]})}}};Ce.READ=q,Ce.CALL=J,Ce.CONSTRUCT=Y,Ce.ESM=be;function Z(e,t){return!(t===1&&e===`default`)}var we={CALL:J,CONSTRUCT:Y,ESM:be,findVariable:r,getFunctionHeadLocation:k,getFunctionNameWithKind:re,getInnermostScope:n,getPropertyName:ne,getStaticValue:U,getStringIfConstant:W,hasSideEffect:ce,isArrowToken:o,isClosingBraceToken:h,isClosingBracketToken:p,isClosingParenToken:d,isColonToken:l,isCommaToken:s,isCommentToken:g,isNotArrowToken:_,isNotClosingBraceToken:E,isNotClosingBracketToken:w,isNotClosingParenToken:S,isNotColonToken:b,isNotCommaToken:v,isNotCommentToken:D,isNotOpeningBraceToken:T,isNotOpeningBracketToken:C,isNotOpeningParenToken:x,isNotSemicolonToken:y,isOpeningBraceToken:m,isOpeningBracketToken:f,isOpeningParenToken:u,isParenthesized:ue,isSemicolonToken:c,PatternMatcher:ge,READ:q,ReferenceTracker:Ce};e.CALL=J,e.CONSTRUCT=Y,e.ESM=be,e.PatternMatcher=ge,e.READ=q,e.ReferenceTracker=Ce,e.default=we,e.findVariable=r,e.getFunctionHeadLocation=k,e.getFunctionNameWithKind=re,e.getInnermostScope=n,e.getPropertyName=ne,e.getStaticValue=U,e.getStringIfConstant=W,e.hasSideEffect=ce,e.isArrowToken=o,e.isClosingBraceToken=h,e.isClosingBracketToken=p,e.isClosingParenToken=d,e.isColonToken=l,e.isCommaToken=s,e.isCommentToken=g,e.isNotArrowToken=_,e.isNotClosingBraceToken=E,e.isNotClosingBracketToken=w,e.isNotClosingParenToken=S,e.isNotColonToken=b,e.isNotCommaToken=v,e.isNotCommentToken=D,e.isNotOpeningBraceToken=T,e.isNotOpeningBracketToken=C,e.isNotOpeningParenToken=x,e.isNotSemicolonToken=y,e.isOpeningBraceToken=m,e.isOpeningBracketToken=f,e.isOpeningParenToken=u,e.isParenthesized=ue,e.isSemicolonToken=c})),J=n(((e,t)=>{let{getStaticValue:n}=q();t.exports={meta:{type:`problem`,docs:{description:"Enforce `for` loop update clause moving the counter in the right direction",recommended:!0,url:`https://eslint.org/docs/latest/rules/for-direction`},fixable:null,schema:[],messages:{incorrectDirection:`The update clause in this loop moves the variable in the wrong direction.`}},create(e){let{sourceCode:t}=e;function r(n){e.report({loc:{start:n.loc.start,end:t.getTokenBefore(n.body).loc.end},messageId:`incorrectDirection`})}function i(e,r){let i=n(e.right,t.getScope(e));return i&&[`bigint`,`boolean`,`number`].includes(typeof i.value)?r*(Math.sign(Number(i.value))||0):0}function a(e,t){if(e.argument.type===`Identifier`&&e.argument.name===t){if(e.operator===`++`)return 1;if(e.operator===`--`)return-1}return 0}function o(e,t){if(e.left.name===t){if(e.operator===`+=`)return i(e,1);if(e.operator===`-=`)return i(e,-1)}return 0}return{ForStatement(e){if(e.test&&e.test.type===`BinaryExpression`&&e.update)for(let t of[`left`,`right`]){if(e.test[t].type!==`Identifier`)continue;let n=e.test[t].name,i=e.test.operator,s=e.update,c;if(i===`<`||i===`<=`)c=t===`left`?-1:1;else if(i===`>`||i===`>=`)c=t===`left`?1:-1;else return;s.type===`UpdateExpression`?a(s,n)===c&&r(e):s.type===`AssignmentExpression`&&o(s,n)===c&&r(e)}}}}}})),Y=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-spacing`,url:`https://eslint.style/rules/function-call-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing between function identifiers and their invocations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/func-call-spacing`},fixable:`whitespace`,schema:{anyOf:[{type:`array`,items:[{enum:[`never`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{allowNewlines:{type:`boolean`}},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.`}},create(e){let t=e.options[0]!==`always`,r=!t&&e.options[1]&&e.options[1].allowNewlines,i=e.sourceCode,a=i.getText();function o(o,s,c){let l=a.slice(s.range[1],c.range[0]).replace(/\/\*.*?\*\//gu,``),u=/\s/u.test(l),d=u&&n.LINEBREAK_MATCHER.test(l);t&&u?e.report({node:o,loc:{start:s.loc.end,end:{line:c.loc.start.line,column:c.loc.start.column-1}},messageId:`unexpectedWhitespace`,fix(e){return i.commentsExistBetween(s,c)?null:o.optional?e.replaceTextRange([s.range[1],c.range[0]],`?.`):d?null:e.removeRange([s.range[1],c.range[0]])}}):!t&&!u?e.report({node:o,loc:{start:{line:s.loc.end.line,column:s.loc.end.column-1},end:c.loc.start},messageId:`missing`,fix(e){return o.optional?null:e.insertTextBefore(c,` `)}}):!t&&!r&&d&&e.report({node:o,loc:{start:s.loc.end,end:c.loc.start},messageId:`unexpectedNewline`,fix(e){if(!o.optional||i.commentsExistBetween(s,c))return null;let t=[s.range[1],c.range[0]],n=i.getTokenAfter(s);return n.range[0]===s.range[1]?e.replaceTextRange(t,`?. `):n.range[1]===c.range[0]?e.replaceTextRange(t,` ?.`):e.replaceTextRange(t,` ?. `)}})}return{"CallExpression, NewExpression"(e){let t=i.getLastToken(e),r=i.getLastToken(e.callee),a=i.getFirstTokenBetween(r,t,n.isOpeningParenToken),s=a&&i.getTokenBefore(a,n.isNotQuestionDotToken);a&&a.range[1]<e.range[1]&&o(e,s,a)},ImportExpression(e){let t=i.getFirstToken(e);o(e,t,i.getTokenAfter(t))}}}}})),be=n(((e,t)=>{let n=M(),r=C();function i(e){return e.type===`MemberExpression`&&e.object.type===`Identifier`&&e.object.name===`module`&&(e.property.type===`Identifier`&&e.property.name===`exports`||e.property.type===`Literal`&&e.property.value===`exports`)}function a(e,t){return t>=2015?r.keyword.isIdentifierES6(e):r.keyword.isIdentifierES5(e)}let o={enum:[`always`,`never`]},s={type:`object`,properties:{considerPropertyDescriptor:{type:`boolean`},includeCommonJSModuleExports:{type:`boolean`}},additionalProperties:!1};t.exports={meta:{type:`suggestion`,docs:{description:`Require function names to match the name of the variable or property to which they are assigned`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/func-name-matching`},schema:{anyOf:[{type:`array`,additionalItems:!1,items:[o,s]},{type:`array`,additionalItems:!1,items:[s]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(e){let t=(typeof e.options[0]==`object`?e.options[0]:e.options[1])||{},r=typeof e.options[0]==`string`?e.options[0]:`always`,o=t.considerPropertyDescriptor,s=t.includeCommonJSModuleExports,c=e.languageOptions.ecmaVersion;function l(e,t,r){return r?r.type===`CallExpression`&&n.isSpecificMemberAccess(r.callee,e,t):!1}function u(e,t){return r===`always`&&e!==t||r===`never`&&e===t}function d(t,n,i,a){let o;o=r===`always`&&a?`matchProperty`:r===`always`?`matchVariable`:a?`notMatchProperty`:`notMatchVariable`,e.report({node:t,messageId:o,data:{name:n,funcName:i}})}function f(e){return e.type===`Literal`&&typeof e.value==`string`}return{VariableDeclarator(e){!e.init||e.init.type!==`FunctionExpression`||e.id.type!==`Identifier`||e.init.id&&u(e.id.name,e.init.id.name)&&d(e,e.id.name,e.init.id.name,!1)},AssignmentExpression(e){if(e.right.type!==`FunctionExpression`||e.left.computed&&e.left.property.type!==`Literal`||!s&&i(e.left)||e.left.type!==`Identifier`&&e.left.type!==`MemberExpression`)return;let t=e.left.type===`MemberExpression`,r=t?n.getStaticPropertyName(e.left):e.left.name;e.right.id&&r&&a(r)&&u(r,e.right.id.name)&&d(e,r,e.right.id.name,t)},"Property, PropertyDefinition[value]"(e){if(e.value.type===`FunctionExpression`&&e.value.id){if(e.key.type===`Identifier`&&!e.computed){let t=e.value.id.name,n=e.key.name;if(o&&n===`value`&&e.parent.type===`ObjectExpression`)if(l(`Object`,`defineProperty`,e.parent.parent)||l(`Reflect`,`defineProperty`,e.parent.parent)){let n=e.parent.parent.arguments[1];f(n)&&u(n.value,t)&&d(e,n.value,t,!0)}else l(`Object`,`defineProperties`,e.parent.parent.parent.parent)||l(`Object`,`create`,e.parent.parent.parent.parent)?(n=e.parent.parent.key.name,!e.parent.parent.computed&&u(n,t)&&d(e,n,t,!0)):u(n,t)&&d(e,n,t,!0);else u(n,t)&&d(e,n,t,!0);return}f(e.key)&&a(e.key.value,c)&&u(e.key.value,e.value.id.name)&&d(e,e.key.value,e.value.id.name,!0)}}}}}})),xe=n(((e,t)=>{let n=M();function r(e){return e&&e.defs[0].type===`FunctionName`}t.exports={meta:{type:`suggestion`,defaultOptions:[`always`,{}],docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/func-names`},schema:{definitions:{value:{enum:[`always`,`as-needed`,`never`]}},type:`array`,items:[{$ref:`#/definitions/value`},{type:`object`,properties:{generators:{$ref:`#/definitions/value`}},additionalProperties:!1}],additionalItems:!1},messages:{unnamed:`Unexpected unnamed {{name}}.`,named:`Unexpected named {{name}}.`}},create(e){let t=e.sourceCode;function i(t){return t.generator&&e.options[1].generators?e.options[1].generators:e.options[0]}function a(e){let t=e.parent;return t.type===`MethodDefinition`||t.type===`Property`&&(t.method||t.kind===`get`||t.kind===`set`)}function o(e){let t=e.parent;return a(e)||t.type===`VariableDeclarator`&&t.id.type===`Identifier`&&t.init===e||t.type===`Property`&&t.value===e||t.type===`PropertyDefinition`&&t.value===e||t.type===`AssignmentExpression`&&t.left.type===`Identifier`&&t.right===e||t.type===`AssignmentPattern`&&t.left.type===`Identifier`&&t.right===e}function s(r){e.report({node:r,messageId:`unnamed`,loc:n.getFunctionHeadLoc(r,t),data:{name:n.getFunctionNameWithKind(r)}})}function c(r){e.report({node:r,messageId:`named`,loc:n.getFunctionHeadLoc(r,t),data:{name:n.getFunctionNameWithKind(r)}})}function l(e){let n=t.getDeclaredVariables(e)[0];if(r(n)&&n.references.length>0)return;let l=!!(e.id&&e.id.name),u=i(e);u===`never`?l&&e.type!==`FunctionDeclaration`&&c(e):u===`as-needed`?!l&&!o(e)&&s(e):!l&&!a(e)&&s(e)}return{"FunctionExpression:exit":l,"ExportDefaultDeclaration > FunctionDeclaration":l}}}})),Se=n(((e,t)=>{t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,defaultOptions:[`expression`,{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/func-style`},schema:[{enum:[`declaration`,`expression`]},{type:`object`,properties:{allowArrowFunctions:{type:`boolean`},allowTypeAnnotation:{type:`boolean`},overrides:{type:`object`,properties:{namedExports:{enum:[`declaration`,`expression`,`ignore`]}},additionalProperties:!1}},additionalProperties:!1}],messages:{expression:`Expected a function expression.`,declaration:`Expected a function declaration.`}},create(e){let[t,{allowArrowFunctions:n,allowTypeAnnotation:r,overrides:i}]=e.options,a=t===`declaration`,{namedExports:o}=i,s=[];function c(e){let t=e.id.name;return e.parent.type===`ExportNamedDeclaration`?e.parent.parent.body.some(e=>e.type===`ExportNamedDeclaration`&&e.declaration?.type===`TSDeclareFunction`&&e.declaration.id.name===t):e.parent.type===`SwitchCase`?e.parent.parent.cases.some(e=>e.consequent.some(e=>e.type===`TSDeclareFunction`&&e.id.name===t)):Array.isArray(e.parent.body)&&e.parent.body.some(e=>e.type===`TSDeclareFunction`&&e.id.name===t)}let l={FunctionDeclaration(t){s.push(!1),!a&&t.parent.type!==`ExportDefaultDeclaration`&&(o===void 0||t.parent.type!==`ExportNamedDeclaration`)&&!c(t)&&e.report({node:t,messageId:`expression`}),t.parent.type===`ExportNamedDeclaration`&&o===`expression`&&!c(t)&&e.report({node:t,messageId:`expression`})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(t){s.push(!1),a&&t.parent.type===`VariableDeclarator`&&(o===void 0||t.parent.parent.parent.type!==`ExportNamedDeclaration`)&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}),t.parent.type===`VariableDeclarator`&&t.parent.parent.parent.type===`ExportNamedDeclaration`&&o===`declaration`&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`})},"FunctionExpression:exit"(){s.pop()},"ThisExpression, Super"(){s.length>0&&(s[s.length-1]=!0)}};return n||(l.ArrowFunctionExpression=function(){s.push(!1)},l[`ArrowFunctionExpression:exit`]=function(t){!s.pop()&&t.parent.type===`VariableDeclarator`&&(a&&(o===void 0||t.parent.parent.parent.type!==`ExportNamedDeclaration`)&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}),t.parent.parent.parent.type===`ExportNamedDeclaration`&&o===`declaration`&&!(r&&t.parent.id.typeAnnotation)&&e.report({node:t.parent,messageId:`declaration`}))}),l}}})),X=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-argument-newline`,url:`https://eslint.style/rules/function-call-argument-newline`}}]},type:`layout`,docs:{description:`Enforce line breaks between arguments of a function call`,recommended:!1,url:`https://eslint.org/docs/latest/rules/function-call-argument-newline`},fixable:`whitespace`,schema:[{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={unexpected:{messageId:`unexpectedLineBreak`,check:(e,t)=>e.loc.end.line!==t.loc.start.line,createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],` `)},missing:{messageId:`missingLineBreak`,check:(e,t)=>e.loc.end.line===t.loc.start.line,createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],`
30
+ `)}};function r(n,r){for(let i=1;i<n.arguments.length;i++){let a=t.getLastToken(n.arguments[i-1]),o=t.getFirstToken(n.arguments[i]);if(r.check(a,o)){let i=t.getTokenBefore(o,{includeComments:!0}),a=i.type===`Line`;e.report({node:n,loc:{start:i.loc.end,end:o.loc.start},messageId:r.messageId,fix:a?null:r.createFix(o,i)})}}}function i(i){if(i.arguments.length<2)return;let a=e.options[0]||`always`;if(a===`never`)r(i,n.unexpected);else if(a===`always`)r(i,n.missing);else if(a===`consistent`){let e=t.getLastToken(i.arguments[0]),a=t.getFirstToken(i.arguments[1]);e.loc.end.line===a.loc.start.line?r(i,n.unexpected):r(i,n.missing)}}return{CallExpression:i,NewExpression:i}}}})),Ce=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-paren-newline`,url:`https://eslint.style/rules/function-paren-newline`}}]},type:`layout`,docs:{description:`Enforce consistent line breaks inside function parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/function-paren-newline`},fixable:`whitespace`,schema:[{oneOf:[{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=e.sourceCode,r=e.options[0]||`multiline`,i=r===`multiline`,a=r===`multiline-arguments`,o=r===`consistent`,s;s=typeof r==`object`?r.minItems:r===`always`?0:r===`never`?1/0:null;function c(e,t){return a&&e.length===1?t:i||a?e.some((t,n)=>n!==e.length-1&&t.loc.end.line!==e[n+1].loc.start.line):o?t:e.length>=s}function l(r,i){let a=r.leftParen,o=r.rightParen,s=t.getTokenAfter(a),l=t.getTokenBefore(o),u=!n.isTokenOnSameLine(a,s),d=!n.isTokenOnSameLine(l,o),f=c(i,u);u&&!f?e.report({node:a,messageId:`unexpectedAfter`,fix(e){return t.getText().slice(a.range[1],s.range[0]).trim()?null:e.removeRange([a.range[1],s.range[0]])}}):!u&&f&&e.report({node:a,messageId:`expectedAfter`,fix:e=>e.insertTextAfter(a,`
31
+ `)}),d&&!f?e.report({node:o,messageId:`unexpectedBefore`,fix(e){return t.getText().slice(l.range[1],o.range[0]).trim()?null:e.removeRange([l.range[1],o.range[0]])}}):!d&&f&&e.report({node:o,messageId:`expectedBefore`,fix:e=>e.insertTextBefore(o,`
32
+ `)})}function u(r,i){let a=r.leftParen,o=t.getTokenAfter(a),s=c(i,!n.isTokenOnSameLine(a,o));for(let t=0;t<=i.length-2;t++){let n=i[t],r=i[t+1];n.loc.end.line===r.loc.start.line&&s&&e.report({node:n,messageId:`expectedBetween`,fix:e=>e.insertTextBefore(r,`
33
+ `)})}}function d(e){switch(e.type){case`NewExpression`:if(!e.arguments.length&&!(n.isOpeningParenToken(t.getLastToken(e,{skip:1}))&&n.isClosingParenToken(t.getLastToken(e))&&e.callee.range[1]<e.range[1]))return null;case`CallExpression`:return{leftParen:t.getTokenAfter(e.callee,n.isOpeningParenToken),rightParen:t.getLastToken(e)};case`FunctionDeclaration`:case`FunctionExpression`:{let r=t.getFirstToken(e,n.isOpeningParenToken);return{leftParen:r,rightParen:e.params.length?t.getTokenAfter(e.params.at(-1),n.isClosingParenToken):t.getTokenAfter(r)}}case`ArrowFunctionExpression`:{let r=t.getFirstToken(e,{skip:e.async?1:0});return n.isOpeningParenToken(r)?{leftParen:r,rightParen:e.params.length?t.getTokenAfter(e.params.at(-1),n.isClosingParenToken):t.getTokenAfter(r)}:null}case`ImportExpression`:return{leftParen:t.getFirstToken(e,1),rightParen:t.getLastToken(e)};default:throw TypeError(`unexpected node with type ${e.type}`)}}return{[[`ArrowFunctionExpression`,`CallExpression`,`FunctionDeclaration`,`FunctionExpression`,`ImportExpression`,`NewExpression`]](e){let t=d(e),r;r=e.type===`ImportExpression`?[e.source]:n.isFunction(e)?e.params:e.arguments,t&&(l(t,r),a&&u(t,r))}}}}})),Z=n(((e,t)=>{let n={oneOf:[{enum:[`before`,`after`,`both`,`neither`]},{type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`}},additionalProperties:!1}]};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`generator-star-spacing`,url:`https://eslint.style/rules/generator-star-spacing`}}]},type:`layout`,docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:`https://eslint.org/docs/latest/rules/generator-star-spacing`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`before`,`after`,`both`,`neither`]},{type:`object`,properties:{before:{type:`boolean`},after:{type:`boolean`},named:n,anonymous:n,method:n},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?typeof e==`string`?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 a(e){return e.value===`*`&&e.type===`Punctuator`}function o(e){return i.getFirstToken(e.parent.method||e.parent.type===`MethodDefinition`?e.parent:e,a)}function s(e){return e[0].toUpperCase()+e.slice(1)}function c(t,n,i,a){if(!!(a.range[0]-i.range[1])!==r[t][n]){let o=i.value===`*`,c=r[t][n],l=o?i:a,u=`${c?`missing`:`unexpected`}${s(n)}`;e.report({node:l,messageId:u,fix(e){return c?o?e.insertTextAfter(l,` `):e.insertTextBefore(l,` `):e.removeRange([i.range[1],a.range[0]])}})}}function l(e){if(!e.generator)return;let t=o(e),n=i.getTokenBefore(t),r=i.getTokenAfter(t),a=`named`;e.parent.type===`MethodDefinition`||e.parent.type===`Property`&&e.parent.method?a=`method`:e.id||(a=`anonymous`),a===`method`&&t===i.getFirstToken(e.parent)||c(a,`before`,n,t),c(a,`after`,t,r)}return{FunctionDeclaration:l,FunctionExpression:l}}}})),we=n(((e,t)=>{let n=M(),r=/^(?:Arrow)?FunctionExpression$/u;function i(e){for(let t of e)if(t.reachable)return!0;return!1}t.exports={meta:{type:`problem`,defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:`https://eslint.org/docs/latest/rules/getter-return`},fixable:null,schema:[{type:`object`,properties:{allowImplicit:{type:`boolean`}},additionalProperties:!1}],messages:{expected:`Expected to return a value in {{name}}.`,expectedAlways:`Expected {{name}} to always return a value.`}},create(e){let[{allowImplicit:t}]=e.options,a=e.sourceCode,o={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function s(t){o.shouldCheck&&i(o.currentSegments)&&e.report({node:t,loc:n.getFunctionHeadLoc(t,a),messageId:o.hasReturn?`expectedAlways`:`expected`,data:{name:n.getFunctionNameWithKind(o.node)}})}function c(e){let t=e.parent;if(r.test(e.type)&&e.body.type===`BlockStatement`){if(t.kind===`get`)return!0;if(t.type===`Property`&&n.getStaticPropertyName(t)===`get`&&t.parent.type===`ObjectExpression`){if(t.parent.parent.type===`CallExpression`){let e=t.parent.parent.callee;if(n.isSpecificMemberAccess(e,`Object`,`defineProperty`)||n.isSpecificMemberAccess(e,`Reflect`,`defineProperty`))return!0}if(t.parent.parent.type===`Property`&&t.parent.parent.parent.type===`ObjectExpression`&&t.parent.parent.parent.parent.type===`CallExpression`){let e=t.parent.parent.parent.parent.callee;return n.isSpecificMemberAccess(e,`Object`,`defineProperties`)||n.isSpecificMemberAccess(e,`Object`,`create`)}}}return!1}return{onCodePathStart(e,t){o={upper:o,codePath:e,hasReturn:!1,shouldCheck:c(t),node:t,currentSegments:new Set}},onCodePathEnd(){o=o.upper},onUnreachableCodePathSegmentStart(e){o.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){o.currentSegments.delete(e)},onCodePathSegmentStart(e){o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},ReturnStatement(r){o.shouldCheck&&(o.hasReturn=!0,!t&&!r.argument&&e.report({node:r,messageId:`expected`,data:{name:n.getFunctionNameWithKind(o.node)}}))},"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}})),Te=n(((e,t)=>{let n=new Set([`AssignmentExpression`,`VariableDeclarator`,`MemberExpression`,`ExpressionStatement`,`CallExpression`,`ConditionalExpression`,`Program`,`VariableDeclaration`,`ChainExpression`]);function r(e,t){let n=e.references.filter(e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]);return n.length===1?n[0]:null}function i(e,t){let n=r(e,t);return n&&n.resolved&&n.resolved.defs.length>0}t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`global-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md`}}]},type:`suggestion`,docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:`https://eslint.org/docs/latest/rules/global-require`},schema:[],messages:{unexpected:`Unexpected require().`}},create(e){let t=e.sourceCode;return{CallExpression(r){let a=t.getScope(r);r.callee.name===`require`&&!i(a,r.callee)&&(t.getAncestors(r).every(e=>n.has(e.type))||e.report({node:r,messageId:`unexpected`}))}}}}})),Ee=n(((e,t)=>{let n=M();function r(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.type!==i.type||r.value!==i.value)return!1}return!0}function i(e,t){return typeof e==`string`&&typeof t==`string`?e===t:Array.isArray(e)&&Array.isArray(t)?r(e,t):!1}function a(e){return e.kind===`get`||e.kind===`set`}t.exports={meta:{type:`suggestion`,defaultOptions:[`anyOrder`,{enforceForTSTypes:!1}],docs:{description:`Require grouped accessor pairs in object literals and classes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/grouped-accessor-pairs`},schema:[{enum:[`anyOrder`,`getBeforeSet`,`setBeforeGet`]},{type:`object`,properties:{enforceForTSTypes:{type:`boolean`}},additionalProperties:!1}],messages:{notGrouped:`Accessor pair {{ formerName }} and {{ latterName }} should be grouped.`,invalidOrder:`Expected {{ latterName }} to be before {{ formerName }}.`}},create(e){let[t,{enforceForTSTypes:r}]=e.options,{sourceCode:o}=e;function s(t,r,i){e.report({node:i,messageId:t,loc:n.getFunctionHeadLoc(i.type===`TSMethodSignature`?i:i.value,o),data:{formerName:n.getFunctionNameWithKind(r.type===`TSMethodSignature`?r:r.value),latterName:n.getFunctionNameWithKind(i.type===`TSMethodSignature`?i:i.value)}})}function c(e,r){let c=[],l=!1;for(let t=0;t<e.length;t++){let s=e[t];if(r(s)&&a(s)){let e=n.getStaticPropertyName(s),t=e===null?o.getTokens(s.key):e;for(let e=0;e<c.length;e++){let n=c[e];if(i(n.key,t)){n.getters.push(...s.kind===`get`?[s]:[]),n.setters.push(...s.kind===`set`?[s]:[]),l=!0;break}}l||c.push({key:t,getters:s.kind===`get`?[s]:[],setters:s.kind===`set`?[s]:[]}),l=!1}}for(let{getters:n,setters:r}of c)if(n.length===1&&r.length===1){let[i]=n,[a]=r,o=e.indexOf(i),c=e.indexOf(a),l=o<c?i:a,u=o<c?a:i;Math.abs(o-c)>1?s(`notGrouped`,l,u):(t===`getBeforeSet`&&o>c||t===`setBeforeGet`&&o<c)&&s(`invalidOrder`,l,u)}}return{ObjectExpression(e){c(e.properties,e=>e.type===`Property`)},ClassBody(e){c(e.body,e=>e.type===`MethodDefinition`&&!e.static),c(e.body,e=>e.type===`MethodDefinition`&&e.static)},"TSTypeLiteral, TSInterfaceBody"(e){r&&c(e.type===`TSTypeLiteral`?e.members:e.body,e=>e.type===`TSMethodSignature`)}}}}})),De=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:`https://eslint.org/docs/latest/rules/guard-for-in`},schema:[],messages:{wrap:`The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.`}},create(e){return{ForInStatement(t){let n=t.body;if(n.type!==`EmptyStatement`&&n.type!==`IfStatement`&&!(n.type===`BlockStatement`&&n.body.length===0)&&!(n.type===`BlockStatement`&&n.body.length===1&&n.body[0].type===`IfStatement`)){if(n.type===`BlockStatement`&&n.body.length>=1&&n.body[0].type===`IfStatement`){let e=n.body[0];if(e.consequent.type===`ContinueStatement`||e.consequent.type===`BlockStatement`&&e.consequent.body.length===1&&e.consequent.body[0].type===`ContinueStatement`)return}e.report({node:t,messageId:`wrap`})}}}}}})),Q=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`handle-callback-err`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md`}}]},type:`suggestion`,docs:{description:`Require error handling in callbacks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/handle-callback-err`},schema:[{type:`string`}],messages:{expected:`Expected error to be handled.`}},create(e){let t=e.options[0]||`err`,n=e.sourceCode;function r(e){return e[0]===`^`}function i(e){return r(t)?new RegExp(t,`u`).test(e):e===t}function a(e){return e.variables.filter(e=>e.defs[0]&&e.defs[0].type===`Parameter`)}function o(t){let r=a(n.getScope(t))[0];r&&i(r.name)&&r.references.length===0&&e.report({node:t,messageId:`expected`})}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o}}}})),Oe=n(((e,t)=>{function n(e){let t=e.parent;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`RestElement`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`AssignmentPattern`&&t.left===e}function r(e){let t=e.parent;return t.type===`ImportSpecifier`&&t.imported!==t.local&&t.imported===e||t.type===`ExportSpecifier`&&t.parent.source&&t.local!==t.exported&&t.local===e}function i(e){let t=e.parent;return!t.computed&&t.type===`Property`&&t.parent.type===`ObjectPattern`&&t.value!==e&&t.key===e}function a(e){let t=e.parent;return t.type===`Property`&&t.parent.type===`ObjectExpression`&&t.shorthand}t.exports={meta:{deprecated:{message:`The rule was renamed.`,url:`https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist`,deprecatedSince:`7.5.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`id-denylist`,url:`https://eslint.org/docs/rules/id-denylist`}}]},type:`suggestion`,docs:{description:`Disallow specified identifiers`,recommended:!1,url:`https://eslint.org/docs/latest/rules/id-blacklist`},schema:{type:`array`,items:{type:`string`},uniqueItems:!0},messages:{restricted:`Identifier '{{name}}' is restricted.`}},create(e){let t=new Set(e.options),o=new Set,s=e.sourceCode,c;function l(e){return t.has(e)}function u(e){let t=c.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function d(e){let t=e.parent;return t.type===`MemberExpression`&&t.property===e&&!t.computed?n(t):t.type!==`CallExpression`&&t.type!==`NewExpression`&&!r(e)&&!i(e)&&!(u(e)&&!a(e))}function f(t){o.has(t.range.toString())||(e.report({node:t,messageId:`restricted`,data:{name:t.name}}),o.add(t.range.toString()))}return{Program(e){c=s.getScope(e)},Identifier(e){l(e.name)&&d(e)&&f(e)}}}}})),ke=n(((e,t)=>{let n=M();function r(e){let t=e.parent;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`RestElement`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`AssignmentPattern`&&t.left===e}function i(e){let t=e.parent;return t.type===`ImportSpecifier`&&t.imported!==t.local&&t.imported===e||t.type===`ExportSpecifier`&&t.parent.source&&t.local!==t.exported&&t.local===e}function a(e){let t=e.parent;return!t.computed&&t.type===`Property`&&t.parent.type===`ObjectPattern`&&t.key===e}t.exports={meta:{type:`suggestion`,defaultOptions:[],docs:{description:`Disallow specified identifiers`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-denylist`},schema:{type:`array`,items:{type:`string`},uniqueItems:!0},messages:{restricted:`Identifier '{{name}}' is restricted.`,restrictedPrivate:`Identifier '#{{name}}' is restricted.`}},create(e){let t=new Set(e.options),o=new Set,s=e.sourceCode,c;function l(e){return t.has(e)}function u(e){let t=c.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function d(e){if(n.isImportAttributeKey(e))return!1;let t=e.parent;return t.type===`MemberExpression`&&t.property===e&&!t.computed?r(t):t.type!==`CallExpression`&&t.type!==`NewExpression`&&!i(e)&&!a(e)&&!u(e)}function f(t){if(!o.has(t.range.toString())){let n=t.type===`PrivateIdentifier`;e.report({node:t,messageId:n?`restrictedPrivate`:`restricted`,data:{name:t.name}}),o.add(t.range.toString())}}return{Program(e){c=s.getScope(e)},[[`Identifier`,`PrivateIdentifier`]](e){l(e.name)&&d(e)&&f(e)}}}}})),Ae=n(((e,t)=>{let{getGraphemeCount:n}=ae(),{getModuleExportName:r,isImportAttributeKey:i}=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:`always`}],docs:{description:`Enforce minimum and maximum identifier lengths`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-length`},schema:[{type:`object`,properties:{min:{type:`integer`},max:{type:`integer`},exceptions:{type:`array`,uniqueItems:!0,items:{type:`string`}},exceptionPatterns:{type:`array`,uniqueItems:!0,items:{type:`string`}},properties:{enum:[`always`,`never`]}},additionalProperties:!1}],messages:{tooShort:`Identifier name '{{name}}' is too short (< {{min}}).`,tooShortPrivate:`Identifier name '#{{name}}' is too short (< {{min}}).`,tooLong:`Identifier name '{{name}}' is too long (> {{max}}).`,tooLongPrivate:`Identifier name #'{{name}}' is too long (> {{max}}).`}},create(e){let[t]=e.options,{max:a=1/0,min:o}=t,s=t.properties!==`never`,c=new Set(t.exceptions),l=t.exceptionPatterns.map(e=>new RegExp(e,`u`)),u=new Set;function d(e){return l.some(t=>t.test(e))}let f={MemberExpression:s&&function(e){return!e.computed&&(e.parent.left===e&&e.parent.type===`AssignmentExpression`||e.parent.type===`Property`&&e.parent.value===e&&e.parent.parent.type===`ObjectPattern`&&e.parent.parent.parent.left===e.parent.parent)},AssignmentPattern(e,t){return e.left===t},VariableDeclarator(e,t){return e.id===t},Property(e,t){if(e.parent.type===`ObjectPattern`){let n=e.value.name===e.key.name;return!n&&e.value===t||n&&e.key===t&&s}return s&&!i(t)&&!e.computed&&e.key.name===t.name},ImportSpecifier(e,t){return e.local===t&&r(e.imported)!==r(e.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[[`Identifier`,`PrivateIdentifier`]](t){let r=t.name,i=t.parent,s=n(r),l=s<o;if(!(l||s>a)||c.has(r)||d(r))return;let p=f[i.type];if(p&&!u.has(t.range.toString())&&(p===!0||p(i,t))){u.add(t.range.toString());let n=l?`tooShort`:`tooLong`;t.type===`PrivateIdentifier`&&(n+=`Private`),e.report({node:t,messageId:n,data:{name:r,min:o,max:a}})}}}}}})),je=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[`^.+$`,{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:`Require identifiers to match a specified regular expression`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/id-match`},schema:[{type:`string`},{type:`object`,properties:{properties:{type:`boolean`},classFields:{type:`boolean`},onlyDeclarations:{type:`boolean`},ignoreDestructuring:{type:`boolean`}},additionalProperties:!1}],messages:{notMatch:`Identifier '{{name}}' does not match the pattern '{{pattern}}'.`,notMatchPrivate:`Identifier '#{{name}}' does not match the pattern '{{pattern}}'.`}},create(e){let[t,{classFields:r,ignoreDestructuring:i,onlyDeclarations:a,properties:o}]=e.options,s=new RegExp(t,`u`),c=e.sourceCode,l,u=new Set,d=new Set([`CallExpression`,`NewExpression`]),f=new Set([`FunctionDeclaration`,`VariableDeclarator`]),p=new Set([`ImportSpecifier`,`ImportNamespaceSpecifier`,`ImportDefaultSpecifier`]);function m(e){let t=l.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function h(e){return!s.test(e)}function g(e){let{parent:t}=e;for(;t;){if(t.type===`ObjectPattern`)return!0;t=t.parent}return!1}function _(e,t){return(!a||f.has(e.type))&&!d.has(e.type)&&h(t)}function v(n){if(!u.has(n.range.toString())){let r=n.type===`PrivateIdentifier`?`notMatchPrivate`:`notMatch`;e.report({node:n,messageId:r,data:{name:n.name,pattern:t}}),u.add(n.range.toString())}}return{Program(e){l=c.getScope(e)},Identifier(e){let t=e.name,a=e.parent,s=a.type===`MemberExpression`?a.parent:a;if(!(m(e)||n.isImportAttributeKey(e)))if(a.type===`MemberExpression`){if(!o)return;a.object.type===`Identifier`&&a.object.name===t||s.type===`AssignmentExpression`&&s.left.type===`MemberExpression`&&s.left.property.name===e.name?h(t)&&v(e):s.type===`AssignmentExpression`&&s.right.type!==`MemberExpression`&&h(t)&&v(e)}else if(a.type===`Property`&&a.parent.type===`ObjectExpression`&&a.key===e&&!a.computed)o&&h(t)&&v(e);else if(a.type===`Property`||a.type===`AssignmentPattern`){if(a.parent&&a.parent.type===`ObjectPattern`){!i&&a.shorthand&&a.value.left&&h(t)&&v(e);let n=a.key.name===a.value.name;if(!n&&a.key===e)return;a.value.name&&h(t)&&!(n&&i)&&v(e)}if(!o&&!a.computed||i&&g(e))return;a.right!==e&&_(s,t)&&v(e)}else p.has(a.type)?a.local&&a.local.name===e.name&&h(t)&&v(e):a.type===`PropertyDefinition`?r&&h(t)&&v(e):_(s,t)&&v(e)},PrivateIdentifier(e){e.parent.type===`PropertyDefinition`&&!r||h(e.name)&&v(e)}}}}})),Me=n(((e,t)=>{let{isCommentToken:n,isNotOpeningParenToken:r}=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`implicit-arrow-linebreak`,url:`https://eslint.style/rules/implicit-arrow-linebreak`}}]},type:`layout`,docs:{description:`Enforce the location of arrow function bodies`,recommended:!1,url:`https://eslint.org/docs/latest/rules/implicit-arrow-linebreak`},fixable:`whitespace`,schema:[{enum:[`beside`,`below`]}],messages:{expected:`Expected a linebreak before this expression.`,unexpected:`Expected no linebreak before this expression.`}},create(e){let t=e.sourceCode,i=e.options[0]||`beside`;function a(a){if(a.body.type===`BlockStatement`)return;let o=t.getTokenBefore(a.body,r),s=t.getTokenAfter(o);o.loc.end.line===s.loc.start.line&&i===`below`?e.report({node:s,messageId:`expected`,fix:e=>e.insertTextBefore(s,`
34
+ `)}):o.loc.end.line!==s.loc.start.line&&i===`beside`&&e.report({node:s,messageId:`unexpected`,fix(e){return t.getFirstTokenBetween(o,s,{includeComments:!0,filter:n})?null:e.replaceTextRange([o.range[1],s.range[0]],` `)}})}return{ArrowFunctionExpression:e=>a(e)}}}})),Ne=n(((e,t)=>{let n=M(),r=new Set(`AssignmentExpression.AssignmentPattern.ArrayExpression.ArrayPattern.ArrowFunctionExpression.AwaitExpression.BlockStatement.BinaryExpression.BreakStatement.CallExpression.CatchClause.ChainExpression.ClassBody.ClassDeclaration.ClassExpression.ConditionalExpression.ContinueStatement.DoWhileStatement.DebuggerStatement.EmptyStatement.ExperimentalRestProperty.ExperimentalSpreadProperty.ExpressionStatement.ForStatement.ForInStatement.ForOfStatement.FunctionDeclaration.FunctionExpression.Identifier.IfStatement.Literal.LabeledStatement.LogicalExpression.MemberExpression.MetaProperty.MethodDefinition.NewExpression.ObjectExpression.ObjectPattern.PrivateIdentifier.Program.Property.PropertyDefinition.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`.split(`.`));var i=class{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)}},a=class{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])}},o=class{constructor(e,t,n,r){this._tokenInfo=e,this._indentSize=t,this._indentType=n,this._indexMap=new i(r),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._indexMap.findLastNotAfter(e.range[0])}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,n){return this.setDesiredOffsets(e.range,t,n)}setDesiredOffsets(e,t,n,r){let i={offset:n,from:t,force:r},a=this._indexMap.findLastNotAfter(e[1]),o=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],s=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],s),this._indexMap.insert(t.range[1],i)),this._indexMap.insert(e[1],a)}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);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(t))+this._indentType.repeat(t.loc.start.column-this._tokenInfo.getFirstTokenOfLine(t).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?0:t.offset*this._indentSize;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}};let s={oneOf:[{type:`integer`,minimum:0},{enum:[`first`,`off`]}]};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`indent`,url:`https://eslint.style/rules/indent`}}]},type:`layout`,docs:{description:`Enforce consistent indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/indent`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`tab`]},{type:`integer`,minimum:0}]},{type:`object`,properties:{SwitchCase:{type:`integer`,minimum:0,default:0},VariableDeclarator:{oneOf:[s,{type:`object`,properties:{var:s,let:s,const:s},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:`integer`,minimum:0},{enum:[`off`]}]},MemberExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`off`]}]},FunctionDeclaration:{type:`object`,properties:{parameters:s,body:{type:`integer`,minimum:0}},additionalProperties:!1},FunctionExpression:{type:`object`,properties:{parameters:s,body:{type:`integer`,minimum:0}},additionalProperties:!1},StaticBlock:{type:`object`,properties:{body:{type:`integer`,minimum:0}},additionalProperties:!1},CallExpression:{type:`object`,properties:{arguments:s},additionalProperties:!1},ArrayExpression:s,ObjectExpression:s,ImportDeclaration:s,flatTernaryExpressions:{type:`boolean`,default:!1},offsetTernaryExpressions:{type:`boolean`,default:!1},ignoredNodes:{type:`array`,items:{type:`string`,not:{pattern:`:exit$`}}},ignoreComments:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{wrongIndentation:`Expected indentation of {{expected}} but found {{actual}}.`}},create(e){let t=`space`,i=4,s={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};e.options.length&&(e.options[0]===`tab`?(i=1,t=`tab`):(i=e.options[0],t=`space`),e.options[1]&&(Object.assign(s,e.options[1]),(typeof s.VariableDeclarator==`number`||s.VariableDeclarator===`first`)&&(s.VariableDeclarator={var:s.VariableDeclarator,let:s.VariableDeclarator,const:s.VariableDeclarator})));let c=e.sourceCode,l=new a(c),u=new o(l,i,t===`space`?` `:` `,c.text.length),d=new WeakSet;function f(e,n,r){let i=`${e} ${t}${e===1?``:`s`}`,a=`space${n===1?``:`s`}`,o=`tab${r===1?``:`s`}`,s;return s=n>0?t===`space`?n:`${n} ${a}`:r>0?t===`tab`?r:`${r} ${o}`:`0`,{expected:i,actual:s}}function p(t,n){let r=Array.from(l.getTokenIndent(t)),i=r.filter(e=>e===` `).length,a=r.filter(e=>e===` `).length;e.report({node:t,messageId:`wrongIndentation`,data:f(n.length,i,a),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]],i=n;return e.replaceTextRange(r,i)}})}function m(e,t){let n=l.getTokenIndent(e);return n===t||n.includes(` `)&&n.includes(` `)}function h(e){if(!e.parent||e.parent.type!==`CallExpression`||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;t.type===`UnaryExpression`&&[`!`,`~`,`+`,`-`].includes(t.operator)||t.type===`AssignmentExpression`||t.type===`LogicalExpression`||t.type===`SequenceExpression`||t.type===`VariableDeclarator`;)t=t.parent;return(t.type===`ExpressionStatement`||t.type===`VariableDeclaration`)&&t.parent.type===`Program`}function g(e){let t=e.match(/\s*$/u)[0].match(n.createGlobalLinebreakMatcher());return t===null?0:t.length}function _(e,t,r,i){function a(e){let r=c.getTokenBefore(e);for(;n.isOpeningParenToken(r)&&r!==t;)r=c.getTokenBefore(r);return c.getTokenAfter(r)}u.setDesiredOffsets([t.range[1],r.range[0]],t,typeof i==`number`?i:1),u.setDesiredOffset(r,t,0),!(i===`first`&&e.length&&!e[0])&&e.forEach((n,r)=>{if(n&&(i===`off`&&u.ignoreToken(a(n)),r!==0))if(i===`first`&&l.isFirstTokenOfLine(a(n)))u.matchOffsetOf(a(e[0]),a(n));else{let i=e[r-1],o=i&&a(i),s=i&&c.getLastToken(i);i&&s.loc.end.line-g(s.value)>t.loc.end.line&&u.setDesiredOffsets([i.range[1],n.range[1]],o,0)}})}function v(e){if(e.type!==`BlockStatement`){let t=c.getTokenBefore(e,n.isNotOpeningParenToken),r=c.getFirstToken(e),i=c.getLastToken(e);for(;n.isOpeningParenToken(c.getTokenBefore(r))&&n.isClosingParenToken(c.getTokenAfter(i));)r=c.getTokenBefore(r),i=c.getTokenAfter(i);u.setDesiredOffsets([r.range[0],i.range[1]],t,1)}}function y(e){let t;t=e.arguments.length?c.getFirstTokenBetween(e.callee,e.arguments[0],n.isOpeningParenToken):c.getLastToken(e,1);let r=c.getLastToken(e);if(d.add(t),d.add(r),e.optional){let r=c.getTokenAfter(e.callee,n.isQuestionDotToken),i=c.getTokensBetween(e.callee,r,{filter:n.isClosingParenToken}).length,a=i?c.getTokenBefore(e.callee,{skip:i-1}):c.getFirstToken(e.callee),o=c.getTokenBefore(r),s=o.loc.end.line===t.loc.start.line?o:a;u.setDesiredOffset(r,s,1)}let i=e.callee.type===`TaggedTemplateExpression`?c.getFirstToken(e.callee.quasi):t,a=c.getTokenBefore(i);u.setDesiredOffset(t,a,0),_(e.arguments,t,r,s.CallExpression.arguments)}function b(e){let t=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];n.isOpeningParenToken(a)?t.push(a):n.isClosingParenToken(a)&&r.push({left:t.pop(),right:a})}for(let e=r.length-1;e>=0;e--){let t=r[e].left,n=r[e].right;if(!d.has(t)&&!d.has(n)){let e=new Set(c.getTokensBetween(t,n));e.forEach(n=>{e.has(u.getFirstDependency(n))||u.setDesiredOffset(n,t,1)})}u.setDesiredOffset(n,t,0)}}function x(e){let t=new Set(c.getTokens(e,{includeComments:!0}));t.forEach(e=>{if(!t.has(u.getFirstDependency(e))){let t=l.getFirstTokenOfLine(e);e===t?u.ignoreToken(e):u.setDesiredOffset(e,t,0)}})}function S(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||n.loc.start.line===e.loc.start.line}function C(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(!l.firstTokensByLineNumber.has(e))return!0;return!1}let w=new Set,T={"ArrayExpression, ArrayPattern"(e){let t=c.getFirstToken(e),r=c.getTokenAfter([...e.elements].reverse().find(e=>e)||t,n.isClosingBracketToken);_(e.elements,t,r,s.ArrayExpression)},"ObjectExpression, ObjectPattern"(e){let t=c.getFirstToken(e),r=c.getTokenAfter(e.properties.length?e.properties.at(-1):t,n.isClosingBraceToken);_(e.properties,t,r,s.ObjectExpression)},ArrowFunctionExpression(e){let t=c.getFirstToken(e,{skip:e.async?1:0});if(n.isOpeningParenToken(t)){let r=t,i=c.getTokenBefore(e.body,n.isClosingParenToken);d.add(r),d.add(i),_(e.params,r,i,s.FunctionExpression.parameters)}v(e.body)},AssignmentExpression(e){let t=c.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator);u.setDesiredOffsets([t.range[0],e.range[1]],c.getLastToken(e.left),1),u.ignoreToken(t),u.ignoreToken(c.getTokenAfter(t))},"BinaryExpression, LogicalExpression"(e){let t=c.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator),n=c.getTokenAfter(t);u.ignoreToken(t),u.ignoreToken(n),u.setDesiredOffset(n,t,0)},"BlockStatement, ClassBody"(e){let t;t=e.parent&&h(e.parent)?s.outerIIFEBody:e.parent&&(e.parent.type===`FunctionExpression`||e.parent.type===`ArrowFunctionExpression`)?s.FunctionExpression.body:e.parent&&e.parent.type===`FunctionDeclaration`?s.FunctionDeclaration.body:1,n.STATEMENT_LIST_PARENTS.has(e.parent.type)||u.setDesiredOffset(c.getFirstToken(e),c.getFirstToken(e.parent),0),_(e.body,c.getFirstToken(e),c.getLastToken(e),t)},CallExpression:y,"ClassDeclaration[superClass], ClassExpression[superClass]"(e){let t=c.getFirstToken(e),r=c.getTokenBefore(e.superClass,n.isNotOpeningParenToken);u.setDesiredOffsets([r.range[0],e.body.range[0]],t,1)},ConditionalExpression(e){let t=c.getFirstToken(e);if(!s.flatTernaryExpressions||!n.isTokenOnSameLine(e.test,e.consequent)||S(t,e)){let n=c.getFirstTokenBetween(e.test,e.consequent,e=>e.type===`Punctuator`&&e.value===`?`),r=c.getFirstTokenBetween(e.consequent,e.alternate,e=>e.type===`Punctuator`&&e.value===`:`),i=c.getTokenAfter(n),a=c.getTokenBefore(r),o=c.getTokenAfter(r);u.setDesiredOffset(n,t,1),u.setDesiredOffset(r,t,1),u.setDesiredOffset(i,t,i.type===`Punctuator`&&s.offsetTernaryExpressions?2:1),a.loc.end.line===o.loc.start.line?u.setDesiredOffset(o,i,0):u.setDesiredOffset(o,t,o.type===`Punctuator`&&s.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":e=>v(e.body),ExportNamedDeclaration(e){if(e.declaration===null){let t=c.getLastToken(e,n.isClosingBraceToken);_(e.specifiers,c.getFirstToken(e,{skip:1}),t,1),e.source&&u.setDesiredOffsets([t.range[1],e.range[1]],c.getFirstToken(e),1)}},ForStatement(e){let t=c.getFirstToken(e,1);e.init&&u.setDesiredOffsets(e.init.range,t,1),e.test&&u.setDesiredOffsets(e.test.range,t,1),e.update&&u.setDesiredOffsets(e.update.range,t,1),v(e.body)},"FunctionDeclaration, FunctionExpression"(e){let t=c.getTokenBefore(e.body),n=c.getTokenBefore(e.params.length?e.params[0]:t);d.add(n),d.add(t),_(e.params,n,t,s[e.type].parameters)},IfStatement(e){v(e.consequent),e.alternate&&v(e.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(e){let t;e.type===`IfStatement`?(t=[e.consequent],e.alternate&&t.push(e.alternate)):t=[e.body];for(let r of t){let t=c.getLastToken(r);if(n.isSemicolonToken(t)){let r=c.getTokenBefore(t),i=c.getTokenAfter(t);!n.isTokenOnSameLine(r,t)&&i&&n.isTokenOnSameLine(t,i)&&u.setDesiredOffset(t,c.getFirstToken(e),0)}}},ImportDeclaration(e){if(e.specifiers.some(e=>e.type===`ImportSpecifier`)){let t=c.getFirstToken(e,n.isOpeningBraceToken),r=c.getLastToken(e,n.isClosingBraceToken);_(e.specifiers.filter(e=>e.type===`ImportSpecifier`),t,r,s.ImportDeclaration)}let t=c.getLastToken(e,e=>e.type===`Identifier`&&e.value===`from`),r=c.getLastToken(e,e=>e.type===`String`),i=c.getLastToken(e,e=>e.type===`Punctuator`&&e.value===`;`);if(t){let n=i&&i.range[1]===r.range[1]?e.range[1]:r.range[1];u.setDesiredOffsets([t.range[0],n],c.getFirstToken(e),1)}},ImportExpression(e){let t=c.getFirstToken(e,1),n=c.getLastToken(e);d.add(t),d.add(n),u.setDesiredOffset(t,c.getTokenBefore(t),0),_([e.source],t,n,s.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(e){let t=e.type===`MetaProperty`?e.meta:e.object,r=c.getFirstTokenBetween(t,e.property,n.isNotClosingParenToken),i=c.getTokenAfter(r),a=c.getTokensBetween(t,e.property,{filter:n.isClosingParenToken}).length,o=a?c.getTokenBefore(t,{skip:a-1}):c.getFirstToken(t),l=c.getTokenBefore(r),d=e.computed?r:i;e.computed&&(u.setDesiredOffset(c.getLastToken(e),r,0),u.setDesiredOffsets(e.property.range,r,1));let f=l.loc.end.line===d.loc.start.line?l:o;typeof s.MemberExpression==`number`?(u.setDesiredOffset(r,f,s.MemberExpression),u.setDesiredOffset(i,e.computed?r:f,s.MemberExpression)):(u.ignoreToken(r),u.ignoreToken(i),u.setDesiredOffset(r,f,0),u.setDesiredOffset(i,r,0))},NewExpression(e){(e.arguments.length>0||n.isClosingParenToken(c.getLastToken(e))&&n.isOpeningParenToken(c.getLastToken(e,1)))&&y(e)},Property(e){if(!e.shorthand&&!e.method&&e.kind===`init`){let t=c.getFirstTokenBetween(e.key,e.value,n.isColonToken);u.ignoreToken(c.getTokenAfter(t))}},PropertyDefinition(e){let t=c.getFirstToken(e),r=c.getLastToken(e),i;if(e.computed){let r=c.getTokenBefore(e.key,n.isOpeningBracketToken),a=i=c.getTokenAfter(e.key,n.isClosingBracketToken),o=[r.range[1],a.range[0]];r!==t&&u.setDesiredOffset(r,t,0),u.setDesiredOffsets(o,r,1),u.setDesiredOffset(a,r,0)}else{let n=i=c.getFirstToken(e.key);n!==t&&u.setDesiredOffset(n,t,1)}if(e.value){let t=c.getTokenBefore(e.value,n.isEqToken),a=c.getTokenAfter(t);u.setDesiredOffset(t,i,1),u.setDesiredOffset(a,t,1),n.isSemicolonToken(r)&&u.setDesiredOffset(r,t,1)}else n.isSemicolonToken(r)&&u.setDesiredOffset(r,i,1)},StaticBlock(e){let t=c.getFirstToken(e,{skip:1}),n=c.getLastToken(e);_(e.body,t,n,s.StaticBlock.body)},SwitchStatement(e){let t=c.getTokenAfter(e.discriminant,n.isOpeningBraceToken),r=c.getLastToken(e);u.setDesiredOffsets([t.range[1],r.range[0]],t,s.SwitchCase),e.cases.length&&c.getTokensBetween(e.cases.at(-1),r,{includeComments:!0,filter:n.isCommentToken}).forEach(e=>u.ignoreToken(e))},SwitchCase(e){if(!(e.consequent.length===1&&e.consequent[0].type===`BlockStatement`)){let t=c.getFirstToken(e),n=c.getTokenAfter(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach((t,n)=>{let r=e.quasis[n],i=e.quasis[n+1],a=r.loc.start.line===r.loc.end.line?c.getFirstToken(r):null;u.setDesiredOffsets([r.range[1],i.range[0]],a,1),u.setDesiredOffset(c.getFirstToken(i),a,0)})},VariableDeclaration(e){let t=Object.hasOwn(s.VariableDeclarator,e.kind)?s.VariableDeclarator[e.kind]:1,r=c.getFirstToken(e),i=c.getLastToken(e);if(s.VariableDeclarator[e.kind]===`first`){if(e.declarations.length>1){_(e.declarations,r,i,`first`);return}t=1}e.declarations.at(-1).loc.start.line>e.loc.start.line?u.setDesiredOffsets(e.range,r,t,!0):u.setDesiredOffsets(e.range,r,t),n.isSemicolonToken(i)&&u.ignoreToken(i)},VariableDeclarator(e){if(e.init){let t=c.getTokenBefore(e.init,n.isNotOpeningParenToken),r=c.getTokenAfter(t);u.ignoreToken(t),u.ignoreToken(r),u.setDesiredOffsets([r.range[0],e.range[1]],t,1),u.setDesiredOffset(t,c.getLastToken(e.id),0)}},"JSXAttribute[value]"(e){let t=c.getFirstTokenBetween(e.name,e.value,e=>e.type===`Punctuator`&&e.value===`=`);u.setDesiredOffsets([t.range[0],e.value.range[1]],c.getFirstToken(e.name),1)},JSXElement(e){e.closingElement&&_(e.children,c.getFirstToken(e.openingElement),c.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){let t=c.getFirstToken(e),n;e.selfClosing?(n=c.getLastToken(e,{skip:1}),u.setDesiredOffset(c.getLastToken(e),n,0)):n=c.getLastToken(e),u.setDesiredOffsets(e.name.range,c.getFirstToken(e)),_(e.attributes,t,n,1)},JSXClosingElement(e){let t=c.getFirstToken(e);u.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){let t=c.getFirstToken(e.openingFragment),n=c.getFirstToken(e.closingFragment);_(e.children,t,n,1)},JSXOpeningFragment(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets(e.range,t,1),u.matchOffsetOf(t,n)},JSXClosingFragment(e){let t=c.getFirstToken(e),r=c.getLastToken(e,{skip:1}),i=c.getLastToken(e),a=n.isTokenOnSameLine(r,i)?r:i;u.setDesiredOffsets(e.range,t,1),u.matchOffsetOf(t,a)},JSXExpressionContainer(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXSpreadAttribute(e){let t=c.getFirstToken(e),n=c.getLastToken(e);u.setDesiredOffsets([t.range[1],n.range[0]],t,1)},"*"(e){let t=c.getFirstToken(e);t&&!w.has(t)&&u.setDesiredOffsets(e.range,t,0)}},E=[],D={};for(let[e,t]of Object.entries(T))D[e]=e=>E.push({listener:t,node:e});let O=new Set;function k(e){O.add(e),w.add(c.getFirstToken(e))}let A=s.ignoredNodes.reduce((e,t)=>Object.assign(e,{[t]:k}),{});return Object.assign(D,A,{"*:exit"(e){r.has(e.type)||k(e)},"Program:exit"(){s.ignoreComments&&c.getAllComments().forEach(e=>u.ignoreToken(e));for(let e=0;e<E.length;e++){let t=E[e];O.has(t.node)||t.listener(t.node)}O.forEach(x),b(c.ast.tokens);let e=new WeakMap;for(let t=0;t<c.ast.comments.length;t++){let n=c.ast.comments[t],r=c.getTokenBefore(n,{includeComments:!0}),i=e.has(r)?e.get(r):r;e.set(n,i)}for(let t=1;t<c.lines.length+1;t++){if(!l.firstTokensByLineNumber.has(t))continue;let r=l.firstTokensByLineNumber.get(t);if(r.loc.start.line===t){if(n.isCommentToken(r)){let t=e.get(r),i=t?c.getTokenAfter(t):c.ast.tokens[0],a=t&&!C(t,r),o=i&&!C(r,i);if(i&&n.isSemicolonToken(i)&&!n.isTokenOnSameLine(r,i)&&u.setDesiredOffset(r,i,0),a&&m(r,u.getDesiredIndent(t))||o&&m(r,u.getDesiredIndent(i)))continue}m(r,u.getDesiredIndent(r))||p(r,u.getDesiredIndent(r))}}}})}}})),Pe=n(((e,t)=>{let n=M();t.exports={meta:{type:`layout`,docs:{description:`Enforce consistent indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/indent-legacy`},deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`indent`,url:`https://eslint.style/rules/indent`}}]},fixable:`whitespace`,schema:[{oneOf:[{enum:[`tab`]},{type:`integer`,minimum:0}]},{type:`object`,properties:{SwitchCase:{type:`integer`,minimum:0},VariableDeclarator:{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{var:{type:`integer`,minimum:0},let:{type:`integer`,minimum:0},const:{type:`integer`,minimum:0}}}]},outerIIFEBody:{type:`integer`,minimum:0},MemberExpression:{type:`integer`,minimum:0},FunctionDeclaration:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},body:{type:`integer`,minimum:0}}},FunctionExpression:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},body:{type:`integer`,minimum:0}}},CallExpression:{type:`object`,properties:{parameters:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]}}},ArrayExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]},ObjectExpression:{oneOf:[{type:`integer`,minimum:0},{enum:[`first`]}]}},additionalProperties:!1}],messages:{expected:`Expected indentation of {{expected}} but found {{actual}}.`}},create(e){let t=`space`,r=4,i={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},a=e.sourceCode;if(e.options.length&&(e.options[0]===`tab`?(r=1,t=`tab`):typeof e.options[0]==`number`&&(r=e.options[0],t=`space`),e.options[1])){let t=e.options[1];i.SwitchCase=t.SwitchCase||0;let n=t.VariableDeclarator;typeof n==`number`?i.VariableDeclarator={var:n,let:n,const:n}:typeof n==`object`&&Object.assign(i.VariableDeclarator,n),typeof t.outerIIFEBody==`number`&&(i.outerIIFEBody=t.outerIIFEBody),typeof t.MemberExpression==`number`&&(i.MemberExpression=t.MemberExpression),typeof t.FunctionDeclaration==`object`&&Object.assign(i.FunctionDeclaration,t.FunctionDeclaration),typeof t.FunctionExpression==`object`&&Object.assign(i.FunctionExpression,t.FunctionExpression),typeof t.CallExpression==`object`&&Object.assign(i.CallExpression,t.CallExpression),(typeof t.ArrayExpression==`number`||typeof t.ArrayExpression==`string`)&&(i.ArrayExpression=t.ArrayExpression),(typeof t.ObjectExpression==`number`||typeof t.ObjectExpression==`string`)&&(i.ObjectExpression=t.ObjectExpression)}let o={};function s(e,n,r){let i=`${e} ${t}${e===1?``:`s`}`,a=`space${n===1?``:`s`}`,o=`tab${r===1?``:`s`}`,s;return s=n>0&&r>0?`${n} ${a} and ${r} ${o}`:n>0?t===`space`?n:`${n} ${a}`:r>0?t===`tab`?r:`${r} ${o}`:`0`,{expected:i,actual:s}}function c(n,r,i,a,o,c){if(i&&a)return;let l=(t===`space`?` `:` `).repeat(r),u=c?[n.range[1]-n.loc.end.column,n.range[1]-n.loc.end.column+i+a]:[n.range[0]-n.loc.start.column,n.range[0]-n.loc.start.column+i+a];e.report({node:n,loc:o,messageId:`expected`,data:s(r,i,a),fix:e=>e.replaceTextRange(u,l)})}function l(e,n){let r=n?a.getLastToken(e):a.getFirstToken(e),i=a.getText(r,r.loc.start.column).split(``),o=i.slice(0,i.findIndex(e=>e!==` `&&e!==` `)),s=o.filter(e=>e===` `).length,c=o.filter(e=>e===` `).length;return{space:s,tab:c,goodChar:t===`space`?s:c,badChar:t===`space`?c:s}}function u(e,t){let n=t===!0?a.getLastToken(e,1):a.getTokenBefore(e);return(t===!0?e.loc.end.line:e.loc.start.line)!==(n?n.loc.end.line:-1)}function d(e,t){let n=l(e,!1);e.type!==`ArrayExpression`&&e.type!==`ObjectExpression`&&(n.goodChar!==t||n.badChar!==0)&&u(e)&&c(e,t,n.space,n.tab),e.type===`IfStatement`&&e.alternate&&(d(a.getTokenBefore(e.alternate),t),u(e.alternate)||d(e.alternate,t)),e.type===`TryStatement`&&e.handler&&d(a.getFirstToken(e.handler),t),e.type===`TryStatement`&&e.finalizer&&d(a.getTokenBefore(e.finalizer),t),e.type===`DoWhileStatement`&&d(a.getTokenAfter(e.body),t)}function f(e,t){e.forEach(e=>d(e,t))}function p(e,t){let n=a.getLastToken(e),r=l(n,!0);(r.goodChar!==t||r.badChar!==0)&&u(e,!0)&&c(e,t,r.space,r.tab,{line:n.loc.start.line,column:n.loc.start.column},!0)}function m(e,t){let r=a.getLastToken(e,n.isClosingParenToken);if(a.getText(r,r.loc.start.column).slice(0,-1).trim())return;let i=l(r,!0);i.goodChar!==t&&c(e,t,i.space,i.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}function h(e,t){let n=l(e,!1);(n.goodChar!==t||n.badChar!==0)&&u(e)&&c(e,t,n.space,n.tab,{line:e.loc.start.line,column:e.loc.start.column})}function g(e,t,n){let r=e.parent,i=new Set(n||[`Program`]);for(;r.type!==t&&!i.has(r.type)&&r.type!==`Program`;)r=r.parent;return r.type===t?r:null}function _(e){return g(e,`VariableDeclarator`)}function v(e,t){return t&&t.parent.loc.start.line===e.loc.start.line&&t.parent.declarations.length>1}function y(e){let t=e.parent;return t.arguments.length>=2&&t.arguments[1]===e?t.arguments[0].loc.end.line>t.arguments[0].loc.start.line:!1}function b(e){let t=e.parent,n=t.parent;if(t.type!==`CallExpression`||t.callee!==e)return!1;for(;n.type===`UnaryExpression`&&(n.operator===`!`||n.operator===`~`||n.operator===`+`||n.operator===`-`)||n.type===`AssignmentExpression`||n.type===`LogicalExpression`||n.type===`SequenceExpression`||n.type===`VariableDeclarator`;)n=n.parent;return(n.type===`ExpressionStatement`||n.type===`VariableDeclaration`)&&n.parent&&n.parent.type===`Program`}function x(e){let t=e.parent,n;if(n=t.parent&&(t.parent.type===`Property`||t.parent.type===`ArrayExpression`)?l(t,!1).goodChar:l(t).goodChar,t.parent.type===`CallExpression`){let r=t.parent;t.type!==`FunctionExpression`&&t.type!==`ArrowFunctionExpression`?r&&r.loc.start.line<e.loc.start.line&&(n=l(r).goodChar):y(t)&&r.callee.loc.start.line===r.callee.loc.end.line&&!u(t)&&(n=l(r).goodChar)}let a=r;i.outerIIFEBody!==null&&b(t)?a=i.outerIIFEBody*r:t.type===`FunctionExpression`?a=i.FunctionExpression.body*r:t.type===`FunctionDeclaration`&&(a=i.FunctionDeclaration.body*r),n+=a;let o=_(e);o&&v(e,o)&&(n+=r*i.VariableDeclarator[o.parent.kind]),e.body.length>0&&f(e.body,n),p(e,n-a)}function S(e){let t=a.getLastToken(e);return e.loc.start.line===t.loc.end.line}function C(e){if(S(e))return;let t=e.type===`ArrayExpression`?e.elements:e.properties;t=t.filter(e=>e!==null);let n,a,o=_(e);if(u(e)){let t=e.parent;if(n=l(t).goodChar,(!o||o.loc.start.line!==e.loc.start.line)&&(t.type!==`VariableDeclarator`||o===o.parent.declarations[0]))if(t.type===`VariableDeclarator`&&o.loc.start.line===t.loc.start.line)n+=r*i.VariableDeclarator[o.parent.kind];else if(t.type===`ObjectExpression`||t.type===`ArrayExpression`){let a=e.parent.type===`ObjectExpression`?e.parent.properties:e.parent.elements;a[0]&&a[0].loc.start.line===t.loc.start.line&&a[0].loc.end.line!==t.loc.start.line||(typeof i[t.type]==`number`?n+=i[t.type]*r:n=a[0].loc.start.column)}else t.type===`CallExpression`||t.type===`NewExpression`?typeof i.CallExpression.arguments==`number`?n+=i.CallExpression.arguments*r:i.CallExpression.arguments===`first`?t.arguments.includes(e)&&(n=t.arguments[0].loc.start.column):n+=r:(t.type===`LogicalExpression`||t.type===`ArrowFunctionExpression`)&&(n+=r);h(e,n)}else n=l(e).goodChar;a=i[e.type]===`first`?t.length?t[0].loc.start.column:0:n+r*i[e.type],v(e,o)&&(a+=r*i.VariableDeclarator[o.parent.kind]),f(t,a),!(t.length>0&&t.at(-1).loc.end.line===e.loc.end.line)&&p(e,n+(v(e,o)?i.VariableDeclarator[o.parent.kind]*r:0))}function w(e){return e.type===`BlockStatement`||e.type===`ClassBody`||e.body&&e.body.type===`BlockStatement`||e.consequent&&e.consequent.type===`BlockStatement`}function T(e){if(S(e))return;if(e.parent&&(e.parent.type===`FunctionExpression`||e.parent.type===`FunctionDeclaration`||e.parent.type===`ArrowFunctionExpression`)){x(e);return}let t,n;t=e.parent&&[`IfStatement`,`WhileStatement`,`ForStatement`,`ForInStatement`,`ForOfStatement`,`DoWhileStatement`,`ClassDeclaration`,`TryStatement`].includes(e.parent.type)&&w(e)?l(e.parent).goodChar:e.parent&&e.parent.type===`CatchClause`?l(e.parent.parent).goodChar:l(e).goodChar,n=e.type===`IfStatement`&&e.consequent.type!==`BlockStatement`?[e.consequent]:Array.isArray(e.body)?e.body:[e.body],n.length>0&&f(n,t+r),e.type===`BlockStatement`&&p(e,t)}function E(e){return e.declarations.reduce((t,n)=>{let r=t.at(-1);return(n.loc.start.line!==e.loc.start.line&&!r||r&&r.loc.start.line!==n.loc.start.line)&&t.push(n),t},[])}function D(e){let t=E(e),n=l(e).goodChar,o=t.at(-1),s=n+r*i.VariableDeclarator[e.kind];if(f(t,s),a.getLastToken(e).loc.end.line<=o.loc.end.line)return;let c=a.getTokenBefore(o);c.value===`,`?p(e,l(c).goodChar):p(e,s-r)}function O(e){e.body.type!==`BlockStatement`&&T(e)}function k(e,t){let n=e.type===`SwitchStatement`?e:e.parent,a=t===void 0?l(n).goodChar:t,s;return o[n.loc.start.line]?o[n.loc.start.line]:(s=n.cases.length>0&&i.SwitchCase===0?a:a+r*i.SwitchCase,o[n.loc.start.line]=s,s)}function A(e){let t=/^return\s*\(\s*\)/u,n=a.getText(e).replace(a.getText(e.argument),``);return t.test(n)}return{Program(e){e.body.length>0&&f(e.body,l(e).goodChar)},ClassBody:T,BlockStatement:T,WhileStatement:O,ForStatement:O,ForInStatement:O,ForOfStatement:O,DoWhileStatement:O,IfStatement(e){e.consequent.type!==`BlockStatement`&&e.consequent.loc.start.line>e.loc.start.line&&T(e)},VariableDeclaration(e){e.declarations.at(-1).loc.start.line>e.declarations[0].loc.start.line&&D(e)},ObjectExpression(e){C(e)},ArrayExpression(e){C(e)},MemberExpression(e){if(i.MemberExpression===void 0||S(e)||g(e,`VariableDeclarator`,[`FunctionExpression`,`ArrowFunctionExpression`])||g(e,`AssignmentExpression`,[`FunctionExpression`]))return;let t=l(e).goodChar+r*i.MemberExpression,n=[e.property],o=a.getTokenBefore(e.property);o.type===`Punctuator`&&o.value===`.`&&n.push(o),f(n,t)},SwitchStatement(e){let t=l(e).goodChar,n=k(e,t);f(e.cases,n),p(e,t)},SwitchCase(e){if(S(e))return;let t=k(e);f(e.consequent,t+r)},FunctionDeclaration(e){S(e)||(i.FunctionDeclaration.parameters===`first`&&e.params.length?f(e.params.slice(1),e.params[0].loc.start.column):i.FunctionDeclaration.parameters!==null&&f(e.params,l(e).goodChar+r*i.FunctionDeclaration.parameters))},FunctionExpression(e){S(e)||(i.FunctionExpression.parameters===`first`&&e.params.length?f(e.params.slice(1),e.params[0].loc.start.column):i.FunctionExpression.parameters!==null&&f(e.params,l(e).goodChar+r*i.FunctionExpression.parameters))},ReturnStatement(e){if(S(e))return;let t=l(e).goodChar;A(e)?m(e,t):d(e,t)},CallExpression(e){S(e)||(i.CallExpression.arguments===`first`&&e.arguments.length?f(e.arguments.slice(1),e.arguments[0].loc.start.column):i.CallExpression.arguments!==null&&f(e.arguments,l(e).goodChar+r*i.CallExpression.arguments))}}}}})),Fe=n(((e,t)=>{let n=new Set([`const`,`using`,`await using`]);function r(e){return e.type===`ForInStatement`||e.type===`ForOfStatement`||e.type===`ForStatement`}function i(e){let t=e.parent,n=t.parent;return r(n)?n.type===`ForStatement`?n.init===t:n.left===t:!!e.init}t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:`Require or disallow initialization in variable declarations`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/init-declarations`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`never`]},{type:`object`,properties:{ignoreForLoopInit:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:`Variable '{{idName}}' should be initialized on declaration.`,notInitialized:`Variable '{{idName}}' should not be initialized on declaration.`}},create(e){let t=`always`,a=e.options[0]||t,o=e.options[1]||{},s=!1;return{TSModuleDeclaration(e){e.declare&&(s=!0)},"TSModuleDeclaration:exit"(e){e.declare&&(s=!1)},"VariableDeclaration:exit"(c){let l=c.kind,u=c.declarations;if(!(c.declare||s))for(let s=0;s<u.length;++s){let d=u[s],f=d.id,p=i(d),m=o.ignoreForLoopInit&&r(c.parent),h=``;a===t&&!p?h=`initialized`:a===`never`&&!n.has(l)&&p&&!m&&(h=`notInitialized`),f.type===`Identifier`&&h&&e.report({node:d,messageId:h,data:{idName:f.name}})}}}}}})),Ie=n(((e,t)=>{let n=M(),r={"prefer-double":{quote:`"`,description:`singlequote`,convert(e){return e.replace(/'/gu,`"`)}},"prefer-single":{quote:`'`,description:`doublequote`,convert(e){return e.replace(/"/gu,`'`)}}};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`jsx-quotes`,url:`https://eslint.style/rules/jsx-quotes`}}]},type:`layout`,docs:{description:`Enforce the consistent use of either double or single quotes in JSX attributes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/jsx-quotes`},fixable:`whitespace`,schema:[{enum:[`prefer-single`,`prefer-double`]}],messages:{unexpected:`Unexpected usage of {{description}}.`}},create(e){let t=r[e.options[0]||`prefer-double`];function i(e){return e.value.includes(t.quote)||n.isSurroundedBy(e.raw,t.quote)}return{JSXAttribute(r){let a=r.value;a&&n.isStringLiteral(a)&&!i(a)&&e.report({node:a,messageId:`unexpected`,data:{description:t.description},fix(e){return e.replaceText(a,t.convert(a.raw))}})}}}}})),Le=n(((e,t)=>{let n=M(),{getGraphemeCount:r}=ae();function i(e){return n.LINEBREAK_MATCHER.test(e)}function a(e){return e.at(-1)}function o(e){return e.loc.end.line===e.loc.start.line}function s(e){let[t]=e,n=a(e);return t.loc.start.line===n.loc.end.line}function c(e,t){return e.mode=t.mode||`strict`,t.beforeColon===void 0?e.beforeColon=0:e.beforeColon=+t.beforeColon,t.afterColon===void 0?e.afterColon=1:e.afterColon=+t.afterColon,t.align!==void 0&&(typeof t.align==`object`?e.align=t.align:e.align={on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}function l(e,t){return typeof t.align==`object`?(e.align=c({},t.align),e.align.on=t.align.on||`colon`,e.align.mode=t.align.mode||`strict`,e.multiLine=c({},t.multiLine||t),e.singleLine=c({},t.singleLine||t)):(e.multiLine=c({},t.multiLine||t),e.singleLine=c({},t.singleLine||t),e.multiLine.align&&(e.align={on:e.multiLine.align.on,mode:e.multiLine.align.mode||e.multiLine.mode,beforeColon:e.multiLine.align.beforeColon,afterColon:e.multiLine.align.afterColon})),e}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`key-spacing`,url:`https://eslint.style/rules/key-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing between keys and values in object literal properties`,recommended:!1,url:`https://eslint.org/docs/latest/rules/key-spacing`},fixable:`whitespace`,schema:[{anyOf:[{type:`object`,properties:{align:{anyOf:[{enum:[`colon`,`value`]},{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{enum:[`colon`,`value`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}]},mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},{type:`object`,properties:{singleLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},multiLine:{type:`object`,properties:{align:{anyOf:[{enum:[`colon`,`value`]},{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{enum:[`colon`,`value`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}]},mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1},{type:`object`,properties:{singleLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},multiLine:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},beforeColon:{type:`boolean`},afterColon:{type:`boolean`}},additionalProperties:!1},align:{type:`object`,properties:{mode:{enum:[`strict`,`minimum`]},on:{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}}'.`}},create(e){let t=l({},e.options[0]||{}),c=t.multiLine,u=t.singleLine,d=t.align||null,f=e.sourceCode;function p(e){return!(e.method||e.shorthand||e.kind!==`init`||e.type!==`Property`)}function m(e){return f.getTokenAfter(e,n.isColonToken)}function h(e){let t=m(e);return f.getTokenBefore(t)}function g(e){let t=m(e);return f.getTokenAfter(t)}function _(e,t){let n=e.loc.start.line,r=(p(t)?g(t.key):t).loc.start.line;if(r-n<=1)return!0;let i=f.getCommentsBefore(t);if(i.length&&i[0].loc.start.line-n<=1&&r-a(i).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}function v(e){let t=e.key;return e.computed?f.getText().slice(t.range[0],t.range[1]):n.getStaticPropertyName(e)}function y(t,n,r,a,o){let s=r.length-a;if((s&&o===`strict`||s<0&&o===`minimum`||s>0&&!a&&o===`minimum`)&&!(a&&i(r))){let r=m(t.key),i=f.getTokenBefore(r,{includeComments:!0}),a=f.getTokenAfter(r,{includeComments:!0}),o=n===`key`,c=s>0,l=Math.abs(s),u=Array(l+1).join(` `),d=o?i.loc.end:r.loc.start,p=o?r.loc.start:a.loc.start,h=o?i.loc:a.loc,g=c?{start:d,end:p}:h,_;if(c){let e;e=o?[i.range[1],i.range[1]+l]:[a.range[0]-l,a.range[0]],_=function(t){return t.removeRange(e)}}else _=o?function(e){return e.insertTextAfter(i,u)}:function(e){return e.insertTextBefore(a,u)};let y;y=c?n===`key`?`extraKey`:`extraValue`:n===`key`?`missingKey`:`missingValue`,e.report({node:t[n],loc:g,messageId:y,data:{computed:t.computed?`computed `:``,key:v(t)},fix:_})}}function b(e){let t=f.getFirstToken(e),n=h(e.key);return r(f.getText().slice(t.range[0],n.range[1]))}function x(e){let t=/(\s*):(\s*)/u.exec(f.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function S(e){return e.properties.length===1?[e.properties]:e.properties.reduce((e,t)=>{let n=a(e),r=a(n);return!r||_(r,t)?n.push(t):e.push([t]),e},[[]])}function C(e){let t=e.length,n=e.map(b),r=d.on,i=Math.max(...n),a,o,s;d&&t>1?(a=d.beforeColon,o=d.afterColon,s=d.mode):(a=c.beforeColon,o=c.afterColon,s=d.mode),i+=r===`colon`?a:o;for(let c=0;c<t;c++){let t=e[c],l=x(t);if(l){let e=n[c];r===`value`?(y(t,`key`,l.beforeColon,a,s),y(t,`value`,l.afterColon,i-e,s)):(y(t,`key`,l.beforeColon,i-e,s),y(t,`value`,l.afterColon,o,s))}}}function w(e,t){let n=x(e);n&&(y(e,`key`,n.beforeColon,t.beforeColon,t.mode),y(e,`value`,n.afterColon,t.afterColon,t.mode))}function T(e,t){let n=e.length;for(let r=0;r<n;r++)w(e[r],t)}function E(e){S(e).forEach(e=>{let t=e.filter(p);t.length>0&&s(t)?T(t,c):C(t)})}return d?{ObjectExpression(e){o(e)?T(e.properties.filter(p),u):E(e)}}:{Property(e){w(e,o(e.parent)?u:c)}}}}})),Re=n(((e,t)=>{let n=M(),r=ge(),i=/^[)\]}>]$/u,a=/^(?:[([{<~!]|\+\+?|--?)$/u,o=/^[)\]}>*]$/u,s=/^[{*]$/u,c=/\$\{$/u,l=/^\}/u,u=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,d=r.concat([`as`,`async`,`await`,`from`,`get`,`let`,`of`,`set`,`yield`]);(function(){d.sort();for(let e=1;e<d.length;++e)if(d[e]===d[e-1])throw Error(`Duplication was found in the keyword list: ${d[e]}`)})();function f(e){return e.type===`Template`&&c.test(e.value)}function p(e){return e.type===`Template`&&l.test(e.value)}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`keyword-spacing`,url:`https://eslint.style/rules/keyword-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after keywords`,recommended:!1,url:`https://eslint.org/docs/latest/rules/keyword-spacing`},fixable:`whitespace`,schema:[{type:`object`,properties:{before:{type:`boolean`,default:!0},after:{type:`boolean`,default:!0},overrides:{type:`object`,properties:d.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}}".`}},create(e){let t=e.sourceCode,r=new WeakSet;function c(i,a){let o=t.getTokenBefore(i);o&&(u.test(o.type)||a.test(o.value))&&!f(o)&&!r.has(o)&&n.isTokenOnSameLine(o,i)&&!t.isSpaceBetween(o,i)&&e.report({loc:i.loc,messageId:`expectedBefore`,data:i,fix(e){return e.insertTextBefore(i,` `)}})}function l(i,a){let o=t.getTokenBefore(i);o&&(u.test(o.type)||a.test(o.value))&&!f(o)&&!r.has(o)&&n.isTokenOnSameLine(o,i)&&t.isSpaceBetween(o,i)&&e.report({loc:{start:o.loc.end,end:i.loc.start},messageId:`unexpectedBefore`,data:i,fix(e){return e.removeRange([o.range[1],i.range[0]])}})}function m(i,a){let o=t.getTokenAfter(i);o&&(u.test(o.type)||a.test(o.value))&&!p(o)&&!r.has(o)&&n.isTokenOnSameLine(i,o)&&!t.isSpaceBetween(i,o)&&e.report({loc:i.loc,messageId:`expectedAfter`,data:i,fix(e){return e.insertTextAfter(i,` `)}})}function h(i,a){let o=t.getTokenAfter(i);o&&(u.test(o.type)||a.test(o.value))&&!p(o)&&!r.has(o)&&n.isTokenOnSameLine(i,o)&&t.isSpaceBetween(i,o)&&e.report({loc:{start:i.loc.end,end:o.loc.start},messageId:`unexpectedAfter`,data:i,fix(e){return e.removeRange([i.range[1],o.range[0]])}})}function g(e={}){let t=e.before!==!1,n=e.after!==!1,r={before:t?c:l,after:n?m:h},i=e&&e.overrides||{},a=Object.create(null);for(let e=0;e<d.length;++e){let o=d[e],s=i[o];if(s){let e=`before`in s?s.before:t,r=`after`in s?s.after:n;a[o]={before:e?c:l,after:r?m:h}}else a[o]=r}return a}let _=g(e.options[0]);function v(e,t){_[e.value].before(e,t||i)}function y(e,t){_[e.value].after(e,t||a)}function b(e){v(e),y(e)}function x(e){let n=e&&t.getFirstToken(e);n&&n.type===`Keyword`&&b(n)}function S(e){let n=e&&t.getFirstToken(e);n&&n.type===`Keyword`&&v(n)}function C(e){e&&b(t.getTokenBefore(e,n.isKeywordToken))}function w(e){let n=e&&t.getFirstToken(e);n&&(n.type===`Keyword`&&n.value===`function`||n.value===`async`)&&v(n)}function T(e){x(e),C(e.superClass)}function E(e){x(e),C(e.alternate)}function D(e){x(e),x(e.handler),C(e.finalizer)}function O(e){x(e),C(e.test)}function k(e){x(e);let r=t.getTokenBefore(e.right,n.isNotOpeningParenToken);t.getTokenBefore(r).type!==`PrivateIdentifier`&&v(r),y(r)}function A(e){e.await?(v(t.getFirstToken(e,0)),y(t.getFirstToken(e,1))):x(e);let r=t.getTokenBefore(e.right,n.isNotOpeningParenToken);t.getTokenBefore(r).type!==`PrivateIdentifier`&&v(r),y(r)}function j(e){let n=t.getFirstToken(e);if(v(n,o),y(n,s),e.type===`ExportDefaultDeclaration`&&b(t.getTokenAfter(n)),e.type===`ExportAllDeclaration`&&e.exported){let n=t.getTokenBefore(e.exported);v(n,o),y(n,s)}if(e.source){let n=t.getTokenBefore(e.source);v(n,o),y(n,s)}}function M(e){e.imported.range[0]!==e.local.range[0]&&v(t.getTokenBefore(e.local),o)}function N(e){if(e.local.range[0]!==e.exported.range[0]){let n=t.getTokenBefore(e.exported);v(n,o),y(n,s)}}function P(e){v(t.getFirstToken(e,1),o)}function F(e){if(e.static&&x(e),e.kind===`get`||e.kind===`set`||(e.method||e.type===`MethodDefinition`)&&e.value.async){let n=t.getTokenBefore(e.key,e=>{switch(e.value){case`get`:case`set`:case`async`:return!0;default:return!1}});if(!n)throw Error(`Failed to find token get, set, or async beside method name`);b(n)}}function I(e){v(t.getFirstToken(e))}return{DebuggerStatement:x,WithStatement:x,BreakStatement:x,ContinueStatement:x,ReturnStatement:x,ThrowStatement:x,TryStatement:D,IfStatement:E,SwitchStatement:x,SwitchCase:x,DoWhileStatement:O,ForInStatement:k,ForOfStatement:A,ForStatement:x,WhileStatement:x,ClassDeclaration:T,ExportNamedDeclaration:j,ExportDefaultDeclaration:j,ExportAllDeclaration:j,FunctionDeclaration:w,ImportDeclaration:j,VariableDeclaration:x,ArrowFunctionExpression:w,AwaitExpression:I,ClassExpression:T,FunctionExpression:w,NewExpression:S,Super:S,ThisExpression:S,UnaryExpression:S,YieldExpression:S,ImportSpecifier:M,ExportSpecifier:N,ImportNamespaceSpecifier:P,MethodDefinition:F,PropertyDefinition:F,StaticBlock:x,Property:F,"BinaryExpression[operator='>']"(e){let i=t.getTokenBefore(e.right,n.isNotOpeningParenToken);r.add(i)}}}}})),ze=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`9.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`line-comment-position`,url:`https://eslint.style/rules/line-comment-position`}}]},type:`layout`,docs:{description:`Enforce position of line comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/line-comment-position`},schema:[{oneOf:[{enum:[`above`,`beside`]},{type:`object`,properties:{position:{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=e.options[0],r,i,a=!0;!t||typeof t==`string`?r=!t||t===`above`:(r=!t.position||t.position===`above`,i=t.ignorePattern,a=Object.hasOwn(t,`applyDefaultIgnorePatterns`)?t.applyDefaultIgnorePatterns:t.applyDefaultPatterns!==!1);let o=n.COMMENTS_IGNORE_PATTERN,s=/^\s*falls?\s?through/u,c=new RegExp(i,`u`),l=e.sourceCode;return{Program(){l.getAllComments().filter(e=>e.type===`Line`).forEach(t=>{if(a&&(o.test(t.value)||s.test(t.value))||i&&c.test(t.value))return;let n=l.getTokenBefore(t,{includeComments:!0}),u=n&&n.loc.end.line===t.loc.start.line;r?u&&e.report({node:t,messageId:`above`}):u||e.report({node:t,messageId:`beside`})})}}}}})),Be=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`linebreak-style`,url:`https://eslint.style/rules/linebreak-style`}}]},type:`layout`,docs:{description:`Enforce consistent linebreak style`,recommended:!1,url:`https://eslint.org/docs/latest/rules/linebreak-style`},fixable:`whitespace`,schema:[{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;function r(e,t){return function(n){return n.replaceTextRange(e,t)}}return{Program:function(i){let a=(e.options[0]||`unix`)===`unix`,o=a?`
35
+ `:`\r
36
+ `,s=t.getText(),c=n.createGlobalLinebreakMatcher(),l,u=0;for(;(l=c.exec(s))!==null;){if(u++,l[0]===o)continue;let n=l.index,s=[n,n+l[0].length];e.report({node:i,loc:{start:{line:u,column:t.lines[u-1].length},end:{line:u+1,column:0}},messageId:a?`expectedLF`:`expectedCRLF`,fix:r(s,o)})}}}}}})),Ve=n(((e,t)=>{let n=M();function r(e){return e.map((e,t)=>({code:e.trim(),num:t+1})).filter(e=>!e.code).map(e=>e.num)}function i(e){let t=[];return e.forEach(e=>{let n=e.loc.start.line,r=e.loc.end.line;t.push(n,r)}),t}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`lines-around-comment`,url:`https://eslint.style/rules/lines-around-comment`}}]},type:`layout`,docs:{description:`Require empty lines around comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-around-comment`},fixable:`whitespace`,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`},ignorePattern:{type:`string`},applyDefaultIgnorePatterns:{type:`boolean`},afterHashbangComment:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{after:`Expected line after comment.`,before:`Expected line before comment.`}},create(e){let t=Object.assign({},e.options[0]),a=t.ignorePattern,o=n.COMMENTS_IGNORE_PATTERN,s=new RegExp(a,`u`),c=t.applyDefaultIgnorePatterns!==!1;t.beforeBlockComment=t.beforeBlockComment===void 0?!0:t.beforeBlockComment;let l=e.sourceCode,u=l.lines,d=u.length+1,f=l.getAllComments(),p=i(f),m=r(u),h=new Set(p.concat(m));function g(e){let t=e;do t=l.getTokenBefore(t,{includeComments:!0});while(t&&n.isCommentToken(t));if(t&&n.isTokenOnSameLine(t,e))return!0;t=e;do t=l.getTokenAfter(t,{includeComments:!0});while(t&&n.isCommentToken(t));return!!(t&&n.isTokenOnSameLine(e,t))}function _(e,t){return e.type===t||e.body&&e.body.type===t||e.consequent&&e.consequent.type===t}function v(e){let t=l.getNodeByRangeIndex(e.range[0]);if(t&&t.type===`StaticBlock`){let n=l.getFirstToken(t,{skip:1});return e.range[0]>=n.range[0]?t:null}return t}function y(e,t){let r=v(e);if(r&&_(r,t)){let t=r;return r.type===`StaticBlock`?t=l.getFirstToken(r,{skip:1}):r.type===`SwitchStatement`&&(t=l.getTokenAfter(r.discriminant,{filter:n.isOpeningBraceToken})),e.loc.start.line-t.loc.start.line===1}return!1}function b(e,t){let n=v(e);return!!n&&_(n,t)&&n.loc.end.line-e.loc.end.line===1}function x(e){return y(e,`ClassBody`)||y(e,`BlockStatement`)||y(e,`StaticBlock`)||y(e,`SwitchCase`)||y(e,`SwitchStatement`)}function S(e){return b(e,`ClassBody`)||b(e,`BlockStatement`)||b(e,`StaticBlock`)||b(e,`SwitchCase`)||b(e,`SwitchStatement`)}function C(e){return y(e,`ClassBody`)}function w(e){return b(e,`ClassBody`)}function T(e){return y(e,`ObjectExpression`)||y(e,`ObjectPattern`)}function E(e){return b(e,`ObjectExpression`)||b(e,`ObjectPattern`)}function D(e){return y(e,`ArrayExpression`)||y(e,`ArrayPattern`)}function O(e){return b(e,`ArrayExpression`)||b(e,`ArrayPattern`)}function k(r,i){if(c&&o.test(r.value)||a&&s.test(r.value))return;let u=i.after,f=i.before,p=r.loc.start.line-1,m=r.loc.end.line+1,_=g(r),v=t.allowBlockStart&&x(r)&&!(t.allowClassStart===!1&&C(r)),y=t.allowBlockEnd&&S(r)&&!(t.allowClassEnd===!1&&w(r)),b=t.allowClassStart&&C(r),k=t.allowClassEnd&&w(r),A=t.allowObjectStart&&T(r),j=t.allowObjectEnd&&E(r),M=t.allowArrayStart&&D(r),N=t.allowArrayEnd&&O(r),P=v||b||A||M,F=y||k||j||N;if(p<1&&(f=!1),m>=d&&(u=!1),_)return;let I=l.getTokenBefore(r,{includeComments:!0}),L=l.getTokenAfter(r,{includeComments:!0});if(!P&&f&&!h.has(p)&&!(n.isCommentToken(I)&&n.isTokenOnSameLine(I,r))){let t=r.range[0]-r.loc.start.column,n=[t,t];e.report({node:r,messageId:`before`,fix(e){return e.insertTextBeforeRange(n,`
37
+ `)}})}!F&&u&&!h.has(m)&&!(n.isCommentToken(L)&&n.isTokenOnSameLine(r,L))&&e.report({node:r,messageId:`after`,fix(e){return e.insertTextAfter(r,`
38
+ `)}})}return{Program(){f.forEach(e=>{e.type===`Line`?(t.beforeLineComment||t.afterLineComment)&&k(e,{after:t.afterLineComment,before:t.beforeLineComment}):e.type===`Block`?(t.beforeBlockComment||t.afterBlockComment)&&k(e,{after:t.afterBlockComment,before:t.beforeBlockComment}):e.type===`Shebang`&&t.afterHashbangComment&&k(e,{after:t.afterHashbangComment,before:!1})})}}}}})),He=n(((e,t)=>{let n=M();t.exports={meta:{type:`layout`,docs:{description:`Require or disallow newlines around directives`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-around-directive`},schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{before:{enum:[`always`,`never`]},after:{enum:[`always`,`never`]}},additionalProperties:!1,minProperties:2}]}],fixable:`whitespace`,messages:{expected:`Expected newline {{location}} "{{value}}" directive.`,unexpected:`Unexpected newline {{location}} "{{value}}" directive.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(e){let t=e.sourceCode,r=e.options[0]||`always`,i=typeof r==`string`?r:r.before,a=typeof r==`string`?r:r.after;function o(e){let n=t.getTokenBefore(e,{includeComments:!0}),r=n?n.loc.end.line:0;return e.loc.start.line-r>=2}function s(e){let r=t.getLastToken(e),i=t.getTokenBefore(r);return n.isSemicolonToken(r)&&r.loc.start.line>i.loc.end.line?i:r}function c(e){let n=s(e);return t.getTokenAfter(n,{includeComments:!0}).loc.start.line-n.loc.end.line>=2}function l(t,n,r){e.report({node:t,messageId:r?`expected`:`unexpected`,data:{value:t.expression.value,location:n},fix(e){let i=s(t);return r?n===`before`?e.insertTextBefore(t,`
39
+ `):e.insertTextAfter(i,`
40
+ `):e.removeRange(n===`before`?[t.range[0]-1,t.range[0]]:[i.range[1],i.range[1]+1])}})}function u(e){let r=n.getDirectivePrologue(e);if(!r.length)return;let s=r[0],u=t.getCommentsBefore(s);u.length?(i===`always`&&!o(s)&&l(s,`before`,!0),i===`never`&&o(s)&&l(s,`before`,!1)):e.type===`Program`&&i===`never`&&!u.length&&o(s)&&l(s,`before`,!1);let d=r.at(-1);d===(e.type===`Program`?e.body:e.body.body).at(-1)&&!d.trailingComments||(a===`always`&&!c(d)&&l(d,`after`,!0),a===`never`&&c(d)&&l(d,`after`,!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}}})),Ue=n(((e,t)=>{let n=M(),r={"*":{test:()=>!0},field:{test:e=>e.type===`PropertyDefinition`},method:{test:e=>e.type===`MethodDefinition`}};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`lines-between-class-members`,url:`https://eslint.style/rules/lines-between-class-members`}}]},type:`layout`,docs:{description:`Require or disallow an empty line between class members`,recommended:!1,url:`https://eslint.org/docs/latest/rules/lines-between-class-members`},fixable:`whitespace`,schema:[{anyOf:[{type:`object`,properties:{enforce:{type:`array`,items:{type:`object`,properties:{blankLine:{enum:[`always`,`never`]},prev:{enum:[`method`,`field`,`*`]},next:{enum:[`method`,`field`,`*`]}},additionalProperties:!1,required:[`blankLine`,`prev`,`next`]},minItems:1}},additionalProperties:!1,required:[`enforce`]},{enum:[`always`,`never`]}]},{type:`object`,properties:{exceptAfterSingleLine:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{never:`Unexpected blank line between class members.`,always:`Expected blank line between class members.`}},create(e){let t=[];t[0]=e.options[0]||`always`,t[1]=e.options[1]||{exceptAfterSingleLine:!1};let i=typeof t[0]==`object`?t[0].enforce:[{blankLine:t[0],prev:`*`,next:`*`}],a=e.sourceCode;function o(e,t){let r=a.getLastToken(e),i=a.getTokenBefore(r),o=a.getFirstToken(t);return n.isSemicolonToken(r)&&!n.isTokenOnSameLine(i,r)&&n.isTokenOnSameLine(r,o)?{curLast:i,nextFirst:r}:{curLast:r,nextFirst:o}}function s(e,t,n){let r=a.getTokenAfter(e,{includeComments:!0});return r!==t&&r.loc.start.line-e.loc.end.line<=n?s(r,t,n):e}function c(e,t,n){let r=a.getTokenBefore(e,{includeComments:!0});return r!==t&&e.loc.start.line-r.loc.end.line<=n?c(r,t,n):e}function l(e,t){return a.getTokensBetween(e,t,{includeComments:!0}).length!==0}function u(e,t){return r[t].test(e)}function d(e,t){for(let n=i.length-1;n>=0;--n){let r=i[n];if(u(e,r.prev)&&u(t,r.next))return r.blankLine}return null}return{ClassBody(r){let i=r.body;for(let r=0;r<i.length-1;r++){let u=a.getFirstToken(i[r]),{curLast:f,nextFirst:p}=o(i[r],i[r+1]),m=!!n.isTokenOnSameLine(u,f)&&t[1].exceptAfterSingleLine,h=s(f,p,1),g=c(p,f,1),_=g.loc.start.line-h.loc.end.line>1,v=l(h,g),y=s(f,p,0),b=d(i[r],i[r+1]);b===`never`&&_?e.report({node:i[r+1],messageId:`never`,fix(e){return v?null:e.replaceTextRange([h.range[1],g.range[0]],`
41
+ `)}}):b===`always`&&!m&&!_&&e.report({node:i[r+1],messageId:`always`,fix(e){return v?null:e.insertTextAfter(y,`
42
+ `)}})}}}}}})),We=n(((e,t)=>{let n=M(),r=new Set([`Identifier`,`Super`,`ThisExpression`]);function i(e,t){return e.type===`Identifier`&&e.name===`undefined`?n.isReferenceToGlobalVariable(t,e):e.type===`UnaryExpression`&&e.operator===`void`&&e.argument.type===`Literal`&&e.argument.value===0}function a(e){return e.type===`Identifier`&&e.name!==`undefined`||e.type===`MemberExpression`}function o(e,t){if(e.type!==`BinaryExpression`||e.operator!==`==`)return!1;let r=a(e.left)?`left`:`right`,o=r===`left`?`right`:`left`;return a(e[r])&&(n.isNullLiteral(e[o])||i(e[o],t))}function s(e){return e.type===`LogicalExpression`&&e.operator===`||`&&e.left.type===`BinaryExpression`&&e.left.operator===`===`&&e.right.type===`BinaryExpression`&&e.right.operator===`===`}function c(e,t){if(!s(e))return!1;let r=a(e.left.left)?`left`:`right`,o=r===`left`?`right`:`left`,c=a(e.right.left)?`left`:`right`,l=c===`left`?`right`:`left`;return n.isSameReference(e.left[r],e.right[c])&&(n.isNullLiteral(e.left[o])&&i(e.right[l],t)||i(e.left[o],t)&&n.isNullLiteral(e.right[l]))}function l(e,t){return e.type===`CallExpression`&&e.callee.name===`Boolean`&&e.arguments.length===1&&n.isReferenceToGlobalVariable(t,e.callee)}function u(e,t){let n=e.type===`UnaryExpression`&&e.operator===`!`,r=n?e.argument:e;switch(!0){case a(r):return{reference:r,operator:n?`||`:`&&`};case r.type===`UnaryExpression`&&r.operator===`!`&&a(r.argument):return{reference:r.argument,operator:`&&`};case l(r,t)&&a(r.arguments[0]):return{reference:r.arguments[0],operator:n?`||`:`&&`};case o(e,t):return{reference:a(e.left)?e.left:e.right,operator:`??`};case c(e,t):return{reference:a(e.left.left)?e.left.left:e.left.right,operator:`??`};default:return null}}function d(e){return e.type===`Program`?!1:e.parent.type===`WithStatement`&&e.parent.body===e?!0:d(e.parent)}function f(e,t){let r=t.left;for(;r.type===`LogicalExpression`&&r.operator===t.operator;){if(n.isParenthesised(e,r))return r;r=r.left}return r}t.exports={meta:{type:`suggestion`,docs:{description:`Require or disallow logical assignment operator shorthand`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/logical-assignment-operators`},schema:{type:`array`,oneOf:[{items:[{const:`always`},{type:`object`,properties:{enforceForIfStatements:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:`never`}],minItems:1,maxItems:1}]},fixable:`code`,hasSuggestions:!0,messages:{assignment:`Assignment (=) can be replaced with operator assignment ({{operator}}).`,useLogicalOperator:`Convert this assignment to use the operator {{ operator }}.`,logical:`Logical expression can be replaced with an assignment ({{ operator }}).`,convertLogical:`Replace this logical expression with an assignment with the operator {{ operator }}.`,if:`'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.`,convertIf:`Replace this 'if' statement with a logical assignment with operator {{ operator }}.`,unexpected:`Unexpected logical operator assignment ({{operator}}) shorthand.`,separate:`Separate the logical assignment into an assignment with a logical operator.`}},create(e){let t=e.options[0]===`never`?`never`:`always`,i=t===`always`&&e.options.length>1&&e.options[1].enforceForIfStatements,o=e.sourceCode,s=o.getScope(o.ast).isStrict;function c(e){return e.type===`Identifier`&&(s||!d(e))}function l(e){return!s&&d(e)?e.type===`Identifier`:e.type===`MemberExpression`&&r.has(e.object.type)&&(!e.computed||e.property.type!==`MemberExpression`&&e.property.type!==`ChainExpression`)}function p(e,t,n){return n?{...e,fix:t.fix}:{...e,suggest:[t]}}function m(e){return o.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator)}return t===`never`?{AssignmentExpression(t){if(!n.isLogicalAssignmentOperator(t.operator))return;let r={messageId:`unexpected`,node:t,data:{operator:t.operator}};e.report(p(r,{messageId:`separate`,*fix(e){if(o.getCommentsInside(t).length>0)return;let r=m(t);yield e.replaceText(r,`=`);let i=o.getText(t.left),a=t.operator.slice(0,-1);yield e.insertTextAfter(r,` ${i} ${a}`);let s=n.getPrecedence(t.right)<=n.getPrecedence({type:`LogicalExpression`,operator:a}),c=t.operator===`??=`&&n.isLogicalExpression(t.right);!n.isParenthesised(o,t.right)&&(s||c)&&(yield e.insertTextBefore(t.right,`(`),yield e.insertTextAfter(t.right,`)`))}},c(t.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(t){let r=f(o,t.right);if(!n.isSameReference(t.left,r))return;let i={messageId:`assignment`,node:t,data:{operator:`${t.right.operator}=`}},a={messageId:`useLogicalOperator`,data:{operator:`${t.right.operator}=`},*fix(e){if(o.getCommentsInside(t).length>0)return;let n=m(t);yield e.insertTextBefore(n,t.right.operator);let i=m(r.parent),a=o.getTokenAfter(i);yield e.removeRange([r.parent.range[0],a.range[0]])}};e.report(p(i,a,c(t.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(t){if(a(t.left)&&n.isSameReference(t.left,t.right.left)){let r={messageId:`logical`,node:t,data:{operator:`${t.operator}=`}},i={messageId:`convertLogical`,data:{operator:`${t.operator}=`},*fix(e){if(o.getCommentsInside(t).length>0)return;let r=n.getPrecedence(t.parent),i=t.parent.type!==`ExpressionStatement`&&(r===-1||n.getPrecedence({type:`AssignmentExpression`})<r);!n.isParenthesised(o,t)&&i&&(yield e.insertTextBefore(t,`(`),yield e.insertTextAfter(t,`)`)),yield e.removeRange([t.range[0],t.right.range[0]]),yield e.removeRange([t.right.range[1],t.range[1]]);let a=m(t.right);yield e.insertTextBefore(a,t.operator)}},a=c(t.left)||l(t.left);e.report(p(r,i,a))}},"IfStatement[alternate=null]"(t){if(!i)return;let r=t.consequent.type===`BlockStatement`;if(r&&t.consequent.body.length!==1)return;let a=r?t.consequent.body[0]:t.consequent,s=o.getScope(t),d=u(t.test,s);if(a.type===`ExpressionStatement`&&a.expression.type===`AssignmentExpression`&&a.expression.operator===`=`&&d!==null&&n.isSameReference(d.reference,a.expression.left)){let n={messageId:`if`,node:t,data:{operator:`${d.operator}=`}},i={messageId:`convertIf`,data:{operator:`${d.operator}=`},*fix(e){if(o.getCommentsInside(t).length>0)return;let n=o.getFirstToken(a),i=o.getTokenBefore(t);if(i!==null&&i.value!==`;`&&i.value!==`{`&&n.type!==`Identifier`&&n.type!==`Keyword`)return;let s=m(a.expression);yield e.insertTextBefore(s,d.operator),yield e.removeRange([t.range[0],a.range[0]]),yield e.removeRange([a.range[1],t.range[1]]);let c=o.getTokenAfter(a.expression);r&&c!==null&&c.value!==`;`&&(yield e.insertTextAfter(t,`;`))}},s=c(d.reference)||t.test.type!==`LogicalExpression`&&l(d.reference);e.report(p(n,i,s))}}}}}})),Ge=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of classes per file`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-classes-per-file`},schema:[{oneOf:[{type:`integer`,minimum:1},{type:`object`,properties:{ignoreExpressions:{type:`boolean`},max:{type:`integer`,minimum:1}},additionalProperties:!1}]}],messages:{maximumExceeded:`File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}.`}},create(e){let[t={}]=e.options,[n,r]=typeof t==`number`?[!1,t||1]:[t.ignoreExpressions,t.max||1],i=0;return{Program(){i=0},"Program:exit"(t){i>r&&e.report({node:t,messageId:`maximumExceeded`,data:{classCount:i,max:r}})},ClassDeclaration(){i++},ClassExpression(){n||i++}}}}})),Ke=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum depth that blocks can be nested`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-depth`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:`Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}.`}},create(e){let t=[],n=e.options[0],r=4;typeof n==`object`&&(Object.hasOwn(n,`maximum`)||Object.hasOwn(n,`max`))&&(r=n.maximum||n.max),typeof n==`number`&&(r=n);function i(){t.push(0)}function a(){t.pop()}function o(n){let i=++t[t.length-1];i>r&&e.report({node:n,messageId:`tooDeeply`,data:{depth:i,maxDepth:r}})}function s(){t[t.length-1]--}return{Program:i,FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,StaticBlock:i,IfStatement(e){e.parent.type!==`IfStatement`&&o(e)},SwitchStatement:o,TryStatement:o,DoWhileStatement:o,WhileStatement:o,WithStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,"IfStatement:exit":s,"SwitchStatement:exit":s,"TryStatement:exit":s,"DoWhileStatement:exit":s,"WhileStatement:exit":s,"WithStatement:exit":s,"ForStatement:exit":s,"ForInStatement:exit":s,"ForOfStatement:exit":s,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,"StaticBlock:exit":a,"Program:exit":a}}}})),qe=n(((e,t)=>{let n={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},r={anyOf:[n,{type:`integer`,minimum:0}]};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`max-len`,url:`https://eslint.style/rules/max-len`}}]},type:`layout`,docs:{description:`Enforce a maximum line length`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-len`},schema:[r,r,n],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;function r(e,t){let n=0;return e.replace(/\t/gu,(e,r)=>{let i=r+n,a=t-(t?i%t:0);n+=a-1}),Array.from(e).length+n}let i=Object.assign({},e.options.at(-1));typeof e.options[0]==`number`&&(i.code=e.options[0]),typeof e.options[1]==`number`&&(i.tabWidth=e.options[1]);let a=typeof i.code==`number`?i.code:80,o=typeof i.tabWidth==`number`?i.tabWidth:4,s=!!i.ignoreComments,c=!!i.ignoreStrings,l=!!i.ignoreTemplateLiterals,u=!!i.ignoreRegExpLiterals,d=!!i.ignoreTrailingComments||!!i.ignoreComments,f=!!i.ignoreUrls,p=i.comments,m=i.ignorePattern||null;m&&=new RegExp(m,`u`);function h(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 g(e,t,n){let r=n.loc.start,i=n.loc.end,a=!e.slice(0,n.loc.start.column).trim();return n&&(r.line<t||r.line===t&&a)&&(i.line>t||i.line===t&&i.column===e.length)}function _(e){if(!e||!e.parent||e.type!==`JSXEmptyExpression`||e.parent.type!==`JSXExpressionContainer`)return!1;let t=e.parent;return t.loc.start.line===t.loc.end.line}function v(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,``)}function y(e,t,n){Array.isArray(e[t])||(e[t]=[]),e[t].push(n)}function b(){return n.ast.tokens.filter(e=>e.type===`String`||e.type===`JSXText`&&n.getNodeByRangeIndex(e.range[0]-1).type===`JSXAttribute`)}function x(){return n.ast.tokens.filter(e=>e.type===`Template`)}function S(){return n.ast.tokens.filter(e=>e.type===`RegularExpression`)}function C(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e=r.loc.start.line;e<=r.loc.end.line;++e)y(t,e,r)}return t}function w(){let e=[];return n.getAllComments().forEach(t=>{let r=n.getNodeByRangeIndex(t.range[0]);_(r)?e.at(-1)!==r.parent&&e.push(r.parent):e.push(t)}),e}function T(i){let _=n.lines,y=s||p||d?w():[],T=0,E=C(b()),D=C(x()),O=C(S());_.forEach((n,_)=>{let b=_+1,x=!1,S;if(T<y.length){let e;do e=y[++T];while(e&&e.loc.start.line<=b);if(e=y[--T],g(n,b,e))x=!0,S=n;else if(d&&h(n,b,e)){S=v(n,e);let t=T;for(;h(S,b,y[--t]);)S=v(S,y[t])}else S=n}else S=n;if(m&&m.test(S)||f&&t.test(S)||c&&E[b]||l&&D[b]||u&&O[b])return;let C=r(S,o),w=x&&p;if(x&&s)return;let k={start:{line:b,column:0},end:{line:b,column:S.length}};w?C>p&&e.report({node:i,loc:k,messageId:`maxComment`,data:{lineLength:C,maxCommentLength:p}}):C>a&&e.report({node:i,loc:k,messageId:`max`,data:{lineLength:C,maxLength:a}})})}return{Program:T}}}})),Je=n(((e,t)=>{let n=M();function r(e,t){return[...Array(t-e).keys()].map(t=>t+e)}t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of lines per file`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-lines`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{max:{type:`integer`,minimum:0},skipComments:{type:`boolean`},skipBlankLines:{type:`boolean`}},additionalProperties:!1}]}],messages:{exceed:`File has too many lines ({{actual}}). Maximum allowed is {{max}}.`}},create(e){let t=e.options[0],i=300;typeof t==`object`&&Object.hasOwn(t,`max`)?i=t.max:typeof t==`number`&&(i=t);let a=t&&t.skipComments,o=t&&t.skipBlankLines,s=e.sourceCode;function c(e){return e&&(e.type===`Block`||e.type===`Line`)}function l(e){let t=e.loc.start.line,i=e.loc.end.line,a;a=e;do a=s.getTokenBefore(a,{includeComments:!0});while(c(a));a&&n.isTokenOnSameLine(a,e)&&(t+=1),a=e;do a=s.getTokenAfter(a,{includeComments:!0});while(c(a));return a&&n.isTokenOnSameLine(e,a)&&--i,t<=i?r(t,i+1):[]}return{"Program:exit"(){let t=s.lines.map((e,t)=>({lineNumber:t+1,text:e}));if(t.length>1&&t.at(-1).text===``&&t.pop(),o&&(t=t.filter(e=>e.text.trim()!==``)),a){let e=s.getAllComments(),n=new Set(e.flatMap(l));t=t.filter(e=>!n.has(e.lineNumber))}if(t.length>i){let n={start:{line:t[i].lineNumber,column:0},end:{line:s.lines.length,column:s.lines.at(-1).length}};e.report({loc:n,messageId:`exceed`,data:{max:i,actual:t.length}})}}}}}})),Ye=n(((e,t)=>{let n=M(),{upperCaseFirst:r}=ae(),i={oneOf:[{type:`object`,properties:{max:{type:`integer`,minimum:0},skipComments:{type:`boolean`},skipBlankLines:{type:`boolean`},IIFEs:{type:`boolean`}},additionalProperties:!1},{type:`integer`,minimum:1}]};function a(e){let t=new Map;return e.forEach(e=>{for(let n=e.loc.start.line;n<=e.loc.end.line;n++)t.set(n,e)}),t}t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of lines of code in a function`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-lines-per-function`},schema:[i],messages:{exceed:`{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}.`}},create(e){let t=e.sourceCode,i=t.lines,o=e.options[0],s=50,c=!1,l=!1,u=!1;typeof o==`object`?(s=typeof o.max==`number`?o.max:50,c=!!o.skipComments,l=!!o.skipBlankLines,u=!!o.IIFEs):typeof o==`number`&&(s=o);let d=a(t.getAllComments());function f(e,t,n){let r=n.loc.start,i=n.loc.end,a=r.line===t&&!e.slice(0,r.column).trim(),o=i.line===t&&!e.slice(i.column).trim();return n&&(r.line<t||a)&&(i.line>t||o)}function p(e){return(e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`)&&e.parent&&e.parent.type===`CallExpression`&&e.parent.callee===e}function m(e){return!e.parent||e!==e.parent.value?!1:e.parent.type===`MethodDefinition`?!0:e.parent.type===`Property`?e.parent.method===!0||e.parent.kind===`get`||e.parent.kind===`set`:!1}function h(t){let a=m(t)?t.parent:t;if(!u&&p(a))return;let o=0;for(let e=a.loc.start.line-1;e<a.loc.end.line;++e){let t=i[e];c&&d.has(e+1)&&f(t,e+1,d.get(e+1))||l&&t.match(/^\s*$/u)||o++}if(o>s){let i=r(n.getFunctionNameWithKind(t));e.report({node:a,messageId:`exceed`,data:{name:i,lineCount:o,maxLines:s}})}}return{FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h}}}})),Xe=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum depth that callbacks can be nested`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-nested-callbacks`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0}},additionalProperties:!1}]}],messages:{exceed:`Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.`}},create(e){let t=e.options[0],n=10;typeof t==`object`&&(Object.hasOwn(t,`maximum`)||Object.hasOwn(t,`max`))?n=t.maximum||t.max:typeof t==`number`&&(n=t);let r=[];function i(t){if(t.parent.type===`CallExpression`&&r.push(t),r.length>n){let i={num:r.length,max:n};e.report({node:t,messageId:`exceed`,data:i})}}function a(){r.pop()}return{ArrowFunctionExpression:i,"ArrowFunctionExpression:exit":a,FunctionExpression:i,"FunctionExpression:exit":a}}}})),Ze=n(((e,t)=>{let n=M(),{upperCaseFirst:r}=ae();t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:`Enforce a maximum number of parameters in function definitions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-params`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0},countVoidThis:{type:`boolean`,description:"Whether to count a `this` declaration when the type is `void`."},countThis:{enum:[`never`,`except-void`,`always`],description:"Whether to count a `this` declaration."}},additionalProperties:!1,not:{required:[`countVoidThis`,`countThis`]}}]}],messages:{exceed:`{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}.`}},create(e){let t=e.sourceCode,i=e.options[0],a=3,o=`except-void`;typeof i==`object`&&((Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))&&(a=i.maximum||i.max),o=i.countThis,!o&&Object.hasOwn(i,`countVoidThis`)&&(o=i.countVoidThis?`always`:`except-void`),o||=`except-void`),typeof i==`number`&&(a=i);function s(i){let s=i.params.length>0&&i.params[0].type===`Identifier`&&i.params[0].name===`this`?i.params[0]:null,c=i.params.length;s&&(o===`never`||o===`except-void`&&s.typeAnnotation?.typeAnnotation.type===`TSVoidKeyword`)&&(c=i.params.length-1),c>a&&e.report({loc:n.getFunctionHeadLoc(i,t),node:i,messageId:`exceed`,data:{name:r(n.getFunctionNameWithKind(i)),count:c,max:a}})}return{FunctionDeclaration:s,ArrowFunctionExpression:s,FunctionExpression:s,TSDeclareFunction:s,TSFunctionType:s}}}})),Qe=n(((e,t)=>{let n=M(),{upperCaseFirst:r}=ae();t.exports={meta:{type:`suggestion`,docs:{description:`Enforce a maximum number of statements allowed in function blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-statements`},schema:[{oneOf:[{type:`integer`,minimum:0},{type:`object`,properties:{maximum:{type:`integer`,minimum:0},max:{type:`integer`,minimum:0}},additionalProperties:!1}]},{type:`object`,properties:{ignoreTopLevelFunctions:{type:`boolean`}},additionalProperties:!1}],messages:{exceed:`{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}.`}},create(e){let t=[],i=e.options[0],a=e.options[1]&&e.options[1].ignoreTopLevelFunctions||!1,o=[],s=10;typeof i==`object`&&(Object.hasOwn(i,`maximum`)||Object.hasOwn(i,`max`))?s=i.maximum||i.max:typeof i==`number`&&(s=i);function c(t,i,a){if(i>a){let o=r(n.getFunctionNameWithKind(t));e.report({node:t,messageId:`exceed`,data:{name:o,count:i,max:a}})}}function l(){t.push(0)}function u(e){let n=t.pop();e.type!==`StaticBlock`&&(a&&t.length===0?o.push({node:e,count:n}):c(e,n,s))}function d(e){t[t.length-1]+=e.body.length}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,StaticBlock:l,BlockStatement:d,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u,"StaticBlock:exit":u,"Program:exit"(){o.length!==1&&o.forEach(e=>{let t=e.count,n=e.node;c(n,t,s)})}}}}})),$e=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`max-statements-per-line`,url:`https://eslint.style/rules/max-statements-per-line`}}]},type:`layout`,docs:{description:`Enforce a maximum number of statements allowed per line`,recommended:!1,url:`https://eslint.org/docs/latest/rules/max-statements-per-line`},schema:[{type:`object`,properties:{max:{type:`integer`,minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:`This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}.`}},create(e){let t=e.sourceCode,r=e.options[0]||{},i=r.max===void 0?1:r.max,a=0,o=0,s,c=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function l(){s&&e.report({node:s,messageId:`exceed`,data:{numberOfStatementsOnThisLine:o,maxStatementsPerLine:i,statements:o===1?`statement`:`statements`}}),s=null}function u(e){return t.getLastToken(e,n.isNotSemicolonToken)}function d(e){let t=e.loc.start.line;c.test(e.parent.type)&&e.parent.alternate!==e||(t===a?o+=1:(l(),o=1,a=t),o===i+1&&(s||=e))}function f(e){let t=u(e).loc.end.line;t!==a&&(l(),o=1,a=t)}return{BreakStatement:d,ClassDeclaration:d,ContinueStatement:d,DebuggerStatement:d,DoWhileStatement:d,ExpressionStatement:d,ForInStatement:d,ForOfStatement:d,ForStatement:d,FunctionDeclaration:d,IfStatement:d,ImportDeclaration:d,LabeledStatement:d,ReturnStatement:d,SwitchStatement:d,ThrowStatement:d,TryStatement:d,VariableDeclaration:d,WhileStatement:d,WithStatement:d,ExportNamedDeclaration:d,ExportDefaultDeclaration:d,ExportAllDeclaration:d,"BreakStatement:exit":f,"ClassDeclaration:exit":f,"ContinueStatement:exit":f,"DebuggerStatement:exit":f,"DoWhileStatement:exit":f,"ExpressionStatement:exit":f,"ForInStatement:exit":f,"ForOfStatement:exit":f,"ForStatement:exit":f,"FunctionDeclaration:exit":f,"IfStatement:exit":f,"ImportDeclaration:exit":f,"LabeledStatement:exit":f,"ReturnStatement:exit":f,"SwitchStatement:exit":f,"ThrowStatement:exit":f,"TryStatement:exit":f,"VariableDeclaration:exit":f,"WhileStatement:exit":f,"WithStatement:exit":f,"ExportNamedDeclaration:exit":f,"ExportDefaultDeclaration:exit":f,"ExportAllDeclaration:exit":f,"Program:exit":l}}}})),et=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`9.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`multiline-comment-style`,url:`https://eslint.style/rules/multiline-comment-style`}}]},type:`suggestion`,docs:{description:`Enforce a particular style for multiline comments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/multiline-comment-style`},fixable:`whitespace`,schema:{anyOf:[{type:`array`,items:[{enum:[`starred-block`,`bare-block`]}],additionalItems:!1},{type:`array`,items:[{enum:[`separate-lines`]},{type:`object`,properties:{checkJSDoc:{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,r=e.options[0]||`starred-block`,i=!!(e.options[1]||{}).checkJSDoc;function a(e){return/^\s*\*/u.test(e)}function o([e]){if(e.type!==`Block`)return!1;let t=e.value.split(n.LINEBREAK_MATCHER);return t.length>0&&t.every((e,n)=>(n===0||n===t.length-1?/^\s*$/u:/^\s*\*/u).test(e))}function s([e]){if(e.type!==`Block`)return!1;let t=e.value.split(n.LINEBREAK_MATCHER);return/^\*\s*$/u.test(t[0])&&t.slice(1,-1).every(e=>/^\s* /u.test(e))&&/^\s*$/u.test(t.at(-1))}function c(e){let t=e.map(({value:e})=>e).filter(e=>e.trim().length).every(e=>e.startsWith(` `));return e.map(({value:e})=>t?e.replace(/^ /u,``):e)}function l(e){let t=e.value.split(n.LINEBREAK_MATCHER).filter((e,t,n)=>!(t===0||t===n.length-1)).map(e=>e.replace(/^\s*$/u,``)),r=t.map(e=>e.replace(/\s*\*/u,``)).filter(e=>e.trim().length).every(e=>e.startsWith(` `));return t.map(e=>e.replace(r?/\s*\* ?/u:/\s*\*/u,``))}function u(e){let r=e.value.split(n.LINEBREAK_MATCHER).map(e=>e.replace(/^\s*$/u,``)),i=`${t.text.slice(e.range[0]-e.loc.start.column,e.range[0])} `,a=``;for(let[e,t]of r.entries()){if(!t.trim().length||e===0)continue;let[,n]=t.match(/^(\s*\*?\s*)/u);if(n.length<i.length){let e=i.slice(n.length-i.length);e.length>a.length&&(a=e)}}return r.map(e=>{let[,t,n]=e.match(/^(\s*\*?\s*)(.*)/u);return t.length>i.length?`${t.slice(i.length-(a.length+t.length))}${n}`:t.length<i.length?`${t.slice(i.length)}${n}`:n})}function d(e){let[t]=e;return t.type===`Line`?c(e):o(e)?l(t):u(t)}function f(e){return t.text.slice(e.range[0]-e.loc.start.column,e.range[0])}function p(e,t){let n=f(e);return`/*\n${t.map(e=>`${n} * ${e}`).join(`
43
+ `)}\n${n} */`}function m(e,t){return t.map(e=>`// ${e}`).join(`\n${f(e)}`)}function h(e,t){return`/* ${t.join(`\n${f(e)} `)} */`}let g={"starred-block"(r){let[i]=r,o=d(r);if(!o.some(e=>e.includes(`*/`)))if(r.length>1)e.report({loc:{start:i.loc.start,end:r.at(-1).loc.end},messageId:`expectedBlock`,fix(e){let t=[i.range[0],r.at(-1).range[1]];return o.some(e=>e.startsWith(`/`))?null:e.replaceTextRange(t,p(i,o))}});else{let r=i.value.split(n.LINEBREAK_MATCHER),o=`${f(i)} *`;if(!/^\*?\s*$/u.test(r[0])){let t=i.value.startsWith(`*`)?i.range[0]+1:i.range[0];e.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+2}},messageId:`startNewline`,fix:e=>e.insertTextAfterRange([t,t+2],`\n${o}`)})}/^\s*$/u.test(r.at(-1))||e.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:`endNewline`,fix:e=>e.replaceTextRange([i.range[1]-2,i.range[1]],`\n${o}/`)});for(let n=i.loc.start.line+1;n<=i.loc.end.line;n++){let s=t.lines[n-1],c=a(s)?`alignment`:`missingStar`;s.startsWith(o)||e.report({loc:{start:{line:n,column:0},end:{line:n,column:s.length}},messageId:c,fix(e){let a=t.getIndexFromLoc({line:n,column:0});if(c===`alignment`){let[,t=``]=s.match(/^(\s*\*)/u)||[],n=a+t.length;return e.replaceTextRange([a,n],o)}let[,l=``]=s.match(/^(\s*)/u)||[],u=a+l.length,d;for(let[e,n]of r.entries()){if(!/\S+/u.test(n))continue;let[,r=``,a=``]=t.lines[i.loc.start.line-1+e].match(/^(\s*(?:\/?\*)?(\s*))/u)||[];d=`${l.slice(r.length)}${a}`,/^\s*\//u.test(s)&&d.length===0&&(d+=` `);break}return e.replaceTextRange([a,u],`${o}${d}`)}})}}},"separate-lines"(n){let[r]=n,a=s(n);if(r.type!==`Block`||!i&&a)return;let o=d(n);a&&(o=o.slice(1,o.length-1));let c=t.getTokenAfter(r,{includeComments:!0});c&&r.loc.end.line===c.loc.start.line||e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:`expectedLines`,fix(e){return e.replaceText(r,m(r,o))}})},"bare-block"(t){if(s(t))return;let[n]=t,r=d(t);n.type===`Line`&&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){return e.replaceTextRange([n.range[0],t.at(-1).range[1]],h(n,r))}}),o(t)&&e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:`expectedBareBlock`,fix(e){return e.replaceText(n,h(n,r))}})}};return{Program(){return t.getAllComments().filter(e=>e.type!==`Shebang`).filter(e=>!n.COMMENTS_IGNORE_PATTERN.test(e.value)).filter(e=>{let n=t.getTokenBefore(e,{includeComments:!0});return!n||n.loc.end.line<e.loc.start.line}).reduce((e,n,r,i)=>{let a=t.getTokenBefore(n,{includeComments:!0});return n.type===`Line`&&r&&i[r-1].type===`Line`&&a&&a.loc.end.line===n.loc.start.line-1&&a===i[r-1]?e.at(-1).push(n):e.push([n]),e},[]).filter(e=>!(e.length===1&&e[0].loc.start.line===e[0].loc.end.line)).forEach(g[r])}}}}})),tt=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`multiline-ternary`,url:`https://eslint.style/rules/multiline-ternary`}}]},type:`layout`,docs:{description:`Enforce newlines between operands of ternary expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/multiline-ternary`},schema:[{enum:[`always`,`always-multiline`,`never`]}],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,r=e.options[0],i=r!==`never`,a=r===`always-multiline`;return{ConditionalExpression(r){let o=t.getTokenAfter(r.test,n.isNotClosingParenToken),s=t.getTokenAfter(r.consequent,n.isNotClosingParenToken),c=t.getFirstToken(r),l=t.getTokenBefore(o),u=t.getTokenAfter(o),d=t.getTokenBefore(s),f=t.getTokenAfter(s),p=n.isTokenOnSameLine(l,u),m=n.isTokenOnSameLine(d,f),h=!!t.getCommentsInside(r).length;if(!i)p||e.report({node:r.test,loc:{start:c.loc.start,end:l.loc.end},messageId:`unexpectedTestCons`,fix(e){if(h)return null;let t=[],r=n.isTokenOnSameLine(l,o),i=n.isTokenOnSameLine(o,u);return r||t.push(e.removeRange([l.range[1],o.range[0]])),i||t.push(e.removeRange([o.range[1],u.range[0]])),t}}),m||e.report({node:r.consequent,loc:{start:u.loc.start,end:d.loc.end},messageId:`unexpectedConsAlt`,fix(e){if(h)return null;let t=[],r=n.isTokenOnSameLine(d,s),i=n.isTokenOnSameLine(s,f);return r||t.push(e.removeRange([d.range[1],s.range[0]])),i||t.push(e.removeRange([s.range[1],f.range[0]])),t}});else{if(a&&r.loc.start.line===r.loc.end.line)return;p&&e.report({node:r.test,loc:{start:c.loc.start,end:l.loc.end},messageId:`expectedTestCons`,fix:e=>h?null:e.replaceTextRange([l.range[1],o.range[0]],`
44
+ `)}),m&&e.report({node:r.consequent,loc:{start:u.loc.start,end:d.loc.end},messageId:`expectedConsAlt`,fix:e=>h?null:e.replaceTextRange([d.range[1],s.range[0]],`
45
+ `)})}}}}}})),nt=n(((e,t)=>{let n=M(),r=[`Array`,`Boolean`,`Date`,`Error`,`Function`,`Number`,`Object`,`RegExp`,`String`,`Symbol`,`BigInt`];function i(e,t){return e[t]=!0,e}function a(e){return Array.from(new Set([...e.capIsNewExceptions,...r])).reduce(i,{})}t.exports={meta:{type:`suggestion`,docs:{description:`Require constructor names to begin with a capital letter`,recommended:!1,url:`https://eslint.org/docs/latest/rules/new-cap`},schema:[{type:`object`,properties:{newIsCap:{type:`boolean`},capIsNew:{type:`boolean`},newIsCapExceptions:{type:`array`,items:{type:`string`}},newIsCapExceptionPattern:{type:`string`},capIsNewExceptions:{type:`array`,items:{type:`string`}},capIsNewExceptionPattern:{type:`string`},properties:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{capIsNew:!0,capIsNewExceptions:r,newIsCap:!0,newIsCapExceptions:[],properties:!0}],messages:{upper:`A function with a name starting with an uppercase letter should only be used as a constructor.`,lower:`A constructor name should not start with a lowercase letter.`}},create(e){let[t]=e.options,r=!t.properties,o=t.newIsCapExceptions.reduce(i,{}),s=t.newIsCapExceptionPattern?new RegExp(t.newIsCapExceptionPattern,`u`):null,c=a(t),l=t.capIsNewExceptionPattern?new RegExp(t.capIsNewExceptionPattern,`u`):null,u={},d=e.sourceCode;function f(e){return e.callee.type===`Identifier`?e.callee.name:n.getStaticPropertyName(e.callee)||``}function p(e){let t=e.charAt(0),n=t.toLowerCase();return n===t.toUpperCase()?`non-alpha`:t===n?`lower`:`upper`}function m(e,t,i,a){let o=d.getText(t.callee);if(e[i]||e[o]||a&&a.test(o))return!0;let s=n.skipChainExpression(t.callee);return i===`UTC`&&s.type===`MemberExpression`?s.object.type===`Identifier`&&s.object.name===`Date`:r&&s.type===`MemberExpression`}function h(t,r){let i=n.skipChainExpression(t.callee);i.type===`MemberExpression`&&(i=i.property),e.report({node:t,loc:i.loc,messageId:r})}return t.newIsCap&&(u.NewExpression=function(e){let t=f(e);t&&(p(t)!==`lower`||m(o,e,t,s)||h(e,`lower`))}),t.capIsNew&&(u.CallExpression=function(e){let t=f(e);t&&(p(t)!==`upper`||m(c,e,t,l)||h(e,`upper`))}),u}}})),rt=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`new-parens`,url:`https://eslint.style/rules/new-parens`}}]},type:`layout`,docs:{description:`Enforce or disallow parentheses when invoking a constructor with no arguments`,recommended:!1,url:`https://eslint.org/docs/latest/rules/new-parens`},fixable:`code`,schema:[{enum:[`always`,`never`]}],messages:{missing:`Missing '()' invoking a constructor.`,unnecessary:`Unnecessary '()' invoking a constructor with no arguments.`}},create(e){let t=e.options[0]!==`never`,r=e.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=r.getLastToken(i),o=a&&n.isClosingParenToken(a)&&n.isOpeningParenToken(r.getTokenBefore(a))&&i.callee.range[1]<i.range[1];t?o||e.report({node:i,messageId:`missing`,fix:e=>e.insertTextAfter(i,`()`)}):o&&e.report({node:i,messageId:`unnecessary`,fix:e=>[e.remove(r.getTokenBefore(a)),e.remove(a),e.insertTextBefore(i,`(`),e.insertTextAfter(i,`)`)]})}}}}})),it=n(((e,t)=>{let n=M();t.exports={meta:{type:`layout`,docs:{description:`Require or disallow an empty line after variable declarations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-after-var`},schema:[{enum:[`never`,`always`]}],fixable:`whitespace`,messages:{expected:`Expected blank line after variable declarations.`,unexpected:`Unexpected blank line after variable declarations.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(e){let t=e.sourceCode,r=e.options[0]===`never`?`never`:`always`,i=t.getAllComments().reduce((e,t)=>(e[t.loc.start.line]=t.loc.end.line,e),{});function a(e){let n=t.getLastToken(e);if(n.type===`Punctuator`&&n.value===`;`){let e=t.getTokenBefore(n);if(e.loc.end.line!==n.loc.start.line)return e}return n}function o(e){return e===`var`||e===`let`||e===`const`}function s(e){return e===`ForStatement`||e===`ForInStatement`||e===`ForOfStatement`}function c(e){return e===`ExportNamedDeclaration`||e===`ExportSpecifier`||e===`ExportDefaultDeclaration`||e===`ExportAllDeclaration`}function l(e){let n=t.getTokenAfter(e);return!n||n.type===`Punctuator`&&n.value===`}`}function u(e){let t=i[e];return i[t+1]?u(t+1):t}function d(e,t){return e.loc.start.line>u(t)+1}function f(f){let p=a(f),m=p===t.getLastToken(f)?t.getTokenAfter(f):t.getLastToken(f),h=p.loc.end.line+1;if(!m||s(f.parent.type)||c(f.parent.type)||m.type===`Keyword`&&o(m.value)||l(f))return;let g=m.loc.start.line>h,_=i[h]!==void 0;r===`never`&&g&&!_&&e.report({node:f,messageId:`unexpected`,fix(e){let r=t.getText().slice(p.range[1],m.range[0]).split(n.LINEBREAK_MATCHER);return e.replaceTextRange([p.range[1],m.range[0]],`${r.slice(0,-1).join(``)}\n${r.at(-1)}`)}}),r===`always`&&(!g||_&&!d(m,h))&&e.report({node:f,messageId:`expected`,fix(e){return(g?u(h):p.loc.end.line)===m.loc.start.line?e.insertTextBefore(m,`
46
+
47
+ `):e.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],`
48
+ `)}})}return{VariableDeclaration:f}}}})),at=n(((e,t)=>{t.exports={meta:{type:`layout`,docs:{description:"Require an empty line before `return` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-before-return`},fixable:`whitespace`,schema:[],messages:{expected:`Expected newline before return statement.`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/blog/2017/06/eslint-v4.0.0-released/`,deprecatedSince:`4.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`The new rule moved to a plugin.`,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements#examples`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]}},create(e){let t=e.sourceCode;function n(e,n){let r=t.getTokenBefore(e);return n.includes(r.value)}function r(e){let t=e.parent.type;return e.parent.body?Array.isArray(e.parent.body)?e.parent.body[0]===e:e.parent.body===e:t===`IfStatement`?n(e,[`else`,`)`]):t===`DoWhileStatement`?n(e,[`do`]):t===`SwitchCase`?n(e,[`:`]):n(e,[`)`])}function i(e,n){let r=t.getCommentsBefore(e),i=0;return r.length&&r.forEach(t=>{i++,t.type===`Block`&&(i+=t.loc.end.line-t.loc.start.line),t.loc.start.line===n&&i--,t.loc.end.line===e.loc.start.line&&i--}),i}function a(e){let n=t.getTokenBefore(e),r;return r=n?n.loc.end.line:0,r}function o(e){let t=e.loc.start.line,n=a(e),r=i(e,n);return t-n-r>1}function s(e){let n=t.getCommentsBefore(e),r=n.at(-1),i=t.getTokenBefore(e);return n.length===0||r.loc.end.line===i.loc.end.line&&r.loc.end.line!==e.loc.start.line}return{ReturnStatement(n){!r(n)&&!o(n)&&e.report({node:n,messageId:`expected`,fix(e){if(s(n)){let r=t.getTokenBefore(n),i=n.loc.start.line===r.loc.end.line?`
49
+
50
+ `:`
51
+ `;return e.insertTextBefore(n,i)}return null}})}}}}})),$=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`newline-per-chained-call`,url:`https://eslint.style/rules/newline-per-chained-call`}}]},type:`layout`,docs:{description:`Require a newline after each call in a method chain`,recommended:!1,url:`https://eslint.org/docs/latest/rules/newline-per-chained-call`},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,r=e.sourceCode;function i(e){return e.computed?e.optional?`?.[`:`[`:e.optional?`?.`:`.`}function a(e){let t=i(e),a=r.getText(e.property).split(n.LINEBREAK_MATCHER),o=e.computed&&a.length===1?`]`:``;return t+a[0]+o}return{"CallExpression:exit"(i){let o=n.skipChainExpression(i.callee);if(o.type!==`MemberExpression`)return;let s=n.skipChainExpression(o.object),c=1;for(;s&&s.callee;)c+=1,s=n.skipChainExpression(n.skipChainExpression(s.callee).object);if(c>t&&n.isTokenOnSameLine(o.object,o.property)){let t=r.getTokenAfter(o.object,n.isNotClosingParenToken);e.report({node:o.property,loc:{start:t.loc.start,end:o.loc.end},messageId:`expected`,data:{callee:a(o)},fix(e){return e.insertTextBefore(t,`
52
+ `)}})}}}}}})),ot=n(((e,t)=>{let{getStaticPropertyName:n,getVariableByName:r,skipChainExpression:i}=M();function a(e){return/^(?:alert|confirm|prompt)$/u.test(e)}function o(e,t){let n=e.references.filter(e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]);return n.length===1?n[0]:null}function s(e,t){let n=o(e,t);return n&&n.resolved&&n.resolved.defs.length>0}function c(e,t){return e.type===`global`&&t.type===`ThisExpression`?!0:t.type===`Identifier`&&(t.name===`window`||t.name===`globalThis`&&r(e,`globalThis`))?!s(e,t):!1}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-alert`},schema:[],messages:{unexpected:`Unexpected {{name}}.`}},create(e){let t=e.sourceCode;return{CallExpression(r){let o=i(r.callee),l=t.getScope(r);if(o.type===`Identifier`){let t=o.name;!s(l,o)&&a(o.name)&&e.report({node:r,messageId:`unexpected`,data:{name:t}})}else if(o.type===`MemberExpression`&&c(l,o.object)){let t=n(o);a(t)&&e.report({node:r,messageId:`unexpected`,data:{name:t}})}}}}}})),st=n(((e,t)=>{let{getVariableByName:n,isClosingParenToken:r,isOpeningParenToken:i,isStartOfExpressionStatement:a,needsPrecedingSemicolon:o}=M();t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,docs:{description:"Disallow `Array` constructors",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-array-constructor`},fixable:`code`,hasSuggestions:!0,schema:[],messages:{preferLiteral:`The array literal notation [] is preferable.`,useLiteral:`Replace with an array literal.`,useLiteralAfterSemicolon:`Replace with an array literal, add preceding semicolon.`}},create(e){let t=e.sourceCode;function s(e){let n=t.getFirstToken(e),r=t.getLastToken(e),a=t.getLastToken(e.callee);for(;a!==r&&!i(a);)a=t.getTokenAfter(a);return t.commentsExistBetween(n,a)}function c(e){let n=t.getLastToken(e);if(!r(n))return``;let a=e.callee;do if(a=t.getTokenAfter(a),!a||a===n)return``;while(!i(a));return t.text.slice(a.range[1],n.range[0])}function l(r){if(r.callee.type!==`Identifier`||r.callee.name!==`Array`||r.typeArguments||r.arguments.length===1&&r.arguments[0].type!==`SpreadElement`)return;let i=n(t.getScope(r),`Array`);if(i&&i.identifiers.length===0){let n=c(r),i,l,u=r.arguments.reduce((e,t)=>t.type===`SpreadElement`?e:e+1,0),d=r.optional||r.arguments.length>0&&u<2||s(r);a(r)&&o(t,r)?(i=`;[${n}]`,l=`useLiteralAfterSemicolon`):(i=`[${n}]`,l=`useLiteral`),e.report({node:r,messageId:`preferLiteral`,fix(e){return d?null:e.replaceText(r,i)},suggest:[{messageId:l,fix(e){return d?e.replaceText(r,i):null}}]})}}return{CallExpression:l,NewExpression:l}}}})),ct=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:`Disallow using an async function as a Promise executor`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-async-promise-executor`},fixable:null,schema:[],messages:{async:`Promise executor functions should not be async.`}},create(e){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(t){e.report({node:e.sourceCode.getFirstToken(t.arguments[0],e=>e.value===`async`),messageId:`async`})}}}}})),lt=n(((e,t)=>{function n(e){let t=e.type;return t===`FunctionDeclaration`||t===`FunctionExpression`||t===`ArrowFunctionExpression`||t===`ForOfStatement`&&e.await===!0}function r(e,t){switch(t.type){case`ForStatement`:return e===t.test||e===t.update||e===t.body;case`ForOfStatement`:case`ForInStatement`:return e===t.body||e===t.left&&e.kind===`await using`;case`WhileStatement`:case`DoWhileStatement`:return e===t.test||e===t.body;default:return!1}}t.exports={meta:{type:`problem`,docs:{description:"Disallow `await` inside of loops",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-await-in-loop`},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(e){function t(t){if(t.type===`VariableDeclaration`&&t.kind!==`await using`||t.type===`ForOfStatement`&&!t.await)return;let i=t,a=i.parent;for(;a&&!n(a);){if(r(i,a)){e.report({node:t,messageId:`unexpectedAwait`});return}i=a,a=a.parent}}return{AwaitExpression:t,ForOfStatement:t,VariableDeclaration:t}}}})),ut=n(((e,t)=>{let n=[`^`,`|`,`&`,`<<`,`>>`,`>>>`,`^=`,`|=`,`&=`,`<<=`,`>>=`,`>>>=`,`~`];t.exports={meta:{type:`suggestion`,defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:`Disallow bitwise operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-bitwise`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{enum:n},uniqueItems:!0},int32Hint:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Unexpected use of '{{operator}}'.`}},create(e){let[{allow:t,int32Hint:r}]=e.options;function i(t){e.report({node:t,messageId:`unexpected`,data:{operator:t.operator}})}function a(e){return n.includes(e.operator)}function o(e){return t.includes(e.operator)}function s(e){return r&&e.operator===`|`&&e.right&&e.right.type===`Literal`&&e.right.value===0}function c(e){a(e)&&!o(e)&&!s(e)&&i(e)}return{AssignmentExpression:c,BinaryExpression:c,UnaryExpression:c}}}})),dt=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-deprecated-api`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md`}}]},type:`problem`,docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-buffer-constructor`},schema:[],messages:{deprecated:`{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead.`}},create(e){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(t){e.report({node:t,messageId:`deprecated`,data:{expr:t.type===`CallExpression`?`Buffer()`:`new Buffer()`}})}}}}})),ft=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-caller`},schema:[],messages:{unexpected:`Avoid arguments.{{prop}}.`}},create(e){return{MemberExpression(t){let n=t.object.name,r=t.property.name;n===`arguments`&&!t.computed&&r&&r.match(/^calle[er]$/u)&&e.report({node:t,messageId:`unexpected`,data:{prop:r}})}}}}})),pt=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow lexical declarations in case clauses`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-case-declarations`},hasSuggestions:!0,schema:[],messages:{addBrackets:`Add {} brackets around the case block.`,unexpected:`Unexpected lexical declaration in case block.`}},create(e){function t(e){switch(e.type){case`FunctionDeclaration`:case`ClassDeclaration`:return!0;case`VariableDeclaration`:return e.kind!==`var`;default:return!1}}return{SwitchCase(n){for(let r=0;r<n.consequent.length;r++){let i=n.consequent[r];t(i)&&e.report({node:i,messageId:`unexpected`,suggest:[{messageId:`addBrackets`,fix:e=>[e.insertTextBefore(n.consequent[0],`{ `),e.insertTextAfter(n.consequent.at(-1),` }`)]}]})}}}}}})),mt=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-catch-shadow`},deprecated:{message:`This rule was renamed.`,url:`https://eslint.org/blog/2018/07/eslint-v5.1.0-released/`,deprecatedSince:`5.1.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-shadow`,url:`https://eslint.org/docs/rules/no-shadow`}}]},schema:[],messages:{mutable:`Value of '{{name}}' may be overwritten in IE 8 and earlier.`}},create(e){let t=e.sourceCode;function r(e,t){return n.getVariableByName(e,t)!==null}return{"CatchClause[param!=null]"(n){let i=t.getScope(n);i.block===n&&(i=i.upper),r(i,n.param.name)&&e.report({node:n,messageId:`mutable`,data:{name:n.param.name}})}}}}})),ht=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:`Disallow reassigning class members`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-class-assign`},schema:[],messages:{class:`'{{name}}' is a class.`}},create(e){let t=e.sourceCode;function r(t){n.getModifyingReferences(t.references).forEach(t=>{e.report({node:t.identifier,messageId:`class`,data:{name:t.identifier.name}})})}function i(e){t.getDeclaredVariables(e).forEach(r)}return{ClassDeclaration:i,ClassExpression:i}}}})),gt=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:"Disallow comparing against `-0`",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-compare-neg-zero`},fixable:null,schema:[],messages:{unexpected:`Do not use the '{{operator}}' operator to compare against -0.`}},create(e){function t(e){return e.type===`UnaryExpression`&&e.operator===`-`&&e.argument.type===`Literal`&&e.argument.value===0}let n=new Set([`>`,`>=`,`<`,`<=`,`==`,`===`,`!=`,`!==`]);return{BinaryExpression(r){n.has(r.operator)&&(t(r.left)||t(r.right))&&e.report({node:r,messageId:`unexpected`,data:{operator:r.operator}})}}}}})),_t=n(((e,t)=>{let n=M(),r=new Set([`IfStatement`,`WhileStatement`,`DoWhileStatement`,`ForStatement`,`ConditionalExpression`]),i={DoWhileStatement:`a 'do...while' statement`,ForStatement:`a 'for' statement`,IfStatement:`an 'if' statement`,WhileStatement:`a 'while' statement`};t.exports={meta:{type:`problem`,defaultOptions:[`except-parens`],docs:{description:`Disallow assignment operators in conditional expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-cond-assign`},schema:[{enum:[`except-parens`,`always`]}],messages:{unexpected:`Unexpected assignment within {{type}}.`,missing:`Expected a conditional expression and instead saw an assignment.`}},create(e){let[t]=e.options,a=e.sourceCode;function o(e){return e.parent&&r.has(e.parent.type)&&e===e.parent.test}function s(e){let t=e;do if(o(t))return t.parent;while((t=t.parent)&&!n.isFunction(t));return null}function c(e){let t=a.getTokenBefore(e,1),r=a.getTokenAfter(e,1);return n.isParenthesised(a,e)&&t&&n.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&n.isClosingParenToken(r)&&r.range[0]>=e.range[1]}function l(t){t.test&&t.test.type===`AssignmentExpression`&&(t.type===`ForStatement`?!n.isParenthesised(a,t.test):!c(t.test))&&e.report({node:t.test,messageId:`missing`})}function u(t){let n=s(t);n&&e.report({node:t,messageId:`unexpected`,data:{type:i[n.type]||n.type}})}return t===`always`?{AssignmentExpression:u}:{DoWhileStatement:l,ForStatement:l,IfStatement:l,WhileStatement:l,ConditionalExpression:l}}}})),vt=n(((e,t)=>{let n=M();function r(e){return e&&e.type===`ConditionalExpression`}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-confusing-arrow`,url:`https://eslint.style/rules/no-confusing-arrow`}}]},type:`suggestion`,docs:{description:`Disallow arrow functions where they could be confused with comparisons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-confusing-arrow`},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]||{},i=t.allowParens||t.allowParens===void 0,a=t.onlyOneSimpleParam,o=e.sourceCode;function s(t){let s=t.body;r(s)&&!(i&&n.isParenthesised(o,s))&&!(a&&!(t.params.length===1&&t.params[0].type===`Identifier`))&&e.report({node:t,messageId:`confusing`,fix(e){return i&&e.replaceText(t.body,`(${o.getText(t.body)})`)}})}return{ArrowFunctionExpression:s}}}})),yt=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-console`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:`Unexpected console statement.`,limited:`Unexpected console statement. Only these console methods are allowed: {{ allowed }}.`,removeConsole:`Remove the console.{{ propertyName }}().`,removeMethodCall:`Remove the console method call.`}},create(e){let[{allow:t=[]}]=e.options,r=e.sourceCode;function i(e){let t=e.identifier;return t&&t.name===`console`}function a(e){let r=n.getStaticPropertyName(e);return r&&t.includes(r)}function o(e){let t=e.identifier,n=t.parent;return n.type===`MemberExpression`&&n.object===t&&!a(n)}function s(e){let t=/^[:;{]$/u,n=/^[-[(/+`]/u,i=r.getTokenBefore(e),a=r.getTokenAfter(e);return!!a&&n.test(a.value)&&a.value!==`++`&&a.value!==`--`&&!!i&&!t.test(i.value)}function c(e){return e.parent.type===`CallExpression`&&e.parent.callee===e&&e.parent.parent.type===`ExpressionStatement`&&n.STATEMENT_LIST_PARENTS.has(e.parent.parent.parent.type)&&!s(e.parent.parent)}function l(n){let r=n.identifier.parent,i=[];if(c(r)){let e={fix(e){return e.remove(r.parent.parent)}};r.computed?e.messageId=`removeMethodCall`:(e.messageId=`removeConsole`,e.data={propertyName:r.property.name}),i.push(e)}e.report({node:r,loc:r.loc,messageId:t.length?`limited`:`unexpected`,data:{allowed:t.join(`, `)},suggest:i})}return{"Program:exit"(e){let t=r.getScope(e),a=n.getVariableByName(t,`console`),s=a&&a.defs.length>0,c=a?a.references:t.through.filter(i);s||c.filter(o).forEach(l)}}}}})),bt=n(((e,t)=>{let n=M(),r=new Set([`const`,`using`,`await using`]);t.exports={meta:{type:`problem`,docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-const-assign`},schema:[],messages:{const:`'{{name}}' is constant.`}},create(e){let t=e.sourceCode;function i(t){n.getModifyingReferences(t.references).forEach(t=>{e.report({node:t.identifier,messageId:`const`,data:{name:t.identifier.name}})})}return{VariableDeclaration(e){r.has(e.kind)&&t.getDeclaredVariables(e).forEach(i)}}}}})),xt=n(((e,t)=>{let{isNullLiteral:n,isConstant:r,isReferenceToGlobalVariable:i,isLogicalAssignmentOperator:a,ECMASCRIPT_GLOBALS:o}=M(),s=new Set([`+`,`-`,`*`,`/`,`%`,`|`,`^`,`&`,`**`,`<<`,`>>`,`>>>`]);function c(e,t){return n(t)||t.type===`Identifier`&&t.name===`undefined`&&i(e,t)||t.type===`UnaryExpression`&&t.operator===`void`}function l(e,t,n){if(n&&c(e,t))return!1;switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:case`NewExpression`:case`Literal`:case`TemplateLiteral`:case`UpdateExpression`:case`BinaryExpression`:return!0;case`CallExpression`:{if(t.callee.type!==`Identifier`)return!1;let n=t.callee.name;return(n===`Boolean`||n===`String`||n===`Number`)&&i(e,t.callee)}case`LogicalExpression`:return t.operator===`??`&&l(e,t.right,!0);case`AssignmentExpression`:return t.operator===`=`?l(e,t.right,n):!a(t.operator);case`UnaryExpression`:return!0;case`SequenceExpression`:return l(e,t.expressions.at(-1),n);case`Identifier`:return t.name===`undefined`&&i(e,t);case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function u(e,t){switch(t.type){case`Literal`:return typeof t.value==`boolean`;case`CallExpression`:return t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&i(e,t.callee)&&(t.arguments.length===0||r(e,t.arguments[0],!0));case`UnaryExpression`:return t.operator===`!`&&r(e,t.argument,!0);default:return!1}}function d(e,t){switch(t.type){case`ObjectExpression`:case`ClassExpression`:return!0;case`ArrayExpression`:{let e=t.elements.filter(e=>e!==null&&e.type!==`SpreadElement`);return t.elements.length===0||e.length>1}case`ArrowFunctionExpression`:case`FunctionExpression`:return!0;case`UnaryExpression`:return t.operator===`void`||t.operator===`typeof`?!0:t.operator===`!`?r(e,t.argument,!0):!1;case`NewExpression`:return!1;case`CallExpression`:return t.callee.type===`Identifier`&&t.callee.name===`Boolean`&&i(e,t.callee)?t.arguments.length===0||r(e,t.arguments[0],!0):!1;case`Literal`:return!0;case`Identifier`:return t.name===`undefined`&&i(e,t);case`TemplateLiteral`:return t.expressions.length===0;case`AssignmentExpression`:return t.operator===`=`?d(e,t.right):!1;case`SequenceExpression`:return d(e,t.expressions.at(-1));case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function f(e,t){switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:case`NewExpression`:case`TemplateLiteral`:case`Literal`:case`UpdateExpression`:return!0;case`BinaryExpression`:return s.has(t.operator);case`UnaryExpression`:return t.operator===`delete`?!1:t.operator===`!`?r(e,t.argument,!0):!0;case`SequenceExpression`:return f(e,t.expressions.at(-1));case`Identifier`:return t.name===`undefined`&&i(e,t);case`AssignmentExpression`:return t.operator===`=`?f(e,t.right):!a(t.operator);case`CallExpression`:{if(t.callee.type!==`Identifier`)return!1;let n=t.callee.name;return(n===`String`||n===`Number`)&&i(e,t.callee)?!0:n===`Boolean`&&i(e,t.callee)?t.arguments.length===0||r(e,t.arguments[0],!0):!1}case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function p(e,t){switch(t.type){case`ObjectExpression`:case`ArrayExpression`:case`ArrowFunctionExpression`:case`FunctionExpression`:case`ClassExpression`:return!0;case`NewExpression`:return t.callee.type===`Identifier`?Object.hasOwn(o,t.callee.name)&&i(e,t.callee):!1;case`Literal`:return typeof t.regex==`object`;case`SequenceExpression`:return p(e,t.expressions.at(-1));case`AssignmentExpression`:return t.operator===`=`?p(e,t.right):!1;case`ConditionalExpression`:return p(e,t.consequent)&&p(e,t.alternate);case`JSXElement`:case`JSXFragment`:return!1;default:return!1}}function m(e,t,n,r){if(r===`==`||r===`!=`){if(c(e,t)&&l(e,n,!1)||u(e,t)&&d(e,n))return n}else if((r===`===`||r===`!==`)&&(c(e,t)&&l(e,n,!1)||u(e,t)&&f(e,n)))return n;return null}t.exports={meta:{type:`problem`,docs:{description:`Disallow expressions where the operation doesn't affect the value`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-constant-binary-expression`},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:`Unexpected comparison to newly constructed object. These two values can never be equal.`,bothAlwaysNew:`Unexpected comparison of two newly constructed objects. These two values can never be equal.`}},create(e){let t=e.sourceCode;return{LogicalExpression(n){let{operator:i,left:a}=n,o=t.getScope(n);(i===`&&`||i===`||`)&&r(o,a,!0)?e.report({node:a,messageId:`constantShortCircuit`,data:{property:`truthiness`,operator:i}}):i===`??`&&l(o,a,!1)&&e.report({node:a,messageId:`constantShortCircuit`,data:{property:`nullishness`,operator:i}})},BinaryExpression(n){let r=t.getScope(n),{right:i,left:a,operator:o}=n,s=m(r,a,i,o),c=m(r,i,a,o);s?e.report({node:s,messageId:`constantBinaryOperand`,data:{operator:o,otherSide:`left`}}):c?e.report({node:c,messageId:`constantBinaryOperand`,data:{operator:o,otherSide:`right`}}):o===`===`||o===`!==`?p(r,a)?e.report({node:a,messageId:`alwaysNew`}):p(r,i)&&e.report({node:i,messageId:`alwaysNew`}):(o===`==`||o===`!=`)&&p(r,a)&&p(r,i)&&e.report({node:a,messageId:`bothAlwaysNew`})}}}}})),St=n(((e,t)=>{let{isConstant:n}=M();t.exports={meta:{type:`problem`,defaultOptions:[{checkLoops:`allExceptWhileTrue`}],docs:{description:`Disallow constant expressions in conditions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-constant-condition`},schema:[{type:`object`,properties:{checkLoops:{enum:[`all`,`allExceptWhileTrue`,`none`,!0,!1]}},additionalProperties:!1}],messages:{unexpected:`Unexpected constant condition.`}},create(e){let t=[],r=e.sourceCode,[{checkLoops:i}]=e.options;i===!0?i=`all`:i===!1&&(i=`none`);let a=new Set;function o(e){e.test&&n(r.getScope(e),e.test,!0)&&a.add(e)}function s(t){a.has(t)&&(a.delete(t),e.report({node:t.test,messageId:`unexpected`}))}function c(t){t.test&&n(r.getScope(t),t.test,!0)&&e.report({node:t.test,messageId:`unexpected`})}function l(){t.push(a),a=new Set}function u(){a=t.pop()}function d(e){(i===`all`||i===`allExceptWhileTrue`)&&o(e)}return{ConditionalExpression:c,IfStatement:c,WhileStatement(e){e.test.type===`Literal`&&e.test.value===!0&&i===`allExceptWhileTrue`||d(e)},"WhileStatement:exit":s,DoWhileStatement:d,"DoWhileStatement:exit":s,ForStatement:d,"ForStatement > .test":e=>d(e.parent),"ForStatement:exit":s,FunctionDeclaration:l,"FunctionDeclaration:exit":u,FunctionExpression:l,"FunctionExpression:exit":u,YieldExpression:()=>a.clear()}}}})),Ct=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:`Disallow returning value from constructor`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-constructor-return`},schema:[],fixable:null,messages:{unexpected:`Unexpected return statement in constructor.`}},create(e){let t=[];return{onCodePathStart(e,n){t.push(n)},onCodePathEnd(){t.pop()},ReturnStatement(n){let r=t.at(-1);r.parent&&r.parent.type===`MethodDefinition`&&r.parent.kind===`constructor`&&n.argument&&e.report({node:n,messageId:`unexpected`})}}}}})),wt=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-continue`},schema:[],messages:{unexpected:`Unexpected use of continue statement.`}},create(e){return{ContinueStatement(t){e.report({node:t,messageId:`unexpected`})}}}}})),Tt=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Object.freeze({__proto__:null});let n=2025,r,i;function a(e){return e<65?!1:e<91?!0:e<97?!1:e<123?!0:s(e)}function o(e){return e<48?!1:e<58?!0:e<65?!1:e<91||e===95?!0:e<97?!1:e<123?!0:s(e)||c(e)}function s(e){return d(e,r??=l())}function c(e){return d(e,i??=u())}function l(){return f(`4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 6 h 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 2 1 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 v 2 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 29 l g 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 7 p 13 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 5 1l s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 o 17 79 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r x o 3 o 19 22 6 0 1v c 1t 1 2 0 f 4 a 5p1 16 v 2q 36 6pq 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 5s u 2 2 2 1 2 6 3 4 a 1 69 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 3dp 3 4gd 3 5rk g h9 1wj f1 15v 3t6 6 6jt`)}function u(){return f(`53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 u 3 b l 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 26 5 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 5j 7 3t 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 1j 9 7e 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 6h 0 3 0 8 1 6 0 d7 6 32 6 6 9 3o7 9 gvt3 6n`)}function d(e,t){let n=0,r=t.length/2|0,i=0,a=0,o=0;for(;n<r;)if(i=(n+r)/2|0,a=t[2*i],o=t[2*i+1],e<a)r=i;else if(e>o)n=i+1;else return!0;return!1}function f(e){let t=0;return e.split(` `).map(e=>t+=parseInt(e,36)|0)}var p=class{constructor(e,t,n,r,i,a,o,s,c){this._raw2018=e,this._raw2019=t,this._raw2020=n,this._raw2021=r,this._raw2022=i,this._raw2023=a,this._raw2024=o,this._raw2025=s,this._raw2026=c}get es2018(){return this._set2018??=new Set(this._raw2018.split(` `))}get es2019(){return this._set2019??=new Set(this._raw2019.split(` `))}get es2020(){return this._set2020??=new Set(this._raw2020.split(` `))}get es2021(){return this._set2021??=new Set(this._raw2021.split(` `))}get es2022(){return this._set2022??=new Set(this._raw2022.split(` `))}get es2023(){return this._set2023??=new Set(this._raw2023.split(` `))}get es2024(){return this._set2024??=new Set(this._raw2024.split(` `))}get es2025(){return this._set2025??=new Set(this._raw2025.split(` `))}get es2026(){return this._set2026??=new Set(this._raw2026.split(` `))}};let m=new Set([`General_Category`,`gc`]),h=new Set([`Script`,`Script_Extensions`,`sc`,`scx`]),g=new p(`C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct`,``,``,``,``,``,``,``,``),_=new p(`Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy`,`Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo`,`Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho`,`Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,`Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi`,`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,``,``,``),v=new p(`AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space`,`Extended_Pictographic`,``,`EBase EComp EMod EPres ExtPict`,``,``,``,``,``),y=new p(``,``,``,``,``,``,`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence`,``,``);function b(e,t,n){return m.has(t)?e>=2018&&g.es2018.has(n):h.has(t)?e>=2018&&_.es2018.has(n)||e>=2019&&_.es2019.has(n)||e>=2020&&_.es2020.has(n)||e>=2021&&_.es2021.has(n)||e>=2022&&_.es2022.has(n)||e>=2023&&_.es2023.has(n):!1}function x(e,t){return e>=2018&&v.es2018.has(t)||e>=2019&&v.es2019.has(t)||e>=2021&&v.es2021.has(t)}function S(e,t){return e>=2024&&y.es2024.has(t)}function C(e){return e>=65&&e<=90||e>=97&&e<=122}function w(e){return e>=48&&e<=57}function T(e){return e>=48&&e<=55}function E(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function D(e){return e===10||e===13||e===8232||e===8233}function O(e){return e>=0&&e<=1114111}function k(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-48}function A(e){return e>=55296&&e<=56319}function j(e){return e>=56320&&e<=57343}function M(e,t){return(e-55296)*1024+(t-56320)+65536}var N=class{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}},P=class e{constructor(e,t){this.parent=e,this.base=t??this}separatedFrom(e){return this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent)?!0:this.parent?.separatedFrom(e)??!1}child(){return new e(this,null)}sibling(){return new e(this.parent,this.base)}},F=class{constructor(){this.branchID=new P(null,null),this.groupNames=new Map}clear(){this.branchID=new P(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){e!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let t=this.groupNames.get(e);if(!t)return!1;for(let e of t)if(!e.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let t=this.groupNames.get(e);if(t){t.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}};let I={at(e,t,n){return n<t?e.charCodeAt(n):-1},width(e){return 1}},L={at(e,t,n){return n<t?e.codePointAt(n):-1},width(e){return e>65535?2:1}};var R=class{constructor(){this._impl=I,this._s=``,this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,n,r){this._impl=r?L:I,this._s=e,this._end=n,this.rewind(t)}rewind(e){let t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e?(this.advance(),!0):!1}eat2(e,t){return this._cp1===e&&this._cp2===t?(this.advance(),this.advance(),!0):!1}eat3(e,t,n){return this._cp1===e&&this._cp2===t&&this._cp3===n?(this.advance(),this.advance(),this.advance(),!0):!1}},z=class extends SyntaxError{constructor(e,t){super(e),this.index=t}};function ee(e,t,n,r){let i=``;if(e.kind===`literal`){let t=e.source.slice(e.start,e.end);t&&(i=`: ${t}`)}else e.kind===`pattern`&&(i=`: /${e.source.slice(e.start,e.end)}/${`${t.unicode?`u`:``}${t.unicodeSets?`v`:``}`}`);return new z(`Invalid regular expression${i}: ${r}`,n)}let B=new Set([94,36,92,46,42,43,63,40,41,91,93,123,125,124]),te=new Set([38,33,35,36,37,42,43,44,46,58,59,60,61,62,63,64,94,96,126]),V=new Set([40,41,91,93,123,125,47,45,92,124]),H=new Set([38,45,33,35,37,44,58,59,60,61,62,64,96,126]),U={global:103,ignoreCase:105,multiline:109,unicode:117,sticky:121,dotAll:115,hasIndices:100,unicodeSets:118},W=Object.fromEntries(Object.entries(U).map(([e,t])=>[t,e]));function ne(e){return B.has(e)}function re(e){return te.has(e)}function G(e){return V.has(e)}function ie(e){return H.has(e)}function ae(e){return a(e)||e===36||e===95}function oe(e){return o(e)||e===36||e===8204||e===8205}function se(e){return C(e)||e===95}function ce(e){return se(e)||w(e)}function le(e){return e===105||e===109||e===115}var ue=class{constructor(e){this._reader=new R,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:1/0},this._lastStrValue=``,this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=e??{},this._groupSpecifiers=this.ecmaVersion>=2025?new F:new N}validateLiteral(e,t=0,n=e.length){if(this._srcCtx={source:e,start:t,end:n,kind:`literal`},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,t,n),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){let r=this.index,i=e.includes(`u`,r),a=e.includes(`v`,r);this.validateFlagsInternal(e,r,n),this.validatePatternInternal(e,t+1,r-1,{unicode:i,unicodeSets:a})}else if(t>=n)this.raise(`Empty`);else{let e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,n)}validateFlags(e,t=0,n=e.length){this._srcCtx={source:e,start:t,end:n,kind:`flags`},this.validateFlagsInternal(e,t,n)}validatePattern(e,t=0,n=e.length,r=void 0){this._srcCtx={source:e,start:t,end:n,kind:`pattern`},this.validatePatternInternal(e,t,n,r)}validatePatternInternal(e,t=0,n=e.length,r=void 0){let i=this._parseFlagsOptionToMode(r,n);this._unicodeMode=i.unicodeMode,this._nFlag=i.nFlag,this._unicodeSetsMode=i.unicodeSetsMode,this.reset(e,t,n),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(t),this.consumePattern())}validateFlagsInternal(e,t,n){let r=this.parseFlags(e,t,n);this.onRegExpFlags(t,n,r)}_parseFlagsOptionToMode(e,t){let n=!1,r=!1;return e&&this.ecmaVersion>=2015&&(typeof e==`object`?(n=!!e.unicode,this.ecmaVersion>=2024&&(r=!!e.unicodeSets)):n=e),n&&r&&this.raise(`Invalid regular expression flags`,{index:t+1,unicode:n,unicodeSets:r}),{unicodeMode:n||r,nFlag:n&&this.ecmaVersion>=2018||r||!!(this._options.strict&&this.ecmaVersion>=2023),unicodeSetsMode:r}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){return this._options.ecmaVersion??n}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onRegExpFlags(e,t,n){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,t,n),this._options.onFlags&&this._options.onFlags(e,t,n.global,n.ignoreCase,n.multiline,n.unicode,n.sticky,n.dotAll,n.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,n){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,n)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onModifiersEnter(e){this._options.onModifiersEnter&&this._options.onModifiersEnter(e)}onModifiersLeave(e,t){this._options.onModifiersLeave&&this._options.onModifiersLeave(e,t)}onAddModifiers(e,t,n){this._options.onAddModifiers&&this._options.onAddModifiers(e,t,n)}onRemoveModifiers(e,t,n){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(e,t,n)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,n){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,n)}onQuantifier(e,t,n,r,i){this._options.onQuantifier&&this._options.onQuantifier(e,t,n,r,i)}onLookaroundAssertionEnter(e,t,n){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,n)}onLookaroundAssertionLeave(e,t,n,r){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,n,r)}onEdgeAssertion(e,t,n){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,n)}onWordBoundaryAssertion(e,t,n,r){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,n,r)}onAnyCharacterSet(e,t,n){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,n)}onEscapeCharacterSet(e,t,n,r){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,n,r)}onUnicodePropertyCharacterSet(e,t,n,r,i,a,o){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,n,r,i,a,o)}onCharacter(e,t,n){this._options.onCharacter&&this._options.onCharacter(e,t,n)}onBackreference(e,t,n){this._options.onBackreference&&this._options.onBackreference(e,t,n)}onCharacterClassEnter(e,t,n){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t,n)}onCharacterClassLeave(e,t,n){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,n)}onCharacterClassRange(e,t,n,r){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,n,r)}onClassIntersection(e,t){this._options.onClassIntersection&&this._options.onClassIntersection(e,t)}onClassSubtraction(e,t){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,t)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,t){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,t)}onStringAlternativeEnter(e,t){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,t)}onStringAlternativeLeave(e,t,n){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,t,n)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,n){this._reader.reset(e,t,n,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,n){return this._reader.eat3(e,t,n)}raise(e,t){throw ee(this._srcCtx,{unicode:t?.unicode??(this._unicodeMode&&!this._unicodeSetsMode),unicodeSets:t?.unicodeSets??this._unicodeSetsMode},t?.index??this.index,e)}eatRegExpBody(){let e=this.index,t=!1,n=!1;for(;;){let r=this.currentCodePoint;if(r===-1||D(r)){let e=t?`character class`:`regular expression`;this.raise(`Unterminated ${e}`)}if(n)n=!1;else if(r===92)n=!0;else if(r===91)t=!0;else if(r===93)t=!1;else if(r===47&&!t||r===42&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let t=this.currentCodePoint;if(this.currentCodePoint!==-1){t===41&&this.raise(`Unmatched ')'`),t===92&&this.raise(`\\ at end of pattern`),(t===93||t===125)&&this.raise(`Lone quantifier brackets`);let e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(let e of this._backreferenceNames)this._groupSpecifiers.hasInPattern(e)||this.raise(`Invalid named capture referenced`);this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,t=!1,n=!1,r=0,i=0;for(;(i=this.currentCodePoint)!==-1;)n?n=!1:i===92?n=!0:i===91?t=!0:i===93?t=!1:i===40&&!t&&(this.nextCodePoint!==63||this.nextCodePoint2===60&&this.nextCodePoint3!==61&&this.nextCodePoint3!==33)&&(r+=1),this.advance();return this.rewind(e),r}consumeDisjunction(){let e=this.index,t=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(t++);while(this.eat(124));this.consumeQuantifier(!0)&&this.raise(`Nothing to repeat`),this.eat(123)&&this.raise(`Lone quantifier brackets`),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let t=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(t,e);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,`start`),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,`end`),!0;if(this.eat2(92,66))return this.onWordBoundaryAssertion(e,this.index,`word`,!0),!0;if(this.eat2(92,98))return this.onWordBoundaryAssertion(e,this.index,`word`,!1),!0;if(this.eat2(40,63)){let t=this.ecmaVersion>=2018&&this.eat(60),n=!1;if(this.eat(61)||(n=this.eat(33))){let r=t?`lookbehind`:`lookahead`;return this.onLookaroundAssertionEnter(e,r,n),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,r,n),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let t=this.index,n=0,r=0,i=!1;if(this.eat(42))n=0,r=1/0;else if(this.eat(43))n=1,r=1/0;else if(this.eat(63))n=0,r=1;else if(this.eatBracedQuantifier(e))({min:n,max:r}=this._lastRange);else return!1;return i=!this.eat(63),e||this.onQuantifier(t,this.index,n,r,i),!0}eatBracedQuantifier(e){let t=this.index;if(this.eat(123)){if(this.eatDecimalDigits()){let t=this._lastIntValue,n=t;if(this.eat(44)&&(n=this.eatDecimalDigits()?this._lastIntValue:1/0),this.eat(125))return!e&&n<t&&this.raise(`numbers out of order in {} quantifier`),this._lastRange={min:t,max:n},!0}!e&&(this._unicodeMode||this.strict)&&this.raise(`Incomplete quantifier`),this.rewind(t)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(46)?(this.onAnyCharacterSet(this.index-1,this.index,`any`),!0):!1}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(92)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return this.eat2(40,63)?(this.onGroupEnter(e),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(58)||(this.rewind(e+1),this.raise(`Invalid group`)),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this.onGroupLeave(e,this.index),!0):!1}consumeModifiers(){let e=this.index,t=this.eatModifiers(),n=this.index,r=this.eat(45);if(!t&&!r)return!1;this.onModifiersEnter(e);let i=this.parseModifiers(e,n);if(this.onAddModifiers(e,n,i),r){let e=this.index;!this.eatModifiers()&&!t&&this.currentCodePoint===58&&this.raise(`Invalid empty flags`);let n=this.parseModifiers(e,this.index);for(let[e]of Object.entries(n).filter(([,e])=>e))i[e]&&this.raise(`Duplicated flag '${String.fromCodePoint(U[e])}'`);this.onRemoveModifiers(e,this.index,n)}return this.onModifiersLeave(e,this.index),!0}consumeCapturingGroup(){let e=this.index;if(this.eat(40)){let t=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())t=this._lastStrValue;else if(this.currentCodePoint===63)return this.rewind(e),!1}else if(this.currentCodePoint===63)return this.rewind(e),!1;return this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(41)||this.raise(`Unterminated group`),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return this.currentCodePoint===92&&this.nextCodePoint===99?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,92),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise(`Nothing to repeat`),!1}consumePatternCharacter(){let e=this.index,t=this.currentCodePoint;return t!==-1&&!ne(t)?(this.advance(),this.onCharacter(e,this.index,t),!0):!1}consumeExtendedPatternCharacter(){let e=this.index,t=this.currentCodePoint;return t!==-1&&t!==94&&t!==36&&t!==92&&t!==46&&t!==42&&t!==43&&t!==63&&t!==40&&t!==41&&t!==91&&t!==124?(this.advance(),this.onCharacter(e,this.index,t),!0):!1}consumeGroupSpecifier(){let e=this.index;if(this.eat(63)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise(`Duplicate capture group name`)}this.rewind(e)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}consumeCharacterClassEscape(){let e=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`digit`,!1),{};if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`digit`,!0),{};if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`space`,!1),{};if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`space`,!0),{};if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`word`,!1),{};if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,`word`,!0),{};let t=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(112)||(t=this.eat(80)))){this._lastIntValue=-1;let n=null;if(this.eat(123)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(125))return t&&n.strings&&this.raise(`Invalid property name`),this.onUnicodePropertyCharacterSet(e-1,this.index,`property`,n.key,n.value,t,n.strings??!1),{mayContainStrings:n.strings};this.raise(`Invalid property name`)}return null}consumeCharacterEscape(){let e=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(e-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let e=this.index;if(this.eat(107)){if(this.eatGroupName()){let t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise(`Invalid named reference`)}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,this._unicodeSetsMode);let n=this.consumeClassContents();return this.eat(93)||(this.currentCodePoint===-1&&this.raise(`Unterminated character class`),this.raise(`Invalid character in character class`)),t&&n.mayContainStrings&&this.raise(`Negated character class may contain strings`),this.onCharacterClassLeave(e,this.index,t),n}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===93?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let t=this.index;if(!this.consumeClassAtom())break;let n=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;let r=this._lastIntValue;if(n===-1||r===-1){e&&this.raise(`Invalid character class`);continue}n>r&&this.raise(`Range out of order in character class`),this.onCharacterClassRange(t,this.index,n,r)}return{}}consumeClassAtom(){let e=this.index,t=this.currentCodePoint;if(t!==-1&&t!==92&&t!==93)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===99)return this._lastIntValue=92,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===99&&(w(t=this.nextCodePoint)||t===95)?(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,t=!1,n=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};t=!1}else if(n=this.consumeClassSetOperand())t=n.mayContainStrings;else{let e=this.currentCodePoint;e===92&&(this.advance(),this.raise(`Invalid escape`)),e===this.nextCodePoint&&re(e)&&this.raise(`Invalid set operation in character class`),this.raise(`Invalid character in character class`)}if(this.eat2(38,38)){for(;this.currentCodePoint!==38&&(n=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),n.mayContainStrings||(t=!1),!this.eat2(38,38))return{mayContainStrings:t};this.raise(`Invalid character in character class`)}if(this.eat2(45,45)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(45,45))return{mayContainStrings:t};this.raise(`Invalid character in character class`)}return this.consumeClassUnionRight({mayContainStrings:t})}consumeClassUnionRight(e){let t=e.mayContainStrings;for(;;){let e=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(e);continue}let n=this.consumeClassSetOperand();if(n){n.mayContainStrings&&(t=!0);continue}break}return{mayContainStrings:t}}consumeClassSetRangeFromOperator(e){let t=this.index,n=this._lastIntValue;if(this.eat(45)){if(this.consumeClassSetCharacter()){let t=this._lastIntValue;return(n===-1||t===-1)&&this.raise(`Invalid character class`),n>t&&this.raise(`Range out of order in character class`),this.onCharacterClassRange(e,this.index,n,t),!0}this.rewind(t)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(91)){let t=this.eat(94);this.onCharacterClassEnter(e,t,!0);let n=this.consumeClassContents();return this.eat(93)||this.raise(`Unterminated character class`),t&&n.mayContainStrings&&this.raise(`Negated character class may contain strings`),this.onCharacterClassLeave(e,this.index,t),n}if(this.eat(92)){let t=this.consumeCharacterClassEscape();if(t)return t;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(92,113,123)){this.onClassStringDisjunctionEnter(e);let t=0,n=!1;do this.consumeClassString(t++).mayContainStrings&&(n=!0);while(this.eat(124));if(this.eat(125))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:n};this.raise(`Unterminated class string disjunction`)}return null}consumeClassString(e){let t=this.index,n=0;for(this.onStringAlternativeEnter(t,e);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)n++;return this.onStringAlternativeLeave(t,this.index,e),{mayContainStrings:n!==1}}consumeClassSetCharacter(){let e=this.index,t=this.currentCodePoint;if((t!==this.nextCodePoint||!re(t))&&t!==-1&&!G(t))return this._lastIntValue=t,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(92)){if(this.consumeCharacterEscape())return!0;if(ie(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e,this.index,this._lastIntValue),!0;this.rewind(e)}return!1}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise(`Invalid capture group name`)}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let e=this.index,t=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===92&&this.eatRegExpUnicodeEscapeSequence(t)?n=this._lastIntValue:t&&A(n)&&j(this.currentCodePoint)&&(n=M(n,this.currentCodePoint),this.advance()),ae(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){let e=this.index,t=!this._unicodeMode&&this.ecmaVersion>=2020,n=this.currentCodePoint;return this.advance(),n===92&&this.eatRegExpUnicodeEscapeSequence(t)?n=this._lastIntValue:t&&A(n)&&j(this.currentCodePoint)&&(n=M(n,this.currentCodePoint),this.advance()),oe(n)?(this._lastIntValue=n,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){let e=this.index;if(this.eat(99)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===48&&!w(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):this.eat(118)?(this._lastIntValue=11,!0):!1}eatControlLetter(){let e=this.currentCodePoint;return C(e)?(this.advance(),this._lastIntValue=e%32,!0):!1}eatRegExpUnicodeEscapeSequence(e=!1){let t=this.index,n=e||this._unicodeMode;if(this.eat(117)){if(n&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||n&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||n)&&this.raise(`Invalid unicode escape`),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let t=this._lastIntValue;if(A(t)&&this.eat(92)&&this.eat(117)&&this.eatFixedHexDigits(4)){let e=this._lastIntValue;if(j(e))return this._lastIntValue=M(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){let e=this.index;return this.eat(123)&&this.eatHexDigits()&&this.eat(125)&&O(this._lastIntValue)?!0:(this.rewind(e),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return this.isValidIdentityEscape(e)?(this._lastIntValue=e,this.advance(),!0):!1}isValidIdentityEscape(e){return e===-1?!1:this._unicodeMode?ne(e)||e===47:this.strict?!o(e):this._nFlag?!(e===99||e===107):e!==99}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do this._lastIntValue=10*this._lastIntValue+(e-48),this.advance();while((e=this.currentCodePoint)>=48&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)){let e=this._lastStrValue;if(this.eatUnicodePropertyValue()){let t=this._lastStrValue;if(b(this.ecmaVersion,e,t))return{key:e,value:t||null};this.raise(`Invalid property name`)}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){let e=this._lastStrValue;if(b(this.ecmaVersion,`General_Category`,e))return{key:`General_Category`,value:e||null};if(x(this.ecmaVersion,e))return{key:e,value:null};if(this._unicodeSetsMode&&S(this.ecmaVersion,e))return{key:e,value:null,strings:!0};this.raise(`Invalid property name`)}return null}eatUnicodePropertyName(){for(this._lastStrValue=``;se(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==``}eatUnicodePropertyValue(){for(this._lastStrValue=``;ce(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==``}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise(`Invalid escape`),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;w(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+k(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;E(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+k(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=e*64+t*8+this._lastIntValue:this._lastIntValue=e*8+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return T(e)?(this.advance(),this._lastIntValue=e-48,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let t=this.index;this._lastIntValue=0;for(let n=0;n<e;++n){let e=this.currentCodePoint;if(!E(e))return this.rewind(t),!1;this._lastIntValue=16*this._lastIntValue+k(e),this.advance()}return!0}eatModifiers(){let e=!1;for(;le(this.currentCodePoint);)this.advance(),e=!0;return e}parseModifiers(e,t){let{ignoreCase:n,multiline:r,dotAll:i}=this.parseFlags(this._reader.source,e,t);return{ignoreCase:n,multiline:r,dotAll:i}}parseFlags(e,t,n){let r={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},i=new Set;i.add(103),i.add(105),i.add(109),this.ecmaVersion>=2015&&(i.add(117),i.add(121),this.ecmaVersion>=2018&&(i.add(115),this.ecmaVersion>=2022&&(i.add(100),this.ecmaVersion>=2024&&i.add(118))));for(let a=t;a<n;++a){let n=e.charCodeAt(a);if(i.has(n)){let i=W[n];r[i]&&this.raise(`Duplicated flag '${e[a]}'`,{index:t}),r[i]=!0}else this.raise(`Invalid flag '${e[a]}'`,{index:t})}return r}};let de={},fe={},pe={};function me(e){return e.type===`Character`||e.type===`CharacterSet`||e.type===`CharacterClass`||e.type===`ExpressionCharacterClass`||e.type===`ClassStringDisjunction`}var he=class{constructor(e){this._node=de,this._expressionBufferMap=new Map,this._flags=fe,this._backreferences=[],this._capturingGroups=[],this.source=``,this.strict=!!e?.strict,this.ecmaVersion=e?.ecmaVersion??n}get pattern(){if(this._node.type!==`Pattern`)throw Error(`UnknownError`);return this._node}get flags(){if(this._flags.type!==`Flags`)throw Error(`UnknownError`);return this._flags}onRegExpFlags(e,t,{global:n,ignoreCase:r,multiline:i,unicode:a,sticky:o,dotAll:s,hasIndices:c,unicodeSets:l}){this._flags={type:`Flags`,parent:null,start:e,end:t,raw:this.source.slice(e,t),global:n,ignoreCase:r,multiline:i,unicode:a,sticky:o,dotAll:s,hasIndices:c,unicodeSets:l}}onPatternEnter(e){this._node={type:`Pattern`,parent:null,start:e,end:e,raw:``,alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,t){this._node.end=t,this._node.raw=this.source.slice(e,t);for(let e of this._backreferences){let t=e.ref,n=typeof t==`number`?[this._capturingGroups[t-1]]:this._capturingGroups.filter(e=>e.name===t);if(n.length===1){let t=n[0];e.ambiguous=!1,e.resolved=t}else e.ambiguous=!0,e.resolved=n;for(let t of n)t.references.push(e)}}onAlternativeEnter(e){let t=this._node;if(t.type!==`Assertion`&&t.type!==`CapturingGroup`&&t.type!==`Group`&&t.type!==`Pattern`)throw Error(`UnknownError`);this._node={type:`Alternative`,parent:t,start:e,end:e,raw:``,elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){let n=this._node;if(n.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onGroupEnter(e){let t=this._node;if(t.type!==`Alternative`)throw Error(`UnknownError`);this._node={type:`Group`,parent:t,start:e,end:e,raw:``,modifiers:null,alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){let n=this._node;if(n.type!==`Group`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onModifiersEnter(e){let t=this._node;if(t.type!==`Group`)throw Error(`UnknownError`);this._node={type:`Modifiers`,parent:t,start:e,end:e,raw:``,add:null,remove:null},t.modifiers=this._node}onModifiersLeave(e,t){let n=this._node;if(n.type!==`Modifiers`||n.parent.type!==`Group`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onAddModifiers(e,t,{ignoreCase:n,multiline:r,dotAll:i}){let a=this._node;if(a.type!==`Modifiers`)throw Error(`UnknownError`);a.add={type:`ModifierFlags`,parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:n,multiline:r,dotAll:i}}onRemoveModifiers(e,t,{ignoreCase:n,multiline:r,dotAll:i}){let a=this._node;if(a.type!==`Modifiers`)throw Error(`UnknownError`);a.remove={type:`ModifierFlags`,parent:a,start:e,end:t,raw:this.source.slice(e,t),ignoreCase:n,multiline:r,dotAll:i}}onCapturingGroupEnter(e,t){let n=this._node;if(n.type!==`Alternative`)throw Error(`UnknownError`);this._node={type:`CapturingGroup`,parent:n,start:e,end:e,raw:``,name:t,alternatives:[],references:[]},n.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){let n=this._node;if(n.type!==`CapturingGroup`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onQuantifier(e,t,n,r,i){let a=this._node;if(a.type!==`Alternative`)throw Error(`UnknownError`);let o=a.elements.pop();if(o==null||o.type===`Quantifier`||o.type===`Assertion`&&o.kind!==`lookahead`)throw Error(`UnknownError`);let s={type:`Quantifier`,parent:a,start:o.start,end:t,raw:this.source.slice(o.start,t),min:n,max:r,greedy:i,element:o};a.elements.push(s),o.parent=s}onLookaroundAssertionEnter(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);let i=this._node={type:`Assertion`,parent:r,start:e,end:e,raw:``,kind:t,negate:n,alternatives:[]};r.elements.push(i)}onLookaroundAssertionLeave(e,t){let n=this._node;if(n.type!==`Assertion`||n.parent.type!==`Alternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onEdgeAssertion(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);r.elements.push({type:`Assertion`,parent:r,start:e,end:t,raw:this.source.slice(e,t),kind:n})}onWordBoundaryAssertion(e,t,n,r){let i=this._node;if(i.type!==`Alternative`)throw Error(`UnknownError`);i.elements.push({type:`Assertion`,parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:n,negate:r})}onAnyCharacterSet(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);r.elements.push({type:`CharacterSet`,parent:r,start:e,end:t,raw:this.source.slice(e,t),kind:n})}onEscapeCharacterSet(e,t,n,r){let i=this._node;if(i.type!==`Alternative`&&i.type!==`CharacterClass`)throw Error(`UnknownError`);i.elements.push({type:`CharacterSet`,parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:n,negate:r})}onUnicodePropertyCharacterSet(e,t,n,r,i,a,o){let s=this._node;if(s.type!==`Alternative`&&s.type!==`CharacterClass`)throw Error(`UnknownError`);let c={type:`CharacterSet`,parent:null,start:e,end:t,raw:this.source.slice(e,t),kind:n,strings:null,key:r};if(o){if(s.type===`CharacterClass`&&!s.unicodeSets||a||i!==null)throw Error(`UnknownError`);s.elements.push(Object.assign(Object.assign({},c),{parent:s,strings:o,value:i,negate:a}))}else s.elements.push(Object.assign(Object.assign({},c),{parent:s,strings:o,value:i,negate:a}))}onCharacter(e,t,n){let r=this._node;if(r.type!==`Alternative`&&r.type!==`CharacterClass`&&r.type!==`StringAlternative`)throw Error(`UnknownError`);r.elements.push({type:`Character`,parent:r,start:e,end:t,raw:this.source.slice(e,t),value:n})}onBackreference(e,t,n){let r=this._node;if(r.type!==`Alternative`)throw Error(`UnknownError`);let i={type:`Backreference`,parent:r,start:e,end:t,raw:this.source.slice(e,t),ref:n,ambiguous:!1,resolved:pe};r.elements.push(i),this._backreferences.push(i)}onCharacterClassEnter(e,t,n){let r=this._node,i={type:`CharacterClass`,parent:r,start:e,end:e,raw:``,unicodeSets:n,negate:t,elements:[]};if(r.type===`Alternative`){let e=Object.assign(Object.assign({},i),{parent:r});this._node=e,r.elements.push(e)}else if(r.type===`CharacterClass`&&r.unicodeSets&&n){let e=Object.assign(Object.assign({},i),{parent:r,unicodeSets:n});this._node=e,r.elements.push(e)}else throw Error(`UnknownError`)}onCharacterClassLeave(e,t){let n=this._node;if(n.type!==`CharacterClass`||n.parent.type!==`Alternative`&&n.parent.type!==`CharacterClass`)throw Error(`UnknownError`);let r=n.parent;n.end=t,n.raw=this.source.slice(e,t),this._node=r;let i=this._expressionBufferMap.get(n);if(!i)return;if(n.elements.length>0)throw Error(`UnknownError`);this._expressionBufferMap.delete(n);let a={type:`ExpressionCharacterClass`,parent:r,start:n.start,end:n.end,raw:n.raw,negate:n.negate,expression:i};if(i.parent=a,n!==r.elements.pop())throw Error(`UnknownError`);r.elements.push(a)}onCharacterClassRange(e,t){let n=this._node;if(n.type!==`CharacterClass`)throw Error(`UnknownError`);let r=n.elements,i=r.pop();if(!i||i.type!==`Character`)throw Error(`UnknownError`);if(!n.unicodeSets){let e=r.pop();if(!e||e.type!==`Character`||e.value!==45)throw Error(`UnknownError`)}let a=r.pop();if(!a||a.type!==`Character`)throw Error(`UnknownError`);let o={type:`CharacterClassRange`,parent:n,start:e,end:t,raw:this.source.slice(e,t),min:a,max:i};a.parent=o,i.parent=o,r.push(o)}onClassIntersection(e,t){let n=this._node;if(n.type!==`CharacterClass`||!n.unicodeSets)throw Error(`UnknownError`);let r=n.elements.pop(),i=this._expressionBufferMap.get(n)??n.elements.pop();if(!i||!r||i.type===`ClassSubtraction`||i.type!==`ClassIntersection`&&!me(i)||!me(r))throw Error(`UnknownError`);let a={type:`ClassIntersection`,parent:n,start:e,end:t,raw:this.source.slice(e,t),left:i,right:r};i.parent=a,r.parent=a,this._expressionBufferMap.set(n,a)}onClassSubtraction(e,t){let n=this._node;if(n.type!==`CharacterClass`||!n.unicodeSets)throw Error(`UnknownError`);let r=n.elements.pop(),i=this._expressionBufferMap.get(n)??n.elements.pop();if(!i||!r||i.type===`ClassIntersection`||i.type!==`ClassSubtraction`&&!me(i)||!me(r))throw Error(`UnknownError`);let a={type:`ClassSubtraction`,parent:n,start:e,end:t,raw:this.source.slice(e,t),left:i,right:r};i.parent=a,r.parent=a,this._expressionBufferMap.set(n,a)}onClassStringDisjunctionEnter(e){let t=this._node;if(t.type!==`CharacterClass`||!t.unicodeSets)throw Error(`UnknownError`);this._node={type:`ClassStringDisjunction`,parent:t,start:e,end:e,raw:``,alternatives:[]},t.elements.push(this._node)}onClassStringDisjunctionLeave(e,t){let n=this._node;if(n.type!==`ClassStringDisjunction`||n.parent.type!==`CharacterClass`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}onStringAlternativeEnter(e){let t=this._node;if(t.type!==`ClassStringDisjunction`)throw Error(`UnknownError`);this._node={type:`StringAlternative`,parent:t,start:e,end:e,raw:``,elements:[]},t.alternatives.push(this._node)}onStringAlternativeLeave(e,t){let n=this._node;if(n.type!==`StringAlternative`)throw Error(`UnknownError`);n.end=t,n.raw=this.source.slice(e,t),this._node=n.parent}},ge=class{constructor(e){this._state=new he(e),this._validator=new ue(this._state)}parseLiteral(e,t=0,n=e.length){this._state.source=e,this._validator.validateLiteral(e,t,n);let r=this._state.pattern,i=this._state.flags,a={type:`RegExpLiteral`,parent:null,start:t,end:n,raw:e,pattern:r,flags:i};return r.parent=a,i.parent=a,a}parseFlags(e,t=0,n=e.length){return this._state.source=e,this._validator.validateFlags(e,t,n),this._state.flags}parsePattern(e,t=0,n=e.length,r=void 0){return this._state.source=e,this._validator.validatePattern(e,t,n,r),this._state.pattern}},_e=class{constructor(e){this._handlers=e}visit(e){switch(e.type){case`Alternative`:this.visitAlternative(e);break;case`Assertion`:this.visitAssertion(e);break;case`Backreference`:this.visitBackreference(e);break;case`CapturingGroup`:this.visitCapturingGroup(e);break;case`Character`:this.visitCharacter(e);break;case`CharacterClass`:this.visitCharacterClass(e);break;case`CharacterClassRange`:this.visitCharacterClassRange(e);break;case`CharacterSet`:this.visitCharacterSet(e);break;case`ClassIntersection`:this.visitClassIntersection(e);break;case`ClassStringDisjunction`:this.visitClassStringDisjunction(e);break;case`ClassSubtraction`:this.visitClassSubtraction(e);break;case`ExpressionCharacterClass`:this.visitExpressionCharacterClass(e);break;case`Flags`:this.visitFlags(e);break;case`Group`:this.visitGroup(e);break;case`Modifiers`:this.visitModifiers(e);break;case`ModifierFlags`:this.visitModifierFlags(e);break;case`Pattern`:this.visitPattern(e);break;case`Quantifier`:this.visitQuantifier(e);break;case`RegExpLiteral`:this.visitRegExpLiteral(e);break;case`StringAlternative`:this.visitStringAlternative(e);break;default:throw Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),(e.kind===`lookahead`||e.kind===`lookbehind`)&&e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitClassIntersection(e){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(e)}visitClassStringDisjunction(e){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(e)}visitClassSubtraction(e){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(e)}visitExpressionCharacterClass(e){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(e),this.visit(e.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.modifiers&&this.visit(e.modifiers),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitModifiers(e){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(e),e.add&&this.visit(e.add),e.remove&&this.visit(e.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(e)}visitModifierFlags(e){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(e),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}visitStringAlternative(e){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(e)}};function K(e,t){return new ge(t).parseLiteral(String(e))}function ve(e,t){new ue(t).validateLiteral(e)}function ye(e,t){new _e(t).visit(e)}e.AST=t,e.RegExpParser=ge,e.RegExpSyntaxError=z,e.RegExpValidator=ue,e.parseRegExpLiteral=K,e.validateRegExpLiteral=ve,e.visitRegExpAST=ye})),Et=n(((e,t)=>{let n=Tt().RegExpValidator,r=new class{constructor(){this._source=``,this._controlChars=[],this._validator=new n(this)}onPatternEnter(){this._controlChars=[]}onCharacter(e,t,n){n>=0&&n<=31&&(this._source.codePointAt(e)===n||this._source.slice(e,t).startsWith(`\\x`)||this._source.slice(e,t).startsWith(`\\u`))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(e,t){let n=typeof t==`string`&&t.includes(`u`),r=typeof t==`string`&&t.includes(`v`);this._controlChars=[],this._source=e;try{this._validator.validatePattern(e,void 0,void 0,{unicode:n,unicodeSets:r})}catch{}return this._controlChars}};t.exports={meta:{type:`problem`,docs:{description:`Disallow control characters in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-control-regex`},schema:[],messages:{unexpected:`Unexpected control character(s) in regular expression: {{controlChars}}.`}},create(e){function t(e){return e.regex?e.regex:typeof e.value==`string`&&(e.parent.type===`NewExpression`||e.parent.type===`CallExpression`)&&e.parent.callee.type===`Identifier`&&e.parent.callee.name===`RegExp`&&e.parent.arguments[0]===e?{pattern:e.value,flags:e.parent.arguments.length>1&&e.parent.arguments[1].type===`Literal`&&typeof e.parent.arguments[1].value==`string`?e.parent.arguments[1].value:null}:null}return{Literal(n){let i=t(n);if(i){let{pattern:t,flags:a}=i,o=r.collectControlChars(t,a);o.length>0&&e.report({node:n,messageId:`unexpected`,data:{controlChars:o.join(`, `)}})}}}}}})),Dt=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:"Disallow the use of `debugger`",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-debugger`},fixable:null,schema:[],messages:{unexpected:`Unexpected 'debugger' statement.`}},create(e){return{DebuggerStatement(t){e.report({node:t,messageId:`unexpected`})}}}}})),Ot=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow deleting variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-delete-var`},schema:[],messages:{unexpected:`Variables should not be deleted.`}},create(e){return{UnaryExpression(t){t.operator===`delete`&&t.argument.type===`Identifier`&&e.report({node:t,messageId:`unexpected`})}}}}})),kt=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow equal signs explicitly at the beginning of regular expressions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-div-regex`},fixable:`code`,schema:[],messages:{unexpected:`A regular expression literal can be confused with '/='.`}},create(e){let t=e.sourceCode;return{Literal(n){let r=t.getFirstToken(n);r.type===`RegularExpression`&&r.value[1]===`=`&&e.report({node:n,messageId:`unexpected`,fix(e){return e.replaceTextRange([r.range[0]+1,r.range[0]+2],`[=]`)}})}}}}})),At=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-args`},schema:[],messages:{unexpected:`Duplicate param '{{name}}'.`}},create(e){let t=e.sourceCode;function r(e){return e.type===`Parameter`}function i(i){let a=t.getDeclaredVariables(i);for(let o=0;o<a.length;++o){let s=a[o],c=s.defs.filter(r),l={start:n.getOpeningParenOfParams(i,t).loc.start,end:t.getTokenBefore(i.body).loc.end};c.length>=2&&e.report({loc:l,messageId:`unexpected`,data:{name:s.name}})}}return{FunctionDeclaration:i,FunctionExpression:i}}}})),jt=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,dialects:[`javascript`,`typescript`],language:`javascript`,docs:{description:`Disallow duplicate class members`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-class-members`},schema:[],messages:{unexpected:`Duplicate name '{{name}}'.`}},create(e){let t=[];function r(e,n){let r=t.at(-1),i=`$${e}`;return r[i]||(r[i]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),r[i][n?`static`:`nonStatic`]}return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(t){if(t.value&&t.value.type===`TSEmptyBodyFunctionExpression`)return;let i=n.getStaticPropertyName(t),a=t.type===`MethodDefinition`?t.kind:`field`;if(i===null||a===`constructor`)return;let o=r(i,t.static),s;a===`get`?(s=o.init||o.get,o.get=!0):a===`set`?(s=o.init||o.set,o.set=!0):(s=o.init||o.get||o.set,o.init=!0),s&&e.report({loc:t.key.loc,messageId:`unexpected`,data:{name:i}})}}}}})),Mt=n(((e,t)=>{let n=M();function r(e,t,n){return t.every(t=>n.some(n=>e(t,n)))}function i(e,t){return t.type===`LogicalExpression`&&t.operator===e?[...i(e,t.left),...i(e,t.right)]:[t]}let a=i.bind(null,`||`),o=i.bind(null,`&&`);t.exports={meta:{type:`problem`,docs:{description:`Disallow duplicate conditions in if-else-if chains`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-else-if`},schema:[],messages:{unexpected:`This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain.`}},create(e){let t=e.sourceCode;function i(e,r){return e.type===r.type?e.type===`LogicalExpression`&&(e.operator===`||`||e.operator===`&&`)&&e.operator===r.operator?i(e.left,r.left)&&i(e.right,r.right)||i(e.left,r.right)&&i(e.right,r.left):n.equalTokens(e,r,t):!1}let s=r.bind(null,i);return{IfStatement(t){let n=t.test,r=n.type===`LogicalExpression`&&n.operator===`&&`?[n,...o(n)]:[n],i=t,c=r.map(e=>a(e).map(o));for(;i.parent&&i.parent.type===`IfStatement`&&i.parent.alternate===i;){i=i.parent;let t=a(i.test).map(o);if(c=c.map(e=>e.filter(e=>!t.some(t=>s(t,e)))),c.some(e=>e.length===0)){e.report({node:n,messageId:`unexpected`});break}}}}}}})),Nt=n(((e,t)=>{let n=M(),r=/^(?:init|get)$/u,i=/^(?:init|set)$/u;var a=class{constructor(e,t){this.upper=e,this.node=t,this.properties=new Map}getPropertyInfo(e){let t=n.getStaticPropertyName(e);return this.properties.has(t)||this.properties.set(t,{get:!1,set:!1}),this.properties.get(t)}isPropertyDefined(e){let t=this.getPropertyInfo(e);return r.test(e.kind)&&t.get||i.test(e.kind)&&t.set}defineProperty(e){let t=this.getPropertyInfo(e);r.test(e.kind)&&(t.get=!0),i.test(e.kind)&&(t.set=!0)}};t.exports={meta:{type:`problem`,docs:{description:`Disallow duplicate keys in object literals`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-dupe-keys`},schema:[],messages:{unexpected:`Duplicate key '{{name}}'.`}},create(e){let t=null;return{ObjectExpression(e){t=new a(t,e)},"ObjectExpression:exit"(){t=t.upper},Property(r){let i=n.getStaticPropertyName(r);r.parent.type===`ObjectExpression`&&i!==null&&(i===`__proto__`&&r.kind===`init`&&!r.computed&&!r.shorthand&&!r.method||(t.isPropertyDefined(r)&&e.report({node:t.node,loc:r.key.loc,messageId:`unexpected`,data:{name:i}}),t.defineProperty(r)))}}}}})),Pt=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:`Disallow duplicate case labels`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-duplicate-case`},schema:[],messages:{unexpected:`Duplicate case label.`}},create(e){let t=e.sourceCode;function r(e,r){return e.type===r.type?n.equalTokens(e,r,t):!1}return{SwitchStatement(t){let n=[];for(let i of t.cases)if(i.test){let t=i.test;n.some(e=>r(e,t))?e.report({node:i,messageId:`unexpected`}):n.push(t)}}}}}})),Ft=n(((e,t)=>{let n=[`ImportSpecifier`,`ExportSpecifier`],r=[`ImportNamespaceSpecifier`,`ExportNamespaceSpecifier`];function i(e,t){return(t===`named`?n:r).includes(e)}function a(e){if(e.specifiers&&e.specifiers.length>0){let t=e.specifiers,n=t.findIndex(({type:e})=>i(e,`named`)||i(e,`namespace`));return t[n>-1?n:0].type}return e.type===`ExportAllDeclaration`?e.exported?`ExportNamespaceSpecifier`:`ExportAll`:`SideEffectImport`}function o(e,t){let n=a(e),r=a(t);if((e.importKind===`type`||e.exportKind===`type`)&&(t.importKind===`type`||t.exportKind===`type`)){let e=n===`ImportDefaultSpecifier`,t=r===`ImportDefaultSpecifier`,a=i(n,`named`),o=i(r,`named`);if(e&&o||t&&a)return!1}return!(n===`ExportAll`&&r!==`ExportAll`&&r!==`SideEffectImport`||n!==`ExportAll`&&n!==`SideEffectImport`&&r===`ExportAll`||i(n,`namespace`)&&i(r,`named`)||i(r,`namespace`)&&i(n,`named`))}function s(e,t,n){let r=0;for(;r<t.length;){let i=t[r];if(n&&(e.importKind===`type`||e.exportKind===`type`)!=(i.importKind===`type`||i.exportKind===`type`)){r++;continue}if(o(e,i))return!0;r++}return!1}function c(e,t){return e.filter(({declarationType:e})=>e===t).map(({node:e})=>e)}function l(e){return e&&e.source&&e.source.value?e.source.value.trim():``}function u(e,t,n,r,i,a){let o=l(t);if(n.has(o)){let l=n.get(o),u=[],d=c(l,`import`),f;i&&(f=c(l,`export`)),r===`import`?(s(t,d,a)&&u.push(`import`),i&&s(t,f,a)&&u.push(`importAs`)):r===`export`&&(s(t,f,a)&&u.push(`export`),s(t,d,a)&&u.push(`exportAs`)),u.forEach(n=>e.report({node:t,messageId:n,data:{module:o}}))}}function d(e,t,n,r,i){return function(a){let o=l(a);if(o){u(e,a,t,n,r,i);let s={node:a,declarationType:n},c=[s];t.has(o)&&(c=[...t.get(o),s]),t.set(o,c)}}}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`problem`,defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:`Disallow duplicate module imports`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-duplicate-imports`},schema:[{type:`object`,properties:{includeExports:{type:`boolean`},allowSeparateTypeImports:{type:`boolean`}},additionalProperties:!1}],messages:{import:`'{{module}}' import is duplicated.`,importAs:`'{{module}}' import is duplicated as export.`,export:`'{{module}}' export is duplicated.`,exportAs:`'{{module}}' export is duplicated as import.`}},create(e){let[{includeExports:t,allowSeparateTypeImports:n}]=e.options,r=new Map,i={ImportDeclaration:d(e,r,`import`,t,n)};return t&&(i.ExportNamedDeclaration=d(e,r,`export`,t,n),i.ExportAllDeclaration=d(e,r,`export`,t,n)),i}}})),It=n(((e,t)=>{let n=M();t.exports=class{constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let t=n.getUpperFunction(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,``)}}})),Lt=n(((e,t)=>{let n=M(),r=It();t.exports={meta:{type:`suggestion`,defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-else-return`},schema:[{type:`object`,properties:{allowElseIf:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unexpected:`Unnecessary 'else' after 'return'.`}},create(e){let[{allowElseIf:t}]=e.options,i=e.sourceCode;function a(e,t){if(e.length===0)return!0;let n=t.variableScope;if(t.variables.filter(({defs:e})=>e.length>0).some(({name:t})=>e.includes(t))||t!==n&&t.upper.type===`catch`&&t.upper.variables.some(({name:t})=>e.includes(t))||t.variables.filter(({defs:e,references:t})=>e.length===0&&t.length>0).some(({name:t})=>e.includes(t))||t.through.some(t=>e.includes(t.identifier.name)))return!1;if(t!==n){let r=t.block.range;if(n.variables.filter(({name:t})=>e.includes(t)).some(e=>e.defs.some(({node:{range:e}})=>r[0]<=e[0]&&e[1]<=r[1])))return!1}return!0}function o(e,t){if(e.type===`FunctionDeclaration`)return!1;if(e.type!==`BlockStatement`)return!0;let n=t.childScopes.find(({block:t})=>t===e);return n?a(n.variables.map(({name:e})=>e),t):!0}function s(t){let n=i.getScope(t.parent);e.report({node:t,messageId:`unexpected`,fix(e){if(!o(t,n))return null;let a=i.getFirstToken(t),s=i.getTokenBefore(a),c=i.getText(t),l=i.getTokenBefore(s),u,d;d=a.type===`Punctuator`&&a.value===`{`?i.getTokenAfter(a):a;let f=t.parent.consequent.type!==`BlockStatement`&&l.value!==`;`,p=/^[([/+`-]/u.test(d.value);if(f&&p)return null;let m=i.getLastToken(t),h=i.getTokenBefore(m);if(h.value!==`;`){let e=i.getTokenAfter(m),t=e&&/^[([/+`-]/u.test(e.value),n=e&&e.loc.start.line===h.loc.start.line;if(t||n&&e.value!==`}`)return null}return u=a.type===`Punctuator`&&a.value===`{`?c.slice(1,-1):c,new r(e,i).retainEnclosingFunction(t).replaceTextRange([s.range[0],t.range[1]],u)}})}function c(e){return e.type===`ReturnStatement`}function l(e){if(e.type===`BlockStatement`){let t=e.body.at(-1);return t&&c(t)}return c(e)}function u(e){return e.alternate&&e.consequent}function d(e){return e.type===`IfStatement`&&u(e)&&l(e.alternate)&&l(e.consequent)}function f(e){return c(e)||d(e)}function p(e){return e.type===`BlockStatement`?e.body.some(f):f(e)}function m(e){let t=e.parent;if(!n.STATEMENT_LIST_PARENTS.has(t.type))return;let r=[],i;for(let t=e;t.type===`IfStatement`;t=t.alternate){if(!t.alternate)return;r.push(t.consequent),i=t.alternate}r.every(p)&&s(i)}function h(e){let t=e.parent;if(!n.STATEMENT_LIST_PARENTS.has(t.type))return;let r=e.alternate;r&&p(e.consequent)&&s(r)}return{"IfStatement:exit":t?m:h}}}})),Rt=n(((e,t)=>{let n=M();t.exports={meta:{hasSuggestions:!0,type:`suggestion`,defaultOptions:[{allowEmptyCatch:!1}],docs:{description:`Disallow empty block statements`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty`},schema:[{type:`object`,properties:{allowEmptyCatch:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Empty {{type}} statement.`,suggestComment:`Add comment inside empty {{type}} statement.`}},create(e){let[{allowEmptyCatch:t}]=e.options,r=e.sourceCode;return{BlockStatement(i){i.body.length===0&&(n.isFunction(i.parent)||t&&i.parent.type===`CatchClause`||r.getCommentsInside(i).length>0||e.report({node:i,messageId:`unexpected`,data:{type:`block`},suggest:[{messageId:`suggestComment`,data:{type:`block`},fix(e){let t=[i.range[0]+1,i.range[1]-1];return e.replaceTextRange(t,` /* empty */ `)}}]}))},SwitchStatement(t){if(t.cases===void 0||t.cases.length===0){let i=r.getTokenAfter(t.discriminant,n.isOpeningBraceToken),a=r.getLastToken(t);if(r.commentsExistBetween(i,a))return;e.report({node:t,loc:{start:i.loc.start,end:a.loc.end},messageId:`unexpected`,data:{type:`switch`},suggest:[{messageId:`suggestComment`,data:{type:`switch`},fix(e){let t=[i.range[1],a.range[0]];return e.replaceTextRange(t,` /* empty */ `)}}]})}}}}}})),zt=n(((e,t)=>{let{RegExpParser:n,visitRegExpAST:r}=Tt(),i=new n,a=/\[\]/u;t.exports={meta:{type:`problem`,docs:{description:`Disallow empty character classes in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-character-class`},schema:[],messages:{unexpected:`Empty class.`}},create(e){return{"Literal[regex]"(t){let{pattern:n,flags:o}=t.regex;if(!a.test(n))return;let s;try{s=i.parsePattern(n,0,n.length,{unicode:o.includes(`u`),unicodeSets:o.includes(`v`)})}catch{return}r(s,{onCharacterClassEnter(n){!n.negate&&n.elements.length===0&&e.report({node:t,messageId:`unexpected`})}})}}}}})),Bt=n(((e,t)=>{let n=M(),r=Object.freeze([`functions`,`arrowFunctions`,`generatorFunctions`,`methods`,`generatorMethods`,`getters`,`setters`,`constructors`,`asyncFunctions`,`asyncMethods`,`privateConstructors`,`protectedConstructors`,`decoratedFunctions`,`overrideMethods`]);function i(e){let t=e.parent,n;if(e.type===`ArrowFunctionExpression`)return`arrowFunctions`;if(t.type===`Property`){if(t.kind===`get`)return`getters`;if(t.kind===`set`)return`setters`;n=t.method?`methods`:`functions`}else if(t.type===`MethodDefinition`){if(t.kind===`get`)return`getters`;if(t.kind===`set`)return`setters`;if(t.kind===`constructor`)return`constructors`;n=`methods`}else n=`functions`;let r;if(e.generator)r=`generator`;else if(e.async)r=`async`;else return n;return r+n[0].toUpperCase()+n.slice(1)}function a(e){return e.params.some(e=>e.type===`TSParameterProperty`)}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,hasSuggestions:!0,type:`suggestion`,defaultOptions:[{allow:[]}],docs:{description:`Disallow empty functions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-empty-function`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{enum:r},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:`Unexpected empty {{name}}.`,suggestComment:`Add comment inside empty {{name}}.`}},create(e){let[{allow:t}]=e.options,r=e.sourceCode;function o(e){let n=i(e);return!!(t.includes(n)||n===`constructors`&&(e.parent.accessibility===`private`&&t.includes(`privateConstructors`)||e.parent.accessibility===`protected`&&t.includes(`protectedConstructors`)||a(e))||/(?:g|s)etters|methods$/iu.test(n)&&(e.parent.decorators?.length&&t.includes(`decoratedFunctions`)||e.parent.override&&t.includes(`overrideMethods`)))}function s(t){let i=n.getFunctionNameWithKind(t),a=r.getTokens(t.body,{includeComments:!0,filter:n.isCommentToken});!o(t)&&t.body.type===`BlockStatement`&&t.body.body.length===0&&a.length===0&&e.report({node:t,loc:t.body.loc,messageId:`unexpected`,data:{name:i},suggest:[{messageId:`suggestComment`,data:{name:i},fix(e){let n=[t.body.range[0]+1,t.body.range[1]-1];return e.replaceTextRange(n,` /* empty */ `)}}]})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}}})),Vt=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:`Disallow empty destructuring patterns`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-pattern`},schema:[{type:`object`,properties:{allowObjectPatternsAsParameters:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:`Unexpected empty {{type}} pattern.`}},create(e){let[{allowObjectPatternsAsParameters:t}]=e.options;return{ObjectPattern(r){r.properties.length>0||t&&(n.isFunction(r.parent)||r.parent.type===`AssignmentPattern`&&n.isFunction(r.parent.parent)&&r.parent.right.type===`ObjectExpression`&&r.parent.right.properties.length===0)||e.report({node:r,messageId:`unexpected`,data:{type:`object`}})},ArrayPattern(t){t.elements.length===0&&e.report({node:t,messageId:`unexpected`,data:{type:`array`}})}}}}})),Ht=n(((e,t)=>{t.exports={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:`Disallow empty static blocks`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-empty-static-block`},schema:[],messages:{unexpected:`Unexpected empty static block.`,suggestComment:`Add comment inside empty static block.`}},create(e){let t=e.sourceCode;return{StaticBlock(n){if(n.body.length===0){let r=t.getFirstToken(n,{skip:1}),i=t.getLastToken(n);t.getCommentsBefore(i).length===0&&e.report({loc:{start:r.loc.start,end:i.loc.end},messageId:`unexpected`,suggest:[{messageId:`suggestComment`,fix(e){let t=[r.range[1],i.range[0]];return e.replaceTextRange(t,` /* empty */ `)}}]})}}}}}})),Ut=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-eq-null`},schema:[],messages:{unexpected:`Use '===' to compare with null.`}},create(e){return{BinaryExpression(t){let n=t.operator===`==`||t.operator===`!=`;(t.right.type===`Literal`&&t.right.raw===`null`&&n||t.left.type===`Literal`&&t.left.raw===`null`&&n)&&e.report({node:t,messageId:`unexpected`})}}}}})),Wt=n(((e,t)=>{let n=M(),r=Object.freeze([`global`,`window`,`globalThis`]);function i(e,t){return n.isSpecificMemberAccess(e,null,t)}t.exports={meta:{type:`suggestion`,defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-eval`},schema:[{type:`object`,properties:{allowIndirect:{type:`boolean`}},additionalProperties:!1}],messages:{unexpected:"`eval` can be harmful."}},create(e){let[{allowIndirect:t}]=e.options,a=e.sourceCode,o=null;function s(e){let t=a.getScope(e).isStrict;o={upper:o,node:e,strict:t,isTopLevelOfScript:!1,defaultThis:!1,initialized:t}}function c(){o=o.upper}function l(t){let n=t.parent,r=t.type===`MemberExpression`?t.property:t,i=n.type===`CallExpression`&&n.callee===t?n:t;e.report({node:i,loc:r.loc,messageId:`unexpected`})}function u(e){for(let t=0;t<r.length;++t){let a=r[t],o=n.getVariableByName(e,a);if(!o)continue;let s=o.references;for(let e=0;e<s.length;++e){let t=s[e].identifier.parent;for(;i(t,a);)t=t.parent;i(t,`eval`)&&l(t)}}}function d(e){let t=n.getVariableByName(e,`eval`);if(!t)return;let r=t.references;for(let e=0;e<r.length;++e){let t=r[e].identifier;t.name===`eval`&&!n.isCallee(t)&&l(t)}}return t?{"CallExpression:exit"(e){let t=e.callee;!e.optional&&n.isSpecificId(t,`eval`)&&l(t)}}:{"CallExpression:exit"(e){let t=e.callee;n.isSpecificId(t,`eval`)&&l(t)},Program(t){let n=a.getScope(t),r=e.languageOptions.parserOptions.ecmaFeatures||{};o={upper:null,node:t,strict:n.isStrict||t.sourceType===`module`||r.globalReturn&&n.childScopes[0].isStrict,isTopLevelOfScript:t.sourceType!==`module`&&!r.globalReturn,defaultThis:!0,initialized:!0}},"Program:exit"(e){let t=a.getScope(e);c(),d(t),u(t)},FunctionDeclaration:s,"FunctionDeclaration:exit":c,FunctionExpression:s,"FunctionExpression:exit":c,"PropertyDefinition > *.value":s,"PropertyDefinition > *.value:exit":c,StaticBlock:s,"StaticBlock:exit":c,ThisExpression(e){i(e.parent,`eval`)&&(o.initialized||(o.initialized=!0,o.defaultThis=n.isDefaultThisBinding(o.node,a)),(o.isTopLevelOfScript||!o.strict&&o.defaultThis)&&l(e.parent))}}}}})),Gt=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-ex-assign`},schema:[],messages:{unexpected:`Do not assign to the exception parameter.`}},create(e){let t=e.sourceCode;function r(t){n.getModifyingReferences(t.references).forEach(t=>{e.report({node:t.identifier,messageId:`unexpected`})})}return{CatchClause(e){t.getDeclaredVariables(e).forEach(r)}}}}})),Kt=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{exceptions:[]}],docs:{description:`Disallow extending native types`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extend-native`},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:`{{builtin}} prototype is read only, properties should not be added.`}},create(e){let t=e.sourceCode,r=new Set(e.options[0].exceptions),i=new Set(Object.keys(n.ECMASCRIPT_GLOBALS).filter(e=>e[0].toUpperCase()===e[0]).filter(e=>!r.has(e)));function a(t,n){e.report({node:t,messageId:`unexpected`,data:{builtin:n}})}function o(e){return!!(e&&e.parent&&e.parent.type===`MemberExpression`&&e.parent.object===e&&n.getStaticPropertyName(e.parent)===`prototype`)}function s(e){return e.parent.type===`MemberExpression`&&e.parent.object===e&&e.parent.parent.type===`AssignmentExpression`&&e.parent.parent.left===e.parent}function c(e){return e.parent.type===`CallExpression`&&e.parent.arguments[0]===e&&n.isSpecificMemberAccess(e.parent.callee,`Object`,/^definePropert(?:y|ies)$/u)}function l(e){if(!o(e))return;let t=e.parent.parent.type===`ChainExpression`?e.parent.parent:e.parent;s(t)?a(t.parent.parent,e.name):c(t)&&a(t.parent,e.name)}return{"Program:exit"(e){let n=t.getScope(e);i.forEach(e=>{let t=n.set.get(e);t&&t.references&&t.references.map(e=>e.identifier).forEach(l)})}}}}})),qt=n(((e,t)=>{let n=M(),r=new Set([`Literal`,`Identifier`,`ThisExpression`,`FunctionExpression`]);t.exports={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-bind`},schema:[],fixable:`code`,messages:{unexpected:`The function binding is unnecessary.`}},create(e){let t=e.sourceCode,i=null;function a(e){return r.has(e.type)}function o(r){let i=r.parent,o=i.parent.type===`ChainExpression`?i.parent.parent:i.parent;e.report({node:o,messageId:`unexpected`,loc:i.property.loc,fix(e){if(!a(o.arguments[0]))return null;let r=[[t.getTokenAfter(i.object,n.isNotClosingParenToken),t.getLastToken(i)],[t.getTokenAfter(i,n.isNotClosingParenToken),t.getLastToken(o)]],s=r[0][0],c=r[1][1];return t.commentsExistBetween(s,c)?null:r.map(([t,n])=>e.removeRange([t.range[0],n.range[1]]))}})}function s(e){if(!n.isSpecificMemberAccess(e.parent,null,`bind`))return!1;let t=e.parent.parent.type===`ChainExpression`?e.parent.parent:e.parent;return t.parent.type===`CallExpression`&&t.parent.callee===t&&t.parent.arguments.length===1&&t.parent.arguments[0].type!==`SpreadElement`}function c(e){i={isBound:s(e),thisFound:!1,upper:i}}function l(e){i.isBound&&!i.thisFound&&o(e),i=i.upper}function u(e){s(e)&&o(e)}function d(){i&&(i.thisFound=!0)}return{"ArrowFunctionExpression:exit":u,FunctionDeclaration:c,"FunctionDeclaration:exit":l,FunctionExpression:c,"FunctionExpression:exit":l,ThisExpression:d}}}})),Jt=n(((e,t)=>{let n=M(),r=q(),i=n.getPrecedence;t.exports={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallow unnecessary boolean casts`,recommended:!0,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-extra-boolean-cast`},schema:[{anyOf:[{type:`object`,properties:{enforceForInnerExpressions:{type:`boolean`}},additionalProperties:!1},{type:`object`,properties:{enforceForLogicalOperands:{type:`boolean`}},additionalProperties:!1}]}],fixable:`code`,messages:{unexpectedCall:`Redundant Boolean call.`,unexpectedNegation:`Redundant double negation.`}},create(e){let t=e.sourceCode,[{enforceForLogicalOperands:a,enforceForInnerExpressions:o}]=e.options,s=new Set([`IfStatement`,`DoWhileStatement`,`WhileStatement`,`ConditionalExpression`,`ForStatement`]);function c(e){return(e.type===`CallExpression`||e.type===`NewExpression`)&&e.callee.type===`Identifier`&&e.callee.name===`Boolean`}function l(e){return c(e.parent)&&e===e.parent.arguments[0]||s.has(e.parent.type)&&e===e.parent.test||e.parent.type===`UnaryExpression`&&e.parent.operator===`!`}function u(e){return e.parent.type===`ChainExpression`||(a||o)&&e.parent.type===`LogicalExpression`&&(e.parent.operator===`||`||e.parent.operator===`&&`||o&&e.parent.operator===`??`&&e.parent.right===e)||o&&(e.parent.type===`ConditionalExpression`&&(e.parent.consequent===e||e.parent.alternate===e)||e.parent.type===`SequenceExpression`&&e.parent.expressions.at(-1)===e)?u(e.parent):l(e)}function d(e){return!!t.getCommentsInside(e).length}function f(e){return r.isParenthesized(1,e,t)}function p(e,t){if(e.parent.type===`ChainExpression`)return p(e.parent,t);if(f(e))return!1;let r=e.parent;switch(r.type){case`CallExpression`:case`NewExpression`:return t.type===`SequenceExpression`;case`IfStatement`:case`DoWhileStatement`:case`WhileStatement`:case`ForStatement`:case`SequenceExpression`:return!1;case`ConditionalExpression`:if(e===r.test)return i(t)<=i(r);if(e===r.consequent||e===r.alternate)return i(t)<i({type:`AssignmentExpression`});throw Error(`Ternary child must be test, consequent, or alternate.`);case`UnaryExpression`:return i(t)<i(r);case`LogicalExpression`:return n.isMixedLogicalAndCoalesceExpressions(t,r)?!0:e===r.left?i(t)<i(r):i(t)<=i(r);default:throw Error(`Unexpected parent type: ${r.type}`)}}return{UnaryExpression(r){let i=r.parent;r.operator!==`!`||i.type!==`UnaryExpression`||i.operator!==`!`||u(i)&&e.report({node:i,messageId:`unexpectedNegation`,fix(e){if(d(i))return null;if(p(i,r.argument))return e.replaceText(i,`(${t.getText(r.argument)})`);let a=``,o=t.getTokenBefore(i),s=t.getFirstToken(r.argument);return o&&o.range[1]===i.range[0]&&!n.canTokensBeAdjacent(o,s)&&(a=` `),e.replaceText(i,a+t.getText(r.argument))}})},CallExpression(r){r.callee.type!==`Identifier`||r.callee.name!==`Boolean`||u(r)&&e.report({node:r,messageId:`unexpectedCall`,fix(e){let i=r.parent;if(r.arguments.length===0){if(i.type===`UnaryExpression`&&i.operator===`!`){if(d(i))return null;let r=`true`,a=``,o=t.getTokenBefore(i);return o&&o.range[1]===i.range[0]&&!n.canTokensBeAdjacent(o,r)&&(a=` `),e.replaceText(i,a+r)}return d(r)?null:e.replaceText(r,`false`)}if(r.arguments.length===1){let n=r.arguments[0];return n.type===`SpreadElement`||d(r)?null:p(r,n)?e.replaceText(r,`(${t.getText(n)})`):e.replaceText(r,t.getText(n))}return null}})}}}}})),Yt=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary labels`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-extra-label`},schema:[],fixable:`code`,messages:{unexpected:`This label '{{name}}' is unnecessary.`}},create(e){let t=e.sourceCode,r=null;function i(e){r={label:e.parent.type===`LabeledStatement`?e.parent.label:null,breakable:!0,upper:r}}function a(){r=r.upper}function o(e){n.isBreakableStatement(e.body)||(r={label:e.label,breakable:!1,upper:r})}function s(e){n.isBreakableStatement(e.body)||(r=r.upper)}function c(n){if(!n.label)return;let i=n.label;for(let a=r;a!==null;a=a.upper)if(a.breakable||a.label&&a.label.name===i.name){a.breakable&&a.label&&a.label.name===i.name&&e.report({node:i,messageId:`unexpected`,data:i,fix(e){let r=t.getFirstToken(n);return t.commentsExistBetween(r,i)?null:e.removeRange([r.range[1],i.range[1]])}});return}}return{WhileStatement:i,"WhileStatement:exit":a,DoWhileStatement:i,"DoWhileStatement:exit":a,ForStatement:i,"ForStatement:exit":a,ForInStatement:i,"ForInStatement:exit":a,ForOfStatement:i,"ForOfStatement:exit":a,SwitchStatement:i,"SwitchStatement:exit":a,LabeledStatement:o,"LabeledStatement:exit":s,BreakStatement:c,ContinueStatement:c}}}})),Xt=n(((e,t)=>{let{isParenthesized:n}=q(),r=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-extra-parens`,url:`https://eslint.style/rules/no-extra-parens`}}]},type:`layout`,docs:{description:`Disallow unnecessary parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-parens`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`functions`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`all`]},{type:`object`,properties:{conditionalAssign:{type:`boolean`},ternaryOperandBinaryExpressions:{type:`boolean`},nestedBinaryExpressions:{type:`boolean`},returnAssign:{type:`boolean`},ignoreJSX:{enum:[`none`,`all`,`single-line`,`multi-line`]},enforceForArrowConditionals:{type:`boolean`},enforceForSequenceExpressions:{type:`boolean`},enforceForNewInMemberExpressions:{type:`boolean`},enforceForFunctionPrototypeMethods:{type:`boolean`},allowParensAfterCommentPattern:{type:`string`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:`Unnecessary parentheses around expression.`}},create(e){let t=e.sourceCode,i=new WeakSet,a=r.getPrecedence,o=e.options[0]!==`functions`,s=o&&e.options[1]&&e.options[1].conditionalAssign===!1,c=o&&e.options[1]&&e.options[1].ternaryOperandBinaryExpressions===!1,l=o&&e.options[1]&&e.options[1].nestedBinaryExpressions===!1,u=o&&e.options[1]&&e.options[1].returnAssign===!1,d=o&&e.options[1]&&e.options[1].ignoreJSX,f=o&&e.options[1]&&e.options[1].enforceForArrowConditionals===!1,p=o&&e.options[1]&&e.options[1].enforceForSequenceExpressions===!1,m=o&&e.options[1]&&e.options[1].enforceForNewInMemberExpressions===!1,h=o&&e.options[1]&&e.options[1].enforceForFunctionPrototypeMethods===!1,g=o&&e.options[1]&&e.options[1].allowParensAfterCommentPattern,_=a({type:`AssignmentExpression`}),v=a({type:`UpdateExpression`}),y;function b(e){let t=r.skipChainExpression(e);if(t.type!==`CallExpression`)return!1;let n=r.skipChainExpression(t.callee);return n.type===`MemberExpression`&&n.object.type===`FunctionExpression`&&[`call`,`apply`].includes(r.getStaticPropertyName(n))}function x(e){if(e.type===`JSXElement`||e.type===`JSXFragment`){let t=e.loc.start.line===e.loc.end.line;switch(d){case`all`:return!1;case`multi-line`:return t;case`single-line`:return!t;case`none`:break}}return e.type===`SequenceExpression`&&p||b(e)&&h?!1:o||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`}function S(e){return n(1,e,t)}function C(e){return n(2,e,t)}function w(e){return x(e)&&S(e)}function T(e){return x(e)&&C(e)}function E(e,t){return!!(x(e)&&S(e)&&(a(e)>=t||C(e)))}function D(e){return s&&e.test.type===`AssignmentExpression`}function O(e){for(let t=e;t;t=t.parent)if(t.type===`ReturnStatement`||t.type===`ArrowFunctionExpression`&&t.body.type!==`BlockStatement`)return!0;return!1}function k(e){let n=t.getLastToken(e),i=t.getTokenBefore(n);return e.arguments.length>0||r.isOpeningParenToken(i)&&r.isClosingParenToken(n)&&e.callee.range[1]<e.range[1]}function A(e){return!!(e.type===`AssignmentExpression`||e.type===`ConditionalExpression`&&(e.consequent.type===`AssignmentExpression`||e.alternate.type===`AssignmentExpression`)||e.left&&e.left.type===`AssignmentExpression`||e.right&&e.right.type===`AssignmentExpression`)}function j(e){return!u||!O(e)?!1:e.type===`ReturnStatement`?e.argument&&A(e.argument):e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?A(e.body):A(e)}function M(e,t){return e.loc.end.line===t.loc.start.line?w(t):T(t)}function N(e){let n=t.getTokenBefore(e),i=t.getTokenBefore(n,{includeComments:!0}),a=t.getTokenAfter(n,{includeComments:!0});return i&&i.range[1]===n.range[0]&&n.range[1]===a.range[0]&&!r.canTokensBeAdjacent(i,a)}function P(e){let n=t.getTokensAfter(e,{count:2}),i=n[0],a=n[1],o=t.getLastToken(e);return i&&a&&!t.isSpaceBetween(i,a)&&!r.canTokensBeAdjacent(o,a)}function F(e){let t=r.skipChainExpression(e);return t.type===`CallExpression`&&t.callee.type===`FunctionExpression`}function I(e){return e&&(e.type===`Identifier`||e.type===`MemberExpression`)}function L(e){return e.type!==`Literal`||typeof e.value!=`string`||C(e)?!0:!r.isTopLevelExpressionStatement(e.parent)}function R(n){let r=t.getTokenBefore(n),a=t.getTokenAfter(n);if(!C(n)){if(i.has(t.getFirstToken(n))||F(n)&&!S(n.callee))return;if(g){let e=t.getCommentsBefore(r),n=e.length,i=new RegExp(g,`u`);if(n>0&&i.test(e[n-1].value))return}}function o(){e.report({node:n,loc:r.loc,messageId:`unexpected`,fix:L(n)?e=>{let i=t.text.slice(r.range[1],a.range[0]);return e.replaceTextRange([r.range[0],a.range[1]],(N(n)?` `:``)+i+(P(n)?` `:``))}:null})}if(y){y.reports.push({node:n,finishReport:o});return}o()}function z(e){E(e.argument,a(e))&&R(e.argument)}function ee(e){let t=e.object,n=e.object.type;for(;n===`MemberExpression`;)t=t.object,n=t.type;return n===`CallExpression`}function B(e){let t=e.callee;E(t,a(e))&&(T(t)||!(F(e)||t.type===`NewExpression`&&!k(t)&&!(e.type===`NewExpression`&&!k(e))||e.type===`NewExpression`&&t.type===`MemberExpression`&&ee(t)||!e.optional&&t.type===`ChainExpression`))&&R(e.callee),e.arguments.filter(e=>E(e,_)).forEach(R)}function te(e){let t=a(e),n=a(e.left),i=a(e.right),o=e.operator===`**`,s=l&&(e.left.type===`BinaryExpression`||e.left.type===`LogicalExpression`),c=l&&(e.right.type===`BinaryExpression`||e.right.type===`LogicalExpression`);!s&&w(e.left)&&(!([`AwaitExpression`,`UnaryExpression`].includes(e.left.type)&&o)&&!r.isMixedLogicalAndCoalesceExpressions(e.left,e)&&(n>t||n===t&&!o)||C(e.left))&&R(e.left),!c&&w(e.right)&&(!r.isMixedLogicalAndCoalesceExpressions(e.right,e)&&(i>t||i===t&&o)||C(e.right))&&R(e.right)}function V(e){e.superClass&&(a(e.superClass)>v?w(e.superClass):T(e.superClass))&&R(e.superClass)}function H(e){E(e.argument,_)&&R(e.argument)}function U(e){let n=S(e)?t.getTokenBefore(e):t.getFirstToken(e),a=t.getTokenAfter(n,r.isNotOpeningParenToken),o=a?t.getTokenAfter(a):null,s=a?t.getTokenAfter(a,r.isNotClosingParenToken):null;r.isOpeningParenToken(n)&&(r.isOpeningBraceToken(a)||a.type===`Keyword`&&(a.value===`function`||a.value===`class`||a.value===`let`&&s&&(r.isOpeningBracketToken(s)||s.type===`Identifier`))||a&&a.type===`Identifier`&&a.value===`async`&&o&&o.type===`Keyword`&&o.value===`function`)&&i.add(a),(e.parent.type===`ExportDefaultDeclaration`?E(e,_):w(e))&&R(e)}function W(e,t){let n=[e],r=e;for(;r!==t;){if(r=r.parent,r===null)throw Error(`Nodes are not in the ancestor-descendant relationship.`);n.push(r)}return n}function ne(e,t){return W(t,e).reverse()}function re(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}}function G(){y={upper:y,inExpressionNodes:[],reports:[]}}function ie(){let{upper:e,inExpressionNodes:t,reports:n}=y;e?(e.inExpressionNodes.push(...t),e.reports.push(...n)):n.forEach(({finishReport:e})=>e()),y=e}function ae(e){return y.reports.some(t=>t.node===e)}function oe(e){y.reports=y.reports.filter(t=>t.node!==e)}function se(e){return e.type===`MemberExpression`?e.parent.type===`NewExpression`&&e.parent.callee===e?!0:e.parent.object===e&&se(e.parent):!1}function ce({left:e,operator:t,right:n}){if(e.type===`Identifier`&&[`=`,`&&=`,`||=`,`??=`].includes(t)){let e=n.type;if(e===`ArrowFunctionExpression`||(e===`FunctionExpression`||e===`ClassExpression`)&&!n.id)return!0}return!1}return{ArrayExpression(e){e.elements.filter(e=>e&&E(e,_)).forEach(R)},ArrayPattern(e){e.elements.filter(e=>I(e)&&w(e)).forEach(R)},ArrowFunctionExpression(e){if(!j(e)&&!(e.body.type===`ConditionalExpression`&&f)&&e.body.type!==`BlockStatement`){let n=t.getFirstToken(e.body,r.isNotOpeningParenToken),a=t.getTokenBefore(n);r.isOpeningParenToken(a)&&r.isOpeningBraceToken(n)&&i.add(n),E(e.body,_)&&R(e.body)}},AssignmentExpression(e){I(e.left)&&w(e.left)&&(!ce(e)||C(e.left))&&R(e.left),!j(e)&&E(e.right,a(e))&&R(e.right)},BinaryExpression(e){y&&e.operator===`in`&&y.inExpressionNodes.push(e),te(e)},CallExpression:B,ConditionalExpression(e){if(j(e))return;let t=new Set([`BinaryExpression`,`LogicalExpression`]);!(c&&t.has(e.test.type))&&!D(e)&&E(e.test,a({type:`LogicalExpression`,operator:`||`}))&&R(e.test),!(c&&t.has(e.consequent.type))&&E(e.consequent,_)&&R(e.consequent),!(c&&t.has(e.alternate.type))&&E(e.alternate,_)&&R(e.alternate)},DoWhileStatement(e){w(e.test)&&!D(e)&&R(e.test)},ExportDefaultDeclaration:e=>U(e.declaration),ExpressionStatement:e=>U(e.expression),ForInStatement(e){if(e.left.type!==`VariableDeclaration`){let n=t.getFirstToken(e.left,r.isNotOpeningParenToken);n.value===`let`&&r.isOpeningBracketToken(t.getTokenAfter(n,r.isNotClosingParenToken))&&i.add(n)}w(e.left)&&R(e.left),w(e.right)&&R(e.right)},ForOfStatement(e){if(e.left.type!==`VariableDeclaration`){let n=t.getFirstToken(e.left,r.isNotOpeningParenToken);n.value===`let`&&i.add(n)}w(e.left)&&R(e.left),E(e.right,_)&&R(e.right)},ForStatement(e){if(e.test&&w(e.test)&&!D(e)&&R(e.test),e.update&&w(e.update)&&R(e.update),e.init){if(e.init.type!==`VariableDeclaration`){let n=t.getFirstToken(e.init,r.isNotOpeningParenToken);n.value===`let`&&r.isOpeningBracketToken(t.getTokenAfter(n,r.isNotClosingParenToken))&&i.add(n)}G(),w(e.init)&&R(e.init)}},"ForStatement > *.init:exit"(e){y.reports.length&&y.inExpressionNodes.forEach(t=>{let n=ne(e,t),r;for(let e=0;e<n.length;e++){let t=n[e];if(e<n.length-1){let r=n[e+1];if(re(t,r))return}if(S(t))if(ae(t)){if(C(t))return;r||=t}else return}oe(r)}),ie()},IfStatement(e){w(e.test)&&!D(e)&&R(e.test)},ImportExpression(e){let{source:t}=e;t.type===`SequenceExpression`?T(t)&&R(t):w(t)&&R(t)},LogicalExpression:te,MemberExpression(e){let t=se(e)&&ee(e)?T(e.object):w(e.object)&&!(b(e.parent)&&e.parent.callee===e&&h);t&&a(e.object)>=a(e)&&(e.computed||!(r.isDecimalInteger(e.object)||e.object.type===`Literal`&&e.object.regex))&&R(e.object),t&&e.object.type===`CallExpression`&&R(e.object),t&&!m&&e.object.type===`NewExpression`&&k(e.object)&&R(e.object),t&&e.optional&&e.object.type===`ChainExpression`&&R(e.object),e.computed&&w(e.property)&&R(e.property)},"MethodDefinition[computed=true]"(e){E(e.key,_)&&R(e.key)},NewExpression:B,ObjectExpression(e){e.properties.filter(e=>e.value&&E(e.value,_)).forEach(e=>R(e.value))},ObjectPattern(e){e.properties.filter(e=>{let t=e.value;return I(t)&&w(t)}).forEach(e=>R(e.value))},Property(e){if(e.computed){let{key:t}=e;t&&E(t,_)&&R(t)}},PropertyDefinition(e){e.computed&&E(e.key,_)&&R(e.key),e.value&&E(e.value,_)&&R(e.value)},RestElement(e){let t=e.argument;I(t)&&w(t)&&R(t)},ReturnStatement(e){let n=t.getFirstToken(e);j(e)||e.argument&&M(n,e.argument)&&!(e.argument.type===`Literal`&&e.argument.regex)&&R(e.argument)},SequenceExpression(e){let t=a(e);e.expressions.filter(e=>E(e,t)).forEach(R)},SwitchCase(e){e.test&&w(e.test)&&R(e.test)},SwitchStatement(e){w(e.discriminant)&&R(e.discriminant)},ThrowStatement(e){M(t.getFirstToken(e),e.argument)&&R(e.argument)},UnaryExpression:z,UpdateExpression(e){if(e.prefix)z(e);else{let{argument:n}=e,r=t.getLastToken(e);n.loc.end.line===r.loc.start.line?z(e):T(n)&&R(n)}},AwaitExpression:z,VariableDeclarator(e){e.init&&E(e.init,_)&&!(e.init.type===`Literal`&&e.init.regex)&&R(e.init)},WhileStatement(e){w(e.test)&&!D(e)&&R(e.test)},WithStatement(e){w(e.object)&&R(e.object)},YieldExpression(e){if(e.argument){let n=t.getFirstToken(e);(a(e.argument)>=a(e)&&M(n,e.argument)||T(e.argument))&&R(e.argument)}},ClassDeclaration:V,ClassExpression:V,SpreadElement:H,SpreadProperty:H,ExperimentalSpreadProperty:H,TemplateLiteral(e){e.expressions.filter(e=>e&&w(e)).forEach(R)},AssignmentPattern(e){let{left:t,right:n}=e;I(t)&&w(t)&&R(t),n&&E(n,_)&&R(n)}}}}})),Zt=n(((e,t)=>{let n=It(),r=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-extra-semi`,url:`https://eslint.style/rules/no-extra-semi`}}]},type:`suggestion`,docs:{description:`Disallow unnecessary semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-extra-semi`},fixable:`code`,schema:[],messages:{unexpected:`Unnecessary semicolon.`}},create(e){let t=e.sourceCode;function i(e){let n=t.getTokenAfter(e);if(!n||n.type!==`String`)return!0;let i=t.getNodeByRangeIndex(n.range[0]);return!r.isTopLevelExpressionStatement(i.parent)}function a(t){e.report({node:t,messageId:`unexpected`,fix:i(t)?r=>new n(r,e.sourceCode).retainSurroundingTokens(t).remove(t):null})}function o(e){for(let n=e;n.type===`Punctuator`&&!r.isClosingBraceToken(n);n=t.getTokenAfter(n))r.isSemicolonToken(n)&&a(n)}return{EmptyStatement(e){let t=e.parent;[`ForStatement`,`ForInStatement`,`ForOfStatement`,`WhileStatement`,`DoWhileStatement`,`IfStatement`,`LabeledStatement`,`WithStatement`].includes(t.type)||a(e)},ClassBody(e){o(t.getFirstToken(e,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(e){o(t.getTokenAfter(e))}}}}})),Qt=n(((e,t)=>{t.exports={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}})),$t=n(((e,t)=>{let{directivesPattern:n}=Qt(),r=/falls?\s?through/iu;function i(e){for(let t of e)if(t.reachable)return!0;return!1}function a(e,t){return t.test(e)&&!n.test(e.trim())}function o(e,t,n,r){let i=n.sourceCode;if(e.consequent.length===1&&e.consequent[0].type===`BlockStatement`){let t=i.getLastToken(e.consequent[0]),n=i.getCommentsBefore(t).pop();if(n&&a(n.value,r))return n}let o=i.getCommentsBefore(t).pop();return o&&a(o.value,r)?o:null}function s(e,t){return t.loc.start.line>e.loc.end.line+1}t.exports={meta:{type:`problem`,defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-fallthrough`},schema:[{type:`object`,properties:{commentPattern:{type:`string`},allowEmptyCase:{type:`boolean`},reportUnusedFallthroughComment:{type:`boolean`}},additionalProperties:!1}],messages:{unusedFallthroughComment:`Found a comment that would permit fallthrough, but case cannot fall through.`,case:`Expected a 'break' statement before 'case'.`,default:`Expected a 'break' statement before 'default'.`}},create(e){let t=[],n=new Set,a=e.sourceCode,[{allowEmptyCase:c,commentPattern:l,reportUnusedFallthroughComment:u}]=e.options,d=l?new RegExp(l,`u`):r,f=null;return{onCodePathStart(){t.push(n),n=new Set},onCodePathEnd(){n=t.pop()},onUnreachableCodePathSegmentStart(e){n.add(e)},onUnreachableCodePathSegmentEnd(e){n.delete(e)},onCodePathSegmentStart(e){n.add(e)},onCodePathSegmentEnd(e){n.delete(e)},SwitchCase(t){if(f&&f.node.parent===t.parent){let n=o(f.node,t,e,d);f.isFallthrough&&!n?e.report({messageId:t.test?`case`:`default`,node:t}):u&&!f.isSwitchExitReachable&&n&&e.report({messageId:`unusedFallthroughComment`,node:n})}f=null},"SwitchCase:exit"(e){let t=a.getTokenAfter(e),r=i(n);f={node:e,isSwitchExitReachable:r,isFallthrough:r&&(e.consequent.length>0||!c&&s(e,t))&&e.parent.cases.at(-1)!==e}}}}}})),en=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-floating-decimal`,url:`https://eslint.style/rules/no-floating-decimal`}}]},type:`suggestion`,docs:{description:`Disallow leading or trailing decimal points in numeric literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-floating-decimal`},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(r){typeof r.value==`number`&&(r.raw.startsWith(`.`)&&e.report({node:r,messageId:`leading`,fix(e){let i=t.getTokenBefore(r),a=i&&i.range[1]===r.range[0]&&!n.canTokensBeAdjacent(i,`0${r.raw}`);return e.insertTextBefore(r,a?` 0`:`0`)}}),r.raw.indexOf(`.`)===r.raw.length-1&&e.report({node:r,messageId:`trailing`,fix:e=>e.insertTextAfter(r,`0`)}))}}}}})),tn=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-func-assign`},schema:[],messages:{isAFunction:`'{{name}}' is a function.`}},create(e){let t=e.sourceCode;function r(t){n.getModifyingReferences(t).forEach(t=>{e.report({node:t.identifier,messageId:`isAFunction`,data:{name:t.identifier.name}})})}function i(e){e.defs[0].type===`FunctionName`&&r(e.references)}function a(e){t.getDeclaredVariables(e).forEach(i)}return{FunctionDeclaration:a,FunctionExpression:a}}}})),nn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{exceptions:[]}],docs:{description:`Disallow assignments to native objects or read-only global variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-global-assign`},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:`Read-only global '{{name}}' should not be modified.`}},create(e){let t=e.sourceCode,[{exceptions:n}]=e.options;function r(t,n,r){let i=t.identifier;t.init===!1&&t.isWrite()&&(n===0||r[n-1].identifier!==i)&&e.report({node:i,messageId:`globalShouldNotBeModified`,data:{name:i.name}})}function i(e){e.writeable===!1&&!n.includes(e.name)&&e.references.forEach(r)}return{Program(e){t.getScope(e).variables.forEach(i)}}}}})),rn=n(((e,t)=>{let n=M(),r=/^(?:i|lastI)ndexOf$/u,i=[`~`,`!!`,`+`,`- -`,`-`,`*`];function a(e){return e.operator===`!`&&e.argument.type===`UnaryExpression`&&e.argument.operator===`!`}function o(e){if(e.operator!==`~`)return!1;let t=n.skipChainExpression(e.argument);return t.type===`CallExpression`&&n.isSpecificMemberAccess(t.callee,null,r)}function s(e){return e.operator===`*`&&(e.left.type===`Literal`&&e.left.value===1||e.right.type===`Literal`&&e.right.value===1)}function c(e,t){return e.type===`BinaryExpression`&&e.operator===`*`&&e.right.type===`Literal`&&e.right.value===1&&e.parent.type===`BinaryExpression`&&e.parent.operator===`/`&&e.parent.left===e&&!n.isParenthesised(t,e)}function l(e){return e.type===`Literal`&&typeof e.value==`number`||e.type===`CallExpression`&&(e.callee.name===`Number`||e.callee.name===`parseInt`||e.callee.name===`parseFloat`)}function u(e){let t=e.left,n=e.right;return n.type!==`BinaryExpression`&&!l(n)?n:t.type!==`BinaryExpression`&&!l(t)?t:null}function d(e){return n.isStringLiteral(e)||e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`String`}function f(e){return n.isStringLiteral(e)&&(e.value===``||e.type===`TemplateLiteral`&&e.quasis.length===1&&e.quasis[0].value.cooked===``)}function p(e){return e.operator===`+`&&(f(e.left)&&!d(e.right)||f(e.right)&&!d(e.left))}function m(e){return e.operator===`+=`&&f(e.right)}function h(e){return f(e.left)?e.right:e.left}t.exports={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:`Disallow shorthand type conversions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-implicit-coercion`},fixable:`code`,schema:[{type:`object`,properties:{boolean:{type:`boolean`},number:{type:`boolean`},string:{type:`boolean`},disallowTemplateShorthand:{type:`boolean`},allow:{type:`array`,items:{enum:i},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(e){let[t]=e.options,r=e.sourceCode;function i(t,i,a,o){function s(e){let a=r.getTokenBefore(t);return a?.range[1]===t.range[0]&&!n.canTokensBeAdjacent(a,i)?e.replaceText(t,` ${i}`):e.replaceText(t,i)}e.report({node:t,messageId:`implicitCoercion`,data:{recommendation:i},fix(e){return o?s(e):null},suggest:[{messageId:`useRecommendation`,data:{recommendation:i},fix(e){return o||!a?null:s(e)}}]})}return{UnaryExpression(e){let s;if(s=t.allow.includes(`!!`),!s&&t.boolean&&a(e)&&i(e,`Boolean(${r.getText(e.argument.argument)})`,!0,n.getVariableByName(r.getScope(e),`Boolean`)?.identifiers.length===0),s=t.allow.includes(`~`),!s&&t.boolean&&o(e)){let t=e.argument.type===`ChainExpression`?`>= 0`:`!== -1`;i(e,`${r.getText(e.argument)} ${t}`,!1,!1)}s=t.allow.includes(`+`),!s&&t.number&&e.operator===`+`&&!l(e.argument)&&i(e,`Number(${r.getText(e.argument)})`,!0,!1),s=t.allow.includes(`- -`),!s&&t.number&&e.operator===`-`&&e.argument.type===`UnaryExpression`&&e.argument.operator===`-`&&!l(e.argument.argument)&&i(e,`Number(${r.getText(e.argument.argument)})`,!0,!1)},"BinaryExpression:exit"(e){let n;n=t.allow.includes(`*`);let a=!n&&t.number&&s(e)&&!c(e,r)&&u(e);a&&i(e,`Number(${r.getText(a)})`,!0,!1),n=t.allow.includes(`-`),!n&&t.number&&e.operator===`-`&&e.right.type===`Literal`&&e.right.value===0&&!l(e.left)&&i(e,`Number(${r.getText(e.left)})`,!0,!1),n=t.allow.includes(`+`),!n&&t.string&&p(e)&&i(e,`String(${r.getText(h(e))})`,!0,!1)},AssignmentExpression(e){if(!t.allow.includes(`+`)&&t.string&&m(e)){let t=r.getText(h(e));i(e,`${t} = String(${t})`,!0,!1)}},TemplateLiteral(e){t.disallowTemplateShorthand&&e.parent.type!==`TaggedTemplateExpression`&&e.expressions.length===1&&e.quasis[0].value.cooked===``&&e.quasis[1].value.cooked===``&&(d(e.expressions[0])||i(e,`String(${r.getText(e.expressions[0])})`,!0,!1))}}}}})),an=n(((e,t)=>{let n=new Set([`AssignmentExpression`,`ForInStatement`,`ForOfStatement`]);t.exports={meta:{type:`suggestion`,defaultOptions:[{lexicalBindings:!1}],docs:{description:`Disallow declarations in the global scope`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-implicit-globals`},schema:[{type:`object`,properties:{lexicalBindings:{type:`boolean`}},additionalProperties:!1}],messages:{globalNonLexicalBinding:`Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.`,globalLexicalBinding:`Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.`,globalVariableLeak:`Global variable leak, declare the variable if it is intended to be local.`,assignmentToReadonlyGlobal:`Unexpected assignment to read-only global variable.`,redeclarationOfReadonlyGlobal:`Unexpected redeclaration of read-only global variable.`}},create(e){let[{lexicalBindings:t}]=e.options,r=e.sourceCode;function i(t,n,r){e.report({node:t,messageId:n,data:{kind:r}})}return{Program(e){let a=r.getScope(e);a.variables.forEach(e=>{let r=e.writeable===!1;e.writeable!==!0&&(e.eslintExported||(e.defs.forEach(e=>{let n=e.node;(e.type===`FunctionName`||e.type===`Variable`&&e.parent.kind===`var`)&&(r?i(n,`redeclarationOfReadonlyGlobal`):i(n,`globalNonLexicalBinding`,e.type===`FunctionName`?`function`:`'${e.parent.kind}'`)),t&&(e.type===`ClassName`||e.type===`Variable`&&(e.parent.kind===`let`||e.parent.kind===`const`))&&(r?i(n,`redeclarationOfReadonlyGlobal`):i(n,`globalLexicalBinding`,e.type===`ClassName`?`class`:`'${e.parent.kind}'`))}),r&&e.defs.length===0&&e.references.forEach(e=>{if(e.isWrite()&&!e.isRead()){let t=e.identifier.parent;for(;t&&!n.has(t.type);)t=t.parent;i(t??e.identifier,`assignmentToReadonlyGlobal`)}})))}),a.implicit.variables.forEach(e=>{e.defs.forEach(e=>{i(e.node,`globalVariableLeak`)})})}}}}})),on=n(((e,t)=>{let n=M(),{getStaticValue:r}=q();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-implied-eval`},schema:[],messages:{impliedEval:`Implied eval. Consider passing a function instead of a string.`,execScript:`Implied eval. Do not use execScript().`}},create(e){let t=Object.freeze([`global`,`window`,`globalThis`,`self`]),i=/^(?:set(?:Interval|Timeout)|execScript)$/u,a=e.sourceCode;function o(e){return e.type===`Literal`&&typeof e.value==`string`||e.type===`TemplateLiteral`?!0:e.type===`BinaryExpression`&&e.operator===`+`?o(e.left)||o(e.right):!1}function s(t){let[i]=t.arguments;if(i){let s=r(i,a.getScope(t));if(s&&typeof s.value==`string`||o(i)){let r=(t.callee.type===`Identifier`?t.callee.name:n.getStaticPropertyName(t.callee))===`execScript`;e.report({node:t,messageId:r?`execScript`:`impliedEval`})}}}function c(e){let{references:t,name:r}=e;t.forEach(e=>{let t=e.identifier.parent;for(;n.isSpecificMemberAccess(t,null,r);)t=t.parent;if(n.isSpecificMemberAccess(t,null,i)){let e=t.parent.type===`ChainExpression`?t.parent:t,n=e.parent;n.type===`CallExpression`&&n.callee===e&&s(n)}})}return{CallExpression(e){n.isSpecificId(e.callee,i)&&a.isGlobalReference(e.callee)&&s(e)},"Program:exit"(e){let r=a.getScope(e);t.map(e=>n.getVariableByName(r,e)).filter(e=>!!e&&e.defs.length===0).forEach(c)}}}}})),sn=n(((e,t)=>{let{findVariable:n}=q(),r=M(),i={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function a(e){let{parent:t}=e;return t.type===`AssignmentExpression`&&t.left===e||t.type===`ArrayPattern`||t.type===`Property`&&t.value===e&&t.parent.type===`ObjectPattern`||t.type===`RestElement`||t.type===`AssignmentPattern`&&t.left===e}function o(e){let t=e.parent.type===`ChainExpression`?e.parent:e,{parent:n}=t;return n.type===`UpdateExpression`&&n.argument===t||n.type===`UnaryExpression`&&n.operator===`delete`&&n.argument===t}function s(e){let{parent:t}=e;return t.type===`ForInStatement`&&t.left===e||t.type===`ForOfStatement`&&t.left===e}function c(e,t){let{parent:a}=e;if(a.type!==`CallExpression`||a.arguments[0]!==e)return!1;let o=r.skipChainExpression(a.callee);if(!r.isSpecificMemberAccess(o,`Object`,i.Object)&&!r.isSpecificMemberAccess(o,`Reflect`,i.Reflect))return!1;let s=n(t,o.object);return s!==null&&s.scope.type===`global`}function l(e,t){let{parent:n}=e;return n.type===`MemberExpression`&&n.object===e&&(a(n)||o(n)||s(n))||c(e,t)}function u(e){let t=e.parent;for(;t&&t.type!==`AssignmentExpression`&&t.type!==`UpdateExpression`&&t.type!==`UnaryExpression`&&t.type!==`CallExpression`&&t.type!==`ForInStatement`&&t.type!==`ForOfStatement`;)t=t.parent;return t||e}t.exports={meta:{type:`problem`,docs:{description:`Disallow assigning to imported bindings`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-import-assign`},schema:[],messages:{readonly:`'{{name}}' is read-only.`,readonlyMember:`The members of '{{name}}' are read-only.`}},create(e){let t=e.sourceCode;return{ImportDeclaration(n){let r=t.getScope(n);for(let i of t.getDeclaredVariables(n)){let t=i.defs.some(e=>e.node.type===`ImportNamespaceSpecifier`),n=null;for(let a of i.references){let i=a.identifier;i!==n&&(n=i,a.isWrite()?e.report({node:u(i),messageId:`readonly`,data:{name:i.name}}):t&&l(i,r)&&e.report({node:u(i),messageId:`readonlyMember`,data:{name:i.name}}))}}}}}}})),cn=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:`Disallow inline comments after code`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-inline-comments`},schema:[{type:`object`,properties:{ignorePattern:{type:`string`}},additionalProperties:!1}],messages:{unexpectedInlineComment:`Unexpected comment inline with code.`}},create(e){let t=e.sourceCode,[{ignorePattern:r}]=e.options,i=r&&new RegExp(r,`u`);function a(r){let a=String(t.lines[r.loc.start.line-1]),o=String(t.lines[r.loc.end.line-1]),s=a.slice(0,r.loc.start.column).trim(),c=o.slice(r.loc.end.column).trim(),l=!s,u=!c;if(!(l&&u)&&!(i&&i.test(r.value))){if((l||s===`{`)&&(u||c===`}`)){let e=t.getNodeByRangeIndex(r.range[0]);if(e&&e.type===`JSXEmptyExpression`)return}n.isDirectiveComment(r)||e.report({node:r,messageId:`unexpectedInlineComment`})}}return{Program(){t.getAllComments().filter(e=>e.type!==`Shebang`).forEach(a)}}}}})),ln=n(((e,t)=>{let n=M(),r=new Set([`Program`,`StaticBlock`,`ExportNamedDeclaration`,`ExportDefaultDeclaration`]),i=new Set([`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]);function a(e){let{parent:t}=e;for(;t;){if(t.type===`StaticBlock`)return`class static block body`;if(n.isFunction(t))return`function body`;({parent:t}=t)}return`program`}t.exports={meta:{type:`problem`,defaultOptions:[`functions`,{blockScopedFunctions:`allow`}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-inner-declarations`},schema:[{enum:[`functions`,`both`]},{type:`object`,properties:{blockScopedFunctions:{enum:[`allow`,`disallow`]}},additionalProperties:!1}],messages:{moveDeclToRoot:`Move {{type}} declaration to {{body}} root.`}},create(e){let t=e.options[0]===`both`,{blockScopedFunctions:n}=e.options[1],o=e.sourceCode,s=e.languageOptions.ecmaVersion;function c(t){let n=t.parent;n.type===`BlockStatement`&&i.has(n.parent.type)||r.has(n.type)||e.report({node:t,messageId:`moveDeclToRoot`,data:{type:t.type===`FunctionDeclaration`?`function`:`variable`,body:a(t)}})}return{FunctionDeclaration(e){let t=o.getScope(e).upper.isStrict;n===`allow`&&s>=2015&&t||c(e)},VariableDeclaration(e){t&&e.kind===`var`&&c(e)}}}}})),un=n(((e,t)=>{let n=Tt().RegExpValidator,r=new n,i=`dgimsuvy`;t.exports={meta:{type:`problem`,defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-invalid-regexp`},schema:[{type:`object`,properties:{allowConstructorFlags:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{regexMessage:`{{message}}.`}},create(e){let[{allowConstructorFlags:t}]=e.options,n=[];if(t){let e=t.join(``).replace(RegExp(`[${i}]`,`gu`),``);e&&(n=[...new Set(e)])}function a(t,n){e.report({node:t,messageId:`regexMessage`,data:{message:n}})}function o(e){return e&&e.type===`Literal`&&typeof e.value==`string`}function s(e){return e.arguments.length<2?``:o(e.arguments[1])?e.arguments[1].value:null}function c(e,t){try{return r.validatePattern(e,void 0,void 0,t),null}catch(e){return e.message}}function l(e,t,n){let r=[];if(typeof t==`string`)for(let e of t)n.includes(e)&&r.push(e);return e&&e.includes(`u`)&&e.includes(`v`)?`Regex 'u' and 'v' flags cannot be used together`:r.length>0?`Duplicate flags ('${r.join(``)}') supplied to RegExp constructor`:t?`Invalid flags supplied to RegExp constructor '${t}'`:null}return{"CallExpression, NewExpression"(e){if(e.callee.type!==`Identifier`||e.callee.name!==`RegExp`)return;let t=s(e),r=t,u=n.length>0?i.split(``).concat(n):i.split(``);t&&u.forEach(e=>{r=r.replace(e,``)});let d=l(t,r,u);if(d){a(e,d);return}if(!o(e.arguments[0]))return;let f=e.arguments[0].value;d=t===null?c(f,{unicode:!0,unicodeSets:!1})&&c(f,{unicode:!1,unicodeSets:!0})&&c(f,{unicode:!1,unicodeSets:!1}):c(f,{unicode:t.includes(`u`),unicodeSets:t.includes(`v`)}),d&&a(e,d)}}}}})),dn=n(((e,t)=>{let n=M();function r(e,t){return e.origin===`function`&&t.type===`ArrowFunctionExpression`}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-invalid-this`},schema:[{type:`object`,properties:{capIsConstructor:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedThis:`Unexpected 'this'.`}},create(e){let[{capIsConstructor:t}]=e.options,i=[],a=e.sourceCode;return i.getCurrent=function(){let e=this.at(-1);return e.init||(e.init=!0,e.valid=!n.isDefaultThisBinding(e.node,a,{capIsConstructor:t})),e},{onCodePathStart(t,n){if(!r(t,n)){if(t.origin===`program`){let t=a.getScope(n),r=e.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:n,valid:!(n.sourceType===`module`||r.globalReturn&&t.childScopes[0].isStrict)});return}i.push({init:!a.getScope(n).isStrict,node:n,valid:!0})}},onCodePathEnd(e,t){r(e,t)||i.pop()},"AccessorProperty > *.value"(e){i.push({init:!0,node:e,valid:!0})},"AccessorProperty:exit"(){i.pop()},ThisExpression(t){if(t.parent.type===`AccessorProperty`&&t.parent.value===t)return;let n=i.getCurrent();n&&!n.valid&&e.report({node:t,messageId:`unexpectedThis`})}}}}})),fn=n(((e,t)=>{let n=M(),r=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,i=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gu,a=/[\u2028\u2029]/gu,o=n.createGlobalLinebreakMatcher();t.exports={meta:{type:`problem`,defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:`Disallow irregular whitespace`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-irregular-whitespace`},schema:[{type:`object`,properties:{skipComments:{type:`boolean`},skipStrings:{type:`boolean`},skipTemplates:{type:`boolean`},skipRegExps:{type:`boolean`},skipJSXText:{type:`boolean`}},additionalProperties:!1}],messages:{noIrregularWhitespace:`Irregular whitespace not allowed.`}},create(e){let[{skipComments:t,skipStrings:n,skipRegExps:s,skipTemplates:c,skipJSXText:l}]=e.options,u=e.sourceCode,d=u.getAllComments(),f=[];function p(e){let t=e.loc.start,n=e.loc.end;f=f.filter(({loc:{start:e}})=>e.line<t.line||e.line===t.line&&e.column<t.column||e.line===n.line&&e.column>=n.column||e.line>n.line)}function m(e){let t=n&&typeof e.value==`string`,i=s&&!!e.regex;(t||i)&&r.test(e.raw)&&p(e)}function h(e){typeof e.value.raw==`string`&&r.test(e.value.raw)&&p(e)}function g(e){r.test(e.value)&&p(e)}function _(e){r.test(e.raw)&&p(e)}function v(e){u.lines.forEach((t,n)=>{let r=n+1,a;for(;(a=i.exec(t))!==null;)f.push({node:e,messageId:`noIrregularWhitespace`,loc:{start:{line:r,column:a.index},end:{line:r,column:a.index+a[0].length}}})})}function y(e){let t=u.getText(),n=u.lines,r=t.match(o),i=-1,s;for(;(s=a.exec(t))!==null;){let t=r.indexOf(s[0],i+1)||0;f.push({node:e,messageId:`noIrregularWhitespace`,loc:{start:{line:t+1,column:n[t].length},end:{line:t+2,column:0}}}),i=t}}function b(){}let x={};return r.test(u.getText())?(x.Program=function(e){v(e),y(e)},x.Literal=m,x.TemplateElement=c?h:b,x.JSXText=l?_:b,x[`Program:exit`]=function(){t&&d.forEach(g),f.forEach(t=>e.report(t))}):x.Program=b,x}}})),pn=n(((e,t)=>{let{getStaticPropertyName:n}=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-iterator`},schema:[],messages:{noIterator:`Reserved name '__iterator__'.`}},create(e){return{MemberExpression(t){n(t)===`__iterator__`&&e.report({node:t,messageId:`noIterator`})}}}}})),mn=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow labels that share a name with a variable`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-label-var`},schema:[],messages:{identifierClashWithLabel:`Found identifier with same name as label.`}},create(e){let t=e.sourceCode;function r(e,t){return n.getVariableByName(e,t)!==null}return{LabeledStatement(n){r(t.getScope(n),n.label.name)&&e.report({node:n,messageId:`identifierClashWithLabel`})}}}}})),hn=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:`Disallow labeled statements`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-labels`},schema:[{type:`object`,properties:{allowLoop:{type:`boolean`},allowSwitch:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedLabel:`Unexpected labeled statement.`,unexpectedLabelInBreak:`Unexpected label in break statement.`,unexpectedLabelInContinue:`Unexpected label in continue statement.`}},create(e){let[{allowLoop:t,allowSwitch:r}]=e.options,i=null;function a(e){return n.isLoop(e)?`loop`:e.type===`SwitchStatement`?`switch`:`other`}function o(e){switch(e){case`loop`:return t;case`switch`:return r;default:return!1}}function s(e){let t=i;for(;t;){if(t.label===e)return t.kind;t=t.upper}return`other`}return{LabeledStatement(e){i={label:e.label.name,kind:a(e.body),upper:i}},"LabeledStatement:exit"(t){o(i.kind)||e.report({node:t,messageId:`unexpectedLabel`}),i=i.upper},BreakStatement(t){t.label&&!o(s(t.label.name))&&e.report({node:t,messageId:`unexpectedLabelInBreak`})},ContinueStatement(t){t.label&&!o(s(t.label.name))&&e.report({node:t,messageId:`unexpectedLabelInContinue`})}}}}})),gn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary nested blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-lone-blocks`},schema:[],messages:{redundantBlock:`Block is redundant.`,redundantNestedBlock:`Nested block is redundant.`}},create(e){let t=[],n,r=e.sourceCode;function i(t){let n=t.parent.type===`BlockStatement`||t.parent.type===`StaticBlock`?`redundantNestedBlock`:`redundantBlock`;e.report({node:t,messageId:n})}function a(e){return e.parent.type===`BlockStatement`||e.parent.type===`StaticBlock`||e.parent.type===`Program`||e.parent.type===`SwitchCase`&&!(e.parent.consequent[0]===e&&e.parent.consequent.length===1)}function o(e){if(t.length===0)return;let n=e.parent;t.at(-1)===n&&t.pop()}return n={BlockStatement(e){a(e)&&i(e)}},e.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(e){a(e)&&t.push(e)},"BlockStatement:exit"(e){t.length>0&&t.at(-1)===e?(t.pop(),i(e)):(e.parent.type===`BlockStatement`||e.parent.type===`StaticBlock`)&&e.parent.body.length===1&&i(e)}},n.VariableDeclaration=function(e){e.kind!==`var`&&o(e)},n.FunctionDeclaration=function(e){r.getScope(e).isStrict&&o(e)},n.ClassDeclaration=o),n}}})),_n=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-lonely-if`},schema:[],fixable:`code`,messages:{unexpectedLonelyIf:`Unexpected if as the only statement in an else block.`}},create(e){let t=e.sourceCode;return{IfStatement(r){let i=r.parent,a=i.parent;i&&i.type===`BlockStatement`&&i.body.length===1&&!n.areBracesNecessary(i,t)&&a&&a.type===`IfStatement`&&i===a.alternate&&e.report({node:r,messageId:`unexpectedLonelyIf`,fix(e){let n=t.getFirstToken(i),a=t.getLastToken(i),o=t.getTokenBefore(n),s=t.getTokenAfter(a),c=t.getLastToken(r.consequent),l=t.getText();return l.slice(n.range[1],r.range[0]).trim()||l.slice(r.range[1],a.range[0]).trim()||r.consequent.type!==`BlockStatement`&&c.value!==`;`&&s&&(r.consequent.loc.end.line===s.loc.start.line||/^[([/+`-]/u.test(s.value)||c.value===`++`||c.value===`--`)?null:e.replaceTextRange([n.range[0],a.range[1]],(o.range[1]===n.range[0]?` `:``)+t.getText(r))}})}}}}})),vn=n(((e,t)=>{let n=new Set([`const`,`using`,`await using`]);function r(e){return(e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`)&&e.parent&&e.parent.type===`CallExpression`&&e.parent.callee===e}t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:`Disallow function declarations that contain unsafe references inside loop statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-loop-func`},schema:[],messages:{unsafeRefs:`Function declared in a loop contains unsafe references to variable(s) {{ varNames }}.`}},create(e){let t=new Set,i=e.sourceCode;function a(e){for(let n=e;n.parent;n=n.parent){let e=n.parent;switch(e.type){case`WhileStatement`:case`DoWhileStatement`:return e;case`ForStatement`:if(e.init!==n)return e;break;case`ForInStatement`:case`ForOfStatement`:if(e.right!==n)return e;break;case`ArrowFunctionExpression`:case`FunctionExpression`:case`FunctionDeclaration`:if(t.has(e))break;return null;default:break}}return null}function o(e,t){let n=t?t.range[1]:0,r=e,i=e;for(;i&&i.range[0]>=n;)r=i,i=a(i);return r}function s(e,t){let r=t.resolved,i=r&&r.defs[0],a=i&&i.parent,s=a&&a.type===`VariableDeclaration`?a.kind:``;if(n.has(s)||s===`let`&&a.range[0]>e.range[0]&&a.range[1]<e.range[1])return!0;let c=o(e,s===`let`?a:null).range[0];function l(e){let t=e.identifier;return!e.isWrite()||r.scope.variableScope===e.from.variableScope&&t.range[0]<c}return!!r&&r.references.every(l)}function c(n){let o=a(n);if(!o)return;let c=i.getScope(n).through;if(!(n.async||n.generator)&&r(n)&&!(n.type===`FunctionExpression`&&n.id&&c.some(e=>e.identifier.name===n.id.name))){t.add(n);return}let l=[...new Set(c.filter(e=>e.resolved&&!s(o,e)).map(e=>e.identifier.name))];l.length>0&&e.report({node:n,messageId:`unsafeRefs`,data:{varNames:`'${l.join(`', '`)}'`}})}return{ArrowFunctionExpression:c,FunctionExpression:c,FunctionDeclaration:c}}}})),yn=n(((e,t)=>{var n=class{coefficient;magnitude;constructor(e,t){this.coefficient=e,this.magnitude=t}toString(){return`${this.coefficient[0]}${this.coefficient.length>1?`.${this.coefficient.slice(1)}`:``}e${this.magnitude}`}};function r(e){return typeof e.value==`number`}function i(e){return e.raw.replace(/_/gu,``)}function a(e){return[`0x`,`0X`,`0b`,`0B`,`0o`,`0O`].every(t=>!e.raw.startsWith(t))&&!/^0[0-7]+$/u.test(e.raw)}function o(e){let t=i(e).toUpperCase(),n;return n=t.startsWith(`0B`)?2:t.startsWith(`0X`)?16:8,!t.endsWith(e.value.toString(n).toUpperCase())}function s(e){for(let t=0;t<e.length;t++)if(e[t]!==`0`)return e.slice(t);return e}function c(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==`0`)return e.slice(0,t+1);return e}function l(e){let t=s(e);return new n(c(t),t.length-1)}function u(e){let t=s(e),r=t.indexOf(`.`);switch(r){case 0:{let e=s(t.slice(1));return new n(e,e.length-t.length)}case-1:return new n(t,t.length-1);default:return new n(t.replace(`.`,``),r-1)}}function d(e,t){let n=e.split(`e`),r=n[0],i=t||e.includes(`.`)?u(r):l(r);return n.length>1&&(i.magnitude+=parseInt(n[1],10)),i}function f(e){let t=d(i(e).toLowerCase(),!1),n=t.coefficient.length;if(n>100)return!0;let r=d(e.value.toPrecision(n),!0);return t.magnitude!==r.magnitude||t.coefficient!==r.coefficient}function p(e){return a(e)?f(e):o(e)}t.exports={meta:{type:`problem`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:`Disallow literal numbers that lose precision`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-loss-of-precision`},schema:[],messages:{noLossOfPrecision:`This number literal will lose precision at runtime.`}},create(e){return{Literal(t){t.value&&r(t)&&p(t)&&e.report({messageId:`noLossOfPrecision`,node:t})}}}}})),bn=n(((e,t)=>{let n=M(),r=2**32-1;function i(e){return typeof e==`string`?BigInt(e.slice(0,-1)):e}function a(e){return e.parent.type===`TSEnumMember`}function o(e){let t=e.parent;for(;t.parent.type===`TSUnionType`;)t=t.parent;return t.parent.type===`TSTypeAliasDeclaration`}function s(e){return!!(e.parent?.type===`PropertyDefinition`&&e.parent.readonly)}function c(e){let t=e.parent;for(;t.parent.type===`TSUnionType`||t.parent.type===`TSIntersectionType`;)t=t.parent;return t.parent.type===`TSIndexedAccessType`}t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:`Disallow magic numbers`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-magic-numbers`},schema:[{type:`object`,properties:{detectObjects:{type:`boolean`,default:!1},enforceConst:{type:`boolean`,default:!1},ignore:{type:`array`,items:{anyOf:[{type:`number`},{type:`string`,pattern:`^[+-]?(?:0|[1-9][0-9]*)n$`}]},uniqueItems:!0},ignoreArrayIndexes:{type:`boolean`,default:!1},ignoreDefaultValues:{type:`boolean`,default:!1},ignoreClassFieldInitialValues:{type:`boolean`,default:!1},ignoreEnums:{type:`boolean`,default:!1},ignoreNumericLiteralTypes:{type:`boolean`,default:!1},ignoreReadonlyClassProperties:{type:`boolean`,default:!1},ignoreTypeIndexes:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{useConst:`Number constants declarations must use 'const'.`,noMagic:`No magic number: {{raw}}.`}},create(e){let t=e.options[0]||{},l=!!t.detectObjects,u=!!t.enforceConst,d=new Set((t.ignore||[]).map(i)),f=!!t.ignoreArrayIndexes,p=!!t.ignoreDefaultValues,m=!!t.ignoreClassFieldInitialValues,h=!!t.ignoreEnums,g=!!t.ignoreNumericLiteralTypes,_=!!t.ignoreReadonlyClassProperties,v=!!t.ignoreTypeIndexes,y=l?[]:[`ObjectExpression`,`Property`,`AssignmentExpression`];function b(e){return d.has(e)}function x(e){let t=e.parent;return t.type===`AssignmentPattern`&&t.right===e}function S(e){let t=e.parent;return t.type===`PropertyDefinition`&&t.value===e}function C(e){let t=e.parent;return t.type===`CallExpression`&&e===t.arguments[1]&&(n.isSpecificId(t.callee,`parseInt`)||n.isSpecificMemberAccess(t.callee,`Number`,`parseInt`))}function w(e){return e.parent.type.indexOf(`JSX`)===0}function T(e,t){let n=e.parent;return n.type===`MemberExpression`&&n.property===e&&(Number.isInteger(t)||typeof t==`bigint`)&&t>=0&&t<r}return{Literal(t){if(!n.isNumericLiteral(t))return;let r,i,l;t.parent.type===`UnaryExpression`&&[`-`,`+`].includes(t.parent.operator)?(r=t.parent,i=t.parent.operator===`-`?-t.value:t.value,l=`${t.parent.operator}${t.raw}`):(r=t,i=t.value,l=t.raw);let d=r.parent;b(i)||p&&x(r)||m&&S(r)||h&&a(r)||g&&o(r)||v&&c(r)||_&&s(r)||C(r)||w(r)||f&&T(r,i)||(d.type===`VariableDeclarator`?u&&d.parent.kind!==`const`&&e.report({node:r,messageId:`useConst`}):(!y.includes(d.type)||d.type===`AssignmentExpression`&&d.left.type===`Identifier`)&&e.report({node:r,messageId:`noMagic`,data:{raw:l}}))}}}}})),xn=n(((e,t)=>{t.exports=function(e){return/^\p{M}$/u.test(String.fromCodePoint(e))}})),Sn=n(((e,t)=>{t.exports=function(e){return e>=127995&&e<=127999}})),Cn=n(((e,t)=>{t.exports=function(e){return e>=127462&&e<=127487}})),wn=n(((e,t)=>{t.exports=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}})),Tn=n(((e,t)=>{t.exports={isCombiningCharacter:xn(),isEmojiModifier:Sn(),isRegionalIndicatorSymbol:Cn(),isSurrogatePair:wn()}})),En=n(((e,t)=>{let{RegExpValidator:n}=Tt(),r=2025;function i(e,t,i=`u`){if(i===`u`&&e<=5||i===`v`&&e<=2023)return!1;let a=new n({ecmaVersion:Math.min(e,r)});try{a.validatePattern(t,void 0,void 0,i===`u`?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}t.exports={isValidWithUnicodeFlag:i,REGEXPP_LATEST_ECMA_VERSION:r}})),Dn=n(((e,t)=>{var n=class{constructor(e,t){this.start=e,this.source=t}get end(){return this.start+this.length}get length(){return this.source.length}},r=class{constructor(e){this.source=e,this.pos=0}advance(e){this.pos+=e}read(e=0,t=1){let n=e+this.pos;return this.source.slice(n,n+t)}};let i={__proto__:null,b:`\b`,f:`\f`,n:`
53
+ `,r:`\r`,t:` `,v:`\v`};function a(e,t){let n=e.read(0,t),r=parseInt(n,16);return e.advance(t),String.fromCharCode(r)}function o(e){let t=/\{(?<hexDigits>[\dA-F]+)\}/iuy;t.lastIndex=e.pos;let n=t.exec(e.source);if(n){let r=parseInt(n.groups.hexDigits,16);return e.pos=t.lastIndex,String.fromCodePoint(r)}return a(e,4)}function s(e,t){let[n]=e.read(-1,t).match(/^[0-7]+/u);e.advance(n.length-1);let r=parseInt(n,8);return String.fromCharCode(r)}function c(e){let t=e.read(1);e.advance(2);let n=i[t];if(n)return n;switch(t){case`x`:return a(e,2);case`u`:return o(e);case`\r`:e.read()===`
54
+ `&&e.advance(1);case`
55
+ `:case`\u2028`:case`\u2029`:return``;case`0`:case`1`:case`2`:case`3`:return s(e,3);case`4`:case`5`:case`6`:case`7`:return s(e,2);default:return t}}function*l(e){let t=e.pos,r=c(e),i=e.pos,a=e.source.slice(t,i);switch(r.length){case 0:break;case 1:yield new n(t,a);break;default:yield new n(t,a),yield new n(t,a);break}}function u(e){let t=new r(e),i=t.read();t.advance(1);let a=[];for(;;){let e=t.read();if(e===i)break;e===`\\`?a.push(...l(t)):(a.push(new n(t.pos,e)),t.advance(1))}return a}function d(e){let t=new r(e);t.advance(1);let i=[];for(;;){let e=t.read();if(e==="`"||e===`$`&&t.read(1)===`{`)break;if(e===`\\`)i.push(...l(t));else{let r;r=e===`\r`&&t.read(1)===`
56
+ `?`\r
57
+ `:e,i.push(new n(t.pos,r)),t.advance(r.length)}}return i}t.exports={parseStringLiteral:u,parseTemplateToken:d}})),On=n(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStaticValue:a,getStringIfConstant:o}=q(),{RegExpParser:s,visitRegExpAST:c}=Tt(),{isCombiningCharacter:l,isEmojiModifier:u,isRegionalIndicatorSymbol:d,isSurrogatePair:f}=Tn(),p=M(),{isValidWithUnicodeFlag:m}=En(),{parseStringLiteral:h,parseTemplateToken:g}=Dn();function*_(e){let t=[];for(let n of e)switch(n.type){case`Character`:t.push(n);break;case`CharacterClassRange`:t.push(n.min),yield t,t=[n.max];break;case`CharacterSet`:case`CharacterClass`:case`ClassStringDisjunction`:case`ExpressionCharacterClass`:t.length>0&&(yield t,t=[]);break}t.length>0&&(yield t)}function v(e){return/^\\u\{[\da-f]+\}$/iu.test(e.raw)}let y={*surrogatePairWithoutUFlag(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&f(r.value,n.value)&&!v(r)&&!v(n)&&(yield[r,n])}},*surrogatePair(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&f(r.value,n.value)&&(v(r)||v(n))&&(yield[r,n])}},*combiningClass(e,t){for(let[n,r]of e.entries()){let e=t[n-1];e&&r&&l(r.value)&&!l(e.value)&&(yield[e,r])}},*emojiModifier(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&u(n.value)&&!u(r.value)&&(yield[r,n])}},*regionalIndicatorSymbol(e){for(let[t,n]of e.entries()){let r=e[t-1];r&&n&&d(n.value)&&d(r.value)&&(yield[r,n])}},*zwj(e){let t=null;for(let[n,r]of e.entries()){let i=e[n-1],a=e[n+1];i&&r&&a&&r.value===8205&&i.value!==8205&&a.value!==8205&&(t?t.at(-1)===i?t.push(r,a):(yield t,t=e.slice(n-1,n+2)):t=e.slice(n-1,n+2))}t&&(yield t)}},b=Object.keys(y);function x(e,t){if(!e)return null;if(e.type===`Literal`&&e.regex)return{regex:e.regex};let n=a(e,t);return n?.value instanceof RegExp?null:n}function S(e,t){return t.startsWith(`\\`)?/(?<=^\\+).$/su.exec(t)?.[0]!==String.fromCodePoint(e.value):!1}function C(e,t,n){let r=e.start,i=e.end-1,a=n[r].start,o=n[i].end;return S(e,t.slice(a,o))}t.exports={meta:{type:`problem`,defaultOptions:[{allowEscape:!1}],docs:{description:`Disallow characters which are made with multiple code points in character class syntax`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-misleading-character-class`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowEscape:{type:`boolean`}},additionalProperties:!1}],messages:{surrogatePairWithoutUFlag:`Unexpected surrogate pair in character class. Use 'u' flag.`,surrogatePair:`Unexpected surrogate pair in character class.`,combiningClass:`Unexpected combined character in character class.`,emojiModifier:`Unexpected modified Emoji in character class.`,regionalIndicatorSymbol:`Unexpected national flag in character class.`,zwj:`Unexpected joined character sequence in character class.`,suggestUnicodeFlag:`Add unicode 'u' flag to regex.`}},create(e){let[{allowEscape:t}]=e.options,a=e.sourceCode,l=new s,u=new Set;function d(n,r,i,o){let s;try{s=l.parsePattern(r,0,r.length,{unicode:i.includes(`u`),unicodeSets:i.includes(`v`)})}catch{return}let u=null;function d(e){if(n.type===`Literal`&&n.regex)return S(e,e.raw);if(n.type===`Literal`&&typeof n.value==`string`){let t=n.raw;return u??=h(t),C(e,t,u)}if(p.isStaticTemplateLiteral(n)){let t=a.getText(n);return u??=g(t),C(e,t,u)}return!1}let f=new Map;c(s,{onCharacterClassEnter(e){for(let n of _(e.elements)){let e;e=t?n.map(e=>d(e)?null:e):n;for(let t of b){let r=y[t](e,n);f.has(t)?f.get(t).push(...r):f.set(t,[...r])}}}});function m(e){return!p.isStaticTemplateLiteral(n)&&n.type!==`Literal`?e.length?[n.loc]:[]:e.map(e=>{let t=e[0].start,r=e.at(-1).end-1,i,o;if(n.type===`TemplateLiteral`){let e=a.getText(n),s=n.range[0];u??=g(e),i=s+u[t].start,o=s+u[r].end}else if(typeof n.value==`string`){let e=n.raw,a=n.range[0];u??=h(e),i=a+u[t].start,o=a+u[r].end}else{let e=n.range[0]+1;i=e+t,o=e+r+1}return{start:a.getLocFromIndex(i),end:a.getLocFromIndex(o)}})}for(let[t,r]of f){let i;t===`surrogatePairWithoutUFlag`&&(i=[{messageId:`suggestUnicodeFlag`,fix:o}]);let a=m(r);for(let r of a)e.report({node:n,loc:r,messageId:t,suggest:i})}}return{"Literal[regex]"(t){u.has(t)||d(t,t.regex.pattern,t.regex.flags,n=>m(e.languageOptions.ecmaVersion,t.regex.pattern)?n.insertTextAfter(t,`u`):null)},Program(t){let s=a.getScope(t),c=new i(s);for(let{node:t}of c.iterateGlobalReferences({RegExp:{[n]:!0,[r]:!0}})){let n,r,[i,c]=t.arguments,l=x(i,s);if(l){if(c)l.regex?(n=l.regex.pattern,u.add(i)):n=String(l.value),r=o(c,s);else{if(l.regex)continue;n=String(l.value),r=``}typeof r==`string`&&d(i,n,r,r=>{if(!m(e.languageOptions.ecmaVersion,n))return null;if(t.arguments.length===1){let e=a.getLastToken(t,{skip:1});return r.insertTextAfter(e,p.isCommaToken(e)?` "u",`:`, "u"`)}if(c.type===`Literal`&&typeof c.value==`string`||c.type===`TemplateLiteral`){let e=[c.range[0],c.range[1]-1];return r.insertTextAfterRange(e,`u`)}return null})}}}}}}})),kn=n(((e,t)=>{let n=M(),r=[`+`,`-`,`*`,`/`,`%`,`**`],i=[`&`,`|`,`^`,`~`,`<<`,`>>`,`>>>`],a=[`==`,`!=`,`===`,`!==`,`>`,`>=`,`<`,`<=`],o=[`&&`,`||`],s=[`in`,`instanceof`],c=[].concat(r,i,a,o,s,[`?:`],[`??`]),l=[r,i,a,o,s],u=/^(?:Binary|Logical|Conditional)Expression$/u;function d(e={}){return{groups:e.groups&&e.groups.length>0?e.groups:l,allowSamePrecedence:e.allowSamePrecedence!==!1}}function f(e,t,n){return e.some(e=>e.includes(t)&&e.includes(n))}function p(e){return e.type===`ConditionalExpression`?e.test:e.left}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-mixed-operators`,url:`https://eslint.style/rules/no-mixed-operators`}}]},type:`suggestion`,docs:{description:`Disallow mixed binary operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-operators`},schema:[{type:`object`,properties:{groups:{type:`array`,items:{type:`array`,items:{enum:c},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,r=d(e.options[0]);function i(e){let t=e,i=e.parent;return!f(r.groups,t.operator,i.type===`ConditionalExpression`?`?:`:i.operator)||r.allowSamePrecedence&&n.getPrecedence(t)===n.getPrecedence(i)}function a(e){return e.operator!==e.parent.operator&&!n.isParenthesised(t,e)}function o(e){return t.getTokenAfter(p(e),n.isNotClosingParenToken)}function s(t){let n=t.parent,r=p(n)===t?t:n,i=p(n)===t?n:t,a={leftOperator:r.operator||`?:`,rightOperator:i.operator||`?:`};e.report({node:r,loc:o(r).loc,messageId:`unexpectedMixedOperator`,data:a}),e.report({node:i,loc:o(i).loc,messageId:`unexpectedMixedOperator`,data:a})}function c(e){u.test(e.parent.type)&&a(e)&&!i(e)&&s(e)}return{BinaryExpression:c,LogicalExpression:c}}}})),An=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-mixed-requires`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md`}}]},type:`suggestion`,docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-requires`},schema:[{oneOf:[{type:`boolean`},{type:`object`,properties:{grouping:{type:`boolean`},allowCall:{type:`boolean`}},additionalProperties:!1}]}],messages:{noMixRequire:`Do not mix 'require' and other declarations.`,noMixCoreModuleFileComputed:`Do not mix core, module, file and computed requires.`}},create(e){let t=e.options[0],n=!1,r=!1;typeof t==`object`?(n=t.grouping,r=t.allowCall):n=!!t;function i(){return`assert.buffer.child_process.cluster.crypto.dgram.dns.domain.events.fs.http.https.net.os.path.punycode.querystring.readline.repl.smalloc.stream.string_decoder.tls.tty.url.util.v8.vm.zlib`.split(`.`)}let a=i(),o=`require`,s=`uninitialized`,c=`other`,l=`computed`;function u(e){return e?e.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`require`?o:r&&e.type===`CallExpression`&&e.callee.type===`CallExpression`?u(e.callee):e.type===`MemberExpression`?u(e.object):c:s}function d(e){if(e.type===`MemberExpression`)return d(e.object);if(e.arguments.length===0)return l;let t=e.arguments[0];return t.type!==`Literal`||typeof t.value!=`string`?l:a.includes(t.value)?`core`:/^\.{0,2}\//u.test(t.value)?`file`:`module`}function f(e){let t={};return e.forEach(e=>{let n=u(e.init);t[n]=!0}),!!(t[o]&&(t[s]||t[c]))}function p(e){let t={};return e.forEach(e=>{u(e.init)===o&&(t[d(e.init)]=!0)}),Object.keys(t).length<=1}return{VariableDeclaration(t){f(t.declarations)?e.report({node:t,messageId:`noMixRequire`}):n&&!p(t.declarations)&&e.report({node:t,messageId:`noMixCoreModuleFileComputed`})}}}}})),jn=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-mixed-spaces-and-tabs`,url:`https://eslint.style/rules/no-mixed-spaces-and-tabs`}}]},type:`layout`,docs:{description:`Disallow mixed spaces and tabs for indentation`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs`},schema:[{enum:[`smart-tabs`,!0,!1]}],messages:{mixedSpacesAndTabs:`Mixed spaces and tabs.`}},create(e){let t=e.sourceCode,n;switch(e.options[0]){case!0:case`smart-tabs`:n=!0;break;default:n=!1}return{"Program:exit"(r){let i=t.lines,a=t.getAllComments(),o=new Set;a.forEach(e=>{for(let t=e.loc.start.line+1;t<=e.loc.end.line;t++)o.add(t)});let s=/^(?=( +|\t+))\1(?:\t| )/u;n&&(s=/^(?=(\t*))\1(?=( +))\2\t/u),i.forEach((n,i)=>{let a=s.exec(n);if(a){let n=i+1,s={start:{line:n,column:a[0].length-2},end:{line:n,column:a[0].length}};if(!o.has(n)){let n=t.getNodeByRangeIndex(t.getIndexFromLoc(s.start));n&&[`Literal`,`TemplateElement`].includes(n.type)||e.report({node:r,loc:s,messageId:`mixedSpacesAndTabs`})}}})}}}}})),Mn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{ignoreNonDeclaration:!1}],docs:{description:`Disallow use of chained assignment expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-multi-assign`},schema:[{type:`object`,properties:{ignoreNonDeclaration:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedChain:`Unexpected chained assignment.`}},create(e){let[{ignoreNonDeclaration:t}]=e.options,n=[`VariableDeclarator > AssignmentExpression.init`,`PropertyDefinition > AssignmentExpression.value`];return t||n.push(`AssignmentExpression > AssignmentExpression.right`),{[n](t){e.report({node:t,messageId:`unexpectedChain`})}}}}})),Nn=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-multi-spaces`,url:`https://eslint.style/rules/no-multi-spaces`}}]},type:`layout`,docs:{description:`Disallow multiple spaces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-multi-spaces`},fixable:`whitespace`,schema:[{type:`object`,properties:{exceptions:{type:`object`,patternProperties:{"^([A-Z][a-z]*)+$":{type:`boolean`}},additionalProperties:!1},ignoreEOLComments:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{multipleSpaces:`Multiple spaces found before '{{displayValue}}'.`}},create(e){let t=e.sourceCode,r=e.options[0]||{},i=r.ignoreEOLComments,a=Object.assign({Property:!0},r.exceptions),o=Object.keys(a).some(e=>a[e]);function s(e){let t=e.value.split(`
58
+ `),n=t[0],r=`${n.slice(0,12)}...`;return t.length===1&&n.length<=12?n:r}return{Program(){t.tokensAndComments.forEach((r,c,l)=>{if(c===l.length-1)return;let u=l[c+1];if(!t.text.slice(r.range[1],u.range[0]).includes(` `)||r.loc.end.line<u.loc.start.line||i&&n.isCommentToken(u)&&(c===l.length-2||u.loc.end.line<l[c+2].loc.start.line))return;if(o){let e=t.getNodeByRangeIndex(u.range[0]-1);if(e&&a[e.type])return}let d;d=u.type===`Block`?`/*${s(u)}*/`:u.type===`Line`?`//${s(u)}`:u.value,e.report({node:u,loc:{start:r.loc.end,end:u.loc.start},messageId:`multipleSpaces`,data:{displayValue:d},fix:e=>e.replaceTextRange([r.range[1],u.range[0]],` `)})})}}}}})),Pn=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow multiline strings`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-multi-str`},schema:[],messages:{multilineString:`Multiline support is limited to browsers supporting ES5 only.`}},create(e){function t(e){return e.type.indexOf(`JSX`)===0}return{Literal(r){n.LINEBREAK_MATCHER.test(r.raw)&&!t(r.parent)&&e.report({node:r,messageId:`multilineString`})}}}}})),Fn=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-multiple-empty-lines`,url:`https://eslint.style/rules/no-multiple-empty-lines`}}]},type:`layout`,docs:{description:`Disallow multiple empty lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-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=t,r=t;e.options.length&&(t=e.options[0].max,n=e.options[0].maxEOF===void 0?t:e.options[0].maxEOF,r=e.options[0].maxBOF===void 0?t:e.options[0].maxBOF);let i=e.sourceCode,a=i.lines.at(-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"(s){return a.reduce((e,t,n)=>((t.trim()||o.has(n+1))&&e.push(n+1),e),[]).concat(a.length+1).reduce((o,c)=>{let l,u;return o===0?(l=`blankBeginningOfFile`,u=r):c===a.length+1?(l=`blankEndOfFile`,u=n):(l=`consecutiveBlank`,u=t),c-o-1>u&&e.report({node:s,loc:{start:{line:o+u+1,column:0},end:{line:c,column:0}},messageId:l,data:{max:u,pluralizedLines:u===1?`line`:`lines`},fix(e){let t=i.getIndexFromLoc({line:o+1,column:0}),n=c-u,r=n<=a.length?i.getIndexFromLoc({line:n,column:0}):i.text.length;return e.removeRange([t,r])}}),c},0)}}}}})),In=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow assignments to native objects or read-only global variables`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-native-reassign`},deprecated:{message:`Renamed rule.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-global-assign`,url:`https://eslint.org/docs/rules/no-global-assign`}}]},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:`Read-only global '{{name}}' should not be modified.`}},create(e){let t=e.options[0],n=t&&t.exceptions||[],r=e.sourceCode;function i(t,n,r){let i=t.identifier;t.init===!1&&t.isWrite()&&(n===0||r[n-1].identifier!==i)&&e.report({node:i,messageId:`nativeReassign`,data:i})}function a(e){e.writeable===!1&&!n.includes(e.name)&&e.references.forEach(i)}return{Program(e){r.getScope(e).variables.forEach(a)}}}}})),Ln=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow negated conditions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-negated-condition`},schema:[],messages:{unexpectedNegated:`Unexpected negated condition.`}},create(e){function t(e){return e.alternate&&e.alternate.type!==`IfStatement`}function n(e){return e.type===`UnaryExpression`&&e.operator===`!`}function r(e){return e.type===`BinaryExpression`&&(e.operator===`!=`||e.operator===`!==`)}function i(e){return n(e.test)||r(e.test)}return{IfStatement(n){t(n)&&i(n)&&e.report({node:n,messageId:`unexpectedNegated`})},ConditionalExpression(t){i(t)&&e.report({node:t,messageId:`unexpectedNegated`})}}}}})),Rn=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-negated-in-lhs`},deprecated:{message:`Renamed rule.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-unsafe-negation`,url:`https://eslint.org/docs/rules/no-unsafe-negation`}}]},schema:[],messages:{negatedLHS:`The 'in' expression's left operand is negated.`}},create(e){return{BinaryExpression(t){t.operator===`in`&&t.left.type===`UnaryExpression`&&t.left.operator===`!`&&e.report({node:t,messageId:`negatedLHS`})}}}}})),zn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow nested ternary expressions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-nested-ternary`},schema:[],messages:{noNestedTernary:`Do not nest ternary expressions.`}},create(e){return{ConditionalExpression(t){(t.alternate.type===`ConditionalExpression`||t.consequent.type===`ConditionalExpression`)&&e.report({node:t,messageId:`noNestedTernary`})}}}}})),Bn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new`},schema:[],messages:{noNewStatement:`Do not use 'new' for side effects.`}},create(e){return{"ExpressionStatement > NewExpression"(t){e.report({node:t.parent,messageId:`noNewStatement`})}}}}})),Vn=n(((e,t)=>{let n=M(),r=new Set([`apply`,`bind`,`call`]);t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-func`},schema:[],messages:{noFunctionConstructor:`The Function constructor is eval.`}},create(e){let t=e.sourceCode;return{"Program:exit"(i){let a=t.getScope(i).set.get(`Function`);a&&a.defs.length===0&&a.references.forEach(t=>{let i=t.identifier,{parent:a}=i,o;if(a){if(i===a.callee&&(a.type===`NewExpression`||a.type===`CallExpression`))o=a;else if(a.type===`MemberExpression`&&i===a.object&&r.has(n.getStaticPropertyName(a))){let e=a.parent.type===`ChainExpression`?a.parent:a;e.parent.type===`CallExpression`&&e.parent.callee===e&&(o=e.parent)}}o&&e.report({node:o,messageId:`noFunctionConstructor`})})}}}}})),Hn=n(((e,t)=>{let n=[`Symbol`,`BigInt`];t.exports={meta:{type:`problem`,docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-new-native-nonconstructor`},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(r){let i=t.getScope(r);for(let t of n){let n=i.set.get(t);n&&n.defs.length===0&&n.references.forEach(n=>{let r=n.identifier,i=r.parent;i&&i.type===`NewExpression`&&i.callee===r&&e.report({node:r,messageId:`noNewNonconstructor`,data:{name:t}})})}}}}}})),Un=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `Object` constructors",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-object`},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:`https://eslint.org/blog/2023/09/eslint-v8.50.0-released/`,deprecatedSince:`8.50.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-object-constructor`,url:`https://eslint.org/docs/rules/no-object-constructor`}}]},schema:[],messages:{preferLiteral:`The object literal notation {} is preferable.`}},create(e){let t=e.sourceCode;return{NewExpression(r){let i=n.getVariableByName(t.getScope(r),r.callee.name);i&&i.identifiers.length>0||r.callee.name===`Object`&&e.report({node:r,messageId:`preferLiteral`})}}}}})),Wn=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-new-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md`}}]},type:`suggestion`,docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-require`},schema:[],messages:{noNewRequire:`Unexpected use of new with require.`}},create(e){return{NewExpression(t){t.callee.type===`Identifier`&&t.callee.name===`require`&&e.report({node:t,messageId:`noNewRequire`})}}}}})),Gn=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-symbol`},deprecated:{message:`The rule was replaced with a more general rule.`,url:`https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended`,deprecatedSince:`9.0.0`,availableUntil:`11.0.0`,replacedBy:[{rule:{name:`no-new-native-nonconstructor`,url:`https://eslint.org/docs/latest/rules/no-new-native-nonconstructor`}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(n){let r=t.getScope(n).set.get(`Symbol`);r&&r.defs.length===0&&r.references.forEach(t=>{let n=t.identifier,r=n.parent;r&&r.type===`NewExpression`&&r.callee===n&&e.report({node:n,messageId:`noNewSymbol`})})}}}}})),Kn=n(((e,t)=>{let{getVariableByName:n}=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-new-wrappers`},schema:[],messages:{noConstructor:`Do not use {{fn}} as a constructor.`}},create(e){let{sourceCode:t}=e;return{NewExpression(r){let i=[`String`,`Number`,`Boolean`],{name:a}=r.callee;if(i.includes(a)){let i=n(t.getScope(r),a);i&&i.identifiers.length===0&&e.report({node:r,messageId:`noConstructor`,data:{fn:a}})}}}}}})),qn=n(((e,t)=>{let n=/\\[89]/u;function r(e){return`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape`},hasSuggestions:!0,schema:[],messages:{decimalEscape:`Don't use '{{decimalEscape}}' escape sequence.`,refactor:`Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.`,escapeBackslash:`Replace '{{original}}' with '{{replacement}}' to include the actual backslash character.`}},create(e){let t=e.sourceCode;function i(e,n,r){return{messageId:e,data:{original:t.getText().slice(...n),replacement:r},fix(e){return e.replaceTextRange(n,r)}}}return{Literal(a){if(typeof a.value!=`string`||!n.test(a.raw))return;let o=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy,s;for(;s=o.exec(a.raw);){let{previousEscape:n,decimalEscape:o}=s.groups,c=a.range[0]+s.index+s[0].length,l=c-o.length,u=[l,c],d=[];n===`\\0`?d.push(i(`refactor`,[l-n.length,c],`${r(`\0`)}${o[1]}`),i(`refactor`,u,r(o[1]))):d.push(i(`refactor`,u,o[1])),d.push(i(`escapeBackslash`,u,`\\${o}`)),e.report({node:a,loc:{start:t.getLocFromIndex(l),end:t.getLocFromIndex(c)},messageId:`decimalEscape`,data:{decimalEscape:o},suggest:d})}}}}}})),Jn=n(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i}=q(),a=M().getStaticPropertyName,o=[`Atomics`,`JSON`,`Math`,`Reflect`,`Intl`];function s(e){return e.type===`ChainExpression`?s(e.expression):e.type===`MemberExpression`?a(e):e.name}t.exports={meta:{type:`problem`,docs:{description:`Disallow calling global object properties as functions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-obj-calls`},schema:[],messages:{unexpectedCall:`'{{name}}' is not a function.`,unexpectedRefCall:`'{{name}}' is reference to '{{ref}}', which is not a function.`}},create(e){let t=e.sourceCode;return{Program(a){let c=new i(t.getScope(a)),l={};for(let e of o)l[e]={[n]:!0,[r]:!0};for(let{node:t,path:n}of c.iterateGlobalReferences(l)){let r=s(t.callee),i=n[0],a=r===i?`unexpectedCall`:`unexpectedRefCall`;e.report({node:t,messageId:a,data:{name:r,ref:i}})}}}}}})),Yn=n(((e,t)=>{let{getVariableByName:n,isArrowToken:r,isStartOfExpressionStatement:i,needsPrecedingSemicolon:a}=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-object-constructor`},hasSuggestions:!0,schema:[],messages:{preferLiteral:`The object literal notation {} is preferable.`,useLiteral:`Replace with '{{replacement}}'.`,useLiteralAfterSemicolon:`Replace with '{{replacement}}', add preceding semicolon.`}},create(e){let t=e.sourceCode;function o(e){if(i(e))return!0;let n=t.getTokenBefore(e);return!!(n&&r(n))}function s(r){if(r.callee.type!==`Identifier`||r.callee.name!==`Object`||r.arguments.length)return;let i=n(t.getScope(r),`Object`);if(i&&i.identifiers.length===0){let n,i,s=`useLiteral`;o(r)?(n=`({})`,a(t,r)?(i=`;({})`,s=`useLiteralAfterSemicolon`):i=`({})`):n=i=`{}`,e.report({node:r,messageId:`preferLiteral`,suggest:[{messageId:s,data:{replacement:n},fix:e=>e.replaceText(r,i)}]})}}return{CallExpression:s,NewExpression:s}}}})),Xn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow octal literals`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-octal`},schema:[],messages:{noOctal:`Octal literals should not be used.`}},create(e){return{Literal(t){typeof t.value==`number`&&/^0\d/u.test(t.raw)&&e.report({node:t,messageId:`noOctal`})}}}}})),Zn=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow octal escape sequences in string literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-octal-escape`},schema:[],messages:{octalEscapeSequence:`Don't use octal: '\\{{sequence}}'. Use '\\u....' instead.`}},create(e){return{Literal(t){if(typeof t.value!=`string`)return;let n=t.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&e.report({node:t,messageId:`octalEscapeSequence`,data:{sequence:n[1]}})}}}}})),Qn=n(((e,t)=>{let n=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;t.exports={meta:{type:`suggestion`,docs:{description:`Disallow reassigning function parameters`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-param-reassign`},schema:[{oneOf:[{type:`object`,properties:{props:{enum:[!1]}},additionalProperties:!1},{type:`object`,properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:`array`,items:{type:`string`},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:`Assignment to function parameter '{{name}}'.`,assignmentToFunctionParamProp:`Assignment to property of function parameter '{{name}}'.`}},create(e){let t=e.options[0]&&e.options[0].props,r=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],i=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],a=e.sourceCode;function o(e){let t=e.identifier,r=t.parent;for(;r&&(!n.test(r.type)||r.type===`ForInStatement`||r.type===`ForOfStatement`);){switch(r.type){case`AssignmentExpression`:return r.left===t;case`UpdateExpression`:return!0;case`UnaryExpression`:if(r.operator===`delete`)return!0;break;case`ForInStatement`:case`ForOfStatement`:return r.left===t;case`CallExpression`:if(r.callee!==t)return!1;break;case`MemberExpression`:if(r.property===t)return!1;break;case`Property`:if(r.key===t)return!1;break;case`ConditionalExpression`:if(r.test===t)return!1;break}t=r,r=t.parent}return!1}function s(e){return r.includes(e)||i.some(t=>new RegExp(t,`u`).test(e))}function c(n,r,i){let a=n.identifier;a&&!n.init&&(r===0||i[r-1].identifier!==a)&&(n.isWrite()?e.report({node:a,messageId:`assignmentToFunctionParam`,data:{name:a.name}}):t&&o(n)&&!s(a.name)&&e.report({node:a,messageId:`assignmentToFunctionParamProp`,data:{name:a.name}}))}function l(e){e.defs[0].type===`Parameter`&&e.references.forEach(c)}function u(e){a.getDeclaredVariables(e).forEach(l)}return{"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}}})),$n=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-path-concat`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md`}}]},type:`suggestion`,docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-path-concat`},schema:[],messages:{usePathFunctions:`Use path.join() or path.resolve() instead of + to create paths.`}},create(e){let t=/^__(?:dir|file)name$/u;return{BinaryExpression(n){let r=n.left,i=n.right;n.operator===`+`&&(r.type===`Identifier`&&t.test(r.name)||i.type===`Identifier`&&t.test(i.name))&&e.report({node:n,messageId:`usePathFunctions`})}}}}})),er=n(((e,t)=>{function n(e){let t=e.parent;return t.type===`ForStatement`&&t.update===e}function r(e){let t=e.parent;return t.type===`SequenceExpression`?r(t):n(e)}t.exports={meta:{type:`suggestion`,defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-plusplus`},schema:[{type:`object`,properties:{allowForLoopAfterthoughts:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedUnaryOp:`Unary operator '{{operator}}' used.`}},create(e){let[{allowForLoopAfterthoughts:t}]=e.options;return{UpdateExpression(n){t&&r(n)||e.report({node:n,messageId:`unexpectedUnaryOp`,data:{operator:n.operator}})}}}}})),tr=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-process-env`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md`}}]},type:`suggestion`,docs:{description:"Disallow the use of `process.env`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-process-env`},schema:[],messages:{unexpectedProcessEnv:`Unexpected use of process.env.`}},create(e){return{MemberExpression(t){let n=t.object.name,r=t.property.name;n===`process`&&!t.computed&&r&&r===`env`&&e.report({node:t,messageId:`unexpectedProcessEnv`})}}}}})),nr=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-process-exit`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md`}}]},type:`suggestion`,docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-process-exit`},schema:[],messages:{noProcessExit:`Don't use process.exit(); throw an error instead.`}},create(e){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(t){e.report({node:t.parent,messageId:`noProcessExit`})}}}}})),rr=n(((e,t)=>{let n=M(),r=new Set([`ArrowFunctionExpression`,`FunctionExpression`]);function i(e,t){let n=e.parent;return n.type===`NewExpression`&&n.arguments[0]===e&&n.callee.type===`Identifier`&&n.callee.name===`Promise`&&t.isGlobalReference(n.callee)}function a(e){return e.type===`UnaryExpression`&&e.operator===`void`}function o(e,t,r){let i=n.getPrecedence(t)<n.getPrecedence({type:`UnaryExpression`,operator:`void`})&&!n.isParenthesised(e,t),a=e.getTokenBefore(t,t.parent.type===`ArrowFunctionExpression`?n.isArrowToken:e=>e.type===`Keyword`&&e.value===`return`),o=e.getTokenAfter(a),s=a.value===`return`&&a.range[1]===o.range[0];return[r.insertTextBefore(o,`${s?` `:``}void ${i?`(`:``}`),r.insertTextAfter(t,i?`)`:``)]}function s(e,t,r){let i=e.getTokenBefore(t.body,n.isArrowToken),a=e.getTokenAfter(i),o=e.getLastToken(t);return[r.insertTextBefore(a,`{`),r.insertTextAfter(o,`}`)]}t.exports={meta:{type:`problem`,defaultOptions:[{allowVoid:!1}],docs:{description:`Disallow returning values from Promise executor functions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-promise-executor-return`},hasSuggestions:!0,schema:[{type:`object`,properties:{allowVoid:{type:`boolean`}},additionalProperties:!1}],messages:{returnsValue:`Return values from promise executor functions cannot be read.`,prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(e){let t=null,n=e.sourceCode,[{allowVoid:c}]=e.options;return{onCodePathStart(l,u){if(t={upper:t,shouldCheck:r.has(u.type)&&i(u,n)},t.shouldCheck&&u.type===`ArrowFunctionExpression`&&u.expression&&!(c&&a(u.body))){let t=[];c&&t.push({messageId:`prependVoid`,fix(e){return o(n,u.body,e)}}),u.body.type===`FunctionExpression`&&!u.body.id||t.push({messageId:`wrapBraces`,fix(e){return s(n,u,e)}}),e.report({node:u.body,messageId:`returnsValue`,suggest:t})}},onCodePathEnd(){t=t.upper},ReturnStatement(r){if(t.shouldCheck&&r.argument){if(!c){e.report({node:r,messageId:`returnsValue`});return}a(r.argument)||e.report({node:r,messageId:`returnsValue`,suggest:[{messageId:`prependVoid`,fix(e){return o(n,r.argument,e)}}]})}}}}}})),ir=n(((e,t)=>{let{getStaticPropertyName:n}=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-proto`},schema:[],messages:{unexpectedProto:`The '__proto__' property is deprecated.`}},create(e){return{MemberExpression(t){n(t)===`__proto__`&&e.report({node:t,messageId:`unexpectedProto`})}}}}})),ar=n(((e,t)=>{let n=M();function r(e){let t;if(e.type===`MemberExpression`)t=e.object;else if(e.type===`CallExpression`)t=e.callee;else return!1;return e.optional?!0:r(t)}t.exports={meta:{type:`problem`,docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-prototype-builtins`},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:`Do not access Object.prototype method '{{prop}}' from target object.`,callObjectPrototype:`Call Object.prototype.{{prop}} explicitly.`}},create(e){let t=new Set([`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`]);function i(i){let a=n.skipChainExpression(i.callee);if(a.type!==`MemberExpression`)return;let o=n.getStaticPropertyName(a);o!==null&&t.has(o)&&e.report({messageId:`prototypeBuildIn`,loc:a.property.loc,data:{prop:o},node:i,suggest:[{messageId:`callObjectPrototype`,data:{prop:o},fix(t){let s=e.sourceCode;if(r(i)||i.callee.type===`ChainExpression`)return null;let c=n.getVariableByName(s.getScope(i),`Object`);if(!c||c.scope.type!==`global`||c.defs.length>0)return null;let l=s.getText(a.object);n.getPrecedence(a.object)<=n.getPrecedence({type:`SequenceExpression`})&&(l=`(${l})`);let u=s.getTokenAfter(i.callee,n.isOpeningParenToken),d=i.arguments.length===0?``:`, `;return[t.replaceText(a,`Object.prototype.${o}.call`),t.insertTextAfter(u,l+d)]}}]})}return{CallExpression:i}}}})),or=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{builtinGlobals:!0}],docs:{description:`Disallow variable redeclaration`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-redeclare`},messages:{redeclared:`'{{id}}' is already defined.`,redeclaredAsBuiltin:`'{{id}}' is already defined as a built-in global variable.`,redeclaredBySyntax:`'{{id}}' is already defined by a variable declaration.`},schema:[{type:`object`,properties:{builtinGlobals:{type:`boolean`}},additionalProperties:!1}]},create(e){let[{builtinGlobals:t}]=e.options,r=e.sourceCode;function*i(e){t&&(e.eslintImplicitGlobalSetting===`readonly`||e.eslintImplicitGlobalSetting===`writable`)&&(yield{type:`builtin`});for(let t of e.identifiers)yield{type:`syntax`,node:t,loc:t.loc};if(e.eslintExplicitGlobalComments)for(let t of e.eslintExplicitGlobalComments)yield{type:`comment`,node:t,loc:n.getNameLocationInGlobalDirectiveComment(r,t,e.name)}}function a(t){for(let n of t.variables){let[t,...r]=i(n);if(r.length===0)continue;let a=t.type===`builtin`?`redeclaredAsBuiltin`:`redeclaredBySyntax`,o={id:n.name};for(let{type:n,node:i,loc:s}of r){let r=n===t.type?`redeclared`:a;e.report({node:i,loc:s,messageId:r,data:o})}}}function o(e){let t=r.getScope(e);t.block===e&&a(t)}return{Program(e){let t=r.getScope(e);a(t),t.type===`global`&&t.childScopes[0]&&t.block===t.childScopes[0].block&&a(t.childScopes[0])},FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,StaticBlock:o,BlockStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,SwitchStatement:o}}}})),sr=n(((e,t)=>{let n=M(),r=Tt(),i=new r.RegExpParser,a=/ {2}/u;function o(e){return e&&e.type===`Literal`&&typeof e.value==`string`}t.exports={meta:{type:`suggestion`,docs:{description:`Disallow multiple spaces in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-regex-spaces`},schema:[],fixable:`code`,messages:{multipleSpaces:`Spaces are hard to count. Use {{{length}}}.`}},create(e){let t=e.sourceCode;function s(t,n,o,s,c){if(!a.test(o))return;let l=[],u;try{u=i.parsePattern(n,0,n.length,{unicode:c.includes(`u`),unicodeSets:c.includes(`v`)})}catch{return}r.visitRegExpAST(u,{onCharacterClassEnter(e){l.push(e)}});let d=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,f;for(;f=d.exec(n);){let{1:{length:r},index:i}=f;if(l.every(({start:e,end:t})=>i<e||t<=i)){e.report({node:t,messageId:`multipleSpaces`,data:{length:r},fix(e){return n===o?e.replaceTextRange([s+i,s+i+r],` {${r}}`):null}});return}}}function c(e){if(e.regex){let t=e.regex.pattern,n=e.raw.slice(1,e.raw.lastIndexOf(`/`)),r=e.range[0]+1,i=e.regex.flags;s(e,t,n,r,i)}}function l(e){let r=t.getScope(e),i=n.getVariableByName(r,`RegExp`),a=i&&i.defs.length>0,c=e.arguments[0];if(e.callee.type===`Identifier`&&e.callee.name===`RegExp`&&o(c)&&!a){let t=c.value,n=c.raw.slice(1,-1),r=c.range[0]+1,i;if(e.arguments.length<2)i=``;else{let t=e.arguments[1];if(o(t))i=t.value;else return}s(e,t,n,r,i)}}return{Literal:c,CallExpression:l,NewExpression:l}}}})),cr=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow specified names in exports`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-exports`},schema:[{anyOf:[{type:`object`,properties:{restrictedNamedExports:{type:`array`,items:{type:`string`},uniqueItems:!0},restrictedNamedExportsPattern:{type:`string`}},additionalProperties:!1},{type:`object`,properties:{restrictedNamedExports:{type:`array`,items:{type:`string`,pattern:`^(?!default$)`},uniqueItems:!0},restrictedNamedExportsPattern:{type:`string`},restrictDefaultExports:{type:`object`,properties:{direct:{type:`boolean`},named:{type:`boolean`},defaultFrom:{type:`boolean`},namedFrom:{type:`boolean`},namespaceFrom:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:`'{{name}}' is restricted from being used as an exported name.`,restrictedDefault:`Exporting 'default' is restricted.`}},create(e){let t=new Set(e.options[0]&&e.options[0].restrictedNamedExports),r=e.options[0]&&e.options[0].restrictedNamedExportsPattern,i=e.options[0]&&e.options[0].restrictDefaultExports,a=e.sourceCode;function o(a){let o=n.getModuleExportName(a),s=!1;if(r&&o!==`default`&&(s=new RegExp(r,`u`).test(o)),s||t.has(o)){e.report({node:a,messageId:`restrictedNamed`,data:{name:o}});return}if(o===`default`)if(a.parent.type===`ExportAllDeclaration`)i&&i.namespaceFrom&&e.report({node:a,messageId:`restrictedDefault`});else{let t=!!a.parent.parent.source,r=n.getModuleExportName(a.parent.local);if(!t&&i&&i.named){e.report({node:a,messageId:`restrictedDefault`});return}t&&i&&(r===`default`&&i.defaultFrom||r!==`default`&&i.namedFrom)&&e.report({node:a,messageId:`restrictedDefault`})}}return{ExportAllDeclaration(e){e.exported&&o(e.exported)},ExportDefaultDeclaration(t){i&&i.direct&&e.report({node:t,messageId:`restrictedDefault`})},ExportNamedDeclaration(e){let t=e.declaration;t?t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`?o(t.id):t.type===`VariableDeclaration`&&a.getDeclaredVariables(t).map(e=>e.defs.find(e=>e.parent===t)).map(e=>e.name).forEach(o):e.specifiers.map(e=>e.exported).forEach(o)}}}}})),lr=n(((e,t)=>{let n=M(),r=new Set([`TSTypeReference`,`TSInterfaceHeritage`,`TSClassImplements`,`TSTypeQuery`,`TSQualifiedName`]),i=new Set([`globalThis`,`self`,`window`]),a={type:`array`,items:{oneOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`}},required:[`name`],additionalProperties:!1}]},uniqueItems:!0,minItems:0};t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,docs:{description:`Disallow specified global variables`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-globals`},schema:{anyOf:[a,{type:`array`,items:[{type:`object`,properties:{globals:a,checkGlobalObject:{type:`boolean`},globalObjects:{type:`array`,items:{type:`string`},uniqueItems:!0}},required:[`globals`],additionalProperties:!1}],additionalItems:!1}]},messages:{defaultMessage:`Unexpected use of '{{name}}'.`,customMessage:`Unexpected use of '{{name}}'. {{customMessage}}`}},create(e){let{sourceCode:t,options:a}=e,o=typeof a[0]==`object`&&Object.hasOwn(a[0],`globals`),s=o?a[0].globals:a,c=o?a[0].checkGlobalObject:!1,l=o&&a[0].globalObjects||[],u=new Set([...i,...l]);if(s.length===0)return{};let d=s.reduce((e,t)=>(typeof t==`string`?e[t]=null:e[t.name]=t.message,e),{});function f(t){let n=t.identifier.name,r=d[n],i=r?`customMessage`:`defaultMessage`;e.report({node:t.identifier,messageId:i,data:{name:n,customMessage:r}})}function p(e){return Object.hasOwn(d,e)}function m(e){let t=e.identifier.parent;return r.has(t.type)}return{Program(e){let n=t.getScope(e);n.variables.forEach(e=>{!e.defs.length&&p(e.name)&&e.references.forEach(e=>{m(e)||f(e)})}),n.through.forEach(e=>{p(e.identifier.name)&&!m(e)&&f(e)})},"Program:exit"(r){if(!c)return;let i=t.getScope(r);u.forEach(t=>{let r=n.getVariableByName(i,t);r&&r.references.forEach(r=>{let i=r.identifier.parent;for(;n.isSpecificMemberAccess(i,null,t);)i=i.parent;let a=n.getStaticPropertyName(i);if(a&&p(a)){let t=d[a],n=t?`customMessage`:`defaultMessage`;e.report({node:i.property,messageId:n,data:{name:a,customMessage:t}})}})})}}}}})),ur=n(((e,t)=>{function n(e){return Array.isArray(e)?e:[e]}let r=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,o=/^\\#/,s=/\r?\n/g,c=/^\.*\/|^\.+$/,l=`node-ignore`;typeof Symbol<`u`&&(l=Symbol.for(`node-ignore`));let u=l,d=(e,t,n)=>Object.defineProperty(e,t,{value:n}),f=/([0-z])-([0-z])/g,p=()=>!1,m=e=>e.replace(f,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:``),h=e=>{let{length:t}=e;return e.slice(0,t-t%2)},g=[[/^\uFEFF/,()=>``],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(n.indexOf(`\\`)===0?` `:``)],[/(\\+?)\s/g,(e,t)=>{let{length:n}=t;return t.slice(0,n-n%2)+` `}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>`\\`],[/\\\\/g,()=>`\\`],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===`\\`?`\\[${n}${h(r)}${i}`:i===`]`&&r.length%2==0?`[${m(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],_=Object.create(null),v=(e,t)=>{let n=_[e];return n||(n=g.reduce((t,[n,r])=>t.replace(n,r.bind(e)),e),_[e]=n),t?new RegExp(n,`i`):new RegExp(n)},y=e=>typeof e==`string`,b=e=>e&&y(e)&&!r.test(e)&&!i.test(e)&&e.indexOf(`#`)!==0,x=e=>e.split(s);var S=class{constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}};let C=(e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(a,`!`).replace(o,`#`);let i=v(e,t);return new S(n,e,r,i)},w=(e,t)=>{throw new t(e)},T=(e,t,n)=>y(e)?e?T.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),E=e=>c.test(e);T.isNotRelative=E,T.convert=e=>e;var D=class{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){d(this,u,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[u]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(b(e)){let t=C(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(y(e)?x(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&T.convert(e);return T(i,e,this._allowRelativePaths?p:w),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(`/`),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(`/`)+`/`,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}};let O=e=>new D(e);if(O.isPathValid=e=>T(e&&T.convert(e),e,p),O.default=O,t.exports=O,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){T.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`);let e=/^[a-z]:\//i;T.isNotRelative=t=>e.test(t)||E(t)}})),dr=n(((e,t)=>{let n=M();function r(e){return new Intl.ListFormat(`en-US`).format(e.map(e=>`'${e}'`))}function i(e){return e.length===1?`is`:`are`}let a=ur(),o={type:`array`,items:{anyOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`,minLength:1},importNames:{type:`array`,items:{type:`string`}},allowImportNames:{type:`array`,items:{type:`string`}},allowTypeImports:{type:`boolean`,description:`Whether to allow type-only imports for a path.`}},additionalProperties:!1,required:[`name`],not:{required:[`importNames`,`allowImportNames`]}}]},uniqueItems:!0};t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-imports`},messages:{path:`'{{importSource}}' import is restricted from being used.`,pathWithCustomMessage:`'{{importSource}}' import is restricted from being used. {{customMessage}}`,patterns:`'{{importSource}}' import is restricted from being used by a pattern.`,patternWithCustomMessage:`'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}`,patternAndImportName:`'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.`,patternAndImportNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}`,patternAndEverything:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern.`,patternAndEverythingWithRegexImportName:`* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.`,patternAndEverythingWithCustomMessage:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern. {{customMessage}}`,patternAndEverythingWithRegexImportNameAndCustomMessage:`* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}`,everything:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted.`,everythingWithCustomMessage:`* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted. {{customMessage}}`,importName:`'{{importName}}' import from '{{importSource}}' is restricted.`,importNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}`,allowedImportName:`'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed.`,allowedImportNameWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed. {{customMessage}}`,everythingWithAllowImportNames:`* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed.`,everythingWithAllowImportNamesAndCustomMessage:`* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed. {{customMessage}}`,allowedImportNamePattern:`'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.`,allowedImportNamePatternWithCustomMessage:`'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}`,everythingWithAllowedImportNamePattern:`* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.`,everythingWithAllowedImportNamePatternWithCustomMessage:`* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}`},schema:{anyOf:[o,{type:`array`,items:[{type:`object`,properties:{paths:o,patterns:{anyOf:[{type:`array`,items:{type:`string`},uniqueItems:!0},{type:`array`,items:{type:`object`,properties:{importNames:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},allowImportNames:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},group:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0},regex:{type:`string`},importNamePattern:{type:`string`},allowImportNamePattern:{type:`string`},message:{type:`string`,minLength:1},caseSensitive:{type:`boolean`},allowTypeImports:{type:`boolean`,description:`Whether to allow type-only imports for a pattern.`}},additionalProperties:!1,not:{anyOf:[{required:[`importNames`,`allowImportNames`]},{required:[`importNamePattern`,`allowImportNamePattern`]},{required:[`importNames`,`allowImportNamePattern`]},{required:[`importNamePattern`,`allowImportNames`]},{required:[`allowImportNames`,`allowImportNamePattern`]}]},oneOf:[{required:[`group`]},{required:[`regex`]}]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(e){let t=e.sourceCode,o=Array.isArray(e.options)?e.options:[],s=typeof o[0]==`object`&&(Object.hasOwn(o[0],`paths`)||Object.hasOwn(o[0],`patterns`)),c=(s?o[0].paths:e.options)||[],l=c.reduce((e,t)=>{let n=typeof t==`string`?t:t.name;return e[n]||(e[n]=[]),typeof t==`string`?e[n].push({}):e[n].push({message:t.message,importNames:t.importNames,allowImportNames:t.allowImportNames,allowTypeImports:t.allowTypeImports}),e},Object.create(null)),u=(s?o[0].patterns:[])||[];u.length>0&&typeof u[0]==`string`&&(u=[{group:u}]);let d=u.map(({group:e,regex:t,message:n,caseSensitive:r,importNames:i,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l})=>({...e?{matcher:a({allowRelativePaths:!0,ignorecase:!r}).add(e)}:{},...typeof t==`string`?{regexMatcher:new RegExp(t,r?`u`:`iu`)}:{},customMessage:n,importNames:i,importNamePattern:o,allowImportNames:s,allowImportNamePattern:c,allowTypeImports:l}));if(Object.keys(c).length===0&&d.length===0)return{};function f(e){return e.importKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.importKind===`type`)}function p(e){return e.importKind===`type`||e.exportKind===`type`}function m(e){return e.exportKind===`type`||e.specifiers?.length>0&&e.specifiers.every(e=>e.exportKind===`type`)}function h(t,n,a){Object.hasOwn(l,t)&&l[t].forEach(o=>{let s=o.message,c=o.importNames,l=o.allowImportNames,u=o.allowTypeImports;if(!(u&&(a.type===`ImportDeclaration`||a.type===`TSImportEqualsDeclaration`)&&f(a))&&!(u&&(a.type===`ExportNamedDeclaration`||a.type===`ExportAllDeclaration`)&&m(a))){if(!c&&!l){e.report({node:a,messageId:s?`pathWithCustomMessage`:`path`,data:{importSource:t,customMessage:s}});return}n.forEach((n,o)=>{if(o===`*`){let[o]=n;c?e.report({node:a,messageId:s?`everythingWithCustomMessage`:`everything`,loc:o.loc,data:{importSource:t,importNames:r(c),isOrAre:i(c),customMessage:s}}):l&&e.report({node:a,messageId:s?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:o.loc,data:{importSource:t,allowedImportNames:r(l),isOrAre:i(l),customMessage:s}});return}c&&c.includes(o)&&n.forEach(n=>{u&&p(n.specifier)||e.report({node:a,messageId:s?`importNameWithCustomMessage`:`importName`,loc:n.loc,data:{importSource:t,customMessage:s,importName:o}})}),l&&!l.includes(o)&&n.forEach(n=>{u&&p(n.specifier)||e.report({node:a,loc:n.loc,messageId:s?`allowedImportNameWithCustomMessage`:`allowedImportName`,data:{importSource:t,customMessage:s,importName:o,allowedImportNames:r(l),isOrAre:i(l)}})})})}})}function g(t,n,a,o){if(n.allowTypeImports&&(t.type===`ImportDeclaration`||t.type===`TSImportEqualsDeclaration`)&&f(t)||n.allowTypeImports&&(t.type===`ExportNamedDeclaration`||t.type===`ExportAllDeclaration`)&&m(t))return;let s=n.customMessage,c=n.importNames,l=n.importNamePattern?new RegExp(n.importNamePattern,`u`):null,u=n.allowImportNames,d=n.allowImportNamePattern?new RegExp(n.allowImportNamePattern,`u`):null;if(!c&&!u&&!l&&!d){e.report({node:t,messageId:s?`patternWithCustomMessage`:`patterns`,data:{importSource:o,customMessage:s}});return}a.forEach((a,f)=>{if(f===`*`){let[n]=a;c?e.report({node:t,messageId:s?`patternAndEverythingWithCustomMessage`:`patternAndEverything`,loc:n.loc,data:{importSource:o,importNames:r(c),isOrAre:i(c),customMessage:s}}):u?e.report({node:t,messageId:s?`everythingWithAllowImportNamesAndCustomMessage`:`everythingWithAllowImportNames`,loc:n.loc,data:{importSource:o,allowedImportNames:r(u),isOrAre:i(u),customMessage:s}}):d?e.report({node:t,messageId:s?`everythingWithAllowedImportNamePatternWithCustomMessage`:`everythingWithAllowedImportNamePattern`,loc:n.loc,data:{importSource:o,allowedImportNamePattern:d,customMessage:s}}):e.report({node:t,messageId:s?`patternAndEverythingWithRegexImportNameAndCustomMessage`:`patternAndEverythingWithRegexImportName`,loc:n.loc,data:{importSource:o,importNames:l,customMessage:s}});return}(c&&c.includes(f)||l&&l.test(f))&&a.forEach(r=>{n.allowTypeImports&&p(r.specifier)||e.report({node:t,messageId:s?`patternAndImportNameWithCustomMessage`:`patternAndImportName`,loc:r.loc,data:{importSource:o,customMessage:s,importName:f}})}),u&&!u.includes(f)?a.forEach(a=>{n.allowTypeImports&&p(a.specifier)||e.report({node:t,messageId:s?`allowedImportNameWithCustomMessage`:`allowedImportName`,loc:a.loc,data:{importSource:o,customMessage:s,importName:f,allowedImportNames:r(u),isOrAre:i(u)}})}):d&&!d.test(f)&&a.forEach(r=>{n.allowTypeImports&&p(r.specifier)||e.report({node:t,messageId:s?`allowedImportNamePatternWithCustomMessage`:`allowedImportNamePattern`,loc:r.loc,data:{importSource:o,customMessage:s,importName:f,allowedImportNamePattern:d}})})})}function _(e,t){return t.regexMatcher?t.regexMatcher.test(e):t.matcher.ignores(e)}function v(e){let r=e.source.value.trim(),i=new Map;if(e.type===`ExportAllDeclaration`){let n=t.getFirstToken(e,1);i.set(`*`,[{loc:n.loc}])}else if(e.specifiers)for(let t of e.specifiers){let e,r={loc:t.loc,specifier:t};t.type===`ImportDefaultSpecifier`?e=`default`:t.type===`ImportNamespaceSpecifier`?e=`*`:t.imported?e=n.getModuleExportName(t.imported):t.local&&(e=n.getModuleExportName(t.local)),typeof e==`string`&&(i.has(e)?i.get(e).push(r):i.set(e,[r]))}h(r,i,e),d.forEach(t=>{_(r,t)&&g(e,t,i,r)})}return{ImportDeclaration:v,ExportNamedDeclaration(e){e.source&&v(e)},ExportAllDeclaration:v,TSImportEqualsDeclaration(e){if(e.moduleReference.type===`TSExternalModuleReference`){let t=e.moduleReference.expression.value,n=new Map;h(t,n,e),d.forEach(r=>{_(t,r)&&g(e,r,n,t)})}}}}}})),fr=n(((e,t)=>{let n=M(),r=ur(),i={type:`array`,items:{type:`string`},uniqueItems:!0},a={type:`array`,items:{anyOf:[{type:`string`},{type:`object`,properties:{name:{type:`string`},message:{type:`string`,minLength:1}},additionalProperties:!1,required:[`name`]}]},uniqueItems:!0};t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-restricted-require`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md`}}]},type:`suggestion`,docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-modules`},schema:{anyOf:[a,{type:`array`,items:{type:`object`,properties:{paths:a,patterns:i},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:`'{{name}}' module is restricted from being used.`,customMessage:`'{{name}}' module is restricted from being used. {{customMessage}}`,patternMessage:`'{{name}}' module is restricted from being used by a pattern.`}},create(e){let t=Array.isArray(e.options)?e.options:[],i=typeof t[0]==`object`&&(Object.hasOwn(t[0],`paths`)||Object.hasOwn(t[0],`patterns`)),a=(i?t[0].paths:e.options)||[],o=(i?t[0].patterns:[])||[],s=a.reduce((e,t)=>(typeof t==`string`?e[t]=null:e[t.name]=t.message,e),{});if(Object.keys(a).length===0&&o.length===0)return{};let c=r({allowRelativePaths:!0}).add(o);function l(e){return e&&e.type===`Literal`&&typeof e.value==`string`}function u(e){return e.callee.type===`Identifier`&&e.callee.name===`require`}function d(e){return l(e)?e.value.trim():n.isStaticTemplateLiteral(e)?e.quasis[0].value.cooked.trim():null}function f(t,n){let r=s[n],i=r?`customMessage`:`defaultMessage`;e.report({node:t,messageId:i,data:{name:n,customMessage:r}})}function p(e){return Object.hasOwn(s,e)}return{CallExpression(t){if(u(t)&&t.arguments.length){let n=d(t.arguments[0]);n&&(p(n)&&f(t,n),o.length>0&&c.ignores(n)&&e.report({node:t,messageId:`patternMessage`,data:{name:n}}))}}}}}})),pr=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow certain properties on certain objects`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-properties`},schema:{type:`array`,items:{type:`object`,properties:{object:{type:`string`},property:{type:`string`},allowObjects:{type:`array`,items:{type:`string`},uniqueItems:!0},allowProperties:{type:`array`,items:{type:`string`},uniqueItems:!0},message:{type:`string`}},anyOf:[{required:[`object`]},{required:[`property`]}],not:{anyOf:[{required:[`allowObjects`,`object`]},{required:[`allowProperties`,`property`]}]},additionalProperties:!1},uniqueItems:!0},messages:{restrictedObjectProperty:`'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}`,restrictedProperty:`'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}`}},create(e){let t=e.options;if(t.length===0)return{};let r=new Map,i=new Map,a=new Map;t.forEach(e=>{let t=e.object,n=e.property;t===void 0?a.set(n,{allowObjects:e.allowObjects,message:e.message}):n===void 0?i.set(t,{allowProperties:e.allowProperties,message:e.message}):(r.has(t)||r.set(t,new Map),r.get(t).set(n,{message:e.message}))});function o(e,t){return t?t.includes(e):!1}function s(t,n,s){if(s===null)return;let c=r.get(n),l=c?c.get(s):i.get(n),u=a.get(s);if(l&&!o(s,l.allowProperties)){let r=l.message?` ${l.message}`:``,i=l.allowProperties?` Only these properties are allowed: ${l.allowProperties.join(`, `)}.`:``;e.report({node:t,messageId:`restrictedObjectProperty`,data:{objectName:n,propertyName:s,message:r,allowedPropertiesMessage:i}})}else if(u&&!o(n,u.allowObjects)){let n=u.message?` ${u.message}`:``,r=u.allowObjects?` Property '${s}' is only allowed on these objects: ${u.allowObjects.join(`, `)}.`:``;e.report({node:t,messageId:`restrictedProperty`,data:{propertyName:s,message:n,allowedObjectsMessage:r}})}}return{MemberExpression(e){s(e,e.object&&e.object.name,n.getStaticPropertyName(e))},ObjectPattern(e){let t=null;e.parent.type===`VariableDeclarator`?e.parent.init&&e.parent.init.type===`Identifier`&&(t=e.parent.init.name):(e.parent.type===`AssignmentExpression`||e.parent.type===`AssignmentPattern`)&&e.parent.right.type===`Identifier`&&(t=e.parent.right.name),e.properties.forEach(r=>{s(e,t,n.getStaticPropertyName(r))})}}}}})),mr=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow specified syntax`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-restricted-syntax`},schema:{type:`array`,items:{oneOf:[{type:`string`},{type:`object`,properties:{selector:{type:`string`},message:{type:`string`}},required:[`selector`],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:`{{message}}`}},create(e){return e.options.reduce((t,n)=>{let r=typeof n==`string`,i=!r&&!!n.message,a=r?n:n.selector,o=i?n.message:`Using '${a}' is not allowed.`;return Object.assign(t,{[a](t){e.report({node:t,messageId:`restrictedSyntax`,data:{message:o}})}})},{})}}})),hr=n(((e,t)=>{let n=M(),r=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;t.exports={meta:{type:`suggestion`,defaultOptions:[`except-parens`],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-return-assign`},schema:[{enum:[`except-parens`,`always`]}],messages:{returnAssignment:`Return statement should not contain assignment.`,arrowAssignment:`Arrow function should not return assignment.`}},create(e){let t=e.options[0]!==`except-parens`,i=e.sourceCode;return{AssignmentExpression(a){if(!t&&n.isParenthesised(i,a))return;let o=a,s=o.parent;for(;s&&!r.test(s.type);)o=s,s=s.parent;s&&s.type===`ReturnStatement`?e.report({node:s,messageId:`returnAssignment`}):s&&s.type===`ArrowFunctionExpression`&&s.body===o&&e.report({node:s,messageId:`arrowAssignment`})}}}}})),gr=n(((e,t)=>{let n=M();t.exports={meta:{hasSuggestions:!0,type:`suggestion`,docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-return-await`},fixable:null,deprecated:{message:`The original assumption of the rule no longer holds true because of engine optimization.`,deprecatedSince:`8.46.0`,availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(t){e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:`redundantUseOfAwait`,suggest:[{messageId:`removeAwait`,fix(n){let r=e.sourceCode,[i,a]=r.getFirstTokens(t,2);if(i.loc.start.line!==a.loc.start.line)return null;let[o,s]=i.range,c=[o,s+(r.text[s]===` `?1:0)];return n.removeRange(c)}}]})}function r(e){let t=e;for(;!n.isFunction(t)&&t.type!==`Program`;){if(t.parent.type===`TryStatement`&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function i(e){return e.parent.type===`ArrowFunctionExpression`?!0:e.parent.type===`ReturnStatement`?!r(e.parent):e.parent.type===`ConditionalExpression`&&(e===e.parent.consequent||e===e.parent.alternate)||e.parent.type===`LogicalExpression`&&e===e.parent.right||e.parent.type===`SequenceExpression`&&e===e.parent.expressions.at(-1)?i(e.parent):!1}return{AwaitExpression(e){i(e)&&!r(e)&&t(e)}}}}})),_r=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-script-url`},schema:[],messages:{unexpectedScriptURL:`Script URL is a form of eval.`}},create(e){function t(t){let r=n.getStaticStringValue(t);typeof r==`string`&&r.toLowerCase().indexOf(`javascript:`)===0&&e.report({node:t,messageId:`unexpectedScriptURL`})}return{Literal(e){e.value&&typeof e.value==`string`&&t(e)},TemplateLiteral(e){e.parent&&e.parent.type===`TaggedTemplateExpression`||t(e)}}}}})),vr=n(((e,t)=>{let n=M(),r=/\s+/gu;function i(e,t,r,a){if(!(!e||!t))if(e.type===`Identifier`&&t.type===`Identifier`&&e.name===t.name)a(t);else if(e.type===`ArrayPattern`&&t.type===`ArrayExpression`){let n=Math.min(e.elements.length,t.elements.length);for(let o=0;o<n;++o){let n=e.elements[o],s=t.elements[o];if(n&&n.type===`RestElement`&&o<t.elements.length-1||(i(n,s,r,a),s&&s.type===`SpreadElement`))break}}else if(e.type===`RestElement`&&t.type===`SpreadElement`)i(e.argument,t.argument,r,a);else if(e.type===`ObjectPattern`&&t.type===`ObjectExpression`&&t.properties.length>=1){let n=0;for(let e=t.properties.length-1;e>=0;--e){let r=t.properties[e].type;if(r===`SpreadElement`||r===`ExperimentalSpreadProperty`){n=e+1;break}}for(let o=0;o<e.properties.length;++o)for(let s=n;s<t.properties.length;++s)i(e.properties[o],t.properties[s],r,a)}else if(e.type===`Property`&&t.type===`Property`&&t.kind===`init`&&!t.method){let o=n.getStaticPropertyName(e);o!==null&&o===n.getStaticPropertyName(t)&&i(e.value,t.value,r,a)}else r&&n.skipChainExpression(e).type===`MemberExpression`&&n.skipChainExpression(t).type===`MemberExpression`&&n.isSameReference(e,t)&&a(t)}t.exports={meta:{type:`problem`,defaultOptions:[{props:!0}],docs:{description:`Disallow assignments where both sides are exactly the same`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-self-assign`},schema:[{type:`object`,properties:{props:{type:`boolean`}},additionalProperties:!1}],messages:{selfAssignment:`'{{name}}' is assigned to itself.`}},create(e){let t=e.sourceCode,[{props:n}]=e.options;function a(n){e.report({node:n,messageId:`selfAssignment`,data:{name:t.getText(n).replace(r,``)}})}return{AssignmentExpression(e){[`=`,`&&=`,`||=`,`??=`].includes(e.operator)&&i(e.left,e.right,n,a)}}}}})),yr=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:`Disallow comparisons where both sides are exactly the same`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-self-compare`},schema:[],messages:{comparingToSelf:`Comparing to itself is potentially pointless.`}},create(e){let t=e.sourceCode;function n(e,n){let r=t.getTokens(e),i=t.getTokens(n);return r.length===i.length&&r.every((e,t)=>e.type===i[t].type&&e.value===i[t].value)}return{BinaryExpression(t){new Set([`===`,`==`,`!==`,`!=`,`>`,`<`,`>=`,`<=`]).has(t.operator)&&n(t.left,t.right)&&e.report({node:t,messageId:`comparingToSelf`})}}}}})),br=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow comma operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-sequences`},schema:[{type:`object`,properties:{allowInParentheses:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:`Unexpected use of comma operator.`}},create(e){let[{allowInParentheses:t}]=e.options,r=e.sourceCode,i={DoWhileStatement:`test`,IfStatement:`test`,SwitchStatement:`discriminant`,WhileStatement:`test`,WithStatement:`object`,ArrowFunctionExpression:`body`};function a(e){return e.parent&&i[e.parent.type]&&e===e.parent[i[e.parent.type]]}function o(e){return n.isParenthesised(r,e)}function s(e){let t=r.getTokenBefore(e,1),i=r.getTokenAfter(e,1);return o(e)&&t&&i&&n.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&n.isClosingParenToken(i)&&i.range[0]>=e.range[1]}return{SequenceExpression(i){if(i.parent.type===`ForStatement`&&(i===i.parent.init||i===i.parent.update))return;if(t){if(a(i)){if(s(i))return}else if(o(i))return}let c=r.getTokenAfter(i.expressions[0],n.isCommaToken);e.report({node:i,loc:c.loc,messageId:`unexpectedCommaExpression`})}}}}})),xr=n(((e,t)=>{let n=M();function r(e,t,r,i,a){let o=e.parent;return o.type===`CallExpression`&&o.arguments[a]===e&&n.isSpecificMemberAccess(o.callee,r,i)&&t.isGlobalReference(n.skipChainExpression(o.callee).object)}function i(e,t){if(r(e,t,`Object`,`defineProperty`,2)||r(e,t,`Reflect`,`defineProperty`,2))return!0;let n=e.parent;if(n.type===`Property`&&n.value===e){let e=n.parent;if(e.type===`ObjectExpression`&&(r(e,t,`Object`,`create`,1)||r(e,t,`Object`,`defineProperties`,1)))return!0}return!1}function a(e,t){let r=e.parent;return!!((r.type===`Property`||r.type===`MethodDefinition`)&&r.kind===`set`&&r.value===e||r.type===`Property`&&r.value===e&&n.getStaticPropertyName(r)===`set`&&r.parent.type===`ObjectExpression`&&i(r.parent,t))}t.exports={meta:{type:`problem`,docs:{description:`Disallow returning values from setters`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-setter-return`},schema:[],messages:{returnsValue:`Setter cannot return a value.`}},create(e){let t=null,n=e.sourceCode;function r(e){t={upper:t,isSetter:a(e,n)}}function i(){t=t.upper}function o(t){e.report({node:t,messageId:`returnsValue`})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression(e){r(e),t.isSetter&&e.expression&&o(e.body)},"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,ReturnStatement(e){t&&t.isSetter&&e.argument&&o(e)}}}}})),Sr=n(((e,t)=>{let n=M(),r=new Set([`ArrowFunctionExpression`,`FunctionExpression`]),i=new Set([`CallExpression`]),a=/^For(?:In|Of)Statement$/u,o=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,s=new Set([`TSInterfaceDeclaration`,`TSTypeAliasDeclaration`]),c=new Set([`TSCallSignatureDeclaration`,`TSFunctionType`,`TSMethodSignature`,`TSEmptyBodyFunctionExpression`,`TSDeclareFunction`,`TSConstructSignatureDeclaration`,`TSConstructorType`]);t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,defaultOptions:[{allow:[],builtinGlobals:!1,hoist:`functions`,ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:`Disallow variable declarations from shadowing variables declared in the outer scope`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-shadow`},schema:[{type:`object`,properties:{builtinGlobals:{type:`boolean`},hoist:{enum:[`all`,`functions`,`never`,`types`,`functions-and-types`]},allow:{type:`array`,items:{type:`string`}},ignoreOnInitialization:{type:`boolean`},ignoreTypeValueShadow:{type:`boolean`},ignoreFunctionTypeParameterNameValueShadow:{type:`boolean`}},additionalProperties:!1}],messages:{noShadow:`'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.`,noShadowGlobal:`'{{name}}' is already a global variable.`}},create(e){let[{builtinGlobals:t,hoist:l,allow:u,ignoreOnInitialization:d,ignoreTypeValueShadow:f,ignoreFunctionTypeParameterNameValueShadow:p}]=e.options,m=e.sourceCode;function h(e){return e.block.kind===`global`||!!e.upper&&h(e.upper)}function g(e){return e.name===`this`}function _(e,t){if(f!==!0||!(`isValueVariable`in e))return!1;let n=t.defs[0],r=n&&n.parent?.type===`ImportDeclaration`&&(n.parent.importKind===`type`||n.parent.specifiers.some(e=>e.importKind===`type`)),i=!n||(r?!1:t.isValueVariable);return e.isValueVariable!==i}function v(e){return p===!0?e.defs.some(e=>c.has(e.node.type)):!1}function y(e){let t=e.identifiers[0].parent.parent;return t.type===`TSTypeParameterDeclaration`?t.parent.parent.static:!1}function b(e){return y(e)}function x(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function S(e,t){let n=e;for(;n&&!t(n);)n=n.parent;return n}function C(e){let t=e.upper;return t&&t.type===`function-expression-name`?t.upper:t}function w(e,t){let n=t.defs[0];if(!n)return!1;let{variableScope:s}=e.scope;if(!(r.has(s.block.type)&&C(s)===t.scope))return!1;let{parent:c}=s.block,l=S(c,e=>i.has(e.type));if(!l)return!1;let u=n.name,d=l.range[1];for(;u;){if(u.type===`VariableDeclarator`){if(x(u.init,d)||a.test(u.parent.parent.type)&&x(u.parent.parent.right,d))return!0;break}else if(u.type===`AssignmentPattern`){if(x(u.right,d))return!0}else if(o.test(u.type))break;u=u.parent}return!1}function T(e){return u.includes(e.name)}function E(e){let t=e.scope.block;return t.type===`ClassDeclaration`&&t.id===e.identifiers[0]}function D(e){let{parent:t}=e;return t.type===`LogicalExpression`||t.type===`ConditionalExpression`&&t.test!==e?D(t):e}function O(e,t){let n=t.defs[0],r=e.defs[0];if(!n||!r||!(r.type===`FunctionName`&&r.node.type===`FunctionExpression`||r.type===`ClassName`&&r.node.type===`ClassExpression`))return!1;let i=n.name,a;if(i.parent.type===`VariableDeclarator`?a=i.parent.init:i.parent.type===`AssignmentPattern`&&(a=i.parent.right),!a)return!1;let o=r.node;return a.range[0]<=o.range[0]&&o.range[1]<=a.range[1]?a===D(o):!1}function k(e){let t=e.defs[0];return t&&t.name.range}function A(e){let t=e.identifiers[0],n;return n=t?{global:!1,line:t.loc.start.line,column:t.loc.start.column+1}:{global:!0},n}function j(e,t){let n=t.defs[0],r=k(e),i=k(t);return!i||r[1]>=i[0]?!1:l===`types`?!s.has(n.node.type):l===`functions-and-types`?n.node.type!==`FunctionDeclaration`&&!s.has(n.node.type):r&&i&&r[1]<i[0]&&(l!==`functions`||!n||n.node.type!==`FunctionDeclaration`)}function M(t){let n=e.filename;return!n.endsWith(`.d.ts`)&&!n.endsWith(`.d.cts`)&&!n.endsWith(`.d.mts`)?!1:t.defs.some(e=>e.type===`Variable`&&e.parent.declare||e.type===`ClassName`&&e.node.declare||e.type===`TSEnumName`&&e.node.declare||e.type===`TSModuleName`&&e.node.declare)}function N(e){let t=e.scope.block;return t.type===`TSEnumDeclaration`&&t.id===e.identifiers[0]}function P(e,t,n){let r=n.defs[0];if(!r||!r.parent||!(r.parent.type===`ImportDeclaration`&&(r.parent.importKind===`type`||r.parent.specifiers?.some(e=>e.type===`ImportSpecifier`&&e.importKind===`type`&&e.local.name===n.name))))return!1;let i=S(t.identifiers[0]?.parent,e=>e.type===`TSModuleDeclaration`);return i?r.parent.source.value===(i.id.type===`Literal`?i.id.value:i.id.name):!1}function F(r){if(h(r))return;let i=r.variables;for(let a=0;a<i.length;++a){let o=i[a];if(o.identifiers.length===0||E(o)||N(o)||T(o)||M(o)||g(o))continue;let s=n.getVariableByName(r.upper,o.name);if(s&&(s.identifiers.length>0||t&&`writeable`in s)&&!O(o,s)&&!(d&&w(o,s))&&!(l!==`all`&&j(o,s))&&!_(o,s)&&!v(o)&&!b(o,s)&&!P(r,o,s)){let t=A(s),n=t.global?`noShadowGlobal`:`noShadow`,r={name:o.name};t.global||(r.shadowedLine=t.line,r.shadowedColumn=t.column),e.report({node:o.identifiers[0],messageId:n,data:r})}}}return{"Program:exit"(e){let t=m.getScope(e).childScopes.slice();for(;t.length;){let e=t.pop();t.push(...e.childScopes),F(e)}}}}}})),Cr=n(((e,t)=>{function n(e){return e.name===`undefined`&&e.references.every(e=>!e.isWrite())&&e.defs.every(e=>e.node.type===`VariableDeclarator`&&e.node.init===null)}t.exports={meta:{type:`suggestion`,defaultOptions:[{reportGlobalThis:!0}],docs:{description:`Disallow identifiers from shadowing restricted names`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-shadow-restricted-names`},schema:[{type:`object`,properties:{reportGlobalThis:{type:`boolean`}},additionalProperties:!1}],messages:{shadowingRestrictedName:`Shadowing of global property '{{name}}'.`}},create(e){let[{reportGlobalThis:t}]=e.options,r=new Set([`undefined`,`NaN`,`Infinity`,`arguments`,`eval`]);t&&r.add(`globalThis`);let i=e.sourceCode,a=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(t){for(let o of i.getDeclaredVariables(t))if(o.defs.length>0&&r.has(o.name)&&!n(o))for(let t of o.defs){let n=t.name;a.has(n)||(a.add(n),e.report({node:n,messageId:`shadowingRestrictedName`,data:{name:o.name}}))}}}}}})),wr=n(((e,t)=>{t.exports={meta:{type:`layout`,docs:{description:`Disallow spacing between function identifiers and their applications (deprecated)`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-spaced-func`},deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules`,deprecatedSince:`3.3.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`function-call-spacing`,url:`https://eslint.style/rules/function-call-spacing`}}]},fixable:`whitespace`,schema:[],messages:{noSpacedFunction:`Unexpected space between function name and paren.`}},create(e){let t=e.sourceCode;function n(n){let r=t.getLastToken(n.callee),i=r,a=t.getTokenAfter(r);for(;a&&a.range[1]<n.range[1]&&a.value!==`(`;)i=a,a=t.getTokenAfter(a);a&&a.range[1]<n.range[1]&&t.isSpaceBetween(i,a)&&e.report({node:n,loc:r.loc.start,messageId:`noSpacedFunction`,fix(e){return e.removeRange([i.range[1],a.range[0]])}})}return{CallExpression:n,NewExpression:n}}}})),Tr=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:`Disallow sparse arrays`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-sparse-arrays`},schema:[],messages:{unexpectedSparseArray:`Unexpected comma in middle of array.`}},create(e){return{ArrayExpression(t){if(!t.elements.includes(null))return;let{sourceCode:r}=e,i;for(let[a,o]of t.elements.entries()){if(a===t.elements.length-1&&o)return;i=r.getTokenAfter(o??i??r.getFirstToken(t),n.isCommaToken),!o&&e.report({node:t,loc:i.loc,messageId:`unexpectedSparseArray`})}}}}}})),Er=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Node.js rules were moved out of ESLint core.`,url:`https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules`,deprecatedSince:`7.0.0`,availableUntil:`11.0.0`,replacedBy:[{message:`eslint-plugin-n now maintains deprecated Node.js-related rules.`,plugin:{name:`eslint-plugin-n`,url:`https://github.com/eslint-community/eslint-plugin-n`},rule:{name:`no-sync`,url:`https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md`}}]},type:`suggestion`,docs:{description:`Disallow synchronous methods`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-sync`},schema:[{type:`object`,properties:{allowAtRootLevel:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{noSync:`Unexpected sync method: '{{propertyName}}'.`}},create(e){return{[e.options[0]&&e.options[0].allowAtRootLevel?`:function MemberExpression[property.name=/.*Sync$/]`:`MemberExpression[property.name=/.*Sync$/]`](t){e.report({node:t,messageId:`noSync`,data:{propertyName:t.property.name}})}}}}})),Dr=n(((e,t)=>{let n=/\t+/gu,r=/\S/u;t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-tabs`,url:`https://eslint.style/rules/no-tabs`}}]},type:`layout`,docs:{description:`Disallow all tabs`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-tabs`},schema:[{type:`object`,properties:{allowIndentationTabs:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{unexpectedTab:`Unexpected tab character.`}},create(e){let t=e.sourceCode,i=e.options&&e.options[0]&&e.options[0].allowIndentationTabs;return{Program(a){t.getLines().forEach((t,o)=>{let s;for(;(s=n.exec(t))!==null;)i&&!r.test(t.slice(0,s.index))||e.report({node:a,loc:{start:{line:o+1,column:s.index},end:{line:o+1,column:s.index+s[0].length}},messageId:`unexpectedTab`})})}}}}})),Or=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:`Disallow template literal placeholder syntax in regular strings`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-template-curly-in-string`},schema:[],messages:{unexpectedTemplateExpression:`Unexpected template string expression.`}},create(e){let t=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value==`string`&&t.test(n.value)&&e.report({node:n,messageId:`unexpectedTemplateExpression`})}}}}})),kr=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:`Disallow ternary operators`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-ternary`},schema:[],messages:{noTernaryOperator:`Ternary operator used.`}},create(e){return{ConditionalExpression(t){e.report({node:t,messageId:`noTernaryOperator`})}}}}})),Ar=n(((e,t)=>{let n=M();function r(e){return e.type===`FunctionExpression`&&e.parent.type===`MethodDefinition`&&e.parent.kind===`constructor`}var i=class{superCalled=!1;invalidNodes=[]};t.exports={meta:{type:`problem`,docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-this-before-super`},schema:[],messages:{noBeforeSuper:`'{{kind}}' is not allowed before 'super()'.`}},create(e){let t=null,a=Object.create(null);function o(e){return!e.reachable||a[e.id]?.superCalled}function s(){return!!(t&&t.isConstructor&&t.hasExtends)}function c(e){for(let t of e)if(!o(t))return!1;return!0}function l(){return s()&&!c(t.currentSegments)}function u(e){let n=t.currentSegments;for(let t of n)t.reachable&&a[t.id].invalidNodes.push(e)}function d(){let e=t.currentSegments;for(let t of e)t.reachable&&(a[t.id].superCalled=!0)}return{onCodePathStart(e,i){if(r(i)){let r=i.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:!!(r.superClass&&!n.isNullOrUndefined(r.superClass)),codePath:e,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:e,currentSegments:new Set}},onCodePathEnd(n){let r=t.hasExtends;if(t=t.upper,!r)return;let i=new Set;n.traverseSegments((t,n)=>{let r=a[t.id],o=r.invalidNodes.filter(e=>!i.has(e));for(let t of o)i.add(t),e.report({messageId:`noBeforeSuper`,node:t,data:{kind:t.type===`Super`?`super`:`this`}});r.superCalled&&n.skip()})},onCodePathSegmentStart(e){t.currentSegments.add(e),s()&&(a[e.id]={superCalled:e.prevSegments.length>0&&e.prevSegments.every(o),invalidNodes:[]})},onUnreachableCodePathSegmentStart(e){t.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){t.currentSegments.delete(e)},onCodePathSegmentEnd(e){t.currentSegments.delete(e)},onCodePathSegmentLoop(e,n){s()&&t.codePath.traverseSegments({first:n,last:e},(e,t)=>{let n=a[e.id]??new i;n.superCalled?t.skip():e.prevSegments.length>0&&e.prevSegments.every(o)&&(n.superCalled=!0),a[e.id]=n})},ThisExpression(e){l()&&u(e)},Super(e){!n.isCallee(e)&&l()&&u(e)},"CallExpression:exit"(e){e.callee.type===`Super`&&l()&&d()},"Program:exit"(){a=Object.create(null)}}}}})),jr=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow throwing literals as exceptions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-throw-literal`},schema:[],messages:{object:`Expected an error object to be thrown.`,undef:`Do not throw undefined.`}},create(e){return{ThrowStatement(t){n.couldBeError(t.argument)?t.argument.type===`Identifier`&&t.argument.name===`undefined`&&e.report({node:t,messageId:`undef`}):e.report({node:t,messageId:`object`})}}}}})),Mr=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-trailing-spaces`,url:`https://eslint.style/rules/no-trailing-spaces`}}]},type:`layout`,docs:{description:`Disallow trailing whitespace at the end of lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-trailing-spaces`},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,r=`[ \xA0           ​ ]`,i=`^${r}*$`,a=`${r}+$`,o=e.options[0]||{},s=o.skipBlankLines||!1,c=o.ignoreComments||!1;function l(t,n,r){e.report({node:t,loc:n,messageId:`trailingSpace`,fix(e){return e.removeRange(r)}})}function u(e){let t=new Set;return e.forEach(e=>{let n=e.type===`Block`?e.loc.end.line-1:e.loc.end.line;for(let r=e.loc.start.line;r<=n;r++)t.add(r)}),t}return{Program:function(e){let r=new RegExp(a,`u`),o=new RegExp(i,`u`),d=t.lines,f=t.getText().match(n.createGlobalLinebreakMatcher()),p=u(t.getAllComments()),m=0;for(let n=0,i=d.length;n<i;n++){let i=n+1,a=f&&f[n]?f[n].length:1,u=d[n].length+a,h=r.exec(d[n]);if(h){let r={start:{line:i,column:h.index},end:{line:i,column:u-a}},f=m+r.start.column,g=m+r.end.column,_=t.getNodeByRangeIndex(f);if(_&&_.type===`TemplateElement`&&f>_.parent.range[0]&&g<_.parent.range[1]){m+=u;continue}if(s&&o.test(d[n])){m+=u;continue}let v=[f,g];(!c||!p.has(i))&&l(e,r,v)}m+=u}}}}}})),Nr=n(((e,t)=>{t.exports={meta:{type:`problem`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:"Disallow `let` or `var` variables that are read but never assigned",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unassigned-vars`},schema:[],messages:{unassigned:`'{{name}}' is always 'undefined' because it's never assigned.`}},create(e){let t=e.sourceCode,n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(r){let i=r.parent;if(r.init||r.id.type!==`Identifier`||i.kind===`const`||i.declare||n)return;let[a]=t.getDeclaredVariables(r);if(!a)return;let o=!1;for(let e of a.references){if(e.isWrite())return;e.isRead()&&(o=!0)}o&&e.report({node:r,messageId:`unassigned`,data:{name:r.id.name}})}}}}})),Pr=n(((e,t)=>{function n(e){let t=e.parent;return t.type===`UnaryExpression`&&t.operator===`typeof`}t.exports={meta:{type:`problem`,defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-undef`},schema:[{type:`object`,properties:{typeof:{type:`boolean`}},additionalProperties:!1}],messages:{undef:`'{{name}}' is not defined.`}},create(e){let[{typeof:t}]=e.options,r=e.sourceCode;return{"Program:exit"(i){r.getScope(i).through.forEach(r=>{let i=r.identifier;!t&&n(i)||e.report({node:i,messageId:`undef`,data:i})})}}}}})),Fr=n(((e,t)=>{let n=M(),r=new Set([`const`,`using`,`await using`]);t.exports={meta:{type:`suggestion`,docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-undef-init`},schema:[],fixable:`code`,messages:{unnecessaryUndefinedInit:`It's not necessary to initialize '{{name}}' to undefined.`}},create(e){let t=e.sourceCode;return{VariableDeclarator(i){let a=t.getText(i.id),o=i.init&&i.init.name,s=t.getScope(i),c=n.getVariableByName(s,`undefined`),l=c&&c.defs.length>0,u=t.getLastToken(i);o===`undefined`&&!r.has(i.parent.kind)&&!l&&e.report({node:i,messageId:`unnecessaryUndefinedInit`,data:{name:a},fix(e){return i.parent.kind===`var`||i.id.type===`ArrayPattern`||i.id.type===`ObjectPattern`||t.commentsExistBetween(i.id,u)?null:e.removeRange([i.id.range[1],i.range[1]])}})}}}}})),Ir=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-undefined`},schema:[],messages:{unexpectedUndefined:`Unexpected use of undefined.`}},create(e){let t=e.sourceCode;function n(t){e.report({node:t,messageId:`unexpectedUndefined`})}function r(e){let t=e.set.get(`undefined`);if(!t)return;let r=t.references,i=t.defs;r.filter(e=>!e.init).forEach(e=>n(e.identifier)),i.forEach(e=>n(e.name))}return{"Program:exit"(e){let n=[t.getScope(e)];for(;n.length;){let e=n.pop();n.push(...e.childScopes),r(e)}}}}}})),Lr=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:`Disallow dangling underscores in identifiers`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-underscore-dangle`},schema:[{type:`object`,properties:{allow:{type:`array`,items:{type:`string`}},allowAfterThis:{type:`boolean`},allowAfterSuper:{type:`boolean`},allowAfterThisConstructor:{type:`boolean`},enforceInMethodNames:{type:`boolean`},allowFunctionParams:{type:`boolean`},enforceInClassFields:{type:`boolean`},allowInArrayDestructuring:{type:`boolean`},allowInObjectDestructuring:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedUnderscore:`Unexpected dangling '_' in '{{identifier}}'.`}},create(e){let[{allow:t,allowAfterSuper:n,allowAfterThis:r,allowAfterThisConstructor:i,allowFunctionParams:a,allowInArrayDestructuring:o,allowInObjectDestructuring:s,enforceInClassFields:c,enforceInMethodNames:l}]=e.options,u=e.sourceCode;function d(e){return t.includes(e)}function f(e){let t=e.length;return e!==`_`&&(e[0]===`_`||e[t-1]===`_`)}function p(e){return e===`__proto__`}function m(e){return e===`_`}function h(e){return e.object.type===`MemberExpression`&&e.object.property.name===`constructor`&&e.object.object.type===`ThisExpression`}function g(t){a||t.params.forEach(t=>{let{type:n}=t,r;if(r=n===`RestElement`?t.argument:n===`AssignmentPattern`?t.left:t,r.type===`Identifier`){let n=r.name;f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:n}})}})}function _(t){if(t.type===`FunctionDeclaration`&&t.id){let n=t.id.name;n!==void 0&&f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:n}})}g(t)}function v(t){u.getDeclaredVariables(t).forEach(n=>{let r=n.defs.find(e=>e.node===t).name,i=r.name,a=r.parent;for(;![`VariableDeclarator`,`ArrayPattern`,`ObjectPattern`].includes(a.type);)a=a.parent;f(i)&&!m(i)&&!d(i)&&!(o&&a.type===`ArrayPattern`)&&!(s&&a.type===`ObjectPattern`)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:i}})})}function y(t){let a=t.property.name,o=t.object.type===`ThisExpression`,s=t.object.type===`Super`,c=h(t);a!==void 0&&f(a)&&!(o&&r)&&!(s&&n)&&!(c&&i)&&!p(a)&&!d(a)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:a}})}function b(t){let n=t.key.name,r=t.type===`MethodDefinition`||t.type===`Property`&&t.method;n!==void 0&&l&&r&&f(n)&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:t.key.type===`PrivateIdentifier`?`#${n}`:n}})}function x(t){let n=t.key.name;n!==void 0&&f(n)&&c&&!d(n)&&e.report({node:t,messageId:`unexpectedUnderscore`,data:{identifier:t.key.type===`PrivateIdentifier`?`#${n}`:n}})}return{FunctionDeclaration:_,VariableDeclarator:v,MemberExpression:y,MethodDefinition:b,PropertyDefinition:x,Property:b,FunctionExpression:_,ArrowFunctionExpression:_}}}})),Rr=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:`Disallow confusing multiline expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unexpected-multiline`},schema:[],messages:{function:`Unexpected newline between function and ( of function call.`,property:`Unexpected newline between object and [ of property access.`,taggedTemplate:`Unexpected newline between template tag and template literal.`,division:`Unexpected newline between numerator and division operator.`}},create(e){let t=/^[gimsuy]+$/u,r=e.sourceCode;function i(t,i){let a=r.getTokenAfter(t,n.isNotClosingParenToken),o=r.getTokenBefore(a);a.loc.start.line!==o.loc.end.line&&e.report({node:t,loc:a.loc,messageId:i})}return{MemberExpression(e){!e.computed||e.optional||i(e.object,`property`)},TaggedTemplateExpression(t){let{quasi:n}=t;r.getTokenBefore(n).loc.end.line!==n.loc.start.line&&e.report({node:t,loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}},messageId:`taggedTemplate`})},CallExpression(e){e.arguments.length===0||e.optional||i(e.callee,`function`)},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(e){let n=r.getTokenAfter(e,e=>e.value===`/`),a=r.getTokenAfter(n);a.type===`Identifier`&&t.test(a.value)&&n.range[1]===a.range[0]&&i(e.left,`division`)}}}}})),zr=n(((e,t)=>{let n=y(),r=d()(`eslint:traverser`);function i(){}function a(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function o(e,t){let i=e[t.type];return i||(i=n.getKeys(t),r(`Unknown node type "%s": Estimated visitor keys %j`,t.type,i)),i}t.exports=class e{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(e,t){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=t.visitorKeys||n.KEYS,this._enter=t.enter||i,this._leave=t.leave||i,this._traverse(e,null)}_traverse(e,t){if(a(e)){if(this._current=e,this._skipped=!1,this._enter(e,t),!this._skipped&&!this._broken){let t=o(this._visitorKeys,e);if(t.length>=1){this._parents.push(e);for(let n=0;n<t.length&&!this._broken;++n){let r=e[t[n]];if(Array.isArray(r))for(let t=0;t<r.length&&!this._broken;++t)this._traverse(r[t],e);else this._traverse(r,e)}this._parents.pop()}}this._broken||this._leave(e,t),this._current=t}}static getKeys(e){return n.getKeys(e)}static traverse(t,n){new e().traverse(t,n)}static get DEFAULT_VISITOR_KEYS(){return n.KEYS}}})),Br=n(((e,t)=>{let n=zr(),r=M(),i=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,a=/^(?:DoWhile|For|While)Statement$/u,o=/^(?:BinaryExpression|ConditionalExpression)$/u,s=/^(?:ArrowFunction|Class|Function)Expression$/u,c=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function l(e){if(e.init){let t=e.resolved&&e.resolved.defs[0];if(!t||t.type!==`Variable`||t.parent.kind!==`var`)return!1}return e.isWrite()}function u(e){return!e.modified}function d(e){return!(e.modified||e.group)}function f(e,t){let n=e.range,r=t.identifier.range;return n[0]<=r[0]&&r[1]<=n[1]}let p={WhileStatement:f,DoWhileStatement:f,ForStatement(e,t){return f(e,t)&&!(e.init&&f(e.init,t))}};function m(e){let t=e.identifier;for(;t;){if(t.type===`FunctionDeclaration`)return t.id?t:null;t=t.parent}return null}function h(e,t){for(let n=0;n<e.length;++n){let i=e[n];for(let e=0;!i.modified&&e<t.length;++e){let n=t[e],a,o;i.modified=i.isInLoop(n)||!!((a=m(n))&&(o=r.getVariableByName(n.from.upper,a.id.name))&&o.references.some(i.isInLoop))}}}t.exports={meta:{type:`problem`,docs:{description:`Disallow unmodified loop conditions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unmodified-loop-condition`},schema:[],messages:{loopConditionNotModified:`'{{name}}' is not modified in this loop.`}},create(e){let t=e.sourceCode,r=null;function f(t){let n=t.reference.identifier;e.report({node:n,messageId:`loopConditionNotModified`,data:n})}function m(e){for(let t=0;t<e.length;++t){let n=e[t];if(n.group){let e=r.get(n.group);e||(e=[],r.set(n.group,e)),e.push(n)}}}function g(e){e.every(u)&&e.forEach(f)}function _(e){let r=!1;return n.traverse(e,{visitorKeys:t.visitorKeys,enter(e){c.test(e.type)?(r=!0,this.break()):s.test(e.type)&&this.skip()}}),r}function v(e){if(e.init)return null;let t=null,n=e.identifier,r=n.parent;for(;r;){if(i.test(r.type)){if(a.test(r.type)&&r.test===n)return{reference:e,group:t,isInLoop:p[r.type].bind(null,r),modified:!1};break}if(o.test(r.type)){if(_(r))break;t=r}n=r,r=r.parent}return null}function y(e){let t=e.references.map(v).filter(Boolean);if(t.length===0)return;m(t);let n=e.references.filter(l);n.length>0&&h(t,n),t.filter(d).forEach(f)}return{"Program:exit"(e){let n=[t.getScope(e)];r=new Map;let i;for(;i=n.pop();)n.push(...i.childScopes),i.variables.forEach(y);r.forEach(g),r=null}}}}})),Vr=n(((e,t)=>{let n=M(),r=new Set([`==`,`===`,`!=`,`!==`,`>`,`>=`,`<`,`<=`,`in`,`instanceof`]),i={"==":`!=`,"!=":`==`,"===":`!==`,"!==":`===`},a=n.getPrecedence({type:`LogicalExpression`,operator:`||`});t.exports={meta:{type:`suggestion`,defaultOptions:[{defaultAssignment:!0}],docs:{description:`Disallow ternary operators when simpler alternatives exist`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-unneeded-ternary`},schema:[{type:`object`,properties:{defaultAssignment:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unnecessaryConditionalExpression:`Unnecessary use of boolean literals in conditional expression.`,unnecessaryConditionalAssignment:`Unnecessary use of conditional expression for default assignment.`}},create(e){let[{defaultAssignment:t}]=e.options,o=e.sourceCode;function s(e){return e.type===`Literal`&&typeof e.value==`boolean`}function c(e){if(e.type===`BinaryExpression`&&Object.hasOwn(i,e.operator)){let t=o.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator),n=o.getText();return n.slice(e.range[0],t.range[0])+i[e.operator]+n.slice(t.range[1],e.range[1])}return n.getPrecedence(e)<n.getPrecedence({type:`UnaryExpression`})?`!(${n.getParenthesisedText(o,e)})`:`!${n.getParenthesisedText(o,e)}`}function l(e){return e.type===`BinaryExpression`&&r.has(e.operator)||e.type===`UnaryExpression`&&e.operator===`!`}function u(e){return e.test.type===`Identifier`&&e.consequent.type===`Identifier`&&e.test.name===e.consequent.name}return{ConditionalExpression(r){s(r.alternate)&&s(r.consequent)?e.report({node:r,messageId:`unnecessaryConditionalExpression`,fix(e){return r.consequent.value===r.alternate.value?r.test.type===`Identifier`?e.replaceText(r,r.consequent.value.toString()):null:r.alternate.value?e.replaceText(r,c(r.test)):e.replaceText(r,l(r.test)?n.getParenthesisedText(o,r.test):`!${c(r.test)}`)}}):!t&&u(r)&&e.report({node:r,messageId:`unnecessaryConditionalAssignment`,fix(e){let t=(n.getPrecedence(r.alternate)<a||n.isCoalesceExpression(r.alternate))&&!n.isParenthesised(o,r.alternate)?`(${o.getText(r.alternate)})`:n.getParenthesisedText(o,r.alternate),i=n.getParenthesisedText(o,r.test);return e.replaceText(r,`${i} || ${t}`)}})}}}}})),Hr=n(((e,t)=>{function n(e){return!!e.init}function r(e){for(let t of e)if(t.reachable)return!1;return!0}var i=class{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}};t.exports={meta:{type:`problem`,docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unreachable`},schema:[],messages:{unreachableCode:`Unreachable code.`}},create(e){let t=null,a=new i(e.sourceCode),o=[],s=new Set;function c(t){let n=null;if(t&&(t.type===`PropertyDefinition`||r(s))){if(a.isEmpty){a.reset(t);return}if(a.contains(t))return;if(a.isConsecutive(t)){a.merge(t);return}n=t}a.isEmpty||e.report({messageId:`unreachableCode`,loc:a.location,node:a.startNode}),a.reset(n)}return{onCodePathStart(){o.push(s),s=new Set},onCodePathEnd(){s=o.pop()},onUnreachableCodePathSegmentStart(e){s.add(e)},onUnreachableCodePathSegmentEnd(e){s.delete(e)},onCodePathSegmentEnd(e){s.delete(e)},onCodePathSegmentStart(e){s.add(e)},BlockStatement:c,BreakStatement:c,ClassDeclaration:c,ContinueStatement:c,DebuggerStatement:c,DoWhileStatement:c,ExpressionStatement:c,ForInStatement:c,ForOfStatement:c,ForStatement:c,IfStatement:c,ImportDeclaration:c,LabeledStatement:c,ReturnStatement:c,SwitchStatement:c,ThrowStatement:c,TryStatement:c,VariableDeclaration(e){(e.kind!==`var`||e.declarations.some(n))&&c(e)},WhileStatement:c,WithStatement:c,ExportNamedDeclaration:c,ExportDefaultDeclaration:c,ExportAllDeclaration:c,"Program:exit"(){c()},"MethodDefinition[kind='constructor']"(){t={upper:t,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(e){let{hasSuperCall:n}=t;if(t=t.upper,!e.value.body)return;let r=e.parent.parent;if(r.superClass&&!n)for(let e of r.body.body)e.type===`PropertyDefinition`&&!e.static&&c(e)},"CallExpression > Super.callee"(){t&&(t.hasSuperCall=!0)}}}}})),Ur=n(((e,t)=>{let n=[`WhileStatement`,`DoWhileStatement`,`ForStatement`,`ForInStatement`,`ForOfStatement`];function r(e){for(let t of e)if(t.reachable)return!0;return!1}function i(e){let t=e.parent;if(t)switch(t.type){case`WhileStatement`:return e===t.test;case`DoWhileStatement`:return e===t.body;case`ForStatement`:return e===(t.update||t.test||t.body);case`ForInStatement`:case`ForOfStatement`:return e===t.left}return!1}function a(e,t){return e.filter(e=>!t.includes(e))}t.exports={meta:{type:`problem`,defaultOptions:[{ignore:[]}],docs:{description:`Disallow loops with a body that allows only one iteration`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unreachable-loop`},schema:[{type:`object`,properties:{ignore:{type:`array`,items:{enum:n},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:`Invalid loop. Its body allows only one iteration.`}},create(e){let[{ignore:t}]=e.options,o=a(n,t).join(`,`),s=new Map,c=new Set,l=[],u=new Set;return{onCodePathStart(){l.push(u),u=new Set},onCodePathEnd(){u=l.pop()},onUnreachableCodePathSegmentStart(e){u.add(e)},onUnreachableCodePathSegmentEnd(e){u.delete(e)},onCodePathSegmentEnd(e){u.delete(e)},onCodePathSegmentStart(e,t){if(u.add(e),i(t)){let n=t.parent;s.set(e,n)}},onCodePathSegmentLoop(e,t,n){let r=s.get(t);(n===r||n.type===`ContinueStatement`)&&c.delete(r)},[o](e){r(u)&&c.add(e)},"Program:exit"(){c.forEach(t=>e.report({node:t,messageId:`invalid`}))}}}}})),Wr=n(((e,t)=>{let n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,i=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;t.exports={meta:{type:`problem`,docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-finally`},schema:[],messages:{unsafeUsage:`Unsafe usage of {{nodeType}}.`}},create(e){function t(e){return e.parent.type===`TryStatement`&&e.parent.finalizer===e}function a(e,a){let o=!1,s;s=e.type===`BreakStatement`&&!e.label?r:e.type===`ContinueStatement`?i:n;for(let n=e;n&&!s.test(n.type);n=n.parent)if(n.parent.label&&a&&n.parent.label.name===a.name&&(o=!0),t(n))return!(a&&o);return!1}function o(t){a(t,t.label)&&e.report({messageId:`unsafeUsage`,data:{nodeType:t.type},node:t,line:t.loc.line,column:t.loc.column})}return{ReturnStatement:o,ThrowStatement:o,BreakStatement:o,ContinueStatement:o}}}})),Gr=n(((e,t)=>{let n=M();function r(e){return e===`in`||e===`instanceof`}function i(e){return e===`<`||e===`>`||e===`>=`||e===`<=`}function a(e){return e.type===`UnaryExpression`&&e.operator===`!`}t.exports={meta:{type:`problem`,defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:`Disallow negating the left operand of relational operators`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-negation`},hasSuggestions:!0,schema:[{type:`object`,properties:{enforceForOrderingRelations:{type:`boolean`}},additionalProperties:!1}],fixable:null,messages:{unexpected:`Unexpected negating the left operand of '{{operator}}' operator.`,suggestNegatedExpression:`Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.`,suggestParenthesisedNegation:`Wrap negation in '()' to make the intention explicit. This preserves the current behavior.`}},create(e){let t=e.sourceCode,[{enforceForOrderingRelations:o}]=e.options;return{BinaryExpression(s){let c=s.operator,l=o&&i(c);(r(c)||l)&&a(s.left)&&!n.isParenthesised(t,s.left)&&e.report({node:s,loc:s.left.loc,messageId:`unexpected`,data:{operator:c},suggest:[{messageId:`suggestNegatedExpression`,data:{operator:c},fix(e){let n=[t.getFirstToken(s.left).range[1],s.range[1]],r=t.text.slice(n[0],n[1]);return e.replaceTextRange(n,`(${r})`)}},{messageId:`suggestParenthesisedNegation`,fix(e){return e.replaceText(s.left,`(${t.getText(s.left)})`)}}]})}}}}})),Kr=n(((e,t)=>{let n=new Set([`+`,`-`,`/`,`*`,`%`,`**`]),r=new Set([`+=`,`-=`,`/=`,`*=`,`%=`,`**=`]),i=new Set([`in`,`instanceof`]);function a(e){return e.type===`ObjectPattern`||e.type===`ArrayPattern`}t.exports={meta:{type:`problem`,defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining`},schema:[{type:`object`,properties:{disallowArithmeticOperators:{type:`boolean`}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:`Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.`,unsafeArithmetic:`Unsafe arithmetic operation on optional chaining. It can result in NaN.`}},create(e){let[{disallowArithmeticOperators:t}]=e.options;function o(t){e.report({messageId:`unsafeOptionalChain`,node:t})}function s(t){e.report({messageId:`unsafeArithmetic`,node:t})}function c(e,t){if(e)switch(e.type){case`LogicalExpression`:e.operator===`||`||e.operator===`??`?c(e.right,t):e.operator===`&&`&&(c(e.left,t),c(e.right,t));break;case`SequenceExpression`:c(e.expressions.at(-1),t);break;case`ConditionalExpression`:c(e.consequent,t),c(e.alternate,t);break;case`AwaitExpression`:c(e.argument,t);break;case`ChainExpression`:t(e);break;default:break}}function l(e){c(e,o)}function u(e){c(e,s)}return{"AssignmentExpression, AssignmentPattern"(e){a(e.left)&&l(e.right)},"ClassDeclaration, ClassExpression"(e){l(e.superClass)},CallExpression(e){e.optional||l(e.callee)},NewExpression(e){l(e.callee)},VariableDeclarator(e){a(e.id)&&l(e.init)},MemberExpression(e){e.optional||l(e.object)},TaggedTemplateExpression(e){l(e.tag)},ForOfStatement(e){l(e.right)},SpreadElement(e){e.parent&&e.parent.type!==`ObjectExpression`&&l(e.argument)},BinaryExpression(e){i.has(e.operator)&&l(e.right),t&&n.has(e.operator)&&(u(e.right),u(e.left))},WithStatement(e){l(e.object)},UnaryExpression(e){t&&n.has(e.operator)&&u(e.argument)},AssignmentExpression(e){t&&r.has(e.operator)&&u(e.right)}}}}})),qr=n(((e,t)=>{let n=M();function r(){return!0}function i(){return!1}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,docs:{description:`Disallow unused expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-unused-expressions`},schema:[{type:`object`,properties:{allowShortCircuit:{type:`boolean`},allowTernary:{type:`boolean`},allowTaggedTemplates:{type:`boolean`},enforceForJSX:{type:`boolean`},ignoreDirectives:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:`Expected an assignment or function call and instead saw an expression.`}},create(e){let[{allowShortCircuit:t,allowTernary:a,allowTaggedTemplates:o,enforceForJSX:s,ignoreDirectives:c}]=e.options;function l(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`}function u(e,t){for(let n=0;n<t.length;++n)if(!e(t[n]))return t.slice(0,n);return t.slice()}function d(e){return u(l,e.body)}function f(e){return n.isTopLevelExpressionStatement(e)&&d(e.parent).includes(e)}let p=Object.assign(Object.create(null),{isDisallowed(e){return(p[e.type]||i)(e)},ArrayExpression:r,ArrowFunctionExpression:r,BinaryExpression:r,ChainExpression(e){return p.isDisallowed(e.expression)},ClassExpression:r,ConditionalExpression(e){return a?p.isDisallowed(e.consequent)||p.isDisallowed(e.alternate):!0},FunctionExpression:r,Identifier:r,JSXElement(){return s},JSXFragment(){return s},Literal:r,LogicalExpression(e){return t?p.isDisallowed(e.right):!0},MemberExpression:r,MetaProperty:r,ObjectExpression:r,SequenceExpression:r,TaggedTemplateExpression(){return!o},TemplateLiteral:r,ThisExpression:r,UnaryExpression(e){return e.operator!==`void`&&e.operator!==`delete`},TSAsExpression(e){return p.isDisallowed(e.expression)},TSTypeAssertion(e){return p.isDisallowed(e.expression)},TSNonNullExpression(e){return p.isDisallowed(e.expression)},TSInstantiationExpression(e){return p.isDisallowed(e.expression)}});return{ExpressionStatement(t){p.isDisallowed(t.expression)&&!n.isDirective(t)&&!(c&&f(t))&&e.report({node:t,messageId:`unusedExpression`})}}}}})),Jr=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Disallow unused labels`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-labels`},schema:[],fixable:`code`,messages:{unused:`'{{name}}:' is defined but never used.`}},create(e){let t=e.sourceCode,r=null;function i(e){r={label:e.label.name,used:!1,upper:r}}function a(e){if(t.getTokenAfter(e.label,{includeComments:!0})!==t.getTokenBefore(e.body,{includeComments:!0}))return!1;let r=e.parent;for(;r.type===`LabeledStatement`;)r=r.parent;if(r.type===`Program`||r.type===`BlockStatement`&&n.isFunction(r.parent)){let{body:t}=e;if(t.type===`ExpressionStatement`&&(t.expression.type===`Literal`&&typeof t.expression.value==`string`||n.isStaticTemplateLiteral(t.expression)))return!1}return!0}function o(t){r.used||e.report({node:t.label,messageId:`unused`,data:t.label,fix:a(t)?e=>e.removeRange([t.range[0],t.body.range[0]]):null}),r=r.upper}function s(e){if(!e.label)return;let t=e.label.name,n=r;for(;n;){if(n.label===t){n.used=!0;break}n=n.upper}}return{LabeledStatement:i,"LabeledStatement:exit":o,BreakStatement:s,ContinueStatement:s}}}})),Yr=n(((e,t)=>{t.exports={meta:{type:`problem`,docs:{description:`Disallow unused private class members`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-private-class-members`},schema:[],messages:{unusedPrivateClassMember:`'{{classMemberName}}' is defined but never used.`}},create(e){let t=[];function n(e){let t=e.parent.parent,n=t.type===`AssignmentExpression`;return!n&&t.type!==`ForInStatement`&&t.type!==`ForOfStatement`&&t.type!==`AssignmentPattern`||t.left!==e.parent?!1:n&&t.operator!==`=`?t.parent.type===`ExpressionStatement`:!0}return{ClassBody(e){let n=new Map;t.unshift(n);for(let t of e.body)(t.type===`PropertyDefinition`||t.type===`MethodDefinition`)&&t.key.type===`PrivateIdentifier`&&n.set(t.key.name,{declaredNode:t,isAccessor:t.type===`MethodDefinition`&&(t.kind===`set`||t.kind===`get`)})},PrivateIdentifier(e){let r=t.find(t=>t.has(e.name));if(!r)return;let i=r.get(e.name);if(i.isUsed||e.parent.type===`PropertyDefinition`||e.parent.type===`MethodDefinition`)return;if(i.isAccessor){i.isUsed=!0;return}if(n(e))return;let a=e.parent.parent.type,o=e.parent.parent.parent.type;a===`UpdateExpression`&&o===`ExpressionStatement`||a===`Property`&&o===`ObjectPattern`&&e.parent.parent.value===e.parent||a!==`RestElement`&&a!==`ArrayPattern`&&(i.isUsed=!0)},"ClassBody:exit"(){let n=t.shift();for(let[t,{declaredNode:r,isUsed:i}]of n.entries())i||e.report({node:r,loc:r.key.loc,messageId:`unusedPrivateClassMember`,data:{classMemberName:`#${t}`}})}}}}})),Xr=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,docs:{description:`Disallow unused variables`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-unused-vars`},hasSuggestions:!0,schema:[{oneOf:[{enum:[`all`,`local`]},{type:`object`,properties:{vars:{enum:[`all`,`local`]},varsIgnorePattern:{type:`string`},args:{enum:[`all`,`after-used`,`none`]},ignoreRestSiblings:{type:`boolean`},argsIgnorePattern:{type:`string`},caughtErrors:{enum:[`all`,`none`]},caughtErrorsIgnorePattern:{type:`string`},destructuredArrayIgnorePattern:{type:`string`},ignoreClassWithStaticInitBlock:{type:`boolean`},ignoreUsingDeclarations:{type:`boolean`},reportUsedIgnorePattern:{type:`boolean`}},additionalProperties:!1}]}],messages:{unusedVar:`'{{varName}}' is {{action}} but never used{{additional}}.`,usedIgnoredVar:`'{{varName}}' is marked as ignored but is used{{additional}}.`,removeVar:`Remove unused variable '{{varName}}'.`}},create(e){let t=e.sourceCode,r=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,i={vars:`all`,args:`after-used`,ignoreRestSiblings:!1,caughtErrors:`all`,ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1},a=e.options[0];a&&(typeof a==`string`?i.vars=a:(i.vars=a.vars||i.vars,i.args=a.args||i.args,i.ignoreRestSiblings=a.ignoreRestSiblings||i.ignoreRestSiblings,i.caughtErrors=a.caughtErrors||i.caughtErrors,i.ignoreClassWithStaticInitBlock=a.ignoreClassWithStaticInitBlock||i.ignoreClassWithStaticInitBlock,i.ignoreUsingDeclarations=a.ignoreUsingDeclarations||i.ignoreUsingDeclarations,i.reportUsedIgnorePattern=a.reportUsedIgnorePattern||i.reportUsedIgnorePattern,a.varsIgnorePattern&&(i.varsIgnorePattern=new RegExp(a.varsIgnorePattern,`u`)),a.argsIgnorePattern&&(i.argsIgnorePattern=new RegExp(a.argsIgnorePattern,`u`)),a.caughtErrorsIgnorePattern&&(i.caughtErrorsIgnorePattern=new RegExp(a.caughtErrorsIgnorePattern,`u`)),a.destructuredArrayIgnorePattern&&(i.destructuredArrayIgnorePattern=new RegExp(a.destructuredArrayIgnorePattern,`u`))));function o(e){if(i.destructuredArrayIgnorePattern&&e.name.parent.type===`ArrayPattern`)return`array-destructure`;switch(e.type){case`CatchClause`:return`catch-clause`;case`Parameter`:return`parameter`;default:return`variable`}}function s(e){let t,n;switch(e){case`array-destructure`:t=i.destructuredArrayIgnorePattern,n=`elements of array destructuring`;break;case`catch-clause`:t=i.caughtErrorsIgnorePattern,n=`caught errors`;break;case`parameter`:t=i.argsIgnorePattern,n=`args`;break;case`variable`:t=i.varsIgnorePattern,n=`vars`;break;default:throw Error(`Unexpected variable type: ${e}`)}return t&&=t.toString(),[n,t]}function c(e){let t=e.defs&&e.defs[0],n=``;if(t){let[e,r]=s(o(t));r&&e&&(n=`. Allowed unused ${e} must match ${r}`)}return{varName:e.name,action:`defined`,additional:n}}function l(e){let t=e.defs&&e.defs[0],n=``;if(t){let[e,r]=s(o(t));r&&e&&(n=`. Allowed unused ${e} must match ${r}`)}return{varName:e.name,action:`assigned a value`,additional:n}}function u(e,t){let[n,r]=s(t),i=``;return r&&n&&(i=`. Used ${n} must not match ${r}`),{varName:e.name,additional:i}}let d=/(?:Statement|Declaration)$/u;function f(e){let t=e.defs[0];if(t){let e=t.node;if(e.type===`VariableDeclarator`)e=e.parent;else if(t.type===`Parameter`)return!1;return e.parent.type.indexOf(`Export`)===0}return!1}function p(e){let[t]=e.defs;return t?.type===`Variable`&&(t.parent.kind===`using`||t.parent.kind===`await using`)}function m(e){return e.type===`Property`&&e.parent.type===`ObjectPattern`&&r.test(e.parent.properties.at(-1).type)}function h(e){if(i.ignoreRestSiblings){let t=e.defs.some(e=>m(e.name.parent)),n=e.references.some(e=>m(e.identifier.parent));return t||n}return!1}function g(e){return e.isRead()}function _(e,t){let n=e.from;for(;n;){if(t.includes(n.block))return!0;n=n.upper}return!1}function v(e){let t=[];return e.defs.forEach(e=>{let{type:n,node:r}=e;n===`FunctionName`&&t.push(r),n===`Variable`&&r.init&&(r.init.type===`FunctionExpression`||r.init.type===`ArrowFunctionExpression`)&&t.push(r.init)}),t}function y(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function b(e){let t=e.parent;return t.type===`ExpressionStatement`?!0:t.type===`SequenceExpression`?t.expressions.at(-1)===e?b(t):!0:!1}function x(e,t){let r=e.identifier,i=r.parent,a=e.from.variableScope!==e.resolved.scope.variableScope||n.isInLoop(r);return t&&y(r,t)?t:i.type===`AssignmentExpression`&&b(i)&&r===i.left&&!a?i.right:null}function S(e,t){let n=e,r=e.parent;for(;r&&y(r,t);){switch(r.type){case`SequenceExpression`:if(r.expressions.at(-1)!==n)return!1;break;case`CallExpression`:case`NewExpression`:return r.callee!==n;case`AssignmentExpression`:case`TaggedTemplateExpression`:case`YieldExpression`:return!0;default:if(d.test(r.type))return!0}n=r,r=r.parent}return!1}function C(e,t){let r=n.getUpperFunction(e);return r&&y(r,t)&&S(r,t)}function w(e,t){let r=e.identifier,i=r.parent;return e.isRead()&&(i.type===`AssignmentExpression`&&i.left===r&&b(i)&&!n.isLogicalAssignmentOperator(i.operator)||i.type===`UpdateExpression`&&b(i)||t&&y(r,t)&&!C(r,t))}function T(e){let t=e.identifier.parent;return t.type===`VariableDeclarator`&&(t=t.parent.parent),t.type!==`ForInStatement`&&t.type!==`ForOfStatement`||(t=t.body.type===`BlockStatement`?t.body.body[0]:t.body,!t)?!1:t.type===`ReturnStatement`}function E(e){if(e.eslintUsed)return!0;let t=v(e),n=t.length>0,r=null;return e.references.some(e=>{if(T(e))return!0;let i=w(e,r);return r=x(e,r),g(e)&&!i&&!(n&&_(e,t))})}function D(e){let n=e.defs[0],r=t.getDeclaredVariables(n.node);return!r.slice(r.indexOf(e)+1).some(e=>e.references.length>0||e.eslintUsed)}function O(t,r){let a=t.variables,o=t.childScopes,s,c;if(t.type!==`global`||i.vars===`all`)for(s=0,c=a.length;s<c;++s){let o=a[s];if(t.type===`class`&&t.block.id===o.identifiers[0]||t.functionExpressionScope||!i.reportUsedIgnorePattern&&o.eslintUsed||t.type===`function`&&o.name===`arguments`&&o.identifiers.length===0)continue;let c=o.defs[0];if(c){let t=c.type,r=o.references.some(e=>e.identifier.parent.type===`ArrayPattern`);if((c.name.parent.type===`ArrayPattern`||r)&&i.destructuredArrayIgnorePattern&&i.destructuredArrayIgnorePattern.test(c.name.name)){i.reportUsedIgnorePattern&&E(o)&&e.report({node:c.name,messageId:`usedIgnoredVar`,data:u(o,`array-destructure`)});continue}if(t===`ClassName`){let e=c.node.body.body.some(e=>e.type===`StaticBlock`);if(i.ignoreClassWithStaticInitBlock&&e)continue}if(t===`CatchClause`){if(i.caughtErrors===`none`)continue;if(i.caughtErrorsIgnorePattern&&i.caughtErrorsIgnorePattern.test(c.name.name)){i.reportUsedIgnorePattern&&E(o)&&e.report({node:c.name,messageId:`usedIgnoredVar`,data:u(o,`catch-clause`)});continue}}else if(t===`Parameter`){if((c.node.parent.type===`Property`||c.node.parent.type===`MethodDefinition`)&&c.node.parent.kind===`set`||i.args===`none`)continue;if(i.argsIgnorePattern&&i.argsIgnorePattern.test(c.name.name)){i.reportUsedIgnorePattern&&E(o)&&e.report({node:c.name,messageId:`usedIgnoredVar`,data:u(o,`parameter`)});continue}if(i.args===`after-used`&&n.isFunction(c.name.parent)&&!D(o))continue}else if(i.varsIgnorePattern&&i.varsIgnorePattern.test(c.name.name)){i.reportUsedIgnorePattern&&E(o)&&e.report({node:c.name,messageId:`usedIgnoredVar`,data:u(o,`variable`)});continue}}!E(o)&&!f(o)&&!(i.ignoreUsingDeclarations&&p(o))&&!h(o)&&r.push(o)}for(s=0,c=o.length;s<c;++s)O(o[s],r);return r}function k(e,r){let i=r.identifiers[0],a=i.parent,o=a.type,s=t.getTokenBefore(i),c=t.getTokenAfter(i),l=n.isFunction,u=n.isLoop,d=r.references.filter(e=>e.isWrite());function f(e,n){return t.getTokenBefore(e,n).range[0]}function p(e,n){return t.getTokenAfter(e,n).range[1]}function m(e){return t.getTokenBefore(e).value}function h(e){return t.getTokenAfter(e).value}function g(e){return e.elements.filter(e=>e!==null).length===1}function _(e,t){return e.specifiers.some(e=>e.type===t)}function v(e,t){return e.type===`String`||t&&!n.isSemicolonToken(t)&&!n.isOpeningBraceToken(t)}function y(t){let n=t.parent;return l(n)?n.params.length===1?e.removeRange(t.range):m(t)===`(`&&h(t)===`,`?e.removeRange([t.range[0],p(t)]):e.removeRange([f(t),t.range[1]]):null}function b(n){let r=n.parent;if(r.type===`VariableDeclarator`){if(u(r.parent.parent))return null;if(r.parent.declarations.length===1){let n=t.getTokenAfter(r.parent),i=t.getTokenBefore(r.parent);return n&&v(n,i)?null:e.removeRange(r.parent.range)}return m(r)===`,`?e.removeRange([f(r),r.range[1]]):e.removeRange([r.range[0],p(r)])}return m(n)===`:`&&r.parent.type===`ObjectPattern`?C(n):y(n)}function x(t){let n=t.parent;return n.parent.parent.parent.type===`ObjectPattern`&&n.parent.properties.length===1?x(n.parent):n.parent.type===`ObjectPattern`?n.parent.properties.length===1?b(n.parent):m(n)===`{`?e.removeRange([n.range[0],p(n)]):e.removeRange([f(n),n.range[1]]):null}function S(t){let n=t.parent;return n.parent.type===`ArrayPattern`&&g(n)?S(n):g(n)?m(n)===`:`?b(n):n.parent.type===`RestElement`?w(n.parent):b(n):m(t)===`,`&&h(t)===`]`?e.removeRange([f(t),t.range[1]]):e.removeRange(t.range)}function C(e){let t=e.parent.parent;return t.parent.type===`ArrayPattern`&&t.properties.length===1?S(t):x(e)}function w(t){let n=t.parent;return l(n)?n.params.length===1?e.removeRange(t.range):e.removeRange([f(t),t.range[1]]):n.type===`ArrayPattern`?g(n)?n.parent.type===`ArrayPattern`?S(n):b(n):e.removeRange([f(t),t.range[1]]):null}if(d.some(e=>e.identifier.range[0]!==i.range[0]))return null;if(o===`VariableDeclarator`){if(a.parent.declarations.length===1){if(u(a.parent.parent)&&a.parent.parent.body!==a.parent)return null;if(a.parent.parent.type===`IfStatement`||u(a.parent.parent)||a.parent.parent.type===`WithStatement`&&a.parent.parent.body===a.parent)return e.replaceText(a.parent,`;`);let n=t.getTokenAfter(a.parent),r=t.getTokenBefore(a.parent);return n&&v(n,r)?null:e.removeRange(a.parent.range)}return s.value===`,`?e.removeRange([s.range[0],a.range[1]]):e.removeRange([a.range[0],p(a)])}if(a.parent.type===`ObjectPattern`){if(a.parent.properties.length===1)return a.parent.parent.type===`RestElement`?w(a.parent.parent):a.parent.parent.type===`ArrayPattern`?S(a.parent):b(a.parent);if(s.value===`:`)return m(a)===`{`&&h(a)===`,`?e.removeRange([a.range[0],p(a)]):e.removeRange([f(a),i.range[1]])}if(o===`ArrayPattern`){if(g(a))return a.parent.type===`RestElement`?w(a.parent):a.parent.type===`ArrayPattern`?S(a):b(a);if(s.value===`,`&&c.value===`,`)return e.removeRange(i.range)}if(o===`RestElement`){if(a.parent.type===`ArrayPattern`)return g(a.parent)?a.parent.parent.type===`ArrayPattern`?S(a.parent):b(a.parent):e.removeRange([f(i,1),i.range[1]]);if(a.parent.type===`ObjectPattern`)return a.parent.properties.length===1?b(a.parent):e.removeRange([f(i,1),i.range[1]]);if(l(a.parent))return a.parent.params.length===1?e.removeRange(a.range):e.removeRange([f(a),a.range[1]])}if(o===`AssignmentPattern`){if(a.parent.type===`ArrayPattern`)return S(a);if(a.parent.parent.type===`ObjectPattern`)return a.parent.parent.properties.length===1?a.parent.parent.parent.type===`ArrayPattern`?S(a.parent.parent):b(a.parent.parent):m(a.parent)===`{`&&h(a.parent)===`,`?e.removeRange([a.parent.range[0],p(a.parent)]):e.removeRange([f(a.parent),a.parent.range[1]]);if(l(a.parent))return y(a)}return o===`FunctionDeclaration`&&a.id===i?e.removeRange(a.range):o===`ImportDefaultSpecifier`?!_(a.parent,`ImportSpecifier`)&&!_(a.parent,`ImportNamespaceSpecifier`)?e.removeRange([a.range[0],a.parent.source.range[0]]):e.removeRange([i.range[0],c.range[1]]):o===`ImportSpecifier`?a.parent.specifiers.filter(e=>e.type===`ImportSpecifier`).length===1?_(a.parent,`ImportDefaultSpecifier`)?e.removeRange([f(a,1),c.range[1]]):e.removeRange(a.parent.range):m(a)===`{`?e.removeRange([a.range[0],p(a)]):e.removeRange([f(a),a.range[1]]):o===`ImportNamespaceSpecifier`?_(a.parent,`ImportDefaultSpecifier`)?e.removeRange([f(a),a.range[1]]):e.removeRange([a.range[0],a.parent.source.range[0]]):o===`CatchClause`?null:o===`ClassDeclaration`?e.removeRange(a.range):s?.value===`,`?e.removeRange([s.range[0],i.range[1]]):c.value===`,`&&(s.value===`(`||s.value===`{`)?e.removeRange([i.range[0],c.range[1]]):o===`ArrowFunctionExpression`&&a.params.length===1&&c?.value!==`)`?e.replaceText(i,`()`):e.removeRange(i.range)}return{"Program:exit"(r){let i=O(t.getScope(r),[]);for(let a=0,o=i.length;a<o;++a){let o=i[a];if(o.defs.length>0){let t=o.references.filter(e=>e.isWrite()&&e.from.variableScope===o.scope.variableScope),n;t.length>0&&(n=t.at(-1)),e.report({node:n?n.identifier:o.identifiers[0],messageId:`unusedVar`,data:o.references.some(e=>e.isWrite())?l(o):c(o),suggest:[{messageId:`removeVar`,data:{varName:o.name},fix(e){return k(e,o)}}]})}else if(o.eslintExplicitGlobalComments){let i=o.eslintExplicitGlobalComments[0];e.report({node:r,loc:n.getNameLocationInGlobalDirectiveComment(t,i,o.name),messageId:`unusedVar`,data:c(o)})}}}}}}})),Zr=n(((e,t)=>{let n=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,r=/^For(?:In|Of)Statement$/u;function i(e){return typeof e==`object`&&e?e:{functions:typeof e==`string`?e!==`nofunc`:!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function a(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}function o(e,t){return e.body.some(e=>e.type===`StaticBlock`&&a(e,t)||e.type===`PropertyDefinition`&&e.static&&e.value&&a(e.value,t))}function s(e){return e.type===`class-static-block`?!0:e.type===`class-field-initializer`?e.block.parent.static:!1}function c(e){let t=e.resolved,n=e.from;for(;t.scope.variableScope!==n.variableScope;)if(s(n.variableScope))n=n.variableScope.upper;else return!0;return!1}function l(e){if(c(e))return!1;let t=e.identifier.range[1],i=e.resolved.defs[0];if(i.type===`ClassName`){let e=i.node;return a(e,t)&&!o(e.body,t)}let s=i.name.parent;for(;s;){if(s.type===`VariableDeclarator`){if(a(s.init,t)||r.test(s.parent.parent.type)&&a(s.parent.parent.right,t))return!0;break}else if(s.type===`AssignmentPattern`){if(a(s.right,t))return!0}else if(n.test(s.type))break;s=s.parent}return!1}function u(e){switch(e.type){case`TSTypeQuery`:return!0;case`TSQualifiedName`:case`Identifier`:return u(e.parent);default:return!1}}function d(e,t){if(e.defs[0].type!==`ClassName`||!e.defs[0].node.decorators||e.defs[0].node.decorators.length===0)return!1;for(let n of e.defs[0].node.decorators)if(t.identifier.range[0]>=n.range[0]&&t.identifier.range[1]<=n.range[1])return!0;return!1}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`problem`,docs:{description:`Disallow the use of variables before they are defined`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-use-before-define`},schema:[{oneOf:[{enum:[`nofunc`]},{type:`object`,properties:{functions:{type:`boolean`},classes:{type:`boolean`},variables:{type:`boolean`},allowNamedExports:{type:`boolean`},enums:{type:`boolean`},typedefs:{type:`boolean`},ignoreTypeReferences:{type:`boolean`}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:`'{{name}}' was used before it was defined.`}},create(e){let t=i(e.options[0]),n=e.sourceCode;function r(e){if(e.init)return!1;let{identifier:n}=e;if(t.allowNamedExports&&n.parent.type===`ExportSpecifier`&&n.parent.local===n)return!1;let r=e.resolved;if(!r||r.defs.length===0)return!1;let i=r.defs[0].type;if(!t.functions&&i===`FunctionName`||(!t.variables&&i===`Variable`||!t.classes&&i===`ClassName`)&&c(e)||!t.enums&&i===`TSEnumName`||!t.typedefs&&i===`Type`||t.ignoreTypeReferences&&(u(n)||n.parent.type===`TSTypeReference`))return!1;if(n.parent.type===`TSQualifiedName`){let e=n.parent;for(;e.type===`TSQualifiedName`;)e=e.left;return e===n}return!d(r,e)}function a(t){t.references.filter(r).forEach(t=>{let n=t.resolved.defs[0].name;(t.identifier.range[1]<n.range[1]||l(t)&&t.identifier.parent.type!==`TSTypeReference`)&&e.report({node:t.identifier,messageId:`usedBeforeDefined`,data:t.identifier})}),t.childScopes.forEach(a)}return{Program(e){a(n.getScope(e))}}}}})),Qr=n(((e,t)=>{let{findVariable:n}=q();function*r(e){switch(e.type){case`Identifier`:yield e;return;case`ObjectPattern`:for(let t of e.properties)yield*r(t.type===`Property`?t.value:t);return;case`ArrayPattern`:for(let t of e.elements)t&&(yield*r(t));return;case`RestElement`:yield*r(e.argument);return;case`AssignmentPattern`:yield*r(e.left)}}function i(e,t){return!(t.range[0]<e.identifier.range[1]||e.expression&&e.expression.range[0]<=t.range[0]&&t.range[1]<=e.expression.range[1])}function a(e,t){return e.expression?e.identifier.range[1]<=t.range[0]&&t.range[1]<=e.expression.range[0]:!1}t.exports={meta:{type:`problem`,docs:{description:`Disallow variable assignments when the value is not used`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-assignment`},schema:[],messages:{unnecessaryAssignment:`The value assigned to '{{name}}' is not used in subsequent statements.`}},create(e){let t=e.sourceCode,o=null,s=new Set;function c(e){let t=e;for(;t;){if(s.has(t))return t;t=t.upper}return null}function l(t){function n(e,n){let r=t.segments[e.id];return r.first&&r.last&&r.first.range[0]<=n.range[0]&&n.range[1]<=r.last.range[1]}function r(r,o){if(t.tryStatementBlocks.some(e=>e.range[0]<=r.identifier.range[0]&&r.identifier.range[1]<=e.range[1]))return;let s={results:[],subsequentSegments:new Set,queueSegments:r.segments.flatMap(e=>e.nextSegments)};function*l(){for(yield*s.results;s.queueSegments.length>0;){let e=s.queueSegments.shift();if(s.subsequentSegments.has(e))continue;s.subsequentSegments.add(e);let t=o.find(t=>t.segments.includes(e)&&!a(t,r.identifier));t||s.queueSegments.push(...e.nextSegments);let n={segment:e,assignment:t};s.results.push(n),yield n}}if(r.variable.references.some(e=>{let t=e.identifier.type;return t!==`Identifier`&&t!==`JSXIdentifier`}))return;let u=r.variable.references.filter(e=>e.isRead());if(!u.length)return;let d=o.find(e=>e===r||e.segments.length&&e.segments.every(e=>!r.segments.includes(e))?!1:!!(i(r,e.identifier)||e.expression&&e.expression.range[0]<=r.identifier.range[0]&&r.identifier.range[1]<=e.expression.range[1]));for(let e of u){if(t.scope!==c(e.from))return;if(i(r,e.identifier)&&(a(r,e.identifier)||r.segments.some(t=>n(t,e.identifier)))){if(d&&i(d,e.identifier))continue;return}if(!d){for(let t of l())if(n(t.segment,e.identifier)){if(t.assignment&&i(t.assignment,e.identifier))continue;return}}}e.report({node:r.identifier,messageId:`unnecessaryAssignment`,data:{name:r.identifier.name}})}for(let e of t.assignments.values()){e.sort((e,t)=>e.identifier.range[0]-t.identifier.range[0]);for(let t of e)r(t,e)}}return{onCodePathStart(e,n){let r=t.getScope(n);o={upper:o,codePath:e,scope:r,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},s.add(o.scope)},onCodePathEnd(){l(o),o=o.upper},onCodePathSegmentStart(e){let t={segment:e,first:null,last:null};o.segments[e.id]=t,o.currentSegments.add(e)},onCodePathSegmentEnd(e){o.currentSegments.delete(e)},TryStatement(e){o.tryStatementBlocks.push(e.block)},"Identifier, JSXIdentifier"(e){for(let t of o.currentSegments){let n=o.segments[t.id];n.first||=e,n.last=e}},"VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression:exit"(e){if(o.currentSegments.size===0)return;let i=o.assignments,a,s=null;e.type===`VariableDeclarator`?(a=e.id,s=e.init):e.type===`AssignmentExpression`?(a=e.left,s=e.right):a=e.argument;for(let l of r(a)){let r=n(t.getScope(l),l);if(!r||r.scope.type===`global`&&r.defs.length===0||o.scope!==c(r.scope)||r.eslintUsed||r.scope.type===`module`&&(r.defs.some(e=>e.type===`Variable`&&e.parent.parent.type===`ExportNamedDeclaration`||e.type===`FunctionName`&&(e.node.parent.type===`ExportNamedDeclaration`||e.node.parent.type===`ExportDefaultDeclaration`)||e.type===`ClassName`&&(e.node.parent.type===`ExportNamedDeclaration`||e.node.parent.type===`ExportDefaultDeclaration`))||r.references.some(e=>e.identifier.parent.type===`ExportSpecifier`)))continue;let a=i.get(r);a||(a=[],i.set(r,a)),a.push({variable:r,identifier:l,node:e,expression:s,segments:[...o.currentSegments]})}}}}}})),$r=n(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=q(),{RegExpParser:o,visitRegExpAST:s}=Tt(),c=new o;function l(e){let t=[],n=e;do t.push(n),n=n.parent;while(n);return t}function u(e){return e.type===`Assertion`&&(e.kind===`lookahead`||e.kind===`lookbehind`)}function d(e){return u(e)&&e.negate}t.exports={meta:{type:`problem`,docs:{description:`Disallow useless backreferences in regular expressions`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-backreference`},schema:[],messages:{nested:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.`,forward:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.`,backward:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.`,disjunctive:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.`,intoNegativeLookaround:`Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround.`}},create(e){let t=e.sourceCode;function o(t,n,r){let i;try{i=c.parsePattern(n,0,n.length,{unicode:r.includes(`u`),unicodeSets:r.includes(`v`)})}catch{return}s(i,{onBackreferenceEnter(n){let r=[n.resolved].flat(),i=l(n),a=r.map(e=>{let t=l(e);if(i.includes(e))return{messageId:`nested`,group:e};let r=i.length-1,a=t.length-1;do r--,a--;while(i[r]===t[a]);let o=a+1,s=t.slice(0,o),c=t.slice(o).find(u),f=c&&c.kind===`lookbehind`;return s.at(-1).type===`Alternative`?{messageId:`disjunctive`,group:e}:!f&&n.end<=e.start?{messageId:`forward`,group:e}:f&&e.end<=n.start?{messageId:`backward`,group:e}:s.some(d)?{messageId:`intoNegativeLookaround`,group:e}:null});if(a.length===0||a.some(e=>!e))return;let o,s=a.filter(e=>e.messageId!==`disjunctive`);o=s.length?s:a;let[{messageId:c,group:f},...p]=o,m=``;p.length===1?m=` and another group`:p.length>1&&(m=` and other ${p.length} groups`),e.report({node:t,messageId:c,data:{bref:n.raw,group:f.raw,otherGroups:m}})}})}return{"Literal[regex]"(e){let{pattern:t,flags:n}=e.regex;o(e,t,n)},Program(e){let s=t.getScope(e),c=new i(s),l={RegExp:{[n]:!0,[r]:!0}};for(let{node:e}of c.iterateGlobalReferences(l)){let[t,n]=e.arguments,r=a(t,s),i=a(n,s);typeof r==`string`&&o(e,r,i||``)}}}}}})),ei=n(((e,t)=>{let n=M();function r(e){let t=n.skipChainExpression(e.callee);return t.type===`MemberExpression`&&t.property.type===`Identifier`&&t.computed===!1&&(t.property.name===`call`&&e.arguments.length>=1||t.property.name===`apply`&&e.arguments.length===2&&e.arguments[1].type===`ArrayExpression`)}function i(e,t,r){return e?n.equalTokens(e,t,r):n.isNullOrUndefined(t)}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-call`},schema:[],messages:{unnecessaryCall:`Unnecessary '.{{name}}()'.`}},create(e){let t=e.sourceCode;return{CallExpression(a){if(!r(a))return;let o=n.skipChainExpression(a.callee),s=n.skipChainExpression(o.object),c=s.type===`MemberExpression`?s.object:null,l=a.arguments[0];i(c,l,t)&&e.report({node:a,messageId:`unnecessaryCall`,data:{name:o.property.name}})}}}}})),ti=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-catch`},schema:[],messages:{unnecessaryCatchClause:`Unnecessary catch clause.`,unnecessaryCatch:`Unnecessary try/catch wrapper.`}},create(e){return{CatchClause(t){t.param&&t.param.type===`Identifier`&&t.body.body.length&&t.body.body[0].type===`ThrowStatement`&&t.body.body[0].argument.type===`Identifier`&&t.body.body[0].argument.name===t.param.name&&(t.parent.finalizer?e.report({node:t,messageId:`unnecessaryCatchClause`}):e.report({node:t.parent,messageId:`unnecessaryCatch`}))}}}}})),ni=n(((e,t)=>{let n=M();function r(e){if(!e.computed)return!1;let{key:t}=e;if(t.type!==`Literal`)return!1;let{value:n}=t;if(typeof n!=`number`&&typeof n!=`string`)return!1;switch(e.type){case`Property`:return e.parent.type===`ObjectExpression`?n!==`__proto__`:!0;case`PropertyDefinition`:return e.static?n!==`constructor`&&n!==`prototype`:n!==`constructor`;case`MethodDefinition`:return e.static?n!==`prototype`:n!==`constructor`;default:throw Error(`Unexpected node type: ${e.type}`)}}t.exports={meta:{type:`suggestion`,defaultOptions:[{enforceForClassMembers:!0}],docs:{description:`Disallow unnecessary computed property keys in objects and classes`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-useless-computed-key`},schema:[{type:`object`,properties:{enforceForClassMembers:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{unnecessarilyComputedProperty:`Unnecessarily computed property [{{property}}] found.`}},create(e){let t=e.sourceCode,[{enforceForClassMembers:i}]=e.options;function a(i){if(r(i)){let{key:r}=i;e.report({node:i,messageId:`unnecessarilyComputedProperty`,data:{property:t.getText(r)},fix(e){let i=t.getTokenBefore(r,n.isOpeningBracketToken),a=t.getTokenAfter(r,n.isClosingBracketToken);if(t.commentsExistBetween(i,a))return null;let o=t.getTokenBefore(i),s=(o.range[1]===i.range[0]&&!n.canTokensBeAdjacent(o,t.getFirstToken(r))?` `:``)+r.raw;return e.replaceTextRange([i.range[0],a.range[1]],s)}})}}function o(){}return{Property:a,MethodDefinition:i?a:o,PropertyDefinition:i?a:o}}}})),ri=n(((e,t)=>{let n=M();function r(e){return e.type===`BinaryExpression`&&e.operator===`+`}function i(e){return e.value===`+`&&e.type===`Punctuator`}function a(e){let t=e.left;for(;r(t);)t=t.right;return t}function o(e){let t=e.right;for(;r(t);)t=t.left;return t}t.exports={meta:{type:`suggestion`,docs:{description:`Disallow unnecessary concatenation of literals or template literals`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-useless-concat`},schema:[],messages:{unexpectedConcat:`Unexpected string concatenation of literals.`}},create(e){let t=e.sourceCode;return{BinaryExpression(r){if(r.operator!==`+`)return;let s=a(r),c=o(r);if(n.isStringLiteral(s)&&n.isStringLiteral(c)&&n.isTokenOnSameLine(s,c)){let n=t.getFirstTokenBetween(s,c,i);e.report({node:r,loc:n.loc,messageId:`unexpectedConcat`})}}}}}})),ii=n(((e,t)=>{let n=M();function r(e){return e.value.params.some(e=>e.decorators?.length||e.type===`TSParameterProperty`)}function i(e){switch(e.accessibility){case`protected`:case`private`:return!0;case`public`:return!!e.parent.parent.superClass;default:return!1}}function a(e){return e.length===1&&e[0].type===`ExpressionStatement`&&e[0].expression.type===`CallExpression`&&e[0].expression.callee.type===`Super`}function o(e){return e.type===`Identifier`||e.type===`RestElement`}function s(e){return e.length===1&&e[0].type===`SpreadElement`&&e[0].argument.type===`Identifier`&&e[0].argument.name===`arguments`}function c(e,t){return e.type===`Identifier`&&t.type===`Identifier`&&e.name===t.name}function l(e,t){return e.type===`RestElement`&&t.type===`SpreadElement`&&c(e.argument,t.argument)}function u(e,t){return c(e,t)||l(e,t)}function d(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!u(e[n],t[n]))return!1;return!0}function f(e,t){return a(e)&&t.every(o)&&(s(e[0].expression.arguments)||d(t,e[0].expression.arguments))}t.exports={meta:{dialects:[`javascript`,`typescript`],language:`javascript`,type:`suggestion`,docs:{description:`Disallow unnecessary constructors`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-constructor`},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:`Useless constructor.`,removeConstructor:`Remove the constructor.`}},create(e){let{sourceCode:t}=e;function a(a){if(a.kind!==`constructor`||a.value.type!==`FunctionExpression`||r(a)||i(a)||!a.value.body)return;let o=a.value.body.body,s=a.value.params,c=a.parent.parent.superClass,l=t.getFirstToken(a,n.isOpeningParenToken),u={start:a.loc.start,end:t.getTokenBefore(l).loc.end};(c?f(o,s):o.length===0)&&e.report({loc:u,messageId:`noUselessConstructor`,suggest:[{messageId:`removeConstructor`,*fix(e){let r=t.getTokenAfter(a),i=r.type===`Punctuator`&&r.value===`[`&&n.needsPrecedingSemicolon(t,a);yield e.replaceText(a,i?`;`:``)}}]})}return{MethodDefinition:a}}}})),ai=n(((e,t)=>{let n=M(),{RegExpParser:r,visitRegExpAST:i}=Tt();function a(e,t){return new Set((function*(){yield*e,yield*t})())}let o=a(new Set(`\\nrvtbfux`),n.LINEBREAKS),s=new Set(`\\bcdDfnpPrsStvwWxu0123456789]`),c=a(s,new Set(`^/.$*+?[{}|()Bk`)),l=a(s,new Set(`q/[{}|()-`)),u=new Set("!#$%&*+,.:;<=>?@^`~");t.exports={meta:{type:`suggestion`,defaultOptions:[{allowRegexCharacters:[]}],docs:{description:`Disallow unnecessary escape characters`,recommended:!0,url:`https://eslint.org/docs/latest/rules/no-useless-escape`},hasSuggestions:!0,messages:{unnecessaryEscape:`Unnecessary escape character: \\{{character}}.`,removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:`object`,properties:{allowRegexCharacters:{type:`array`,items:{type:`string`},uniqueItems:!0}},additionalProperties:!1}]},create(e){let t=e.sourceCode,[{allowRegexCharacters:a}]=e.options,d=new r;function f(r,i,a,o){let s=r.range[0]+i,c=[s,s+1],l=t.getLocFromIndex(s);e.report({node:r,loc:{start:l,end:{line:l.line,column:l.column+1}},messageId:`unnecessaryEscape`,data:{character:a},suggest:[{messageId:n.isDirective(r.parent)?`removeEscapeDoNotKeepSemantics`:`removeEscape`,fix(e){return e.removeRange(c)}},...o?[]:[{messageId:`escapeBackslash`,fix(e){return e.insertTextBeforeRange(c,`\\`)}}]]})}function p(e,t){let n=e.type===`TemplateElement`,r=t[0][1],i=!o.has(r),a;n?(a=r==="`",r===`$`?i=t.input[t.index+2]!==`{`:r===`{`&&(i=t.input[t.index-1]!==`$`)):a=r===e.raw[0],i&&!a&&f(e,t.index,t[0].slice(1))}function m(e){let{pattern:t,flags:n}=e.regex,r,o=n.includes(`u`),p=n.includes(`v`);try{r=d.parsePattern(t,0,t.length,{unicode:o,unicodeSets:p})}catch{return}let m=[];i(r,{onCharacterClassEnter:e=>m.unshift(e),onCharacterClassLeave:()=>m.shift(),onExpressionCharacterClassEnter:e=>m.unshift(e),onExpressionCharacterClassLeave:()=>m.shift(),onCharacterEnter(n){if(!n.raw.startsWith(`\\`))return;let r=n.raw.slice(1);if(r!==String.fromCodePoint(n.value)||a.includes(r))return;let i;if(i=m.length?p?l:s:c,i.has(r))return;let o=n.start+1,d=!1;if(m.length){let e=m[0];if(r===`^`&&e.start+1===n.start)return;if(p){if(u.has(r)&&(t[n.end]===r||t[n.start-1]===r&&(r!==`^`||!e.negate||e.start+1<n.start-1)))return;(n.parent.type===`ClassIntersection`||n.parent.type===`ClassSubtraction`)&&(d=!0)}else if(r===`-`&&e.start+1!==n.start&&n.end!==e.end-1)return}f(e,o,r,d)}})}function h(e){let n=e.type===`TemplateElement`;if(!(n&&e.parent&&e.parent.parent&&e.parent.parent.type===`TaggedTemplateExpression`&&e.parent===e.parent.parent.quasi))if(typeof e.value==`string`||n){if(e.parent.type===`JSXAttribute`||e.parent.type===`JSXElement`||e.parent.type===`JSXFragment`)return;let r=n?t.getText(e):e.raw,i=/\\\D/gu,a;for(;a=i.exec(r);)p(e,a)}else e.regex&&m(e)}return{Literal:h,TemplateElement:h}}}})),oi=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:`Disallow renaming import, export, and destructured assignments to the same name`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-rename`},fixable:`code`,schema:[{type:`object`,properties:{ignoreDestructuring:{type:`boolean`},ignoreImport:{type:`boolean`},ignoreExport:{type:`boolean`}},additionalProperties:!1}],messages:{unnecessarilyRenamed:`{{type}} {{name}} unnecessarily renamed.`}},create(e){let t=e.sourceCode,[{ignoreDestructuring:r,ignoreImport:i,ignoreExport:a}]=e.options;function o(r,i,a){let o=i.type===`Identifier`?i.name:i.value;return e.report({node:r,messageId:`unnecessarilyRenamed`,data:{name:o,type:a},fix(e){let i=r.type===`Property`?r.value:r.local;return t.getCommentsInside(r).length>t.getCommentsInside(i).length||i.type===`AssignmentPattern`&&n.isParenthesised(t,i.left)?null:e.replaceText(r,t.getText(i))}})}function s(e){if(!r)for(let t of e.properties)t.type!==`Property`||t.shorthand||t.computed||(t.key.type===`Identifier`&&t.key.name||t.key.type===`Literal`&&t.key.value)===(t.value.type===`AssignmentPattern`?t.value.left.name:t.value.name)&&o(t,t.key,`Destructuring assignment`)}function c(e){i||e.imported.range[0]!==e.local.range[0]&&n.getModuleExportName(e.imported)===e.local.name&&o(e,e.imported,`Import`)}function l(e){a||e.local.range[0]!==e.exported.range[0]&&n.getModuleExportName(e.local)===n.getModuleExportName(e.exported)&&o(e,e.local,`Export`)}return{ObjectPattern:s,ImportSpecifier:c,ExportSpecifier:l}}}})),si=n(((e,t)=>{let n=M(),r=It();function i(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function a(e){return n.STATEMENT_LIST_PARENTS.has(e.parent.type)}function o(e){for(let t=e;t&&t.parent&&!n.isFunction(t);t=t.parent)if(t.parent.type===`TryStatement`&&t.parent.finalizer===t)return!0;return!1}function s(e){for(let t of e)if(t.reachable)return!0;return!1}t.exports={meta:{type:`suggestion`,docs:{description:`Disallow redundant return statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-useless-return`},fixable:`code`,schema:[],messages:{unnecessaryReturn:`Unnecessary return statement.`}},create(e){let t=new WeakMap,c=e.sourceCode,l=null;function u(e){let n=t.get(e);return!n||n.returned}function d(e,n,r){let i=r||new WeakSet;for(let r of n){if(!r.reachable){i.has(r)||(i.add(r),d(e,r.allPrevSegments.filter(u),i));continue}t.has(r)&&e.push(...t.get(r).uselessReturns)}return e}function f(e,n){if(!e.reachable){n.add(e),e.allPrevSegments.filter(u).filter(e=>!n.has(e)).forEach(e=>f(e,n));return}let r=t.get(e);r&&(r.uselessReturns=r.uselessReturns.filter(e=>{if(l.traversedTryBlockStatements&&l.traversedTryBlockStatements.length>0){let t=e.range[0],n=e.range[1];if(l.traversedTryBlockStatements.some(e=>{let r=e.range[0],i=e.range[1];return t>=r&&n<=i}))return!0}return i(l.uselessReturns,e),!1}))}function p(){l.currentSegments.forEach(e=>f(e,new Set))}return{onCodePathStart(e){l={upper:l,uselessReturns:[],traversedTryBlockStatements:[],codePath:e,currentSegments:new Set}},onCodePathEnd(){for(let t of l.uselessReturns)e.report({node:t,loc:t.loc,messageId:`unnecessaryReturn`,fix(e){return a(t)&&!c.getCommentsInside(t).length?new r(e,c).retainEnclosingFunction(t).remove(t):null}});l=l.upper},onCodePathSegmentStart(e){l.currentSegments.add(e);let n={uselessReturns:d([],e.allPrevSegments),returned:!1};t.set(e,n)},onUnreachableCodePathSegmentStart(e){l.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){l.currentSegments.delete(e)},onCodePathSegmentEnd(e){l.currentSegments.delete(e)},ReturnStatement(e){if(e.argument&&p(),!(e.argument||n.isInLoop(e)||o(e)||!s(l.currentSegments))){for(let n of l.currentSegments){let r=t.get(n);r&&(r.uselessReturns.push(e),r.returned=!0)}l.uselessReturns.push(e)}},"TryStatement > BlockStatement.block:exit"(e){l.traversedTryBlockStatements.push(e)},"TryStatement:exit"(){l.traversedTryBlockStatements.pop()},ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,EmptyStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p}}}})),ci=n(((e,t)=>{let n=M();function r(e){return!!e.scope&&e.scope.type===`global`}function i(e){let t=e;for(;t.type!==`function`&&t.type!==`global`;)t=t.upper;return t}function a(e){let t=i(e.scope);return e.references.some(e=>i(e.from)!==t)}function o(e){return(e.parent.type===`ForOfStatement`||e.parent.type===`ForInStatement`)&&e===e.parent.left}function s(e){return e.declarations.every(e=>e.init!==null)}let c=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function l(e){for(let t=e;t;t=t.parent)if(c.test(t.type))return t;return null}function u(e){return e.defs.length>=2}function d(e){function t(t){let n=e.range,r=t.identifier.range;return r[0]<n[0]||r[1]>n[1]}return function(e){return e.references.some(t)}}function f(e){let t=e.range[0],r=e.range[1];return i=>{let a=i.defs[0].name,o=a.range[0],s=a.parent.type===`AssignmentPattern`?a.parent.right:null,c=s&&s.range[0],l=s&&s.range[1];return i.references.some(i=>{let a=i.identifier.range[0],u=i.identifier.range[1];return!i.init&&(a<o||s!==null&&a>=c&&u<=l||!n.isFunction(e)&&a>=t&&u<=r)})}}function p(e){return e.name===`let`}function m(e){let t=e.defs[0].node.range[0];return e.references.some(e=>{let n=e.identifier.range[0];return!e.init&&n<t})}t.exports={meta:{type:`suggestion`,dialects:[`typescript`,`javascript`],language:`javascript`,docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:`https://eslint.org/docs/latest/rules/no-var`},schema:[],fixable:`code`,messages:{unexpectedVar:`Unexpected var, use let or const instead.`}},create(e){let t=e.sourceCode;function i(e){return e.init?t.getDeclaredVariables(e).some(f(e.init)):!1}function c(e){let c=t.getDeclaredVariables(e),f=l(e),h=new Set([...n.STATEMENT_LIST_PARENTS,`TSModuleBlock`]);return!(e.parent.type===`SwitchCase`||e.declarations.some(i)||c.some(r)||c.some(u)||c.some(d(f))||c.some(p)||c.some(m)||n.isInLoop(e)&&(c.some(a)||!o(e)&&!s(e))||!o(e)&&!(e.parent.type===`ForStatement`&&e.parent.init===e)&&!h.has(e.parent.type))}function h(n){e.report({node:n,messageId:`unexpectedVar`,fix(e){let r=t.getFirstToken(n,{filter:e=>e.value===`var`});return c(n)?e.replaceText(r,`let`):null}})}return{"VariableDeclaration:exit"(e){e.kind===`var`&&(e.parent.type===`TSModuleBlock`&&e.parent.parent.type===`TSModuleDeclaration`&&e.parent.parent.global||h(e))}}}}})),li=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-void`},messages:{noVoid:`Expected 'undefined' and instead saw 'void'.`},schema:[{type:`object`,properties:{allowAsStatement:{type:`boolean`}},additionalProperties:!1}]},create(e){let[{allowAsStatement:t}]=e.options;return{'UnaryExpression[operator="void"]'(n){t&&n.parent&&n.parent.type===`ExpressionStatement`||e.report({node:n,messageId:`noVoid`})}}}}})),ui=n(((e,t)=>{let n=O(),r=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{location:`start`,terms:[`todo`,`fixme`,`xxx`]}],docs:{description:`Disallow specified warning terms in comments`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/no-warning-comments`},schema:[{type:`object`,properties:{terms:{type:`array`,items:{type:`string`}},location:{enum:[`start`,`anywhere`]},decoration:{type:`array`,items:{type:`string`,pattern:`^\\S$`},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:`Unexpected '{{matchedTerm}}' comment: '{{comment}}'.`}},create(e){let t=e.sourceCode,[{decoration:i,location:a,terms:o}]=e.options,s=n(i?i.join(``):``),c=/\bno-warning-comments\b/u;function l(e){let t=n(e),r=``;a===`start`?r=`^[\\s${s}]*`:/^\w/u.test(e)&&(r=`\\b`);let i=/\w$/u.test(e)?`\\b`:``;return RegExp(`${r}${t}${i}`,`iu`)}let u=o.map(l);function d(e){let t=[];return u.forEach((n,r)=>{n.test(e)&&t.push(o[r])}),t}function f(t){let n=t.value;r.isDirectiveComment(t)&&c.test(n)||d(n).forEach(r=>{let i=``,a=!1;for(let e of n.trim().split(/\s+/u)){let t=i?`${i} ${e}`:e;if(t.length<=40)i=t;else{a=!0;break}}e.report({node:t,messageId:`unexpectedComment`,data:{matchedTerm:r,comment:`${i}${a?`...`:``}`}})})}return{Program(){t.getAllComments().filter(e=>e.type!==`Shebang`).forEach(f)}}}}})),di=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`no-whitespace-before-property`,url:`https://eslint.style/rules/no-whitespace-before-property`}}]},type:`layout`,docs:{description:`Disallow whitespace before properties`,recommended:!1,url:`https://eslint.org/docs/latest/rules/no-whitespace-before-property`},fixable:`whitespace`,schema:[],messages:{unexpectedWhitespace:`Unexpected whitespace before property {{propName}}.`}},create(e){let t=e.sourceCode;function r(r,i,a){e.report({node:r,messageId:`unexpectedWhitespace`,data:{propName:t.getText(r.property)},fix(e){let o=``;return!r.computed&&!r.optional&&n.isDecimalInteger(r.object)||t.commentsExistBetween(i,a)?null:(r.optional?o=`?.`:r.computed||(o=`.`),e.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(e){let i,a;n.isTokenOnSameLine(e.object,e.property)&&(e.computed?(i=t.getTokenBefore(e.property,n.isOpeningBracketToken),a=t.getTokenBefore(i,e.optional?1:0)):(i=t.getFirstToken(e.property),a=t.getTokenBefore(i,1)),t.isSpaceBetween(a,i)&&r(e,a,i))}}}}})),fi=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `with` statements",recommended:!0,url:`https://eslint.org/docs/latest/rules/no-with`},schema:[],messages:{unexpectedWith:`Unexpected use of 'with' statement.`}},create(e){return{WithStatement(t){e.report({node:t,messageId:`unexpectedWith`})}}}}})),pi=n(((e,t)=>{let n={enum:[`beside`,`below`,`any`]};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`nonblock-statement-body-position`,url:`https://eslint.style/rules/nonblock-statement-body-position`}}]},type:`layout`,docs:{description:`Enforce the location of single-line statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/nonblock-statement-body-position`},fixable:`whitespace`,schema:[n,{properties:{overrides:{properties:{if:n,else:n,while:n,do:n,for:n},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(t){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[t]||e.options[0]||`beside`}function r(r,i){let a=n(i);if(r.type===`BlockStatement`||a===`any`)return;let o=t.getTokenBefore(r);o.loc.end.line===r.loc.start.line&&a===`below`?e.report({node:r,messageId:`expectLinebreak`,fix:e=>e.insertTextBefore(r,`
59
+ `)}):o.loc.end.line!==r.loc.start.line&&a===`beside`&&e.report({node:r,messageId:`expectNoLinebreak`,fix(e){return t.getText().slice(o.range[1],r.range[0]).trim()?null:e.replaceTextRange([o.range[1],r.range[0]],` `)}})}return{IfStatement(e){r(e.consequent,`if`),e.alternate&&e.alternate.type!==`IfStatement`&&r(e.alternate,`else`)},WhileStatement:e=>r(e.body,`while`),DoWhileStatement:e=>r(e.body,`do`),ForStatement:e=>r(e.body,`for`),ForInStatement:e=>r(e.body,`for`),ForOfStatement:e=>r(e.body,`for`)}}}})),mi=n(((e,t)=>{let n=M(),r={oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{multiline:{type:`boolean`},minProperties:{type:`integer`,minimum:0},consistent:{type:`boolean`}},additionalProperties:!1,minProperties:1}]};function i(e){let t=!1,n=1/0,r=!1;return e?e===`always`?n=0:e===`never`?n=1/0:(t=!!e.multiline,n=e.minProperties||1/0,r=!!e.consistent):r=!0,{multiline:t,minProperties:n,consistent:r}}function a(e){return typeof e==`object`&&!!e}function o(e){return a(e)||typeof e==`string`}function s(e){if(a(e)&&Object.values(e).some(o))return{ObjectExpression:i(e.ObjectExpression),ObjectPattern:i(e.ObjectPattern),ImportDeclaration:i(e.ImportDeclaration),ExportNamedDeclaration:i(e.ExportDeclaration)};let t=i(e);return{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportNamedDeclaration:t}}function c(e,t,n,r){let i;return i=e.type===`ObjectExpression`||e.type===`ObjectPattern`?e.properties:e.specifiers.filter(e=>e.type===`ImportSpecifier`||e.type===`ExportSpecifier`),i.length>=t.minProperties||t.multiline&&i.length>0&&n.loc.start.line!==r.loc.end.line}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-curly-newline`,url:`https://eslint.style/rules/object-curly-newline`}}]},type:`layout`,docs:{description:`Enforce consistent line breaks after opening and before closing braces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-curly-newline`},fixable:`whitespace`,schema:[{oneOf:[r,{type:`object`,properties:{ObjectExpression:r,ObjectPattern:r,ImportDeclaration:r,ExportDeclaration:r},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.`}},create(e){let t=e.sourceCode,r=s(e.options[0]);function i(i){let a=r[i.type];if(i.type===`ImportDeclaration`&&!i.specifiers.some(e=>e.type===`ImportSpecifier`)||i.type===`ExportNamedDeclaration`&&!i.specifiers.some(e=>e.type===`ExportSpecifier`))return;let o=t.getFirstToken(i,e=>e.value===`{`),s;s=i.typeAnnotation?t.getTokenBefore(i.typeAnnotation):t.getLastToken(i,e=>e.value===`}`);let l=t.getTokenAfter(o,{includeComments:!0}),u=t.getTokenBefore(s,{includeComments:!0}),d=c(i,a,l,u),f=n.isCommentToken(l),p=n.isCommentToken(u);if(l=t.getTokenAfter(o),u=t.getTokenBefore(s),d)n.isTokenOnSameLine(o,l)&&e.report({messageId:`expectedLinebreakAfterOpeningBrace`,node:i,loc:o.loc,fix(e){return f?null:e.insertTextAfter(o,`
60
+ `)}}),n.isTokenOnSameLine(u,s)&&e.report({messageId:`expectedLinebreakBeforeClosingBrace`,node:i,loc:s.loc,fix(e){return p?null:e.insertTextBefore(s,`
61
+ `)}});else{let t=a.consistent,r=!n.isTokenOnSameLine(o,l),c=!n.isTokenOnSameLine(u,s);(!t&&r||t&&r&&!c)&&e.report({messageId:`unexpectedLinebreakAfterOpeningBrace`,node:i,loc:o.loc,fix(e){return f?null:e.removeRange([o.range[1],l.range[0]])}}),(!t&&c||t&&!r&&c)&&e.report({messageId:`unexpectedLinebreakBeforeClosingBrace`,node:i,loc:s.loc,fix(e){return p?null:e.removeRange([u.range[1],s.range[0]])}})}}return{ObjectExpression:i,ObjectPattern:i,ImportDeclaration:i,ExportNamedDeclaration:i}}}})),hi=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-curly-spacing`,url:`https://eslint.style/rules/object-curly-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside braces`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-curly-spacing`},fixable:`whitespace`,schema:[{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}}'.`}},create(e){let t=e.options[0]===`always`,r=e.sourceCode;function i(n){return e.options[1]?e.options[1][n]===!t:!1}let a={spaced:t,arraysInObjectsException:i(`arraysInObjects`),objectsInObjectsException:i(`objectsInObjects`)};function o(t,n){let r=e.sourceCode.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){return e.removeRange([n.range[1],r.range[0]])}})}function s(t,n){let r=e.sourceCode.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){return e.removeRange([r.range[1],n.range[0]])}})}function c(t,n){e.report({node:t,loc:n.loc,messageId:`requireSpaceAfter`,data:{token:n.value},fix(e){return e.insertTextAfter(n,` `)}})}function l(t,n){e.report({node:t,loc:n.loc,messageId:`requireSpaceBefore`,data:{token:n.value},fix(e){return e.insertTextBefore(n,` `)}})}function u(e,t,i,u,d){if(n.isTokenOnSameLine(t,i)){let n=r.isSpaceBetween(t,i);a.spaced&&!n&&c(e,t),!a.spaced&&n&&i.type!==`Line`&&o(e,t)}if(n.isTokenOnSameLine(u,d)){let t=(a.arraysInObjectsException&&n.isClosingBracketToken(u)||a.objectsInObjectsException&&n.isClosingBraceToken(u))&&r.getNodeByRangeIndex(u.range[0]).type,i=a.arraysInObjectsException&&t===`ArrayExpression`||a.objectsInObjectsException&&(t===`ObjectExpression`||t===`ObjectPattern`)?!a.spaced:a.spaced,o=r.isSpaceBetween(u,d);i&&!o&&l(e,d),!i&&o&&s(e,d)}}function d(e){let t=e.properties.at(-1);return r.getTokenAfter(t,n.isClosingBraceToken)}function f(e){if(e.properties.length===0)return;let t=r.getFirstToken(e),n=d(e);u(e,t,r.getTokenAfter(t,{includeComments:!0}),r.getTokenBefore(n,{includeComments:!0}),n)}function p(e){if(e.specifiers.length===0)return;let t=e.specifiers[0],i=e.specifiers.at(-1);if(i.type!==`ImportSpecifier`)return;t.type!==`ImportSpecifier`&&(t=e.specifiers[1]);let a=r.getTokenBefore(t),o=r.getTokenAfter(i,n.isNotCommaToken);u(e,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(o,{includeComments:!0}),o)}function m(e){if(e.specifiers.length===0)return;let t=e.specifiers[0],i=e.specifiers.at(-1),a=r.getTokenBefore(t),o=r.getTokenAfter(i,n.isNotCommaToken);u(e,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(o,{includeComments:!0}),o)}return{ObjectPattern:f,ObjectExpression:f,ImportDeclaration:p,ExportNamedDeclaration:m}}}})),gi=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`object-property-newline`,url:`https://eslint.style/rules/object-property-newline`}}]},type:`layout`,docs:{description:`Enforce placing object properties on separate lines`,recommended:!1,url:`https://eslint.org/docs/latest/rules/object-property-newline`},schema:[{type:`object`,properties:{allowAllPropertiesOnSameLine:{type:`boolean`,default:!1},allowMultiplePropertiesPerLine:{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.`}},create(e){let t=e.options[0]&&(e.options[0].allowAllPropertiesOnSameLine||e.options[0].allowMultiplePropertiesPerLine),n=t?`propertiesOnNewlineAll`:`propertiesOnNewline`,r=e.sourceCode;return{ObjectExpression(i){if(t&&i.properties.length>1){let e=r.getFirstToken(i.properties[0]),t=r.getLastToken(i.properties.at(-1));if(e.loc.end.line===t.loc.start.line)return}for(let t=1;t<i.properties.length;t++){let a=r.getLastToken(i.properties[t-1]),o=r.getFirstToken(i.properties[t]);a.loc.end.line===o.loc.start.line&&e.report({node:i,loc:o.loc,messageId:n,fix(e){let t=[r.getTokenBefore(o).range[1],o.range[0]];return r.text.slice(t[0],t[1]).trim()?null:e.replaceTextRange(t,`
62
+ `)}})}}}}}})),_i=n(((e,t)=>{let n={always:`always`,never:`never`,methods:`methods`,properties:`properties`,consistent:`consistent`,consistentAsNeeded:`consistent-as-needed`},r=M(),i=/[^_$0-9]/u,a=/^\s*\*/u;function o(e){let t=i.exec(e);if(!t)return!1;let n=e.charAt(t.index);return n===n.toUpperCase()}function s(e){return e.kind!==`set`&&e.kind!==`get`&&e.type!==`SpreadElement`&&e.type!==`SpreadProperty`&&e.type!==`ExperimentalSpreadProperty`}function c(e){return e.type===`Literal`&&typeof e.value==`string`}function l(e){return e.shorthand||e.method}function u(e){let t=e.value;return t.type===`FunctionExpression`?!t.id:t.type===`Identifier`?r.getStaticPropertyName(e)===t.name:!1}t.exports={meta:{type:`suggestion`,docs:{description:`Require or disallow method and property shorthand syntax for object literals`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/object-shorthand`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`methods`,`properties`,`never`,`consistent`,`consistent-as-needed`]}],minItems:0,maxItems:1},{type:`array`,items:[{enum:[`always`,`methods`,`properties`]},{type:`object`,properties:{avoidQuotes:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2},{type:`array`,items:[{enum:[`always`,`methods`]},{type:`object`,properties:{ignoreConstructors:{type:`boolean`},methodsIgnorePattern:{type:`string`},avoidQuotes:{type:`boolean`},avoidExplicitReturnArrows:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{expectedAllPropertiesShorthanded:`Expected shorthand for all properties.`,expectedLiteralMethodLongform:`Expected longform method syntax for string literal keys.`,expectedPropertyShorthand:`Expected property shorthand.`,expectedPropertyLongform:`Expected longform property syntax.`,expectedMethodShorthand:`Expected method shorthand.`,expectedMethodLongform:`Expected longform method syntax.`,unexpectedMix:`Unexpected mix of shorthand and non-shorthand properties.`}},create(e){let t=e.options[0]||n.always,i=t===n.methods||t===n.always,d=t===n.properties||t===n.always,f=t===n.never,p=t===n.consistent,m=t===n.consistentAsNeeded,h=e.options[1]||{},g=h.ignoreConstructors,_=h.methodsIgnorePattern?new RegExp(h.methodsIgnorePattern,`u`):null,v=h.avoidQuotes,y=!!h.avoidExplicitReturnArrows,b=e.sourceCode;function x(t,n){let r=t.properties.filter(s);if(r.length>0){let i=r.filter(l);i.length!==r.length&&(i.length>0?e.report({node:t,messageId:`unexpectedMix`}):n&&r.every(u)&&e.report({node:t,messageId:`expectedAllPropertiesShorthanded`}))}}function S(e,t){let n=t.computed?b.getFirstToken(t,r.isOpeningBracketToken):b.getFirstToken(t.key),i=t.computed?b.getFirstTokenBetween(t.key,t.value,r.isClosingBracketToken):b.getLastToken(t.key),a=b.text.slice(n.range[0],i.range[1]),o=``;if(b.commentsExistBetween(i,t.value))return null;t.value.async&&(o+=`async `),t.value.generator&&(o+=`*`);let s=[n.range[0],t.range[1]],c=o+a;if(t.value.type===`FunctionExpression`){let n=b.getTokens(t.value).find(e=>e.type===`Keyword`&&e.value===`function`),r=t.value.generator?b.getTokenAfter(n):n;return e.replaceTextRange(s,c+b.text.slice(r.range[1],t.value.range[1]))}let l=b.getTokenBefore(t.value.body,r.isArrowToken),u=b.text.slice(l.range[1],t.value.range[1]),d=b.getFirstToken(t.value,{skip:t.value.async?1:0}).range[0],f=b.getTokenBefore(l).range[1],p=t.value.params.length===1&&t.value.params[0].range[0]===d,m=b.text.slice(d,f),h=p?`(${m})`:m;return e.replaceTextRange(s,c+h+u)}function C(e,t){let n=t.computed?b.getTokens(t).find(e=>e.value===`[`):b.getFirstToken(t.key),r=t.computed?b.getTokensBetween(t.key,t.value).find(e=>e.value===`]`):b.getLastToken(t.key),i=b.text.slice(n.range[0],r.range[1]),a=`function`;return t.value.async&&(a=`async ${a}`),t.value.generator&&(a=`${a}*`),e.replaceTextRange([t.range[0],r.range[1]],`${i}: ${a}`)}let w=[],T=new WeakSet,E=new WeakSet;function D(e){w.unshift(new Set),b.getScope(e).variables.filter(e=>e.name===`arguments`).forEach(e=>{e.references.map(e=>e.identifier).forEach(e=>E.add(e))})}function O(){w.shift()}function k(){w[0].forEach(e=>T.add(e))}return{Program:D,FunctionDeclaration:D,FunctionExpression:D,"Program:exit":O,"FunctionDeclaration:exit":O,"FunctionExpression:exit":O,ArrowFunctionExpression(e){w[0].add(e)},"ArrowFunctionExpression:exit"(e){w[0].delete(e)},ThisExpression:k,Super:k,MetaProperty(e){e.meta.name===`new`&&e.property.name===`target`&&k()},Identifier(e){E.has(e)&&k()},ObjectExpression(e){p?x(e,!1):m&&x(e,!0)},"Property:exit"(t){let n=t.method||t.shorthand;if(t.parent.type!==`ObjectPattern`&&!(t.kind===`get`||t.kind===`set`)&&!(t.computed&&t.value.type!==`FunctionExpression`&&t.value.type!==`ArrowFunctionExpression`)){if(n)if(t.method&&(f||v&&c(t.key))){let n=f?`expectedMethodLongform`:`expectedLiteralMethodLongform`;e.report({node:t,messageId:n,fix:e=>C(e,t)})}else f&&e.report({node:t,messageId:`expectedPropertyLongform`,fix:e=>e.insertTextAfter(t.key,`: ${t.key.name}`)});else if(i&&!t.value.id&&(t.value.type===`FunctionExpression`||t.value.type===`ArrowFunctionExpression`)){if(g&&t.key.type===`Identifier`&&o(t.key.name))return;if(_){let e=r.getStaticPropertyName(t);if(e!==null&&_.test(e))return}if(v&&c(t.key))return;(t.value.type===`FunctionExpression`||t.value.type===`ArrowFunctionExpression`&&t.value.body.type===`BlockStatement`&&y&&!T.has(t.value))&&e.report({node:t,messageId:`expectedMethodShorthand`,fix:e=>S(e,t)})}else if(t.value.type===`Identifier`&&t.key.name===t.value.name&&d){if(b.getCommentsInside(t).some(e=>e.type===`Block`&&a.test(e.value)&&e.value.includes(`@type`)))return;e.report({node:t,messageId:`expectedPropertyShorthand`,fix(e){return b.getCommentsInside(t).length>0?null:e.replaceText(t,t.value.name)}})}else if(t.value.type===`Identifier`&&t.key.type===`Literal`&&t.key.value===t.value.name&&d){if(v||b.getCommentsInside(t).some(e=>e.type===`Block`&&e.value.startsWith(`*`)&&e.value.includes(`@type`)))return;e.report({node:t,messageId:`expectedPropertyShorthand`,fix(e){return b.getCommentsInside(t).length>0?null:e.replaceText(t,t.value.name)}})}}}}}}})),vi=n(((e,t)=>{let n=M();function r(e){return n.STATEMENT_LIST_PARENTS.has(e.parent.type)}t.exports={meta:{type:`suggestion`,docs:{description:`Enforce variables to be declared either together or separately in functions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/one-var`},fixable:`code`,schema:[{oneOf:[{enum:[`always`,`never`,`consecutive`]},{type:`object`,properties:{separateRequires:{type:`boolean`},var:{enum:[`always`,`never`,`consecutive`]},let:{enum:[`always`,`never`,`consecutive`]},const:{enum:[`always`,`never`,`consecutive`]},using:{enum:[`always`,`never`,`consecutive`]},awaitUsing:{enum:[`always`,`never`,`consecutive`]}},additionalProperties:!1},{type:`object`,properties:{initialized:{enum:[`always`,`never`,`consecutive`]},uninitialized:{enum:[`always`,`never`,`consecutive`]}},additionalProperties:!1}]}],messages:{combineUninitialized:`Combine this with the previous '{{type}}' statement with uninitialized variables.`,combineInitialized:`Combine this with the previous '{{type}}' statement with initialized variables.`,splitUninitialized:`Split uninitialized '{{type}}' declarations into multiple statements.`,splitInitialized:`Split initialized '{{type}}' declarations into multiple statements.`,splitRequires:`Split requires to be separated into a single block.`,combine:`Combine this with the previous '{{type}}' statement.`,split:`Split '{{type}}' declarations into multiple statements.`}},create(e){let t=`always`,n=`never`,i=`consecutive`,a=e.options[0]||t,o={};typeof a==`string`?(o.var={uninitialized:a,initialized:a},o.let={uninitialized:a,initialized:a},o.const={uninitialized:a,initialized:a},o.using={uninitialized:a,initialized:a},o.awaitUsing={uninitialized:a,initialized:a}):typeof a==`object`&&(o.separateRequires=!!a.separateRequires,o.var={uninitialized:a.var,initialized:a.var},o.let={uninitialized:a.let,initialized:a.let},o.const={uninitialized:a.const,initialized:a.const},o.using={uninitialized:a.using,initialized:a.using},o.awaitUsing={uninitialized:a.awaitUsing,initialized:a.awaitUsing},Object.hasOwn(a,`uninitialized`)&&(o.var.uninitialized=a.uninitialized,o.let.uninitialized=a.uninitialized,o.const.uninitialized=a.uninitialized,o.using.uninitialized=a.uninitialized,o.awaitUsing.uninitialized=a.uninitialized),Object.hasOwn(a,`initialized`)&&(o.var.initialized=a.initialized,o.let.initialized=a.initialized,o.const.initialized=a.initialized,o.using.initialized=a.initialized,o.awaitUsing.initialized=a.initialized));let s=e.sourceCode,c=[],l=[];function u(){l.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1},using:{initialized:!1,uninitialized:!1},awaitUsing:{initialized:!1,uninitialized:!1}})}function d(){c.push({initialized:!1,uninitialized:!1}),u()}function f(){l.pop()}function p(){c.pop(),f()}function m(e){return e.init&&e.init.type===`CallExpression`&&e.init.callee.name===`require`}function h(e,n,r){for(let i=0;i<n.length;i++)n[i].init===null?o[e]&&o[e].uninitialized===t&&(r.uninitialized=!0):o[e]&&o[e].initialized===t&&(o.separateRequires&&m(n[i])?r.required=!0:r.initialized=!0)}function g(e){let t;return e===`var`?t=c.at(-1):e===`let`?t=l.at(-1).let:e===`const`?t=l.at(-1).const:e===`using`?t=l.at(-1).using:e===`awaitUsing`&&(t=l.at(-1).awaitUsing),t}function _(e){let t={uninitialized:0,initialized:0};for(let n=0;n<e.length;n++)e[n].init===null?t.uninitialized++:t.initialized++;return t}function v(e,n){let r=_(n),i=o[e]||{},a=g(e),s=n.some(m);return i.uninitialized===t&&i.initialized===t&&(a.uninitialized||a.initialized)&&!s||r.uninitialized>0&&i.uninitialized===t&&a.uninitialized||r.initialized>0&&i.initialized===t&&a.initialized&&!s||a.required&&s?!1:(h(e,n,a),!0)}function y(e){let t=e[0],n=Array.isArray(t.parent.parent.body)?t.parent.parent.body:[],r=n[n.findIndex(e=>e.range[0]===t.parent.range[0])-1];return function*(e){let n=s.getFirstToken(t.parent),i=s.getTokenBefore(n);if(r&&r.kind===t.parent.kind){if(i.value===`;`?yield e.replaceText(i,`,`):yield e.insertTextAfter(i,`,`),t.parent.kind===`await using`){let t=s.getTokenAfter(n);yield e.remove(t)}yield e.replaceText(n,``)}}}function b(e){let{parent:t}=e;return r(t.type===`ExportNamedDeclaration`?t:e)?t=>e.declarations.map(n=>{let r=s.getTokenAfter(n);if(r===null)return null;let i=s.getTokenAfter(r,{includeComments:!0});if(r.value!==`,`)return null;let a=e.parent.type===`ExportNamedDeclaration`?`export `:``;if(i.range[0]===r.range[1])return t.replaceText(r,`; ${a}${e.kind} `);if(i.loc.start.line>r.loc.end.line||i.type===`Line`||i.type===`Block`){let n=i;for(;n.type===`Line`||n.type===`Block`;)n=s.getTokenAfter(n,{includeComments:!0});return t.replaceTextRange([r.range[0],n.range[0]],`;${s.text.slice(r.range[1],n.range[0])}${a}${e.kind} `)}return t.replaceText(r,`; ${a}${e.kind}`)}).filter(e=>e):null}function x(r){let a=r.parent,s=r.kind,c=s===`await using`?`awaitUsing`:s;if(!o[c])return;let l=r.declarations,u=_(l),d=l.some(m)&&!l.every(m);o[c].initialized===t&&o.separateRequires&&d&&e.report({node:r,messageId:`splitRequires`});let f=a.body&&a.body.length>0&&a.body.indexOf(r)||0;if(f>0){let t=a.body[f-1],n=t.type===`VariableDeclaration`,d=l.concat(t.declarations||[]);if(n&&t.kind===s&&!(d.some(m)&&!d.every(m))){let n=_(t.declarations);o[c].initialized===i&&o[c].uninitialized===i?e.report({node:r,messageId:`combine`,data:{type:s},fix:y(l)}):o[c].initialized===i&&u.initialized>0&&n.initialized>0?e.report({node:r,messageId:`combineInitialized`,data:{type:s},fix:y(l)}):o[c].uninitialized===i&&u.uninitialized>0&&n.uninitialized>0&&e.report({node:r,messageId:`combineUninitialized`,data:{type:s},fix:y(l)})}}if(!v(c,l)){if(o[c].initialized===t&&o[c].uninitialized===t)e.report({node:r,messageId:`combine`,data:{type:s},fix:y(l)});else if(o[c].initialized===t&&u.initialized>0&&e.report({node:r,messageId:`combineInitialized`,data:{type:s},fix:y(l)}),o[c].uninitialized===t&&u.uninitialized>0){if(r.parent.left===r&&(r.parent.type===`ForInStatement`||r.parent.type===`ForOfStatement`))return;e.report({node:r,messageId:`combineUninitialized`,data:{type:s},fix:y(l)})}}(a.type!==`ForStatement`||a.init!==r)&&u.uninitialized+u.initialized>1&&(o[c].initialized===n&&o[c].uninitialized===n?e.report({node:r,messageId:`split`,data:{type:s},fix:b(r)}):o[c].initialized===n&&u.initialized>0?e.report({node:r,messageId:`splitInitialized`,data:{type:s},fix:b(r)}):o[c].uninitialized===n&&u.uninitialized>0&&e.report({node:r,messageId:`splitUninitialized`,data:{type:s},fix:b(r)}))}return{Program:d,FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d,StaticBlock:d,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:x,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":p,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,"StaticBlock:exit":p}}}})),yi=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`one-var-declaration-per-line`,url:`https://eslint.style/rules/one-var-declaration-per-line`}}]},type:`suggestion`,docs:{description:`Require or disallow newlines around variable declarations`,recommended:!1,url:`https://eslint.org/docs/latest/rules/one-var-declaration-per-line`},schema:[{enum:[`always`,`initializations`]}],fixable:`whitespace`,messages:{expectVarOnNewline:`Expected variable declaration to be on a new line.`}},create(e){let t=e.options[0]===`always`;function n(e){return e===`ForStatement`||e===`ForInStatement`||e===`ForOfStatement`}function r(r){if(n(r.parent.type))return;let i=r.declarations,a;i.forEach(n=>{a&&a.loc.end.line===n.loc.start.line&&(t||a.init||n.init)&&e.report({node:r,messageId:`expectVarOnNewline`,loc:n.loc,fix:e=>e.insertTextBefore(n,`
63
+ `)}),a=n})}return{VariableDeclaration:r}}}})),bi=n(((e,t)=>{let n=M();function r(e){return[`*`,`&`,`^`,`|`].includes(e)}function i(e){return[`+`,`-`,`/`,`%`,`<<`,`>>`,`>>>`,`**`].includes(e)}function a(e){return e.type===`Identifier`||e.type===`MemberExpression`&&(e.object.type===`Identifier`||e.object.type===`ThisExpression`)&&(!e.computed||e.property.type===`Literal`)}t.exports={meta:{type:`suggestion`,defaultOptions:[`always`],docs:{description:`Require or disallow assignment operator shorthand where possible`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/operator-assignment`},schema:[{enum:[`always`,`never`]}],fixable:`code`,messages:{replaced:`Assignment (=) can be replaced with operator assignment ({{operator}}).`,unexpected:`Unexpected operator assignment ({{operator}}) shorthand.`}},create(e){let t=e.options[0]===`never`,o=e.sourceCode;function s(e){return o.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator)}function c(t){if(t.operator!==`=`||t.right.type!==`BinaryExpression`)return;let c=t.left,l=t.right,u=l.operator;if(r(u)||i(u)){let i=`${u}=`;n.isSameReference(c,l.left,!0)?e.report({node:t,messageId:`replaced`,data:{operator:i},fix(e){if(a(c)&&a(l.left)){let n=s(t),r=s(l),a=o.getText().slice(t.range[0],n.range[0]),c=o.getText().slice(r.range[1],t.right.range[1]);return o.commentsExistBetween(n,r)?null:e.replaceText(t,`${a}${i}${c}`)}return null}}):n.isSameReference(c,l.right,!0)&&r(u)&&e.report({node:t,messageId:`replaced`,data:{operator:i}})}}function l(t){t.operator!==`=`&&!n.isLogicalAssignmentOperator(t.operator)&&e.report({node:t,messageId:`unexpected`,data:{operator:t.operator},fix(e){if(a(t.left)){let r=o.getFirstToken(t),i=s(t),a=o.getText().slice(t.range[0],i.range[0]),c=t.operator.slice(0,-1),l;if(o.commentsExistBetween(r,i))return null;if(n.getPrecedence(t.right)<=n.getPrecedence({type:`BinaryExpression`,operator:c})&&!n.isParenthesised(o,t.right))l=`${o.text.slice(i.range[1],t.right.range[0])}(${o.getText(t.right)})`;else{let e=o.getTokenAfter(i,{includeComments:!0}),r=``;i.range[1]===e.range[0]&&!n.canTokensBeAdjacent({type:`Punctuator`,value:c},e)&&(r=` `),l=`${r}${o.text.slice(i.range[1],t.range[1])}`}return e.replaceText(t,`${a}= ${a}${c}${l}`)}return null}})}return{AssignmentExpression:t?l:c}}}})),xi=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`operator-linebreak`,url:`https://eslint.style/rules/operator-linebreak`}}]},type:`layout`,docs:{description:`Enforce consistent linebreak style for operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/operator-linebreak`},schema:[{enum:[`after`,`before`,`none`,null]},{type:`object`,properties:{overrides:{type:`object`,additionalProperties:{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],r=e.options[0]||`after`,i=e.options[1]||{},a=i.overrides?Object.assign({},i.overrides):{};t&&!a[`?`]&&(a[`?`]=`before`),t&&!a[`:`]&&(a[`:`]=`before`);let o=e.sourceCode;function s(e,t){return r=>{let i=o.getTokenBefore(e),a=o.getTokenAfter(e),s=o.text.slice(i.range[1],e.range[0]),c=o.text.slice(e.range[1],a.range[0]),l=!n.isTokenOnSameLine(i,e),u=!n.isTokenOnSameLine(e,a),d,f;if(l!==u&&t!==`none`){if(o.getTokenBefore(e,{includeComments:!0})!==i&&o.getTokenAfter(e,{includeComments:!0})!==a)return null;d=c,f=s}else{let e=n.createGlobalLinebreakMatcher();if(d=t===`before`||s.trim()?s:s.replace(e,``),f=t===`after`||c.trim()?c:c.replace(e,``),d===s&&f===c)return null}return f===``&&a.type===`Punctuator`&&`+-`.includes(e.value)&&a.value===e.value&&(f+=` `),r.replaceTextRange([i.range[1],a.range[0]],d+e.value+f)}}function c(t,i,c){let l=o.getTokenBefore(i,e=>e.value===c),u=o.getTokenBefore(l),d=o.getTokenAfter(l),f=a[c],p=f||r,m=s(l,p);n.isTokenOnSameLine(u,l)&&n.isTokenOnSameLine(l,d)||(f!==`ignore`&&!n.isTokenOnSameLine(u,l)&&!n.isTokenOnSameLine(l,d)?e.report({node:t,loc:l.loc,messageId:`badLinebreak`,data:{operator:c},fix:m}):p===`before`&&n.isTokenOnSameLine(u,l)?e.report({node:t,loc:l.loc,messageId:`operatorAtBeginning`,data:{operator:c},fix:m}):p===`after`&&n.isTokenOnSameLine(l,d)?e.report({node:t,loc:l.loc,messageId:`operatorAtEnd`,data:{operator:c},fix:m}):p===`none`&&e.report({node:t,loc:l.loc,messageId:`noLinebreak`,data:{operator:c},fix:m}))}function l(e){c(e,e.right,e.operator)}return{BinaryExpression:l,LogicalExpression:l,AssignmentExpression:l,VariableDeclarator(e){e.init&&c(e,e.init,`=`)},PropertyDefinition(e){e.value&&c(e,e.value,`=`)},ConditionalExpression(e){c(e,e.consequent,`?`),c(e,e.alternate,`:`)}}}}})),Si=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padded-blocks`,url:`https://eslint.style/rules/padded-blocks`}}]},type:`layout`,docs:{description:`Require or disallow padding within blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/padded-blocks`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{blocks:{enum:[`always`,`never`]},switches:{enum:[`always`,`never`]},classes:{enum:[`always`,`never`]}},additionalProperties:!1,minProperties:1}]},{type:`object`,properties:{allowSingleLineBlocks:{type:`boolean`}},additionalProperties:!1}],messages:{alwaysPadBlock:`Block must be padded by blank lines.`,neverPadBlock:`Block must not be padded by blank lines.`}},create(e){let t={},r=e.options[0]||`always`,i=e.options[1]||{};if(typeof r==`string`){let e=r===`always`;t.blocks=e,t.switches=e,t.classes=e}else Object.hasOwn(r,`blocks`)&&(t.blocks=r.blocks===`always`),Object.hasOwn(r,`switches`)&&(t.switches=r.switches===`always`),Object.hasOwn(r,`classes`)&&(t.classes=r.classes===`always`);Object.hasOwn(i,`allowSingleLineBlocks`)&&(t.allowSingleLineBlocks=i.allowSingleLineBlocks===!0);let a=e.sourceCode;function o(e){return e.type===`SwitchStatement`?a.getTokenBefore(e.cases[0]):e.type===`StaticBlock`?a.getFirstToken(e,{skip:1}):a.getFirstToken(e)}function s(e){return e.type===`Line`||e.type===`Block`}function c(e,t){return t.loc.start.line-e.loc.end.line>=2}function l(e){let t,n=e;do t=n,n=a.getTokenAfter(n,{includeComments:!0});while(s(n)&&n.loc.start.line===t.loc.end.line);return n}function u(e){let t=e,n;do n=t,t=a.getTokenBefore(t,{includeComments:!0});while(s(t)&&t.loc.end.line===n.loc.start.line);return t}function d(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`)}}function f(r){let i=l(o(r)),s=a.getTokenBefore(i,{includeComments:!0}),f=u(a.getLastToken(r)),p=a.getTokenAfter(f,{includeComments:!0}),m=c(s,i),h=c(f,p);t.allowSingleLineBlocks&&n.isTokenOnSameLine(s,p)||(d(r)?(m||e.report({node:r,loc:{start:s.loc.start,end:i.loc.start},fix(e){return e.insertTextAfter(s,`
64
+ `)},messageId:`alwaysPadBlock`}),h||e.report({node:r,loc:{end:p.loc.start,start:f.loc.end},fix(e){return e.insertTextBefore(p,`
65
+ `)},messageId:`alwaysPadBlock`})):(m&&e.report({node:r,loc:{start:s.loc.start,end:i.loc.start},fix(e){return e.replaceTextRange([s.range[1],i.range[0]-i.loc.start.column],`
66
+ `)},messageId:`neverPadBlock`}),h&&e.report({node:r,loc:{end:p.loc.start,start:f.loc.end},messageId:`neverPadBlock`,fix(e){return e.replaceTextRange([f.range[1],p.range[0]-p.loc.start.column],`
67
+ `)}})))}let p={};return Object.hasOwn(t,`switches`)&&(p.SwitchStatement=function(e){e.cases.length!==0&&f(e)}),Object.hasOwn(t,`blocks`)&&(p.BlockStatement=function(e){e.body.length!==0&&f(e)},p.StaticBlock=p.BlockStatement),Object.hasOwn(t,`classes`)&&(p.ClassBody=function(e){e.body.length!==0&&f(e)}),p}}})),Ci=n(((e,t)=>{let n=M(),r=`[${Array.from(n.LINEBREAKS).join(``)}]`,i=new RegExp(String.raw`^(\s*?${r})\s*${r}(\s*;?)$`,`u`),a=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,o=/^require\(/u;function s(e){return{test:(t,n)=>n.getFirstToken(t).value===e}}function c(e){return{test:(t,n)=>t.loc.start.line===t.loc.end.line&&n.getFirstToken(t).value===e}}function l(e){return{test:(t,n)=>t.loc.start.line!==t.loc.end.line&&n.getFirstToken(t).value===e}}function u(e){return{test:t=>t.type===e}}function d(e){if(e.type===`ExpressionStatement`){let t=n.skipChainExpression(e.expression);return t.type===`UnaryExpression`&&(t=n.skipChainExpression(t.argument)),t.type===`CallExpression`&&n.isFunction(t.callee)}return!1}function f(e,t){if(t.type===`DoWhileStatement`&&t.body.type===`BlockStatement`||d(t))return!0;let r=e.getLastToken(t,n.isNotSemicolonToken),i=r&&n.isClosingBraceToken(r)?e.getNodeByRangeIndex(r.range[0]):null;return!!i&&(i.type===`BlockStatement`||i.type===`SwitchStatement`)}function p(e,t){let r=e.getLastToken(t),i=e.getTokenBefore(r),a=e.getTokenAfter(r);return i&&a&&i.range[0]>=t.range[0]&&n.isSemicolonToken(r)&&r.loc.start.line!==i.loc.end.line&&r.loc.end.line===a.loc.start.line?i:r}function m(e,t,n){return t+n}function h(){}function g(e,t,n,r){r.length!==0&&e.report({node:n,messageId:`unexpectedBlankLine`,fix(t){if(r.length>=2)return null;let n=r[0][0],a=r[0][1],o=n.range[1],s=a.range[0],c=e.sourceCode.text.slice(o,s).replace(i,m);return t.replaceTextRange([o,s],c)}})}function _(e,t,r,i){i.length>0||e.report({node:r,messageId:`expectedBlankLine`,fix(i){let a=e.sourceCode,o=p(a,t),s=a.getFirstTokenBetween(o,r,{includeComments:!0,filter(e){return n.isTokenOnSameLine(o,e)?(o=e,!1):!0}})||r,c=n.isTokenOnSameLine(o,s)?`
68
+
69
+ `:`
70
+ `;return i.insertTextAfter(o,c)}})}let v={any:{verify:h},never:{verify:g},always:{verify:_}},y={"*":{test:()=>!0},"block-like":{test:(e,t)=>f(t,e)},"cjs-export":{test:(e,t)=>e.type===`ExpressionStatement`&&e.expression.type===`AssignmentExpression`&&a.test(t.getText(e.expression.left))},"cjs-import":{test:(e,t)=>e.type===`VariableDeclaration`&&e.declarations.length>0&&!!e.declarations[0].init&&o.test(t.getText(e.declarations[0].init))},directive:{test:n.isDirective},expression:{test:e=>e.type===`ExpressionStatement`&&!n.isDirective(e)},iife:{test:d},"multiline-block-like":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&f(t,e)},"multiline-expression":{test:e=>e.loc.start.line!==e.loc.end.line&&e.type===`ExpressionStatement`&&!n.isDirective(e)},"multiline-const":l(`const`),"multiline-let":l(`let`),"multiline-var":l(`var`),"singleline-const":c(`const`),"singleline-let":c(`let`),"singleline-var":c(`var`),block:u(`BlockStatement`),empty:u(`EmptyStatement`),function:u(`FunctionDeclaration`),break:s(`break`),case:s(`case`),class:s(`class`),const:s(`const`),continue:s(`continue`),debugger:s(`debugger`),default:s(`default`),do:s(`do`),export:s(`export`),for:s(`for`),if:s(`if`),import:s(`import`),let:s(`let`),return:s(`return`),switch:s(`switch`),throw:s(`throw`),try:s(`try`),var:s(`var`),while:s(`while`),with:s(`with`)};t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`padding-line-between-statements`,url:`https://eslint.style/rules/padding-line-between-statements`}}]},type:`layout`,docs:{description:`Require or disallow padding lines between statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/padding-line-between-statements`},fixable:`whitespace`,schema:{definitions:{paddingType:{enum:Object.keys(v)},statementType:{anyOf:[{enum:Object.keys(y)},{type:`array`,items:{enum:Object.keys(y)},minItems:1,uniqueItems:!0}]}},type:`array`,items:{type:`object`,properties:{blankLine:{$ref:`#/definitions/paddingType`},prev:{$ref:`#/definitions/statementType`},next:{$ref:`#/definitions/statementType`}},additionalProperties:!1,required:[`blankLine`,`prev`,`next`]}},messages:{unexpectedBlankLine:`Unexpected blank line before this statement.`,expectedBlankLine:`Expected blank line before this statement.`}},create(e){let t=e.sourceCode,r=e.options||[],i=null;function a(){i={upper:i,prevNode:null}}function o(){i=i.upper}function s(e,n){let r=e;for(;r.type===`LabeledStatement`;)r=r.body;return Array.isArray(n)?n.some(s.bind(null,r)):y[n].test(r,t)}function c(e,t){for(let n=r.length-1;n>=0;--n){let i=r[n];if(s(e,i.prev)&&s(t,i.next))return v[i.blankLine]}return v.any}function l(e,n){let r=[],i=p(t,e);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}function u(t){let r=t.parent.type;if(!(n.STATEMENT_LIST_PARENTS.has(r)||r===`SwitchStatement`))return;let a=i.prevNode;if(a){let n=c(a,t),r=l(a,t);n.verify(e,a,t,r)}i.prevNode=t}function d(e){u(e),a()}return{Program:a,BlockStatement:a,SwitchStatement:a,StaticBlock:a,"Program:exit":o,"BlockStatement:exit":o,"SwitchStatement:exit":o,"StaticBlock:exit":o,":statement":u,SwitchCase:d,"SwitchCase:exit":o}}}})),wi=n(((e,t)=>{let n=M();function r(e){return e&&e.defs[0].type===`FunctionName`}function i(e,t,n){return e.meta.name===t&&e.property.name===n}function a(e){let t=e.variables;for(let e=0;e<t.length;++e){let n=t[e];if(n.name===`arguments`)return n.identifiers.length===0?n:null}return null}function o(e){let t={isCallback:!1,isLexicalThis:!1},r=e,i=e.parent,a=!1;for(;r;){switch(i.type){case`LogicalExpression`:case`ChainExpression`:case`ConditionalExpression`:break;case`MemberExpression`:if(i.object===r&&!i.property.computed&&i.property.type===`Identifier`&&i.property.name===`bind`){let e=i.parent.type===`ChainExpression`?i.parent:i;if(n.isCallee(e))a||(a=!0,t.isLexicalThis=e.parent.arguments.length===1&&e.parent.arguments[0].type===`ThisExpression`),i=e.parent;else return t}else return t;break;case`CallExpression`:case`NewExpression`:return i.callee!==r&&(t.isCallback=!0),t;default:return t}r=i,i=i.parent}throw Error(`unreachable`)}function s(e){return e.every(e=>e.type===`Identifier`)&&e.length!==new Set(e.map(e=>e.name)).size}t.exports={meta:{type:`suggestion`,dialects:[`javascript`,`typescript`],language:`javascript`,defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:`Require using arrow functions for callbacks`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-arrow-callback`},schema:[{type:`object`,properties:{allowNamedFunctions:{type:`boolean`},allowUnboundThis:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{preferArrowCallback:`Unexpected function expression.`}},create(e){let[{allowNamedFunctions:t,allowUnboundThis:c}]=e.options,l=e.sourceCode,u=[];function d(){u.push({this:!1,super:!1,meta:!1})}function f(){return u.pop()}return{Program(){u=[]},ThisExpression(){let e=u.at(-1);e&&(e.this=!0)},Super(){let e=u.at(-1);e&&(e.super=!0)},MetaProperty(e){let t=u.at(-1);t&&i(e,`new`,`target`)&&(t.meta=!0)},FunctionDeclaration:d,"FunctionDeclaration:exit":f,FunctionExpression:d,"FunctionExpression:exit"(i){let u=f();if(t&&i.id&&i.id.name||i.generator)return;let d=l.getDeclaredVariables(i)[0];if(r(d)&&d.references.length>0)return;let p=a(l.getScope(i));if(p&&p.references.length>0)return;let m=o(i);m.isCallback&&(!c||!u.this||m.isLexicalThis)&&!u.super&&!u.meta&&e.report({node:i,messageId:`preferArrowCallback`,*fix(e){if(!m.isLexicalThis&&u.this||s(i.params)||i.params.length&&i.params[0].name===`this`)return;if(m.isLexicalThis){let t=i.parent;if(t.type!==`MemberExpression`)return;let r=t.parent,a=l.getTokenAfter(t.object,n.isNotClosingParenToken),o=l.getLastToken(r);if(n.isParenthesised(l,t)||l.commentsExistBetween(a,o))return;yield e.removeRange([a.range[0],o.range[1]])}let t=l.getFirstToken(i,i.async?1:0),r=l.getTokenAfter(t,n.isOpeningParenToken),a=l.getTokenBefore(i.body);l.commentsExistBetween(t,r)?(yield e.remove(t),i.id&&(yield e.remove(i.id))):yield e.removeRange([t.range[0],r.range[0]]),yield e.insertTextAfter(a,` =>`);let o=m.isLexicalThis?i.parent.parent:i;o.type===`ChainExpression`&&(o=o.parent),o.parent.type!==`CallExpression`&&o.parent.type!==`ConditionalExpression`&&!n.isParenthesised(l,o)&&!n.isParenthesised(l,i)&&(yield e.insertTextBefore(o,`(`),yield e.insertTextAfter(o,`)`))}})}}}}})),Ti=n(((e,t)=>{let n=It(),r=M(),i=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,a=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,o=/^(?:VariableDeclarator|AssignmentExpression)$/u;function s(e){return e.parent.type===`ForStatement`&&e.parent.init===e}function c(e){let t=e.parent;for(;i.test(t.type);)t=t.parent;return t.type===`VariableDeclarator`||t.type===`AssignmentExpression`&&t.parent.type===`ExpressionStatement`&&a.test(t.parent.parent.type)}function l(e,t){if(t.through.some(t=>t.resolved&&t.resolved.name===e))return!0;let n=r.getVariableByName(t,e);return n===null?!1:n.defs.some(e=>e.type===`Parameter`)}function u(e){if(!e.isWrite())return null;let t=e.identifier.parent;for(;i.test(t.type);)t=t.parent;return o.test(t.type)?t:null}function d(e){switch(e.type){case`ObjectPattern`:return e.properties.some(e=>e?d(e.argument||e.value):!1);case`ArrayPattern`:return e.elements.some(e=>e?d(e):!1);case`AssignmentPattern`:return d(e.left);case`MemberExpression`:return!0}return!1}function f(e,t){if(e.eslintUsed&&e.scope.type===`global`)return null;let n=null,r=!1,i=e.references;for(let a=0;a<i.length;++a){let o=i[a];if(o.isWrite()){if(n!==null&&n.identifier!==o.identifier)return null;let t=u(o);if(t!==null&&t.left!==void 0){let n=t.left,r=!1,i=!1;if(n.type===`ObjectPattern`?(r=n.properties.filter(e=>e.value).map(e=>e.value.name).some(t=>l(t,e.scope)),i=d(n)):n.type===`ArrayPattern`&&(r=n.elements.map(e=>e&&e.name).some(t=>l(t,e.scope)),i=d(n)),r||i)return null}n=o}else if(o.isRead()&&n===null){if(t)return null;r=!0}}return n!==null&&n.from===e.scope&&c(n.identifier)?r?e.defs[0].name:n.identifier:null}function p(e,t){let n=new Map;for(let r=0;r<e.length;++r){let i=e[r],a=i.references,o=f(i,t),s=null;for(let e=0;e<a.length;++e){let t=a[e],r=t.identifier;if(r===s)continue;s=r;let i=u(t);i&&(n.has(i)?n.get(i).push(o):n.set(i,[o]))}}return n}function m(e,t,n){return!e||n(e)?null:e.type===t?e:m(e.parent,t,n)}t.exports={meta:{type:`suggestion`,defaultOptions:[{destructuring:`any`,ignoreReadBeforeAssign:!1}],docs:{description:"Require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-const`},fixable:`code`,schema:[{type:`object`,properties:{destructuring:{enum:[`any`,`all`]},ignoreReadBeforeAssign:{type:`boolean`}},additionalProperties:!1}],messages:{useConst:`'{{name}}' is never reassigned. Use 'const' instead.`}},create(e){let[{destructuring:t,ignoreReadBeforeAssign:r}]=e.options,i=t!==`all`,a=e.sourceCode,o=[],c=0,l=null,u=``;function d(t){let r=t.filter(Boolean);if(t.length&&(i||r.length===t.length)){let i=m(t[0],`VariableDeclaration`,e=>e.type.endsWith(`Statement`)),o=i===null;if(!o&&i.declarations.length>0){let e=i.declarations[0];if(e.init){let t=e.init.parent;t.type===`VariableDeclarator`&&(t.id.name!==u&&(u=t.id.name,c=0),t.id.type===`ObjectPattern`&&t.init.name!==u&&(u=t.init.name,c=0),t.id!==l&&(l=t.id,c=0))}}let s=i&&(i.parent.type===`ForInStatement`||i.parent.type===`ForOfStatement`||i.declarations.every(e=>e.init))&&r.length===t.length;if(!o&&i.declarations&&i.declarations.length!==1&&i&&i.declarations&&i.declarations.length>=1){c+=r.length;let e=0;i.declarations.forEach(t=>{t.id.type===`ObjectPattern`?e+=t.id.properties.length:t.id.type===`ArrayPattern`?e+=t.id.elements.length:e+=1}),s&&=c===e}r.forEach(t=>{e.report({node:t,messageId:`useConst`,data:t,fix:s?e=>{let t=a.getFirstToken(i,e=>e.value===i.kind);return new n(e,a).retainRange(i.range).replaceTextRange(t.range,`const`)}:null})})}}return{"Program:exit"(){p(o,r).forEach(d)},VariableDeclaration(e){e.kind===`let`&&!s(e)&&o.push(...a.getDeclaredVariables(e))}}}}})),Ei=n(((e,t)=>{let n=M(),r=n.getPrecedence({type:`AssignmentExpression`});t.exports={meta:{type:`suggestion`,docs:{description:`Require destructuring from arrays and/or objects`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-destructuring`},fixable:`code`,schema:[{oneOf:[{type:`object`,properties:{VariableDeclarator:{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1},AssignmentExpression:{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1}},additionalProperties:!1},{type:`object`,properties:{array:{type:`boolean`},object:{type:`boolean`}},additionalProperties:!1}]},{type:`object`,properties:{enforceForRenamedProperties:{type:`boolean`}},additionalProperties:!1}],messages:{preferDestructuring:`Use {{type}} destructuring.`}},create(e){let t=e.options[0],i=e.options[1]&&e.options[1].enforceForRenamedProperties,a={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};t&&(a=t.array!==void 0||t.object!==void 0?{VariableDeclarator:t,AssignmentExpression:t}:t);function o(e,t){return a&&a[e]&&a[e][t]}function s(e){return Number.isInteger(e.property.value)}function c(t,n,r){e.report({node:t,messageId:`preferDestructuring`,data:{type:n},fix:r})}function l(e){return e.type===`VariableDeclarator`&&e.id.type===`Identifier`&&e.init.type===`MemberExpression`&&!e.init.computed&&e.init.property.type===`Identifier`&&e.id.name===e.init.property.name}function u(t,i){let a=i.init,o=e.sourceCode;if(o.getCommentsInside(i).length>o.getCommentsInside(a.object).length)return null;let s=o.getText(a.object);return n.getPrecedence(a.object)<r&&(s=`(${s})`),t.replaceText(i,`{${a.property.name}} = ${s}`)}function d(e,t,n){if(t.type!==`MemberExpression`||t.object.type===`Super`||t.property.type===`PrivateIdentifier`)return;if(s(t)){o(n.type,`array`)&&c(n,`array`,null);return}let r=l(n)?e=>u(e,n):null;if(o(n.type,`object`)&&i){c(n,`object`,r);return}if(o(n.type,`object`)){let i=t.property;(i.type===`Literal`&&e.name===i.value||i.type===`Identifier`&&e.name===i.name&&!t.computed)&&c(n,`object`,r)}}function f(e){e.init&&(e.parent.kind===`using`||e.parent.kind===`await using`||e.init.type===`MemberExpression`&&d(e.id,e.init,e))}function p(e){e.operator===`=`&&d(e.left,e.right,e)}return{VariableDeclarator:f,AssignmentExpression:p}}}})),Di=n(((e,t)=>{let n=M(),{CALL:r,ReferenceTracker:i}=q(),a=n.getPrecedence({type:`BinaryExpression`,operator:`**`});function o(e){return n.getPrecedence(e)<=a||e.type===`AwaitExpression`||e.type===`UnaryExpression`}function s(e){return n.getPrecedence(e)<a}function c(e,t){let r=e.parent.type===`ChainExpression`?e.parent.parent:e.parent,i=n.getPrecedence(r);return(r.type===`ClassDeclaration`||r.type.endsWith(`Expression`)&&(i===-1||i>=a)&&!(r.type===`BinaryExpression`&&r.operator===`**`&&r.right===e)&&!((r.type===`CallExpression`||r.type===`NewExpression`)&&r.arguments.includes(e))&&!(r.type===`MemberExpression`&&r.computed&&r.property===e)&&r.type!==`ArrayExpression`)&&!n.isParenthesised(t,e)}function l(e,t){return t?`(${e})`:e}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-exponentiation-operator`},schema:[],fixable:`code`,messages:{useExponentiation:`Use the '**' operator instead of 'Math.pow'.`}},create(e){let t=e.sourceCode;function a(r){e.report({node:r,messageId:`useExponentiation`,fix(e){if(r.arguments.length!==2||r.arguments.some(e=>e.type===`SpreadElement`)||t.getCommentsInside(r).length>0)return null;let i=r.arguments[0],a=r.arguments[1],u=t.getText(i),d=t.getText(a),f=o(i),p=s(a),m=c(r,t),h=``,g=``;if(!m){if(!f){let e=t.getFirstToken(i),a=t.getTokenBefore(r);a&&a.range[1]===r.range[0]&&!n.canTokensBeAdjacent(a,e)&&(h=` `)}if(!p){let e=t.getLastToken(a),i=t.getTokenAfter(r);i&&r.range[1]===i.range[0]&&!n.canTokensBeAdjacent(e,i)&&(g=` `)}}let _=l(`${l(u,f)}**${l(d,p)}`,m);return e.replaceText(r,`${h}${_}${g}`)}})}return{Program(e){let n=new i(t.getScope(e)),o={Math:{pow:{[r]:!0}}};for(let{node:e}of n.iterateGlobalReferences(o))a(e)}}}}})),Oi=n(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=q(),o=Tt(),s=new o.RegExpParser;function c(e,t,n,r){switch(r.type){case`Literal`:if(typeof r.value==`string`&&n.includes(`\\`))return null;break;case`TemplateLiteral`:if(r.expressions.length||n.slice(1,-1)!==t)return null;break;default:return null}let i=r.range[0]+e+2;return[{fix(e){let n=(t.match(/temp\d+/gu)||[]).reduce((e,t)=>Math.max(e,Number(t.slice(4))),0);return e.insertTextBeforeRange([i,i],`?<temp${n+1}>`)},messageId:`addGroupName`},{fix(e){return e.insertTextBeforeRange([i,i],`?:`)},messageId:`addNonCapture`}]}t.exports={meta:{type:`suggestion`,docs:{description:`Enforce using named capture group in regular expression`,recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-named-capture-group`},hasSuggestions:!0,schema:[],messages:{addGroupName:`Add name to capture group.`,addNonCapture:`Convert group to non-capturing.`,required:`Capture group '{{group}}' should be converted to a named or non-capturing group.`}},create(e){let t=e.sourceCode;function l(n,r,i,a){let l;try{l=s.parsePattern(n,0,n.length,{unicode:!!(a&&a.includes(`u`)),unicodeSets:!!(a&&a.includes(`v`))})}catch{return}o.visitRegExpAST(l,{onCapturingGroupEnter(a){if(!a.name){let o=t.getText(i),s=c(a.start,n,o,i);e.report({node:r,messageId:`required`,data:{group:a.raw},suggest:s})}}})}return{Literal(e){e.regex&&l(e.regex.pattern,e,e,e.regex.flags)},Program(e){let o=new i(t.getScope(e)),s={RegExp:{[n]:!0,[r]:!0}};for(let{node:e}of o.iterateGlobalReferences(s)){let t=a(e.arguments[0]),n=a(e.arguments[1]);t&&l(t,e,e.arguments[0],n)}}}}}})),ki=n(((e,t)=>{let n=M(),r=new Map([[2,{system:`binary`,literalPrefix:`0b`}],[8,{system:`octal`,literalPrefix:`0o`}],[16,{system:`hexadecimal`,literalPrefix:`0x`}]]);function i(e){return n.isSpecificId(e,`parseInt`)||n.isSpecificMemberAccess(e,`Number`,`parseInt`)}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-numeric-literals`},schema:[],messages:{useLiteral:`Use {{system}} literals instead of {{functionName}}().`},fixable:`code`},create(e){let t=e.sourceCode;return{"CallExpression[arguments.length=2]"(a){let[o,s]=a.arguments,c=n.getStaticStringValue(o),l=s.value;if(c!==null&&n.isStringLiteral(o)&&s.type===`Literal`&&typeof l==`number`&&r.has(l)&&i(a.callee)){let{system:i,literalPrefix:o}=r.get(l);e.report({node:a,messageId:`useLiteral`,data:{system:i,functionName:t.getText(a.callee)},fix(e){if(t.getCommentsInside(a).length)return null;let r=`${o}${c}`;if(+r!==parseInt(c,l))return null;let i=t.getTokenBefore(a),s=t.getTokenAfter(a),u=``,d=``;return i&&i.range[1]===a.range[0]&&!n.canTokensBeAdjacent(i,r)&&(u=` `),s&&a.range[1]===s.range[0]&&!n.canTokensBeAdjacent(r,s)&&(d=` `),e.replaceText(a,`${u}${r}${d}`)}})}}}}}})),Ai=n(((e,t)=>{let n=M();function r(e){if(e.object.type===`ObjectExpression`&&e.object.properties.length===0)return!0;let t=e.object.type===`MemberExpression`&&n.getStaticPropertyName(e.object)===`prototype`?e.object.object:e.object;return t.type===`Identifier`&&t.name===`Object`}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-object-has-own`},schema:[],messages:{useHasOwn:`Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'.`},fixable:`code`},create(e){let t=e.sourceCode;return{CallExpression(i){if(!(i.callee.type===`MemberExpression`&&i.callee.object.type===`MemberExpression`))return;let a=n.getStaticPropertyName(i.callee),o=n.getStaticPropertyName(i.callee.object),s=r(i.callee.object),c=t.getScope(i),l=n.getVariableByName(c,`Object`);a===`call`&&o===`hasOwnProperty`&&s&&l&&l.scope.type===`global`&&e.report({node:i,messageId:`useHasOwn`,fix(e){if(t.getCommentsInside(i.callee).length>0)return null;let r=t.getTokenBefore(i.callee,{includeComments:!0});return r&&r.range[1]===i.callee.range[0]&&!n.canTokensBeAdjacent(r,`Object.hasOwn`)?e.replaceText(i.callee,` Object.hasOwn`):e.replaceText(i.callee,`Object.hasOwn`)}})}}}}})),ji=n(((e,t)=>{let{CALL:n,ReferenceTracker:r}=q(),{isCommaToken:i,isOpeningParenToken:a,isClosingParenToken:o,isParenthesised:s}=M(),c=/\s/u;function l(e){return e.arguments.some(e=>e.type===`SpreadElement`)}function u(e){return e.type===`Property`&&(e.kind===`get`||e.kind===`set`)}function d(e){return e.properties.some(u)}function f(e){return e.arguments.filter(e=>e.type===`ObjectExpression`).some(d)}function p(e,t){let n=e.parent;switch(n.type){case`VariableDeclarator`:case`ArrayExpression`:case`ReturnStatement`:case`CallExpression`:case`Property`:return!1;case`AssignmentExpression`:return n.left===e&&!s(t,e);default:return!s(t,e)}}function m(e,t){switch(e.type){case`AssignmentExpression`:case`ArrowFunctionExpression`:case`ConditionalExpression`:return!s(t,e);default:return!1}}function h(e,t,n){let r=[n.getFirstToken(e),n.getLastToken(e)],i=n.getTokenBefore(e),s=n.getTokenAfter(e);for(;i&&s&&i.range[0]>t.range[0]&&a(i)&&o(s);)r.push(i,s),i=n.getTokenBefore(i),s=n.getTokenAfter(s);return r.sort((e,t)=>e.range[0]-t.range[0])}function g(e,t){let n=t.text,r=e.range[0];{let n=t.getTokenBefore(e,{includeComments:!0});if(n&&n.type===`Line`)return r}for(;c.test(n[r-1]||``);)--r;return r}function _(e,t){let n=t.text,r=e.range[1];for(;c.test(n[r]||``);)r+=1;return r}function v(e,t){return function*(n){let r=t.getTokenAfter(e.callee,a),o=t.getLastToken(e);yield n.removeRange([e.range[0],r.range[0]]),p(e,t)?(yield n.replaceText(r,`({`),yield n.replaceText(o,`})`)):(yield n.replaceText(r,`{`),yield n.replaceText(o,`}`));for(let a of e.arguments){let e=h(a,r,t),o=e.shift(),s=e.pop();if(a.type===`ObjectExpression`){let r=t.getLastToken(a,1),c=t.getTokenAfter(s);for(let t of e)yield n.remove(t);let l=[o.range[0],_(o,t)],u=[Math.max(g(s,t),l[1]),s.range[1]];yield n.removeRange(l),yield n.removeRange(u),(a.properties.length===0||i(r))&&i(c)&&(yield n.remove(c))}else m(a,t)?(yield n.insertTextBefore(o,`...(`),yield n.insertTextAfter(s,`)`)):yield n.insertTextBefore(o,`...`)}}}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-object-spread`},schema:[],fixable:`code`,messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(e){let t=e.sourceCode;return{Program(i){let a=new r(t.getScope(i)),o={Object:{assign:{[n]:!0}}};for(let{node:n}of a.iterateGlobalReferences(o))if(n.arguments.length>=1&&n.arguments[0].type===`ObjectExpression`&&!l(n)&&!(n.arguments.length>1&&f(n))){let r=n.arguments.length===1?`useLiteralMessage`:`useSpreadMessage`,i=v(n,t);e.report({node:n,messageId:r,fix:i})}}}}}})),Mi=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,defaultOptions:[{allowEmptyReject:!1}],docs:{description:`Require using Error objects as Promise rejection reasons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-promise-reject-errors`},fixable:null,schema:[{type:`object`,properties:{allowEmptyReject:{type:`boolean`}},additionalProperties:!1}],messages:{rejectAnError:`Expected the Promise rejection reason to be an Error.`}},create(e){let[{allowEmptyReject:t}]=e.options,r=e.sourceCode;function i(r){!r.arguments.length&&t||(!r.arguments.length||!n.couldBeError(r.arguments[0])||r.arguments[0].type===`Identifier`&&r.arguments[0].name===`undefined`)&&e.report({node:r,messageId:`rejectAnError`})}function a(e){return n.isSpecificMemberAccess(e.callee,`Promise`,`reject`)}return{CallExpression(e){a(e)&&i(e)},"NewExpression:exit"(e){e.callee.type===`Identifier`&&e.callee.name===`Promise`&&e.arguments.length&&n.isFunction(e.arguments[0])&&e.arguments[0].params.length>1&&e.arguments[0].params[1].type===`Identifier`&&r.getDeclaredVariables(e.arguments[0]).find(t=>t.name===e.arguments[0].params[1].name).references.filter(e=>e.isRead()).filter(e=>e.identifier.parent.type===`CallExpression`&&e.identifier===e.identifier.parent.callee).forEach(e=>i(e.identifier.parent))}}}}})),Ni=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-reflect`},deprecated:{message:`The original intention of this rule was misguided.`,deprecatedSince:`3.9.0`,availableUntil:null,replacedBy:[]},schema:[{type:`object`,properties:{exceptions:{type:`array`,items:{enum:[`apply`,`call`,`delete`,`defineProperty`,`getOwnPropertyDescriptor`,`getPrototypeOf`,`setPrototypeOf`,`isExtensible`,`getOwnPropertyNames`,`preventExtensions`]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:`Avoid using {{existing}}, instead use {{substitute}}.`}},create(e){let t={apply:`Function.prototype.apply`,call:`Function.prototype.call`,defineProperty:`Object.defineProperty`,getOwnPropertyDescriptor:`Object.getOwnPropertyDescriptor`,getPrototypeOf:`Object.getPrototypeOf`,setPrototypeOf:`Object.setPrototypeOf`,isExtensible:`Object.isExtensible`,getOwnPropertyNames:`Object.getOwnPropertyNames`,preventExtensions:`Object.preventExtensions`},n={apply:`Reflect.apply`,call:`Reflect.apply`,defineProperty:`Reflect.defineProperty`,getOwnPropertyDescriptor:`Reflect.getOwnPropertyDescriptor`,getPrototypeOf:`Reflect.getPrototypeOf`,setPrototypeOf:`Reflect.setPrototypeOf`,isExtensible:`Reflect.isExtensible`,getOwnPropertyNames:`Reflect.getOwnPropertyNames`,preventExtensions:`Reflect.preventExtensions`},r=(e.options[0]||{}).exceptions||[];function i(t,n,r){e.report({node:t,messageId:`preferReflect`,data:{existing:n,substitute:r}})}return{CallExpression(e){let a=(e.callee.property||{}).name,o=(e.callee.object||{}).name===`Reflect`,s=Object.hasOwn(n,a),c=r.includes(a);s&&!o&&!c&&i(e,t[a],n[a])},UnaryExpression(e){let t=e.operator===`delete`,n=e.argument.type===`Identifier`,a=r.includes(`delete`);t&&!n&&!a&&i(e,`the delete keyword`,`Reflect.deleteProperty`)}}}}})),Pi=n(((e,t)=>{let n=M(),{CALL:r,CONSTRUCT:i,ReferenceTracker:a}=q(),{RegExpValidator:o,visitRegExpAST:s,RegExpParser:c}=Tt(),{canTokensBeAdjacent:l}=M(),{REGEXPP_LATEST_ECMA_VERSION:u}=En();function d(e){return e.type===`Literal`&&typeof e.value==`string`}function f(e){return e.type===`Literal`&&Object.hasOwn(e,`regex`)}let p=new Set(`();)[),)=)+)*)-)?)~)%)**)!)typeof)instanceof)&&)||)??)return)...)delete)void)in)<)>)<=)>=)==)===)!=)!==)<<)>>)>>>)&)|)^):){)=>)*=)<<=)>>=)>>>=)^=)|=)&=)??=)||=)&&=)**=)+=)-=)/=)%=)/)do)break)continue)debugger)case)throw`.split(`)`));t.exports={meta:{type:`suggestion`,defaultOptions:[{disallowRedundantWrapping:!1}],docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-regex-literals`},hasSuggestions:!0,schema:[{type:`object`,properties:{disallowRedundantWrapping:{type:`boolean`}},additionalProperties:!1}],messages:{unexpectedRegExp:`Use a regular expression literal instead of the 'RegExp' constructor.`,replaceWithLiteral:`Replace with an equivalent regular expression literal.`,replaceWithLiteralAndFlags:`Replace with an equivalent regular expression literal with flags '{{ flags }}'.`,replaceWithIntendedLiteralAndFlags:`Replace with a regular expression literal with flags '{{ flags }}'.`,unexpectedRedundantRegExp:`Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.`,unexpectedRedundantRegExpWithFlags:`Use regular expression literal with flags instead of the 'RegExp' constructor.`}},create(e){let[{disallowRedundantWrapping:t}]=e.options,m=e.sourceCode;function h(e){return e.type===`TaggedTemplateExpression`&&n.isSpecificMemberAccess(e.tag,`String`,`raw`)&&m.isGlobalReference(n.skipChainExpression(e.tag).object)&&n.isStaticTemplateLiteral(e.quasi)}function g(e){return d(e)?e.value:n.isStaticTemplateLiteral(e)?e.quasis[0].value.cooked:h(e)?e.quasi.quasis[0].value.raw:null}function _(e){return d(e)||n.isStaticTemplateLiteral(e)||h(e)}function v(e){let t=e.arguments;return!!((t.length===1||t.length===2)&&t.every(_))}function y(e){let t=e.arguments;return!!(t.length===1&&f(t[0])||t.length===2&&f(t[0])&&_(t[1]))}function b(e){return e<=5?5:Math.min(e,u)}let x=b(e.languageOptions.ecmaVersion);function S(e){switch(e){case`
71
+ `:case`\\
72
+ `:return`\\n`;case`\r`:case`\\\r`:return`\\r`;case` `:case`\\ `:return`\\t`;case`\v`:case`\\\v`:return`\\v`;case`\f`:case`\\\f`:return`\\f`;case`/`:return`\\/`;default:return null}}function C(e,t){let n=new o({ecmaVersion:x});try{return n.validatePattern(e,0,e.length,{unicode:t?t.includes(`u`):!1,unicodeSets:t?t.includes(`v`):!1}),t&&n.validateFlags(t),!0}catch{return!1}}function w(e,t){return[...e].sort().join(``)===[...t].sort().join(``)}function T(e,t){return[...new Set([...e,...t])].join(``)}function E(e,t,n){let r=m.getTokenBefore(e);return m.getCommentsInside(e).length===0&&(!r||p.has(r.value))&&C(t,n)}function D(e,t){let n=m.getTokenBefore(e),r=m.getTokenAfter(e);return(n&&!l(n,t)&&n.range[1]===e.range[0]?` `:``)+t+(r&&!l(t,r)&&e.range[1]===r.range[0]?` `:``)}return{Program(n){let o=new a(m.getScope(n)),l={RegExp:{[r]:!0,[i]:!0}};for(let{node:n}of o.iterateGlobalReferences(l))if(t&&y(n)){let t=n.arguments[0];if(n.arguments.length===2){let r=[],i=g(n.arguments[1])||``;E(n,t.regex.pattern,i)&&r.push({messageId:`replaceWithLiteralAndFlags`,pattern:t.regex.pattern,flags:i});let a=T(t.regex.flags||``,i);!w(a,i)&&E(n,t.regex.pattern,a)&&r.push({messageId:`replaceWithIntendedLiteralAndFlags`,pattern:t.regex.pattern,flags:a}),e.report({node:n,messageId:`unexpectedRedundantRegExpWithFlags`,suggest:r.map(({flags:e,pattern:t,messageId:r})=>({messageId:r,data:{flags:e},fix(r){return r.replaceText(n,D(n,`/${t}/${e}`))}}))})}else{let r=[];E(n,t.regex.pattern,t.regex.flags)&&r.push(m.getText(t)),e.report({node:n,messageId:`unexpectedRedundantRegExp`,suggest:r.map(e=>({messageId:`replaceWithLiteral`,fix(t){return t.replaceText(n,D(n,e))}}))})}}else if(v(n)){let t=g(n.arguments[0]),r=!1,i;if(n.arguments[1]&&(i=g(n.arguments[1])),E(n,t,i)||(r=!0),/^[-\w\\[\](){} \t\r\n\v\f!@#$%^&*+=/~`.><?,'"|:;]*$/u.test(t)||(r=!0),t&&!r){let e=0;s(new c({ecmaVersion:x}).parsePattern(t,0,t.length,{unicode:i?i.includes(`u`):!1,unicodeSets:i?i.includes(`v`):!1}),{onCharacterEnter(n){let r=S(n.raw);r&&(t=t.slice(0,n.start+e)+r+t.slice(n.end+e),n.raw.length===1&&(e+=1))}})}let a=`/${t||`(?:)`}/${i||``}`;e.report({node:n,messageId:`unexpectedRegExp`,suggest:r?[]:[{messageId:`replaceWithLiteral`,fix(e){return e.replaceText(n,D(n,a))}}]})}}}}}})),Fi=n(((e,t)=>{function n(e){let t=e.variables;for(let e=0;e<t.length;++e){let n=t[e];if(n.name===`arguments`)return n.identifiers.length===0?n:null}return null}function r(e){let t=e.identifier,n=t.parent;return!(n.type===`MemberExpression`&&n.object===t&&!n.computed)}t.exports={meta:{type:`suggestion`,docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:`https://eslint.org/docs/latest/rules/prefer-rest-params`},schema:[],messages:{preferRestParams:`Use the rest parameters instead of 'arguments'.`}},create(e){let t=e.sourceCode;function i(t){e.report({node:t.identifier,loc:t.identifier.loc,messageId:`preferRestParams`})}function a(e){let a=n(t.getScope(e));a&&a.references.filter(r).forEach(i)}return{"FunctionDeclaration:exit":a,"FunctionExpression:exit":a}}}})),Ii=n(((e,t)=>{let n=M();function r(e){return n.isSpecificMemberAccess(e.callee,null,`apply`)&&e.arguments.length===2&&e.arguments[1].type!==`ArrayExpression`&&e.arguments[1].type!==`SpreadElement`}function i(e,t,r){return e?n.equalTokens(e,t,r):n.isNullOrUndefined(t)}t.exports={meta:{type:`suggestion`,docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-spread`},schema:[],fixable:null,messages:{preferSpread:`Use the spread operator instead of '.apply()'.`}},create(e){let t=e.sourceCode;return{CallExpression(a){if(!r(a))return;let o=n.skipChainExpression(n.skipChainExpression(a.callee).object),s=o.type===`MemberExpression`?o.object:null,c=a.arguments[0];i(s,c,t)&&e.report({node:a,messageId:`preferSpread`})}}}}})),Li=n(((e,t)=>{let n=M();function r(e){return e.type===`BinaryExpression`&&e.operator===`+`}function i(e){let t=e;for(;r(t.parent);)t=t.parent;return t}function a(e){return r(e)?a(e.left)||a(e.right):e.type===`Literal`&&typeof e.value==`string`?n.hasOctalOrNonOctalDecimalEscapeSequence(e.raw):!1}function o(e){return r(e)?o(e.right)||o(e.left):n.isStringLiteral(e)}function s(e){return r(e)?s(e.right)||s(e.left):!n.isStringLiteral(e)}function c(e){return e.type===`BinaryExpression`?c(e.left):e.type===`TemplateLiteral`?e.expressions.length&&e.quasis.length&&e.quasis[0].range[0]===e.quasis[0].range[1]:e.type!==`Literal`||typeof e.value!=`string`}function l(e){return e.type===`BinaryExpression`?c(e.right):e.type===`TemplateLiteral`?e.expressions.length&&e.quasis.length&&e.quasis.at(-1).range[0]===e.quasis.at(-1).range[1]:e.type!==`Literal`||typeof e.value!=`string`}t.exports={meta:{type:`suggestion`,docs:{description:`Require template literals instead of string concatenation`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/prefer-template`},schema:[],fixable:`code`,messages:{unexpectedStringConcatenation:`Unexpected string concatenation.`}},create(e){let t=e.sourceCode,u=Object.create(null);function d(e,n){let r=[e].concat(t.getTokensBetween(e,n),n),i=t.getText();return r.slice(0,-1).reduce((e,t,n)=>e+i.slice(t.range[1],r[n+1].range[0]),``)}function f(e,n,i){if(e.type===`Literal`&&typeof e.value==`string`)return`\`${e.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,e=>e.lastIndexOf(`\\`)%2?`\\${e}`:e).replace(RegExp(`\\\\${e.raw[0]}`,`gu`),e.raw[0])}\``;if(e.type===`TemplateLiteral`)return t.getText(e);if(r(e)&&o(e)){let r=t.getFirstTokenBetween(e.left,e.right,e=>e.value===`+`),a=d(e.left,r),o=d(r,e.right),s=l(e.left),u=c(e.right);return s?f(e.left,n,a+o).slice(0,-1)+f(e.right,null,i).slice(1):u?f(e.left,n,null).slice(0,-1)+f(e.right,a+o,i).slice(1):`${f(e.left,n,null)}${a}+${o}${f(e.right,i,null)}`}return`\`\${${n||``}${t.getText(e)}${i||``}}\``}function p(e,t){let n=i(t.parent);return a(n)?null:e.replaceText(n,f(n,null,null))}function m(t){if(!n.isStringLiteral(t)||!r(t.parent))return;let a=i(t.parent);u[a.range[0]]||(u[a.range[0]]=!0,s(a)&&e.report({node:a,messageId:`unexpectedStringConcatenation`,fix:e=>p(e,t)}))}return{Program(){u=Object.create(null)},Literal:m,TemplateLiteral:m}}}})),Ri=n(((e,t)=>{let n=M(),r=Symbol(`unknown_cause`),i=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]);function a(e){let t=e.argument,i=t.callee.name===`AggregateError`?2:1,a=t.arguments.findIndex(e=>e.type===`SpreadElement`);if(a>=0&&a<=i)return r;let o=t.arguments[i];if(o){if(o.type===`ObjectExpression`){if(o.properties.some(e=>e.type===`SpreadElement`))return r;let e=o.properties.filter(e=>n.getStaticPropertyName(e)===`cause`),t=e.at(-1);return t?{value:t.value,multipleDefinitions:e.length>1}:null}return r}return null}function o(e){let t=e;for(;t&&t.type!==`CatchClause`;){if([`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`,`StaticBlock`].includes(t.type))return null;t=t.parent}return t}t.exports={meta:{type:`suggestion`,defaultOptions:[{requireCatchParameter:!1}],docs:{description:`Disallow losing originally caught error when re-throwing custom errors`,recommended:!0,url:`https://eslint.org/docs/latest/rules/preserve-caught-error`},schema:[{type:`object`,properties:{requireCatchParameter:{type:`boolean`,description:`Requires the catch blocks to always have the caught error parameter so it is not discarded.`}},additionalProperties:!1}],messages:{missingCause:"There is no `cause` attached to the symptom error being thrown.",incorrectCause:"The symptom error is being thrown with an incorrect `cause`.",includeCause:"Include the original caught error as the `cause` of the symptom error.",missingCatchErrorParam:`The caught error is not accessible because the catch clause lacks the error parameter. Start referencing the caught error using the catch parameter.`,partiallyLostError:`Re-throws cannot preserve the caught error as a part of it is being lost due to destructuring.`,caughtErrorShadowed:"The caught error is being attached as `cause`, but is shadowed by a closer scoped redeclaration."},hasSuggestions:!0},create(e){let t=e.sourceCode,[{requireCatchParameter:s}]=e.options;function c(e){return(e.argument.type===`NewExpression`||e.argument.type===`CallExpression`)&&e.argument.callee.type===`Identifier`&&i.has(e.argument.callee.name)&&t.isGlobalReference(e.argument.callee)}function l(e,n,r){let i=n.properties;if(i.length===0)return e.insertTextAfter(t.getFirstToken(n),`cause: ${r}`);let a=i.at(-1);return e.insertTextAfter(a,`, cause: ${r}`)}return{ThrowStatement(i){let u=o(i),d=i;if(u&&c(d)){if(u.param&&u.param.type!==`Identifier`){e.report({messageId:`partiallyLostError`,node:u});return}let i=u.param?.type===`Identifier`?u.param:null;if(!i){if(s){e.report({node:d,messageId:`missingCatchErrorParam`});return}return}let o=a(d);if(o===r)return;if(o===null){e.report({messageId:`missingCause`,node:d,suggest:[{messageId:`includeCause`,fix(e){let r=d.argument,a=r.arguments;if(r.callee.name===`AggregateError`){let o=a[0],s=a[1],c=a[2];if(!o){let a=t.getLastToken(r),o=t.getLastToken(r.callee),s=t.getFirstTokenBetween(o,a,n.isOpeningParenToken);return s?e.insertTextAfter(s,`[], "", { cause: ${i.name} }`):e.insertTextAfter(r.callee,`([], "", { cause: ${i.name} })`)}return s?c?c.type===`ObjectExpression`?l(e,c,i.name):null:e.insertTextAfter(s,`, { cause: ${i.name} }`):e.insertTextAfter(o,`, "", { cause: ${i.name} }`)}let o=a[0],s=a[1];if(!o){let a=t.getLastToken(r),o=t.getLastToken(r.callee),s=t.getFirstTokenBetween(o,a,n.isOpeningParenToken);return s?e.insertTextAfter(s,`"", { cause: ${i.name} }`):e.insertTextAfter(r.callee,`("", { cause: ${i.name} })`)}return s?s.type===`ObjectExpression`?l(e,s,i.name):null:e.insertTextAfter(o,`, { cause: ${i.name} }`)}}]});return}let{value:c}=o;if(!(c.type===`Identifier`&&c.name===i.name)){let t=o.multipleDefinitions?null:[{messageId:`includeCause`,fix(e){return c.parent.method||c.parent.shorthand||c.parent.kind!==`init`?e.replaceText(c.parent,`cause: ${i.name}`):e.replaceText(c,i.name)}}];e.report({messageId:`incorrectCause`,node:c,suggest:t});return}let f=t.getScope(d);do{if(f.set.get(i.name))break;f=f.upper}while(f);f?.block!==u&&e.report({messageId:`caughtErrorShadowed`,node:d})}}}}}})),zi=n(((e,t)=>{let n=D(),r=M(),i=ge();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`quote-props`,url:`https://eslint.style/rules/quote-props`}}]},type:`suggestion`,docs:{description:`Require quotes around object literal property names`,recommended:!1,url:`https://eslint.org/docs/latest/rules/quote-props`},schema:{anyOf:[{type:`array`,items:[{enum:[`always`,`as-needed`,`consistent`,`consistent-as-needed`]}],minItems:0,maxItems:1},{type:`array`,items:[{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}]},fixable:`code`,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.`}},create(e){let t=e.options[0],a=e.options[1]&&e.options[1].keywords,o=!e.options[1]||e.options[1].unnecessary!==!1,s=e.options[1]&&e.options[1].numbers,c=e.sourceCode;function l(e){return i.includes(e)}function u(e,t,n){return t.length===1&&t[0].start===0&&t[0].end===e.length&&([`Identifier`,`Keyword`,`Null`,`Boolean`].includes(t[0].type)||t[0].type===`Numeric`&&!n&&String(+t[0].value)===t[0].value)}function d(e){return e.type===`Identifier`?e.name:e.value}function f(e){return e.type===`Literal`&&typeof e.value==`string`?c.getText(e):`"${e.type===`Identifier`?e.name:e.value}"`}function p(t){let i=t.key;if(!(t.method||t.computed||t.shorthand))if(i.type===`Literal`&&typeof i.value==`string`){let r;try{r=n.tokenize(i.value)}catch{return}if(r.length!==1||l(r[0].value)&&a)return;o&&u(i.value,r,s)&&e.report({node:t,messageId:`unnecessarilyQuotedProperty`,data:{property:i.value},fix:e=>e.replaceText(i,d(i))})}else a&&i.type===`Identifier`&&l(i.name)?e.report({node:t,messageId:`unquotedReservedProperty`,data:{property:i.name},fix:e=>e.replaceText(i,f(i))}):s&&i.type===`Literal`&&r.isNumericLiteral(i)&&e.report({node:t,messageId:`unquotedNumericProperty`,data:{property:i.value},fix:e=>e.replaceText(i,f(i))})}function m(t){let n=t.key;!t.method&&!t.computed&&!t.shorthand&&!(n.type===`Literal`&&typeof n.value==`string`)&&e.report({node:t,messageId:`unquotedPropertyFound`,data:{property:n.name||n.value},fix:e=>e.replaceText(n,f(n))})}function h(t,r){let i=[],o=[],s=null,c=!1;t.properties.forEach(e=>{let t=e.key;if(!(!t||e.method||e.computed||e.shorthand))if(t.type===`Literal`&&typeof t.value==`string`){if(i.push(e),r){let e;try{e=n.tokenize(t.value)}catch{c=!0;return}c=c||!u(t.value,e)||a&&l(e[0].value)}}else a&&r&&t.type===`Identifier`&&l(t.name)?(o.push(e),c=!0,s=t.name):o.push(e)}),r&&i.length&&!c?i.forEach(t=>{e.report({node:t,messageId:`redundantQuoting`,fix:e=>e.replaceText(t.key,d(t.key))})}):o.length&&s?o.forEach(t=>{e.report({node:t,messageId:`requireQuotesDueToReservedWord`,data:{property:s},fix:e=>e.replaceText(t.key,f(t.key))})}):i.length&&o.length&&o.forEach(t=>{e.report({node:t,messageId:`inconsistentlyQuotedProperty`,data:{key:t.key.name||t.key.value},fix:e=>e.replaceText(t.key,f(t.key))})})}return{Property(e){(t===`always`||!t)&&m(e),t===`as-needed`&&p(e)},ObjectExpression(e){t===`consistent`&&h(e,!1),t===`consistent-as-needed`&&h(e,!0)}}}}})),Bi=n(((e,t)=>{let n=M(),r={double:{quote:`"`,alternateQuote:`'`,description:`doublequote`},single:{quote:`'`,alternateQuote:`"`,description:`singlequote`},backtick:{quote:"`",alternateQuote:`"`,description:`backtick`}},i=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(n.LINEBREAKS).join(``)}]`,`u`);r.double.convert=r.single.convert=r.backtick.convert=function(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},t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`quotes`,url:`https://eslint.style/rules/quotes`}}]},type:`layout`,docs:{description:`Enforce the consistent use of either backticks, double, or single quotes`,recommended:!1,url:`https://eslint.org/docs/latest/rules/quotes`},fixable:`code`,schema:[{enum:[`single`,`double`,`backtick`]},{anyOf:[{enum:[`avoid-escape`]},{type:`object`,properties:{avoidEscape:{type:`boolean`},allowTemplateLiterals:{type:`boolean`}},additionalProperties:!1}]}],messages:{wrongQuotes:`Strings must use {{description}}.`}},create(e){let t=e.options[0],a=r[t||`double`],o=e.options[1],s=o&&o.allowTemplateLiterals===!0,c=e.sourceCode,l=o&&o.avoidEscape===!0;o===`avoid-escape`&&(l=!0);function u(e){return e.parent.type===`JSXAttribute`||e.parent.type===`JSXElement`||e.parent.type===`JSXFragment`}function d(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!n.isParenthesised(c,e.expression)}function f(e){if(!n.isTopLevelExpressionStatement(e.parent))return!1;let t=e.parent.parent;for(let n=0;n<t.body.length;++n){let r=t.body[n];if(r===e.parent)return!0;if(!d(r))break}return!1}function p(e){let t=e.parent;switch(t.type){case`ExpressionStatement`:return!n.isParenthesised(c,e)&&f(e);case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return t.key===e&&!t.computed;case`ImportDeclaration`:case`ExportNamedDeclaration`:return t.source===e;case`ExportAllDeclaration`:return t.exported===e||t.source===e;case`ImportSpecifier`:return t.imported===e;case`ExportSpecifier`:return t.local===e||t.exported===e;default:return!1}}function m(e){return!!(e.parent.type===`TaggedTemplateExpression`&&e===e.parent.quasi||e.expressions.length>0||e.quasis.length>=1&&i.test(e.quasis[0].value.raw))}return{Literal(r){let i=r.value,o=r.raw;if(a&&typeof i==`string`){let i=t===`backtick`&&p(r)||u(r)||n.isSurroundedBy(o,a.quote);!i&&l&&(i=n.isSurroundedBy(o,a.alternateQuote)&&o.includes(a.quote)),i||e.report({node:r,messageId:`wrongQuotes`,data:{description:a.description},fix(e){return t===`backtick`&&n.hasOctalOrNonOctalDecimalEscapeSequence(o)?null:e.replaceText(r,a.convert(r.raw))}})}},TemplateLiteral(r){s||t===`backtick`||m(r)||e.report({node:r,messageId:`wrongQuotes`,data:{description:a.description},fix(e){return n.isTopLevelExpressionStatement(r.parent)&&!n.isParenthesised(c,r)?null:e.replaceText(r,a.convert(c.getText(r)))}})}}}}})),Vi=n(((e,t)=>{let n=M(),r=new Set(Array.from({length:35},(e,t)=>t+2));function i(e){return e.defs.length>=1}function a(e){return e.type===`MemberExpression`&&!e.computed&&e.property.type===`Identifier`&&e.property.name===`parseInt`}function o(e){return!(e.type===`Literal`&&!r.has(e.value)||e.type===`Identifier`&&e.name===`undefined`)}t.exports={meta:{type:`suggestion`,docs:{description:"Enforce the use of the radix argument when using `parseInt()`",recommended:!1,url:`https://eslint.org/docs/latest/rules/radix`},hasSuggestions:!0,schema:[{enum:[`always`,`as-needed`]}],messages:{missingParameters:`Missing parameters.`,missingRadix:`Missing radix parameter.`,invalidRadix:`Invalid radix parameter, must be an integer between 2 and 36.`,addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(e){let t=e.sourceCode;function r(n){let r=n.arguments;switch(r.length){case 0:e.report({node:n,messageId:`missingParameters`});break;case 1:e.report({node:n,messageId:`missingRadix`,suggest:[{messageId:`addRadixParameter10`,fix(e){let r=t.getTokens(n),i=r.at(-1),a=r.at(-2),o=a.type===`Punctuator`&&a.value===`,`;return e.insertTextBefore(i,o?` 10,`:`, 10`)}}]});break;default:o(r[1])||e.report({node:n,messageId:`invalidRadix`});break}}return{"Program:exit"(e){let o=t.getScope(e),s;s=n.getVariableByName(o,`parseInt`),s&&!i(s)&&s.references.forEach(e=>{let t=e.identifier;n.isCallee(t)&&r(t.parent)}),s=n.getVariableByName(o,`Number`),s&&!i(s)&&s.references.forEach(e=>{let t=e.identifier.parent,i=t.parent.type===`ChainExpression`?t.parent:t;a(t)&&n.isCallee(i)&&r(i.parent)})}}}}})),Hi=n(((e,t)=>{function n(e,t=new Map){for(let n of e.references)n.resolved!==null&&t.set(n.identifier,n);for(let r of e.childScopes)r.type!==`function`&&n(r,t);return t}function r(e){if(e.writeExpr)return e.writeExpr;let t=e.identifier;for(;t;){let e=t.parent.type;if(e===`AssignmentExpression`&&t.parent.left===t)return t.parent.right;if(e===`MemberExpression`&&t.parent.object===t){t=t.parent;continue}break}return null}function i(e,t){if(!e||t&&e.defs.some(e=>e.type===`Parameter`))return!1;let n=e.scope.variableScope;return e.references.every(e=>e.from.variableScope===n)}var a=class{constructor(){this.info=new WeakMap}initialize(e){let t=new Set,n=new Set;for(let r of e.prevSegments){let e=this.info.get(r);e&&(e.outdatedReadVariables.forEach(Set.prototype.add,t),e.freshReadVariables.forEach(Set.prototype.add,n))}this.info.set(e,{outdatedReadVariables:t,freshReadVariables:n})}markAsRead(e,t){for(let n of e){let e=this.info.get(n);e&&(e.freshReadVariables.add(t),e.outdatedReadVariables.delete(t))}}makeOutdated(e){for(let t of e){let e=this.info.get(t);e&&(e.freshReadVariables.forEach(Set.prototype.add,e.outdatedReadVariables),e.freshReadVariables.clear())}}isOutdated(e,t){for(let n of e){let e=this.info.get(n);if(e&&e.outdatedReadVariables.has(t))return!0}return!1}};t.exports={meta:{type:`problem`,defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-atomic-updates`},fixable:null,schema:[{type:`object`,properties:{allowProperties:{type:`boolean`}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(e){let[{allowProperties:t}]=e.options,o=e.sourceCode,s=new Map,c=new a,l=null;return{onCodePathStart(e,t){let r=o.getScope(t),i=r.type===`function`&&(r.block.async||r.block.generator);l={upper:l,codePath:e,referenceMap:i?n(r):null,currentSegments:new Set}},onCodePathEnd(){l=l.upper},onCodePathSegmentStart(e){c.initialize(e),l.currentSegments.add(e)},onUnreachableCodePathSegmentStart(e){l.currentSegments.add(e)},onUnreachableCodePathSegmentEnd(e){l.currentSegments.delete(e)},onCodePathSegmentEnd(e){l.currentSegments.delete(e)},Identifier(e){let{referenceMap:t}=l,n=t&&t.get(e);if(!n)return;let a=n.resolved,o=r(n),u=n.identifier.parent.type===`MemberExpression`;if(n.isRead()&&!(o&&o.parent.operator===`=`)&&c.markAsRead(l.currentSegments,a),o&&o.parent.right===o&&!i(a,u)){let e=s.get(o);e||(e=[],s.set(o,e)),e.push(n)}},":expression:exit"(n){if(!l.referenceMap)return;(n.type===`AwaitExpression`||n.type===`YieldExpression`)&&c.makeOutdated(l.currentSegments);let r=s.get(n);if(r){s.delete(n);for(let i of r){let r=i.resolved;c.isOutdated(l.currentSegments,r)&&(n.parent.left===i.identifier?e.report({node:n.parent,messageId:`nonAtomicUpdate`,data:{value:r.name}}):t||e.report({node:n.parent,messageId:`nonAtomicObjectUpdate`,data:{value:o.getText(n.parent.left),object:r.name}}))}}}}}}})),Ui=n(((e,t)=>{let n=M();function r(e){return e[0].toUpperCase()+e.slice(1)}t.exports={meta:{type:`suggestion`,docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-await`},schema:[],messages:{missingAwait:`{{name}} has no 'await' expression.`,removeAsync:`Remove 'async'.`},hasSuggestions:!0},create(e){let t=e.sourceCode,i=null;function a(){i={upper:i,hasAwait:!1}}function o(a){if(!a.generator&&a.async&&!i.hasAwait&&!n.isEmptyFunction(a)){let i=a.parent.type===`MethodDefinition`&&a.parent.value===a||a.parent.type===`Property`&&a.parent.method&&a.parent.value===a?a.parent:a,o=t.getFirstToken(i,e=>e.value===`async`),s=[o.range[0],t.getTokenAfter(o,{includeComments:!0}).range[0]],c=t.getTokenAfter(o),l=c.type===`Punctuator`&&(c.value===`[`||c.value===`(`)&&(i.type===`MethodDefinition`||n.isStartOfExpressionStatement(i))&&n.needsPrecedingSemicolon(t,i);e.report({node:a,loc:n.getFunctionHeadLoc(a,t),messageId:`missingAwait`,data:{name:r(n.getFunctionNameWithKind(a))},suggest:[{messageId:`removeAsync`,fix:e=>e.replaceTextRange(s,l?`;`:``)}]})}i=i.upper}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,AwaitExpression(){i&&(i.hasAwait=!0)},ForOfStatement(e){i&&e.await&&(i.hasAwait=!0)},VariableDeclaration(e){i&&e.kind===`await using`&&(i.hasAwait=!0)}}}}})),Wi=n(((e,t)=>{let{CALL:n,CONSTRUCT:r,ReferenceTracker:i,getStringIfConstant:a}=q(),o=M(),{isValidWithUnicodeFlag:s}=En();function c(e,t){let n;return n=e===`v`?!t.includes(`v`):e===`u`?!t.includes(`u`):!t.includes(`u`)&&!t.includes(`v`),n}t.exports={meta:{type:`suggestion`,defaultOptions:[{}],docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/require-unicode-regexp`},hasSuggestions:!0,messages:{addUFlag:`Add the 'u' flag.`,addVFlag:`Add the 'v' flag.`,requireUFlag:`Use the 'u' flag.`,requireVFlag:`Use the 'v' flag.`},schema:[{type:`object`,properties:{requireFlag:{enum:[`u`,`v`]}},additionalProperties:!1}]},create(e){let t=e.sourceCode,[{requireFlag:l}]=e.options;return{"Literal[regex]"(n){c(l,n.regex.flags||``)&&e.report({messageId:l===`v`?`requireVFlag`:`requireUFlag`,node:n,suggest:s(e.languageOptions.ecmaVersion,n.regex.pattern,l)?[{fix(e){let r=l??`u`,i=t.getText(n),a=i.lastIndexOf(`/`);if(l){let t=l===`u`?`v`:`u`;if(i.includes(t,a))return e.replaceText(n,i.slice(0,a)+i.slice(a).replace(t,l))}return e.insertTextAfter(n,r)},messageId:l===`v`?`addVFlag`:`addUFlag`}]:null})},Program(u){let d=t.getScope(u),f=new i(d),p={RegExp:{[n]:!0,[r]:!0}};for(let{node:n}of f.iterateGlobalReferences(p)){let[r,i]=n.arguments;if(r&&r.type===`SpreadElement`)continue;let u=a(r,d),f=a(i,d),p=!i;typeof f==`string`&&(p=c(l,f)),p&&e.report({messageId:l===`v`?`requireVFlag`:`requireUFlag`,node:n,suggest:typeof u==`string`&&s(e.languageOptions.ecmaVersion,u,l)?[{fix(e){let r=l??`u`;if(i){if(i.type===`Literal`&&typeof i.value==`string`||i.type===`TemplateLiteral`){let n=t.getText(i),a=l===`u`?`v`:`u`;return f.includes(a)?i.type===`Literal`&&i.raw.includes(`\\`)||i.type===`TemplateLiteral`&&(i.expressions.length||i.quasis.some(({value:{raw:e}})=>e.includes(`\\`)))?null:e.replaceText(i,n.replace(a,r)):e.replaceText(i,[n.slice(0,n.length-1),n.slice(n.length-1)].join(r))}return null}let a=t.getLastToken(n,{skip:1});return e.insertTextAfter(a,o.isCommaToken(a)?` "${r}",`:`, "${r}"`)},messageId:l===`v`?`addVFlag`:`addUFlag`}]:null})}}}}}})),Gi=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:`https://eslint.org/docs/latest/rules/require-yield`},schema:[],messages:{missingYield:`This generator function does not have 'yield'.`}},create(e){let t=[],r=e.sourceCode;function i(e){e.generator&&t.push(0)}function a(i){i.generator&&t.pop()===0&&i.body.body.length>0&&e.report({loc:n.getFunctionHeadLoc(i,r),messageId:`missingYield`})}return{FunctionDeclaration:i,"FunctionDeclaration:exit":a,FunctionExpression:i,"FunctionExpression:exit":a,YieldExpression(){t.length>0&&(t[t.length-1]+=1)}}}}})),Ki=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`rest-spread-spacing`,url:`https://eslint.style/rules/rest-spread-spacing`}}]},type:`layout`,docs:{description:`Enforce spacing between rest and spread operators and their expressions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/rest-spread-spacing`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{unexpectedWhitespace:`Unexpected whitespace after {{type}} operator.`,expectedWhitespace:`Expected whitespace after {{type}} operator.`}},create(e){let t=e.sourceCode,n=e.options[0]===`always`;function r(r){let i=t.getFirstToken(r),a=t.getTokenAfter(i),o=t.isSpaceBetween(i,a),s;switch(r.type){case`SpreadElement`:s=`spread`,r.parent.type===`ObjectExpression`&&(s+=` property`);break;case`RestElement`:s=`rest`,r.parent.type===`ObjectPattern`&&(s+=` property`);break;case`ExperimentalSpreadProperty`:s=`spread property`;break;case`ExperimentalRestProperty`:s=`rest property`;break;default:return}n&&!o?e.report({node:r,loc:i.loc,messageId:`expectedWhitespace`,data:{type:s},fix(e){return e.replaceTextRange([i.range[1],a.range[0]],` `)}}):!n&&o&&e.report({node:r,loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpectedWhitespace`,data:{type:s},fix(e){return e.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:r,RestElement:r,ExperimentalSpreadProperty:r,ExperimentalRestProperty:r}}}})),qi=n(((e,t)=>{let n=It(),r=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi`,url:`https://eslint.style/rules/semi`}}]},type:`layout`,docs:{description:`Require or disallow semicolons instead of ASI`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi`},fixable:`code`,schema:{anyOf:[{type:`array`,items:[{enum:[`never`]},{type:`object`,properties:{beforeStatementContinuationChars:{enum:[`always`,`any`,`never`]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:`array`,items:[{enum:[`always`]},{type:`object`,properties:{omitLastInOneLineBlock:{type:`boolean`},omitLastInOneLineClassBody:{type:`boolean`}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:`Missing semicolon.`,extraSemi:`Extra semicolon.`}},create(e){let t=/^[-[(/+`]/u,i=new Set([`get`,`set`,`static`]),a=new Set([`*`,`in`,`instanceof`]),o=e.options[1],s=e.options[0]===`never`,c=!!(o&&o.omitLastInOneLineBlock),l=!!(o&&o.omitLastInOneLineClassBody),u=o&&o.beforeStatementContinuationChars||`any`,d=e.sourceCode;function f(t,i){let a=d.getLastToken(t),o,s,c;i?(o=`extraSemi`,c=a.loc,s=function(e){return new n(e,d).retainSurroundingTokens(a).remove(a)}):(o=`missingSemi`,c={start:a.loc.end,end:r.getNextLocation(d,a.loc.end)},s=function(e){return e.insertTextAfter(a,`;`)}),e.report({node:t,loc:c,messageId:o,fix:s})}function p(e){let t=d.getTokenAfter(e);return!t||r.isClosingBraceToken(t)||r.isSemicolonToken(t)}function m(e){if(!r.isClosingBraceToken(e))return!1;let t=d.getNodeByRangeIndex(e.range[0]);return t.type===`BlockStatement`&&t.parent.type===`ArrowFunctionExpression`}function h(e){if(e.type!==`PropertyDefinition`)return!1;if(!e.computed&&e.key.type===`Identifier`&&i.has(e.key.name)&&!(e.static&&e.key.name===`static`)&&!e.value)return!0;let t=d.getTokenAfter(e);return a.has(t.value)}function g(e){let t=d.getLastToken(e,1),n=d.getTokenAfter(e);return!!n&&r.isTokenOnSameLine(t,n)}function _(e){let t=e.type;return t===`DoWhileStatement`||t===`BreakStatement`||t===`ContinueStatement`||t===`DebuggerStatement`||t===`ImportDeclaration`||t===`ExportAllDeclaration`?!1:t===`ReturnStatement`?!!e.argument:t===`ExportNamedDeclaration`?!!e.declaration:!m(d.getLastToken(e,1))}function v(e){return!!e&&t.test(e.value)&&e.value!==`++`&&e.value!==`--`}function y(e){return p(d.getLastToken(e))?!0:h(e)||g(e)?!1:e.type!==`PropertyDefinition`&&u===`never`&&!_(e)||!v(d.getTokenAfter(e))}function b(e){let t=e.parent,n=d.getTokenAfter(e);return!n||n.value!==`}`?!1:t.type===`BlockStatement`?t.loc.start.line===t.loc.end.line:t.type===`StaticBlock`?d.getFirstToken(t,{skip:1}).loc.start.line===t.loc.end.line:!1}function x(e){let t=e.parent,n=d.getTokenAfter(e);return!n||n.value!==`}`?!1:t.type===`ClassBody`?t.loc.start.line===t.loc.end.line:!1}function S(e){let t=r.isSemicolonToken(d.getLastToken(e));if(s)t&&y(e)?f(e,!0):!t&&u===`always`&&e.type!==`PropertyDefinition`&&v(d.getTokenAfter(e))&&f(e);else{let n=c&&b(e),r=l&&x(e),i=n||r;t&&i?f(e,!0):!t&&!i&&f(e)}}function C(e){let t=e.parent;(t.type!==`ForStatement`||t.init!==e)&&(!/^For(?:In|Of)Statement/u.test(t.type)||t.left!==e)&&S(e)}return{VariableDeclaration:C,ExpressionStatement:S,ReturnStatement:S,ThrowStatement:S,DoWhileStatement:S,DebuggerStatement:S,BreakStatement:S,ContinueStatement:S,ImportDeclaration:S,ExportAllDeclaration:S,ExportNamedDeclaration(e){e.declaration||S(e)},ExportDefaultDeclaration(e){/(?:Class|Function)Declaration/u.test(e.declaration.type)||S(e)},PropertyDefinition:S}}}})),Ji=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi-spacing`,url:`https://eslint.style/rules/semi-spacing`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before and after semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi-spacing`},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],r=e.sourceCode,i=!1,a=!0;typeof t==`object`&&(i=t.before,a=t.after);function o(e){let t=r.getTokenBefore(e);return t&&n.isTokenOnSameLine(t,e)&&r.isSpaceBetween(t,e)}function s(e){let t=r.getTokenAfter(e);return t&&n.isTokenOnSameLine(e,t)&&r.isSpaceBetween(e,t)}function c(e){let t=r.getTokenAfter(e);return!(t&&n.isTokenOnSameLine(e,t))}function l(e){let t=r.getTokenBefore(e);return!(t&&n.isTokenOnSameLine(e,t))}function u(e){let t=r.getTokenAfter(e);return t&&n.isClosingBraceToken(t)||n.isClosingParenToken(t)}function d(t,d){if(n.isSemicolonToken(t)){if(o(t)){if(!i){let n=r.getTokenBefore(t),i={start:n.loc.end,end:t.loc.start};e.report({node:d,loc:i,messageId:`unexpectedWhitespaceBefore`,fix(e){return e.removeRange([n.range[1],t.range[0]])}})}}else if(i){let n=t.loc;e.report({node:d,loc:n,messageId:`missingWhitespaceBefore`,fix(e){return e.insertTextBefore(t,` `)}})}if(!l(t)&&!c(t)&&!u(t)){if(s(t)){if(!a){let n=r.getTokenAfter(t),i={start:t.loc.end,end:n.loc.start};e.report({node:d,loc:i,messageId:`unexpectedWhitespaceAfter`,fix(e){return e.removeRange([t.range[1],n.range[0]])}})}}else if(a){let n=t.loc;e.report({node:d,loc:n,messageId:`missingWhitespaceAfter`,fix(e){return e.insertTextAfter(t,` `)}})}}}}function f(e){d(r.getLastToken(e),e)}return{VariableDeclaration:f,ExpressionStatement:f,BreakStatement:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,ReturnStatement:f,ThrowStatement:f,ImportDeclaration:f,ExportNamedDeclaration:f,ExportAllDeclaration:f,ExportDefaultDeclaration:f,ForStatement(e){e.init&&d(r.getTokenAfter(e.init),e),e.test&&d(r.getTokenAfter(e.test),e)},PropertyDefinition:f}}}})),Yi=n(((e,t)=>{let n=M(),r=[`BreakStatement`,`ContinueStatement`,`DebuggerStatement`,`DoWhileStatement`,`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ExpressionStatement`,`ImportDeclaration`,`ReturnStatement`,`ThrowStatement`,`VariableDeclaration`,`PropertyDefinition`].join(`,`);function i(e){let t=e.type;return t===`BlockStatement`||t===`StaticBlock`||t===`Program`||t===`ClassBody`?e.body:t===`SwitchCase`?e.consequent:null}function a(e){let t=e.parent.type;if(t===`IfStatement`&&e.parent.consequent===e&&e.parent.alternate||t===`DoWhileStatement`)return!0;let n=i(e.parent);return n!==null&&n.at(-1)===e}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`semi-style`,url:`https://eslint.style/rules/semi-style`}}]},type:`layout`,docs:{description:`Enforce location of semicolons`,recommended:!1,url:`https://eslint.org/docs/latest/rules/semi-style`},schema:[{enum:[`last`,`first`]}],fixable:`whitespace`,messages:{expectedSemiColon:`Expected this semicolon to be at {{pos}}.`}},create(e){let t=e.sourceCode,i=e.options[0]||`last`;function o(r,i){let a=t.getTokenBefore(r),o=t.getTokenAfter(r),s=!a||n.isTokenOnSameLine(a,r),c=!o||n.isTokenOnSameLine(r,o);(i===`last`&&!s||i===`first`&&!c)&&e.report({loc:r.loc,messageId:`expectedSemiColon`,data:{pos:i===`last`?`the end of the previous line`:`the beginning of the next line`},fix(e){if(a&&o&&t.commentsExistBetween(a,o))return null;let n=a?a.range[1]:r.range[0],s=o?o.range[0]:r.range[1],c=i===`last`?`;
73
+ `:`
74
+ ;`;return e.replaceTextRange([n,s],c)}})}return{[r](e){if(i===`first`&&a(e))return;let r=t.getLastToken(e);n.isSemicolonToken(r)&&o(r,i)},ForStatement(e){let r=e.init&&t.getTokenAfter(e.init,n.isSemicolonToken),i=e.test&&t.getTokenAfter(e.test,n.isSemicolonToken);r&&o(r,`last`),i&&o(i,`last`)}}}}})),Xi=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:[`none`,`all`,`multiple`,`single`]}],docs:{description:"Enforce sorted `import` declarations within modules",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-imports`},schema:[{type:`object`,properties:{ignoreCase:{type:`boolean`},memberSyntaxSortOrder:{type:`array`,items:{enum:[`none`,`all`,`multiple`,`single`]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:`boolean`},ignoreMemberSort:{type:`boolean`},allowSeparatedGroups:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{sortImportsAlphabetically:`Imports should be sorted alphabetically.`,sortMembersAlphabetically:`Member '{{memberName}}' of the import declaration should be sorted alphabetically.`,unexpectedSyntaxOrder:`Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax.`}},create(e){let[{ignoreCase:t,ignoreDeclarationSort:n,ignoreMemberSort:r,memberSyntaxSortOrder:i,allowSeparatedGroups:a}]=e.options,o=e.sourceCode,s=null;function c(e){return e.specifiers.length===0?`none`:e.specifiers[0].type===`ImportNamespaceSpecifier`?`all`:e.specifiers.length===1?`single`:`multiple`}function l(e){return i.indexOf(c(e))}function u(e){return e.specifiers[0]?e.specifiers[0].local.name:null}function d(e,t){return Math.max(t.loc.start.line-e.loc.end.line-1,0)}return{ImportDeclaration(c){if(!n){if(s&&a&&d(s,c)>0&&(s=null),s){let n=l(c),r=l(s),a=u(c),o=u(s);t&&(o&&=o.toLowerCase(),a&&=a.toLowerCase()),n===r?o&&a&&a<o&&e.report({node:c,messageId:`sortImportsAlphabetically`}):n<r&&e.report({node:c,messageId:`unexpectedSyntaxOrder`,data:{syntaxA:i[n],syntaxB:i[r]}})}s=c}if(!r){let n=c.specifiers.filter(e=>e.type===`ImportSpecifier`),r=t?e=>e.local.name.toLowerCase():e=>e.local.name,i=n.map(r).findIndex((e,t,n)=>n[t-1]>e);i!==-1&&e.report({node:n[i],messageId:`sortMembersAlphabetically`,data:{memberName:n[i].local.name},fix(e){return n.some(e=>o.getCommentsBefore(e).length||o.getCommentsAfter(e).length)?null:e.replaceTextRange([n[0].range[0],n.at(-1).range[1]],n.slice().sort((e,t)=>r(e)>r(t)?1:-1).reduce((e,t,r)=>{let i=r===n.length-1?``:o.getText().slice(n[r].range[1],n[r+1].range[0]);return e+o.getText(t)+i},``))}})}}}}}})),Zi=n(((e,t)=>{var n=function(e,t){var n,r,i=1,a=0,o=0,s=String.alphabet;function c(e,t,r){if(r){for(n=t;r=c(e,n),r<76&&r>65;)++n;return+e.slice(t-1,n)}return r=s&&s.indexOf(e.charAt(t)),r>-1?r+76:(r=e.charCodeAt(t)||0,r<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63)}if((e+=``)!=(t+=``)){for(;i;)if(r=c(e,a++),i=c(t,o++),r<76&&i<76&&r>66&&i>66&&(r=c(e,a,a),i=c(t,o,a=n),o=n),r!=i)return r<i?-1:1}return 0};try{t.exports=n}catch{String.naturalCompare=n}})),Qi=n(((e,t)=>{let n=M(),r=Zi();function i(e){let t=n.getStaticPropertyName(e);return t===null?e.key.name||null:t}let a={asc(e,t){return e<=t},ascI(e,t){return e.toLowerCase()<=t.toLowerCase()},ascN(e,t){return r(e,t)<=0},ascIN(e,t){return r(e.toLowerCase(),t.toLowerCase())<=0},desc(e,t){return a.asc(t,e)},descI(e,t){return a.ascI(t,e)},descN(e,t){return a.ascN(t,e)},descIN(e,t){return a.ascIN(t,e)}};t.exports={meta:{type:`suggestion`,defaultOptions:[`asc`,{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:`Require object keys to be sorted`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-keys`},schema:[{enum:[`asc`,`desc`]},{type:`object`,properties:{caseSensitive:{type:`boolean`},natural:{type:`boolean`},minKeys:{type:`integer`,minimum:2},allowLineSeparatedGroups:{type:`boolean`},ignoreComputedKeys:{type:`boolean`}},additionalProperties:!1}],messages:{sortKeys:`Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'.`}},create(e){let[t,{caseSensitive:n,natural:r,minKeys:o,allowLineSeparatedGroups:s,ignoreComputedKeys:c}]=e.options,l=!n,u=a[t+(l?`I`:``)+(r?`N`:``)],d=null,f=e.sourceCode;return{ObjectExpression(e){d={upper:d,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:e.properties.length}},"ObjectExpression:exit"(){d=d.upper},SpreadElement(e){e.parent.type===`ObjectExpression`&&(d.prevName=null)},Property(n){if(n.parent.type===`ObjectPattern`)return;if(c&&n.computed){d.prevName=null;return}let a=d.prevName,p=d.numKeys,m=i(n),h=d.prevNode&&f.getTokensBetween(d.prevNode,n,{includeComments:!0}),g=d.prevBlankLine;if(h&&(h.forEach((e,t)=>{let n=h[t-1];n&&e.loc.start.line-n.loc.end.line>1&&(g=!0)}),!g&&n.loc.start.line-h.at(-1).loc.end.line>1&&(g=!0),!g&&h[0].loc.start.line-d.prevNode.loc.end.line>1&&(g=!0)),d.prevNode=n,m!==null&&(d.prevName=m),s&&g){d.prevBlankLine=m===null;return}a===null||m===null||p<o||u(a,m)||e.report({node:n,loc:n.key.loc,messageId:`sortKeys`,data:{thisName:m,prevName:a,order:t,insensitive:l?`insensitive `:``,natural:r?`natural `:``}})}}}}})),$i=n(((e,t)=>{t.exports={meta:{type:`suggestion`,defaultOptions:[{ignoreCase:!1}],docs:{description:`Require variables within the same declaration block to be sorted`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/sort-vars`},schema:[{type:`object`,properties:{ignoreCase:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{sortVars:`Variables within the same declaration block should be sorted alphabetically.`}},create(e){let[{ignoreCase:t}]=e.options,n=e.sourceCode;return{VariableDeclaration(r){let i=r.declarations.filter(e=>e.id.type===`Identifier`),a=t?e=>e.id.name.toLowerCase():e=>e.id.name,o=i.some(e=>e.init!==null&&e.init.type!==`Literal`),s=!1;i.slice(1).reduce((t,r)=>{let c=a(t);return a(r)<c?(e.report({node:r,messageId:`sortVars`,fix(e){return o||s?null:e.replaceTextRange([i[0].range[0],i.at(-1).range[1]],i.slice().sort((e,t)=>a(e)>a(t)?1:-1).reduce((e,t,r)=>{let a=r===i.length-1?``:n.getText().slice(i[r].range[1],i[r+1].range[0]);return e+n.getText(t)+a},``))}}),s=!0,t):r},i[0])}}}}})),ea=n(((e,t)=>{let n=M();function r(e){let t=e.parent;return e.type===`BlockStatement`&&n.isFunction(t)&&t.body===e}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-before-blocks`,url:`https://eslint.style/rules/space-before-blocks`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before blocks`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-before-blocks`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{keywords:{enum:[`always`,`never`,`off`]},functions:{enum:[`always`,`never`,`off`]},classes:{enum:[`always`,`never`,`off`]}},additionalProperties:!1}]}],messages:{unexpectedSpace:`Unexpected space before opening brace.`,missingSpace:`Missing space before opening brace.`}},create(e){let t=e.options[0],i=e.sourceCode,a=!0,o=!0,s=!0,c=!1,l=!1,u=!1;typeof t==`object`?(a=t.functions===`always`,o=t.keywords===`always`,s=t.classes===`always`,c=t.functions===`never`,l=t.keywords===`never`,u=t.classes===`never`):t===`never`&&(a=!1,o=!1,s=!1,c=!0,l=!0,u=!0);function d(e,t){return n.isArrowToken(e)||n.isKeywordToken(e)&&!r(t)||n.isColonToken(e)&&t.parent&&t.parent.type===`SwitchCase`&&e===n.getSwitchCaseColonToken(t.parent,i)}function f(t){let f=i.getTokenBefore(t);if(f&&!d(f,t)&&n.isTokenOnSameLine(f,t)){let n=i.isSpaceBetween(f,t),d,p;r(t)?(d=a,p=c):t.type===`ClassBody`?(d=s,p=u):(d=o,p=l),d&&!n?e.report({node:t,messageId:`missingSpace`,fix(e){return e.insertTextBefore(t,` `)}}):p&&n&&e.report({node:t,messageId:`unexpectedSpace`,fix(e){return e.removeRange([f.range[1],t.range[0]])}})}}function p(e){let t=e.cases,n;n=t.length>0?i.getTokenBefore(t[0]):i.getLastToken(e,1),f(n)}return{BlockStatement:f,ClassBody:f,SwitchStatement:p}}}})),ta=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-before-function-paren`,url:`https://eslint.style/rules/space-before-function-paren`}}]},type:`layout`,docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:`https://eslint.org/docs/latest/rules/space-before-function-paren`},fixable:`whitespace`,schema:[{oneOf:[{enum:[`always`,`never`]},{type:`object`,properties:{anonymous:{enum:[`always`,`never`,`ignore`]},named:{enum:[`always`,`never`,`ignore`]},asyncArrow:{enum:[`always`,`never`,`ignore`]}},additionalProperties:!1}]}],messages:{unexpectedSpace:`Unexpected space before function parentheses.`,missingSpace:`Missing space before function parentheses.`}},create(e){let t=e.sourceCode,r=typeof e.options[0]==`string`?e.options[0]:`always`,i=typeof e.options[0]==`object`?e.options[0]:{};function a(e){if(e.id)return!0;let t=e.parent;return t.type===`MethodDefinition`||t.type===`Property`&&(t.kind===`get`||t.kind===`set`||t.method)}function o(e){if(e.type===`ArrowFunctionExpression`){if(e.async&&n.isOpeningParenToken(t.getFirstToken(e,{skip:1})))return i.asyncArrow||r}else if(a(e))return i.named||r;else if(!e.generator)return i.anonymous||r;return`ignore`}function s(r){let i=o(r);if(i===`ignore`)return;let a=t.getFirstToken(r,n.isOpeningParenToken),s=t.getTokenBefore(a),c=t.isSpaceBetween(s,a);c&&i===`never`?e.report({node:r,loc:{start:s.loc.end,end:a.loc.start},messageId:`unexpectedSpace`,fix(e){let n=t.getCommentsBefore(a);return n.some(e=>e.type===`Line`)?null:e.replaceTextRange([s.range[1],a.range[0]],n.reduce((e,n)=>e+t.getText(n),``))}}):!c&&i===`always`&&e.report({node:r,loc:a.loc,messageId:`missingSpace`,fix:e=>e.insertTextAfter(s,` `)})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}}})),na=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-in-parens`,url:`https://eslint.style/rules/space-in-parens`}}]},type:`layout`,docs:{description:`Enforce consistent spacing inside parentheses`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-in-parens`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]},{type:`object`,properties:{exceptions:{type:`array`,items:{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=e.options[0]===`always`,r=e.options[1]&&e.options[1].exceptions||[],i={},a;r.length&&(i.braceException=r.includes(`{}`),i.bracketException=r.includes(`[]`),i.parenException=r.includes(`()`),i.empty=r.includes(`empty`));function o(){let e=[],t=[];return i.braceException&&(e.push(`{`),t.push(`}`)),i.bracketException&&(e.push(`[`),t.push(`]`)),i.parenException&&(e.push(`(`),t.push(`)`)),i.empty&&(e.push(`)`),t.push(`(`)),{openers:e,closers:t}}let s=e.sourceCode;function c(e){return a.openers.includes(e.value)}function l(e){return a.closers.includes(e.value)}function u(e,r){return s.isSpaceBetween(e,r)||!i.empty&&n.isClosingParenToken(r)?!1:t?!c(r):c(r)}function d(e,r){return!n.isTokenOnSameLine(e,r)||r.type===`Line`||!s.isSpaceBetween(e,r)?!1:t?c(r):!c(r)}function f(e,r){return s.isSpaceBetween(e,r)||!i.empty&&n.isOpeningParenToken(e)?!1:t?!l(e):l(e)}function p(e,r){return!n.isTokenOnSameLine(e,r)||!s.isSpaceBetween(e,r)?!1:t?l(e):!l(e)}return{Program:function(t){a=o();let r=s.tokensAndComments;r.forEach((i,a)=>{let o=r[a-1],s=r[a+1];!n.isOpeningParenToken(i)&&!n.isClosingParenToken(i)||(i.value===`(`&&u(i,s)&&e.report({node:t,loc:i.loc,messageId:`missingOpeningSpace`,fix(e){return e.insertTextAfter(i,` `)}}),i.value===`(`&&d(i,s)&&e.report({node:t,loc:{start:i.loc.end,end:s.loc.start},messageId:`rejectedOpeningSpace`,fix(e){return e.removeRange([i.range[1],s.range[0]])}}),i.value===`)`&&f(o,i)&&e.report({node:t,loc:i.loc,messageId:`missingClosingSpace`,fix(e){return e.insertTextBefore(i,` `)}}),i.value===`)`&&p(o,i)&&e.report({node:t,loc:{start:o.loc.end,end:i.loc.start},messageId:`rejectedClosingSpace`,fix(e){return e.removeRange([o.range[1],i.range[0]])}}))})}}}}})),ra=n(((e,t)=>{let{isEqToken:n}=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-infix-ops`,url:`https://eslint.style/rules/space-infix-ops`}}]},type:`layout`,docs:{description:`Require spacing around infix operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-infix-ops`},fixable:`whitespace`,schema:[{type:`object`,properties:{int32Hint:{type:`boolean`,default:!1}},additionalProperties:!1}],messages:{missingSpace:`Operator '{{operator}}' must be spaced.`}},create(e){let t=e.options[0]?e.options[0].int32Hint===!0:!1,r=e.sourceCode;function i(e,t,n){let i=r.getFirstTokenBetween(e,t,e=>e.value===n),a=r.getTokenBefore(i),o=r.getTokenAfter(i);return!r.isSpaceBetween(a,i)||!r.isSpaceBetween(i,o)?i:null}function a(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),a=``;return n.range[0]-t.range[1]===0&&(a=` `),a+=n.value,i.range[0]-n.range[1]===0&&(a+=` `),e.replaceText(n,a)}})}function o(e){let n=e.left.typeAnnotation?e.left.typeAnnotation:e.left,o=e.right,s=i(n,o,e.operator||`=`);s&&(t&&r.getText(e).endsWith(`|0`)||a(e,s))}function s(e){let t=i(e.test,e.consequent,`?`),n=i(e.consequent,e.alternate,`:`);t&&a(e,t),n&&a(e,n)}function c(e){let t=e.id.typeAnnotation?e.id.typeAnnotation:e.id,n=e.init;if(n){let r=i(t,n,`=`);r&&a(e,r)}}return{AssignmentExpression:o,AssignmentPattern:o,BinaryExpression:o,LogicalExpression:o,ConditionalExpression:s,VariableDeclarator:c,PropertyDefinition(e){if(!e.value)return;let t=r.getTokenBefore(e.value,n),i=r.getTokenBefore(t),o=r.getTokenAfter(t);(!r.isSpaceBetween(i,t)||!r.isSpaceBetween(t,o))&&a(e,t)}}}}})),ia=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`space-unary-ops`,url:`https://eslint.style/rules/space-unary-ops`}}]},type:`layout`,docs:{description:`Enforce consistent spacing before or after unary operators`,recommended:!1,url:`https://eslint.org/docs/latest/rules/space-unary-ops`},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}}'.`,wordOperator:`Unary word operator '{{word}}' must be followed by whitespace.`,operator:`Unary operator '{{operator}}' must be followed by whitespace.`,beforeUnaryExpressions:`Space is required before unary expressions '{{token}}'.`}},create(e){let t=e.options[0]||{words:!0,nonwords:!1},r=e.sourceCode;function i(e){return e&&e.type===`UnaryExpression`&&e.argument.operator===`!`&&e.argument&&e.argument.type===`UnaryExpression`&&e.argument.operator===`!`}function a(e){return t.overrides&&Object.hasOwn(t.overrides,e)}function o(e){return t.overrides[e]}function s(t,n,r,i){r.range[0]===n.range[1]&&e.report({node:t,messageId:`wordOperator`,data:{word:i},fix(e){return e.insertTextAfter(n,` `)}})}function c(t,r,i,a){n.canTokensBeAdjacent(r,i)&&i.range[0]>r.range[1]&&e.report({node:t,messageId:`unexpectedAfterWord`,data:{word:a},fix(e){return e.removeRange([r.range[1],i.range[0]])}})}function l(e,n,r,i){a(i)?o(i)?s(e,n,r,i):c(e,n,r,i):t.words?s(e,n,r,i):c(e,n,r,i)}function u(e){let t=r.getFirstTokens(e,3);!e.argument||e.delegate||l(e,t[0],t[1],`yield`)}function d(e){let t=r.getFirstTokens(e,3);l(e,t[0],t[1],`await`)}function f(t,n,r){if(t.prefix){if(i(t))return;n.range[1]===r.range[0]&&e.report({node:t,messageId:`operator`,data:{operator:n.value},fix(e){return e.insertTextAfter(n,` `)}})}else n.range[1]===r.range[0]&&e.report({node:t,messageId:`beforeUnaryExpressions`,data:{token:r.value},fix(e){return e.insertTextBefore(r,` `)}})}function p(t,r,i){t.prefix?i.range[0]>r.range[1]&&e.report({node:t,messageId:`unexpectedAfter`,data:{operator:r.value},fix(e){return n.canTokensBeAdjacent(r,i)?e.removeRange([r.range[1],i.range[0]]):null}}):i.range[0]>r.range[1]&&e.report({node:t,messageId:`unexpectedBefore`,data:{operator:i.value},fix(e){return e.removeRange([r.range[1],i.range[0]])}})}function m(e){let n=e.type===`UpdateExpression`&&!e.prefix?r.getLastTokens(e,2):r.getFirstTokens(e,2),i=n[0],s=n[1];if((e.type===`NewExpression`||e.prefix)&&i.type===`Keyword`){l(e,i,s,i.value);return}let c=e.prefix?n[0].value:n[1].value;a(c)?o(c)?f(e,i,s):p(e,i,s):t.nonwords?f(e,i,s):p(e,i,s)}return{UnaryExpression:m,UpdateExpression:m,NewExpression:m,YieldExpression:u,AwaitExpression:d}}}})),aa=n(((e,t)=>{let n=O(),r=M();function i(e){return`(?:${n(e)})`}function a(e){return`${i(e)}+`}function o(e){return e.includes(`*`)?e:e.concat(`*`)}function s(e){let t=``;return e.length===0?t+=`\\s`:(t+=`(?:\\s|`,e.length===1?t+=a(e[0]):(t+=`(?:`,t+=e.map(a).join(`|`),t+=`)`),t+=`(?:$|[${Array.from(r.LINEBREAKS).join(``)}]))`),t}function c(e,t){let n=`^`;return e.length===1?n+=i(e[0]):(n+=`(?:`,n+=e.map(i).join(`|`),n+=`)`),n+=`?`,n+=s(t),new RegExp(n,`u`)}function l(e){let t=`^(${e.map(i).join(`|`)})?[ \t]+`;return new RegExp(t,`u`)}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`spaced-comment`,url:`https://eslint.style/rules/spaced-comment`}}]},type:`suggestion`,docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:`https://eslint.org/docs/latest/rules/spaced-comment`},fixable:`whitespace`,schema:[{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=e.options[0]!==`never`,r=e.options[1]||{},a=r.block&&r.block.balanced,u=[`block`,`line`].reduce((e,t)=>{let u=o(r[t]&&r[t].markers||r.markers||[]),d=r[t]&&r[t].exceptions||r.exceptions||[];return e[t]={beginRegex:n?c(u,d):l(u),endRegex:RegExp(a&&n?`${s(d)}$`:`[ ]+$`,`u`),hasExceptions:d.length>0,captureMarker:RegExp(`^(${u.map(i).join(`|`)})`,`u`),markers:new Set(u)},e},{});function d(t,r,i,a){let o=t.type.toLowerCase()===`block`?`/*`:`//`;e.report({node:t,fix(e){let r=t.range[0],a=r+2;return n?(i&&(a+=i[0].length),e.insertTextAfterRange([r,a],` `)):(a+=i[0].length,e.replaceTextRange([r,a],o+(i[1]?i[1]:``)))},messageId:r,data:{refChar:a}})}function f(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,a=r-i[0].length;return e.replaceTextRange([a,r],``)},messageId:r})}function p(e){let t=e.type.toLowerCase(),r=u[t],i=t===`block`?`/*`:`//`;if(e.value.length===0||r.markers.has(e.value))return;let o=r.beginRegex.exec(e.value),s=r.endRegex.exec(e.value);if(n){if(!o){let t=r.captureMarker.exec(e.value),n=t?i+t[0]:i;r.hasExceptions?d(e,`expectedExceptionAfter`,t,n):d(e,`expectedSpaceAfter`,t,n)}a&&t===`block`&&!s&&f(e,`expectedSpaceBefore`)}else o&&(o[1]?d(e,`unexpectedSpaceAfterMarker`,o,o[1]):d(e,`unexpectedSpaceAfter`,o,i)),a&&t===`block`&&s&&f(e,`unexpectedSpaceBefore`,s)}return{Program(){t.getAllComments().filter(e=>e.type!==`Shebang`).forEach(p)}}}}})),oa=n(((e,t)=>{let n=M();function r(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r.type===`ExpressionStatement`&&r.expression.type===`Literal`&&r.expression.value===`use strict`)t[n]=r;else break}return t}function i(e){return e.type===`Identifier`}function a(e){return e.every(i)}t.exports={meta:{type:`suggestion`,defaultOptions:[`safe`],docs:{description:`Require or disallow strict mode directives`,recommended:!1,url:`https://eslint.org/docs/latest/rules/strict`},schema:[{enum:[`never`,`global`,`function`,`safe`]}],fixable:`code`,messages:{function:`Use the function form of 'use strict'.`,global:`Use the global form of 'use strict'.`,multiple:`Multiple 'use strict' directives.`,never:`Strict mode is not permitted.`,unnecessary:`Unnecessary 'use strict' directive.`,module:`'use strict' is unnecessary inside of modules.`,implied:`'use strict' is unnecessary when implied strict mode is enabled.`,unnecessaryInClasses:`'use strict' is unnecessary inside of classes.`,nonSimpleParameterList:`'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.`,wrap:`Wrap {{name}} in a function with 'use strict' directive.`}},create(e){let t=e.languageOptions.parserOptions.ecmaFeatures||{},i=[],o=[],[s]=e.options;t.impliedStrict?s=`implied`:s===`safe`&&(s=t.globalReturn||e.languageOptions.sourceType===`commonjs`?`global`:`function`);function c(e){return e===`multiple`||e===`unnecessary`||e===`module`||e===`implied`||e===`unnecessaryInClasses`}function l(e){return t=>t.remove(e)}function u(t,n,r,i,a){t.slice(n,r).forEach(t=>{e.report({node:t,messageId:i,fix:a?l(t):null})})}function d(e,t,n){u(e,0,e.length,t,n)}function f(e,t,n){u(e,1,e.length,t,n)}function p(t,r){let s=o.length>0,c=i.length===0&&o.length===0,u=i.length>0&&i.at(-1),d=r.length>0;d?(a(t.params)?u?e.report({node:r[0],messageId:`unnecessary`,fix:l(r[0])}):s&&e.report({node:r[0],messageId:`unnecessaryInClasses`,fix:l(r[0])}):e.report({node:r[0],messageId:`nonSimpleParameterList`}),f(r,`multiple`,!0)):c&&(a(t.params)?e.report({node:t,messageId:`function`}):e.report({node:t,messageId:`wrap`,data:{name:n.getFunctionNameWithKind(t)}})),i.push(u||d)}function m(){i.pop()}function h(t){let n=t.body.type===`BlockStatement`?r(t.body.body):[];s===`function`?p(t,n):n.length>0&&(a(t.params)?d(n,s,c(s)):(e.report({node:n[0],messageId:`nonSimpleParameterList`}),f(n,`multiple`,!0)))}let g={Program(t){let n=r(t.body);t.sourceType===`module`&&(s=`module`),s===`global`?(t.body.length>0&&n.length===0&&e.report({loc:{start:t.body[0].loc.start,end:t.body.at(-1).loc.end},messageId:`global`}),f(n,`multiple`,!0)):d(n,s,c(s))},FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h};return s===`function`&&Object.assign(g,{ClassBody(){o.push(!0)},"ClassBody:exit"(){o.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),g}}})),sa=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`switch-colon-spacing`,url:`https://eslint.style/rules/switch-colon-spacing`}}]},type:`layout`,docs:{description:`Enforce spacing around colons of switch statements`,recommended:!1,url:`https://eslint.org/docs/latest/rules/switch-colon-spacing`},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,r=e.options[0]||{},i=r.before===!0,a=r.after!==!1;function o(e,r,i){return n.isClosingBraceToken(r)||!n.isTokenOnSameLine(e,r)||t.isSpaceBetween(e,r)===i}function s(e,r){return t.getFirstTokenBetween(e,r,{includeComments:!0,filter:n.isCommentToken})!==null}function c(e,t,n,r){return s(t,n)?null:r?e.insertTextAfter(t,` `):e.removeRange([t.range[1],n.range[0]])}return{SwitchCase(r){let s=n.getSwitchCaseColonToken(r,t),l=t.getTokenBefore(s),u=t.getTokenAfter(s);o(l,s,i)||e.report({node:r,loc:s.loc,messageId:i?`expectedBefore`:`unexpectedBefore`,fix:e=>c(e,l,s,i)}),o(s,u,a)||e.report({node:r,loc:s.loc,messageId:a?`expectedAfter`:`unexpectedAfter`,fix:e=>c(e,s,u,a)})}}}}})),ca=n(((e,t)=>{let n=M();t.exports={meta:{type:`suggestion`,docs:{description:`Require symbol descriptions`,recommended:!1,url:`https://eslint.org/docs/latest/rules/symbol-description`},fixable:null,schema:[],messages:{expected:`Expected Symbol to have a description.`}},create(e){let t=e.sourceCode;function r(t){t.arguments.length===0&&e.report({node:t,messageId:`expected`})}return{"Program:exit"(e){let i=t.getScope(e),a=n.getVariableByName(i,`Symbol`);a&&a.defs.length===0&&a.references.forEach(e=>{let t=e.identifier;n.isCallee(t)&&r(t.parent)})}}}}})),la=n(((e,t)=>{let n=M();t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`template-curly-spacing`,url:`https://eslint.style/rules/template-curly-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing around embedded expressions of template strings`,recommended:!1,url:`https://eslint.org/docs/latest/rules/template-curly-spacing`},fixable:`whitespace`,schema:[{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,r=e.options[0]===`always`;function i(i){if(!i.value.startsWith(`}`))return;let a=t.getTokenBefore(i,{includeComments:!0}),o=t.isSpaceBetween(a,i);n.isTokenOnSameLine(a,i)&&(r&&!o&&e.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:`expectedBefore`,fix:e=>e.insertTextBefore(i,` `)}),!r&&o&&e.report({loc:{start:a.loc.end,end:i.loc.start},messageId:`unexpectedBefore`,fix:e=>e.removeRange([a.range[1],i.range[0]])}))}function a(i){if(!i.value.endsWith("${"))return;let a=t.getTokenAfter(i,{includeComments:!0}),o=t.isSpaceBetween(i,a);n.isTokenOnSameLine(i,a)&&(r&&!o&&e.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:`expectedAfter`,fix:e=>e.insertTextAfter(i,` `)}),!r&&o&&e.report({loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpectedAfter`,fix:e=>e.removeRange([i.range[1],a.range[0]])}))}return{TemplateElement(e){let n=t.getFirstToken(e);i(n),a(n)}}}}})),ua=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`template-tag-spacing`,url:`https://eslint.style/rules/template-tag-spacing`}}]},type:`layout`,docs:{description:`Require or disallow spacing between template tags and their literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/template-tag-spacing`},fixable:`whitespace`,schema:[{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=e.options[0]!==`always`,n=e.sourceCode;function r(r){let i=n.getTokenBefore(r.quasi),a=n.getFirstToken(r.quasi),o=n.isSpaceBetween(i,a);t&&o?e.report({node:r,loc:{start:i.loc.end,end:a.loc.start},messageId:`unexpected`,fix(e){let t=n.getCommentsBefore(r.quasi);return t.some(e=>e.type===`Line`)?null:e.replaceTextRange([i.range[1],a.range[0]],t.reduce((e,t)=>e+n.getText(t),``))}}):!t&&!o&&e.report({node:r,loc:{start:r.loc.start,end:a.loc.start},messageId:`missing`,fix(e){return e.insertTextAfter(i,` `)}})}return{TaggedTemplateExpression:r}}}})),da=n(((e,t)=>{t.exports={meta:{type:`layout`,defaultOptions:[`never`],docs:{description:`Require or disallow Unicode byte order mark (BOM)`,recommended:!1,url:`https://eslint.org/docs/latest/rules/unicode-bom`},fixable:`whitespace`,schema:[{enum:[`always`,`never`]}],messages:{expected:`Expected Unicode BOM (Byte Order Mark).`,unexpected:`Unexpected Unicode BOM (Byte Order Mark).`}},create(e){return{Program:function(t){let n=e.sourceCode,r={column:0,line:1},[i]=e.options;!n.hasBOM&&i===`always`?e.report({node:t,loc:r,messageId:`expected`,fix(e){return e.insertTextBeforeRange([0,1],``)}}):n.hasBOM&&i===`never`&&e.report({node:t,loc:r,messageId:`unexpected`,fix(e){return e.removeRange([-1,0])}})}}}}})),fa=n(((e,t)=>{let n=M();function r(e){if(!e)return!1;let t=e.type===`SequenceExpression`?e.expressions.at(-1):e;return n.isSpecificId(t,`NaN`)||n.isSpecificMemberAccess(t,`Number`,`NaN`)}t.exports={meta:{hasSuggestions:!0,type:`problem`,docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:`https://eslint.org/docs/latest/rules/use-isnan`},schema:[{type:`object`,properties:{enforceForSwitchCase:{type:`boolean`},enforceForIndexOf:{type:`boolean`}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:`Use the isNaN function to compare with NaN.`,switchNaN:`'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.`,caseNaN:`'case NaN' can never match. Use Number.isNaN before the switch.`,indexOfNaN:`Array prototype method '{{ methodName }}' cannot find NaN.`,replaceWithIsNaN:`Replace with Number.isNaN.`,replaceWithCastingAndIsNaN:`Replace with Number.isNaN and cast to a Number.`,replaceWithFindIndex:`Replace with Array.prototype.{{ methodName }}.`}},create(e){let[{enforceForIndexOf:t,enforceForSwitchCase:i}]=e.options,a=e.sourceCode,o=new Set([`==`,`===`,`!=`,`!==`]),s=new Set([`==`,`!=`]);function c(e,t){return n=>{let i=r(e.left)?e.right:e.left,o=i.type===`SequenceExpression`,s=e.operator[0]===`!`?`!`:``,c=a.getText(i);o&&(c=`(${c})`);let l=t(c);return n.replaceText(e,`${s}${l}`)}}function l(t){if(/^(?:[<>]|[!=]=)=?$/u.test(t.operator)&&(r(t.left)||r(t.right))){let n=[],i=(r(t.left)?t.left:t.right).type===`SequenceExpression`,a=o.has(t.operator)&&!i,l=s.has(t.operator);a&&(n.push({messageId:`replaceWithIsNaN`,fix:c(t,e=>`Number.isNaN(${e})`)}),l&&n.push({messageId:`replaceWithCastingAndIsNaN`,fix:c(t,e=>`Number.isNaN(Number(${e}))`)})),e.report({node:t,messageId:`comparisonWithNaN`,suggest:n})}}function u(t){r(t.discriminant)&&e.report({node:t,messageId:`switchNaN`});for(let n of t.cases)r(n.test)&&e.report({node:n,messageId:`caseNaN`})}function d(t){let i=n.skipChainExpression(t.callee);if(i.type===`MemberExpression`){let a=n.getStaticPropertyName(i);if((a===`indexOf`||a===`lastIndexOf`)&&t.arguments.length<=2&&r(t.arguments[0])){let n=t.arguments[0].type!==`SequenceExpression`&&!t.arguments[1],r=[];if(n){let e=i.computed,n=a===`indexOf`?`findIndex`:`findLastIndex`,o=e?`"${n}"`:n;r.push({messageId:`replaceWithFindIndex`,data:{methodName:n},fix:e=>[e.replaceText(i.property,o),e.replaceText(t.arguments[0],`Number.isNaN`)]})}e.report({node:t,messageId:`indexOfNaN`,data:{methodName:a},suggest:r})}}}let f={BinaryExpression:l};return i&&(f.SwitchStatement=u),t&&(f.CallExpression=d),f}}})),pa=n(((e,t)=>{let n=M();t.exports={meta:{type:`problem`,defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:`https://eslint.org/docs/latest/rules/valid-typeof`},hasSuggestions:!0,schema:[{type:`object`,properties:{requireStringLiterals:{type:`boolean`}},additionalProperties:!1}],messages:{invalidValue:`Invalid typeof comparison value.`,notString:`Typeof comparisons should be to string literals.`,suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(e){let t=new Set([`symbol`,`undefined`,`object`,`boolean`,`number`,`string`,`function`,`bigint`]),r=new Set([`==`,`===`,`!=`,`!==`]),i=e.sourceCode,[{requireStringLiterals:a}]=e.options,o;function s(e){let t=o.set.get(e.name);return t&&t.defs.length===0&&t.references.some(t=>t.identifier===e)}function c(e){return e.type===`UnaryExpression`&&e.operator===`typeof`}return{Program(e){o=i.getScope(e)},UnaryExpression(i){if(c(i)){let{parent:o}=i;if(o.type===`BinaryExpression`&&r.has(o.operator)){let r=o.left===i?o.right:o.left;if(r.type===`Literal`||n.isStaticTemplateLiteral(r)){let n=r.type===`Literal`?r.value:r.quasis[0].value.cooked;t.has(n)||e.report({node:r,messageId:`invalidValue`})}else r.type===`Identifier`&&r.name===`undefined`&&s(r)?e.report({node:r,messageId:a?`notString`:`invalidValue`,suggest:[{messageId:`suggestString`,data:{type:`undefined`},fix(e){return e.replaceText(r,`"undefined"`)}}]}):a&&!c(r)&&e.report({node:r,messageId:`notString`})}}}}}}})),ma=n(((e,t)=>{t.exports={meta:{type:`suggestion`,docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/vars-on-top`},schema:[],messages:{top:`All 'var' declarations must be at the top of the function scope.`}},create(e){function t(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`}function n(e){return e.type===`ImportDeclaration`||e.type===`ImportSpecifier`||e.type===`ImportDefaultSpecifier`||e.type===`ImportNamespaceSpecifier`}function r(e){return e.type===`VariableDeclaration`||e.type===`ExportNamedDeclaration`&&e.declaration&&e.declaration.type===`VariableDeclaration`}function i(e,i){let a=i.length,o=0;if(e.parent.type!==`StaticBlock`)for(;o<a&&!(!t(i[o])&&!n(i[o]));++o);for(;o<a;++o){if(!r(i[o]))return!1;if(i[o]===e)return!0}return!1}function a(t,n){i(t,n.body)||e.report({node:t,messageId:`top`})}function o(t){let{parent:n}=t;n.type===`BlockStatement`&&/Function/u.test(n.parent.type)&&i(t,n.body)||n.type===`StaticBlock`&&i(t,n.body)||e.report({node:t,messageId:`top`})}return{"VariableDeclaration[kind='var']"(e){e.parent.type===`ExportNamedDeclaration`?a(e.parent,e.parent.parent):e.parent.type===`Program`?a(e,e.parent):o(e)}}}}})),ha=n(((e,t)=>{let n=M(),r=q();function i(e){let t=e.parent.type===`ChainExpression`?e.parent:e;return t.parent.type===`NewExpression`&&t.parent.callee===t}t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`wrap-iife`,url:`https://eslint.style/rules/wrap-iife`}}]},type:`layout`,docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:`https://eslint.org/docs/latest/rules/wrap-iife`},schema:[{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`,a=e.options[1]&&e.options[1].functionPrototypeMethods,o=e.sourceCode;function s(e){return n.isParenthesised(o,e)}function c(e){return r.isParenthesized(1,e,o)}function l(e){let t=n.skipChainExpression(e.callee);return t.type===`FunctionExpression`?t:a&&t.type===`MemberExpression`&&t.object.type===`FunctionExpression`&&(n.getStaticPropertyName(t)===`call`||n.getStaticPropertyName(t)===`apply`)?t.object:null}return{CallExpression(n){let r=l(n);if(!r)return;let a=s(n),u=s(r);!a&&!u?e.report({node:n,messageId:`wrapInvocation`,fix(e){let i=t===`inside`?r:n;return e.replaceText(i,`(${o.getText(i)})`)}}):t===`inside`&&!u?e.report({node:n,messageId:`wrapExpression`,fix(e){if(c(n)&&!i(n)){let t=o.getTokenAfter(n);return e.replaceTextRange([r.range[1],t.range[1]],`)${o.getText().slice(r.range[1],t.range[0])}`)}return e.replaceText(r,`(${o.getText(r)})`)}}):t===`outside`&&!a&&e.report({node:n,messageId:`moveInvocation`,fix(e){let t=o.getTokenAfter(r);return e.replaceTextRange([t.range[0],n.range[1]],`${o.getText().slice(t.range[1],n.range[1])})`)}})}}}}})),ga=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`wrap-regex`,url:`https://eslint.style/rules/wrap-regex`}}]},type:`layout`,docs:{description:`Require parenthesis around regex literals`,recommended:!1,url:`https://eslint.org/docs/latest/rules/wrap-regex`},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(t.getFirstToken(n).type===`RegularExpression`){let r=t.getTokenBefore(n),i=t.getTokenAfter(n),{parent:a}=n;a.type===`MemberExpression`&&a.object===n&&!(r&&r.value===`(`&&i&&i.value===`)`)&&e.report({node:n,messageId:`requireParens`,fix:e=>e.replaceText(n,`(${t.getText(n)})`)})}}}}}})),_a=n(((e,t)=>{t.exports={meta:{deprecated:{message:`Formatting rules are being moved out of ESLint core.`,url:`https://eslint.org/blog/2023/10/deprecating-formatting-rules/`,deprecatedSince:`8.53.0`,availableUntil:`11.0.0`,replacedBy:[{message:`ESLint Stylistic now maintains deprecated stylistic core rules.`,url:`https://eslint.style/guide/migration`,plugin:{name:`@stylistic/eslint-plugin`,url:`https://eslint.style`},rule:{name:`yield-star-spacing`,url:`https://eslint.style/rules/yield-star-spacing`}}]},type:`layout`,docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:`https://eslint.org/docs/latest/rules/yield-star-spacing`},fixable:`whitespace`,schema:[{oneOf:[{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){return!e||typeof e==`string`?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[e||`after`]:e})(e.options[0]);function r(r,i,a){if(t.isSpaceBetween(i,a)!==n[r]){let t=i.value===`*`,o=n[r],s=t?i:a,c;c=o?r===`before`?`missingBefore`:`missingAfter`:r===`before`?`unexpectedBefore`:`unexpectedAfter`,e.report({node:s,messageId:c,fix(e){return o?t?e.insertTextAfter(s,` `):e.insertTextBefore(s,` `):e.removeRange([i.range[1],a.range[0]])}})}}function i(e){if(!e.delegate)return;let n=t.getFirstTokens(e,3),i=n[0],a=n[1],o=n[2];r(`before`,i,a),r(`after`,a,o)}return{YieldExpression:i}}}})),va=n(((e,t)=>{let n=M();function r(e){return/^(?:==|===|!=|!==|<|>|<=|>=)$/u.test(e)}function i(e){return/^(?:==|===)$/u.test(e)}function a(e){return[`<`,`<=`].includes(e)}function o(e){return e.type===`UnaryExpression`&&e.operator===`-`&&e.prefix&&n.isNumericLiteral(e.argument)}function s(e){return o(e)||n.isStaticTemplateLiteral(e)}function c(e){return e.type===`Literal`?e:o(e)?{type:`Literal`,value:-e.argument.value,raw:`-${e.argument.value}`}:n.isStaticTemplateLiteral(e)?{type:`Literal`,value:e.quasis[0].value.cooked,raw:e.quasis[0].value.raw}:null}t.exports={meta:{type:`suggestion`,defaultOptions:[`never`,{exceptRange:!1,onlyEquality:!1}],docs:{description:`Require or disallow "Yoda" conditions`,recommended:!1,frozen:!0,url:`https://eslint.org/docs/latest/rules/yoda`},schema:[{enum:[`always`,`never`]},{type:`object`,properties:{exceptRange:{type:`boolean`},onlyEquality:{type:`boolean`}},additionalProperties:!1}],fixable:`code`,messages:{expected:`Expected literal to be on the {{expectedSide}} side of {{operator}}.`}},create(e){let[t,{exceptRange:o,onlyEquality:l}]=e.options,u=t===`always`,d=e.sourceCode;function f(e){let t=e.left,r=e.right;function i(){if(e.operator===`&&`&&n.isSameReference(t.right,r.left)){let e=c(t.left),n=c(r.right);if(e===null&&n===null)return!1;if(n===null||e===null||e.value<=n.value)return!0}return!1}function o(){if(e.operator===`||`&&n.isSameReference(t.left,r.right)){let e=c(t.right),n=c(r.left);if(e===null&&n===null)return!1;if(n===null||e===null||e.value<=n.value)return!0}return!1}function s(){return n.isParenthesised(d,e)}return e.type===`LogicalExpression`&&t.type===`BinaryExpression`&&r.type===`BinaryExpression`&&a(t.operator)&&a(r.operator)&&(i()||o())&&s()}let p={"===":`===`,"!==":`!==`,"==":`==`,"!=":`!=`,"<":`>`,">":`<`,"<=":`>=`,">=":`<=`};function m(e){let t=d.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator),r=d.getTokenBefore(t),i=d.getTokenAfter(t),a=d.getText(),o=a.slice(e.range[0],r.range[1]),s=a.slice(r.range[1],t.range[0]),c=a.slice(t.range[1],i.range[0]),l=a.slice(i.range[0],e.range[1]),u=d.getTokenBefore(e),f=d.getTokenAfter(e),m=``,h=``;return u&&u.range[1]===e.range[0]&&!n.canTokensBeAdjacent(u,i)&&(m=` `),f&&e.range[1]===f.range[0]&&!n.canTokensBeAdjacent(r,f)&&(h=` `),m+l+s+p[t.value]+c+o+h}return{BinaryExpression(t){let n=u?t.left:t.right,a=u?t.right:t.left;(a.type===`Literal`||s(a))&&!(n.type===`Literal`||s(n))&&!(!i(t.operator)&&l)&&r(t.operator)&&!(o&&f(t.parent))&&e.report({node:t,messageId:`expected`,data:{operator:t.operator,expectedSide:u?`left`:`right`},fix:e=>e.replaceText(t,m(t))})}}}}})),ya=n(((e,t)=>{let{LazyLoadingRuleMap:n}=v();t.exports=new n(Object.entries({"accessor-pairs":()=>N(),"array-bracket-newline":()=>P(),"array-bracket-spacing":()=>F(),"array-callback-return":()=>I(),"array-element-newline":()=>L(),"arrow-body-style":()=>R(),"arrow-parens":()=>z(),"arrow-spacing":()=>ee(),"block-scoped-var":()=>B(),"block-spacing":()=>te(),"brace-style":()=>V(),"callback-return":()=>H(),camelcase:()=>U(),"capitalized-comments":()=>W(),"class-methods-use-this":()=>ne(),"comma-dangle":()=>re(),"comma-spacing":()=>G(),"comma-style":()=>ie(),complexity:()=>oe(),"computed-property-spacing":()=>se(),"consistent-return":()=>ce(),"consistent-this":()=>le(),"constructor-super":()=>ue(),curly:()=>de(),"default-case":()=>fe(),"default-case-last":()=>pe(),"default-param-last":()=>me(),"dot-location":()=>he(),"dot-notation":()=>_e(),"eol-last":()=>K(),eqeqeq:()=>ve(),"for-direction":()=>J(),"func-call-spacing":()=>Y(),"func-name-matching":()=>be(),"func-names":()=>xe(),"func-style":()=>Se(),"function-call-argument-newline":()=>X(),"function-paren-newline":()=>Ce(),"generator-star-spacing":()=>Z(),"getter-return":()=>we(),"global-require":()=>Te(),"grouped-accessor-pairs":()=>Ee(),"guard-for-in":()=>De(),"handle-callback-err":()=>Q(),"id-blacklist":()=>Oe(),"id-denylist":()=>ke(),"id-length":()=>Ae(),"id-match":()=>je(),"implicit-arrow-linebreak":()=>Me(),indent:()=>Ne(),"indent-legacy":()=>Pe(),"init-declarations":()=>Fe(),"jsx-quotes":()=>Ie(),"key-spacing":()=>Le(),"keyword-spacing":()=>Re(),"line-comment-position":()=>ze(),"linebreak-style":()=>Be(),"lines-around-comment":()=>Ve(),"lines-around-directive":()=>He(),"lines-between-class-members":()=>Ue(),"logical-assignment-operators":()=>We(),"max-classes-per-file":()=>Ge(),"max-depth":()=>Ke(),"max-len":()=>qe(),"max-lines":()=>Je(),"max-lines-per-function":()=>Ye(),"max-nested-callbacks":()=>Xe(),"max-params":()=>Ze(),"max-statements":()=>Qe(),"max-statements-per-line":()=>$e(),"multiline-comment-style":()=>et(),"multiline-ternary":()=>tt(),"new-cap":()=>nt(),"new-parens":()=>rt(),"newline-after-var":()=>it(),"newline-before-return":()=>at(),"newline-per-chained-call":()=>$(),"no-alert":()=>ot(),"no-array-constructor":()=>st(),"no-async-promise-executor":()=>ct(),"no-await-in-loop":()=>lt(),"no-bitwise":()=>ut(),"no-buffer-constructor":()=>dt(),"no-caller":()=>ft(),"no-case-declarations":()=>pt(),"no-catch-shadow":()=>mt(),"no-class-assign":()=>ht(),"no-compare-neg-zero":()=>gt(),"no-cond-assign":()=>_t(),"no-confusing-arrow":()=>vt(),"no-console":()=>yt(),"no-const-assign":()=>bt(),"no-constant-binary-expression":()=>xt(),"no-constant-condition":()=>St(),"no-constructor-return":()=>Ct(),"no-continue":()=>wt(),"no-control-regex":()=>Et(),"no-debugger":()=>Dt(),"no-delete-var":()=>Ot(),"no-div-regex":()=>kt(),"no-dupe-args":()=>At(),"no-dupe-class-members":()=>jt(),"no-dupe-else-if":()=>Mt(),"no-dupe-keys":()=>Nt(),"no-duplicate-case":()=>Pt(),"no-duplicate-imports":()=>Ft(),"no-else-return":()=>Lt(),"no-empty":()=>Rt(),"no-empty-character-class":()=>zt(),"no-empty-function":()=>Bt(),"no-empty-pattern":()=>Vt(),"no-empty-static-block":()=>Ht(),"no-eq-null":()=>Ut(),"no-eval":()=>Wt(),"no-ex-assign":()=>Gt(),"no-extend-native":()=>Kt(),"no-extra-bind":()=>qt(),"no-extra-boolean-cast":()=>Jt(),"no-extra-label":()=>Yt(),"no-extra-parens":()=>Xt(),"no-extra-semi":()=>Zt(),"no-fallthrough":()=>$t(),"no-floating-decimal":()=>en(),"no-func-assign":()=>tn(),"no-global-assign":()=>nn(),"no-implicit-coercion":()=>rn(),"no-implicit-globals":()=>an(),"no-implied-eval":()=>on(),"no-import-assign":()=>sn(),"no-inline-comments":()=>cn(),"no-inner-declarations":()=>ln(),"no-invalid-regexp":()=>un(),"no-invalid-this":()=>dn(),"no-irregular-whitespace":()=>fn(),"no-iterator":()=>pn(),"no-label-var":()=>mn(),"no-labels":()=>hn(),"no-lone-blocks":()=>gn(),"no-lonely-if":()=>_n(),"no-loop-func":()=>vn(),"no-loss-of-precision":()=>yn(),"no-magic-numbers":()=>bn(),"no-misleading-character-class":()=>On(),"no-mixed-operators":()=>kn(),"no-mixed-requires":()=>An(),"no-mixed-spaces-and-tabs":()=>jn(),"no-multi-assign":()=>Mn(),"no-multi-spaces":()=>Nn(),"no-multi-str":()=>Pn(),"no-multiple-empty-lines":()=>Fn(),"no-native-reassign":()=>In(),"no-negated-condition":()=>Ln(),"no-negated-in-lhs":()=>Rn(),"no-nested-ternary":()=>zn(),"no-new":()=>Bn(),"no-new-func":()=>Vn(),"no-new-native-nonconstructor":()=>Hn(),"no-new-object":()=>Un(),"no-new-require":()=>Wn(),"no-new-symbol":()=>Gn(),"no-new-wrappers":()=>Kn(),"no-nonoctal-decimal-escape":()=>qn(),"no-obj-calls":()=>Jn(),"no-object-constructor":()=>Yn(),"no-octal":()=>Xn(),"no-octal-escape":()=>Zn(),"no-param-reassign":()=>Qn(),"no-path-concat":()=>$n(),"no-plusplus":()=>er(),"no-process-env":()=>tr(),"no-process-exit":()=>nr(),"no-promise-executor-return":()=>rr(),"no-proto":()=>ir(),"no-prototype-builtins":()=>ar(),"no-redeclare":()=>or(),"no-regex-spaces":()=>sr(),"no-restricted-exports":()=>cr(),"no-restricted-globals":()=>lr(),"no-restricted-imports":()=>dr(),"no-restricted-modules":()=>fr(),"no-restricted-properties":()=>pr(),"no-restricted-syntax":()=>mr(),"no-return-assign":()=>hr(),"no-return-await":()=>gr(),"no-script-url":()=>_r(),"no-self-assign":()=>vr(),"no-self-compare":()=>yr(),"no-sequences":()=>br(),"no-setter-return":()=>xr(),"no-shadow":()=>Sr(),"no-shadow-restricted-names":()=>Cr(),"no-spaced-func":()=>wr(),"no-sparse-arrays":()=>Tr(),"no-sync":()=>Er(),"no-tabs":()=>Dr(),"no-template-curly-in-string":()=>Or(),"no-ternary":()=>kr(),"no-this-before-super":()=>Ar(),"no-throw-literal":()=>jr(),"no-trailing-spaces":()=>Mr(),"no-unassigned-vars":()=>Nr(),"no-undef":()=>Pr(),"no-undef-init":()=>Fr(),"no-undefined":()=>Ir(),"no-underscore-dangle":()=>Lr(),"no-unexpected-multiline":()=>Rr(),"no-unmodified-loop-condition":()=>Br(),"no-unneeded-ternary":()=>Vr(),"no-unreachable":()=>Hr(),"no-unreachable-loop":()=>Ur(),"no-unsafe-finally":()=>Wr(),"no-unsafe-negation":()=>Gr(),"no-unsafe-optional-chaining":()=>Kr(),"no-unused-expressions":()=>qr(),"no-unused-labels":()=>Jr(),"no-unused-private-class-members":()=>Yr(),"no-unused-vars":()=>Xr(),"no-use-before-define":()=>Zr(),"no-useless-assignment":()=>Qr(),"no-useless-backreference":()=>$r(),"no-useless-call":()=>ei(),"no-useless-catch":()=>ti(),"no-useless-computed-key":()=>ni(),"no-useless-concat":()=>ri(),"no-useless-constructor":()=>ii(),"no-useless-escape":()=>ai(),"no-useless-rename":()=>oi(),"no-useless-return":()=>si(),"no-var":()=>ci(),"no-void":()=>li(),"no-warning-comments":()=>ui(),"no-whitespace-before-property":()=>di(),"no-with":()=>fi(),"nonblock-statement-body-position":()=>pi(),"object-curly-newline":()=>mi(),"object-curly-spacing":()=>hi(),"object-property-newline":()=>gi(),"object-shorthand":()=>_i(),"one-var":()=>vi(),"one-var-declaration-per-line":()=>yi(),"operator-assignment":()=>bi(),"operator-linebreak":()=>xi(),"padded-blocks":()=>Si(),"padding-line-between-statements":()=>Ci(),"prefer-arrow-callback":()=>wi(),"prefer-const":()=>Ti(),"prefer-destructuring":()=>Ei(),"prefer-exponentiation-operator":()=>Di(),"prefer-named-capture-group":()=>Oi(),"prefer-numeric-literals":()=>ki(),"prefer-object-has-own":()=>Ai(),"prefer-object-spread":()=>ji(),"prefer-promise-reject-errors":()=>Mi(),"prefer-reflect":()=>Ni(),"prefer-regex-literals":()=>Pi(),"prefer-rest-params":()=>Fi(),"prefer-spread":()=>Ii(),"prefer-template":()=>Li(),"preserve-caught-error":()=>Ri(),"quote-props":()=>zi(),quotes:()=>Bi(),radix:()=>Vi(),"require-atomic-updates":()=>Hi(),"require-await":()=>Ui(),"require-unicode-regexp":()=>Wi(),"require-yield":()=>Gi(),"rest-spread-spacing":()=>Ki(),semi:()=>qi(),"semi-spacing":()=>Ji(),"semi-style":()=>Yi(),"sort-imports":()=>Xi(),"sort-keys":()=>Qi(),"sort-vars":()=>$i(),"space-before-blocks":()=>ea(),"space-before-function-paren":()=>ta(),"space-in-parens":()=>na(),"space-infix-ops":()=>ra(),"space-unary-ops":()=>ia(),"spaced-comment":()=>aa(),strict:()=>oa(),"switch-colon-spacing":()=>sa(),"symbol-description":()=>ca(),"template-curly-spacing":()=>la(),"template-tag-spacing":()=>ua(),"unicode-bom":()=>da(),"use-isnan":()=>fa(),"valid-typeof":()=>pa(),"vars-on-top":()=>ma(),"wrap-iife":()=>ha(),"wrap-regex":()=>ga(),"yield-star-spacing":()=>_a(),yoda:()=>va()}))})),ba=n(((e,t)=>{function n(e,t=`Assertion failed.`){if(!e)throw Error(t)}t.exports=n})),xa=n(((e,t)=>{t.exports=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw Error(`Not implemented.`)}}})),Sa=n(((e,t)=>{function n(e,t){for(let n=0,r=e.length-1;n<=r;){let i=(n+r)/2|0;if(t<=e[i].range[0]){if(i===n)return i;r=i}else n=i+1}return e.length}function r(e,t,n){if(n===-1)return 0;if(n in t)return t[n];if(n-1 in t){let r=t[n-1],i=e[r];return i?i.range[0]>=n?r:r+1:e.length}return n===0?0:e.length}function i(e,t,n){if(n===-1)return e.length-1;if(n in t)return t[n]-1;if(n-1 in t){let r=t[n-1],i=e[r];return i?i.range[1]>n?r-1:r:e.length-1}return n===0?-1:e.length-1}t.exports={search:n,getFirstIndex:r,getLastIndex:i}})),Ca=n(((e,t)=>{let n=xa(),r=Sa();t.exports=class extends n{constructor(e,t,n,i,a){super(),this.tokens=e,this.comments=t,this.tokenIndex=r.getLastIndex(e,n,a),this.commentIndex=r.search(t,a)-1,this.border=i}moveNext(){let e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,--this.tokenIndex):t?(this.current=t,--this.commentIndex):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}}})),wa=n(((e,t)=>{let n=xa(),{getLastIndex:r,getFirstIndex:i}=Sa();t.exports=class extends n{constructor(e,t,n,a,o){super(),this.tokens=e,this.index=r(e,n,o),this.indexEnd=i(e,n,a)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],--this.index,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}}})),Ta=n(((e,t)=>{let n=xa();t.exports=class extends n{constructor(e){super(),this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}}})),Ea=n(((e,t)=>{let n=Ta();t.exports=class extends n{constructor(e,t){super(e),this.predicate=t}moveNext(){let e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}}})),Da=n(((e,t)=>{let n=xa(),{getFirstIndex:r,search:i}=Sa();t.exports=class extends n{constructor(e,t,n,a,o){super(),this.tokens=e,this.comments=t,this.tokenIndex=r(e,n,a),this.commentIndex=i(t,a),this.border=o}moveNext(){let e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,t=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!t||e.range[0]<t.range[0])?(this.current=e,this.tokenIndex+=1):t?(this.current=t,this.commentIndex+=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[1]<=this.border)}}})),Oa=n(((e,t)=>{let n=xa(),{getFirstIndex:r,getLastIndex:i}=Sa();t.exports=class extends n{constructor(e,t,n,a,o){super(),this.tokens=e,this.index=r(e,n,a),this.indexEnd=i(e,n,o)}moveNext(){return this.index<=this.indexEnd?(this.current=this.tokens[this.index],this.index+=1,!0):!1}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}}})),ka=n(((e,t)=>{let n=Ta();t.exports=class extends n{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0?(--this.count,super.moveNext()):!1}}})),Aa=n(((e,t)=>{let n=Ta();t.exports=class extends n{constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(--this.count,!super.moveNext())return!1;return super.moveNext()}}})),ja=n(((e,t)=>{let n=Ca(),r=wa(),i=Ea(),a=Da(),o=Oa(),s=ka(),c=Aa();var l=class{constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,n,r,i,a){return new(a?this.TokenCommentCursor:this.TokenCursor)(e,t,n,r,i)}createCursor(e,t,n,r,a,o,l,u,d){let f=this.createBaseCursor(e,t,n,r,a,o);return l&&(f=new i(f,l)),u>=1&&(f=new c(f,u)),d>=0&&(f=new s(f,d)),f}};t.exports={forward:new l(o,a),backward:new l(r,n)}})),Ma=n(((e,t)=>{let n=Oa();t.exports=class extends n{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i),this.index=Math.max(0,this.index-a),this.indexEnd=Math.min(e.length-1,this.indexEnd+o)}}})),Na=n(((e,t)=>{let{isCommentToken:n}=q(),r=ba(),i=ja(),a=Oa(),o=Ma(),s=Sa(),c=Symbol(`tokens`),l=Symbol(`comments`),u=Symbol(`indexMap`);function d(e,t){let n=Object.create(null),r=0,i=0,a,o;for(;r<e.length||i<t.length;){for(a=i<t.length?t[i].range[0]:2**53-1;r<e.length&&(o=e[r].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,r+=1;for(a=r<e.length?e[r].range[0]:2**53-1;i<t.length&&(o=t[i].range)[0]<a;)n[o[0]]=r,n[o[1]-1]=r,i+=1}return n}function f(e,t,n,i,a,o,s){let c=!1,l=0,u=null;return typeof s==`number`?l=s|0:typeof s==`function`?u=s:s&&(c=!!s.includeComments,l=s.skip|0,u=s.filter||null),r(l>=0,`options.skip should be zero or a positive integer.`),r(!u||typeof u==`function`,`options.filter should be a function.`),e.createCursor(t,n,i,a,o,c,u,l,-1)}function p(e,t,n,i,a,o,s){let c=!1,l=0,u=!1,d=null;return typeof s==`number`?(l=s|0,u=!0):typeof s==`function`?d=s:s&&(c=!!s.includeComments,l=s.count|0,u=typeof s.count==`number`,d=s.filter||null),r(l>=0,`options.count should be zero or a positive integer.`),r(!d||typeof d==`function`,`options.filter should be a function.`),e.createCursor(t,n,i,a,o,c,d,0,u?l:-1)}function m(e,t,n,r,s,c,l){return c===void 0&&l===void 0?new a(e,t,n,r,s):typeof c==`number`||c===void 0?new o(e,t,n,r,s,c|0,l|0):p(i.forward,e,t,n,r,s,c)}function h(e){let t=[],r=e.getOneToken();for(;r&&n(r);)t.push(r),r=e.getOneToken();return t}t.exports=class{constructor(e,t){this[c]=e,this[l]=t,this[u]=d(e,t)}getTokenByRangeStart(e,t){let n=t&&t.includeComments,r=i.forward.createBaseCursor(this[c],this[l],this[u],e,-1,n).getOneToken();return r&&r.range[0]===e?r:null}getFirstToken(e,t){return f(i.forward,this[c],this[l],this[u],e.range[0],e.range[1],t).getOneToken()}getLastToken(e,t){return f(i.backward,this[c],this[l],this[u],e.range[0],e.range[1],t).getOneToken()}getTokenBefore(e,t){return f(i.backward,this[c],this[l],this[u],-1,e.range[0],t).getOneToken()}getTokenAfter(e,t){return f(i.forward,this[c],this[l],this[u],e.range[1],-1,t).getOneToken()}getFirstTokenBetween(e,t,n){return f(i.forward,this[c],this[l],this[u],e.range[1],t.range[0],n).getOneToken()}getLastTokenBetween(e,t,n){return f(i.backward,this[c],this[l],this[u],e.range[1],t.range[0],n).getOneToken()}getFirstTokens(e,t){return p(i.forward,this[c],this[l],this[u],e.range[0],e.range[1],t).getAllTokens()}getLastTokens(e,t){return p(i.backward,this[c],this[l],this[u],e.range[0],e.range[1],t).getAllTokens().reverse()}getTokensBefore(e,t){return p(i.backward,this[c],this[l],this[u],-1,e.range[0],t).getAllTokens().reverse()}getTokensAfter(e,t){return p(i.forward,this[c],this[l],this[u],e.range[1],-1,t).getAllTokens()}getFirstTokensBetween(e,t,n){return p(i.forward,this[c],this[l],this[u],e.range[1],t.range[0],n).getAllTokens()}getLastTokensBetween(e,t,n){return p(i.backward,this[c],this[l],this[u],e.range[1],t.range[0],n).getAllTokens().reverse()}getTokens(e,t,n){return m(this[c],this[l],this[u],e.range[0],e.range[1],t,n).getAllTokens()}getTokensBetween(e,t,n){return m(this[c],this[l],this[u],e.range[1],t.range[0],n,n).getAllTokens()}commentsExistBetween(e,t){let n=s.search(this[l],e.range[1]);return n<this[l].length&&this[l][n].range[1]<=t.range[0]}getCommentsBefore(e){return h(p(i.backward,this[c],this[l],this[u],-1,e.range[0],{includeComments:!0})).reverse()}getCommentsAfter(e){return h(p(i.forward,this[c],this[l],this[u],e.range[1],-1,{includeComments:!0}))}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:n})}}})),Pa=n(((e,t)=>{let n=d()(`eslint:code-path`);function r(e){return e.id+(e.reachable?``:`!`)}function i(e,t){let n=t?`:${t}`:``;switch(e.type){case`Identifier`:return`${e.type}${n} (${e.name})`;case`Literal`:return`${e.type}${n} (${e.value})`;default:return`${e.type}${n}`}}t.exports={enabled:n.enabled,dump:n,dumpState:n.enabled?function(e,t,a){for(let n=0;n<t.currentSegments.length;++n){let r=t.currentSegments[n].internal;if(a){let t=r.nodes.length-1;t>=0&&r.nodes[t]===i(e,`enter`)?r.nodes[t]=i(e,void 0):r.nodes.push(i(e,`exit`))}else r.nodes.push(i(e,`enter`))}n([`${t.currentSegments.map(r).join(`,`)})`,`${e.type}${a?`:exit`:``}`].join(` `))}:n,dumpDot:n.enabled?function(e){let t=`
75
+ digraph {
76
+ node[shape=box,style="rounded,filled",fillcolor=white];
77
+ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
78
+ `;e.returnedSegments.length>0&&(t+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
79
+ `),e.thrownSegments.length>0&&(t+=`thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize=true];
80
+ `);let r=Object.create(null),i=this.makeDotArrows(e,r);for(let e in r){let n=r[e];t+=`${e}[`,n.reachable?t+=`label="`:t+=`style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n`,n.internal.nodes.length>0?t+=n.internal.nodes.join(`\\n`):t+=`????`,t+=`"];
81
+ `}t+=`${i}\n`,t+=`}`,n(`DOT`,t)}:n,makeDotArrows(e,t){let n=[[e.initialSegment,0]],r=t||Object.create(null),i=e.initialSegment.id,a=`initial->${e.initialSegment.id}`;for(;n.length>0;){let e=n.pop(),t=e[0],o=e[1];if(r[t.id]&&o===0)continue;r[t.id]=t;let s=t.allNextSegments[o];s&&(i===t.id?a+=`->${s.id}`:a+=`;\n${t.id}->${s.id}`,i=s.id,n.unshift([t,1+o]),n.push([s,0]))}return e.returnedSegments.forEach(e=>{i===e.id?a+=`->final`:a+=`;\n${e.id}->final`,i=null}),e.thrownSegments.forEach(e=>{i===e.id?a+=`->thrown`:a+=`;\n${e.id}->thrown`,i=null}),`${a};`}}})),Fa=n(((e,t)=>{let n=Pa();function r(e){return e.reachable}t.exports=class e{constructor(e,t,i){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(r),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=i,Object.defineProperty(this,`internal`,{value:{used:!1,loopedPrevSegments:[]}}),n.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.includes(e)}static newRoot(t){return new e(t,[],!0)}static newNext(t,n){return new e(t,e.flattenUnusedSegments(n),n.some(r))}static newUnreachable(t,n){let r=new e(t,e.flattenUnusedSegments(n),!1);return e.markUsed(r),r}static newDisconnected(t,n){return new e(t,[],n.some(r))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let t;if(e.reachable)for(t=0;t<e.allPrevSegments.length;++t){let n=e.allPrevSegments[t];n.allNextSegments.push(e),n.nextSegments.push(e)}else for(t=0;t<e.allPrevSegments.length;++t)e.allPrevSegments[t].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,t){e.internal.loopedPrevSegments.push(t)}static flattenUnusedSegments(e){let t=new Set;for(let n=0;n<e.length;++n){let r=e[n];if(!t.has(r))if(r.internal.used)t.add(r);else for(let e=0;e<r.allPrevSegments.length;++e){let n=r.allPrevSegments[e];t.has(n)||t.add(n)}}return[...t]}}})),Ia=n(((e,t)=>{let n=ba(),r=Fa();function i(e){return e.reachable}function a(e,t,n,r){let i=e.segmentsList,a=t>=0?t:i.length+t,o=n>=0?n:i.length+n,s=[];for(let t=0;t<e.count;++t){let n=[];for(let e=a;e<=o;++e)n.push(i[e][t]);s.push(r(e.idGenerator.next(),n))}return s}function o(e,t){let n=t;for(;n.length>e.count;){let t=[];for(let i=0,a=Math.floor(n.length/2);i<a;++i)t.push(r.newNext(e.idGenerator.next(),[n[i],n[i+a]]));n=t}return n}t.exports=class e{constructor(e,t,n){this.idGenerator=e,this.upper=t,this.count=n,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(i)}makeNext(e,t){return a(this,e,t,r.newNext)}makeUnreachable(e,t){return a(this,e,t,r.newUnreachable)}makeDisconnected(e,t){return a(this,e,t,r.newDisconnected)}add(e){n(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(o(this,e))}replaceHead(e){n(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,o(this,e))}addAll(e){n(e.count===this.count),this.segmentsList.push(...e.segmentsList)}clear(){this.segmentsList=[]}static newRoot(t){let n=new e(t,null,1);return n.add([r.newRoot(t.next())]),n}static newEmpty(t,n){return new e(t.idGenerator,t,(n?2:1)*t.count)}}})),La=n(((e,t)=>{let n=Fa(),r=Ia();var i=class{constructor(e,t,n,i){this.upper=e,this.breakable=t,this.label=n,this.brokenForkContext=r.newEmpty(i)}},a=class{constructor(e){this.upper=e,this.choiceContextCount=0}},o=class{constructor(e,t,n,i){this.upper=e,this.kind=t,this.isForkingAsResult=n,this.trueForkContext=r.newEmpty(i),this.falseForkContext=r.newEmpty(i),this.nullishForkContext=r.newEmpty(i),this.processed=!1}},s=class{constructor(e,t,n,r){this.upper=e,this.type=t,this.label=n,this.brokenForkContext=r.brokenForkContext}},c=class extends s{constructor(e,t,n){super(e,`WhileStatement`,t,n),this.test=void 0,this.continueDestSegments=null}},l=class extends s{constructor(e,t,n,i){super(e,`DoWhileStatement`,t,n),this.test=void 0,this.entrySegments=null,this.continueForkContext=r.newEmpty(i)}},u=class extends s{constructor(e,t,n){super(e,`ForStatement`,t,n),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}},d=class extends s{constructor(e,t,n){super(e,`ForInStatement`,t,n),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}},f=class extends s{constructor(e,t,n){super(e,`ForOfStatement`,t,n),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}},p=class{constructor(e,t){this.upper=e,this.hasCase=t,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}},m=class{constructor(e,t,n){this.upper=e,this.hasFinalizer=t,this.position=`try`,this.returnedForkContext=t?r.newEmpty(n):null,this.thrownForkContext=r.newEmpty(n),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}};function h(e,t,n,r){for(let i=0;i<r.length;++i){let a=r[i];e.push(a),t.includes(a)||n.push(a)}}function g(e,t){if(!t)return e.loopContext;let n=e.loopContext;for(;n;){if(n.label===t)return n;n=n.upper}return null}function _(e,t){let n=e.breakContext;for(;n;){if(t?n.label===t:n.breakable)return n;n=n.upper}return null}function v(e){let t=e.tryContext;for(;t;){if(t.hasFinalizer&&t.position!==`finally`)return t;t=t.upper}return e}function y(e){let t=e.tryContext;for(;t;){if(t.position===`try`||t.hasFinalizer&&t.position===`catch`)return t;t=t.upper}return e}function b(e,t){e.splice(e.indexOf(t),1)}function x(e,t){for(let n=0;n<e.length;++n){let r=e[n],i=t[n];b(r.nextSegments,i),b(r.allNextSegments,i),b(i.prevSegments,r),b(i.allPrevSegments,r)}}function S(e,t,r){let i=n.flattenUnusedSegments(t),a=n.flattenUnusedSegments(r),o=Math.min(i.length,a.length);for(let t=0;t<o;++t){let r=i[t],o=a[t];o.reachable&&r.nextSegments.push(o),r.reachable&&o.prevSegments.push(r),r.allNextSegments.push(o),o.allPrevSegments.push(r),o.allPrevSegments.length>=2&&n.markPrevSegmentAsLooped(o,r),e.notifyLooped(r,o)}}function C(e,t,n){t.processed||(t.trueForkContext.add(n),t.falseForkContext.add(n),t.nullishForkContext.add(n)),e.test!==!0&&e.brokenForkContext.addAll(t.falseForkContext),e.endOfTestSegments=t.trueForkContext.makeNext(0,-1)}t.exports=class{constructor(e,t){this.idGenerator=e,this.notifyLooped=t,this.forkContext=r.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let n=this.finalSegments,i=this.returnedForkContext,a=this.thrownForkContext;i.add=h.bind(null,i,a,n),a.add=h.bind(null,a,i,n)}get headSegments(){return this.forkContext.head}get parentForkContext(){let e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=r.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){let e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,t){this.choiceContext=new o(this.choiceContext,e,t,this.forkContext)}popChoiceContext(){let e=this.choiceContext,t=this.forkContext,n=t.head;switch(this.choiceContext=e.upper,e.kind){case`&&`:case`||`:case`??`:if(e.processed||(e.trueForkContext.add(n),e.falseForkContext.add(n),e.nullishForkContext.add(n)),e.isForkingAsResult){let t=this.choiceContext;return t.trueForkContext.addAll(e.trueForkContext),t.falseForkContext.addAll(e.falseForkContext),t.nullishForkContext.addAll(e.nullishForkContext),t.processed=!0,e}break;case`test`:e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(n)):(e.trueForkContext.clear(),e.trueForkContext.add(n));break;case`loop`:return e;default:throw Error(`unreachable`)}let r=e.trueForkContext;return r.addAll(e.falseForkContext),t.replaceHead(r.makeNext(0,-1)),e}makeLogicalRight(){let e=this.choiceContext,t=this.forkContext;if(e.processed){let n;switch(e.kind){case`&&`:n=e.trueForkContext;break;case`||`:n=e.falseForkContext;break;case`??`:n=e.nullishForkContext;break;default:throw Error(`unreachable`)}t.replaceHead(n.makeNext(0,-1)),n.clear(),e.processed=!1}else{switch(e.kind){case`&&`:e.falseForkContext.add(t.head),e.nullishForkContext.add(t.head);break;case`||`:e.trueForkContext.add(t.head);break;case`??`:e.trueForkContext.add(t.head),e.falseForkContext.add(t.head);break;default:throw Error(`unreachable`)}t.replaceHead(t.makeNext(-1,-1))}}makeIfConsequent(){let e=this.choiceContext,t=this.forkContext;e.processed||(e.trueForkContext.add(t.head),e.falseForkContext.add(t.head),e.nullishForkContext.add(t.head)),e.processed=!1,t.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let e=this.choiceContext,t=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(t.head),e.processed=!0,t.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new a(this.chainContext)}popChainContext(){let e=this.chainContext;this.chainContext=e.upper;for(let t=e.choiceContextCount;t>0;--t)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext(`??`,!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,t){this.switchContext=new p(this.switchContext,e),this.pushBreakContext(!0,t)}popSwitchContext(){let e=this.switchContext;this.switchContext=e.upper;let t=this.forkContext,n=this.popBreakContext().brokenForkContext;if(e.forkCount===0){n.empty||(n.add(t.makeNext(-1,-1)),t.replaceHead(n.makeNext(0,-1)));return}let r=t.head;this.forkBypassPath();let i=t.head;n.add(r),e.lastIsDefault||(e.defaultBodySegments?(x(e.defaultSegments,e.defaultBodySegments),S(this,i,e.defaultBodySegments)):n.add(i));for(let t=0;t<e.forkCount;++t)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(n.makeNext(0,-1))}makeSwitchCaseBody(e,t){let n=this.switchContext;if(!n.hasCase)return;let r=this.forkContext,i=this.pushForkContext();i.add(r.makeNext(0,-1)),t?(n.defaultSegments=r.head,e?n.foundEmptyDefault=!0:n.defaultBodySegments=i.head):!e&&n.foundEmptyDefault&&(n.foundEmptyDefault=!1,n.defaultBodySegments=i.head),n.lastIsDefault=t,n.forkCount+=1}pushTryContext(e){this.tryContext=new m(this.tryContext,e,this.forkContext)}popTryContext(){let e=this.tryContext;if(this.tryContext=e.upper,e.position===`catch`){this.popForkContext();return}let t=e.returnedForkContext,n=e.thrownForkContext;if(t.empty&&n.empty)return;let r=this.forkContext.head;this.forkContext=this.forkContext.upper;let i=r.slice(0,r.length/2|0),a=r.slice(r.length/2|0);t.empty||v(this).returnedForkContext.add(a),n.empty||y(this).thrownForkContext.add(a),this.forkContext.replaceHead(i),!e.lastOfTryIsReachable&&!e.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){let e=this.tryContext,t=this.forkContext,n=e.thrownForkContext;e.position=`catch`,e.thrownForkContext=r.newEmpty(t),e.lastOfTryIsReachable=t.reachable,n.add(t.head);let i=n.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(i)}makeFinallyBlock(){let e=this.tryContext,t=this.forkContext,r=e.returnedForkContext,i=e.thrownForkContext,a=t.head;if(e.position===`catch`?(this.popForkContext(),t=this.forkContext,e.lastOfCatchIsReachable=t.reachable):e.lastOfTryIsReachable=t.reachable,e.position=`finally`,r.empty&&i.empty)return;let o=t.makeNext(-1,-1);for(let e=0;e<t.count;++e){let t=[a[e]];for(let n=0;n<r.segmentsList.length;++n)t.push(r.segmentsList[n][e]);for(let n=0;n<i.segmentsList.length;++n)t.push(i.segmentsList[n][e]);o.push(n.newNext(this.idGenerator.next(),t))}this.pushForkContext(!0),this.forkContext.add(o)}makeFirstThrowablePathInTryBlock(){let e=this.forkContext;if(!e.reachable)return;let t=y(this);t===this||t.position!==`try`||!t.thrownForkContext.empty||(t.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,t){let n=this.forkContext,r=this.pushBreakContext(!0,t);switch(e){case`WhileStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new c(this.loopContext,t,r);break;case`DoWhileStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new l(this.loopContext,t,r,n);break;case`ForStatement`:this.pushChoiceContext(`loop`,!1),this.loopContext=new u(this.loopContext,t,r);break;case`ForInStatement`:this.loopContext=new d(this.loopContext,t,r);break;case`ForOfStatement`:this.loopContext=new f(this.loopContext,t,r);break;default:throw Error(`unknown type: "${e}"`)}}popLoopContext(){let e=this.loopContext;this.loopContext=e.upper;let t=this.forkContext,n=this.popBreakContext().brokenForkContext;switch(e.type){case`WhileStatement`:case`ForStatement`:this.popChoiceContext(),S(this,t.head,e.continueDestSegments);break;case`DoWhileStatement`:{let r=this.popChoiceContext();r.processed||(r.trueForkContext.add(t.head),r.falseForkContext.add(t.head)),e.test!==!0&&n.addAll(r.falseForkContext);let i=r.trueForkContext.segmentsList;for(let t=0;t<i.length;++t)S(this,i[t],e.entrySegments);break}case`ForInStatement`:case`ForOfStatement`:n.add(t.head),S(this,t.head,e.leftSegments);break;default:throw Error(`unreachable`)}n.empty?t.replaceHead(t.makeUnreachable(-1,-1)):t.replaceHead(n.makeNext(0,-1))}makeWhileTest(e){let t=this.loopContext,n=this.forkContext,r=n.makeNext(0,-1);t.test=e,t.continueDestSegments=r,n.replaceHead(r)}makeWhileBody(){let e=this.loopContext,t=this.choiceContext,n=this.forkContext;t.processed||(t.trueForkContext.add(n.head),t.falseForkContext.add(n.head)),e.test!==!0&&e.brokenForkContext.addAll(t.falseForkContext),n.replaceHead(t.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){let e=this.loopContext,t=this.forkContext,n=t.makeNext(-1,-1);e.entrySegments=n,t.replaceHead(n)}makeDoWhileTest(e){let t=this.loopContext,n=this.forkContext;if(t.test=e,!t.continueForkContext.empty){t.continueForkContext.add(n.head);let e=t.continueForkContext.makeNext(0,-1);n.replaceHead(e)}}makeForTest(e){let t=this.loopContext,n=this.forkContext,r=n.head,i=n.makeNext(-1,-1);t.test=e,t.endOfInitSegments=r,t.continueDestSegments=t.testSegments=i,n.replaceHead(i)}makeForUpdate(){let e=this.loopContext,t=this.choiceContext,n=this.forkContext;e.testSegments?C(e,t,n.head):e.endOfInitSegments=n.head;let r=n.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=r,n.replaceHead(r)}makeForBody(){let e=this.loopContext,t=this.choiceContext,n=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=n.head,e.testSegments&&S(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?C(e,t,n.head):e.endOfInitSegments=n.head;let i=e.endOfTestSegments;if(!i){let t=r.newEmpty(n);t.add(e.endOfInitSegments),e.endOfUpdateSegments&&t.add(e.endOfUpdateSegments),i=t.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||i,n.replaceHead(i)}makeForInOfLeft(){let e=this.loopContext,t=this.forkContext,n=t.makeDisconnected(-1,-1);e.prevSegments=t.head,e.leftSegments=e.continueDestSegments=n,t.replaceHead(n)}makeForInOfRight(){let e=this.loopContext,t=this.forkContext,n=r.newEmpty(t);n.add(e.prevSegments);let i=n.makeNext(-1,-1);e.endOfLeftSegments=t.head,t.replaceHead(i)}makeForInOfBody(){let e=this.loopContext,t=this.forkContext,n=r.newEmpty(t);n.add(e.endOfLeftSegments);let i=n.makeNext(-1,-1);S(this,t.head,e.leftSegments),e.brokenForkContext.add(t.head),t.replaceHead(i)}pushBreakContext(e,t){return this.breakContext=new i(this.breakContext,e,t,this.forkContext),this.breakContext}popBreakContext(){let e=this.breakContext,t=this.forkContext;if(this.breakContext=e.upper,!e.breakable){let n=e.brokenForkContext;n.empty||(n.add(t.head),t.replaceHead(n.makeNext(0,-1)))}return e}makeBreak(e){let t=this.forkContext;if(!t.reachable)return;let n=_(this,e);n&&n.brokenForkContext.add(t.head),t.replaceHead(t.makeUnreachable(-1,-1))}makeContinue(e){let t=this.forkContext;if(!t.reachable)return;let n=g(this,e);n&&(n.continueDestSegments?(S(this,t.head,n.continueDestSegments),(n.type===`ForInStatement`||n.type===`ForOfStatement`)&&n.brokenForkContext.add(t.head)):n.continueForkContext.add(t.head)),t.replaceHead(t.makeUnreachable(-1,-1))}makeReturn(){let e=this.forkContext;e.reachable&&(v(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){let e=this.forkContext;e.reachable&&(y(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){let e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}}})),Ra=n(((e,t)=>{t.exports=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}})),za=n(((e,t)=>{let n=La(),r=Ra();t.exports=class{constructor({id:e,origin:t,upper:i,onLooped:a}){this.id=e,this.origin=t,this.upper=i,this.childCodePaths=[],Object.defineProperty(this,`internal`,{value:new n(new r(`${e}_`),a)}),i&&i.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(e,t){let n,r;typeof e==`function`?(r=e,n={}):(n=e||{},r=t);let i=n.first||this.internal.initialSegment,a=n.last,o,s,c,l=null,u=new Set,d=[[i,0]],f=new Set,p=!1,m={skip(){f.add(l)},break(){p=!0}};function h(e){return u.has(e)||l.isLoopedPrevSegment(e)}function g(e){return f.has(e)||l.isLoopedPrevSegment(e)}for(;d.length>0;){if(o=d.at(-1),l=o[0],s=o[1],s===0){if(u.has(l)){d.pop();continue}if(l!==i&&l.prevSegments.length>0&&!l.prevSegments.every(h)){d.pop();continue}if(u.add(l),f.size>0&&l.prevSegments.length>0&&l.prevSegments.every(g))f.add(l);else if(r.call(this,l,m),l===a&&m.skip(),p)break}c=l.nextSegments.length-1,s<c?(o[1]+=1,d.push([l.nextSegments[s],0])):s===c?(o[0]=l.nextSegments[s],o[1]=0):d.pop()}}}})),Ba=n(((e,t)=>{let n=ba(),{breakableTypePattern:r}=k(),i=za(),a=Fa(),o=Ra(),s=Pa();function c(e){return!!e.test}function l(e){let t=e.parent;return t&&t.type===`PropertyDefinition`&&t.value===e}function u(e){return e===`&&`||e===`||`||e===`??`}function d(e){return e===`&&=`||e===`||=`||e===`??=`}function f(e){return e.parent.type===`LabeledStatement`?e.parent.label.name:null}function p(e){let t=e.parent;switch(t.type){case`ConditionalExpression`:case`IfStatement`:case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:return t.test===e;case`LogicalExpression`:return u(t.operator);case`AssignmentExpression`:return d(t.operator);default:return!1}}function m(e){if(e.type===`Literal`)return!!e.value}function h(e){let t=e.parent;switch(t.type){case`LabeledStatement`:case`BreakStatement`:case`ContinueStatement`:case`ArrayPattern`:case`RestElement`:case`ImportSpecifier`:case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`CatchClause`:return!1;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ClassDeclaration`:case`ClassExpression`:case`VariableDeclarator`:return t.id!==e;case`Property`:case`PropertyDefinition`:case`MethodDefinition`:return t.key!==e||t.computed||t.shorthand;case`AssignmentPattern`:return t.key!==e;default:return!0}}function g(e,t){let n=e.codePath,r=i.getState(n),o=r.currentSegments,c=r.headSegments,l=Math.max(o.length,c.length),u,d,f;for(u=0;u<l;++u)if(d=o[u],f=c[u],d!==f&&d){let n=d.reachable?`onCodePathSegmentEnd`:`onUnreachableCodePathSegmentEnd`;s.dump(`${n} ${d.id}`),e.emit(n,[d,t])}for(r.currentSegments=c,u=0;u<l;++u)if(d=o[u],f=c[u],d!==f&&f){let n=f.reachable?`onCodePathSegmentStart`:`onUnreachableCodePathSegmentStart`;s.dump(`${n} ${f.id}`),a.markUsed(f),e.emit(n,[f,t])}}function _(e,t){let n=i.getState(e.codePath),r=n.currentSegments;for(let n=0;n<r.length;++n){let i=r[n],a=i.reachable?`onCodePathSegmentEnd`:`onUnreachableCodePathSegmentEnd`;s.dump(`${a} ${i.id}`),e.emit(a,[i,t])}n.currentSegments=[]}function v(e,t){let r=e.codePath,a=i.getState(r),o=t.parent;switch(o.type){case`CallExpression`:o.optional===!0&&o.arguments.length>=1&&o.arguments[0]===t&&a.makeOptionalRight();break;case`MemberExpression`:o.optional===!0&&o.property===t&&a.makeOptionalRight();break;case`LogicalExpression`:o.right===t&&u(o.operator)&&a.makeLogicalRight();break;case`AssignmentExpression`:o.right===t&&d(o.operator)&&a.makeLogicalRight();break;case`ConditionalExpression`:case`IfStatement`:o.consequent===t?a.makeIfConsequent():o.alternate===t&&a.makeIfAlternate();break;case`SwitchCase`:o.consequent[0]===t&&a.makeSwitchCaseBody(!1,!o.test);break;case`TryStatement`:o.handler===t?a.makeCatchBlock():o.finalizer===t&&a.makeFinallyBlock();break;case`WhileStatement`:o.test===t?a.makeWhileTest(m(t)):(n(o.body===t),a.makeWhileBody());break;case`DoWhileStatement`:o.body===t?a.makeDoWhileBody():(n(o.test===t),a.makeDoWhileTest(m(t)));break;case`ForStatement`:o.test===t?a.makeForTest(m(t)):o.update===t?a.makeForUpdate():o.body===t&&a.makeForBody();break;case`ForInStatement`:case`ForOfStatement`:o.left===t?a.makeForInOfLeft():o.right===t?a.makeForInOfRight():(n(o.body===t),a.makeForInOfBody());break;case`AssignmentPattern`:o.right===t&&(a.pushForkContext(),a.forkBypassPath(),a.forkPath());break;default:break}}function y(e,t){let n=e.codePath,a=n&&i.getState(n),o=t.parent;function m(r){n&&(g(e,t),s.dumpState(t,a,!1)),n=e.codePath=new i({id:e.idGenerator.next(),origin:r,upper:n,onLooped:e.onLooped}),a=i.getState(n),s.dump(`onCodePathStart ${n.id}`),e.emit(`onCodePathStart`,[n,t])}switch(l(t)&&m(`class-field-initializer`),t.type){case`Program`:m(`program`);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:m(`function`);break;case`StaticBlock`:m(`class-static-block`);break;case`ChainExpression`:a.pushChainContext();break;case`CallExpression`:t.optional===!0&&a.makeOptionalNode();break;case`MemberExpression`:t.optional===!0&&a.makeOptionalNode();break;case`LogicalExpression`:u(t.operator)&&a.pushChoiceContext(t.operator,p(t));break;case`AssignmentExpression`:d(t.operator)&&a.pushChoiceContext(t.operator.slice(0,-1),p(t));break;case`ConditionalExpression`:case`IfStatement`:a.pushChoiceContext(`test`,!1);break;case`SwitchStatement`:a.pushSwitchContext(t.cases.some(c),f(t));break;case`TryStatement`:a.pushTryContext(!!t.finalizer);break;case`SwitchCase`:o.discriminant!==t&&o.cases[0]!==t&&a.forkPath();break;case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:a.pushLoopContext(t.type,f(t));break;case`LabeledStatement`:r.test(t.body.type)||a.pushBreakContext(!1,t.label.name);break;default:break}g(e,t),s.dumpState(t,a,!1)}function b(e,t){let n=e.codePath,a=i.getState(n),o=!1;switch(t.type){case`ChainExpression`:a.popChainContext();break;case`IfStatement`:case`ConditionalExpression`:a.popChoiceContext();break;case`LogicalExpression`:u(t.operator)&&a.popChoiceContext();break;case`AssignmentExpression`:d(t.operator)&&a.popChoiceContext();break;case`SwitchStatement`:a.popSwitchContext();break;case`SwitchCase`:t.consequent.length===0&&a.makeSwitchCaseBody(!0,!t.test),a.forkContext.reachable&&(o=!0);break;case`TryStatement`:a.popTryContext();break;case`BreakStatement`:g(e,t),a.makeBreak(t.label&&t.label.name),o=!0;break;case`ContinueStatement`:g(e,t),a.makeContinue(t.label&&t.label.name),o=!0;break;case`ReturnStatement`:g(e,t),a.makeReturn(),o=!0;break;case`ThrowStatement`:g(e,t),a.makeThrow(),o=!0;break;case`Identifier`:h(t)&&(a.makeFirstThrowablePathInTryBlock(),o=!0);break;case`CallExpression`:case`ImportExpression`:case`MemberExpression`:case`NewExpression`:case`YieldExpression`:a.makeFirstThrowablePathInTryBlock();break;case`WhileStatement`:case`DoWhileStatement`:case`ForStatement`:case`ForInStatement`:case`ForOfStatement`:a.popLoopContext();break;case`AssignmentPattern`:a.popForkContext();break;case`LabeledStatement`:r.test(t.body.type)||a.popBreakContext();break;default:break}o||g(e,t),s.dumpState(t,a,!0)}function x(e,t){function n(){let n=e.codePath;i.getState(n).makeFinal(),_(e,t),s.dump(`onCodePathEnd ${n.id}`),e.emit(`onCodePathEnd`,[n,t]),s.dumpDot(n),n=e.codePath=e.codePath.upper,n&&s.dumpState(t,i.getState(n),!0)}switch(t.type){case`Program`:case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`StaticBlock`:n();break;case`CallExpression`:t.optional===!0&&t.arguments.length===0&&i.getState(e.codePath).makeOptionalRight();break;default:break}l(t)&&n()}t.exports=class{constructor(e){this.original=e,this.emit=e.emit,this.codePath=null,this.idGenerator=new o(`s`),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&v(this,e),y(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,b(this,e),this.original.leaveNode(e),x(this,e),this.currentNode=null}onLooped(e,t){e.reachable&&t.reachable&&(s.dump(`onCodePathSegmentLoop ${e.id} -> ${t.id}`),this.emit(`onCodePathSegmentLoop`,[e,t,this.currentNode]))}}})),Va=n(((e,t)=>{var n,r,i,a,o,s,c={}.toString;n=l(function(e,t){return e.apply(null,t)}),r=function(e){return l(e)},i=l(function(e,t,n){return e(n,t)}),a=function(e){return function(t){return function(){return e(t(t)).apply(null,arguments)}}(function(t){return function(){return e(t(t)).apply(null,arguments)}})},o=l(function(e,t,n,r){return e(t(n),t(r))}),s=function(e){var t={};return function(){var n,r=[],i,a,o,s;for(i=0,a=arguments.length;i<a;++i)r.push(arguments[i]);return n=r,o=function(){var e,t,r,i=[];for(e=0,r=(t=n).length;e<r;++e)s=t[e],i.push(s+c.call(s).slice(8,-1));return i}().join(``),t[o]=o in t?t[o]:e.apply(null,n)}},t.exports={curry:r,flip:i,fix:a,apply:n,over:o,memoize:s};function l(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),Ha=n(((e,t)=>{var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,ee,B,te,V,H,U,W,ne,re,G,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,K,ve,ye,q,J,Y,be,xe,Se={}.toString;n=X(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],e(i);return t}),r=X(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],a.push(e(i));return a}),i=function(e){var t,n,r,i=[];for(t=0,n=e.length;t<n;++t)r=e[t],r&&i.push(r);return i},a=X(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],e(i)&&a.push(i);return a}),o=X(function(e,t){var n,r,i,a=[];for(n=0,r=t.length;n<r;++n)i=t[n],e(i)||a.push(i);return a}),s=X(function(e,t){var n=J(e,t),r=t.slice();return n!=null&&r.splice(n,1),r}),c=X(function(e,t){var n=[],r=[],i,a,o;for(i=0,a=t.length;i<a;++i)o=t[i],(e(o)?n:r).push(o);return[n,r]}),l=X(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=t[n],e(i))return i}),u=d=function(e){return e[0]},f=function(e){if(e.length)return e.slice(1)},p=function(e){return e[e.length-1]},m=function(e){if(e.length)return e.slice(0,-1)},h=function(e){return!e.length},g=function(e){return e.concat().reverse()},_=function(e){var t=[],n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],Ce(i,t)||t.push(i);return t},v=X(function(e,t){var n,r,i,a,o,s=[];for(n=[],r=0,i=t.length;r<i;++r)a=t[r],o=e(a),!Ce(o,n)&&(n.push(o),s.push(a));return s}),y=b=X(function(e,t,n){var r,i,a;for(r=0,i=n.length;r<i;++r)a=n[r],t=e(t,a);return t}),x=S=X(function(e,t){return y(e,t[0],t.slice(1))}),C=X(function(e,t,n){var r,i;for(r=n.length-1;r>=0;--r)i=n[r],t=e(i,t);return t}),w=X(function(e,t){return C(e,t[t.length-1],t.slice(0,-1))}),T=X(function(e,t){for(var n=[],r=t,i;(i=e(r))!=null;)n.push(i[0]),r=i[1];return n}),E=function(e){return[].concat.apply([],e)},D=X(function(e,t){var n;return[].concat.apply([],function(){var r,i,a,o=[];for(r=0,a=(i=t).length;r<a;++r)n=i[r],o.push(e(n));return o}())}),O=function(e){var t;return[].concat.apply([],function(){var n,r,i,a=[];for(n=0,i=(r=e).length;n<i;++n)t=r[n],Se.call(t).slice(8,-1)===`Array`?a.push(O(t)):a.push(t);return a}())},k=function(e){var t,n=[],r,i,a,o,s,c,l,u;for(r=1,i=arguments.length;r<i;++r)n.push(arguments[r]);t=n,a=[];outer:for(r=0,o=e.length;r<o;++r){for(s=e[r],c=0,l=t.length;c<l;++c)if(u=t[c],Ce(s,u))continue outer;a.push(s)}return a},A=function(e){var t,n=[],r,i,a,o,s,c,l,u;for(r=1,i=arguments.length;r<i;++r)n.push(arguments[r]);t=n,a=[];outer:for(r=0,o=e.length;r<o;++r){for(s=e[r],c=0,l=t.length;c<l;++c)if(u=t[c],!Ce(s,u))continue outer;a.push(s)}return a},j=function(){var e,t=[],n,r,i,a,o,s,c,l;for(n=0,r=arguments.length;n<r;++n)t.push(arguments[n]);for(e=t,i=[],n=0,a=e.length;n<a;++n)for(o=e[n],s=0,c=o.length;s<c;++s)l=o[s],Ce(l,i)||i.push(l);return i},M=X(function(e,t){var n={},r,i,a,o;for(r=0,i=t.length;r<i;++r)a=t[r],o=e(a),o in n?n[o]+=1:n[o]=1;return n}),N=X(function(e,t){var n={},r,i,a,o;for(r=0,i=t.length;r<i;++r)a=t[r],o=e(a),o in n?n[o].push(a):n[o]=[a];return n}),P=function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)if(r=e[t],!r)return!1;return!0},F=function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)if(r=e[t],r)return!0;return!1},I=X(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=t[n],e(i))return!0;return!1}),L=X(function(e,t){var n,r,i;for(n=0,r=t.length;n<r;++n)if(i=t[n],!e(i))return!1;return!0}),R=function(e){return e.concat().sort(function(e,t){return e>t?1:e<t?-1:0})},z=X(function(e,t){return t.concat().sort(e)}),ee=X(function(e,t){return t.concat().sort(function(t,n){return e(t)>e(n)?1:e(t)<e(n)?-1:0})}),B=function(e){var t=0,n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],t+=i;return t},te=function(e){var t=1,n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],t*=i;return t},V=H=function(e){var t=0,n,r,i;for(n=0,r=e.length;n<r;++n)i=e[n],t+=i;return t/e.length},U=function(e){var t=e[0],n,r,i,a;for(n=0,i=(r=e.slice(1)).length;n<i;++n)a=r[n],a>t&&(t=a);return t},W=function(e){var t=e[0],n,r,i,a;for(n=0,i=(r=e.slice(1)).length;n<i;++n)a=r[n],a<t&&(t=a);return t},ne=X(function(e,t){var n=t[0],r,i,a,o;for(r=0,a=(i=t.slice(1)).length;r<a;++r)o=i[r],e(o)>e(n)&&(n=o);return n}),re=X(function(e,t){var n=t[0],r,i,a,o;for(r=0,a=(i=t.slice(1)).length;r<a;++r)o=i[r],e(o)<e(n)&&(n=o);return n}),G=ie=X(function(e,t,n){var r=t,i;return[t].concat(function(){var t,a,o,s=[];for(t=0,o=(a=n).length;t<o;++t)i=a[t],s.push(r=e(r,i));return s}())}),ae=oe=X(function(e,t){if(t.length)return G(e,t[0],t.slice(1))}),se=X(function(e,t,n){return n=n.concat().reverse(),G(e,t,n).reverse()}),ce=X(function(e,t){if(t.length)return t=t.concat().reverse(),G(e,t[0],t.slice(1)).reverse()}),le=X(function(e,t,n){return n.slice(e,t)}),ue=X(function(e,t){return e<=0?t.slice(0,0):t.slice(0,e)}),de=X(function(e,t){return e<=0?t:t.slice(e)}),fe=X(function(e,t){return[ue(e,t),de(e,t)]}),pe=X(function(e,t){var n=t.length,r;if(!n)return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(0,r)}),me=X(function(e,t){var n=t.length,r;if(!n)return t;for(r=0;r<n&&e(t[r]);)r+=1;return t.slice(r)}),he=X(function(e,t){return[pe(e,t),me(e,t)]}),ge=X(function(e,t){return he(Z(e,we),t)}),_e=X(function(e,t){var n=[],r=t.length,i,a,o,s;for(i=0,a=e.length;i<a&&(o=i,s=e[i],o!==r);++i)n.push([s,t[o]]);return n}),K=X(function(e,t,n){var r=[],i=n.length,a,o,s,c;for(a=0,o=t.length;a<o&&(s=a,c=t[a],s!==i);++a)r.push(e(c,n[s]));return r}),ve=function(){var e,t,n,r,i,a,o,s,c,l,u,d=[];for(t=[],n=0,r=arguments.length;n<r;++n)t.push(arguments[n]);for(e=t,i=void 0,n=0,a=e.length;n<a;++n)o=e[n],i<=(s=o.length)||(i=s);for(n=0;n<i;++n){for(c=n,l=[],u=0,a=e.length;u<a;++u)o=e[u],l.push(o[c]);d.push(l)}return d},ye=function(e){var t,n,r,i,a,o,s,c,l,u=[];for(n=[],r=1,i=arguments.length;r<i;++r)n.push(arguments[r]);for(t=n,a=void 0,r=0,o=t.length;r<o;++r)s=t[r],a<=(c=s.length)||(a=c);for(r=0;r<a;++r)l=r,u.push(e.apply(null,d()));return u;function d(){var e,n,r,i=[];for(e=0,r=(n=t).length;e<r;++e)s=n[e],i.push(s[l]);return i}},q=X(function(e,t){return e<0?t[t.length+e]:t[e]}),J=X(function(e,t){var n,r,i,a;for(n=0,r=t.length;n<r;++n)if(i=n,a=t[n],a===e)return i}),Y=X(function(e,t){var n,r,i,a,o=[];for(n=0,r=t.length;n<r;++n)i=n,a=t[n],a===e&&o.push(i);return o}),be=X(function(e,t){var n,r,i,a;for(n=0,r=t.length;n<r;++n)if(i=n,a=t[n],e(a))return i}),xe=X(function(e,t){var n,r,i,a,o=[];for(n=0,r=t.length;n<r;++n)i=n,a=t[n],e(a)&&o.push(i);return o}),t.exports={each:n,map:r,filter:a,compact:i,reject:o,remove:s,partition:c,find:l,head:u,first:d,tail:f,last:p,initial:m,empty:h,reverse:g,difference:k,intersection:A,union:j,countBy:M,groupBy:N,fold:y,fold1:x,foldl:b,foldl1:S,foldr:C,foldr1:w,unfoldr:T,andList:P,orList:F,any:I,all:L,unique:_,uniqueBy:v,sort:R,sortWith:z,sortBy:ee,sum:B,product:te,mean:V,average:H,concat:E,concatMap:D,flatten:O,maximum:U,minimum:W,maximumBy:ne,minimumBy:re,scan:G,scan1:ae,scanl:ie,scanl1:oe,scanr:se,scanr1:ce,slice:le,take:ue,drop:de,splitAt:fe,takeWhile:pe,dropWhile:me,span:he,breakList:ge,zip:_e,zipWith:K,zipAll:ve,zipAllWith:ye,at:q,elemIndex:J,elemIndices:Y,findIndex:be,findIndices:xe};function X(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}function Ce(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}function Z(){var e=arguments;return function(){var t,n=e[0].apply(this,arguments);for(t=1;t<e.length;++t)n=e[t](n);return n}}function we(e){return!e}})),Ua=n(((e,t)=>{t.exports={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)r=e[t],i[r[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:n(function(e,t){var n,r,i,a,o={};for(n=0,r=e.length;n<r;++n)i=n,a=e[n],o[a]=t[i];return o}),objToLists:function(e){var t=[],n=[],r,i;for(r in e)i=e[r],t.push(r),n.push(i);return[t,n]},empty:function(e){for(var t in e)return!1;return!0},each:n(function(e,t){var n,r;for(n in t)r=t[n],e(r);return t}),map:n(function(e,t){var n,r,i={};for(n in t)r=t[n],i[n]=e(r);return i}),filter:n(function(e,t){var n,r,i={};for(n in t)r=t[n],e(r)&&(i[n]=r);return i}),compact:function(e){var t,n,r={};for(t in e)n=e[t],n&&(r[t]=n);return r},reject:n(function(e,t){var n,r,i={};for(n in t)r=t[n],e(r)||(i[n]=r);return i}),partition:n(function(e,t){var n={},r={},i,a;for(i in t)a=t[i],(e(a)?n:r)[i]=a;return[n,r]}),find:n(function(e,t){var n,r;for(n in t)if(r=t[n],e(r))return r})};function n(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),Wa=n(((e,t)=>{t.exports={split:n(function(e,t){return t.split(e)}),join:n(function(e,t){return t.join(e)}),lines:function(e){return e.length?e.split(`
82
+ `):[]},unlines:function(e){return e.join(`
83
+ `)},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:n(function(e,t){var n=``,r;for(r=0;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(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()})}};function n(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),Ga=n(((e,t)=>{var n=N(function(e,t){return e>t?e:t}),r=N(function(e,t){return e<t?e:t}),i=function(e){return-e},a=Math.abs,o=function(e){return e<0?-1:e>0?1:0},s=N(function(e,t){return~~(e/t)}),c=N(function(e,t){return e%t}),l=N(function(e,t){return Math.floor(e/t)}),u=N(function(e,t){var n;return(e%(n=t)+n)%n}),d=(function(e){return 1/e}),f=Math.PI,p=f*2,m=Math.exp,h=Math.sqrt,g=Math.log,_=N(function(e,t){return e**+t}),v=Math.sin,y=Math.tan,b=Math.cos,x=Math.asin,S=Math.acos,C=Math.atan,w=N(function(e,t){return Math.atan2(e,t)}),T=function(e){return~~e},E=Math.round,D=Math.ceil,O=Math.floor,k=function(e){return e!==e},A=function(e){return e%2==0},j=function(e){return e%2!=0},M=N(function(e,t){var n;for(e=Math.abs(e),t=Math.abs(t);t!==0;)n=e%t,e=t,t=n;return e});t.exports={max:n,min:r,negate:i,abs:a,signum:o,quot:s,rem:c,div:l,mod:u,recip:d,pi:f,tau:p,exp:m,sqrt:h,ln:g,pow:_,sin:v,tan:y,cos:b,acos:S,asin:x,atan:C,atan2:w,truncate:T,round:E,ceiling:D,floor:O,isItNaN:k,even:A,odd:j,gcd:M,lcm:N(function(e,t){return Math.abs(Math.floor(e/M(e,t)*t))})};function N(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),Ka=n(((e,t)=>{var n,r,i,a,o,s,c,l,u,d={}.toString;n=Va(),r=Ha(),i=Ua(),a=Wa(),o=Ga(),s=function(e){return e},c=f(function(e,t){return d.call(t).slice(8,-1)===e}),l=f(function(e,t){var n,r=[];for(n=0;n<e;++n)r.push(t);return r}),a.empty=r.empty,a.slice=r.slice,a.take=r.take,a.drop=r.drop,a.splitAt=r.splitAt,a.takeWhile=r.takeWhile,a.dropWhile=r.dropWhile,a.span=r.span,a.breakStr=r.breakList,u={Func:n,List:r,Obj:i,Str:a,Num:o,id:s,isType:c,replicate:l},u.each=r.each,u.map=r.map,u.filter=r.filter,u.compact=r.compact,u.reject=r.reject,u.partition=r.partition,u.find=r.find,u.head=r.head,u.first=r.first,u.tail=r.tail,u.last=r.last,u.initial=r.initial,u.empty=r.empty,u.reverse=r.reverse,u.difference=r.difference,u.intersection=r.intersection,u.union=r.union,u.countBy=r.countBy,u.groupBy=r.groupBy,u.fold=r.fold,u.foldl=r.foldl,u.fold1=r.fold1,u.foldl1=r.foldl1,u.foldr=r.foldr,u.foldr1=r.foldr1,u.unfoldr=r.unfoldr,u.andList=r.andList,u.orList=r.orList,u.any=r.any,u.all=r.all,u.unique=r.unique,u.uniqueBy=r.uniqueBy,u.sort=r.sort,u.sortWith=r.sortWith,u.sortBy=r.sortBy,u.sum=r.sum,u.product=r.product,u.mean=r.mean,u.average=r.average,u.concat=r.concat,u.concatMap=r.concatMap,u.flatten=r.flatten,u.maximum=r.maximum,u.minimum=r.minimum,u.maximumBy=r.maximumBy,u.minimumBy=r.minimumBy,u.scan=r.scan,u.scanl=r.scanl,u.scan1=r.scan1,u.scanl1=r.scanl1,u.scanr=r.scanr,u.scanr1=r.scanr1,u.slice=r.slice,u.take=r.take,u.drop=r.drop,u.splitAt=r.splitAt,u.takeWhile=r.takeWhile,u.dropWhile=r.dropWhile,u.span=r.span,u.breakList=r.breakList,u.zip=r.zip,u.zipWith=r.zipWith,u.zipAll=r.zipAll,u.zipAllWith=r.zipAllWith,u.at=r.at,u.elemIndex=r.elemIndex,u.elemIndices=r.elemIndices,u.findIndex=r.findIndex,u.findIndices=r.findIndices,u.apply=n.apply,u.curry=n.curry,u.flip=n.flip,u.fix=n.fix,u.over=n.over,u.split=a.split,u.join=a.join,u.lines=a.lines,u.unlines=a.unlines,u.words=a.words,u.unwords=a.unwords,u.chars=a.chars,u.unchars=a.unchars,u.repeat=a.repeat,u.capitalize=a.capitalize,u.camelize=a.camelize,u.dasherize=a.dasherize,u.values=i.values,u.keys=i.keys,u.pairsToObj=i.pairsToObj,u.objToPairs=i.objToPairs,u.listsToObj=i.listsToObj,u.objToLists=i.objToLists,u.max=o.max,u.min=o.min,u.negate=o.negate,u.abs=o.abs,u.signum=o.signum,u.quot=o.quot,u.rem=o.rem,u.div=o.div,u.mod=o.mod,u.recip=o.recip,u.pi=o.pi,u.tau=o.tau,u.exp=o.exp,u.sqrt=o.sqrt,u.ln=o.ln,u.pow=o.pow,u.sin=o.sin,u.tan=o.tan,u.cos=o.cos,u.acos=o.acos,u.asin=o.asin,u.atan=o.atan,u.atan2=o.atan2,u.truncate=o.truncate,u.round=o.round,u.ceiling=o.ceiling,u.floor=o.floor,u.isItNaN=o.isItNaN,u.even=o.even,u.odd=o.odd,u.gcd=o.gcd,u.lcm=o.lcm,u.VERSION=`1.2.1`,t.exports=u;function f(e,t){var n,r=function(i){return e.length>1?function(){var a=i?i.concat():[];return n=t&&n||this,a.push.apply(a,arguments)<e.length&&arguments.length?r.call(n,a):e.apply(n,a)}:e};return r()}})),qa=n(((e,t)=>{(function(){var e=Ka().reject,n,r;function i(e,t){if(e[0]===t)return e.shift();throw Error(`Expected '`+t+`', but got '`+e[0]+`' instead in `+JSON.stringify(e)+`.`)}function a(e,t){if(e[0]===t)return e.shift()}function o(e,t,n){var r=t[0],o=t[1],s,c;for(n&&i(e,r),s=[],c=`,`+(n?o:``);e.length&&n&&e[0]!==o;)s.push(d(e,c)),a(e,`,`);return n&&i(e,o),s}function s(e,t){return o(e,[`[`,`]`],t)}function c(e,t){return o(e,[`(`,`)`],t)}function l(e,t){var n,r,o;for(t&&i(e,`{`),n={},r=`,`+(t?`}`:``);e.length&&(!t||e[0]!==`}`);)o=u(e,`:`),i(e,`:`),n[o]=d(e,r),a(e,`,`);return t&&i(e,`}`),n}function u(e,t){var n;for(t??=``,n=``;e.length&&t.indexOf(e[0])===-1;)n+=e.shift();return n}function d(e,t){switch(e[0]){case`[`:return s(e,!0);case`(`:return c(e,!0);case`{`:return l(e,!0);default:return u(e,t)}}function f(e,t,n){var r=t[0],i=r.type,a=r.structure,o=e.concat(),u,f,p,m;return!n.explicit&&t.length===1&&(!i&&a||i===`Array`||i===`Object`)?(u=a===`array`||i===`Array`?s(e,e[0]===`[`):a===`tuple`?c(e,e[0]===`(`):l(e,e[0]===`{`),f=e.length?d(a===`array`||i===`Array`?(p=o,p.unshift(`[`),p.push(`]`),p):(m=o,m.unshift(`(`),m.push(`)`),m)):u):f=d(e),f}n=`\\[\\]\\(\\)}{:,`,r=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+n+`])|([^\\s`+n+`](?:\\s*[^\\s`+n+`]+)*)|\\s*`),t.exports=function(t,n,i){var a,o;if(i??={},!i.explicit&&t.length===1&&t[0].type===`String`)return n;if(a=e(p,n.split(r)),o=f(a,t,i),!o)throw Error(`Error parsing '`+n+`'.`);return o};function p(e){return!e}}).call(e)})),Ja=n(((e,t)=>{(function(){var e=/[\$\w]+/,n;function r(e){var t=e[0];if(t==null)throw Error(`Unexpected end of input.`);return t}function i(t){var n=r(t);if(!e.test(n))throw Error(`Expected text, got '`+n+`' instead.`);return t.shift()}function a(e,t){var n=r(e);if(n!==t)throw Error(`Expected '`+t+`', got '`+n+`' instead.`);return e.shift()}function o(e,t){return e[0]===t?e.shift():null}function s(e){var t;if(a(e,`[`),r(e)===`]`)throw Error(`Must specify type of Array - eg. [Type], got [] instead.`);return t=p(e),a(e,`]`),{structure:`array`,of:t}}function c(e){var t=[];if(a(e,`(`),r(e)===`)`)throw Error(`Tuple must be of at least length 1 - eg. (Type), got () instead.`);for(;t.push(p(e)),o(e,`,`),r(e)!==`)`;);return a(e,`)`),{structure:`tuple`,of:t}}function l(e){var t={},n,i,s,c;for(a(e,`{`),n=!1;;){if(o(e,`...`)){n=!0;break}if(i=u(e),s=i[0],c=i[1],t[s]=c,o(e,`,`),r(e)===`}`)break}return a(e,`}`),{structure:`fields`,of:t,subset:n}}function u(e){var t=i(e),n;return a(e,`:`),n=p(e),[t,n]}function d(e){switch(e[0]){case`[`:return s(e);case`(`:return c(e);case`{`:return l(e)}}function f(t){var n=r(t),o=n===`*`,s,c;if(o||e.test(n))return s=o?a(t,`*`):i(t),c=d(t),c?(c.type=s,c):{type:s};if(c=d(t),!c)throw Error(`Unexpected character: `+n);return c}function p(e){var t,n,i,a,s,c;if(r(e)===`::`)throw Error(`No comment before comment separator '::' found.`);for(t=e[1],t!=null&&t===`::`&&(e.shift(),e.shift()),n=[],i={},r(e)===`Maybe`&&(e.shift(),n=[{type:`Undefined`},{type:`Null`}],i={Undefined:!0,Null:!0});a=f(e),s=a.type,c=a.structure,i[s]||n.push(a),c??(i[s]=!0),o(e,`|`););return n}n=RegExp(`\\.\\.\\.|::|->|`+e.source+`|\\S`,`g`),t.exports=function(e){var t,r;if(!e.length)throw Error(`No type specified.`);if(t=e.match(n)||[],m(`->`,t))throw Error(`Function types are not supported. To validate that something is a function, you may use 'Function'.`);try{return p(t)}catch(n){throw r=n,Error(r.message+` - Remaining tokens: `+JSON.stringify(t)+` - Initial input: '`+e+`'`)}};function m(e,t){for(var n=-1,r=t.length>>>0;++n<r;)if(e===t[n])return!0;return!1}}).call(e)})),Ya=n(((e,t)=>{(function(){var e,n,r,i,a,o,s={}.toString;e=Ka(),n=e.any,r=e.all,i=e.isItNaN,a={Number:{typeOf:`Number`,validate:function(e){return!i(e)}},NaN:{typeOf:`Number`,validate:i},Int:{typeOf:`Number`,validate:function(e){return!i(e)&&e%1==0}},Float:{typeOf:`Number`,validate:function(e){return!i(e)}},Date:{typeOf:`Date`,validate:function(e){return!i(e.getTime())}}},o={array:`Array`,tuple:`Array`};function c(e,t,n){return r(function(e){return p(e,t.of,n)},e)}function l(e,t,n){var r=0,i,a,o,s;for(i=0,o=(a=t.of).length;i<o;++i){if(s=a[i],!p(e[r],s,n))return!1;r++}return e.length<=r}function u(e,t,n){var r={},i=0,a,o,s,c,l;for(a in e)r[a]=!0,i++;for(s in o=0,c=t.of){if(l=c[s],!p(e[s],l,n))return!1;r[s]&&o++}return t.subset||i===o}function d(e,t,n){if(!(e instanceof Object))return!1;switch(t.structure){case`fields`:return u(e,t,n);case`array`:return c(e,t,n);case`tuple`:return l(e,t,n)}}function f(e,t,n){var r=t.type,i=t.structure,c,l;if(r)return r===`*`?!0:(c=n.customTypes[r]||a[r],c?(c.typeOf===void 0||c.typeOf===s.call(e).slice(8,-1))&&c.validate(e):r===s.call(e).slice(8,-1)&&(!i||d(e,t,n)));if(i)return(l=o[i])&&l!==s.call(e).slice(8,-1)?!1:d(e,t,n);throw Error(`No type defined. Input: `+e+`.`)}function p(e,t,r){if(s.call(t).slice(8,-1)!==`Array`)throw Error(`Types must be in an array. Input: `+e+`.`);return n(function(t){return f(e,t,r)},t)}t.exports=function(e,t,n){return n??={},n.customTypes??={},p(t,e,n)}}).call(e)})),Xa=n(((e,t)=>{(function(){var e=`0.4.0`,n=Ja(),r=Ya();t.exports={VERSION:e,typeCheck:function(e,t,i){return r(n(e),t,i)},parsedTypeCheck:r,parseType:n}}).call(e)})),Za=n(((e,t)=>{(function(){var e,n,r={}.toString;e=Xa().parsedTypeCheck,n={"*":function(e,t){switch(r.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:c(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 e===`undefined`||e===void 0?{type:`Just`,value:void 0}:{type:`Nothing`}},Null:function(e){return e===`null`?{type:`Just`,value:null}:{type:`Nothing`}},NaN:function(e){return e===`NaN`?{type:`Just`,value:NaN}:{type:`Nothing`}},Boolean:function(e){return e===`true`?{type:`Just`,value:!0}:e===`false`?{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 i(e,{of:[{type:`*`}]},t)},Object:function(e,t){return o(e,{of:{}},t)},String:function(e){var t,n;return r.call(e).slice(8,-1)===`String`?(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`
84
+ `;case`r`:return`\r`;case`t`:return` `;case`u`:return JSON.parse(`"`+e+`"`);default:return n}})},(n=e.match(/^'([\s\S]*)'$/))?{type:`Just`,value:t(n[1],`'`)}:(n=e.match(/^"([\s\S]*)"$/))?{type:`Just`,value:t(n[1],`"`)}:{type:`Just`,value:e}):{type:`Nothing`}}};function i(e,t,n){var i,a;return r.call(e).slice(8,-1)===`Array`?(i=t.of,{type:`Just`,value:function(){var t,r,o,s=[];for(t=0,o=(r=e).length;t<o;++t)a=r[t],s.push(c(a,i,n));return s}()}):{type:`Nothing`}}function a(e,t,n){var i,a,o,s,l,u,d;if(r.call(e).slice(8,-1)!==`Array`)return{type:`Nothing`};for(i=[],a=0,o=0,l=(s=t.of).length;o<l;++o)u=s[o],d=c(e[a],u,n),r.call(d).slice(8,-1)!==`Undefined`&&i.push(d),a++;return e.length<=a?{type:`Just`,value:i}:{type:`Nothing`}}function o(e,t,n){var i,a,o;return r.call(e).slice(8,-1)===`Object`?(i=t.of,{type:`Just`,value:function(){var t,r={};for(a in t=e)o=t[a],r[c(a,[{type:`String`}],n)]=c(o,i[a]||[{type:`*`}],n);return r}()}):{type:`Nothing`}}function s(e,t,r){var s=t.type,l=t.structure,u;if(s){if(u=r.customTypes[s]?.cast||n[s],!u)throw Error(`Type not defined: `+s+`.`);return u(e,r,c)}else switch(l){case`array`:return i(e,t,r);case`tuple`:return a(e,t,r);case`fields`:return o(e,t,r)}}function c(t,n,r){var i,a,o,c,l,u;for(i=0,a=n.length;i<a;++i)if(o=n[i],c=s(t,o,r),l=c.type,u=c.value,l!==`Nothing`&&e([o],u,{customTypes:r.customTypes}))return u;throw Error(`Value `+JSON.stringify(t)+` does not type check against `+JSON.stringify(n)+`.`)}t.exports=function(e,t,n){return!n.explicit&&t.length===1&&t[0].type===`String`?e:c(e,t,n)}}).call(e)})),Qa=n(((e,t)=>{(function(){var e=qa(),n=Za(),r=Xa().parseType,i=`0.4.1`,a=function(t,r,i){return i??={},i.explicit??=!1,i.customTypes??={},n(e(t,r,i),t,i)};t.exports={VERSION:i,parse:function(e,t,n){return a(r(e),t,n)},parsedTypeParse:a}}).call(e)})),$a=n((e=>{var t=Qa();let n=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,r=new Set([0,1,2,`off`,`warn`,`error`]);function i(e){let t=Array.isArray(e)?e[0]:e;return r.has(t)}function a(e){return Object.values(e).every(i)}var o=class{label=``;value=``;justification=``;constructor(e,t,n){this.label=e,this.value=t,this.justification=n}},s=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(e){try{let n=t.parse(`Object`,e)||{};if(a(n))return{ok:!0,config:n}}catch{}let n=e.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu,`"$1":`).replace(/([\]0-9])\s+(?=")/u,`$1,`);try{return{ok:!0,config:JSON.parse(`{${n}}`)}}catch(e){return{ok:!1,error:{message:`Failed to parse JSON from '${n}': ${e instanceof Error?e.message:String(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:t,justificationPart:r}=this.#e(e),i=n.exec(t);if(!i)return;let a=i[1];return new o(a,t.slice(i.index+a.length).trim(),r)}};function c(e){return`loc`in e}function l(e){return`position`in e}function u(e){return`range`in e}function d(e){return`position`in e}function f(e,t){let n=0,r=e.length-1;for(;n<r;){let i=(n+r)/2|0;t<e[i]?r=i:n=i+1}return n}var p=class{type=`visit`;kind=1;target;phase;args;constructor({target:e,phase:t,args:n}){this.target=e,this.phase=t,this.args=n}},m=class{type=`call`;kind=2;target;args;constructor({target:e,args:t}){this.target=e,this.args=t}},h=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}},g=class{#e=[];#t=[0];#n;ast;text;constructor({text:e,ast:t,lineEndingPattern:n=/\r?\n/u}){this.ast=t,this.text=e,this.#n=new RegExp(n.source,n.flags.replace(/[gy]/gu,``))}#r(e){let t=this.#n.exec(e);return t?(this.#e.push(e.slice(0,t.index)),this.#t.push((this.#t.at(-1)??0)+t.index+t[0].length),!0):!1}#i(){if(this.#e.length!==this.#t.length){for(;this.#r(this.text.slice(this.#t.at(-1))););this.#e.push(this.text.slice(this.#t.at(-1))),Object.freeze(this.#e)}}#a(e){if(!(e<=(this.#t.at(-1)??0)))for(;e>(this.#t.at(-1)??0)&&this.#r(this.text.slice(this.#t.at(-1))););}#o(e,t){let n=e.line-t+1-(this.#t.length-1);if(!(n<=0))for(;n>0&&this.#r(this.text.slice(this.#t.at(-1)));)--n}getLoc(e){if(c(e))return e.loc;if(l(e))return e.position;throw Error(`Custom getLoc() method must be implemented in the subclass.`)}getLocFromIndex(e){if(typeof e!=`number`)throw TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);let{start:{line:t,column:n},end:{line:r,column:i}}=this.getLoc(this.ast);if(e===0)return{line:t,column:n};if(e===this.text.length)return{line:r,column:i};this.#a(e);let a=(e>=(this.#t.at(-1)??0)?this.#t.length:f(this.#t,e))-1+t;return{line:a,column:e-this.#t[a-t]+n}}getIndexFromLoc(e){if(typeof e!=`object`||!e||typeof e.line!=`number`||typeof e.column!=`number`)throw TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");let{start:{line:t,column:n},end:{line:r,column:i}}=this.getLoc(this.ast);if(e.line<t||r<e.line)throw RangeError(`Line number out of range (line ${e.line} requested). Valid range: ${t}-${r}`);if(e.line===t&&e.column===n)return 0;if(e.line===r&&e.column===i)return this.text.length;this.#o(e,t);let a=e.line===r,o=this.#t[e.line-t],s=a?this.text.length:this.#t[e.line-t+1],c=o+e.column-n;if(e.column<n||a&&c>s||!a&&c>=s)throw RangeError(`Column number out of range (column ${e.column} requested). Valid range for line ${e.line}: ${n}-${s-o+n+(a?0:-1)}`);return c}getRange(e){if(u(e))return e.range;if(d(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.#i(),this.#e}traverse(){throw Error(`Not implemented.`)}};e.CallMethodStep=m,e.ConfigCommentParser=s,e.Directive=h,e.TextSourceCodeBase=g,e.VisitNodeStep=p})),eo=n(((e,t)=>{let n=Na(),r=k(),i=zr(),a=A(),{directivesPattern:o}=Qt(),s=Ba(),{ConfigCommentParser:c,VisitNodeStep:l,CallMethodStep:u,Directive:d}=$a(),f=new c;function p(e){if(!e)throw TypeError(`Unexpected empty AST. (${e})`);if(!e.tokens)throw TypeError(`AST is missing the tokens array.`);if(!e.comments)throw TypeError(`AST is missing the comments array.`);if(!e.loc)throw TypeError(`AST is missing location information.`);if(!e.range)throw TypeError(`AST is missing range information`)}function m(e){switch(e){case 3:return a.es3;case 5:return a.es5;default:return e<2015?a[`es${e+2009}`]:a[`es${e}`]}}function h(e,t){let n=[],r=0,i=0;for(;r<e.length||i<t.length;)i>=t.length||r<e.length&&e[r].range[0]<t[i].range[0]?n.push(e[r++]):n.push(t[i++]);return n}function g(e){switch(e){case`off`:return`off`;case!0:case`true`:case`writeable`:case`writable`:return`writable`;case null:case!1:case`false`:case`readable`:case`readonly`:return`readonly`;default:throw Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function _(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]||t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]}function v(e,t){let n=0,r=e.length;for(;n<r;){let i=(n+r)/2|0;t<e[i]?r=i:n=i+1}return n}function y(e,t=Object.create(null),n=Object.create(null)){let r={__proto__:null,...t};for(let[e,t]of Object.entries(n))r[e]=t.value;let i=Object.keys(r).filter(e=>r[e]!==`off`);e.addGlobals(i);let a=e.scopes[0];for(let e of i){let i=a.set.get(e);i.eslintImplicitGlobalSetting=t[e],i.eslintExplicitGlobal=!!n[e],i.eslintExplicitGlobalComments=n[e]?.comments,i.writeable=r[e]===`writable`}}function b(e,t){Object.keys(t).forEach(t=>{let n=e.set.get(t);n&&(n.eslintUsed=!0,n.eslintExported=!0)})}let x=Symbol(`caches`);t.exports=class extends n{#e;constructor(e,t){let n,a,o,s,c,l;typeof e==`string`?(n=e,o=t,a=!1):typeof e==`object`&&e&&(n=e.text,o=e.ast,a=e.hasBOM,s=e.parserServices,c=e.scopeManager,l=e.visitorKeys),p(o),super(o.tokens,o.comments),this[x]=new Map([[`scopes`,new WeakMap],[`vars`,new Map],[`configNodes`,void 0],[`isGlobalReference`,new WeakMap]]),this.isESTree=o.type===`Program`;let u=n.charCodeAt(0)===65279;this.hasBOM=u||!!a,this.text=u?n.slice(1):n,this.ast=o,this.parserServices=s||{},this.scopeManager=c||null,this.visitorKeys=l||i.DEFAULT_VISITOR_KEYS;let d=this.text.match(r.shebangPattern);d&&o.comments.length&&o.comments[0].value===d[1]&&(o.comments[0].type=`Shebang`),this.tokensAndComments=h(o.tokens,o.comments),this.lines=[],this.lineStartIndices=[0];let f=r.createGlobalLinebreakMatcher(),m;for(;m=f.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),m.index)),this.lineStartIndices.push(m.index+m[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(r.createGlobalLinebreakMatcher())}getText(e,t,n){return e?this.text.slice(Math.max(e.range[0]-(t||0),0),e.range[1]+(n||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getNodeByRangeIndex(e){let t=null;return i.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(n){n.range[0]<=e&&e<n.range[1]?t=n:this.skip()},leave(e){e===t&&this.break()}}),t}isSpaceBetween(e,t){if(_(e,t))return!1;let[n,r]=e.range[1]<=t.range[0]?[e,t]:[t,e],i=this.getLastToken(n)||n,a=this.getFirstToken(r)||r,o=i;for(;o!==a;){let e=this.getTokenAfter(o,{includeComments:!0});if(o.range[1]!==e.range[0])return!0;o=e}return!1}getLocFromIndex(e){if(typeof e!=`number`)throw TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let t=e>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:v(this.lineStartIndices,e);return{line:t,column:e-this.lineStartIndices[t-1]}}getIndexFromLoc(e){if(typeof e!=`object`||!e||typeof e.line!=`number`||typeof e.column!=`number`)throw TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(e.column<0)throw RangeError(`Invalid column number (column ${e.column} requested).`);let t=this.lineStartIndices[e.line-1],n=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],r=t+e.column;if(e.line===this.lineStartIndices.length&&r>n||e.line<this.lineStartIndices.length&&r>=n)throw RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${n-t}).`);return r}getScope(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=this[x].get(`scopes`),n=t.get(e);if(n)return n;let r=e.type!==`Program`;for(let n=e;n;n=n.parent){let i=this.scopeManager.acquire(n,r);if(i)return i.type===`function-expression-name`?(t.set(e,i.childScopes[0]),i.childScopes[0]):(t.set(e,i),i)}return t.set(e,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(e){return this.scopeManager.getDeclaredVariables(e)}getAncestors(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=[];for(let n=e.parent;n;n=n.parent)t.push(n);return t.reverse()}isGlobalReference(e){if(!e)throw TypeError(`Missing required argument: node.`);let t=this[x].get(`isGlobalReference`);if(t.has(e))return t.get(e);if(e.type!==`Identifier`)return t.set(e,!1),!1;let n=this.scopeManager.scopes[0].set.get(e.name);if(!n||n.defs.length>0)return t.set(e,!1),!1;let r=n.references.some(({identifier:t})=>t===e);return t.set(e,r),r}getLoc(e){return e.loc}getRange(e){return e.range}markVariableAsUsed(e,t=this.ast){let n=this.getScope(t),r=n;n.type===`global`&&n.childScopes.length>0&&n.childScopes[0].block===this.ast&&(r=n.childScopes[0]);for(let t=r;t;t=t.upper){let n=t.variables.find(t=>t.name===e);if(n)return n.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let e=this[x].get(`configNodes`);return e||(e=this.ast.comments.filter(e=>{if(e.type===`Shebang`)return!1;let t=f.parseDirective(e.value);return!t||!o.test(t.label)?!1:e.type!==`Line`||!!/^eslint-disable-(?:next-)?line$/u.test(t.label)}),this[x].set(`configNodes`,e),e)}getDisableDirectives(){let e=this[x].get(`disableDirectives`);if(e)return e;let t=[],n=[];this.getInlineConfigNodes().forEach(e=>{let{label:r,value:i,justification:a}=f.parseDirective(e.value),o=/^eslint-disable-(?:next-)?line$/u.test(r);if(!(e.type===`Line`&&!o)){if(r===`eslint-disable-line`&&e.loc.start.line!==e.loc.end.line){let n=`${r} comment should not span multiple lines.`;t.push({ruleId:null,message:n,loc:e.loc});return}switch(r){case`eslint-disable`:case`eslint-enable`:case`eslint-disable-next-line`:case`eslint-disable-line`:{let t=r.slice(7);n.push(new d({type:t,node:e,value:i,justification:a}))}}}});let r={problems:t,directives:n};return this[x].set(`disableDirectives`,r),r}applyLanguageOptions(e){let t=Object.assign(Object.create(null),m(e.ecmaVersion),e.sourceType===`commonjs`?a.commonjs:void 0,e.globals);for(let[e,n]of Object.entries(t))t[e]=g(n);this[x].get(`vars`).set(`configGlobals`,t)}applyInlineConfig(){let e=[],t=[],n={},r=Object.create(null);this.getInlineConfigNodes().forEach(i=>{let{label:a,value:o}=f.parseDirective(i.value);switch(a){case`exported`:Object.assign(n,f.parseListConfig(o));break;case`globals`:case`global`:for(let[t,n]of Object.entries(f.parseStringConfig(o))){let a;try{a=g(n)}catch(t){e.push({ruleId:null,loc:i.loc,message:t.message});continue}r[t]?(r[t].comments.push(i),r[t].value=a):r[t]={comments:[i],value:a}}break;case`eslint`:{let n=f.parseJSONLikeConfig(o);n.ok?t.push({config:{rules:n.config},loc:i.loc}):e.push({ruleId:null,loc:i.loc,message:n.error.message});break}case`eslint-env`:e.push({ruleId:null,loc:i.loc,message:`/* eslint-env */ comments are no longer supported.`});break}});let i=this[x].get(`vars`);return i.set(`inlineGlobals`,r),i.set(`exportedVariables`,n),{configs:t,problems:e}}finalize(){let e=this[x].get(`vars`),t=e.get(`configGlobals`),n=e.get(`inlineGlobals`),r=e.get(`exportedVariables`),i=this.scopeManager.scopes[0];y(this.scopeManager,t,n),r&&b(i,r)}traverse(){if(this.#e)return this.#e;let e=this.#e=[],t={enterNode(t){e.push(new l({target:t,phase:1,args:[t]}))},leaveNode(t){e.push(new l({target:t,phase:2,args:[t]}))},emit(t,n){e.push(new u({target:t,args:n}))}};return this.isESTree&&(t=new s(t)),i.traverse(this.ast,{enter(e,n){e.parent=n,t.enterNode(e)},leave(e){t.leaveNode(e)},visitorKeys:this.visitorKeys}),e}}})),to=n(((e,t)=>{t.exports={SourceCode:eo()}})),no=n((e=>{(function e(t){var n,r,i,a,o,s;function c(e){var t={},n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],typeof r==`object`&&r?t[n]=c(r):t[n]=r);return t}function l(e,t){for(var n,r=e.length,i=0,a;r;)n=r>>>1,a=i+n,t(e[a])?r=n:(i=a+1,r-=n+1);return i}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`]},a={},o={},s={},r={Break:a,Skip:o,Remove:s};function u(e,t){this.parent=e,this.key=t}u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function f(){}f.prototype.path=function(){var e,t,n,r,i,a;function o(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(i=[],e=2,t=this.__leavelist.length;e<t;++e)a=this.__leavelist[e],o(i,a.path);return o(i,this.__current.path),i},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,n=[];for(e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var n,r=void 0;return 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},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(o)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))};function p(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function h(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}f.prototype.traverse=function(e,t){var n,r,i,s,c,l,u,f,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new d(e,null,null,null)),r.push(new d(null,null,null,null));n.length;){if(i=n.pop(),i===y){if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return;continue}if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(s=i.node,c=s.type||i.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(s);else throw Error(`Unknown node type `+c+`.`);for(f=_.length;--f>=0;)if(u=_[f],v=s[u],v){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!h(r,v[g])){if(m(c,_[f]))i=new d(v[g],[u,g],`Property`,null);else if(p(v[g]))i=new d(v[g],[u,g],null,null);else continue;n.push(i)}}else if(p(v)){if(h(r,v))continue;n.push(new d(v,u,null,null))}}}}},f.prototype.replace=function(e,t){var n,r,i,c,l,f,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if(i=n[t],i.ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,b={root:e},f=new d(e,null,null,new u(b,`root`)),n.push(f),r.push(f);n.length;){if(f=n.pop(),f===y){if(f=r.pop(),l=this.__execute(t.leave,f),l!==void 0&&l!==a&&l!==o&&l!==s&&f.ref.replace(l),(this.__state===s||l===s)&&S(f),this.__state===a||l===a)return b.root;continue}if(l=this.__execute(t.enter,f),l!==void 0&&l!==a&&l!==o&&l!==s&&(f.ref.replace(l),f.node=l),(this.__state===s||l===s)&&(S(f),f.node=null),this.__state===a||l===a)return b.root;if(i=f.node,i&&(n.push(y),r.push(f),!(this.__state===o||l===o))){if(c=i.type||f.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(i);else throw Error(`Unknown node type `+c+`.`);for(h=_.length;--h>=0;)if(x=_[h],v=i[x],v)if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(m(c,_[h]))f=new d(v[g],[x,g],`Property`,new u(v,g));else if(p(v[g]))f=new d(v[g],[x,g],null,new u(v,g));else continue;n.push(f)}}else p(v)&&n.push(new d(v,x,null,new u(i,x)))}}return b.root};function g(e,t){return new f().traverse(e,t)}function _(e,t){return new f().replace(e,t)}function v(e,t){var n=l(t,function(t){return t.range[0]>e.range[0]});return e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function y(e,t,n){var i=[],a,o,s,l;if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(s=0,o=t.length;s<o;s+=1)a=c(t[s]),a.extendedRange=[0,e.range[0]],i.push(a);e.leadingComments=i}return e}for(s=0,o=t.length;s<o;s+=1)i.push(v(c(t[s]),n));return l=0,g(e,{enter:function(e){for(var t;l<i.length&&(t=i[l],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),l=0,g(e,{leave:function(e){for(var t;l<i.length&&(t=i[l],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),e}return t.Syntax=n,t.traverse=g,t.replace=_,t.attachComments=y,t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(e)})),ro=n(((e,t)=>{t.exports={name:`esrecurse`,description:`ECMAScript AST recursive visitor`,homepage:`https://github.com/estools/esrecurse`,main:`esrecurse.js`,version:`4.3.0`,engines:{node:`>=4.0`},maintainers:[{name:`Yusuke Suzuki`,email:`utatane.tea@gmail.com`,web:`https://github.com/Constellation`}],repository:{type:`git`,url:`https://github.com/estools/esrecurse.git`},dependencies:{estraverse:`^5.2.0`},devDependencies:{"babel-cli":`^6.24.1`,"babel-eslint":`^7.2.3`,"babel-preset-es2015":`^6.24.1`,"babel-register":`^6.24.1`,chai:`^4.0.2`,esprima:`^4.0.0`,gulp:`^3.9.0`,"gulp-bump":`^2.7.0`,"gulp-eslint":`^4.0.0`,"gulp-filter":`^5.0.0`,"gulp-git":`^2.4.1`,"gulp-mocha":`^4.3.1`,"gulp-tag-version":`^1.2.1`,jsdoc:`^3.3.0-alpha10`,minimist:`^1.1.0`},license:`BSD-2-Clause`,scripts:{test:`gulp travis`,"unit-test":`gulp test`,lint:`gulp lint`},babel:{presets:[`es2015`]}}})),io=n((e=>{(function(){var t=no();function n(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function r(e,n){return(e===t.Syntax.ObjectExpression||e===t.Syntax.ObjectPattern)&&n===`properties`}function i(e,n){n||={},this.__visitor=e||this,this.__childVisitorKeys=n.childVisitorKeys?Object.assign({},t.VisitorKeys,n.childVisitorKeys):t.VisitorKeys,n.fallback===`iteration`?this.__fallback=Object.keys:typeof n.fallback==`function`&&(this.__fallback=n.fallback)}i.prototype.visitChildren=function(e){var i,a,o,s,c,l,u;if(e!=null){if(i=e.type||t.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(e);else throw Error(`Unknown node type `+i+`.`);for(o=0,s=a.length;o<s;++o)if(u=e[a[o]],u)if(Array.isArray(u))for(c=0,l=u.length;c<l;++c)u[c]&&(n(u[c])||r(i,a[o]))&&this.visit(u[c]);else n(u)&&this.visit(u)}},i.prototype.visit=function(e){var n;if(e!=null){if(n=e.type||t.Syntax.Property,this.__visitor[n]){this.__visitor[n].call(this,e);return}this.visitChildren(e)}},e.version=ro().version,e.Visitor=i,e.visit=function(e,t,n){new i(t,n).visit(e)}})()})),ao=n((e=>{var t=no(),n=io();function r(e,t=`Assertion failed.`){if(!e)throw Error(t)}var i=class e{constructor(e,t,n,r,i,a,o){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=n,this.isWrite()&&(this.writeExpr=r,this.partial=a,this.init=o),this.__maybeImplicitGlobal=i}isStatic(){return!this.tainted&&!!this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&e.WRITE)}isRead(){return!!(this.flag&e.READ)}isReadOnly(){return this.flag===e.READ}isWriteOnly(){return this.flag===e.WRITE}isReadWrite(){return this.flag===e.RW}};i.READ=1,i.WRITE=2,i.RW=3;var a=class{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}};a.CatchClause=`CatchClause`,a.Parameter=`Parameter`,a.FunctionName=`FunctionName`,a.ClassName=`ClassName`,a.Variable=`Variable`,a.ImportBinding=`ImportBinding`,a.ImplicitGlobalVariable=`ImplicitGlobalVariable`;var o=class{constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.node=n,this.parent=r,this.index=i,this.kind=a}},s=class extends o{constructor(e,t,n,r){super(a.Parameter,e,t,null,n,null),this.rest=r}};let{Syntax:c}=t;function l(e,t,n){let r;if(e.upper&&e.upper.isStrict||n||e.type===`class`||e.type===`module`)return!0;if(e.type===`block`||e.type===`switch`)return!1;if(e.type===`function`){if(t.type===c.ArrowFunctionExpression&&t.body.type!==c.BlockStatement||(r=t.type===c.Program?t:t.body,!r))return!1}else if(e.type===`global`)r=t;else return!1;for(let e=0,t=r.body.length;e<t;++e){let t=r.body[e];if(typeof t.directive!=`string`)break;if(t.directive===`use strict`)return!0}return!1}function u(e,t){e.scopes.push(t);let n=e.__nodeToScope.get(t.block);n?n.push(t):e.__nodeToScope.set(t.block,[t])}var d=class{constructor(e,t,n,r,i){this.type=t,this.set=new Map,this.taints=new Map,this.dynamic=this.type===`global`||this.type===`with`,this.block=r,this.through=[],this.variables=[],this.references=[],this.variableScope=this.type===`global`||this.type===`module`||this.type===`function`||this.type===`class-field-initializer`||this.type===`class-static-block`?this:n.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=n,this.isStrict=e.isStrictModeSupported()?l(this,r,i):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,u(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()||this.type===`global`}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do t.through.push(e),t=t.upper;while(t)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:this.__dynamicCloseRef;for(let e=0,n=this.__left.length;e<n;++e){let n=this.__left[e];t.call(this,n)}return this.__left=null,this.upper}__isValidResolution(e,t){return!0}__resolve(e){let t=e.identifier.name;if(!this.set.has(t))return!1;let n=this.set.get(t);return this.__isValidResolution(e,n)?(n.references.push(e),n.stack=n.stack&&e.from.variableScope===this.variableScope,e.tainted&&(n.tainted=!0,this.taints.set(n.name,!0)),e.resolved=n,!0):!1}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,t){if(t==null)return;let n=this.__declaredVariables.get(t);n??(n=[],this.__declaredVariables.set(t,n)),n.includes(e)||n.push(e)}__defineGeneric(e,t,n,r,i){let o;o=t.get(e),o||(o=new a(e,this),t.set(e,o),n.push(o)),i&&(o.defs.push(i),this.__addDeclaredVariablesOfNode(o,i.node),this.__addDeclaredVariablesOfNode(o,i.parent)),r&&o.identifiers.push(r)}__define(e,t){e&&e.type===c.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)}__referencing(e,t,n,r,a,o){if(!e||e.type!==c.Identifier&&e.type!==`JSXIdentifier`||e.name===`super`)return;let s=new i(e,this,t||i.READ,n,r,!!a,!!o);this.references.push(s),this.__left.push(s)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do e.dynamic=!0,e=e.upper;while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(e){let t,n,i;for(r(this.__isClosed(),`Scope should be closed.`),r(e.type===c.Identifier,`Target should be identifier.`),n=0,i=this.references.length;n<i;++n)if(t=this.references[n],t.identifier===e)return t;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let t=0,n=this.through.length;t<n;++t)if(this.through[t].identifier.name===e)return!0;return!1}},f=class extends d{constructor(e,t){super(e,`global`,null,t,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(e){let t=[];for(let e=0,n=this.__left.length;e<n;++e){let n=this.__left[e];n.__maybeImplicitGlobal&&!this.set.has(n.identifier.name)&&t.push(n.__maybeImplicitGlobal)}for(let e=0,n=t.length;e<n;++e){let n=t[e];this.__defineImplicit(n.pattern,new o(a.ImplicitGlobalVariable,n.pattern,n.node,null,null,null))}return super.__close(e),this.implicit.left=[...this.through],null}__defineImplicit(e,t){e&&e.type===c.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)}__addVariables(e){for(let t of e)this.__defineGeneric(t,this.set,this.variables,null,null);let t=new Set(e);this.through=this.through.filter(e=>{let n=e.identifier.name;if(t.has(n)){let t=this.set.get(n);return e.resolved=t,t.references.push(e),!1}return!0}),this.implicit.variables=this.implicit.variables.filter(e=>{let n=e.name;return t.has(n)?(this.implicit.set.delete(n),!1):!0}),this.implicit.left=this.implicit.left.filter(e=>!t.has(e.identifier.name))}},p=class extends d{constructor(e,t,n){super(e,`module`,t,n,!1)}},m=class extends d{constructor(e,t,n){super(e,`function-expression-name`,t,n,!1),this.__define(n.id,new o(a.FunctionName,n.id,n,null,null,null)),this.functionExpressionScope=!0}},h=class extends d{constructor(e,t,n){super(e,`catch`,t,n,!1)}},g=class extends d{constructor(e,t,n){super(e,`with`,t,n,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let e=0,t=this.__left.length;e<t;++e){let t=this.__left[e];t.tainted=!0,this.__delegateToUpperScope(t)}return this.__left=null,this.upper}},_=class extends d{constructor(e,t,n){super(e,`block`,t,n,!1)}},v=class extends d{constructor(e,t,n){super(e,`switch`,t,n,!1)}},y=class extends d{constructor(e,t,n,r){super(e,`function`,t,n,r),this.block.type!==c.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===c.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get(`arguments`);return r(e,`Always have arguments variable.`),e.tainted||e.references.length!==0}isThisMaterialized(){return this.isStatic()?this.thisFound:!0}__defineArguments(){this.__defineGeneric(`arguments`,this.set,this.variables,null,null),this.taints.set(`arguments`,!0)}__isValidResolution(e,t){if(this.block.type===`Program`)return!0;let n=this.block.body.range[0];return!(t.scope===this&&e.identifier.range[0]<n&&t.defs.every(e=>e.name.range[0]>=n))}},b=class extends d{constructor(e,t,n){super(e,`for`,t,n,!1)}},x=class extends d{constructor(e,t,n){super(e,`class`,t,n,!1)}},S=class extends d{constructor(e,t,n){super(e,`class-field-initializer`,t,n,!0)}},C=class extends d{constructor(e,t,n){super(e,`class-static-block`,t,n,!0)}},w=class{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isJSXEnabled(){return this.__options.jsx===!0}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType===`commonjs`}isModule(){return this.__options.sourceType===`module`}isImpliedStrict(){return!!this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function n(e){return!(e.type===`function`&&e.functionExpressionScope)}let r=this.__get(e);if(!r||r.length===0)return null;if(r.length===1)return r[0];if(t)for(let e=r.length-1;e>=0;--e){let t=r[e];if(n(t))return t}else for(let e=0,t=r.length;e<t;++e){let t=r[e];if(n(t))return t}return null}acquireAll(e){return this.__get(e)}release(e,t){let n=this.__get(e);if(n&&n.length){let e=n[0].upper;return e?this.acquire(e.block,t):null}return null}addGlobals(e){this.globalScope.__addVariables(e)}attach(){}detach(){}__nestScope(e){return e instanceof f&&(r(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new f(this,e))}__nestBlockScope(e){return this.__nestScope(new _(this,this.__currentScope,e))}__nestFunctionScope(e,t){return this.__nestScope(new y(this,this.__currentScope,e,t))}__nestForScope(e){return this.__nestScope(new b(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new h(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new g(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new x(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new S(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new C(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new v(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new p(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new m(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}};let{Syntax:T}=t;function E(e){return e.at(-1)||null}var D=class extends n.Visitor{static isPattern(e){let t=e.type;return t===T.Identifier||t===T.ObjectPattern||t===T.ArrayPattern||t===T.SpreadElement||t===T.RestElement||t===T.AssignmentPattern}constructor(e,t,n){super(null,e),this.rootPattern=t,this.callback=n,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let t=E(this.restElements);this.callback(e,{topLevel:e===this.rootPattern,rest:t!=null&&t.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let t=0,n=e.elements.length;t<n;++t){let n=e.elements[t];this.visit(n)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach(e=>{this.rightHandNodes.push(e)}),this.visit(e.callee)}};let{Syntax:O}=t;function k(e,t,n,r){let i=new D(e,t,r);i.visit(t),n!=null&&i.rightHandNodes.forEach(n.visit,n)}var A=class extends n.Visitor{constructor(e,t){super(null,t.options),this.declaration=e,this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,e=>{this.referencer.currentScope().__define(e,new o(a.ImportBinding,e,t,this.declaration,null,null))})}ImportNamespaceSpecifier(e){let t=e.local||e.id;t&&this.visitImport(t,e)}ImportDefaultSpecifier(e){let t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){let t=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(t,e)}},j=class extends n.Visitor{constructor(e,t){super(null,e),this.options=e,this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){let t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,n,r){let a=this.currentScope();t.forEach(t=>{a.__referencing(e,i.WRITE,t.right,n,e!==t.left,r)})}visitPattern(e,t,n){let r=t,i=n;typeof t==`function`&&(i=t,r={processRightHandNodes:!1}),k(this.options,e,r.processRightHandNodes?this:null,i)}visitFunction(e){let t,n;e.type===O.FunctionDeclaration&&this.currentScope().__define(e.id,new o(a.FunctionName,e.id,e,null,null,null)),e.type===O.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);let r=this;function i(n,i){r.currentScope().__define(n,new s(n,e,t,i.rest)),r.referencingDefaultValue(n,i.assignments,null,!0)}for(t=0,n=e.params.length;t<n;++t)this.visitPattern(e.params[t],{processRightHandNodes:!0},i);e.rest&&this.visitPattern({type:`RestElement`,argument:e.rest},t=>{this.currentScope().__define(t,new s(t,e,e.params.length,!0))}),e.body&&(e.body.type===O.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===O.ClassDeclaration&&this.currentScope().__define(e.id,new o(a.ClassName,e.id,e,null,null,null)),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new o(a.ClassName,e.id,e)),this.visit(e.superClass),this.visit(e.body),this.close(e)}visitProperty(e){let t;e.computed&&this.visit(e.key);let n=e.type===O.MethodDefinition;n&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===O.VariableDeclaration&&e.left.kind!==`var`&&this.scopeManager.__nestForScope(e),e.left.type===O.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,t=>{this.currentScope().__referencing(t,i.WRITE,e.right,null,!0,!0)})):this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let r=null;this.currentScope().isStrict||(r={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,r,!1),this.currentScope().__referencing(t,i.WRITE,e.right,r,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,n,r){let a=n.declarations[r],s=a.init;this.visitPattern(a.id,{processRightHandNodes:!0},(c,l)=>{e.__define(c,new o(t,c,a,n,r,n.kind)),this.referencingDefaultValue(c,l.assignments,null,!0),s&&this.currentScope().__referencing(c,i.WRITE,s,null,!l.topLevel,!0)})}AssignmentExpression(e){D.isPattern(e.left)?e.operator===`=`?this.visitPattern(e.left,{processRightHandNodes:!0},(t,n)=>{let r=null;this.currentScope().isStrict||(r={pattern:t,node:e}),this.referencingDefaultValue(t,n.assignments,r,!1),this.currentScope().__referencing(t,i.WRITE,e.right,r,!n.topLevel,!1)}):this.currentScope().__referencing(e.left,i.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},(t,n)=>{this.currentScope().__define(t,new o(a.CatchClause,t,e,null,null,null)),this.referencingDefaultValue(t,n.assignments,null,!0)}),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){D.isPattern(e.argument)?this.currentScope().__referencing(e.argument,i.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){let{computed:t,key:n,value:r}=e;t&&this.visit(n),r&&(this.scopeManager.__nestClassFieldInitializerScope(r),this.visit(r),this.close(r))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===O.VariableDeclaration&&e.init.kind!==`var`&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){!this.scopeManager.__ignoreEval()&&e.callee.type===O.Identifier&&e.callee.name===`eval`&&this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){let t=e.kind===`var`?this.currentScope().variableScope:this.currentScope();for(let n=0,r=e.declarations.length;n<r;++n){let r=e.declarations[n];this.visitVariableDeclaration(t,a.Variable,e,n),r.init&&this.visit(r.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let t=0,n=e.cases.length;t<n;++t)this.visit(e.cases[t]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){r(this.scopeManager.__isES6()&&this.scopeManager.isModule(),`ImportDeclaration should appear when the mode is ES6 and in the module context.`),new A(e,this).visit(e)}visitExportDeclaration(e){if(!e.source){if(e.declaration){this.visit(e.declaration);return}this.visitChildren(e)}}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){let t=e.id||e.local;this.visit(t)}MetaProperty(){}JSXIdentifier(e){this.scopeManager.__isJSXEnabled()&&e.name!==`this`&&this.currentScope().__referencing(e)}JSXMemberExpression(e){this.visit(e.object)}JSXElement(e){this.scopeManager.__isJSXEnabled()?(this.visit(e.openingElement),e.children.forEach(this.visit,this)):this.visitChildren(e)}JSXOpeningElement(e){if(this.scopeManager.__isJSXEnabled()){let t=e.name;(t.type===`JSXIdentifier`&&t.name[0].toUpperCase()===t.name[0]||t.type===`JSXMemberExpression`)&&this.visit(t)}e.attributes.forEach(this.visit,this)}JSXAttribute(e){e.value&&this.visit(e.value)}JSXExpressionContainer(e){this.visit(e.expression)}JSXNamespacedName(e){this.visit(e.namespace),this.visit(e.name)}};function M(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:`script`,ecmaVersion:5,childVisitorKeys:null,fallback:`iteration`}}function N(e,t){function n(e){return typeof e==`object`&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(let r in t)if(Object.hasOwn(t,r)){let i=t[r];n(i)?n(e[r])?N(e[r],i):e[r]=N({},i):e[r]=i}return e}function P(e,t){let n=N(M(),t),i=new w(n);return new j(n,i).visit(e),r(i.__currentScope===null,`currentScope should be null.`),i}e.Definition=o,e.PatternVisitor=D,e.Reference=i,e.Referencer=j,e.Scope=d,e.ScopeManager=w,e.Variable=a,e.analyze=P,e.version=`9.1.2`})),oo=n(((e,t)=>{let n=new Set([!0,`true`,`writable`,`writeable`,!1,`false`,`readonly`,`readable`,null,`off`]);function r(e){return typeof e==`object`&&!!e}function i(e){return r(e)&&!Array.isArray(e)}function a(e){return e===void 0}function o(e){if(a(e))throw TypeError(`Key "ecmaVersion": Expected an "ecmaVersion" property.`);if(typeof e!=`number`&&e!==`latest`)throw TypeError(`Key "ecmaVersion": Expected a number or "latest".`)}function s(e){if(typeof e!=`string`||!/^(?:script|module|commonjs)$/u.test(e))throw TypeError(`Key "sourceType": Expected "script", "module", or "commonjs".`)}function c(e){if(!i(e))throw TypeError(`Key "globals": Expected an object.`);for(let t of Object.keys(e))if(t!==`__proto__`){if(t!==t.trim())throw TypeError(`Key "globals": Global "${t}" has leading or trailing whitespace.`);if(!n.has(e[t]))throw TypeError(`Key "globals": Key "${t}": Expected "readonly", "writable", or "off".`)}}function l(e){if(!e||typeof e!=`object`||typeof e.parse!=`function`&&typeof e.parseForESLint!=`function`)throw TypeError(`Key "parser": Expected object with parse() or parseForESLint() method.`)}function u(e){if(!i(e))throw TypeError(`Expected an object.`);let{ecmaVersion:t,sourceType:n,globals:r,parser:a,parserOptions:u,...d}=e;if(`ecmaVersion`in e&&o(t),`sourceType`in e&&s(n),`globals`in e&&c(r),`parser`in e&&l(a),`parserOptions`in e&&!i(u))throw TypeError(`Key "parserOptions": Expected an object.`);let f=Object.keys(d);if(f.length>0)throw TypeError(`Unexpected key "${f[0]}" found.`)}t.exports={validateLanguageOptions:u}})),so=n(((e,t)=>{let{SourceCode:n}=to(),r=d(),i=k(),a=D(),o=ao(),s=y(),{validateLanguageOptions:c}=oo(),{LATEST_ECMA_VERSION:l}=j(),u=r(`eslint:languages:js`),f=Symbol.for(`eslint.RuleTester.parser`);function p(e,t,n){let r=t.parserOptions.ecmaFeatures||{},i=t.ecmaVersion||5;return o.analyze(e,{ignoreEval:!0,nodejsScope:r.globalReturn,impliedStrict:r.impliedStrict,ecmaVersion:typeof i==`number`?i:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||s.KEYS,fallback:s.getKeys,jsx:r.jsx})}function m(e){return e===a||e[f]===a}function h(e){switch(e){case 3:return 3;case 5:case void 0:return 5;default:if(typeof e==`number`)return e>=2015?e:e+2009}return l}t.exports={fileType:`text`,lineStart:1,columnStart:0,nodeTypeKey:`type`,visitorKeys:s.KEYS,defaultLanguageOptions:{sourceType:`module`,ecmaVersion:`latest`,parser:a,parserOptions:{}},validateLanguageOptions:c,normalizeLanguageOptions(e){if(e.ecmaVersion=h(e.ecmaVersion),m(e.parser)){let t=e.parserOptions;e.sourceType&&(t.sourceType=e.sourceType,t.sourceType===`module`&&t.ecmaFeatures&&t.ecmaFeatures.globalReturn&&(t.ecmaFeatures.globalReturn=!1))}return e},matchesSelectorClass(e,t,n){switch(e.toLowerCase()){case`statement`:if(t.type.slice(-9)===`Statement`)return!0;case`declaration`:return t.type.slice(-11)===`Declaration`;case`pattern`:if(t.type.slice(-7)===`Pattern`)return!0;case`expression`:return t.type.slice(-10)===`Expression`||t.type.slice(-7)===`Literal`||t.type===`Identifier`&&(n.length===0||n[0].type!==`MetaProperty`)||t.type===`MetaProperty`;case`function`:return t.type===`FunctionDeclaration`||t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`;default:throw Error(`Unknown class name: ${e}`)}},parse(e,{languageOptions:t}){let{body:n,path:r}=e,a=n.replace(i.shebangPattern,(e,t)=>`//${t}`),{ecmaVersion:o,sourceType:c,parser:l}=t,d=Object.assign({ecmaVersion:o,sourceType:c},t.parserOptions,{loc:!0,range:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:r});try{u(`Parsing:`,r);let e=typeof l.parseForESLint==`function`?l.parseForESLint(a,d):{ast:l.parse(a,d)};u(`Parsing successful:`,r);let{ast:t,services:n={},visitorKeys:i=s.KEYS,scopeManager:o}=e;return{ok:!0,ast:t,parserServices:n,visitorKeys:i,scopeManager:o}}catch(e){let t=e.message.replace(/^line \d+:/iu,``).trim();return u(`%s
85
+ %s`,t,e.stack),{ok:!1,errors:[{message:t,line:e.lineNumber,column:e.column}]}}},createSourceCode(e,t,{languageOptions:r}){let{body:i,path:a,bom:o}=e,{ast:s,parserServices:c,visitorKeys:l}=t;u(`Scope analysis:`,a);let d=t.scopeManager||p(s,r,l);return u(`Scope analysis successful:`,a),new n({text:i,ast:s,hasBOM:o,parserServices:c,scopeManager:d,visitorKeys:l})}}})),co=n((e=>{let t=ya(),n=[{files:[`**/*.js`,`**/*.mjs`]},{files:[`**/*.cjs`],languageOptions:{sourceType:`commonjs`,ecmaVersion:`latest`}}];e.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:so()},rules:new Proxy({},{get(e,n){return t.get(n)},has(e,n){return t.has(n)}})}},language:`@/js`,linterOptions:{reportUnusedDisableDirectives:1}},{ignores:[`**/node_modules/`,`.git/`]},...n]),e.defaultRuleTesterConfig=Object.freeze([{files:[`**`]},...n])})),lo=n(((e,t)=>{function n(){return process.hrtime()}function r(e){let t=process.hrtime(e);return t[0]*1e3+t[1]/1e6}t.exports={startTime:n,endTime:r}})),uo=n(((e,t)=>{let{startTime:n,endTime:r}=lo();function i(e,t,n){return e+Array(t-e.length+1).join(n||` `)}function a(e,t,n){return Array(t-e.length+1).join(n||` `)+e}let o=!!process.env.TIMING,s=[`Rule`,`Time (ms)`,`Relative`],c=[i,a,a];function l(){if(typeof process.env.TIMING!=`string`)return 10;if(process.env.TIMING.toLowerCase()===`all`)return 1/0;let e=Number.parseInt(process.env.TIMING,10);return e>10?e:10}function u(e){let t=0,n=Object.keys(e).map(n=>{let r=e[n];return t+=r,[n,r]}).sort((e,t)=>t[1]-e[1]).slice(0,l());n.forEach(e=>{e.push(`${(e[1]*100/t).toFixed(1)}%`),e[1]=e[1].toFixed(3)}),n.unshift(s);let r=[];n.forEach(e=>{let t=e.length;for(let n=0;n<t;n++){let t=e[n].length;(!r[n]||t>r[n])&&(r[n]=t)}});let i=n.map(e=>e.map((e,t)=>c[t](e,r[t])).join(` | `));i.splice(1,0,r.map((e,t)=>{let n=t!==0&&t!==r.length-1?2:1;return c[t](`:`,e+n,`-`)}).join(`|`)),console.log(i.join(`
86
+ `))}t.exports=(function(){let e=Object.create(null),t=!0;function i(t,i,a){return function(...s){let c=n(),l=i(...s),u=r(c);return o&&(e[t]===void 0&&(e[t]=0),e[t]+=u),a?{result:l,tdiff:u}:l}}function a(){return{...e}}function s(t){for(let[n,r]of Object.entries(t))e[n]===void 0&&(e[n]=0),e[n]+=r}function c(){t=!1}return o&&process.on(`exit`,()=>{t&&Object.keys(e).length>0&&u(e)}),{time:i,enabled:o,getListSize:l,getData:a,mergeData:s,disableDisplay:c}})()})),fo=n(((e,t)=>{t.exports=function(e,t){let n=t.align,r=t.stringLength,i=e.reduce((e,t)=>(t.forEach((t,n)=>{let i=r(t);(!e[n]||i>e[n])&&(e[n]=i)}),e),[]);return e.map(e=>e.map((e,t)=>{let a=i[t]-r(e)||0,o=Array(Math.max(a+1,1)).join(` `);return n[t]===`r`?o+e:e+o}).join(` `).trimEnd()).join(`
87
+ `)}})),po=n(((e,n)=>{let r=t(`node:util`),i=fo();function a(e){return e===void 0?(e,t)=>r.styleText(e,t,{validateStream:!0}):e?(e,t)=>r.styleText(e,t,{validateStream:!1}):(e,t)=>t}function o(e,t){return t===1?e:`${e}s`}n.exports=function(e,t){let n=a(t?.color),s=`
88
+ `,c=0,l=0,u=0,d=0,f=`yellow`;e.forEach(e=>{let t=e.messages;t.length!==0&&(c+=e.errorCount,l+=e.warningCount,u+=e.fixableErrorCount,d+=e.fixableWarningCount,s+=`${n(`underline`,e.filePath)}\n`,s+=`${i(t.map(e=>{let t;return e.fatal||e.severity===2?(t=n(`red`,`error`),f=`red`):t=n(`yellow`,`warning`),[``,String(e.line||0),String(e.column||0),t,e.message.replace(/([^ ])\.$/u,`$1`),e.ruleId?n(`dim`,e.ruleId):``]}),{align:[``,`r`,`l`],stringLength(e){return r.stripVTControlCharacters(e).length}}).split(`
89
+ `).map(e=>e.replace(/(\d+)\s+(\d+)/u,(e,t,r)=>n(`dim`,`${t}:${r}`))).join(`
90
+ `)}\n\n`)});let p=c+l;return p>0&&(s+=`${n(f,n(`bold`,[`✖ `,p,o(` problem`,p),` (`,c,o(` error`,c),`, `,l,o(` warning`,l),`)`].join(``)))}\n`,(u>0||d>0)&&(s+=`${n(f,n(`bold`,[` `,u,o(` error`,u),` and `,d,o(` warning`,d)," potentially fixable with the `--fix` option."].join(``)))}\n`)),p>0?n(`reset`,s):``}})),mo=n(((e,t)=>{let n=(function(){let e={"&":`&#38;`,"<":`&#60;`,">":`&#62;`,'"':`&#34;`,"'":`&#39;`},t=/[&<>"']/gu;return function(n){return n?n.toString().replace(t,t=>e[t]||t):``}})();function r(e){let{reportColor:t,reportSummary:n,date:r,results:i}=e;return`
91
+ <!DOCTYPE html>
92
+ <html>
93
+ <head>
94
+ <meta charset="UTF-8">
95
+ <title>ESLint Report</title>
96
+ <link rel="icon" type="image/png" sizes="any" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAHaAAAB2gGFomX7AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABD1JREFUWMPFl11sk2UUx3/nbYtjxS1MF7MLMTECMgSTtSSyrQkLhAj7UBPnDSEGoxegGzMwojhXVpmTAA5iYpSoMQa8GBhFOrMFk03buei6yRAlcmOM0SEmU9d90b19jxcM1o5+sGnsc/e+z/l6ztf/HFFVMnns6QieeOCHBePGsHM+wrOtvLG2C4WRVDSSygNV7sCjlspxwDnPB44aols/DXk+mbMBmx/6OseITF1CuOtfevkPh2Uu+/jbdX8lujSScRlT5r7/QDlAfsRmfzmpnkQ/H3H13gf6bBrBn1uqK8WylgEnU8eZmk1repbfchJG1TyKyIKEwuBHFd3lD3naY3O1siiwXsVoBV2VgM1ht/QQUJk2ByqKghsQziYQ8ifKgexIXmuyzC4r67Y7R+xPAfuB/Nn3Cpva+0s7khpQVtZtd4bt51BWxtBYAiciprG7c7D4SixzU9PYalDL6110Ifb/w8W9eY7JqFeFHbO8fPGyLHwwFHJNJTSgwtVTB9oaw9BlQ+tO93vOxypoaQnfEYlI43SeCHDC4TDq9+51/h5fxr33q0ZfV9g04wat9Q943rjJgCp3952W2i8Bi6eDvdsfKj0cK/DYMRyXL4/sUJUmIHd2zYMezsvLaamp4WpcWN3BXSiHpuMwbGbZlnZ8tXY4rgosy+G7oRwQ0cAsd28YGgqfU5UjCZQDLALxDg+Hv/P5Rqvj4hwrS8izXzWb4spwc1GgENFnkpWRzxeuB+ssUHgLdb9UVdt8vpGdKQpze7n7y1U3DBChNRUuqOo9c+0+qpKKxyZqtAIYla7gY4JszAAQri93BSsMRZoyBcUC+w3Q3AyOA4sNhAOZ0q7Iq0b2vUNvK5zPgP+/H8+Zetdoa6uOikhdGurxebwvJY8Iz3V1rTMNAH+opEuQj5KTT/qA1yC+wyUjBm12OidaUtCcPNNX2h0Hx2JG69VulANZAJZJwfU7rzd/FHixuXniTdM0m4GtSQT7bTartqEh9yfImUEzkwKZmTwmo5a5JwkYBfcDL01/RkR5y8iWhtPBknB8ZxwtU9UjwOrrKCeizzc25nTGg1F/turEHoU9wMLpDvWKf8DTmNCAKnd/tqUTF4ElMXJ+A5rWDJS+41WsGWzALhJ+ErBWrLj9g+pqojHxlXJX8HGUg0BsR/x1yhxf3jm4cSzpQFLp6tmi6PEE7g1ZhtZ91ufpSZUAFa6gC+UoQslNaSmypT1U8mHKiUgEKS8KfgF4EpYunFI16tsHin+OG0LcgQK7yj7g6cSzpva2D3hKVNG0Y3mVO1BkqfSlmJrHBQ4uvM12gJHc6ETW8HZVfMRmXvyxxNC1Z/o839zyXlDuCr4nsC11J+MXueaVJWn6yPv+/pJtc9oLTNN4AeTvNGByd3rlhE2x9s5pLwDoHCy+grDzWmOZ95lUtLYj5Bma126Y8eX0/zj/ADxGyViSg4BXAAAAAElFTkSuQmCC">
97
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjk0LjgyNSAyNTguOTgyJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnPg0KPHBhdGggZmlsbD0nIzgwODBGMicgZD0nTTk3LjAyMSw5OS4wMTZsNDguNDMyLTI3Ljk2MmMxLjIxMi0wLjcsMi43MDYtMC43LDMuOTE4LDBsNDguNDMzLDI3Ljk2MiBjMS4yMTEsMC43LDEuOTU5LDEuOTkzLDEuOTU5LDMuMzkzdjU1LjkyNGMwLDEuMzk5LTAuNzQ4LDIuNjkzLTEuOTU5LDMuMzk0bC00OC40MzMsMjcuOTYyYy0xLjIxMiwwLjctMi43MDYsMC43LTMuOTE4LDAgbC00OC40MzItMjcuOTYyYy0xLjIxMi0wLjctMS45NTktMS45OTQtMS45NTktMy4zOTR2LTU1LjkyNEM5NS4wNjMsMTAxLjAwOSw5NS44MSw5OS43MTYsOTcuMDIxLDk5LjAxNicvPg0KPHBhdGggZmlsbD0nIzRCMzJDMycgZD0nTTI3My4zMzYsMTI0LjQ4OEwyMTUuNDY5LDIzLjgxNmMtMi4xMDItMy42NC01Ljk4NS02LjMyNS0xMC4xODgtNi4zMjVIODkuNTQ1IGMtNC4yMDQsMC04LjA4OCwyLjY4NS0xMC4xOSw2LjMyNWwtNTcuODY3LDEwMC40NWMtMi4xMDIsMy42NDEtMi4xMDIsOC4yMzYsMCwxMS44NzdsNTcuODY3LDk5Ljg0NyBjMi4xMDIsMy42NCw1Ljk4Niw1LjUwMSwxMC4xOSw1LjUwMWgxMTUuNzM1YzQuMjAzLDAsOC4wODctMS44MDUsMTAuMTg4LTUuNDQ2bDU3Ljg2Ny0xMDAuMDEgQzI3NS40MzksMTMyLjM5NiwyNzUuNDM5LDEyOC4xMjgsMjczLjMzNiwxMjQuNDg4IE0yMjUuNDE5LDE3Mi44OThjMCwxLjQ4LTAuODkxLDIuODQ5LTIuMTc0LDMuNTlsLTczLjcxLDQyLjUyNyBjLTEuMjgyLDAuNzQtMi44ODgsMC43NC00LjE3LDBsLTczLjc2Ny00Mi41MjdjLTEuMjgyLTAuNzQxLTIuMTc5LTIuMTA5LTIuMTc5LTMuNTlWODcuODQzYzAtMS40ODEsMC44ODQtMi44NDksMi4xNjctMy41OSBsNzMuNzA3LTQyLjUyN2MxLjI4Mi0wLjc0MSwyLjg4Ni0wLjc0MSw0LjE2OCwwbDczLjc3Miw0Mi41MjdjMS4yODMsMC43NDEsMi4xODYsMi4xMDksMi4xODYsMy41OVYxNzIuODk4eicvPg0KPC9zdmc+">
98
+ <style>
99
+ body {
100
+ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
101
+ font-size: 16px;
102
+ font-weight: normal;
103
+ margin: 0;
104
+ padding: 0;
105
+ color: #333;
106
+ }
107
+
108
+ #overview {
109
+ padding: 20px 30px;
110
+ }
111
+
112
+ td,
113
+ th {
114
+ padding: 5px 10px;
115
+ }
116
+
117
+ h1 {
118
+ margin: 0;
119
+ }
120
+
121
+ table {
122
+ margin: 30px;
123
+ width: calc(100% - 60px);
124
+ max-width: 1000px;
125
+ border-radius: 5px;
126
+ border: 1px solid #ddd;
127
+ border-spacing: 0;
128
+ }
129
+
130
+ th {
131
+ font-weight: 400;
132
+ font-size: medium;
133
+ text-align: left;
134
+ cursor: pointer;
135
+ }
136
+
137
+ td.clr-1,
138
+ td.clr-2,
139
+ th span {
140
+ font-weight: 700;
141
+ }
142
+
143
+ th span {
144
+ float: right;
145
+ margin-left: 20px;
146
+ }
147
+
148
+ th span::after {
149
+ content: "";
150
+ clear: both;
151
+ display: block;
152
+ }
153
+
154
+ tr:last-child td {
155
+ border-bottom: none;
156
+ }
157
+
158
+ tr td:first-child,
159
+ tr td:last-child {
160
+ color: #9da0a4;
161
+ }
162
+
163
+ #overview.bg-0,
164
+ tr.bg-0 th {
165
+ color: #468847;
166
+ background: #dff0d8;
167
+ border-bottom: 1px solid #d6e9c6;
168
+ }
169
+
170
+ #overview.bg-1,
171
+ tr.bg-1 th {
172
+ color: #f0ad4e;
173
+ background: #fcf8e3;
174
+ border-bottom: 1px solid #fbeed5;
175
+ }
176
+
177
+ #overview.bg-2,
178
+ tr.bg-2 th {
179
+ color: #b94a48;
180
+ background: #f2dede;
181
+ border-bottom: 1px solid #eed3d7;
182
+ }
183
+
184
+ td {
185
+ border-bottom: 1px solid #ddd;
186
+ }
187
+
188
+ td.clr-1 {
189
+ color: #f0ad4e;
190
+ }
191
+
192
+ td.clr-2 {
193
+ color: #b94a48;
194
+ }
195
+
196
+ td a {
197
+ color: #3a33d1;
198
+ text-decoration: none;
199
+ }
200
+
201
+ td a:hover {
202
+ color: #272296;
203
+ text-decoration: underline;
204
+ }
205
+ </style>
206
+ </head>
207
+ <body>
208
+ <div id="overview" class="bg-${t}">
209
+ <h1>ESLint Report</h1>
210
+ <div>
211
+ <span>${n}</span> - Generated on ${r}
212
+ </div>
213
+ </div>
214
+ <table>
215
+ <tbody>
216
+ ${i}
217
+ </tbody>
218
+ </table>
219
+ <script type="text/javascript">
220
+ var groups = document.querySelectorAll("tr[data-group]");
221
+ for (i = 0; i < groups.length; i++) {
222
+ groups[i].addEventListener("click", function() {
223
+ var inGroup = document.getElementsByClassName(this.getAttribute("data-group"));
224
+ this.innerHTML = (this.innerHTML.indexOf("+") > -1) ? this.innerHTML.replace("+", "-") : this.innerHTML.replace("-", "+");
225
+ for (var j = 0; j < inGroup.length; j++) {
226
+ inGroup[j].style.display = (inGroup[j].style.display !== "none") ? "none" : "table-row";
227
+ }
228
+ });
229
+ }
230
+ <\/script>
231
+ </body>
232
+ </html>
233
+ `.trimStart()}function i(e,t){return t===1?e:`${e}s`}function a(e,t){let n=e+t,r=`${n} ${i(`problem`,n)}`;return n!==0&&(r+=` (${e} ${i(`error`,e)}, ${t} ${i(`warning`,t)})`),r}function o(e,t){return e===0?t===0?0:1:2}function s(e){let{parentIndex:t,lineNumber:r,columnNumber:i,severityNumber:a,severityName:o,message:s,ruleUrl:c,ruleId:l}=e;return`
234
+ <tr style="display: none;" class="f-${t}">
235
+ <td>${r}:${i}</td>
236
+ <td class="clr-${a}">${o}</td>
237
+ <td>${n(s)}</td>
238
+ <td>
239
+ <a href="${c||``}" target="_blank" rel="noopener noreferrer">${l||``}</a>
240
+ </td>
241
+ </tr>
242
+ `.trimStart()}function c(e,t,n){return e.map(e=>{let r=e.line||0,i=e.column||0,a;if(n){let t=n[e.ruleId];t&&t.docs&&t.docs.url&&(a=t.docs.url)}return s({parentIndex:t,lineNumber:r,columnNumber:i,severityNumber:e.severity,severityName:e.severity===1?`Warning`:`Error`,message:e.message,ruleId:e.ruleId,ruleUrl:a})}).join(`
243
+ `)}function l(e){let{color:t,index:r,filePath:i,summary:a}=e;return`
244
+ <tr class="bg-${t}" data-group="f-${r}">
245
+ <th colspan="4">
246
+ [+] ${n(i)}
247
+ <span>${n(a)}</span>
248
+ </th>
249
+ </tr>
250
+ `.trimStart()}function u(e,t){return e.map((e,n)=>l({index:n,color:o(e.errorCount,e.warningCount),filePath:e.filePath,summary:a(e.errorCount,e.warningCount)})+c(e.messages,n,t)).join(`
251
+ `)}t.exports=function(e,t){let n,i,s=t?t.rulesMeta:{};return n=0,i=0,e.forEach(e=>{n+=e.errorCount,i+=e.warningCount}),r({date:new Date,reportColor:o(n,i),reportSummary:a(n,i),results:u(e,s)})}})),ho=n(((e,t)=>{t.exports=function(e){return JSON.stringify(e)}})),go=n(((e,t)=>{t.exports=function(e,t){return JSON.stringify({results:e,metadata:t})}})),_o=n(((e,t)=>{t.exports=function(e){if(typeof e!=`string`||e===``)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}})),vo=n(((e,t)=>{var n=_o(),r={"{":`}`,"(":`)`,"[":`]`},i=function(e){if(e[0]===`!`)return!0;for(var t=0,n=-2,i=-2,a=-2,o=-2,s=-2;t<e.length;){if(e[t]===`*`||e[t+1]===`?`&&/[\].+)]/.test(e[t])||i!==-1&&e[t]===`[`&&e[t+1]!==`]`&&(i<t&&(i=e.indexOf(`]`,t)),i>t&&(s===-1||s>i||(s=e.indexOf(`\\`,t),s===-1||s>i)))||a!==-1&&e[t]===`{`&&e[t+1]!==`}`&&(a=e.indexOf(`}`,t),a>t&&(s=e.indexOf(`\\`,t),s===-1||s>a))||o!==-1&&e[t]===`(`&&e[t+1]===`?`&&/[:!=]/.test(e[t+2])&&e[t+3]!==`)`&&(o=e.indexOf(`)`,t),o>t&&(s=e.indexOf(`\\`,t),s===-1||s>o))||n!==-1&&e[t]===`(`&&e[t+1]!==`|`&&(n<t&&(n=e.indexOf(`|`,t)),n!==-1&&e[n+1]!==`)`&&(o=e.indexOf(`)`,n),o>n&&(s=e.indexOf(`\\`,n),s===-1||s>o))))return!0;if(e[t]===`\\`){var c=e[t+1];t+=2;var l=r[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]===`!`)return!0}else t++}return!1},a=function(e){if(e[0]===`!`)return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]===`\\`){var n=e[t+1];t+=2;var i=r[n];if(i){var a=e.indexOf(i,t);a!==-1&&(t=a+1)}if(e[t]===`!`)return!0}else t++}return!1};t.exports=function(e,t){if(typeof e!=`string`||e===``)return!1;if(n(e))return!0;var r=i;return t&&t.strict===!1&&(r=a),r(e)}})),yo=n(((e,t)=>{(function(){var e;function n(t,r){var i=this instanceof n?this:e;if(i.reset(r),typeof t==`string`&&t.length>0&&i.hash(t),i!==this)return i}n.prototype.hash=function(e){var t,n,r,i,a=e.length;switch(this.len+=a,n=this.k1,r=0,this.rem){case 0:n^=a>r?e.charCodeAt(r++)&65535:0;case 1:n^=a>r?(e.charCodeAt(r++)&65535)<<8:0;case 2:n^=a>r?(e.charCodeAt(r++)&65535)<<16:0;case 3:n^=a>r?(e.charCodeAt(r)&255)<<24:0,n^=a>r?(e.charCodeAt(r++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(t=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,t^=n,t=t<<13|t>>>19,t=t*5+3864292196&4294967295,!(r>=a);)n=e.charCodeAt(r++)&65535^(e.charCodeAt(r++)&65535)<<8^(e.charCodeAt(r++)&65535)<<16,i=e.charCodeAt(r++),n^=(i&255)<<24^(i&65280)>>8;switch(n=0,this.rem){case 3:n^=(e.charCodeAt(r+2)&65535)<<16;case 2:n^=(e.charCodeAt(r+1)&65535)<<8;case 1:n^=e.charCodeAt(r)&65535}this.h1=t}return this.k1=n,this},n.prototype.result=function(){var e=this.k1,t=this.h1;return e>0&&(e=e*11601+(e&65535)*3432906752&4294967295,e=e<<15|e>>>17,e=e*13715+(e&65535)*461832192&4294967295,t^=e),t^=this.len,t^=t>>>16,t=t*51819+(t&65535)*2246770688&4294967295,t^=t>>>13,t=t*44597+(t&65535)*3266445312&4294967295,t^=t>>>16,t>>>0},n.prototype.reset=function(e){return this.h1=typeof e==`number`?e:0,this.rem=this.k1=this.len=0,this},e=new n,t===void 0?this.MurmurHash3=n:t.exports=n})()})),bo=n(((e,t)=>{let n=yo();function r(e){return n(e).result().toString(36)}t.exports=r})),xo=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};let t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}})),So=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EXPANSION_MAX=void 0,e.expand=x;let t=xo(),n=`\0SLASH`+Math.random()+`\0`,r=`\0OPEN`+Math.random()+`\0`,i=`\0CLOSE`+Math.random()+`\0`,a=`\0COMMA`+Math.random()+`\0`,o=`\0PERIOD`+Math.random()+`\0`,s=new RegExp(n,`g`),c=new RegExp(r,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=/\\\\/g,p=/\\{/g,m=/\\}/g,h=/\\,/g,g=/\\\./g;e.EXPANSION_MAX=1e5;function _(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function v(e){return e.replace(f,n).replace(p,r).replace(m,i).replace(h,a).replace(g,o)}function y(e){return e.replace(s,`\\`).replace(c,`{`).replace(l,`}`).replace(u,`,`).replace(d,`.`)}function b(e){if(!e)return[``];let n=[],r=(0,t.balanced)(`{`,`}`,e);if(!r)return e.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=b(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function x(t,n={}){if(!t)return[];let{max:r=e.EXPANSION_MAX}=n;return t.slice(0,2)===`{}`&&(t=`\\{\\}`+t.slice(2)),E(v(t),r,!0).map(y)}function S(e){return`{`+e+`}`}function C(e){return/^-?0\d/.test(e)}function w(e,t){return e<=t}function T(e,t){return e>=t}function E(e,n,r){let a=[],o=(0,t.balanced)(`{`,`}`,e);if(!o)return[e];let s=o.pre,c=o.post.length?E(o.post,n,!1):[``];if(/\$$/.test(o.pre))for(let e=0;e<c.length&&e<n;e++){let t=s+`{`+o.body+`}`+c[e];a.push(t)}else{let t=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),u=t||l,d=o.body.indexOf(`,`)>=0;if(!u&&!d)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+i+o.post,E(e,n,!0)):[e];let f;if(u)f=o.body.split(/\.\./);else if(f=b(o.body),f.length===1&&f[0]!==void 0&&(f=E(f[0],n,!1).map(S),f.length===1))return c.map(e=>o.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=_(f[0]),t=_(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.max(Math.abs(_(f[2])),1):1,i=w;t<e&&(r*=-1,i=T);let a=f.some(C);p=[];for(let o=e;i(o,t);o+=r){let e;if(l)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e<f.length;e++)p.push.apply(p,E(f[e],n,!1))}for(let e=0;e<p.length;e++)for(let t=0;t<c.length&&a.length<n;t++){let n=s+p[e]+c[t];(!r||u||n)&&a.push(n)}}return a}})),Co=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertValidPattern=void 0,e.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)}})),wo=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseClass=void 0;let t={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},n=e=>e.replace(/[[\]\\-]/g,`\\$&`),r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),i=e=>e.join(``);e.parseClass=(e,a)=>{let o=a;if(e.charAt(o)!==`[`)throw Error(`not in a brace expression`);let s=[],c=[],l=o+1,u=!1,d=!1,f=!1,p=!1,m=o,h=``;WHILE:for(;l<e.length;){let r=e.charAt(l);if((r===`!`||r===`^`)&&l===o+1){p=!0,l++;continue}if(r===`]`&&u&&!f){m=l+1;break}if(u=!0,r===`\\`&&!f){f=!0,l++;continue}if(r===`[`&&!f){for(let[n,[r,i,a]]of Object.entries(t))if(e.startsWith(n,l)){if(h)return[`$.`,!1,e.length-o,!0];l+=n.length,a?c.push(r):s.push(r),d||=i;continue WHILE}}if(f=!1,h){r>h?s.push(n(h)+`-`+n(r)):r===h&&s.push(n(r)),h=``,l++;continue}if(e.startsWith(`-]`,l+1)){s.push(n(r+`-`)),l+=2;continue}if(e.startsWith(`-`,l+1)){h=r,l+=2;continue}s.push(n(r)),l++}if(m<l)return[``,!1,0,!1];if(!s.length&&!c.length)return[`$.`,!1,e.length-o,!0];if(c.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!p)return[r(s[0].length===2?s[0].slice(-1):s[0]),!1,m-o,!1];let g=`[`+(p?`^`:``)+i(s)+`]`,_=`[`+(p?``:`^`)+i(c)+`]`;return[s.length&&c.length?`(`+g+`|`+_+`)`:s.length?g:_,d,m-o,!0]}})),To=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unescape=void 0,e.unescape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`):t?e.replace(/\[([^\/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,`$1$2`).replace(/\\([^\/{}])/g,`$1`)})),Eo=n((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.AST=void 0;let n=wo(),r=To(),i=new Set([`!`,`?`,`+`,`*`,`@`]),a=e=>i.has(e),o=e=>a(e.type),s=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),c=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),l=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),u=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),d=`(?!\\.)`,f=new Set([`[`,`.`]),p=new Set([`..`,`.`]),m=new Set(`().*{}+?[]^$\\!`),h=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),g=`[^/]`,_=g+`*?`,v=g+`+?`,y=0;var b=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++y;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let n of e)if(n!==``){if(typeof n!=`string`&&!(n instanceof t&&n.#i===this))throw Error(`invalid part: `+n);this.#r.push(n)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let n=0;n<this.#a;n++){let r=e.#r[n];if(!(r instanceof t&&r.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let n=new t(this.type,e);for(let e of this.#r)n.copyIn(e);return n}static#f(e,n,r,i,o){let s=i.maxExtglobRecursion??2,c=!1,l=!1,u=-1,d=!1;if(n.type===null){let f=r,p=``;for(;f<e.length;){let r=e.charAt(f++);if(c||r===`\\`){c=!c,p+=r;continue}if(l){f===u+1?(r===`^`||r===`!`)&&(d=!0):r===`]`&&!(f===u+2&&d)&&(l=!1),p+=r;continue}else if(r===`[`){l=!0,u=f,d=!1,p+=r;continue}if(!i.noext&&a(r)&&e.charAt(f)===`(`&&o<=s){n.push(p),p=``;let a=new t(r,n);f=t.#f(e,a,f,i,o+1),n.push(a);continue}p+=r}return n.push(p),f}let f=r+1,p=new t(null,n),m=[],h=``;for(;f<e.length;){let r=e.charAt(f++);if(c||r===`\\`){c=!c,h+=r;continue}if(l){f===u+1?(r===`^`||r===`!`)&&(d=!0):r===`]`&&!(f===u+2&&d)&&(l=!1),h+=r;continue}else if(r===`[`){l=!0,u=f,d=!1,h+=r;continue}if(!i.noext&&a(r)&&e.charAt(f)===`(`&&(o<=s||n&&n.#h(r))){let a=n&&n.#h(r)?0:1;p.push(h),h=``;let s=new t(r,p);p.push(s),f=t.#f(e,s,f,i,o+a);continue}if(r===`|`){p.push(h),h=``,m.push(p),p=new t(null,n);continue}if(r===`)`)return h===``&&n.#r.length===0&&(n.#u=!0),p.push(h),h=``,n.push(...m,p),f;h+=r}return n.type=null,n.#t=void 0,n.#r=[e.substring(r-1)],f}#p(e){return this.#m(e,c)}#m(e,t=s){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=l){return!!t.get(this.type)?.includes(e)}#g(e,n){let r=e.#r[0],i=new t(null,r,this.options);i.#r.push(``),r.push(i),this.#_(e,n)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!u.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=u.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,n={}){let r=new t(null,void 0,n);return t.#f(e,r,0,n,0),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let n=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!o(this)){let i=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),a=this.#r.map(n=>{let[r,a,o,s]=typeof n==`string`?t.#C(n,this.#t,i):n.toRegExpSource(e);return this.#t=this.#t||o,this.#n=this.#n||s,r}).join(``),o=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&p.has(this.#r[0]))){let t=f,r=n&&t.has(a.charAt(0))||a.startsWith(`\\.`)&&t.has(a.charAt(2))||a.startsWith(`\\.\\.`)&&t.has(a.charAt(4)),i=!n&&!e&&t.has(a.charAt(0));o=r?`(?!(?:^|/)\\.\\.?(?:$|/))`:i?d:``}let s=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(s=`(?:$|\\/)`),[o+a+s,(0,r.unescape)(a),this.#t=!!this.#t,this.#n]}let i=this.type===`*`||this.type===`+`,a=this.type===`!`?`(?:(?!(?:`:`(?:`,s=this.#S(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,(0,r.unescape)(this.toString()),!1,!1]}let c=!i||e||n?``:this.#S(!0);c===s&&(c=``),c&&(s=`(?:${s})(?:${c})*?`);let l=``;if(this.type===`!`&&this.#u)l=(this.isStart()&&!n?d:``)+v;else{let t=this.type===`!`?`))`+(this.isStart()&&!n&&!e?d:``)+_+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&c?`)`:this.type===`*`&&c?`)?`:`)${this.type}`;l=a+s+t}return[l,(0,r.unescape)(s),this.#t=!!this.#t,this.#n]}#x(){if(o(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,i=!1){let a=!1,o=``,s=!1,c=!1;for(let r=0;r<e.length;r++){let l=e.charAt(r);if(a){a=!1,o+=(m.has(l)?`\\`:``)+l;continue}if(l===`*`){if(c)continue;c=!0,o+=i&&/^[*]+$/.test(e)?v:_,t=!0;continue}else c=!1;if(l===`\\`){r===e.length-1?o+=`\\\\`:a=!0;continue}if(l===`[`){let[i,a,c,l]=(0,n.parseClass)(e,r);if(c){o+=i,s||=a,r+=c-1,t||=l;continue}}if(l===`?`){o+=g,t=!0;continue}o+=h(l)}return[o,(0,r.unescape)(e),!!t,s]}};e.AST=b,t=b})),Do=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.escape=void 0,e.escape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`)})),Oo=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;let t=So(),n=Co(),r=Eo(),i=Do(),a=To();e.minimatch=(e,t,r={})=>((0,n.assertValidPattern)(t),!r.nocomment&&t.charAt(0)===`#`?!1:new j(t,r).match(e));let o=/^\*+([^+@!?\*\[\(]*)$/,s=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),c=e=>t=>t.endsWith(e),l=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),u=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),d=/^\*+\.\*+$/,f=e=>!e.startsWith(`.`)&&e.includes(`.`),p=e=>e!==`.`&&e!==`..`&&e.includes(`.`),m=/^\.\*+$/,h=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),g=/^\*+$/,_=e=>e.length!==0&&!e.startsWith(`.`),v=e=>e.length!==0&&e!==`.`&&e!==`..`,y=/^\?+([^+@!?\*\[\(]*)?$/,b=([e,t=``])=>{let n=w([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},x=([e,t=``])=>{let n=T([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},S=([e,t=``])=>{let n=T([e]);return t?e=>n(e)&&e.endsWith(t):n},C=([e,t=``])=>{let n=w([e]);return t?e=>n(e)&&e.endsWith(t):n},w=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},T=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},E=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,D={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=E===`win32`?D.win32.sep:D.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR,e.filter=(t,n={})=>r=>(0,e.minimatch)(r,t,n),e.minimatch.filter=e.filter;let O=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,O(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,O(t,n))}static defaults(e){return n.defaults(O(t,e)).Minimatch}},AST:class extends n.AST{constructor(e,n,r={}){super(e,n,O(t,r))}static fromGlob(e,r={}){return n.AST.fromGlob(e,O(t,r))}},unescape:(e,r={})=>n.unescape(e,O(t,r)),escape:(e,r={})=>n.escape(e,O(t,r)),filter:(e,r={})=>n.filter(e,O(t,r)),defaults:e=>n.defaults(O(t,e)),makeRe:(e,r={})=>n.makeRe(e,O(t,r)),braceExpand:(e,r={})=>n.braceExpand(e,O(t,r)),match:(e,r,i={})=>n.match(e,r,O(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,r={})=>((0,n.assertValidPattern)(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,t.expand)(e,{max:r.braceExpandMax})),e.minimatch.braceExpand=e.braceExpand,e.makeRe=(e,t={})=>new j(e,t).makeRe(),e.minimatch.makeRe=e.makeRe,e.match=(e,t,n={})=>{let r=new j(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;let k=/[?*]|[+@!]\(.*?\)|\[|\]/,A=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var j=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){(0,n.assertValidPattern)(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||E,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!k.test(e[2]))&&!k.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(t,n,r=!1){let i=0,a=0;if(this.isWindows){let e=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),r=!e&&t[0]===``&&t[1]===``&&t[2]===`?`&&/^[a-z]:$/i.test(t[3]),o=typeof n[0]==`string`&&/^[a-z]:$/i.test(n[0]),s=!o&&n[0]===``&&n[1]===``&&n[2]===`?`&&typeof n[3]==`string`&&/^[a-z]:$/i.test(n[3]),c=r?3:e?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[e,r]=[t[c],n[l]];e.toLowerCase()===r.toLowerCase()&&(n[l]=e,a=l,i=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(e.GLOBSTAR)?this.#e(t,n,r,i,a):this.#n(t,n,r,i,a)}#e(t,n,r,i,a){let o=n.indexOf(e.GLOBSTAR,a),s=n.lastIndexOf(e.GLOBSTAR),[c,l,u]=r?[n.slice(a,o),n.slice(o+1),[]]:[n.slice(a,o),n.slice(o+1,s),n.slice(s+1)];if(c.length){let e=t.slice(i,i+c.length);if(!this.#n(e,c,r,0,0))return!1;i+=c.length,a+=c.length}let d=0;if(u.length){if(u.length+i>t.length)return!1;let e=t.length-u.length;if(this.#n(t,u,r,e,0))d=u.length;else{if(t[t.length-1]!==``||i+u.length===t.length||(e--,!this.#n(t,u,r,e,0)))return!1;d=u.length+1}}if(!l.length){let e=!!d;for(let n=i;n<t.length-d;n++){let r=String(t[n]);if(e=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return r||e}let f=[[[],0]],p=f[0],m=0,h=[0];for(let t of l)t===e.GLOBSTAR?(h.push(m),p=[[],0],f.push(p)):(p[0].push(t),m++);let g=f.length-1,_=t.length-d;for(let e of f)e[1]=_-(h[g--]+e[0].length);return!!this.#t(t,f,i,0,r,0,!!d)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(t,n,r,i,a){let o,s,c,l;for(o=i,s=a,l=t.length,c=n.length;o<l&&s<c;o++,s++){this.debug(`matchOne loop`);let r=n[s],i=t[o];if(this.debug(n,r,i),r===!1||r===e.GLOBSTAR)return!1;let a;if(typeof r==`string`?(a=i===r,this.debug(`string match`,r,i,a)):(a=r.test(i),this.debug(`pattern match`,r,i,a)),!a)return!1}if(o===l&&s===c)return!0;if(o===l)return r;if(s===c)return o===l-1&&t[o]===``;throw Error(`wtf?`)}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,n.assertValidPattern)(t);let i=this.options;if(t===`**`)return e.GLOBSTAR;if(t===``)return``;let a,w=null;(a=t.match(g))?w=i.dot?v:_:(a=t.match(o))?w=(i.nocase?i.dot?u:l:i.dot?c:s)(a[1]):(a=t.match(y))?w=(i.nocase?i.dot?x:b:i.dot?S:C)(a):(a=t.match(d))?w=i.dot?p:f:(a=t.match(m))&&(w=h);let T=r.AST.fromGlob(t,this.options).toMMPattern();return w&&typeof T==`object`&&Reflect.defineProperty(T,`test`,{value:w}),T}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?`[^/]*?`:n.dot?`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`:`(?:(?!(?:\\/|^)\\.).)*?`,i=new Set(n.nocase?[`i`]:[]),a=t.map(t=>{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?A(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|\\/`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))});let a=n.filter(t=>t!==e.GLOBSTAR);if(this.partial&&a.length>=1){let e=[];for(let t=1;t<=a.length;t++)e.push(a.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return a.join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.partial&&(a=`^(?:\\/|`+o+a.slice(1,-1)+s+`)$`),this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}};e.Minimatch=j;var M=Eo();Object.defineProperty(e,`AST`,{enumerable:!0,get:function(){return M.AST}});var N=Do();Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return N.escape}});var P=To();Object.defineProperty(e,`unescape`,{enumerable:!0,get:function(){return P.unescape}}),e.minimatch.AST=r.AST,e.minimatch.Minimatch=j,e.minimatch.escape=i.escape,e.minimatch.unescape=a.unescape})),ko=n(((e,n)=>{var r=vo(),i=t(`path`).posix.dirname,a=t(`os`).platform()===`win32`,o=`/`,s=/\\/g,c=/\\([!*?|[\](){}])/g;n.exports=function(e,t){Object.assign({flipBackslashes:!0},t).flipBackslashes&&a&&e.indexOf(o)<0&&(e=e.replace(s,o)),l(e)&&(e+=o),e+=`a`;do e=i(e);while(u(e));return e.replace(c,`$1`)};function l(e){var t=e.slice(-1),n;switch(t){case`}`:n=`{`;break;case`]`:n=`[`;break;default:return!1}var r=e.indexOf(n);return r<0?!1:e.slice(r+1,-1).includes(o)}function u(e){return/\([^()]+$/.test(e)||e[0]===`{`||e[0]===`[`||/[^\\][{[]/.test(e)?!0:r(e)}})),Ao=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function r(e,t){if(t===void 0)return e;if(!n(e)||!n(t))return t;let i={...e,...t};for(let n of Object.keys(t))Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=r(e[n],t[n]));return i}function i(e,t){return!e||!t?t||e||[]:[...e.map((e,n)=>r(e,n<t.length?t[n]:void 0)),...t.slice(e.length)]}t.exports={deepMergeArrays:i}})),jo=n(((e,t)=>{function n(e){if([2,`2`,`error`].includes(e))return`error`;if([1,`1`,`warn`].includes(e))return`warn`;if([0,`0`,`off`].includes(e))return`off`;throw Error(`Invalid severity value: ${e}`)}function r(e){if([2,`2`,`error`].includes(e))return 2;if([1,`1`,`warn`].includes(e))return 1;if([0,`0`,`off`].includes(e))return 0;throw Error(`Invalid severity value: ${e}`)}t.exports={normalizeSeverityToString:n,normalizeSeverityToNumber:r}})),Mo=n(((e,t)=>{let{normalizeSeverityToNumber:n}=jo(),r=new Map([[0,0],[`off`,0],[1,1],[`warn`,1],[2,2],[`error`,2]]);function i(e){return typeof e==`object`&&!!e}function a(e){return i(e)&&!Array.isArray(e)}function o(e){return e===void 0}function s(e,t,n=new Map){let r=n.get(e);if(r){let e=r.get(t);if(e)return e}else r=new Map,n.set(e,r);let i={...e,...t};delete i.__proto__,r.set(t,i);for(let r of Object.keys(t)){if(r===`__proto__`||!Object.prototype.propertyIsEnumerable.call(e,r))continue;let c=e[r],l=t[r];a(c)&&a(l)?i[r]=s(c,l,n):o(l)&&(i[r]=c)}return i}function c(e){let t=Array.isArray(e)?e.slice(0):[e];return t[0]=r.get(t[0]),structuredClone(t)}function l(e){for(let t of Object.keys(e))if(typeof e[t]==`function`)return!0;return!1}var u=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-options`,this.messageData={ruleId:e,value:t}}};function d(e,t){if(typeof t!=`string`&&typeof t!=`number`&&!Array.isArray(t))throw new u(e,t)}var f=class extends Error{constructor(e,t){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate=`invalid-rule-severity`,this.messageData={ruleId:e,value:t}}};function p(e,t){if(r.get(t)===void 0)throw new f(e,t)}function m(e){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(e))throw TypeError(`Expected string in the form "pluginName/objectName" but found "${e}".`)}function h(e){if(!i(e))throw TypeError(`Expected an object.`)}var g=class extends Error{constructor(e){super(`This appears to be in eslintrc format rather than flat config format.`),this.messageTemplate=`eslintrc-incompat`,this.messageData={key:e}}},_=class extends Error{constructor(e){super(`This appears to be in eslintrc format (array of strings) rather than flat config format (object).`),this.messageTemplate=`eslintrc-plugins`,this.messageData={plugins:e}}};let v={merge:`replace`,validate:`boolean`},y=new Set([`error`,`warn`,`off`,2,1,0]),b={merge(e,t){let r=t===void 0?e:t;return typeof r==`boolean`?r?`warn`:`off`:n(r)},validate(e){if(!(y.has(e)||typeof e==`boolean`))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.`)}},x={merge(e,t){return n(t===void 0?e:t)},validate(e){if(!y.has(e))throw TypeError(`Expected one of: "error", "warn", "off", 0, 1, or 2.`)}},S={merge(e={},t={}){return s(e,t)},validate:`object`},C={merge(e={},t={}){let n=s(e,t);for(let[r,i]of Object.entries(n))if(a(i)){if(l(i)){n[r]=t[r]??e[r];continue}n[r]={...n[r]};continue}return n},validate:`object`},w={merge:`replace`,validate:m},T={merge(e={},t={}){let n=new Set([...Object.keys(e),...Object.keys(t)]),r={};for(let i of n)if(i!==`__proto__`){if(i in e&&i in t&&e[i]!==t[i])throw TypeError(`Cannot redefine plugin "${i}".`);r[i]=t[i]||e[i]}return r},validate(e){if(typeof e!=`object`||!e)throw TypeError(`Expected an object.`);if(Array.isArray(e))throw new _(e);for(let t of Object.keys(e))if(t!==`__proto__`&&(e[t]===null||typeof e[t]!=`object`))throw TypeError(`Key "${t}": Expected an object.`)}},E={merge:`replace`,validate(e){if(typeof e==`string`)m(e);else if(e&&typeof e==`object`){if(typeof e.preprocess!=`function`||typeof e.postprocess!=`function`)throw TypeError(`Object must have a preprocess() and a postprocess() method.`)}else throw TypeError(`Expected an object or a string.`)}},D={merge(e={},t={}){let n={...e,...t};for(let r of Object.keys(n))try{if(r===`__proto__`){delete n.__proto__;continue}if(n[r]=c(n[r]),!(r in e)||!(r in t))continue;let i=c(e[r]),a=c(t[r]);if(a.length===1){n[r]=[a[0],...i.slice(1)];continue}}catch(e){throw Error(`Key "${r}": ${e.message}`,{cause:e})}return n},validate(e){h(e);for(let t of Object.keys(e)){if(t===`__proto__`)continue;let n=e[t];d(t,n),Array.isArray(n)?p(t,n[0]):p(t,n)}}};function O(e){return{merge:`replace`,validate(){throw new g(e)}}}t.exports={flatConfigSchema:{...Object.fromEntries([`env`,`extends`,`globals`,`ignorePatterns`,`noInlineConfig`,`overrides`,`parser`,`parserOptions`,`reportUnusedDisableDirectives`,`root`].map(e=>[e,O(e)])),settings:S,linterOptions:{schema:{noInlineConfig:v,reportUnusedDisableDirectives:b,reportUnusedInlineConfigs:x}},language:w,languageOptions:C,processor:E,plugins:T,rules:D},hasMethod:l,assertIsRuleSeverity:p}})),No=n((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function o(e){return e=a(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function s(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function c(e){return e===47}function l(e,t=``){e instanceof URL&&(e=o(e)),i(e,t);let a=s(r(e,c),c);return t?n(a,t):a}let u=/\/+/;function d(e){if(t(e),e.length===0)return`.`}function f(e){e instanceof URL&&(e=o(e)),d(e);let t=-1,n=!1;for(let r=e.length-1;r>=1;--r)if(c(e.charCodeAt(r))){if(n){t=r;break}}else n=!0;return t===-1?c(e.charCodeAt(0))?`/`:`.`:s(e.slice(0,t),c)}function p(e){e instanceof URL&&(e=o(e)),t(e);let n=-1,r=0,i=-1,a=!0,s=0;for(let t=e.length-1;t>=0;--t){let o=e.charCodeAt(t);if(c(o)){if(!a){r=t+1;break}continue}i===-1&&(a=!1,i=t+1),o===46?n===-1?n=t:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?``:e.slice(n,i)}function m(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function h(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function g(e){return h(e),m(`/`,e)}function _(e){return t(e),e.length>0&&c(e.charCodeAt(0))}function v(e){if(t(e),e.length===0)return`.`}function y(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function b(e){e instanceof URL&&(e=o(e)),v(e);let t=c(e.charCodeAt(0)),n=c(e.charCodeAt(e.length-1));return e=y(e,!t,`/`,c),e.length===0&&!t&&(e=`.`),e.length>0&&n&&(e+=`/`),t?`/${e}`:e}function x(e,...n){if(e===void 0)return`.`;e instanceof URL&&(e=o(e)),n=e?[e,...n]:n,n.forEach(e=>t(e));let r=n.filter(e=>e.length>0).join(`/`);return r===``?`.`:b(r)}function S(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;let r=c(e.charCodeAt(0)),i;r?(n.root=`/`,i=1):i=0;let a=-1,o=0,l=-1,u=!0,d=e.length-1,f=0;for(;d>=i;--d){let t=e.charCodeAt(d);if(c(t)){if(!u){o=d+1;break}continue}l===-1&&(u=!1,l=d+1),t===46?a===-1?a=d:f!==1&&(f=1):a!==-1&&(f=-1)}return a===-1||l===-1||f===0||f===1&&a===l-1&&a===o+1?(l!==-1&&(o===0&&r?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(o,l)),n.base=n.base||`/`):(o===0&&r?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(o,a),n.base=e.slice(o,l)),n.ext=e.slice(a,l)),o>0?n.dir=s(e.slice(0,o-1),c):r&&(n.dir=`/`),n}function C(...e){let n=``,r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let a;if(i>=0)a=e[i];else{let{Deno:e}=globalThis;if(typeof e?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);a=e.cwd()}t(a),a.length!==0&&(n=`${a}/${n}`,r=c(a.charCodeAt(0)))}return n=y(n,!r,`/`,c),r?n.length>0?`/${n}`:`/`:n.length>0?n:`.`}function w(e,n){if(t(e),t(n),e===n)return``}function T(e,t){if(w(e,t),e=C(e),t=C(t),e===t)return``;let n=1,r=e.length;for(;n<r&&c(e.charCodeAt(n));++n);let i=r-n,a=1,o=t.length;for(;a<o&&c(t.charCodeAt(a));++a);let s=o-a,l=i<s?i:s,u=-1,d=0;for(;d<=l;++d){if(d===l){if(s>l){if(c(t.charCodeAt(a+d)))return t.slice(a+d+1);if(d===0)return t.slice(a+d)}else i>l&&(c(e.charCodeAt(n+d))?u=d:d===0&&(u=0));break}let r=e.charCodeAt(n+d);if(r!==t.charCodeAt(a+d))break;c(r)&&(u=d)}let f=``;for(d=n+u+1;d<=r;++d)(d===r||c(e.charCodeAt(d)))&&(f.length===0?f+=`..`:f+=`/..`);return f.length>0?f+t.slice(a+u):(a+=u,c(t.charCodeAt(a))&&++a,t.slice(a))}let E={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function D(e){return e.replaceAll(/[\s]/g,e=>E[e]??e)}function O(e){if(!_(e))throw TypeError(`Path must be absolute: received "${e}"`);let t=new URL(`file:///`);return t.pathname=D(e.replace(/%/g,`%25`).replace(/\\/g,`%5C`)),t}function k(e){return e}function A(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function j(e){return A(e,`/`)}let M=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],N=[`-`,`\\`,`]`];function P(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!(e.seps.includes(t[d])&&s.length===0);d++){if(l){l=!1,a+=(c?N:M).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=M.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=M.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let F={sep:`/+`,sepMaybe:`/*`,seps:[`/`],globstar:`(?:[^/]*(?:/|$)+)*`,wildcard:`[^/]*`,escapePrefix:`\\`};function I(e,t={}){return P(F,e,t)}function L(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function R(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return b(e);let r=u.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return b(e.replace(i,`\0`)).replace(/\0/g,`..`)}function z(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return x(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`/${e}`:r=e)}return r?R(r,{globstar:n}):`.`}e.DELIMITER=`:`,e.SEPARATOR=`/`,e.SEPARATOR_PATTERN=u,e.basename=l,e.common=j,e.dirname=f,e.extname=p,e.format=g,e.fromFileUrl=o,e.globToRegExp=I,e.isAbsolute=_,e.isGlob=L,e.join=x,e.joinGlobs=z,e.normalize=b,e.normalizeGlob=R,e.parse=S,e.relative=T,e.resolve=C,e.toFileUrl=O,e.toNamespacedPath=k})),Po=n((e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function n(e,t){if(t.length>=e.length)return e;let n=e.length-t.length;for(let r=t.length-1;r>=0;--r)if(e.charCodeAt(n+r)!==t.charCodeAt(r))return e;return e.slice(0,-t.length)}function r(e,t,n=0){let r=!1,i=e.length;for(let a=e.length-1;a>=n;--a)if(t(e.charCodeAt(a))){if(r){n=a+1;break}}else r||(r=!0,i=a+1);return e.slice(n,i)}function i(e,n){if(t(e),e.length===0)return e;if(typeof n!=`string`)throw TypeError(`Suffix must be a string, received "${JSON.stringify(n)}"`)}function a(e,t){if(e.length<=1)return e;let n=e.length;for(let r=e.length-1;r>0&&t(e.charCodeAt(r));r--)n=r;return e.slice(0,n)}function o(e){return e===47}function s(e){return e===47||e===92}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function u(e){e=l(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function d(e,t=``){e instanceof URL&&(e=u(e)),i(e,t);let o=0;e.length>=2&&c(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(o=2);let l=a(r(e,s,o),s);return t?n(l,t):l}let f=/[\\/]+/;function p(e){if(t(e),e.length===0)return`.`}function m(e){e instanceof URL&&(e=u(e)),p(e);let t=e.length,n=-1,r=-1,i=!0,l=0,d=e.charCodeAt(0);if(t>1)if(s(d)){if(n=l=1,s(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=l=r+1)}}}}else c(d)&&e.charCodeAt(1)===58&&(n=l=2,t>2&&s(e.charCodeAt(2))&&(n=l=3));else if(s(d))return e;for(let n=t-1;n>=l;--n)if(s(e.charCodeAt(n))){if(!i){r=n;break}}else i=!1;if(r===-1){if(n===-1)return`.`;r=n}return a(e.slice(0,r),o)}function h(e){e instanceof URL&&(e=u(e)),t(e);let n=0,r=-1,i=0,a=-1,o=!0,l=0;e.length>=2&&e.charCodeAt(1)===58&&c(e.charCodeAt(0))&&(n=i=2);for(let t=e.length-1;t>=n;--t){let n=e.charCodeAt(t);if(s(n)){if(!o){i=t+1;break}continue}a===-1&&(o=!1,a=t+1),n===46?r===-1?r=t:l!==1&&(l=1):r!==-1&&(l=-1)}return r===-1||a===-1||l===0||l===1&&r===a-1&&r===i+1?``:e.slice(r,a)}function g(e,t){let n=t.dir||t.root,r=t.base||(t.name??``)+(t.ext??``);return n?r===e?n:n===t.root?n+r:n+e+r:r}function _(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function v(e){return _(e),g(`\\`,e)}function y(e){t(e);let n=e.length;if(n===0)return!1;let r=e.charCodeAt(0);return s(r)?!0:!!(c(r)&&n>2&&e.charCodeAt(1)===58&&s(e.charCodeAt(2)))}function b(e){if(t(e),e.length===0)return`.`}function x(e,t,n,r){let i=``,a=0,o=-1,s=0,c;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=47;if(r(c)){if(!(o===l-1||s===1))if(o!==l-1&&s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==46||i.charCodeAt(i.length-2)!==46){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length===2||i.length===1){i=``,a=0,o=l,s=0;continue}}t&&(i.length>0?i+=`${n}..`:i=`..`,a=2)}else i.length>0?i+=n+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function S(e){e instanceof URL&&(e=u(e)),b(e);let t=e.length,n=0,r,i=!1,a=e.charCodeAt(0);if(t>1)if(s(a))if(i=!0,s(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!s(e.charCodeAt(i));++i);if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&s(e.charCodeAt(i));++i);if(i<t&&i!==a){for(a=i;i<t&&!s(e.charCodeAt(i));++i);if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1;else c(a)&&e.charCodeAt(1)===58&&(r=e.slice(0,2),n=2,t>2&&s(e.charCodeAt(2))&&(i=!0,n=3));else if(s(a))return`\\`;let o;return o=n<t?x(e.slice(n),!i,`\\`,s):``,o.length===0&&!i&&(o=`.`),o.length>0&&s(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?o.length>0?`\\${o}`:`\\`:o:i?o.length>0?`${r}\\${o}`:`${r}\\`:r+o}function C(e,...n){if(e instanceof URL&&(e=u(e)),n=e?[e,...n]:n,n.forEach(e=>t(e)),n=n.filter(e=>e.length>0),n.length===0)return`.`;let r=!0,i=0,a=n[0];if(s(a.charCodeAt(0))){++i;let e=a.length;e>1&&s(a.charCodeAt(1))&&(++i,e>2&&(s(a.charCodeAt(2))?++i:r=!1))}let o=n.join(`\\`);if(r){for(;i<o.length&&s(o.charCodeAt(i));++i);i>=2&&(o=`\\${o.slice(i)}`)}return S(o)}function w(e){t(e);let n={root:``,dir:``,base:``,ext:``,name:``},r=e.length;if(r===0)return n;let i=0,a=e.charCodeAt(0);if(r>1){if(s(a)){if(i=1,s(e.charCodeAt(1))){let t=2,n=t;for(;t<r&&!s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&s(e.charCodeAt(t));++t);if(t<r&&t!==n){for(n=t;t<r&&!s(e.charCodeAt(t));++t);t===r?i=t:t!==n&&(i=t+1)}}}}else if(c(a)&&e.charCodeAt(1)===58)if(i=2,r>2){if(s(e.charCodeAt(2))){if(r===3)return n.root=n.dir=e,n.base=`\\`,n;i=3}}else return n.root=n.dir=e,n}else if(s(a))return n.root=n.dir=e,n.base=`\\`,n;i>0&&(n.root=e.slice(0,i));let o=-1,l=i,u=-1,d=!0,f=e.length-1,p=0;for(;f>=i;--f){if(a=e.charCodeAt(f),s(a)){if(!d){l=f+1;break}continue}u===-1&&(d=!1,u=f+1),a===46?o===-1?o=f:p!==1&&(p=1):o!==-1&&(p=-1)}return o===-1||u===-1||p===0||p===1&&o===u-1&&o===l+1?u!==-1&&(n.base=n.name=e.slice(l,u)):(n.name=e.slice(l,o),n.base=e.slice(l,u),n.ext=e.slice(o,u)),n.base=n.base||`\\`,l>0&&l!==i?n.dir=e.slice(0,l-1):n.dir=n.root,n}function T(...e){let n=``,r=``,i=!1;for(let a=e.length-1;a>=-1;a--){let o,{Deno:l}=globalThis;if(a>=0)o=e[a];else if(n){if(typeof l?.env?.get!=`function`||typeof l?.cwd!=`function`)throw TypeError(`Resolved a relative path without a current working directory (CWD)`);o=l.cwd(),(o===void 0||o.slice(0,3).toLowerCase()!==`${n.toLowerCase()}\\`)&&(o=`${n}\\`)}else{if(typeof l?.cwd!=`function`)throw TypeError(`Resolved a drive-letter-less path without a current working directory (CWD)`);o=l.cwd()}t(o);let u=o.length;if(u===0)continue;let d=0,f=``,p=!1,m=o.charCodeAt(0);if(u>1)if(s(m))if(p=!0,s(o.charCodeAt(1))){let e=2,t=e;for(;e<u&&!s(o.charCodeAt(e));++e);if(e<u&&e!==t){let n=o.slice(t,e);for(t=e;e<u&&s(o.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!s(o.charCodeAt(e));++e);e===u?(f=`\\\\${n}\\${o.slice(t)}`,d=e):e!==t&&(f=`\\\\${n}\\${o.slice(t,e)}`,d=e)}}}else d=1;else c(m)&&o.charCodeAt(1)===58&&(f=o.slice(0,2),d=2,u>2&&s(o.charCodeAt(2))&&(p=!0,d=3));else s(m)&&(d=1,p=!0);if(!(f.length>0&&n.length>0&&f.toLowerCase()!==n.toLowerCase())&&(n.length===0&&f.length>0&&(n=f),i||=(r=`${o.slice(d)}\\${r}`,p),i&&n.length>0))break}return r=x(r,!i,`\\`,s),n+(i?`\\`:``)+r||`.`}function E(e,n){if(t(e),t(n),e===n)return``}function D(e,t){E(e,t);let n=T(e),r=T(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0,a=e.length;for(;i<a&&e.charCodeAt(i)===92;++i);for(;a-1>i&&e.charCodeAt(a-1)===92;--a);let o=a-i,s=0,c=t.length;for(;s<c&&t.charCodeAt(s)===92;++s);for(;c-1>s&&t.charCodeAt(c-1)===92;--c);let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<=u;++f){if(f===u){if(l>u){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3));break}let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===92&&(d=f)}if(f!==u&&d===-1)return r;let p=``;for(d===-1&&(d=0),f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p.length===0?p+=`..`:p+=`\\..`);return p.length>0?p+r.slice(s+d,c):(s+=d,r.charCodeAt(s)===92&&++s,r.slice(s,c))}let O={" ":`%09`,"\n":`%0A`,"\v":`%0B`,"\f":`%0C`,"\r":`%0D`," ":`%20`};function k(e){return e.replaceAll(/[\s]/g,e=>O[e]??e)}function A(e){if(!y(e))throw TypeError(`Path must be absolute: received "${e}"`);let[,t,n]=e.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),r=new URL(`file:///`);if(r.pathname=k(n.replace(/%/g,`%25`)),t!==void 0&&t!==`localhost`&&(r.hostname=t,!r.hostname))throw TypeError(`Invalid hostname: "${r.hostname}"`);return r}function j(e){if(typeof e!=`string`)return e;if(e.length===0)return``;let t=T(e);if(t.length>=3){if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(c(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`}return e}function M(e,t){let[n=``,...r]=e,i=n.split(t),a=i.length,o=``;for(let e of r){let n=e.split(t);n.length<=a&&(a=n.length,o=``);for(let e=0;e<a;e++)if(n[e]!==i[e]){a=e,o=e===0?``:t;break}}return i.slice(0,a).join(t)+o}function N(e){return M(e,`\\`)}let P=[`!`,`$`,`(`,`)`,`*`,`+`,`.`,`=`,`?`,`[`,`\\`,`^`,`{`,`|`],F=[`-`,`\\`,`]`];function I(e,t,{extended:n=!0,globstar:r=!0,caseInsensitive:i=!1}={}){if(t===``)return/(?!)/;let a=t.length;for(;a>1&&e.seps.includes(t[a-1]);a--);t=t.slice(0,a);let o=``;for(let i=0;i<t.length;){let a=``,s=[],c=!1,l=!1,u=!1,d=i;for(;d<t.length&&!(e.seps.includes(t[d])&&s.length===0);d++){if(l){l=!1,a+=(c?F:P).includes(t[d])?`\\${t[d]}`:t[d];continue}if(t[d]===e.escapePrefix){l=!0;continue}if(t[d]===`[`){if(!c){c=!0,a+=`[`,t[d+1]===`!`?(d++,a+=`^`):t[d+1]===`^`&&(d++,a+=`\\^`);continue}else if(t[d+1]===`:`){let e=d+1,n=``;for(;t[e+1]!==void 0&&t[e+1]!==`:`;)n+=t[e+1],e++;if(t[e+1]===`:`&&t[e+2]===`]`){d=e+2,n===`alnum`?a+=`\\dA-Za-z`:n===`alpha`?a+=`A-Za-z`:n===`ascii`?a+=`\0-`:n===`blank`?a+=` `:n===`cntrl`?a+=`\0-`:n===`digit`?a+=`\\d`:n===`graph`?a+=`!-~`:n===`lower`?a+=`a-z`:n===`print`?a+=` -~`:n===`punct`?a+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:n===`space`?a+=`\\s\v`:n===`upper`?a+=`A-Z`:n===`word`?a+=`\\w`:n===`xdigit`&&(a+=`\\dA-Fa-f`);continue}}}if(t[d]===`]`&&c){c=!1,a+=`]`;continue}if(c){a+=t[d];continue}if(t[d]===`)`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`)`;let t=s.pop();t===`!`?a+=e.wildcard:t!==`@`&&(a+=t);continue}if(t[d]===`|`&&s.length>0&&s[s.length-1]!==`BRACE`){a+=`|`;continue}if(t[d]===`+`&&n&&t[d+1]===`(`){d++,s.push(`+`),a+=`(?:`;continue}if(t[d]===`@`&&n&&t[d+1]===`(`){d++,s.push(`@`),a+=`(?:`;continue}if(t[d]===`?`){n&&t[d+1]===`(`?(d++,s.push(`?`),a+=`(?:`):a+=`.`;continue}if(t[d]===`!`&&n&&t[d+1]===`(`){d++,s.push(`!`),a+=`(?!`;continue}if(t[d]===`{`){s.push(`BRACE`),a+=`(?:`;continue}if(t[d]===`}`&&s[s.length-1]===`BRACE`){s.pop(),a+=`)`;continue}if(t[d]===`,`&&s[s.length-1]===`BRACE`){a+=`|`;continue}if(t[d]===`*`){if(n&&t[d+1]===`(`)d++,s.push(`*`),a+=`(?:`;else{let n=t[d-1],i=1;for(;t[d+1]===`*`;)d++,i++;let o=t[d+1];r&&i===2&&[...e.seps,void 0].includes(n)&&[...e.seps,void 0].includes(o)?(a+=e.globstar,u=!0):a+=e.wildcard}continue}a+=P.includes(t[d])?`\\${t[d]}`:t[d]}if(s.length>0||c||l){a=``;for(let e of t.slice(i,d))a+=P.includes(e)?`\\${e}`:e,u=!1}for(o+=a,u||=(o+=d<t.length?e.sep:e.sepMaybe,!0);e.seps.includes(t[d]);)d++;i=d}return o=`^${o}$`,new RegExp(o,i?`i`:``)}let L={sep:`(?:\\\\|/)+`,sepMaybe:`(?:\\\\|/)*`,seps:[`\\`,`/`],globstar:`(?:[^\\\\/]*(?:\\\\|/|$)+)*`,wildcard:`[^\\\\/]*`,escapePrefix:"`"};function R(e,t={}){return I(L,e,t)}function z(e){let t={"{":`}`,"(":`)`,"[":`]`},n=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;if(e===``)return!1;let r;for(;r=n.exec(e);){if(r[2])return!0;let n=r.index+r[0].length,i=r[1],a=i?t[i]:null;if(i&&a){let t=e.indexOf(a,n);t!==-1&&(n=t+1)}e=e.slice(n)}return!1}function ee(e,t={}){let{globstar:n=!1}=t;if(e.match(/\0/g))throw Error(`Glob contains invalid characters: "${e}"`);if(!n)return S(e);let r=f.source,i=RegExp(`(?<=(${r}|^)\\*\\*${r})\\.\\.(?=${r}|$)`,`g`);return S(e.replace(i,`\0`)).replace(/\0/g,`..`)}function B(e,t={}){let{globstar:n=!1}=t;if(!n||e.length===0)return C(...e);let r;for(let t of e){let e=t;e.length>0&&(r?r+=`\\${e}`:r=e)}return r?ee(r,{globstar:n}):`.`}e.DELIMITER=`;`,e.SEPARATOR=`\\`,e.SEPARATOR_PATTERN=f,e.basename=d,e.common=N,e.dirname=m,e.extname=h,e.format=v,e.fromFileUrl=u,e.globToRegExp=R,e.isAbsolute=y,e.isGlob=z,e.join=C,e.joinGlobs=B,e.normalize=S,e.normalizeGlob=ee,e.parse=w,e.relative=D,e.resolve=T,e.toFileUrl=A,e.toNamespacedPath=j})),Fo=n((e=>{var t=class{static overwrite(e,t){return t}static replace(e,t){return t===void 0?e:t}static assign(e,t){return Object.assign({},e,t)}},n=class{static array(e){if(!Array.isArray(e))throw TypeError(`Expected an array.`)}static boolean(e){if(typeof e!=`boolean`)throw TypeError(`Expected a Boolean.`)}static number(e){if(typeof e!=`number`)throw TypeError(`Expected a number.`)}static object(e){if(!e||typeof e!=`object`)throw TypeError(`Expected an object.`)}static"object?"(e){if(typeof e!=`object`)throw TypeError(`Expected an object or null.`)}static string(e){if(typeof e!=`string`)throw TypeError(`Expected a string.`)}static"string!"(e){if(typeof e!=`string`||e.length===0)throw TypeError(`Expected a non-empty string.`)}};function r(e,r){let i=!1;if(r.schema)if(typeof r.schema==`object`)i=!0;else throw TypeError(`Schema must be an object.`);if(typeof r.merge==`string`){if(!(r.merge in t))throw TypeError(`Definition for key "${e}" missing valid merge strategy.`)}else if(!i&&typeof r.merge!=`function`)throw TypeError(`Definition for key "${e}" must have a merge property.`);if(typeof r.validate==`string`){if(!(r.validate in n))throw TypeError(`Definition for key "${e}" missing valid validation strategy.`)}else if(!i&&typeof r.validate!=`function`)throw TypeError(`Definition for key "${e}" must have a validate() method.`)}var i=class extends Error{constructor(e){super(`Unexpected key "${e}" found.`)}},a=class extends Error{constructor(e){super(`Missing required key "${e}".`)}},o=class extends Error{constructor(e,t){super(`Key "${e}" requires keys "${t.join(`", "`)}".`)}},s=class extends Error{constructor(e,t){super(`Key "${e}": ${t.message}`,{cause:t});for(let e of Object.keys(t))e in this||(this[e]=t[e])}},c=class e{#e=new Map;#t=new Map;constructor(i){if(!i)throw Error(`Schema definitions missing.`);for(let a of Object.keys(i)){if(r(a,i[a]),typeof i[a].schema==`object`){let t=new e(i[a].schema);i[a]={...i[a],merge(e={},n={}){return t.merge(e,n)},validate(e){n.object(e),t.validate(e)}}}typeof i[a].merge==`string`&&(i[a]={...i[a],merge:t[i[a].merge]}),typeof i[a].validate==`string`&&(i[a]={...i[a],validate:n[i[a].validate]}),this.#e.set(a,i[a]),i[a].required&&this.#t.set(a,i[a])}}hasKey(e){return this.#e.has(e)}merge(...e){if(e.length<2)throw TypeError(`merge() requires at least two arguments.`);if(e.some(e=>typeof e!=`object`||!e))throw TypeError(`All arguments must be objects.`);return e.reduce((e,t)=>{this.validate(t);for(let[n,r]of this.#e)try{if(n in e||n in t){let i=r.merge.call(this,e[n],t[n]);i!==void 0&&(e[n]=i)}}catch(e){throw new s(n,e)}return e},{})}validate(e){for(let t of Object.keys(e)){if(!this.hasKey(t))throw new i(t);let n=this.#e.get(t);if(Array.isArray(n.requires)&&!n.requires.every(t=>t in e))throw new o(t,n.requires);try{n.validate.call(n,e[t])}catch(e){throw new s(t,e)}}for(let[t]of this.#t)if(!(t in e))throw new a(t)}};e.MergeStrategy=t,e.ObjectSchema=c,e.ValidationStrategy=n})),Io=n((e=>{var t=No(),n=Po(),r=Oo(),i=d(),a=Fo();function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!==`default`){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=o(t),c=o(n);let l={required:!1,merge(){},validate(){}},u=Object.freeze({name:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Property must be a string.`)}},basePath:l,files:l,ignores:l});function f(e){if(!Array.isArray(e))throw TypeError(`Expected value to be an array.`)}function p(e){if(f(e),e.some(e=>typeof e!=`string`&&typeof e!=`function`))throw TypeError(`Expected array to only contain strings and functions.`)}function m(e){if(!Array.isArray(e)||e.length===0)throw TypeError(`Expected value to be a non-empty array.`)}let h=Object.freeze({basePath:{required:!1,merge(){},validate(e){if(typeof e!=`string`)throw TypeError(`Expected value to be a string.`)}},files:{required:!1,merge(){},validate(e){m(e),e.forEach(e=>{if(Array.isArray(e))p(e);else if(typeof e!=`string`&&typeof e!=`function`)throw TypeError(`Items must be a string, a function, or an array of strings and functions.`)})}},ignores:{required:!1,merge(){},validate:p}}),g=i(`@eslint/config-array`),_=new Map,v=new Map,y={dot:!0},b=new Set([`array`,`function`]),x=new Set([`name`,`basePath`]),S=new a.ObjectSchema(h),C=Object.freeze({status:`external`}),w=Object.freeze({status:`ignored`}),T=Object.freeze({status:`unconfigured`}),E=/^\.\.(?:\/|$)/u;var D=class extends Error{constructor(e,t,{cause:n,message:r}){let i=r||n.message;if(super(`Config ${e}: ${i}`,{cause:n}),n)for(let e of Object.keys(n))e in this||(this[e]=n[e]);this.name=`ConfigError`,this.index=t}};function O(e){return e&&typeof e.name==`string`&&e.name?`"${e.name}"`:`(unnamed)`}function k(e,t,n){throw new D(O(e),t,{cause:n})}function A(e){return typeof e==`string`}function j(e,t){if(e===null)throw new D(O(e),t,{message:`Unexpected null config.`});if(e===void 0)throw new D(O(e),t,{message:`Unexpected undefined config.`});if(typeof e!=`object`)throw new D(O(e),t,{message:`Unexpected non-object config.`});let n={};`basePath`in e&&(n.basePath=e.basePath),`files`in e&&(n.files=e.files),`ignores`in e&&(n.ignores=e.ignores);try{S.validate(n)}catch(n){k(e,t,n)}}function M(e,t,n={}){let i=_;n.flipNegate&&(i=v);let a=i.get(t);return a||(a=new r.Minimatch(t,Object.assign({},y,n)),i.set(t,a)),a.match(e)}function N(e){if(A(e)){if(e.startsWith(`./`))return e.slice(2);if(e.startsWith(`!./`))return`!${e.slice(3)}`}return e}function P(e){return A(e)&&(e.startsWith(`./`)||e.startsWith(`!./`))}function F(e,t,n){if(!e)return e;let r=typeof e.basePath==`string`,i=!1;if(r&&(i=!0),!i&&Array.isArray(e.files)&&(i=e.files.some(e=>Array.isArray(e)?e.some(P):P(e))),!i&&Array.isArray(e.ignores)&&(i=e.ignores.some(P)),!i)return e;let a={...e};return r&&(n.isAbsolute(e.basePath)?a.basePath=n.toNamespacedPath(e.basePath):a.basePath=n.resolve(t,e.basePath)),Array.isArray(a.files)&&(a.files=a.files.map(e=>Array.isArray(e)?e.map(N):N(e))),Array.isArray(a.ignores)&&(a.ignores=a.ignores.map(N)),a}async function I(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);async function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);n=n(t),n.then&&(n=await n)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=s(e),l=[];for await(let e of c)l.push(F(e,r,i));return l}function L(e,t,n,r,i){let a=n.includes(`function`),o=n.includes(`array`);function*s(e){for(let n of e){if(typeof n==`function`){if(!a)throw TypeError(`Unexpected function.`);if(n=n(t),n.then)throw TypeError(`Async config functions are not supported.`)}if(Array.isArray(n)){if(!o)throw TypeError(`Unexpected array.`);yield*s(n)}else if(typeof n==`function`)throw TypeError(`A config function can only return an object or array.`);else yield n}}let c=[];for(let t of s(e))c.push(F(t,r,i));return c}function R(e,t,n){let r=n.resolve(t,e),i=n.toNamespacedPath(r);return n.relative(t,i).replaceAll(n.SEPARATOR,`/`)}function z(e,t,n,{basePath:r,path:i}={}){let a=!1;for(let o of e){let e=n;if(o.basePath){if(e=R(i.resolve(r,n),o.basePath,i),e===``||E.test(e))continue;n.endsWith(`/`)&&(e+=`/`)}a=o.ignores.reduce((n,r)=>n?typeof r==`string`&&r.startsWith(`!`)?!M(e,r,{flipNegate:!0}):n:typeof r==`function`?r(t):r.startsWith(`!`)?!1:M(e,r),a)}return a}function ee(e,t,n){function r(n){if(A(n))return M(t,n);if(typeof n==`function`)return n(e);throw TypeError(`Unexpected matcher type ${n}.`)}let i=n.files.some(e=>Array.isArray(e)?e.every(r):r(e));return i&&n.ignores&&(i=!z([{ignores:n.ignores}],e,t)),i}function B(e){if(!e.isNormalized())throw Error(`ConfigArray must be normalized to perform this operation.`)}function te(e){if(!Array.isArray(e))throw TypeError(`extraConfigTypes must be an array.`);if(e.length>2)throw TypeError(`extraConfigTypes must contain at most two items.`);for(let t of e)if(!b.has(t))throw TypeError(`Unexpected config type "${t}" in extraConfigTypes. Expected one of: "array", "function".`)}function V(e){if(e.startsWith(`/`))return s;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(e))return c;throw Error(`Expected an absolute path but received "${e}"`)}let H={isNormalized:Symbol(`isNormalized`),configCache:Symbol(`configCache`),schema:Symbol(`schema`),finalizeConfig:Symbol(`finalizeConfig`),preprocessConfig:Symbol(`preprocessConfig`)},U=new WeakMap;var W=class extends Array{#e;#t;constructor(e,{basePath:t=`/`,normalized:n=!1,schema:r,extraConfigTypes:i=[]}={}){if(super(),this[H.isNormalized]=n,this[H.schema]=new a.ObjectSchema(Object.assign({},r,u)),!A(t)||!t)throw TypeError(`basePath must be a non-empty string`);this.basePath=t,te(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[H.configCache]=new Map,U.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(e)?this.push(...e):this.push(e),this.#t=V(t),this.#e=this.#t.toNamespacedPath(t)}static get[Symbol.species](){return Array}get files(){B(this);let e=U.get(this);if(e.files)return e.files;let t=[];for(let e of this)e.files&&e.files.forEach(e=>{t.push(e)});return e.files=t,U.set(this,e),t}get ignores(){B(this);let e=U.get(this);if(e.ignores)return e.ignores;let t=[];for(let e of this)e.ignores&&Object.keys(e).filter(e=>!x.has(e)).length===1&&t.push(e);return e.ignores=t,U.set(this,e),t}isNormalized(){return this[H.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let t=await I(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[H.preprocessConfig].bind(this))),this.forEach(j),this[H.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let t=L(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...t.map(this[H.preprocessConfig].bind(this))),this.forEach(j),this[H.isNormalized]=!0,Object.freeze(this)}return this}[H.finalizeConfig](e){return e}[H.preprocessConfig](e){return e}getConfigWithStatus(e){B(this);let t=this[H.configCache];if(t.has(e))return t.get(e);let n=R(e,this.#e,this.#t);if(E.test(n))return g(`No config for file ${e} outside of base path`),t.set(e,C),C;if(this.isDirectoryIgnored(this.#t.dirname(e)))return g(`Ignoring ${e} based on directory pattern`),t.set(e,w),w;if(z(this.ignores,e,n,{basePath:this.#e,path:this.#t}))return g(`Ignoring ${e} based on file pattern`),t.set(e,w),w;let r=[],i=!1,a=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((t,o)=>{let s=t.basePath?R(this.#t.resolve(this.#e,e),t.basePath,this.#t):n;if(t.basePath&&E.test(s)){g(`Skipped config found for ${e} (based on config's base path: ${t.basePath}`);return}if(!t.files){if(!t.ignores){g(`Universal config found for ${e}`),r.push(o);return}if(Object.keys(t).filter(e=>!x.has(e)).length===1){g(`Skipped config found for ${e} (global ignores)`);return}if(z([{ignores:t.ignores}],e,s)){g(`Skipped config found for ${e} (based on ignores: ${t.ignores})`);return}g(`Matching config found for ${e} (based on ignores: ${t.ignores})`),r.push(o);return}let c=[],l=t.files.filter(e=>Array.isArray(e)?e.every(e=>a.test(e))?!0:(c.push(e),!1):a.test(e)?!0:(c.push(e),!1));if(l.length){if(g(`Universal files patterns found. Checking carefully.`),c.length&&ee(e,s,{files:c,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o),i=!0;return}if(l.length&&ee(e,s,{files:l,ignores:t.ignores})){g(`Matching config found for ${e}`),r.push(o);return}return}ee(e,s,t)&&(g(`Matching config found for ${e}`),r.push(o),i=!0)}),!i)return g(`No matching configs found for ${e}`),t.set(e,T),T;let o=r.toString(),s=t.get(o);if(s)return t.set(e,s),s;let c=r.reduce((e,t)=>{try{return this[H.schema].merge(e,this[t])}catch(e){k(this[t],t,e)}},{});return c=this[H.finalizeConfig](c),s=Object.freeze({config:c,status:`matched`}),t.set(e,s),t.set(o,s),s}getConfig(e){return this.getConfigWithStatus(e).config}getConfigStatus(e){return this.getConfigWithStatus(e).status}isIgnored(e){return this.isFileIgnored(e)}isFileIgnored(e){return this.getConfigStatus(e)===`ignored`}isDirectoryIgnored(e){B(this);let t=R(e,this.#e,this.#t);if(t===``)return!1;if(E.test(t))return!0;let n=U.get(this).directoryMatches;if(n.has(t))return n.get(t);let r=t.split(`/`),i=``,a;do i+=`${r.shift()}/`,a=z(this.ignores,this.#t.join(this.basePath,i),i,{basePath:this.#e,path:this.#t}),n.set(i,a);while(!a&&r.length);return n.set(t,a),a}};Object.defineProperty(e,`ObjectSchema`,{enumerable:!0,get:function(){return a.ObjectSchema}}),e.ConfigArray=W,e.ConfigArraySymbol=H})),Lo=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r(n.URI=n.URI||{})})(e,(function(e){function t(){var e=[...arguments];if(e.length>1){e[0]=e[0].slice(0,-1);for(var t=e.length-1,n=1;n<t;++n)e[n]=e[n].slice(1,-1);return e[t]=e[t].slice(1),e.join(``)}else return e[0]}function n(e){return`(?:`+e+`)`}function r(e){return e===void 0?`undefined`:e===null?`null`:Object.prototype.toString.call(e).split(` `).pop().split(`]`).shift().toLowerCase()}function i(e){return e.toUpperCase()}function a(e){return e==null?[]:e instanceof Array?e:typeof e.length!=`number`||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e)}function o(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r=`[A-Za-z]`,i=`[0-9]`,a=t(i,`[A-Fa-f]`),o=n(n(`%[EFef]`+a+`%`+a+a+`%`+a+a)+`|`+n(`%[89A-Fa-f]`+a+`%`+a+a)+`|`+n(`%`+a+a)),s=`[\\:\\/\\?\\#\\[\\]\\@]`,c=`[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]`,l=t(s,c),u=e?`[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`:`[]`,d=e?`[\\uE000-\\uF8FF]`:`[]`,f=t(r,i,`[\\-\\.\\_\\~]`,u),p=n(r+t(r,i,`[\\+\\-\\.]`)+`*`),m=n(n(o+`|`+t(f,c,`[\\:]`))+`*`);n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`[1-9]`+i)+`|`+i);var h=n(n(`25[0-5]`)+`|`+n(`2[0-4]`+i)+`|`+n(`1`+i+i)+`|`+n(`0?[1-9]`+i)+`|0?0?`+i),g=n(h+`\\.`+h+`\\.`+h+`\\.`+h),_=n(a+`{1,4}`),v=n(n(_+`\\:`+_)+`|`+g),y=n([n(n(_+`\\:`)+`{6}`+v),n(`\\:\\:`+n(_+`\\:`)+`{5}`+v),n(n(_)+`?\\:\\:`+n(_+`\\:`)+`{4}`+v),n(n(n(_+`\\:`)+`{0,1}`+_)+`?\\:\\:`+n(_+`\\:`)+`{3}`+v),n(n(n(_+`\\:`)+`{0,2}`+_)+`?\\:\\:`+n(_+`\\:`)+`{2}`+v),n(n(n(_+`\\:`)+`{0,3}`+_)+`?\\:\\:`+_+`\\:`+v),n(n(n(_+`\\:`)+`{0,4}`+_)+`?\\:\\:`+v),n(n(n(_+`\\:`)+`{0,5}`+_)+`?\\:\\:`+_),n(n(n(_+`\\:`)+`{0,6}`+_)+`?\\:\\:`)].join(`|`)),b=n(n(f+`|`+o)+`+`);n(y+`\\%25`+b);var x=n(y+n(`\\%25|\\%(?!`+a+`{2})`)+b),S=n(`[vV]`+a+`+\\.`+t(f,c,`[\\:]`)+`+`),C=n(`\\[`+n(x+`|`+y+`|`+S)+`\\]`),w=n(n(o+`|`+t(f,c))+`*`),T=n(C+`|`+g+`(?!`+w+`)|`+w),E=n(i+`*`),D=n(n(m+`@`)+`?`+T+n(`\\:`+E)+`?`),O=n(o+`|`+t(f,c,`[\\:\\@]`)),k=n(O+`*`),A=n(O+`+`),j=n(n(o+`|`+t(f,c,`[\\@]`))+`+`),M=n(n(`\\/`+k)+`*`),N=n(`\\/`+n(A+M)+`?`),P=n(j+M),F=n(A+M),I=`(?!`+O+`)`;n(M+`|`+N+`|`+P+`|`+F+`|`+I);var L=n(n(O+`|`+t(`[\\/\\?]`,d))+`*`),R=n(n(O+`|[\\/\\?]`)+`*`),z=n(n(`\\/\\/`+D+M)+`|`+N+`|`+F+`|`+I),ee=n(p+`\\:`+z+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`),B=n(n(n(`\\/\\/`+D+M)+`|`+N+`|`+P+`|`+I)+n(`\\?`+L)+`?`+n(`\\#`+R)+`?`);return n(ee+`|`+B),n(p+`\\:`+z+n(`\\?`+L)+`?`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+P+`|`+I+`)`)+n(`\\?(`+L+`)`)+n(`\\#(`+R+`)`),``+p+n(n(`\\/\\/(`+n(`(`+m+`)@`)+`?(`+T+`)`+n(`\\:(`+E+`)`)+`?)`)+`?(`+M+`|`+N+`|`+F+`|`+I+`)`)+n(`\\?(`+L+`)`),``+n(`\\#(`+R+`)`),``+n(`(`+m+`)@`)+T+n(`\\:(`+E+`)`),{NOT_SCHEME:new RegExp(t(`[^]`,r,i,`[\\+\\-\\.]`),`g`),NOT_USERINFO:new RegExp(t(`[^\\%\\:]`,f,c),`g`),NOT_HOST:new RegExp(t(`[^\\%\\[\\]\\:]`,f,c),`g`),NOT_PATH:new RegExp(t(`[^\\%\\/\\:\\@]`,f,c),`g`),NOT_PATH_NOSCHEME:new RegExp(t(`[^\\%\\/\\@]`,f,c),`g`),NOT_QUERY:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`,d),`g`),NOT_FRAGMENT:new RegExp(t(`[^\\%]`,f,c,`[\\:\\@\\/\\?]`),`g`),ESCAPE:new RegExp(t(`[^]`,f,c),`g`),UNRESERVED:new RegExp(f,`g`),OTHER_CHARS:new RegExp(t(`[^\\%]`,f,l),`g`),PCT_ENCODED:new RegExp(o,`g`),IPV4ADDRESS:RegExp(`^(`+g+`)$`),IPV6ADDRESS:RegExp(`^\\[?(`+y+`)`+n(n(`\\%25|\\%(?!`+a+`{2})`)+`(`+b+`)`)+`?\\]?$`)}}var c=s(!1),l=s(!0),u=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),d=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)},f=2147483647,p=36,m=1,h=26,g=38,_=700,v=72,y=128,b=`-`,x=/^xn--/,S=/[^\0-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},T=p-m,E=Math.floor,D=String.fromCharCode;function O(e){throw RangeError(w[e])}function k(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function A(e,t){var n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(C,`.`);var i=k(e.split(`.`),t).join(`.`);return r+i}function j(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var M=function(e){return String.fromCodePoint.apply(String,d(e))},N=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},P=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},F=function(e,t,n){var r=0;for(e=n?E(e/_):e>>1,e+=E(e/t);e>T*h>>1;r+=p)e=E(e/T);return E(r+(T+1)*e/(e+g))},I=function(e){var t=[],n=e.length,r=0,i=y,a=v,o=e.lastIndexOf(b);o<0&&(o=0);for(var s=0;s<o;++s)e.charCodeAt(s)>=128&&O(`not-basic`),t.push(e.charCodeAt(s));for(var c=o>0?o+1:0;c<n;){for(var l=r,u=1,d=p;;d+=p){c>=n&&O(`invalid-input`);var g=N(e.charCodeAt(c++));(g>=p||g>E((f-r)/u))&&O(`overflow`),r+=g*u;var _=d<=a?m:d>=a+h?h:d-a;if(g<_)break;var x=p-_;u>E(f/x)&&O(`overflow`),u*=x}var S=t.length+1;a=F(r-l,S,l==0),E(r/S)>f-i&&O(`overflow`),i+=E(r/S),r%=S,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)},L=function(e){var t=[];e=j(e);var n=e.length,r=y,i=0,a=v,o=!0,s=!1,c=void 0;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=!0){var d=u.value;d<128&&t.push(D(d))}}catch(e){s=!0,c=e}finally{try{!o&&l.return&&l.return()}finally{if(s)throw c}}var g=t.length,_=g;for(g&&t.push(b);_<n;){var x=f,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),k;!(S=(k=T.next()).done);S=!0){var A=k.value;A>=r&&A<x&&(x=A)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}var M=_+1;x-r>E((f-i)/M)&&O(`overflow`),i+=(x-r)*M,r=x;var N=!0,I=!1,L=void 0;try{for(var R=e[Symbol.iterator](),z;!(N=(z=R.next()).done);N=!0){var ee=z.value;if(ee<r&&++i>f&&O(`overflow`),ee==r){for(var B=i,te=p;;te+=p){var V=te<=a?m:te>=a+h?h:te-a;if(B<V)break;var H=B-V,U=p-V;t.push(D(P(V+H%U,0))),B=E(H/U)}t.push(D(P(B,0))),a=F(i,M,_==g),i=0,++_}}}catch(e){I=!0,L=e}finally{try{!N&&R.return&&R.return()}finally{if(I)throw L}}++i,++r}return t.join(``)},R={version:`2.1.0`,ucs2:{decode:j,encode:M},decode:I,encode:L,toASCII:function(e){return A(e,function(e){return S.test(e)?`xn--`+L(e):e})},toUnicode:function(e){return A(e,function(e){return x.test(e)?I(e.slice(4).toLowerCase()):e})}},z={};function ee(e){var t=e.charCodeAt(0),n=void 0;return n=t<16?`%0`+t.toString(16).toUpperCase():t<128?`%`+t.toString(16).toUpperCase():t<2048?`%`+(t>>6|192).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase():`%`+(t>>12|224).toString(16).toUpperCase()+`%`+(t>>6&63|128).toString(16).toUpperCase()+`%`+(t&63|128).toString(16).toUpperCase(),n}function B(e){for(var t=``,n=0,r=e.length;n<r;){var i=parseInt(e.substr(n+1,2),16);if(i<128)t+=String.fromCharCode(i),n+=3;else if(i>=194&&i<224){if(r-n>=6){var a=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((i&31)<<6|a&63)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var o=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function te(e,t){function n(e){var n=B(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,``),e.userinfo!==void 0&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,ee).replace(t.PCT_ENCODED,i)),e.host!==void 0&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,ee).replace(t.PCT_ENCODED,i)),e.path!==void 0&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,ee).replace(t.PCT_ENCODED,i)),e.query!==void 0&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,ee).replace(t.PCT_ENCODED,i)),e.fragment!==void 0&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,ee).replace(t.PCT_ENCODED,i)),e}function V(e){return e.replace(/^0*(.*)/,`$1`)||`0`}function H(e,t){var n=u(e.match(t.IPV4ADDRESS)||[],2)[1];return n?n.split(`.`).map(V).join(`.`):e}function U(e,t){var n=u(e.match(t.IPV6ADDRESS)||[],3),r=n[1],i=n[2];if(r){for(var a=u(r.toLowerCase().split(`::`).reverse(),2),o=a[0],s=a[1],c=s?s.split(`:`).map(V):[],l=o.split(`:`).map(V),d=t.IPV4ADDRESS.test(l[l.length-1]),f=d?7:8,p=l.length-f,m=Array(f),h=0;h<f;++h)m[h]=c[h]||l[p+h]||``;d&&(m[f-1]=H(m[f-1],t));var g=m.reduce(function(e,t,n){if(!t||t===`0`){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e},[]).sort(function(e,t){return t.length-e.length})[0],_=void 0;if(g&&g.length>1){var v=m.slice(0,g.index),y=m.slice(g.index+g.length);_=v.join(`:`)+`::`+y.join(`:`)}else _=m.join(`:`);return i&&(_+=`%`+i),_}else return e}var W=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ne=``.match(/(){0}/)[1]===void 0;function re(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n={},r=t.iri===!1?c:l;t.reference===`suffix`&&(e=(t.scheme?t.scheme+`:`:``)+`//`+e);var i=e.match(W);if(i){ne?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=e.indexOf(`@`)===-1?void 0:i[3],n.host=e.indexOf(`//`)===-1?void 0:i[4],n.port=parseInt(i[5],10),n.path=i[6]||``,n.query=e.indexOf(`?`)===-1?void 0:i[7],n.fragment=e.indexOf(`#`)===-1?void 0:i[8],isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&=U(H(n.host,r),r),n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference=`same-document`:n.scheme===void 0?n.reference=`relative`:n.fragment===void 0?n.reference=`absolute`:n.reference=`uri`,t.reference&&t.reference!==`suffix`&&t.reference!==n.reference&&(n.error=n.error||`URI is not a `+t.reference+` reference.`);var a=z[(t.scheme||n.scheme||``).toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)){if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=R.toASCII(n.host.replace(r.PCT_ENCODED,B).toLowerCase())}catch(e){n.error=n.error||`Host's domain name can not be converted to ASCII via punycode: `+e}te(n,c)}else te(n,r);a&&a.parse&&a.parse(n,t)}else n.error=n.error||`URI can not be parsed.`;return n}function G(e,t){var n=t.iri===!1?c:l,r=[];return e.userinfo!==void 0&&(r.push(e.userinfo),r.push(`@`)),e.host!==void 0&&r.push(U(H(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return`[`+t+(n?`%25`+n:``)+`]`})),(typeof e.port==`number`||typeof e.port==`string`)&&(r.push(`:`),r.push(String(e.port))),r.length?r.join(``):void 0}var ie=/^\.\.?\//,ae=/^\/\.(\/|$)/,oe=/^\/\.\.(\/|$)/,se=/^\/?(?:.|\n)*?(?=\/|$)/;function ce(e){for(var t=[];e.length;)if(e.match(ie))e=e.replace(ie,``);else if(e.match(ae))e=e.replace(ae,`/`);else if(e.match(oe))e=e.replace(oe,`/`),t.pop();else if(e===`.`||e===`..`)e=``;else{var n=e.match(se);if(n){var r=n[0];e=e.slice(r.length),t.push(r)}else throw Error(`Unexpected dot segment condition`)}return t.join(``)}function le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.iri?l:c,r=[],i=z[(t.scheme||e.scheme||``).toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host&&!n.IPV6ADDRESS.test(e.host)&&(t.domainHost||i&&i.domainHost))try{e.host=t.iri?R.toUnicode(e.host):R.toASCII(e.host.replace(n.PCT_ENCODED,B).toLowerCase())}catch(n){e.error=e.error||`Host's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+n}te(e,n),t.reference!==`suffix`&&e.scheme&&(r.push(e.scheme),r.push(`:`));var a=G(e,t);if(a!==void 0&&(t.reference!==`suffix`&&r.push(`//`),r.push(a),e.path&&e.path.charAt(0)!==`/`&&r.push(`/`)),e.path!==void 0){var o=e.path;!t.absolutePath&&(!i||!i.absolutePath)&&(o=ce(o)),a===void 0&&(o=o.replace(/^\/\//,`/%2F`)),r.push(o)}return e.query!==void 0&&(r.push(`?`),r.push(e.query)),e.fragment!==void 0&&(r.push(`#`),r.push(e.fragment)),r.join(``)}function ue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments[3],i={};return r||(e=re(le(e,n),n),t=re(le(t,n),n)),n||={},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=ce(t.path||``),i.query=t.query):(t.path?(t.path.charAt(0)===`/`?i.path=ce(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path=`/`+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:i.path=t.path,i.path=ce(i.path)),i.query=t.query):(i.path=e.path,t.query===void 0?i.query=e.query:i.query=t.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function de(e,t,n){var r=o({scheme:`null`},n);return le(ue(re(e,r),re(t,r),r,!0),r)}function fe(e,t){return typeof e==`string`?e=le(re(e,t),t):r(e)===`object`&&(e=re(le(e,t),t)),e}function pe(e,t,n){return typeof e==`string`?e=le(re(e,n),n):r(e)===`object`&&(e=le(e,n)),typeof t==`string`?t=le(re(t,n),n):r(t)===`object`&&(t=le(t,n)),e===t}function me(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:l.ESCAPE,ee)}function he(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:l.PCT_ENCODED,B)}var ge={scheme:`http`,domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e},serialize:function(e,t){var n=String(e.scheme).toLowerCase()===`https`;return(e.port===(n?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}},_e={scheme:`https`,domainHost:ge.domainHost,parse:ge.parse,serialize:ge.serialize};function K(e){return typeof e.secure==`boolean`?e.secure:String(e.scheme).toLowerCase()===`wss`}var ve={scheme:`ws`,domainHost:!0,parse:function(e,t){var n=e;return n.secure=K(n),n.resourceName=(n.path||`/`)+(n.query?`?`+n.query:``),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if((e.port===(K(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){var n=u(e.resourceName.split(`?`),2),r=n[0],i=n[1];e.path=r&&r!==`/`?r:void 0,e.query=i,e.resourceName=void 0}return e.fragment=void 0,e}},ye={scheme:`wss`,domainHost:ve.domainHost,parse:ve.parse,serialize:ve.serialize},q={},J=`[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]`,Y=`[0-9A-Fa-f]`,be=n(n(`%[EFef]`+Y+`%`+Y+Y+`%`+Y+Y)+`|`+n(`%[89A-Fa-f]`+Y+`%`+Y+Y)+`|`+n(`%`+Y+Y)),xe="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Se=t(`[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]`,`[\\"\\\\]`),X=`[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]`,Ce=new RegExp(J,`g`),Z=new RegExp(be,`g`),we=new RegExp(t(`[^]`,xe,`[\\.]`,`[\\"]`,Se),`g`),Te=new RegExp(t(`[^]`,J,X),`g`),Ee=Te;function De(e){var t=B(e);return t.match(Ce)?t:e}var Q={scheme:`mailto`,parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(`,`):[];if(n.path=void 0,n.query){for(var i=!1,a={},o=n.query.split(`&`),s=0,c=o.length;s<c;++s){var l=o[s].split(`=`);switch(l[0]){case`to`:for(var u=l[1].split(`,`),d=0,f=u.length;d<f;++d)r.push(u[d]);break;case`subject`:n.subject=he(l[1],t);break;case`body`:n.body=he(l[1],t);break;default:i=!0,a[he(l[0],t)]=he(l[1],t);break}}i&&(n.headers=a)}n.query=void 0;for(var p=0,m=r.length;p<m;++p){var h=r[p].split(`@`);if(h[0]=he(h[0]),t.unicodeSupport)h[1]=he(h[1],t).toLowerCase();else try{h[1]=R.toASCII(he(h[1],t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to ASCII via punycode: `+e}r[p]=h.join(`@`)}return n},serialize:function(e,t){var n=e,r=a(e.to);if(r){for(var o=0,s=r.length;o<s;++o){var c=String(r[o]),l=c.lastIndexOf(`@`),u=c.slice(0,l).replace(Z,De).replace(Z,i).replace(we,ee),d=c.slice(l+1);try{d=t.iri?R.toUnicode(d):R.toASCII(he(d,t).toLowerCase())}catch(e){n.error=n.error||`Email address's domain name can not be converted to `+(t.iri?`Unicode`:`ASCII`)+` via punycode: `+e}r[o]=u+`@`+d}n.path=r.join(`,`)}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==q[m]&&p.push(m.replace(Z,De).replace(Z,i).replace(Te,ee)+`=`+f[m].replace(Z,De).replace(Z,i).replace(Ee,ee));return p.length&&(n.query=p.join(`&`)),n}},Oe=/^([^\:]+)\:(.*)/,ke={scheme:`urn`,parse:function(e,t){var n=e.path&&e.path.match(Oe),r=e;if(n){var i=t.scheme||r.scheme||`urn`,a=n[1].toLowerCase(),o=n[2],s=z[i+`:`+(t.nid||a)];r.nid=a,r.nss=o,r.path=void 0,s&&(r=s.parse(r,t))}else r.error=r.error||`URN can not be parsed.`;return r},serialize:function(e,t){var n=t.scheme||e.scheme||`urn`,r=e.nid,i=z[n+`:`+(t.nid||r)];i&&(e=i.serialize(e,t));var a=e,o=e.nss;return a.path=(r||t.nid)+`:`+o,a}},Ae=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,je={scheme:`urn:uuid`,parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!n.uuid.match(Ae))&&(n.error=n.error||`UUID is not valid.`),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||``).toLowerCase(),n}};z[ge.scheme]=ge,z[_e.scheme]=_e,z[ve.scheme]=ve,z[ye.scheme]=ye,z[Q.scheme]=Q,z[ke.scheme]=ke,z[je.scheme]=je,e.SCHEMES=z,e.pctEncChar=ee,e.pctDecChars=B,e.parse=re,e.removeDotSegments=ce,e.serialize=le,e.resolveComponents=ue,e.resolve=de,e.normalize=fe,e.equal=pe,e.escapeComponent=me,e.unescapeComponent=he,Object.defineProperty(e,`__esModule`,{value:!0})}))})),Ro=n(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),zo=n(((e,t)=>{t.exports=function(e){for(var t=0,n=e.length,r=0,i;r<n;)t++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return t}})),Bo=n(((e,t)=>{t.exports={copy:n,checkDataType:r,checkDataTypes:i,coerceToTypes:o,toHash:s,getProperty:u,escapeQuotes:d,equal:Ro(),ucs2length:zo(),varOccurences:f,varReplace:p,schemaHasRules:m,schemaHasRulesExcept:h,schemaUnknownRules:g,toQuotedString:_,getPathExpr:v,getPath:y,getData:S,unescapeFragment:w,unescapeJsonPointer:D,escapeFragment:T,escapeJsonPointer:E};function n(e,t){for(var n in t||={},e)t[n]=e[n];return t}function r(e,t,n,r){var i=r?` !== `:` === `,a=r?` || `:` && `,o=r?`!`:``,s=r?``:`!`;switch(e){case`null`:return t+i+`null`;case`array`:return o+`Array.isArray(`+t+`)`;case`object`:return`(`+o+t+a+`typeof `+t+i+`"object"`+a+s+`Array.isArray(`+t+`))`;case`integer`:return`(typeof `+t+i+`"number"`+a+s+`(`+t+` % 1)`+a+t+i+t+(n?a+o+`isFinite(`+t+`)`:``)+`)`;case`number`:return`(typeof `+t+i+`"`+e+`"`+(n?a+o+`isFinite(`+t+`)`:``)+`)`;default:return`typeof `+t+i+`"`+e+`"`}}function i(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i=``,a=s(e);for(var o in a.array&&a.object&&(i=a.null?`(`:`(!`+t+` || `,i+=`typeof `+t+` !== "object")`,delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?` && `:``)+r(o,t,n,!0);return i}}var a=s([`string`,`number`,`integer`,`boolean`,`null`]);function o(e,t){if(Array.isArray(t)){for(var n=[],r=0;r<t.length;r++){var i=t[r];(a[i]||e===`array`&&i===`array`)&&(n[n.length]=i)}if(n.length)return n}else if(a[t])return[t];else if(e===`array`&&t===`array`)return[`array`]}function s(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var c=/^[a-z$_][a-z$_0-9]*$/i,l=/'|\\/g;function u(e){return typeof e==`number`?`[`+e+`]`:c.test(e)?`.`+e:`['`+d(e)+`']`}function d(e){return e.replace(l,`\\$&`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/\f/g,`\\f`).replace(/\t/g,`\\t`)}function f(e,t){t+=`[^0-9]`;var n=e.match(new RegExp(t,`g`));return n?n.length:0}function p(e,t,n){return t+=`([^0-9])`,n=n.replace(/\$/g,`$$$$`),e.replace(new RegExp(t,`g`),n+`$1`)}function m(e,t){if(typeof e==`boolean`)return!e;for(var n in e)if(t[n])return!0}function h(e,t,n){if(typeof e==`boolean`)return!e&&n!=`not`;for(var r in e)if(r!=n&&t[r])return!0}function g(e,t){if(typeof e!=`boolean`){for(var n in e)if(!t[n])return n}}function _(e){return`'`+d(e)+`'`}function v(e,t,n,r){return C(e,n?`'/' + `+t+(r?``:`.replace(/~/g, '~0').replace(/\\//g, '~1')`):r?`'[' + `+t+` + ']'`:`'[\\'' + `+t+` + '\\']'`)}function y(e,t,n){return C(e,_(n?`/`+E(t):u(t)))}var b=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function S(e,t,n){var r,i,a,o;if(e===``)return`rootData`;if(e[0]==`/`){if(!b.test(e))throw Error(`Invalid JSON-pointer: `+e);i=e,a=`rootData`}else{if(o=e.match(x),!o)throw Error(`Invalid JSON-pointer: `+e);if(r=+o[1],i=o[2],i==`#`){if(r>=t)throw Error(`Cannot access property/index `+r+` levels up, current level is `+t);return n[t-r]}if(r>t)throw Error(`Cannot access data `+r+` levels up, current level is `+t);if(a=`data`+(t-r||``),!i)return a}for(var s=a,c=i.split(`/`),l=0;l<c.length;l++){var d=c[l];d&&(a+=u(D(d)),s+=` && `+a)}return s}function C(e,t){return e==`""`?t:(e+` + `+t).replace(/([^\\])' \+ '/g,`$1`)}function w(e){return D(decodeURIComponent(e))}function T(e){return encodeURIComponent(E(e))}function E(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function D(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}})),Vo=n(((e,t)=>{var n=Bo();t.exports=r;function r(e){n.copy(e,this)}})),Ho=n(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else (p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),Uo=n(((e,t)=>{var n=Lo(),r=Ro(),i=Bo(),a=Vo(),o=Ho();t.exports=s,s.normalizeId=y,s.fullPath=g,s.url=b,s.ids=x,s.inlineRef=p,s.schema=c;function s(e,t,n){var r=this._refs[n];if(typeof r==`string`)if(this._refs[r])r=this._refs[r];else return s.call(this,e,t,r);if(r||=this._schemas[n],r instanceof a)return p(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i=c.call(this,t,n),o,l,u;return i&&(o=i.schema,t=i.root,u=i.baseId),o instanceof a?l=o.validate||e.call(this,o.schema,t,void 0,u):o!==void 0&&(l=p(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,u)),l}function c(e,t){var r=n.parse(t),i=_(r),o=g(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==o){var s=y(i),c=this._refs[s];if(typeof c==`string`)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else if(c=this._schemas[s],c instanceof a){if(c.validate||this._compile(c),s==y(t))return{schema:c,root:e,baseId:o};e=c}else return;if(!e.schema)return;o=g(this._getId(e.schema))}return d.call(this,r,o,e.schema,e)}function l(e,t,n){var r=c.call(this,e,t);if(r){var i=r.schema,a=r.baseId;e=r.root;var o=this._getId(i);return o&&(a=b(a,o)),d.call(this,n,a,i,e)}}var u=i.toHash([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function d(e,t,n,r){if(e.fragment=e.fragment||``,e.fragment.slice(0,1)==`/`){for(var a=e.fragment.split(`/`),o=1;o<a.length;o++){var s=a[o];if(s){if(s=i.unescapeFragment(s),n=n[s],n===void 0)break;var l;if(!u[s]&&(l=this._getId(n),l&&(t=b(t,l)),n.$ref)){var d=b(t,n.$ref),f=c.call(this,r,d);f&&(n=f.schema,r=f.root,t=f.baseId)}}}if(n!==void 0&&n!==r.schema)return{schema:n,root:r,baseId:t}}}var f=i.toHash([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`]);function p(e,t){if(t===!1)return!1;if(t===void 0||t===!0)return m(e);if(t)return h(e)<=t}function m(e){var t;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(t=e[n],typeof t==`object`&&!m(t))return!1}else for(var r in e)if(r==`$ref`||(t=e[r],typeof t==`object`&&!m(t)))return!1;return!0}function h(e){var t=0,n;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(n=e[r],typeof n==`object`&&(t+=h(n)),t==1/0)return 1/0}else for(var i in e){if(i==`$ref`)return 1/0;if(f[i])t++;else if(n=e[i],typeof n==`object`&&(t+=h(n)+1),t==1/0)return 1/0}return t}function g(e,t){return t!==!1&&(e=y(e)),_(n.parse(e))}function _(e){return n.serialize(e).split(`#`)[0]+`#`}var v=/#\/?$/;function y(e){return e?e.replace(v,``):``}function b(e,t){return t=y(t),n.resolve(e,t)}function x(e){var t=y(this._getId(e)),a={"":t},s={"":g(t,!1)},c={},l=this;return o(e,{allKeys:!0},function(e,t,o,u,d,f,p){if(t!==``){var m=l._getId(e),h=a[u],g=s[u]+`/`+d;if(p!==void 0&&(g+=`/`+(typeof p==`number`?p:i.escapeFragment(p))),typeof m==`string`){m=h=y(h?n.resolve(h,m):m);var _=l._refs[m];if(typeof _==`string`&&(_=l._refs[_]),_&&_.schema){if(!r(e,_.schema))throw Error(`id "`+m+`" resolves to more than one schema`)}else if(m!=y(g))if(m[0]==`#`){if(c[m]&&!r(e,c[m]))throw Error(`id "`+m+`" resolves to more than one schema`);c[m]=e}else l._refs[m]=g}a[t]=h,s[t]=g}}),c}})),Wo=n(((e,t)=>{var n=Uo();t.exports={Validation:a(r),MissingRef:a(i)};function r(e){this.message=`validation failed`,this.errors=e,this.ajv=this.validation=!0}i.message=function(e,t){return`can't resolve reference `+t+` from id `+e};function i(e,t,r){this.message=r||i.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}})),Go=n(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var n=typeof t.cycles==`boolean`?t.cycles:!1,r=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),i=[];return(function e(t){if(t&&t.toJSON&&typeof t.toJSON==`function`&&(t=t.toJSON()),t!==void 0){if(typeof t==`number`)return isFinite(t)?``+t:`null`;if(typeof t!=`object`)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o=`[`,a=0;a<t.length;a++)a&&(o+=`,`),o+=e(t[a])||`null`;return o+`]`}if(t===null)return`null`;if(i.indexOf(t)!==-1){if(n)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}var s=i.push(t)-1,c=Object.keys(t).sort(r&&r(t));for(o=``,a=0;a<c.length;a++){var l=c[a],u=e(t[l]);u&&(o&&(o+=`,`),o+=JSON.stringify(l)+`:`+u)}return i.splice(s,1),`{`+o+`}`}})(e)}})),Ko=n(((e,t)=>{t.exports=function(e,t,n){var r=``,i=e.schema.$async===!0,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,`$ref`),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c=`unknown keyword: `+s;if(e.opts.strictKeywords===`log`)e.logger.warn(c);else throw Error(c)}}if(e.isTop&&(r+=` var validate = `,i&&(e.async=!0,r+=`async `),r+=`function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; `,o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=` `+(`/*# sourceURL=`+o+` */`)+` `)),typeof e.schema==`boolean`||!(a||e.schema.$ref)){var t=`false schema`,l=e.level,u=e.dataLevel,d=e.schema[t],f=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+`/`+t,m=!e.opts.allErrors,h,g=`data`+(u||``),_=`valid`+l;if(e.schema===!1){e.isTop?m=!0:r+=` var `+_+` = false; `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`false schema`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'boolean schema is false' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else e.isTop?i?r+=` return data; `:r+=` validate.errors = null; return true; `:r+=` var `+_+` = true; `;return e.isTop&&(r+=` }; return validate; `),r}if(e.isTop){var b=e.isTop,l=e.level=0,u=e.dataLevel=0,g=`data`;if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[``],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var x=`default is ignored in the schema root`;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}r+=` var vErrors = null; `,r+=` var errors = 0; `,r+=` if (rootData === undefined) rootData = data; `}else{var l=e.level,u=e.dataLevel,g=`data`+(u||``);if(o&&(e.baseId=e.resolve.url(e.baseId,o)),i&&!e.async)throw Error(`async schema in sync schema`);r+=` var errs_`+l+` = errors;`}var _=`valid`+l,m=!e.opts.allErrors,S=``,C=``,h,w=e.schema.type,T=Array.isArray(w);if(w&&e.opts.nullable&&e.schema.nullable===!0&&(T?w.indexOf(`null`)==-1&&(w=w.concat(`null`)):w!=`null`&&(w=[w,`null`],T=!0)),T&&w.length==1&&(w=w[0],T=!1),e.schema.$ref&&a){if(e.opts.extendRefs==`fail`)throw Error(`$ref: validation keywords used in schema at path "`+e.errSchemaPath+`" (see option extendRefs)`);e.opts.extendRefs!==!0&&(a=!1,e.logger.warn(`$ref: keywords ignored in schema at path "`+e.errSchemaPath+`"`))}if(e.schema.$comment&&e.opts.$comment&&(r+=` `+e.RULES.all.$comment.code(e,`$comment`)),w){if(e.opts.coerceTypes)var E=e.util.coerceToTypes(e.opts.coerceTypes,w);var D=e.RULES.types[w];if(E||T||D===!0||D&&!se(D)){var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,O=T?`checkDataTypes`:`checkDataType`;if(r+=` if (`+e.util[O](w,g,e.opts.strictNumbers,!0)+`) { `,E){var k=`dataType`+l,A=`coerced`+l;r+=` var `+k+` = typeof `+g+`; var `+A+` = undefined; `,e.opts.coerceTypes==`array`&&(r+=` if (`+k+` == 'object' && Array.isArray(`+g+`) && `+g+`.length == 1) { `+g+` = `+g+`[0]; `+k+` = typeof `+g+`; if (`+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+`) `+A+` = `+g+`; } `),r+=` if (`+A+` !== undefined) ; `;var j=E;if(j)for(var M,N=-1,P=j.length-1;N<P;)M=j[N+=1],M==`string`?r+=` else if (`+k+` == 'number' || `+k+` == 'boolean') `+A+` = '' + `+g+`; else if (`+g+` === null) `+A+` = ''; `:M==`number`||M==`integer`?(r+=` else if (`+k+` == 'boolean' || `+g+` === null || (`+k+` == 'string' && `+g+` && `+g+` == +`+g+` `,M==`integer`&&(r+=` && !(`+g+` % 1)`),r+=`)) `+A+` = +`+g+`; `):M==`boolean`?r+=` else if (`+g+` === 'false' || `+g+` === 0 || `+g+` === null) `+A+` = false; else if (`+g+` === 'true' || `+g+` === 1) `+A+` = true; `:M==`null`?r+=` else if (`+g+` === '' || `+g+` === 0 || `+g+` === false) `+A+` = null; `:e.opts.coerceTypes==`array`&&M==`array`&&(r+=` else if (`+k+` == 'string' || `+k+` == 'number' || `+k+` == 'boolean' || `+g+` == null) `+A+` = [`+g+`]; `);r+=` else { `;var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } if (`+A+` !== undefined) { `;var F=u?`data`+(u-1||``):`parentData`,I=u?e.dataPathArr[u]:`parentDataProperty`;r+=` `+g+` = `+A+`; `,u||(r+=`if (`+F+` !== undefined)`),r+=` `+F+`[`+I+`] = `+A+`; } `}else{var v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}r+=` } `}}if(e.schema.$ref&&!a)r+=` `+e.RULES.all.$ref.code(e,`$ref`)+` `,m&&(r+=` } if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`);else{var L=e.RULES;if(L){for(var D,R=-1,z=L.length-1;R<z;)if(D=L[R+=1],se(D)){if(D.type&&(r+=` if (`+e.util.checkDataType(D.type,g,e.opts.strictNumbers)+`) { `),e.opts.useDefaults){if(D.type==`object`&&e.schema.properties){var d=e.schema.properties,ee=Object.keys(d);if(ee)for(var B,te=-1,V=ee.length-1;te<V;){B=ee[te+=1];var H=d[B];if(H.default!==void 0){var U=g+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+U;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+U+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+U+` === null || `+U+` === '' `),r+=` ) `+U+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(H.default)+` `:r+=` `+JSON.stringify(H.default)+` `,r+=`; `}}}else if(D.type==`array`&&Array.isArray(e.schema.items)){var W=e.schema.items;if(W){for(var H,N=-1,ne=W.length-1;N<ne;)if(H=W[N+=1],H.default!==void 0){var U=g+`[`+N+`]`;if(e.compositeRule){if(e.opts.strictDefaults){var x=`default is ignored for: `+U;if(e.opts.strictDefaults===`log`)e.logger.warn(x);else throw Error(x)}}else r+=` if (`+U+` === undefined `,e.opts.useDefaults==`empty`&&(r+=` || `+U+` === null || `+U+` === '' `),r+=` ) `+U+` = `,e.opts.useDefaults==`shared`?r+=` `+e.useDefault(H.default)+` `:r+=` `+JSON.stringify(H.default)+` `,r+=`; `}}}}var re=D.rules;if(re){for(var G,ie=-1,ae=re.length-1;ie<ae;)if(G=re[ie+=1],ce(G)){var oe=G.code(e,G.keyword,D.type);oe&&(r+=` `+oe+` `,m&&(S+=`}`))}}if(m&&(r+=` `+S+` `,S=``),D.type&&(r+=` } `,w&&w===D.type&&!E)){r+=` else { `;var f=e.schemaPath+`.type`,p=e.errSchemaPath+`/type`,v=v||[];v.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(h||`type`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(p)+` , params: { type: '`,T?r+=``+w.join(`,`):r+=``+w,r+=`' } `,e.opts.messages!==!1&&(r+=` , message: 'should be `,T?r+=``+w.join(`,`):r+=``+w,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+f+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+g+` `),r+=` } `);var y=r;r=v.pop(),!e.compositeRule&&m?e.async?r+=` throw new ValidationError([`+y+`]); `:r+=` validate.errors = [`+y+`]; return false; `:r+=` var err = `+y+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `}m&&(r+=` if (errors === `,b?r+=`0`:r+=`errs_`+l,r+=`) { `,C+=`}`)}}}m&&(r+=` `+C+` `),b?(i?(r+=` if (errors === 0) return data; `,r+=` else throw new ValidationError(vErrors); `):(r+=` validate.errors = vErrors; `,r+=` return errors === 0; `),r+=` }; return validate;`):r+=` var `+_+` = errors === errs_`+l+`;`;function se(e){for(var t=e.rules,n=0;n<t.length;n++)if(ce(t[n]))return!0}function ce(t){return e.schema[t.keyword]!==void 0||t.implements&&le(t)}function le(t){for(var n=t.implements,r=0;r<n.length;r++)if(e.schema[n[r]]!==void 0)return!0}return r}})),qo=n(((e,t)=>{var n=Uo(),r=Bo(),i=Wo(),a=Go(),o=Ko(),s=r.ucs2length,c=Ro(),l=i.Validation;t.exports=u;function u(e,t,p,v){var y=this,b=this._opts,x=[void 0],S={},C=[],w={},T=[],E={},D=[];function O(e,t){var n=b.regExp?`regExp`:`new RegExp`;return`var pattern`+e+` = `+n+`(`+r.toQuotedString(t[e])+`);`}t||={schema:e,refVal:x,refs:S};var k=d.call(this,e,t,v),A=this._compilations[k.index];if(k.compiling)return A.callValidate=F;var j=this._formats,M=this.RULES;try{var N=I(e,t,p,v);A.validate=N;var P=A.callValidate;return P&&(P.schema=N.schema,P.errors=null,P.refs=N.refs,P.refVal=N.refVal,P.root=N.root,P.$async=N.$async,b.sourceCode&&(P.source=N.source)),N}finally{f.call(this,e,t,v)}function F(){var e=A.validate,t=e.apply(this,arguments);return F.errors=e.errors,t}function I(e,a,d,f){var p=!a||a&&a.schema==e;if(a.schema!=t.schema)return u.call(y,e,a,d,f);var v=e.$async===!0,w=o({isTop:!0,schema:e,isRoot:p,baseId:f,root:a,schemaPath:``,errSchemaPath:`#`,errorPath:`""`,MissingRefError:i.MissingRef,RULES:M,validate:o,util:r,resolve:n,resolveRef:L,usePattern:te,useDefault:V,useCustomRule:H,opts:b,formats:j,logger:y.logger,self:y});w=_(x,h)+_(C,O)+_(T,m)+_(D,g)+w,b.processCode&&(w=b.processCode(w,e));var E;try{E=Function(`self`,`RULES`,`formats`,`root`,`refVal`,`defaults`,`customRules`,`equal`,`ucs2length`,`ValidationError`,`regExp`,w)(y,M,j,t,x,T,D,c,s,l,b.regExp),x[0]=E}catch(e){throw y.logger.error(`Error compiling schema, function code:`,w),e}return E.schema=e,E.errors=null,E.refs=S,E.refVal=x,E.root=p?E:a,v&&(E.$async=!0),b.sourceCode===!0&&(E.source={code:w,patterns:C,defaults:T}),E}function L(e,r,i){r=n.url(e,r);var a=S[r],o,s;if(a!==void 0)return o=x[a],s=`refVal[`+a+`]`,B(o,s);if(!i&&t.refs){var c=t.refs[r];if(c!==void 0)return o=t.refVal[c],s=R(r,o),B(o,s)}s=R(r);var l=n.call(y,I,t,r);if(l===void 0){var d=p&&p[r];d&&(l=n.inlineRef(d,b.inlineRefs)?d:u.call(y,d,t,p,e))}if(l===void 0)z(r);else return ee(r,l),B(l,s)}function R(e,t){var n=x.length;return x[n]=t,S[e]=n,`refVal`+n}function z(e){delete S[e]}function ee(e,t){var n=S[e];x[n]=t}function B(e,t){return typeof e==`object`||typeof e==`boolean`?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function te(e){var t=w[e];return t===void 0&&(t=w[e]=C.length,C[t]=e),`pattern`+t}function V(e){switch(typeof e){case`boolean`:case`number`:return``+e;case`string`:return r.toQuotedString(e);case`object`:if(e===null)return`null`;var t=a(e),n=E[t];return n===void 0&&(n=E[t]=T.length,T[n]=e),`default`+n}}function H(e,t,n,r){if(y._opts.validateSchema!==!1){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw Error(`parent schema must have all required keywords: `+i.join(`,`));var a=e.definition.validateSchema;if(a&&!a(t)){var o=`keyword schema is invalid: `+y.errorsText(a.errors);if(y._opts.validateSchema==`log`)y.logger.error(o);else throw Error(o)}}var s=e.definition.compile,c=e.definition.inline,l=e.definition.macro,u;if(s)u=s.call(y,t,n,r);else if(l)u=l.call(y,t,n,r),b.validateSchema!==!1&&y.validateSchema(u,!0);else if(c)u=c.call(y,r,e.keyword,t,n);else if(u=e.definition.validate,!u)return;if(u===void 0)throw Error(`custom keyword "`+e.keyword+`"failed to compile`);var d=D.length;return D[d]=u,{code:`customRule`+d,validate:u}}}function d(e,t,n){var r=p.call(this,e,t,n);return r>=0?{index:r,compiling:!0}:(r=this._compilations.length,this._compilations[r]={schema:e,root:t,baseId:n},{index:r,compiling:!1})}function f(e,t,n){var r=p.call(this,e,t,n);r>=0&&this._compilations.splice(r,1)}function p(e,t,n){for(var r=0;r<this._compilations.length;r++){var i=this._compilations[r];if(i.schema==e&&i.root==t&&i.baseId==n)return r}return-1}function m(e){return`var default`+e+` = defaults[`+e+`];`}function h(e,t){return t[e]===void 0?``:`var refVal`+e+` = refVal[`+e+`];`}function g(e){return`var customRule`+e+` = customRules[`+e+`];`}function _(e,t){if(!e.length)return``;for(var n=``,r=0;r<e.length;r++)n+=t(r,e);return n}})),Jo=n(((e,t)=>{var n=t.exports=function(){this._cache={}};n.prototype.put=function(e,t){this._cache[e]=t},n.prototype.get=function(e){return this._cache[e]},n.prototype.del=function(e){delete this._cache[e]},n.prototype.clear=function(){this._cache={}}})),Yo=n(((e,t)=>{var n=Bo(),r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,s=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,d=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;t.exports=h;function h(e){return e=e==`full`?`full`:`fast`,n.copy(h[e])}h.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":l,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m},h.full={date:_,time:v,"date-time":b,uri:S,"uri-reference":c,"uri-template":l,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:d,"json-pointer":f,"json-pointer-uri-fragment":p,"relative-json-pointer":m};function g(e){return e%4==0&&(e%100!=0||e%400==0)}function _(e){var t=e.match(r);if(!t)return!1;var n=+t[1],a=+t[2],o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&g(n)?29:i[a])}function v(e,t){var n=e.match(a);if(!n)return!1;var r=n[1],i=n[2],o=n[3],s=n[5];return(r<=23&&i<=59&&o<=59||r==23&&i==59&&o==60)&&(!t||s)}var y=/t|\s/i;function b(e){var t=e.split(y);return t.length==2&&_(t[0])&&v(t[1],!0)}var x=/\/|:/;function S(e){return x.test(e)&&s.test(e)}var C=/[^\\]\\Z/;function w(e){if(C.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),Xo=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.errSchemaPath+`/`+t,c=!e.opts.allErrors,l=`data`+(a||``),u=`valid`+i,d,f;if(o==`#`||o==`#/`)e.isRoot?(d=e.async,f=`validate`):(d=e.root.schema.$async===!0,f=`root.refVal[0]`);else{var p=e.resolveRef(e.baseId,o,e.isRoot);if(p===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs==`fail`){e.logger.error(m);var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '$ref' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(s)+` , params: { ref: '`+e.util.escapeQuotes(o)+`' } `,e.opts.messages!==!1&&(r+=` , message: 'can\\'t resolve reference `+e.util.escapeQuotes(o)+`' `),e.opts.verbose&&(r+=` , schema: `+e.util.toQuotedString(o)+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+l+` `),r+=` } `);var g=r;r=h.pop(),!e.compositeRule&&c?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c&&(r+=` if (false) { `)}else if(e.opts.missingRefs==`ignore`)e.logger.warn(m),c&&(r+=` if (true) { `);else throw new e.MissingRefError(e.baseId,o,m)}else if(p.inline){var _=e.util.copy(e);_.level++;var v=`valid`+_.level;_.schema=p.schema,_.schemaPath=``,_.errSchemaPath=o;var y=e.validate(_).replace(/validate\.schema/g,p.code);r+=` `+y+` `,c&&(r+=` if (`+v+`) { `)}else d=p.$async===!0||e.async&&p.$async!==!1,f=p.code}if(f){var h=h||[];h.push(r),r=``,e.opts.passContext?r+=` `+f+`.call(this, `:r+=` `+f+`( `,r+=` `+l+`, (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var b=a?`data`+(a-1||``):`parentData`,x=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+b+` , `+x+`, rootData) `;var S=r;if(r=h.pop(),d){if(!e.async)throw Error(`async schema referenced by sync schema`);c&&(r+=` var `+u+`; `),r+=` try { await `+S+`; `,c&&(r+=` `+u+` = true; `),r+=` } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; `,c&&(r+=` `+u+` = false; `),r+=` } `,c&&(r+=` if (`+u+`) { `)}else r+=` if (!`+S+`) { if (vErrors === null) vErrors = `+f+`.errors; else vErrors = vErrors.concat(`+f+`.errors); errors = vErrors.length; } `,c&&(r+=` else { `)}return r}})),Zo=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+`/`+t,s=!e.opts.allErrors,c=e.util.copy(e),l=``;c.level++;var u=`valid`+c.level,d=c.baseId,f=!0,p=i;if(p)for(var m,h=-1,g=p.length-1;h<g;)m=p[h+=1],(e.opts.strictKeywords?typeof m==`object`&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,c.schema=m,c.schemaPath=a+`[`+h+`]`,c.errSchemaPath=o+`/`+h,r+=` `+e.validate(c)+` `,c.baseId=d,s&&(r+=` if (`+u+`) { `,l+=`}`));return s&&(f?r+=` if (true) { `:r+=` `+l.slice(0,-1)+` `),r}})),Qo=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level;if(o.every(function(t){return e.opts.strictKeywords?typeof t==`object`&&Object.keys(t).length>0||t===!1:e.util.schemaHasRules(t,e.RULES.all)})){var g=p.baseId;r+=` var `+f+` = errors; var `+d+` = false; `;var _=e.compositeRule;e.compositeRule=p.compositeRule=!0;var v=o;if(v)for(var y,b=-1,x=v.length-1;b<x;)y=v[b+=1],p.schema=y,p.schemaPath=s+`[`+b+`]`,p.errSchemaPath=c+`/`+b,r+=` `+e.validate(p)+` `,p.baseId=g,r+=` `+d+` = `+d+` || `+h+`; if (!`+d+`) { `,m+=`}`;e.compositeRule=p.compositeRule=_,r+=` `+m+` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'anyOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should match some schema in anyOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else l&&(r+=` if (true) { `);return r}})),$o=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.schema[t],a=e.errSchemaPath+`/`+t;e.opts.allErrors;var o=e.util.toQuotedString(i);return e.opts.$comment===!0?r+=` console.log(`+o+`);`:typeof e.opts.$comment==`function`&&(r+=` self._opts.$comment(`+o+`, `+e.util.toQuotedString(a)+`, validate.root.schema);`),r}})),es=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i),f||(r+=` var schema`+i+` = validate.schema`+s+`;`),r+=`var `+d+` = equal(`+u+`, schema`+i+`); if (!`+d+`) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'const' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValue: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to constant' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),ts=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId,b=e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+=`var `+f+` = errors;var `+d+`;`,b){var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+h+` = false; for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var S=u+`[`+g+`]`;p.dataPathArr[_]=g;var C=e.validate(p);p.baseId=y,e.util.varOccurences(C,v)<2?r+=` `+e.util.varReplace(C,v,S)+` `:r+=` var `+v+` = `+S+`; `+C+` `,r+=` if (`+h+`) break; } `,e.compositeRule=p.compositeRule=x,r+=` `+m+` if (!`+h+`) {`}else r+=` if (`+u+`.length == 0) {`;var w=w||[];w.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'contains' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should contain a valid item' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var T=r;return r=w.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+T+`]); `:r+=` validate.errors = [`+T+`]; return false; `:r+=` var err = `+T+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `,b&&(r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `),e.opts.allErrors&&(r+=` } `),r}})),ns=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h={},g={},_=e.opts.ownProperties;for(x in o)if(x!=`__proto__`){var v=o[x],y=Array.isArray(v)?g:h;y[x]=v}r+=`var `+d+` = errors;`;var b=e.errorPath;for(var x in r+=`var missing`+i+`;`,g)if(y=g[x],y.length){if(r+=` if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),l){r+=` && ( `;var S=y;if(S)for(var C,w=-1,T=S.length-1;w<T;){C=S[w+=1],w&&(r+=` || `);var E=e.util.getProperty(C),D=u+E;r+=` ( ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?C:E)+`) ) `}r+=`)) { `;var O=`missing`+i,k=`' + `+O+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,O,!0):b+` + `+O);var A=A||[];A.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var j=r;r=A.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+j+`]); `:r+=` validate.errors = [`+j+`]; return false; `:r+=` var err = `+j+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `}else{r+=` ) { `;var M=y;if(M)for(var C,N=-1,P=M.length-1;N<P;){C=M[N+=1];var E=e.util.getProperty(C),k=e.util.escapeQuotes(C),D=u+E;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,C,e.opts.jsonPointers)),r+=` if ( `+D+` === undefined `,_&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(C)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'dependencies' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { property: '`+e.util.escapeQuotes(x)+`', missingProperty: '`+k+`', depsCount: `+y.length+`, deps: '`+e.util.escapeQuotes(y.length==1?y[0]:y.join(`, `))+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should have `,y.length==1?r+=`property `+e.util.escapeQuotes(y[0]):r+=`properties `+e.util.escapeQuotes(y.join(`, `)),r+=` when property `+e.util.escapeQuotes(x)+` is present' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}r+=` } `,l&&(p+=`}`,r+=` else { `)}e.errorPath=b;var F=f.baseId;for(var x in h){var v=h[x];(e.opts.strictKeywords?typeof v==`object`&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(r+=` `+m+` = true; if ( `+u+e.util.getProperty(x)+` !== undefined `,_&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(x)+`') `),r+=`) { `,f.schema=v,f.schemaPath=s+e.util.getProperty(x),f.errSchemaPath=c+`/`+e.util.escapeFragment(x),r+=` `+e.validate(f)+` `,f.baseId=F,r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`))}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),rs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`i`+i,m=`schema`+i;f||(r+=` var `+m+` = validate.schema`+s+`;`),r+=`var `+d+`;`,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=``+d+` = false;for (var `+p+`=0; `+p+`<`+m+`.length; `+p+`++) if (equal(`+u+`, `+m+`[`+p+`])) { `+d+` = true; break; }`,f&&(r+=` } `),r+=` if (!`+d+`) { `;var h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'enum' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { allowedValues: schema`+i+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be equal to one of the allowed values' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` }`,l&&(r+=` else { `),r}})),is=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``);if(e.opts.format===!1)return l&&(r+=` if (true) { `),r;var d=e.opts.$data&&o&&o.$data,f;d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o;var p=e.opts.unknownFormats,m=Array.isArray(p);if(d){var h=`format`+i,g=`isObject`+i,_=`formatType`+i;r+=` var `+h+` = formats[`+f+`]; var `+g+` = typeof `+h+` == 'object' && !(`+h+` instanceof RegExp) && `+h+`.validate; var `+_+` = `+g+` && `+h+`.type || 'string'; if (`+g+`) { `,e.async&&(r+=` var async`+i+` = `+h+`.async; `),r+=` `+h+` = `+h+`.validate; } if ( `,d&&(r+=` (`+f+` !== undefined && typeof `+f+` != 'string') || `),r+=` (`,p!=`ignore`&&(r+=` (`+f+` && !`+h+` `,m&&(r+=` && self._opts.unknownFormats.indexOf(`+f+`) == -1 `),r+=`) || `),r+=` (`+h+` && `+_+` == '`+n+`' && !(typeof `+h+` == 'function' ? `,e.async?r+=` (async`+i+` ? await `+h+`(`+u+`) : `+h+`(`+u+`)) `:r+=` `+h+`(`+u+`) `,r+=` : `+h+`.test(`+u+`))))) {`}else{var h=e.formats[o];if(!h){if(p==`ignore`)return e.logger.warn(`unknown format "`+o+`" ignored in schema at path "`+e.errSchemaPath+`"`),l&&(r+=` if (true) { `),r;if(m&&p.indexOf(o)>=0)return l&&(r+=` if (true) { `),r;throw Error(`unknown format "`+o+`" is used in schema at path "`+e.errSchemaPath+`"`)}var g=typeof h==`object`&&!(h instanceof RegExp)&&h.validate,_=g&&h.type||`string`;if(g){var v=h.async===!0;h=h.validate}if(_!=n)return l&&(r+=` if (true) { `),r;if(v){if(!e.async)throw Error(`async format in sync schema`);var y=`formats`+e.util.getProperty(o)+`.validate`;r+=` if (!(await `+y+`(`+u+`))) { `}else{r+=` if (! `;var y=`formats`+e.util.getProperty(o);g&&(y+=`.validate`),typeof h==`function`?r+=` `+y+`(`+u+`) `:r+=` `+y+`.test(`+u+`) `,r+=`) { `}}var b=b||[];b.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'format' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { format: `,d?r+=``+f:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match format "`,d?r+=`' + `+f+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var x=r;return r=b.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+x+`]); `:r+=` validate.errors = [`+x+`]; return false; `:r+=` var err = `+x+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),as=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e);p.level++;var m=`valid`+p.level,h=e.schema.then,g=e.schema.else,_=h!==void 0&&(e.opts.strictKeywords?typeof h==`object`&&Object.keys(h).length>0||h===!1:e.util.schemaHasRules(h,e.RULES.all)),v=g!==void 0&&(e.opts.strictKeywords?typeof g==`object`&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),y=p.baseId;if(_||v){var b;p.createErrors=!1,p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` var `+f+` = errors; var `+d+` = true; `;var x=e.compositeRule;e.compositeRule=p.compositeRule=!0,r+=` `+e.validate(p)+` `,p.baseId=y,p.createErrors=!0,r+=` errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; } `,e.compositeRule=p.compositeRule=x,_?(r+=` if (`+m+`) { `,p.schema=e.schema.then,p.schemaPath=e.schemaPath+`.then`,p.errSchemaPath=e.errSchemaPath+`/then`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'then'; `):b=`'then'`,r+=` } `,v&&(r+=` else { `)):r+=` if (!`+m+`) { `,v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+`.else`,p.errSchemaPath=e.errSchemaPath+`/else`,r+=` `+e.validate(p)+` `,p.baseId=y,r+=` `+d+` = `+m+`; `,_&&v?(b=`ifClause`+i,r+=` var `+b+` = 'else'; `):b=`'else'`,r+=` } `),r+=` if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'if' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { failingKeyword: `+b+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+b+` + '" schema' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),os=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=`i`+i,_=p.dataLevel=e.dataLevel+1,v=`data`+_,y=e.baseId;if(r+=`var `+f+` = errors;var `+d+`;`,Array.isArray(o)){var b=e.schema.additionalItems;if(b===!1){r+=` `+d+` = `+u+`.length <= `+o.length+`; `;var x=c;c=e.errSchemaPath+`/additionalItems`,r+=` if (!`+d+`) { `;var S=S||[];S.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+o.length+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have more than `+o.length+` items' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var C=r;r=S.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+C+`]); `:r+=` validate.errors = [`+C+`]; return false; `:r+=` var err = `+C+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,c=x,l&&(m+=`}`,r+=` else { `)}var w=o;if(w){for(var T,E=-1,D=w.length-1;E<D;)if(T=w[E+=1],e.opts.strictKeywords?typeof T==`object`&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all)){r+=` `+h+` = true; if (`+u+`.length > `+E+`) { `;var O=u+`[`+E+`]`;p.schema=T,p.schemaPath=s+`[`+E+`]`,p.errSchemaPath=c+`/`+E,p.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers,!0),p.dataPathArr[_]=E;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,r+=` } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}if(typeof b==`object`&&(e.opts.strictKeywords?typeof b==`object`&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))){p.schema=b,p.schemaPath=e.schemaPath+`.additionalItems`,p.errSchemaPath=e.errSchemaPath+`/additionalItems`,r+=` `+h+` = true; if (`+u+`.length > `+o.length+`) { for (var `+g+` = `+o.length+`; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` } } `,l&&(r+=` if (`+h+`) { `,m+=`}`)}}else if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=s,p.errSchemaPath=c,r+=` for (var `+g+` = 0; `+g+` < `+u+`.length; `+g+`++) { `,p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var O=u+`[`+g+`]`;p.dataPathArr[_]=g;var k=e.validate(p);p.baseId=y,e.util.varOccurences(k,v)<2?r+=` `+e.util.varReplace(k,v,O)+` `:r+=` var `+v+` = `+O+`; `+k+` `,l&&(r+=` if (!`+h+`) break; `),r+=` }`}return l&&(r+=` `+m+` if (`+f+` == errors) {`),r}})),ss=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o;var m=t==`maximum`,h=m?`exclusiveMaximum`:`exclusiveMinimum`,g=e.schema[h],_=e.opts.$data&&g&&g.$data,v=m?`<`:`>`,y=m?`>`:`<`,u=void 0;if(!(f||typeof o==`number`||o===void 0))throw Error(t+` must be number`);if(!(_||g===void 0||typeof g==`number`||typeof g==`boolean`))throw Error(h+` must be number or boolean`);if(_){var b=e.util.getData(g.$data,a,e.dataPathArr),x=`exclusive`+i,S=`exclType`+i,C=`exclIsNumber`+i,w=`op`+i,T=`' + `+w+` + '`;r+=` var schemaExcl`+i+` = `+b+`; `,b=`schemaExcl`+i,r+=` var `+x+`; var `+S+` = typeof `+b+`; if (`+S+` != 'boolean' && `+S+` != 'undefined' && `+S+` != 'number') { `;var u=h,E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_exclusiveLimit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: '`+h+` should be boolean' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+S+` == 'number' ? ( (`+x+` = `+p+` === undefined || `+b+` `+v+`= `+p+`) ? `+d+` `+y+`= `+b+` : `+d+` `+y+` `+p+` ) : ( (`+x+` = `+b+` === true) ? `+d+` `+y+`= `+p+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { var op`+i+` = `+x+` ? '`+v+`' : '`+v+`='; `,o===void 0&&(u=h,c=e.errSchemaPath+`/`+h,p=b,f=_)}else{var C=typeof g==`number`,T=v;if(C&&f){var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` ( `+p+` === undefined || `+g+` `+v+`= `+p+` ? `+d+` `+y+`= `+g+` : `+d+` `+y+` `+p+` ) || `+d+` !== `+d+`) { `}else{C&&o===void 0?(x=!0,u=h,c=e.errSchemaPath+`/`+h,p=g,y+=`=`):(C&&(p=Math[m?`min`:`max`](g,o)),g===(C?p:!0)?(x=!0,u=h,c=e.errSchemaPath+`/`+h,y+=`=`):(x=!1,T+=`=`));var w=`'`+T+`'`;r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+` `+y+` `+p+` || `+d+` !== `+d+`) { `}}u||=t;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limit`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { comparison: `+w+`, limit: `+p+`, exclusive: `+x+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be `+T+` `,f?r+=`' + `+p:r+=``+p+`'`),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var D=r;return r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `),r}})),cs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxItems`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` `+d+`.length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitItems`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxItems`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` items' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),ls=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxLength`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),e.opts.unicode===!1?r+=` `+d+`.length `:r+=` ucs2length(`+d+`) `,r+=` `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitLength`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be `,t==`maxLength`?r+=`longer`:r+=`shorter`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` characters' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),us=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,!(f||typeof o==`number`))throw Error(t+` must be number`);var m=t==`maxProperties`?`>`:`<`;r+=`if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'number') || `),r+=` Object.keys(`+d+`).length `+m+` `+p+`) { `;var u=t,h=h||[];h.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`_limitProperties`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { limit: `+p+` } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have `,t==`maxProperties`?r+=`more`:r+=`fewer`,r+=` than `,f?r+=`' + `+p+` + '`:r+=``+o,r+=` properties' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var g=r;return r=h.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+g+`]); `:r+=` validate.errors = [`+g+`]; return false; `:r+=` var err = `+g+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),ds=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=e.opts.$data&&o&&o.$data,f;if(d?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,f=`schema`+i):f=o,!(d||typeof o==`number`))throw Error(t+` must be number`);r+=`var division`+i+`;if (`,d&&(r+=` `+f+` !== undefined && ( typeof `+f+` != 'number' || `),r+=` (division`+i+` = `+u+` / `+f+`, `,e.opts.multipleOfPrecision?r+=` Math.abs(Math.round(division`+i+`) - division`+i+`) > 1e-`+e.opts.multipleOfPrecision+` `:r+=` division`+i+` !== parseInt(division`+i+`) `,r+=` ) `,d&&(r+=` ) `),r+=` ) { `;var p=p||[];p.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'multipleOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { multipleOf: `+f+` } `,e.opts.messages!==!1&&(r+=` , message: 'should be multiple of `,d?r+=`' + `+f:r+=``+f+`'`),e.opts.verbose&&(r+=` , schema: `,d?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var m=r;return r=p.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+m+`]); `:r+=` validate.errors = [`+m+`]; return false; `:r+=` var err = `+m+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),fs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e);f.level++;var p=`valid`+f.level;if(e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c,r+=` var `+d+` = errors; `;var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var h;f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),r+=` `+e.validate(f)+` `,f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,r+=` if (`+p+`) { `;var g=g||[];g.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var _=r;r=g.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+_+`]); `:r+=` validate.errors = [`+_+`]; return false; `:r+=` var err = `+_+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { errors = `+d+`; if (vErrors !== null) { if (`+d+`) vErrors.length = `+d+`; else vErrors = null; } `,e.opts.allErrors&&(r+=` } `)}else r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'not' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: {} `,e.opts.messages!==!1&&(r+=` , message: 'should NOT be valid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,l&&(r+=` if (false) { `);return r}})),ps=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=`errs__`+i,p=e.util.copy(e),m=``;p.level++;var h=`valid`+p.level,g=p.baseId,_=`prevValid`+i,v=`passingSchemas`+i;r+=`var `+f+` = errors , `+_+` = false , `+d+` = false , `+v+` = null; `;var y=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=o;if(b)for(var x,S=-1,C=b.length-1;S<C;)x=b[S+=1],(e.opts.strictKeywords?typeof x==`object`&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all))?(p.schema=x,p.schemaPath=s+`[`+S+`]`,p.errSchemaPath=c+`/`+S,r+=` `+e.validate(p)+` `,p.baseId=g):r+=` var `+h+` = true; `,S&&(r+=` if (`+h+` && `+_+`) { `+d+` = false; `+v+` = [`+v+`, `+S+`]; } else { `,m+=`}`),r+=` if (`+h+`) { `+d+` = `+_+` = true; `+v+` = `+S+`; }`;return e.compositeRule=p.compositeRule=y,r+=``+m+`if (!`+d+`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'oneOf' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { passingSchemas: `+v+` } `,e.opts.messages!==!1&&(r+=` , message: 'should match exactly one schema in oneOf' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),r+=`} else { errors = `+f+`; if (vErrors !== null) { if (`+f+`) vErrors.length = `+f+`; else vErrors = null; }`,e.opts.allErrors&&(r+=` } `),r}})),ms=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data,p;f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o;var m=e.opts.regExp?`regExp`:`new RegExp`;if(f)r+=` var `+d+` = true; try { `+d+` = `+m+`(`+p+`).test(`+u+`); } catch(e) { `+d+` = false; } if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'string') || `),r+=` !`+d+`) {`;else{var h=e.usePattern(o);r+=` if ( `,f&&(r+=` (`+p+` !== undefined && typeof `+p+` != 'string') || `),r+=` !`+h+`.test(`+u+`) ) {`}var g=g||[];g.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'pattern' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { pattern: `,f?r+=``+p:r+=``+e.util.toQuotedString(o),r+=` } `,e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,f?r+=`' + `+p+` + '`:r+=``+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+e.util.toQuotedString(o),r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var _=r;return r=g.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+_+`]); `:r+=` validate.errors = [`+_+`]; return false; `:r+=` var err = `+_+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=`} `,l&&(r+=` else { `),r}})),hs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level,h=`key`+i,g=`idx`+i,_=f.dataLevel=e.dataLevel+1,v=`data`+_,y=`dataProperties`+i,b=Object.keys(o||{}).filter(N),x=e.schema.patternProperties||{},S=Object.keys(x).filter(N),C=e.schema.additionalProperties,w=b.length||S.length,T=C===!1,E=typeof C==`object`&&Object.keys(C).length,D=e.opts.removeAdditional,O=T||E||D,k=e.opts.ownProperties,A=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length<e.opts.loopRequired)var M=e.util.toHash(j);function N(e){return e!==`__proto__`}if(r+=`var `+d+` = errors;var `+m+` = true;`,k&&(r+=` var `+y+` = undefined;`),O){if(k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,w){if(r+=` var isAdditional`+i+` = !(false `,b.length)if(b.length>8)r+=` || validate.schema`+s+`.hasOwnProperty(`+h+`) `;else{var P=b;if(P)for(var F,I=-1,L=P.length-1;I<L;)F=P[I+=1],r+=` || `+h+` == `+e.util.toQuotedString(F)+` `}if(S.length){var R=S;if(R)for(var z,ee=-1,B=R.length-1;ee<B;)z=R[ee+=1],r+=` || `+e.usePattern(z)+`.test(`+h+`) `}r+=` ); if (isAdditional`+i+`) { `}if(D==`all`)r+=` delete `+u+`[`+h+`]; `;else{var te=e.errorPath,V=`' + `+h+` + '`;if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers)),T)if(D)r+=` delete `+u+`[`+h+`]; `;else{r+=` `+m+` = false; `;var H=c;c=e.errSchemaPath+`/additionalProperties`;var U=U||[];U.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'additionalProperties' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { additionalProperty: '`+V+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is an invalid additional property`:r+=`should NOT have additional properties`,r+=`' `),e.opts.verbose&&(r+=` , schema: false , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var W=r;r=U.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+W+`]); `:r+=` validate.errors = [`+W+`]; return false; `:r+=` var err = `+W+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=H,l&&(r+=` break; `)}else if(E)if(D==`failing`){r+=` var `+d+` = errors; `;var ne=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var G=e.validate(f);f.baseId=A,e.util.varOccurences(G,v)<2?r+=` `+e.util.varReplace(G,v,re)+` `:r+=` var `+v+` = `+re+`; `+G+` `,r+=` if (!`+m+`) { errors = `+d+`; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete `+u+`[`+h+`]; } `,e.compositeRule=f.compositeRule=ne}else{f.schema=C,f.schemaPath=e.schemaPath+`.additionalProperties`,f.errSchemaPath=e.errSchemaPath+`/additionalProperties`,f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var G=e.validate(f);f.baseId=A,e.util.varOccurences(G,v)<2?r+=` `+e.util.varReplace(G,v,re)+` `:r+=` var `+v+` = `+re+`; `+G+` `,l&&(r+=` if (!`+m+`) break; `)}e.errorPath=te}w&&(r+=` } `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}var ie=e.opts.useDefaults&&!e.compositeRule;if(b.length){var ae=b;if(ae)for(var F,oe=-1,se=ae.length-1;oe<se;){F=ae[oe+=1];var ce=o[F];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){var le=e.util.getProperty(F),re=u+le,ue=ie&&ce.default!==void 0;f.schema=ce,f.schemaPath=s+le,f.errSchemaPath=c+`/`+e.util.escapeFragment(F),f.errorPath=e.util.getPath(e.errorPath,F,e.opts.jsonPointers),f.dataPathArr[_]=e.util.toQuotedString(F);var G=e.validate(f);if(f.baseId=A,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,re);var de=re}else{var de=v;r+=` var `+v+` = `+re+`; `}if(ue)r+=` `+G+` `;else{if(M&&M[F]){r+=` if ( `+de+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = false; `;var te=e.errorPath,H=c,fe=e.util.escapeQuotes(F);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(te,F,e.opts.jsonPointers)),c=e.errSchemaPath+`/required`;var U=U||[];U.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+fe+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+fe+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var W=r;r=U.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+W+`]); `:r+=` validate.errors = [`+W+`]; return false; `:r+=` var err = `+W+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,c=H,e.errorPath=te,r+=` } else { `}else l?(r+=` if ( `+de+` === undefined `,k&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=`) { `+m+` = true; } else { `):(r+=` if (`+de+` !== undefined `,k&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(F)+`') `),r+=` ) { `);r+=` `+G+` } `}}l&&(r+=` if (`+m+`) { `,p+=`}`)}}if(S.length){var pe=S;if(pe)for(var z,me=-1,he=pe.length-1;me<he;){z=pe[me+=1];var ce=x[z];if(e.opts.strictKeywords?typeof ce==`object`&&Object.keys(ce).length>0||ce===!1:e.util.schemaHasRules(ce,e.RULES.all)){f.schema=ce,f.schemaPath=e.schemaPath+`.patternProperties`+e.util.getProperty(z),f.errSchemaPath=e.errSchemaPath+`/patternProperties/`+e.util.escapeFragment(z),k?r+=` `+y+` = `+y+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+y+`.length; `+g+`++) { var `+h+` = `+y+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` if (`+e.usePattern(z)+`.test(`+h+`)) { `,f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var re=u+`[`+h+`]`;f.dataPathArr[_]=h;var G=e.validate(f);f.baseId=A,e.util.varOccurences(G,v)<2?r+=` `+e.util.varReplace(G,v,re)+` `:r+=` var `+v+` = `+re+`; `+G+` `,l&&(r+=` if (!`+m+`) break; `),r+=` } `,l&&(r+=` else `+m+` = true; `),r+=` } `,l&&(r+=` if (`+m+`) { `,p+=`}`)}}}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),gs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`errs__`+i,f=e.util.copy(e),p=``;f.level++;var m=`valid`+f.level;if(r+=`var `+d+` = errors;`,e.opts.strictKeywords?typeof o==`object`&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=s,f.errSchemaPath=c;var h=`key`+i,g=`idx`+i,_=`i`+i,v=`' + `+h+` + '`,y=`data`+(f.dataLevel=e.dataLevel+1),b=`dataProperties`+i,x=e.opts.ownProperties,S=e.baseId;x&&(r+=` var `+b+` = undefined; `),x?r+=` `+b+` = `+b+` || Object.keys(`+u+`); for (var `+g+`=0; `+g+`<`+b+`.length; `+g+`++) { var `+h+` = `+b+`[`+g+`]; `:r+=` for (var `+h+` in `+u+`) { `,r+=` var startErrs`+i+` = errors; `;var C=h,w=e.compositeRule;e.compositeRule=f.compositeRule=!0;var T=e.validate(f);f.baseId=S,e.util.varOccurences(T,y)<2?r+=` `+e.util.varReplace(T,y,C)+` `:r+=` var `+y+` = `+C+`; `+T+` `,e.compositeRule=f.compositeRule=w,r+=` if (!`+m+`) { for (var `+_+`=startErrs`+i+`; `+_+`<errors; `+_+`++) { vErrors[`+_+`].propertyName = `+h+`; } var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'propertyNames' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { propertyName: '`+v+`' } `,e.opts.messages!==!1&&(r+=` , message: 'property name \\'`+v+`\\' is invalid' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `),l&&(r+=` break; `),r+=` } }`}return l&&(r+=` `+p+` if (`+d+` == errors) {`),r}})),_s=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data;f&&(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,``+i);var p=`schema`+i;if(!f)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[],h=o;if(h)for(var g,_=-1,v=h.length-1;_<v;){g=h[_+=1];var y=e.schema.properties[g];y&&(e.opts.strictKeywords?typeof y==`object`&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))||(m[m.length]=g)}}else var m=o;if(f||m.length){var b=e.errorPath,x=f||m.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(l)if(r+=` var missing`+i+`; `,x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),r+=` var `+d+` = true; `,f&&(r+=` if (schema`+i+` === undefined) `+d+` = true; else if (!Array.isArray(schema`+i+`)) `+d+` = false; else {`),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { `+d+` = `+u+`[`+p+`[`+C+`]] !== undefined `,S&&(r+=` && Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`; if (!`+d+`) break; } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else{r+=` if ( `;var O=m;if(O)for(var k,C=-1,A=O.length-1;C<A;){k=O[C+=1],C&&(r+=` || `);var j=e.util.getProperty(k),M=u+j;r+=` ( ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) && (missing`+i+` = `+e.util.toQuotedString(e.opts.jsonPointers?k:j)+`) ) `}r+=`) { `;var w=`missing`+i,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,w,!0):b+` + `+w);var E=E||[];E.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var D=r;r=E.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+D+`]); `:r+=` validate.errors = [`+D+`]; return false; `:r+=` var err = `+D+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } else { `}else if(x){f||(r+=` var `+p+` = validate.schema`+s+`; `);var C=`i`+i,w=`schema`+i+`[`+C+`]`,T=`' + `+w+` + '`;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),f&&(r+=` if (`+p+` && !Array.isArray(`+p+`)) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (`+p+` !== undefined) { `),r+=` for (var `+C+` = 0; `+C+` < `+p+`.length; `+C+`++) { if (`+u+`[`+p+`[`+C+`]] === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, `+p+`[`+C+`]) `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } `,f&&(r+=` } `)}else{var N=m;if(N)for(var k,P=-1,F=N.length-1;P<F;){k=N[P+=1];var j=e.util.getProperty(k),T=e.util.escapeQuotes(k),M=u+j;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,k,e.opts.jsonPointers)),r+=` if ( `+M+` === undefined `,S&&(r+=` || ! Object.prototype.hasOwnProperty.call(`+u+`, '`+e.util.escapeQuotes(k)+`') `),r+=`) { var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'required' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { missingProperty: '`+T+`' } `,e.opts.messages!==!1&&(r+=` , message: '`,e.opts._errorDataPathProperty?r+=`is a required property`:r+=`should have required property \\'`+T+`\\'`,r+=`' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } `}}e.errorPath=b}else l&&(r+=` if (true) {`);return r}})),vs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u=`data`+(a||``),d=`valid`+i,f=e.opts.$data&&o&&o.$data,p;if(f?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,p=`schema`+i):p=o,(o||f)&&e.opts.uniqueItems!==!1){f&&(r+=` var `+d+`; if (`+p+` === false || `+p+` === undefined) `+d+` = true; else if (typeof `+p+` != 'boolean') `+d+` = false; else { `),r+=` var i = `+u+`.length , `+d+` = true , j; if (i > 1) { `;var m=e.schema.items&&e.schema.items.type,h=Array.isArray(m);if(!m||m==`object`||m==`array`||h&&(m.indexOf(`object`)>=0||m.indexOf(`array`)>=0))r+=` outer: for (;i--;) { for (j = i; j--;) { if (equal(`+u+`[i], `+u+`[j])) { `+d+` = false; break outer; } } } `;else{r+=` var itemIndices = {}, item; for (;i--;) { var item = `+u+`[i]; `;var g=`checkDataType`+(h?`s`:``);r+=` if (`+e.util[g](m,`item`,e.opts.strictNumbers,!0)+`) continue; `,h&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=` if (typeof itemIndices[item] == 'number') { `+d+` = false; j = itemIndices[item]; break; } itemIndices[item] = i; } `}r+=` } `,f&&(r+=` } `),r+=` if (!`+d+`) { `;var _=_||[];_.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: 'uniqueItems' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { i: i, j: j } `,e.opts.messages!==!1&&(r+=` , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' `),e.opts.verbose&&(r+=` , schema: `,f?r+=`validate.schema`+s:r+=``+o,r+=` , parentSchema: validate.schema`+e.schemaPath+` , data: `+u+` `),r+=` } `);var v=r;r=_.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+v+`]); `:r+=` validate.errors = [`+v+`]; return false; `:r+=` var err = `+v+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,r+=` } `,l&&(r+=` else { `)}else l&&(r+=` if (true) { `);return r}})),ys=n(((e,t)=>{t.exports={$ref:Xo(),allOf:Zo(),anyOf:Qo(),$comment:$o(),const:es(),contains:ts(),dependencies:ns(),enum:rs(),format:is(),if:as(),items:os(),maximum:ss(),minimum:ss(),maxItems:cs(),minItems:cs(),maxLength:ls(),minLength:ls(),maxProperties:us(),minProperties:us(),multipleOf:ds(),not:fs(),oneOf:ps(),pattern:ms(),properties:hs(),propertyNames:gs(),required:_s(),uniqueItems:vs(),validate:Ko()}})),bs=n(((e,t)=>{var n=ys(),r=Bo().toHash;t.exports=function(){var e=[{type:`number`,rules:[{maximum:[`exclusiveMaximum`]},{minimum:[`exclusiveMinimum`]},`multipleOf`,`format`]},{type:`string`,rules:[`maxLength`,`minLength`,`pattern`,`format`]},{type:`array`,rules:[`maxItems`,`minItems`,`items`,`contains`,`uniqueItems`]},{type:`object`,rules:[`maxProperties`,`minProperties`,`required`,`dependencies`,`propertyNames`,{properties:[`additionalProperties`,`patternProperties`]}]},{rules:[`$ref`,`const`,`enum`,`not`,`anyOf`,`oneOf`,`allOf`,`if`]}],t=[`type`,`$comment`];return e.all=r(t),e.types=r([`number`,`integer`,`string`,`array`,`object`,`boolean`,`null`]),e.forEach(function(r){r.rules=r.rules.map(function(r){var i;if(typeof r==`object`){var a=Object.keys(r)[0];i=r[a],r=a,i.forEach(function(n){t.push(n),e.all[n]=!0})}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:i}}),e.all.$comment={keyword:`$comment`,code:n.$comment},r.type&&(e.types[r.type]=r)}),e.keywords=r(t.concat([`$schema`,`$id`,`id`,`$data`,`$async`,`title`,`description`,`default`,`definitions`,`examples`,`readOnly`,`writeOnly`,`contentMediaType`,`contentEncoding`,`additionalItems`,`then`,`else`])),e.custom={},e}})),xs=n(((e,t)=>{var n=[`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`additionalItems`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`,`additionalProperties`,`enum`,`format`,`const`];t.exports=function(e,t){for(var r=0;r<t.length;r++){e=JSON.parse(JSON.stringify(e));var i=t[r].split(`/`),a=e,o;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<n.length;o++){var s=n[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]})}}return e}})),Ss=n(((e,t)=>{var n=Wo().MissingRef;t.exports=r;function r(e,t,i){var a=this;if(typeof this._opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);typeof t==`function`&&(i=t,t=void 0);var o=s(e).then(function(){var n=a._addSchema(e,void 0,t);return n.validate||c(n)});return i&&o.then(function(e){i(null,e)},i),o;function s(e){var t=e.$schema;return t&&!a.getSchema(t)?r.call(a,{$ref:t},!0):Promise.resolve()}function c(e){try{return a._compile(e)}catch(e){if(e instanceof n)return r(e);throw e}function r(n){var r=n.missingSchema;if(l(r))throw Error(`Schema `+r+` is loaded but `+n.missingRef+` cannot be resolved`);var i=a._loadingSchemas[r];return i||(i=a._loadingSchemas[r]=a._opts.loadSchema(r),i.then(o,o)),i.then(function(e){if(!l(r))return s(e).then(function(){l(r)||a.addSchema(e,r,void 0,t)})}).then(function(){return c(e)});function o(){delete a._loadingSchemas[r]}function l(e){return a._refs[e]||a._schemas[e]}}}}})),Cs=n(((e,t)=>{t.exports=function(e,t,n){var r=` `,i=e.level,a=e.dataLevel,o=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+`/`+t,l=!e.opts.allErrors,u,d=`data`+(a||``),f=`valid`+i,p=`errs__`+i,m=e.opts.$data&&o&&o.$data,h;m?(r+=` var schema`+i+` = `+e.util.getData(o.$data,a,e.dataPathArr)+`; `,h=`schema`+i):h=o;var g=this,_=`definition`+i,v=g.definition,y=``,b,x,S,C,w;if(m&&v.$data){w=`keywordValidate`+i;var T=v.validateSchema;r+=` var `+_+` = RULES.custom['`+t+`'].definition; var `+w+` = `+_+`.validate;`}else{if(C=e.useCustomRule(g,o,e.schema,e),!C)return;h=`validate.schema`+s,w=C.code,b=v.compile,x=v.inline,S=v.macro}var E=w+`.errors`,D=`i`+i,O=`ruleErr`+i,k=v.async;if(k&&!e.async)throw Error(`async keyword in sync schema`);if(x||S||(r+=``+E+` = null;`),r+=`var `+p+` = errors;var `+f+`;`,m&&v.$data&&(y+=`}`,r+=` if (`+h+` === undefined) { `+f+` = true; } else { `,T&&(y+=`}`,r+=` `+f+` = `+_+`.validateSchema(`+h+`); if (`+f+`) { `)),x)v.statements?r+=` `+C.validate+` `:r+=` `+f+` = `+C.validate+`; `;else if(S){var A=e.util.copy(e),y=``;A.level++;var j=`valid`+A.level;A.schema=C.validate,A.schemaPath=``;var M=e.compositeRule;e.compositeRule=A.compositeRule=!0;var N=e.validate(A).replace(/validate\.schema/g,w);e.compositeRule=A.compositeRule=M,r+=` `+N}else{var P=P||[];P.push(r),r=``,r+=` `+w+`.call( `,e.opts.passContext?r+=`this`:r+=`self`,b||v.schema===!1?r+=` , `+d+` `:r+=` , `+h+` , `+d+` , validate.schema`+e.schemaPath+` `,r+=` , (dataPath || '')`,e.errorPath!=`""`&&(r+=` + `+e.errorPath);var F=a?`data`+(a-1||``):`parentData`,I=a?e.dataPathArr[a]:`parentDataProperty`;r+=` , `+F+` , `+I+` , rootData ) `;var L=r;r=P.pop(),v.errors===!1?(r+=` `+f+` = `,k&&(r+=`await `),r+=``+L+`; `):k?(E=`customErrors`+i,r+=` var `+E+` = null; try { `+f+` = await `+L+`; } catch (e) { `+f+` = false; if (e instanceof ValidationError) `+E+` = e.errors; else throw e; } `):r+=` `+E+` = null; `+f+` = `+L+`; `}if(v.modifying&&(r+=` if (`+F+`) `+d+` = `+F+`[`+I+`];`),r+=``+y,v.valid)l&&(r+=` if (true) { `);else{r+=` if ( `,v.valid===void 0?(r+=` !`,S?r+=``+j:r+=``+f):r+=` `+!v.valid+` `,r+=`) { `,u=g.keyword;var P=P||[];P.push(r),r=``;var P=P||[];P.push(r),r=``,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `);var R=r;r=P.pop(),!e.compositeRule&&l?e.async?r+=` throw new ValidationError([`+R+`]); `:r+=` validate.errors = [`+R+`]; return false; `:r+=` var err = `+R+`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `;var z=r;r=P.pop(),x?v.errors?v.errors!=`full`&&(r+=` for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } `):v.errors===!1?r+=` `+z+` `:(r+=` if (`+p+` == errors) { `+z+` } else { for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; if (`+O+`.schemaPath === undefined) { `+O+`.schemaPath = "`+c+`"; } `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } `):S?(r+=` var err = `,e.createErrors===!1?r+=` {} `:(r+=` { keyword: '`+(u||`custom`)+`' , dataPath: (dataPath || '') + `+e.errorPath+` , schemaPath: `+e.util.toQuotedString(c)+` , params: { keyword: '`+g.keyword+`' } `,e.opts.messages!==!1&&(r+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(r+=` , schema: validate.schema`+s+` , parentSchema: validate.schema`+e.schemaPath+` , data: `+d+` `),r+=` } `),r+=`; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; `,!e.compositeRule&&l&&(e.async?r+=` throw new ValidationError(vErrors); `:r+=` validate.errors = vErrors; return false; `)):v.errors===!1?r+=` `+z+` `:(r+=` if (Array.isArray(`+E+`)) { if (vErrors === null) vErrors = `+E+`; else vErrors = vErrors.concat(`+E+`); errors = vErrors.length; for (var `+D+`=`+p+`; `+D+`<errors; `+D+`++) { var `+O+` = vErrors[`+D+`]; if (`+O+`.dataPath === undefined) `+O+`.dataPath = (dataPath || '') + `+e.errorPath+`; `+O+`.schemaPath = "`+c+`"; `,e.opts.verbose&&(r+=` `+O+`.schema = `+h+`; `+O+`.data = `+d+`; `),r+=` } } else { `+z+` } `),r+=` } `,l&&(r+=` else { `)}return r}})),ws=n(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}})),Ts=n(((e,t)=>{var n=ws();t.exports={$id:`https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js`,definitions:{simpleTypes:n.definitions.simpleTypes},type:`object`,dependencies:{schema:[`validate`],$data:[`validate`],statements:[`inline`],valid:{not:{required:[`macro`]}}},properties:{type:n.properties.type,schema:{type:`boolean`},statements:{type:`boolean`},dependencies:{type:`array`,items:{type:`string`}},metaSchema:{type:`object`},modifying:{type:`boolean`},valid:{type:`boolean`},$data:{type:`boolean`},async:{type:`boolean`},errors:{anyOf:[{type:`boolean`},{const:`full`}]}}}})),Es=n(((e,t)=>{var n=/^[a-z_$][a-z0-9_$-]*$/i,r=Cs(),i=Ts();t.exports={add:a,get:o,remove:s,validate:c};function a(e,t){var i=this.RULES;if(i.keywords[e])throw Error(`Keyword `+e+` is already defined`);if(!n.test(e))throw Error(`Keyword `+e+` is not a valid identifier`);if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var o=0;o<a.length;o++)c(e,a[o],t);else c(e,a,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`}]}),t.validateSchema=this.compile(s,!0))}i.keywords[e]=i.all[e]=!0;function c(e,t,n){for(var a,o=0;o<i.length;o++){var s=i[o];if(s.type==t){a=s;break}}a||(a={type:t,rules:[]},i.push(a));var c={keyword:e,definition:n,custom:!0,code:r,implements:n.implements};a.rules.push(c),i.custom[e]=c}return this}function o(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1}function s(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var n=0;n<t.length;n++)for(var r=t[n].rules,i=0;i<r.length;i++)if(r[i].keyword==e){r.splice(i,1);break}return this}function c(e,t){c.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(e))return!0;if(c.errors=n.errors,t)throw Error(`custom keyword definition is invalid: `+this.errorsText(n.errors));return!1}})),Ds=n(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON Schema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}})),Os=n(((e,t)=>{var n=qo(),r=Uo(),i=Jo(),a=Vo(),o=Go(),s=Yo(),c=bs(),l=xs(),u=Bo();t.exports=g,g.prototype.validate=_,g.prototype.compile=v,g.prototype.addSchema=y,g.prototype.addMetaSchema=b,g.prototype.validateSchema=x,g.prototype.getSchema=C,g.prototype.removeSchema=E,g.prototype.addFormat=F,g.prototype.errorsText=P,g.prototype._addSchema=O,g.prototype._compile=k,g.prototype.compileAsync=Ss();var d=Es();g.prototype.addKeyword=d.add,g.prototype.getKeyword=d.get,g.prototype.removeKeyword=d.remove,g.prototype.validateKeyword=d.validate;var f=Wo();g.ValidationError=f.Validation,g.MissingRefError=f.MissingRef,g.$dataMetaSchema=l;var p=`http://json-schema.org/draft-07/schema`,m=[`removeAdditional`,`useDefaults`,`coerceTypes`,`strictDefaults`],h=[`/properties`];function g(e){if(!(this instanceof g))return new g(e);e=this._opts=u.copy(e)||{},te(this),this._schemas={},this._refs={},this._fragments={},this._formats=s(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=c(),this._getId=A(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath==`property`&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=o),this._metaOpts=B(this),e.formats&&R(this),e.keywords&&z(this),I(this),typeof e.meta==`object`&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword(`nullable`,{metaSchema:{type:`boolean`}}),L(this)}function _(e,t){var n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "`+e+`"`)}else{var r=this._addSchema(e);n=r.validate||this._compile(r)}var i=n(t);return n.$async!==!0&&(this.errors=n.errors),i}function v(e,t){var n=this._addSchema(e,void 0,t);return n.validate||this._compile(n)}function y(e,t,n,i){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,n,i);return this}var o=this._getId(e);if(o!==void 0&&typeof o!=`string`)throw Error(`schema id must be string`);return t=r.normalizeId(t||o),ee(this,t),this._schemas[t]=this._addSchema(e,n,i,!0),this}function b(e,t,n){return this.addSchema(e,t,n,!0),this}function x(e,t){var n=e.$schema;if(n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this._opts.defaultMeta||S(this),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i=`schema is invalid: `+this.errorsText();if(this._opts.validateSchema==`log`)this.logger.error(i);else throw Error(i)}return r}function S(e){var t=e._opts.meta;return e._opts.defaultMeta=typeof t==`object`?e._getId(t)||t:e.getSchema(p)?p:void 0,e._opts.defaultMeta}function C(e){var t=T(this,e);switch(typeof t){case`object`:return t.validate||this._compile(t);case`string`:return this.getSchema(t);case`undefined`:return w(this,e)}}function w(e,t){var i=r.schema.call(e,{schema:{}},t);if(i){var o=i.schema,s=i.root,c=i.baseId,l=n.call(e,o,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:o,root:s,baseId:c,validate:l}),l}}function T(e,t){return t=r.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function E(e){if(e instanceof RegExp)return D(this,this._schemas,e),D(this,this._refs,e),this;switch(typeof e){case`undefined`:return D(this,this._schemas),D(this,this._refs),this._cache.clear(),this;case`string`:var t=T(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case`object`:var n=this._opts.serialize,i=n?n(e):e;this._cache.del(i);var a=this._getId(e);a&&(a=r.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function D(e,t,n){for(var r in t){var i=t[r];!i.meta&&(!n||n.test(r))&&(e._cache.del(i.cacheKey),delete t[r])}}function O(e,t,n,i){if(typeof e!=`object`&&typeof e!=`boolean`)throw Error(`schema should be object or boolean`);var o=this._opts.serialize,s=o?o(e):e,c=this._cache.get(s);if(c)return c;i||=this._opts.addUsedSchema!==!1;var l=r.normalizeId(this._getId(e));l&&i&&ee(this,l);var u=this._opts.validateSchema!==!1&&!t,d;u&&!(d=l&&l==r.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=new a({id:l,schema:e,localRefs:r.ids.call(this,e),cacheKey:s,meta:n});return l[0]!=`#`&&i&&(this._refs[l]=f),this._cache.put(s,f),u&&d&&this.validateSchema(e,!0),f}function k(e,t){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=t||a,e.schema.$async===!0&&(a.$async=!0),a;e.compiling=!0;var r;e.meta&&(r=this._opts,this._opts=this._metaOpts);var i;try{i=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=i,e.refs=i.refs,e.refVal=i.refVal,e.root=i.root,i;function a(){var t=e.validate,n=t.apply(this,arguments);return a.errors=t.errors,n}}function A(e){switch(e.schemaId){case`auto`:return N;case`id`:return j;default:return M}}function j(e){return e.$id&&this.logger.warn(`schema $id ignored`,e.$id),e.id}function M(e){return e.id&&this.logger.warn(`schema id ignored`,e.id),e.$id}function N(e){if(e.$id&&e.id&&e.$id!=e.id)throw Error(`schema $id is different from id`);return e.$id||e.id}function P(e,t){if(e||=this.errors,!e)return`No errors`;t||={};for(var n=t.separator===void 0?`, `:t.separator,r=t.dataVar===void 0?`data`:t.dataVar,i=``,a=0;a<e.length;a++){var o=e[a];o&&(i+=r+o.dataPath+` `+o.message+n)}return i.slice(0,-n.length)}function F(e,t){return typeof t==`string`&&(t=new RegExp(t)),this._formats[e]=t,this}function I(e){var t;if(e._opts.$data&&(t=Ds(),e.addMetaSchema(t,t.$id,!0)),e._opts.meta!==!1){var n=ws();e._opts.$data&&(n=l(n,h)),e.addMetaSchema(n,p,!0),e._refs[`http://json-schema.org/schema`]=p}}function L(e){var t=e._opts.schemas;if(t)if(Array.isArray(t))e.addSchema(t);else for(var n in t)e.addSchema(t[n],n)}function R(e){for(var t in e._opts.formats){var n=e._opts.formats[t];e.addFormat(t,n)}}function z(e){for(var t in e._opts.keywords){var n=e._opts.keywords[t];e.addKeyword(t,n)}}function ee(e,t){if(e._schemas[t]||e._refs[t])throw Error(`schema with key or id "`+t+`" already exists`)}function B(e){for(var t=u.copy(e._opts),n=0;n<m.length;n++)delete t[m[n]];return t}function te(e){var t=e._opts.logger;if(t===!1)e.logger={log:V,warn:V,error:V};else{if(t===void 0&&(t=console),!(typeof t==`object`&&t.log&&t.warn&&t.error))throw Error(`logger must implement log, warn and error methods`);e.logger=t}}function V(){}})),ks=n(((e,t)=>{t.exports={id:`http://json-schema.org/draft-04/schema#`,$schema:`http://json-schema.org/draft-04/schema#`,description:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},positiveInteger:{type:`integer`,minimum:0},positiveIntegerDefault0:{allOf:[{$ref:`#/definitions/positiveInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},minItems:1,uniqueItems:!0}},type:`object`,properties:{id:{type:`string`},$schema:{type:`string`},title:{type:`string`},description:{type:`string`},default:{},multipleOf:{type:`number`,minimum:0,exclusiveMinimum:!0},maximum:{type:`number`},exclusiveMaximum:{type:`boolean`,default:!1},minimum:{type:`number`},exclusiveMinimum:{type:`boolean`,default:!1},maxLength:{$ref:`#/definitions/positiveInteger`},minLength:{$ref:`#/definitions/positiveIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:{}},maxItems:{$ref:`#/definitions/positiveInteger`},minItems:{$ref:`#/definitions/positiveIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},maxProperties:{$ref:`#/definitions/positiveInteger`},minProperties:{$ref:`#/definitions/positiveIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{anyOf:[{type:`boolean`},{$ref:`#`}],default:{}},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},enum:{type:`array`,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},dependencies:{exclusiveMaximum:[`maximum`],exclusiveMinimum:[`minimum`]},default:{}}})),As=n(((e,t)=>{let n=Os(),r=ks();t.exports=(e={})=>{let t=new n({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:`ignore`,verbose:!0,schemaId:`auto`,...e});return t.addMetaSchema(r),t._opts.defaultMeta=r.id,t}})),js=n(((e,t)=>{t.exports={rules:{"generator-star":[`generator-star-spacing`],"global-strict":[`strict`],"no-arrow-condition":[`no-confusing-arrow`,`no-constant-condition`],"no-comma-dangle":[`comma-dangle`],"no-empty-class":[`no-empty-character-class`],"no-empty-label":[`no-labels`],"no-extra-strict":[`strict`],"no-reserved-keys":[`quote-props`],"no-space-before-semi":[`semi-spacing`],"no-wrap-func":[`no-extra-parens`],"space-after-function-name":[`space-before-function-paren`],"space-after-keywords":[`keyword-spacing`],"space-before-function-parentheses":[`space-before-function-paren`],"space-before-keywords":[`keyword-spacing`],"space-in-brackets":[`object-curly-spacing`,`array-bracket-spacing`,`computed-property-spacing`],"space-return-throw-case":[`keyword-spacing`],"space-unary-word-ops":[`space-unary-ops`],"spaced-line-comment":[`spaced-comment`]}}})),Ms=n(((e,t)=>{let{deepMergeArrays:n}=Ao(),{flatConfigSchema:r,hasMethod:i}=Mo(),{ObjectSchema:a}=Io(),o=As()(),s=js(),c=Object.freeze({type:`array`,minItems:0,maxItems:0}),l=new Map([[0,0],[1,1],[2,2],[`off`,0],[`warn`,1],[`error`,2]]),u=new WeakMap;function d({pluginName:e,ruleName:t},n){let r=e===`@`?t:`${e}/${t}`,i=`Key "rules": Key "${r}"`,a=`${i}: Could not find plugin "${e}" in configuration.`,o=a;if(n.plugins&&n.plugins[e]){let r=s.rules[t];if(e===`@`&&r)a=`${i}: Rule "${t}" was removed and replaced by "${r}".`;else{a=`${i}: Could not find "${t}" in plugin "${e}".`;for(let[e,r]of Object.entries(n.plugins))if(r.rules&&r.rules[t]){a+=` Did you mean "${e}/${t}"?`;break}}}let c=TypeError(a);throw a===o&&(c.messageTemplate=`config-plugin-missing`,c.messageData={pluginName:e,ruleId:r}),c}var f=class extends Error{constructor(e,t){super(`Error while processing options validation schema of rule '${e}': ${t.message}`,{cause:t}),this.code=`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`}};function p(e){let t,n;return e.includes(`/`)?(t=e.startsWith(`@`)?e.slice(0,e.lastIndexOf(`/`)):e.slice(0,e.indexOf(`/`)),n=e.slice(t.length+1)):(t=`@`,n=e),{pluginName:t,ruleName:n}}function m(e,t){let{pluginName:n,ruleName:r}=p(e);return t.plugins?.[n]?.rules?.[r]}function h(e){if(!e.meta)return{...c};let t=e.meta.schema;if(t===void 0)return{...c};if(t===!1)return null;if(typeof t!=`object`||!t)throw TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(t)?t.length?{type:`array`,items:t,minItems:0,maxItems:t.length}:{...c}:t}function g(e){let t=e.split(`/`);return{objectName:t.pop(),pluginName:t.join(`/`)}}function _(e){let t=e.name;if(!t&&(!e.meta||(t=e.meta.name,!t)))return null;let n=e.version;return n||=e.meta&&e.meta.version,n?`${t}@${n}`:t}function v(e,t,n){if(typeof e==`function`){let e=TypeError(`Cannot serialize key "${t}" in "${n}": Function values are not supported.`);throw e.messageTemplate=`config-serialize-function`,e.messageData={key:t,objectKey:n},e}}function y(e,t=`languageOptions`){if(typeof e.toJSON==`function`){let n=e.toJSON();return v(n,`toJSON`,t),n}let n={};for(let[r,a]of Object.entries(e)){if(a){if(typeof a==`object`){let e=_(a);typeof a.toJSON==`function`?(n[r]=a.toJSON(),v(n[r],r,t)):e&&i(a)?n[r]=e:n[r]=y(a,r);continue}v(a,r,t)}n[r]=a}return n}function b(e,t){if(!u.has(e))try{let t=h(e);t&&u.set(e,o.compile(t))}catch(e){throw new f(t,e)}return u.get(e)}t.exports={Config:class{#e;#t;constructor(e){let{plugins:t,language:n,languageOptions:i,processor:o,...s}=e;if(new a(r).validate(e),Object.assign(this,s),!n)throw TypeError(`Key 'language' is required.`);this.plugins=t,this.language=n;let{pluginName:c,objectName:l}=g(n);if(this.#e=n,!t||!t[c]||!t[c].languages||!t[c].languages[l])throw TypeError(`Key "language": Could not find "${l}" in plugin "${c}".`);this.language=t[c].languages[l],this.language.defaultLanguageOptions??i?this.languageOptions=r.languageOptions.merge(this.language.defaultLanguageOptions,i):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(e){throw TypeError(`Key "languageOptions": ${e.message}`,{cause:e})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),o)if(this.processor=o,typeof o==`string`){let{pluginName:e,objectName:n}=g(o);if(this.#t=o,!t||!t[e]||!t[e].processors||!t[e].processors[n])throw TypeError(`Key "processor": Could not find "${n}" in plugin "${e}".`);this.processor=t[e].processors[n]}else if(typeof o==`object`)this.#t=_(o),this.processor=o;else throw TypeError(`Key 'processor' must be a string or an object.`);this.rules&&(this.#n(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw Error(`Could not serialize processor object (missing 'meta' object).`);if(!this.#e)throw Error(`Could not serialize language object (missing 'meta' object).`);return{...this,plugins:Object.entries(this.plugins).map(([e,t])=>{let n=_(t);return n?`${e}:${n}`:e}),language:this.#e,languageOptions:y(this.languageOptions),processor:this.#t}}getRuleDefinition(e){return m(e,this)}#n(){for(let[e,t]of Object.entries(this.rules)){let r=Array.isArray(t)?t:[t];r[0]=l.get(r[0]);let i=m(e,this),a=r.slice(1),o=n(i?.meta?.defaultOptions,a);o.length&&(r=[r[0],...o]),this.rules[e]=r}}validateRulesConfig(e){if(!e)throw TypeError(`Config is required for validation.`);for(let[t,n]of Object.entries(e)){if(t===`__proto__`||n[0]===0)continue;let e=m(t,this);e||d(p(t),this);let r=b(e,t);if(r&&(r(n.slice(1)),r.errors))throw Error(`Key "rules": Key "${t}":\n${r.errors.map(e=>{if(e.keyword===`additionalProperties`&&e.schema===!1&&typeof e.parentSchema?.properties==`object`&&typeof e.params?.additionalProperty==`string`){let t=Object.keys(e.parentSchema.properties).map(e=>`"${e}"`);return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n\t\tUnexpected property "${e.params.additionalProperty}". Expected properties: ${t.join(`, `)}.\n`}return`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`}).join(``)}`)}}static getRuleOptionsSchema(e){return h(e)}static getRuleNumericSeverity(e){let t=Array.isArray(e)?e[0]:e;return l.has(t)?l.get(t):typeof t==`string`?l.get(t.toLowerCase())??0:0}}}})),Ns=n(((e,t)=>{let n=O(),{Config:r}=Ms();function i(e,t){return e.line-t.line||e.column-t.column}function a(e){let t=new Map;for(let n of e){let{unprocessedDirective:{parentDirective:e}}=n;t.has(e)?t.get(e).push(n):t.set(e,[n])}return[...t.values()]}function o(e,t,r){let i=t.value.trim(),a=r.text.indexOf(i,r.getRange(t.node)[0]);return e.map(e=>{let{ruleId:t}=e,r=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${n(t)}\k<quote>(?:\s*,\s*|$)`,`u`).exec(i),o=r[0],s=a+r.index,c=s+o.length,l=o.indexOf(`,`),u=o.lastIndexOf(`,`),d,f;return l===u?(d=s,f=c):(d=s+l,f=s+u),{description:`'${t}'`,fix:{range:[d,f],text:``},unprocessedDirective:e.unprocessedDirective}})}function s(e,t,n){let r=n.getRange(t),i=e.filter(e=>e.ruleId).map(e=>`'${e.ruleId}'`);return{description:i.length<=2?i.join(` or `):`${i.slice(0,i.length-1).join(`, `)}, or ${i.at(-1)}`,fix:{range:r,text:` `},unprocessedDirective:e[0].unprocessedDirective}}function c(e,t){return a(e).flatMap(e=>{let{parentDirective:n}=e[0].unprocessedDirective,r=new Set(n.ruleIds);for(let t of e)r.delete(t.ruleId);return r.size?o(e,n,t):[s(e,n.node,t)]})}function l(e){let t=new Map,n=new Set;for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type===`disable`){if(t.size===0)continue;if(i.ruleId===null){for(let e of t.values())n.add(e);t.clear()}else{let e=t.get(i.ruleId);if(e)n.add(e);else{let e=t.get(null);e&&n.add(e)}}}else i.type===`enable`&&(i.ruleId===null?(t.clear(),t.set(null,i)):t.set(i.ruleId,i))}return n}function u(e){let t=[],n=new Set,{sourceCode:r}=e;for(let r of e.problems){let a=[],o=0;for(;o<e.directives.length&&i(e.directives[o],r)<=0;){let t=e.directives[o++];if(t.ruleId===null||t.ruleId===r.ruleId)switch(t.type){case`disable`:a.push(t);break;case`enable`:a=[];break}}if(a.length>0){let e=a.map(e=>({kind:`directive`,justification:e.unprocessedDirective.justification}));r.suppressions?r.suppressions=r.suppressions.concat(e):(r.suppressions=e,n.add(a.at(-1)))}t.push(r)}let a=e.directives.filter(t=>t.type===`disable`&&!n.has(t)&&!e.rulesToIgnore.has(t.ruleId)),o=new Set(e.directives.filter(t=>t.unprocessedDirective.type===`enable`&&!e.rulesToIgnore.has(t.ruleId)));if(o.size>0)for(let t of l(e.directives))o.delete(t);let s=c(a,r).concat(c(o,r)),u=e.language.columnStart===1?0:1,d=e.language.lineStart===1?0:1;return{problems:t,unusedDirectives:s.map(({description:t,fix:n,unprocessedDirective:i})=>{let{parentDirective:a,type:o,line:s,column:c}=i,l;l=o===`enable`?t?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${t}).`:`Unused eslint-enable directive (no matching eslint-disable directives were found).`:t?`Unused eslint-disable directive (no problems were reported from ${t}).`:`Unused eslint-disable directive (no problems were reported).`;let f=r.getLoc(a.node);return{ruleId:null,message:l,line:o===`disable-next-line`?f.start.line+d:s,column:o===`disable-next-line`?f.start.column+u:c,severity:e.reportUnusedDisableDirectives===`warn`?1:2,...e.disableFixes?{}:{fix:n}}})}}t.exports=({language:e,sourceCode:t,directives:n,disableFixes:a,problems:o,configuredRules:s,ruleFilter:c,reportUnusedDisableDirectives:l=`off`})=>{let d=n.filter(e=>e.type===`disable`||e.type===`enable`).map(e=>Object.assign({},e,{unprocessedDirective:e})).sort(i),f=n.flatMap(e=>{switch(e.type){case`disable`:case`enable`:return[];case`disable-line`:return[{type:`disable`,line:e.line,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+1,column:0,ruleId:e.ruleId,unprocessedDirective:e}];case`disable-next-line`:return[{type:`disable`,line:e.line+1,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:`enable`,line:e.line+2,column:0,ruleId:e.ruleId,unprocessedDirective:e}];default:throw TypeError(`Unrecognized directive type '${e.type}'`)}}).sort(i),p=s&&c?new Set(Object.keys(s).filter(e=>{let t=r.getRuleNumericSeverity(s[e]);return t===0?!1:!c({severity:t,ruleId:e})})):new Set;p.size>0&&p.add(null);let m=u({language:e,sourceCode:t,problems:o,directives:d,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p}),h=u({language:e,sourceCode:t,problems:m.problems,directives:f,disableFixes:a,reportUnusedDisableDirectives:l,rulesToIgnore:p});return l===`off`?h.problems:h.problems.concat(m.unusedDirectives).concat(h.unusedDirectives).sort(i)}})),Ps=n(((e,t)=>{let n=d()(`eslint:source-code-fixer`);function r(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function i(e,t){return e.line-t.line||e.column-t.column}function a(){Object.freeze(this)}a.applyFixes=function(e,t,a){if(n(`Applying fixes`),a===!1)return n(`shouldFix parameter was false, not attempting fixes`),{fixed:!1,messages:t,output:e};let o=[],s=[],c=e.startsWith(``)?``:``,l=c?e.slice(1):e,u=-1/0,d=c;function f(e){let t=e.fix,n=t.range[0],r=t.range[1];return u>=n||n>r?(o.push(e),!1):((n<0&&r>=0||n===0&&t.text.startsWith(``))&&(d=``),d+=l.slice(Math.max(0,u),Math.max(0,n)),d+=t.text,u=r,!0)}if(t.forEach(e=>{Object.hasOwn(e,`fix`)&&e.fix?s.push(e):o.push(e)}),s.length){n(`Found fixes to apply`);let e=!1;for(let t of s.sort(r))typeof a!=`function`||a(t)?(f(t),e=!0):o.push(t);return d+=l.slice(Math.max(0,u)),{fixed:e,messages:o.sort(i),output:d}}return n(`No fixes to apply`),{fixed:!1,messages:t,output:c+l}},t.exports=a})),Fs=n(((e,t)=>{let n=Object.freeze([]);t.exports={SourceCodeVisitor:class{#e=new Map;add(e,t){this.#e.has(e)?this.#e.get(e).push(t):this.#e.set(e,[t])}get(e){return this.#e.has(e)?this.#e.get(e):n}forEachName(e){this.#e.forEach((t,n)=>{e(n)})}callSync(e,...t){this.#e.has(e)&&this.#e.get(e).forEach(e=>e(...t))}}}})),Is=n((e=>{let{ConfigArray:t,ConfigArraySymbol:n}=Io(),{flatConfigSchema:r}=Mo(),{defaultConfig:i}=co(),{Config:a}=Ms(),o=new Set([`name`,`basePath`]);function s(e,t,n){let r=`user-defined`,i=e.index;return e.index<n?r=`base`:e.index<t+n?(r=`original`,i=e.index-n):i=e.index-t-n,TypeError(`${e.message.slice(0,-1)} at ${r} index ${i}.`,{cause:e})}let c=Symbol(`originalBaseConfig`),l=Symbol(`originalLength`),u=Symbol(`baseLength`);e.FlatConfigArray=class extends t{constructor(e,{basePath:t,shouldIgnore:n=!0,baseConfig:a=i}={}){super(e,{basePath:t,schema:r}),this[l]=this.length,a[Symbol.iterator]?this.unshift(...a):this.unshift(a),this[u]=this.length-this[l],this[c]=a,Object.defineProperty(this,c,{writable:!1}),this.shouldIgnore=n,Object.defineProperty(this,`shouldIgnore`,{writable:!1})}normalize(e){return super.normalize(e).catch(e=>{throw e.name===`ConfigError`?s(e,this[l],this[u]):e})}normalizeSync(e){try{return super.normalizeSync(e)}catch(e){throw e.name===`ConfigError`?s(e,this[l],this[u]):e}}[n.preprocessConfig](e){if(!this.shouldIgnore&&!this[c].includes(e)&&e.ignores&&Object.keys(e).filter(e=>!o.has(e)).length===1){let{ignores:t,...n}=e;return n}return e}[n.finalizeConfig](e){return new a(e)}}})),Ls=n(((e,t)=>{let n=new Map([[`test_only`,`Used only for testing.`],[`test_only_2`,`Used only for testing.`],[`unstable_native_nodejs_ts_config`,`Use native Node.js to load TypeScript configuration.`]]),r=new Map([[`test_only_replaced`,{description:`Used only for testing flags that have been replaced by other flags.`,replacedBy:`test_only`}],[`test_only_enabled_by_default`,{description:`Used only for testing flags whose features have been enabled by default.`,replacedBy:null}],[`test_only_abandoned`,{description:`Used only for testing flags whose features have been abandoned.`}]]);function i({replacedBy:e}){return e===void 0?`This feature has been abandoned.`:typeof e==`string`?`This flag has been renamed '${e}' to reflect its stabilization. Please use '${e}' instead.`:`This feature is now enabled by default.`}t.exports={activeFlags:n,inactiveFlags:r,getInactivityReasonMessage:i}})),Rs=n(((e,t)=>{function n(e){return typeof e==`string`?e.charCodeAt(0)===65279:e[0]===239&&e[1]===187&&e[2]===191}function r(e){return n(e)?typeof e==`string`?e.slice(1):e.slice(3):e}t.exports={VFile:class{path;physicalPath;body;rawBody;bom;constructor(e,t,{physicalPath:i}={}){this.path=e,this.physicalPath=i??e,this.bom=n(t),this.body=r(t),this.rawBody=t}}}})),zs=n(((e,t)=>{t.exports={ParserService:class{parseSync(e,t){let{language:n,languageOptions:r}=t,i=n.parse(e,{languageOptions:r});if(typeof i.then==`function`)throw Error(`Unsupported: Language parser returned a promise.`);return i.ok?{ok:!0,sourceCode:n.createSourceCode(e,i,{languageOptions:r})}:{ok:!1,errors:i.errors.map(e=>({ruleId:null,fatal:!0,severity:2,message:`Parsing error: ${e.message}`,line:e.line,column:e.column}))}}}}})),Bs=n((e=>{e.FileContext=class{cwd;filename;physicalFilename;sourceCode;languageOptions;settings;constructor({cwd:e,filename:t,physicalFilename:n,sourceCode:r,languageOptions:i,settings:a}){this.cwd=e,this.filename=t,this.physicalFilename=n,this.sourceCode=r,this.languageOptions=i,this.settings=a,Object.freeze(this)}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}}})),Vs=n(((e,n)=>{let r=t(`node:path`),{VFile:i}=Rs();n.exports={ProcessorService:class{preprocessSync(e,t){let{processor:n}=t,a;try{a=n.preprocess(e.rawBody,e.path)}catch(e){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${e.message.replace(/^line \d+:/iu,``).trim()}`,line:e.lineNumber,column:e.column}]}}if(typeof a.then==`function`)throw Error(`Unsupported: Preprocessor returned a promise.`);return{ok:!0,files:a.map((t,n)=>typeof t==`string`?t:new i(r.join(e.path,`${n}_${t.filename}`),t.text,{physicalPath:e.physicalPath}))}}postprocessSync(e,t,n){let{processor:r}=n;return r.postprocess(t,e.path)}}}})),Hs=n(((e,t)=>{function n(e,t){if(e===t)return!1;if(typeof e!=typeof t||Array.isArray(e)!==Array.isArray(t))return!0;if(Array.isArray(e))return e.length!==t.length||e.some((e,r)=>n(e,t[r]));if(typeof e==`object`){if(e===null||t===null)return!0;let r=Object.keys(e),i=Object.keys(t);return r.length!==i.length||r.some(r=>!Object.hasOwn(t,r)||n(e[r],t[r]))}return!0}t.exports={containsDifferentProperty:n}})),Us=n(((e,t)=>{t.exports={WarningService:class{constructor({emitWarning:e=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=e}emitCircularFixesWarning(e){this.emitWarning(`Circular fixes detected while fixing ${e}. It is likely that you have conflicting rules in your configuration.`,`ESLintCircularFixesWarning`)}emitEmptyConfigWarning(e){this.emitWarning(`Running ESLint with an empty config (from ${e}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,`ESLintEmptyConfigWarning`)}emitESLintIgnoreWarning(){this.emitWarning(`The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignore-files`,`ESLintIgnoreWarning`)}emitInactiveFlagWarning(e,t){this.emitWarning(t,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,`ESLintPoorConcurrencyWarning`)}}}})),Ws=n(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).esquery=r()})(e,(function(){function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||i(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
252
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function n(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}(t)||i(t)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
253
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r(e){return(r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e})(e)}function i(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function a(e,t){return e(t={exports:{}},t.exports),t.exports}var o=a((function(e,t){(function e(t){var n,r,i,a,o,s;function c(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]=typeof n==`object`&&n?c(n):n);return r}function l(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 d(){}function f(e){return typeof e==`object`&&!!e&&typeof e.type==`string`}function p(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}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 d().traverse(e,t)}function g(e,t){var n;return n=function(e,t){var n,r,i,a;for(r=e.length,i=0;r;)t(e[a=i+(n=r>>>1)])?r=n:(i=a+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>=0&&(e.extendedRange[0]=t[n].range[1]),e}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:a={},Skip:o={},Remove:s={}},l.prototype.replace=function(e){this.parent[this.key]=e},l.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},d.prototype.path=function(){var e,t,n,r,i;function a(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(i=[],e=2,t=this.__leavelist.length;e<t;++e)a(i,this.__leavelist[e].path);return a(i,this.__current.path),i},d.prototype.type=function(){return this.current().type||this.__current.wrap},d.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},d.prototype.current=function(){return this.__current.node},d.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},d.prototype.notify=function(e){this.__state=e},d.prototype.skip=function(){this.notify(o)},d.prototype.break=function(){this.notify(a)},d.prototype.remove=function(){this.notify(s)},d.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},d.prototype.traverse=function(e,t){var n,r,i,s,c,l,d,h,g,_,v,y;for(this.__initialize(e,t),y={},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())!==y){if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(c=(s=i.node).type||i.wrap,!(_=this.__keys[c])){if(!this.__fallback)throw Error(`Unknown node type `+c+`.`);_=this.__fallback(s)}for(h=_.length;--h>=0;)if(v=s[d=_[h]]){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!m(r,v[g])){if(p(c,_[h]))i=new u(v[g],[d,g],`Property`,null);else{if(!f(v[g]))continue;i=new u(v[g],[d,g],null,null)}n.push(i)}}else if(f(v)){if(m(r,v))continue;n.push(new u(v,d,null,null))}}}}else if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return},d.prototype.replace=function(e,t){var n,r,i,c,d,m,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,m=new u(e,null,null,new l(b={root:e},`root`)),n.push(m),r.push(m);n.length;)if((m=n.pop())!==y){if((d=this.__execute(t.enter,m))!==void 0&&d!==a&&d!==o&&d!==s&&(m.ref.replace(d),m.node=d),this.__state!==s&&d!==s||(S(m),m.node=null),this.__state===a||d===a)return b.root;if((i=m.node)&&(n.push(y),r.push(m),this.__state!==o&&d!==o)){if(c=i.type||m.wrap,!(_=this.__keys[c])){if(!this.__fallback)throw Error(`Unknown node type `+c+`.`);_=this.__fallback(i)}for(h=_.length;--h>=0;)if(v=i[x=_[h]])if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(p(c,_[h]))m=new u(v[g],[x,g],`Property`,new l(v,g));else{if(!f(v[g]))continue;m=new u(v[g],[x,g],null,new l(v,g))}n.push(m)}}else f(v)&&n.push(new u(v,x,null,new l(i,x)))}}else if(m=r.pop(),(d=this.__execute(t.leave,m))!==void 0&&d!==a&&d!==o&&d!==s&&m.ref.replace(d),this.__state!==s&&d!==s||S(m),this.__state===a||d===a)return b.root;return b.root},t.Syntax=n,t.traverse=h,t.replace=function(e,t){return new d().replace(e,t)},t.attachComments=function(e,t,n){var i,a,o,s,l=[];if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(o=0,a=t.length;o<a;o+=1)(i=c(t[o])).extendedRange=[0,e.range[0]],l.push(i);e.leadingComments=l}return e}for(o=0,a=t.length;o<a;o+=1)l.push(g(c(t[o]),n));return s=0,h(e,{enter:function(e){for(var t;s<l.length&&!((t=l[s]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?r.Break:l[s].extendedRange[0]>e.range[1]?r.Skip:void 0}}),s=0,h(e,{leave:function(e){for(var t;s<l.length&&(t=l[s],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),l.splice(s,1)):s+=1;return s===l.length?r.Break:l[s].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=d,t.cloneEnvironment=function(){return e({})},t})(t)})),s=a((function(e){e.exports&&=function(){function e(t,n,r,i){this.message=t,this.expected=n,this.found=r,this.location=i,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e)}return function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(e,Error),e.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t,n=``;for(t=0;t<e.parts.length;t++)n+=e.parts[t]instanceof Array?a(e.parts[t][0])+`-`+a(e.parts[t][1]):a(e.parts[t]);return`[`+(e.inverted?`^`:``)+n+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,(function(e){return`\\x0`+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return`\\x`+r(e)}))}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,(function(e){return`\\x0`+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return`\\x`+r(e)}))}return`Expected `+function(e){var t,r,i,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=(i=e[t],n[i.type](i));if(a.sort(),a.length>0){for(t=1,r=1;t<a.length;t++)a[t-1]!==a[t]&&(a[r]=a[t],r++);a.length=r}switch(a.length){case 1:return a[0];case 2:return a[0]+` or `+a[1];default:return a.slice(0,-1).join(`, `)+`, or `+a[a.length-1]}}(e)+` but `+function(e){return e?`"`+i(e)+`"`:`end of input`}(t)+` found.`},{SyntaxError:e,parse:function(t,n){n=n===void 0?{}:n;var r,i,a,o,s={},c={start:Ce},l=Ce,u=Y(` `,!1),d=/^[^ [\],():#!=><~+.]/,f=be([` `,`[`,`]`,`,`,`(`,`)`,`:`,`#`,`!`,`=`,`>`,`<`,`~`,`+`,`.`],!0,!1),p=Y(`>`,!1),m=Y(`~`,!1),h=Y(`+`,!1),g=Y(`,`,!1),_=function(e,t){return[e].concat(t.map((function(e){return e[3]})))},v=Y(`!`,!1),y=Y(`*`,!1),b=Y(`#`,!1),x=Y(`[`,!1),S=Y(`]`,!1),C=/^[><!]/,w=be([`>`,`<`,`!`],!1,!1),T=Y(`=`,!1),E=function(e){return(e||``)+`=`},D=/^[><]/,O=be([`>`,`<`],!1,!1),k=Y(`.`,!1),A=function(e,t,n){return{type:`attribute`,name:e,operator:t,value:n}},j=Y(`"`,!1),M=/^[^\\"]/,N=be([`\\`,`"`],!0,!1),P=Y(`\\`,!1),F={type:`any`},I=function(e,t){return e+t},L=function(e){return{type:`literal`,value:(t=e.join(``),t.replace(/\\(.)/g,(function(e,t){switch(t){case`b`:return`\b`;case`f`:return`\f`;case`n`:return`
254
+ `;case`r`:return`\r`;case`t`:return` `;case`v`:return`\v`;default:return t}})))};var t},R=Y(`'`,!1),z=/^[^\\']/,ee=be([`\\`,`'`],!0,!1),B=/^[0-9]/,te=be([[`0`,`9`]],!1,!1),V=Y(`type(`,!1),H=/^[^ )]/,U=be([` `,`)`],!0,!1),W=Y(`)`,!1),ne=/^[imsu]/,re=be([`i`,`m`,`s`,`u`],!1,!1),G=Y(`/`,!1),ie=/^[^\]\\]/,ae=be([`]`,`\\`],!0,!1),oe=/^[^\/\\[]/,se=be([`/`,`\\`,`[`],!0,!1),ce=Y(`:not(`,!1),le=Y(`:matches(`,!1),ue=function(e){return{type:`matches`,selectors:e}},de=Y(`:is(`,!1),fe=Y(`:has(`,!1),pe=Y(`:first-child`,!1),me=Y(`:last-child`,!1),he=Y(`:nth-child(`,!1),ge=Y(`:nth-last-child(`,!1),_e=Y(`:`,!1),K=0,ve=[{line:1,column:1}],ye=0,q=[],J={};if(`startRule`in n){if(!(n.startRule in c))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);l=c[n.startRule]}function Y(e,t){return{type:`literal`,text:e,ignoreCase:t}}function be(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function xe(e){var n,r=ve[e];if(r)return r;for(n=e-1;!ve[n];)n--;for(r={line:(r=ve[n]).line,column:r.column};n<e;)t.charCodeAt(n)===10?(r.line++,r.column=1):r.column++,n++;return ve[e]=r,r}function Se(e,t){var n=xe(e),r=xe(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function X(e){K<ye||(K>ye&&(ye=K,q=[]),q.push(e))}function Ce(){var e,t,n,r,i=36*K+0,a=J[i];return a?(K=a.nextPos,a.result):(e=K,(t=Z())!==s&&(n=Ee())!==s&&Z()!==s?e=t=(r=n).length===1?r[0]:{type:`matches`,selectors:r}:(K=e,e=s),e===s&&(e=K,(t=Z())!==s&&(t=void 0),e=t),J[i]={nextPos:K,result:e},e)}function Z(){var e,n,r=36*K+1,i=J[r];if(i)return K=i.nextPos,i.result;for(e=[],t.charCodeAt(K)===32?(n=` `,K++):(n=s,X(u));n!==s;)e.push(n),t.charCodeAt(K)===32?(n=` `,K++):(n=s,X(u));return J[r]={nextPos:K,result:e},e}function we(){var e,n,r,i=36*K+2,a=J[i];if(a)return K=a.nextPos,a.result;if(n=[],d.test(t.charAt(K))?(r=t.charAt(K),K++):(r=s,X(f)),r!==s)for(;r!==s;)n.push(r),d.test(t.charAt(K))?(r=t.charAt(K),K++):(r=s,X(f));else n=s;return n!==s&&(n=n.join(``)),e=n,J[i]={nextPos:K,result:e},e}function Te(){var e,n,r,i=36*K+3,a=J[i];return a?(K=a.nextPos,a.result):(e=K,(n=Z())===s?(K=e,e=s):(t.charCodeAt(K)===62?(r=`>`,K++):(r=s,X(p)),r!==s&&Z()!==s?e=n=`child`:(K=e,e=s)),e===s&&(e=K,(n=Z())===s?(K=e,e=s):(t.charCodeAt(K)===126?(r=`~`,K++):(r=s,X(m)),r!==s&&Z()!==s?e=n=`sibling`:(K=e,e=s)),e===s&&(e=K,(n=Z())===s?(K=e,e=s):(t.charCodeAt(K)===43?(r=`+`,K++):(r=s,X(h)),r!==s&&Z()!==s?e=n=`adjacent`:(K=e,e=s)),e===s&&(e=K,t.charCodeAt(K)===32?(n=` `,K++):(n=s,X(u)),n!==s&&(r=Z())!==s?e=n=`descendant`:(K=e,e=s)))),J[i]={nextPos:K,result:e},e)}function Ee(){var e,n,r,i,a,o,c,l,u=36*K+5,d=J[u];if(d)return K=d.nextPos,d.result;if(e=K,(n=Q())!==s){for(r=[],i=K,(a=Z())===s?(K=i,i=s):(t.charCodeAt(K)===44?(o=`,`,K++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Q())!==s?i=a=[a,o,c,l]:(K=i,i=s));i!==s;)r.push(i),i=K,(a=Z())===s?(K=i,i=s):(t.charCodeAt(K)===44?(o=`,`,K++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=Q())!==s?i=a=[a,o,c,l]:(K=i,i=s));r===s?(K=e,e=s):e=n=_(n,r)}else K=e,e=s;return J[u]={nextPos:K,result:e},e}function De(){var e,t,n,r,i,a=36*K+6,o=J[a];return o?(K=o.nextPos,o.result):(e=K,(t=Te())===s&&(t=null),t!==s&&(n=Q())!==s?(i=n,e=t=(r=t)?{type:r,left:{type:`exactNode`},right:i}:i):(K=e,e=s),J[a]={nextPos:K,result:e},e)}function Q(){var e,t,n,r,i,a,o,c=36*K+7,l=J[c];if(l)return K=l.nextPos,l.result;if(e=K,(t=Oe())!==s){for(n=[],r=K,(i=Te())!==s&&(a=Oe())!==s?r=i=[i,a]:(K=r,r=s);r!==s;)n.push(r),r=K,(i=Te())!==s&&(a=Oe())!==s?r=i=[i,a]:(K=r,r=s);n===s?(K=e,e=s):(o=t,e=t=n.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o))}else K=e,e=s;return J[c]={nextPos:K,result:e},e}function Oe(){var e,n,r,i,a,o,c,l=36*K+8,u=J[l];if(u)return K=u.nextPos,u.result;if(e=K,t.charCodeAt(K)===33?(n=`!`,K++):(n=s,X(v)),n===s&&(n=null),n!==s){if(r=[],(i=ke())!==s)for(;i!==s;)r.push(i),i=ke();else r=s;r===s?(K=e,e=s):(a=n,c=(o=r).length===1?o[0]:{type:`compound`,selectors:o},a&&(c.subject=!0),e=n=c)}else K=e,e=s;return J[l]={nextPos:K,result:e},e}function ke(){var e,n=36*K+9,r=J[n];return r?(K=r.nextPos,r.result):((e=function(){var e,n,r=36*K+10,i=J[r];return i?(K=i.nextPos,i.result):(t.charCodeAt(K)===42?(n=`*`,K++):(n=s,X(y)),n!==s&&(n={type:`wildcard`,value:n}),e=n,J[r]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i=36*K+11,a=J[i];return a?(K=a.nextPos,a.result):(e=K,t.charCodeAt(K)===35?(n=`#`,K++):(n=s,X(b)),n===s&&(n=null),n!==s&&(r=we())!==s?e=n={type:`identifier`,value:r}:(K=e,e=s),J[i]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*K+12,o=J[a];return o?(K=o.nextPos,o.result):(e=K,t.charCodeAt(K)===91?(n=`[`,K++):(n=s,X(x)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a=36*K+16,o=J[a];return o?(K=o.nextPos,o.result):(e=K,(n=Ae())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*K+14,a=J[i];return a?(K=a.nextPos,a.result):(e=K,t.charCodeAt(K)===33?(n=`!`,K++):(n=s,X(v)),n===s&&(n=null),n===s?(K=e,e=s):(t.charCodeAt(K)===61?(r=`=`,K++):(r=s,X(T)),r===s?(K=e,e=s):(n=E(n),e=n)),J[i]={nextPos:K,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o=36*K+20,c=J[o];if(c)return K=c.nextPos,c.result;if(e=K,t.substr(K,5)===`type(`?(n=`type(`,K+=5):(n=s,X(V)),n!==s)if(Z()!==s){if(r=[],H.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(U)),i!==s)for(;i!==s;)r.push(i),H.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(U));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(K)===41?(a=`)`,K++):(a=s,X(W)),a===s?(K=e,e=s):(n={type:`type`,value:r.join(``)},e=n)):(K=e,e=s)}else K=e,e=s;else K=e,e=s;return J[o]={nextPos:K,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c=36*K+22,l=J[c];if(l)return K=l.nextPos,l.result;if(e=K,t.charCodeAt(K)===47?(n=`/`,K++):(n=s,X(G)),n!==s){if(r=[],(i=je())===s&&(i=Me())===s&&(i=Ne()),i!==s)for(;i!==s;)r.push(i),(i=je())===s&&(i=Me())===s&&(i=Ne());else r=s;r===s?(K=e,e=s):(t.charCodeAt(K)===47?(i=`/`,K++):(i=s,X(G)),i===s?(K=e,e=s):((a=function(){var e,n,r=36*K+21,i=J[r];if(i)return K=i.nextPos,i.result;if(e=[],ne.test(t.charAt(K))?(n=t.charAt(K),K++):(n=s,X(re)),n!==s)for(;n!==s;)e.push(n),ne.test(t.charAt(K))?(n=t.charAt(K),K++):(n=s,X(re));else e=s;return J[r]={nextPos:K,result:e},e}())===s&&(a=null),a===s?(K=e,e=s):(o=a,n={type:`regexp`,value:new RegExp(r.join(``),o?o.join(``):``)},e=n)))}else K=e,e=s;return J[c]={nextPos:K,result:e},e}()),i===s?(K=e,e=s):(n=A(n,r,i),e=n)):(K=e,e=s),e===s&&(e=K,(n=Ae())!==s&&Z()!==s&&(r=function(){var e,n,r,i=36*K+13,a=J[i];return a?(K=a.nextPos,a.result):(e=K,C.test(t.charAt(K))?(n=t.charAt(K),K++):(n=s,X(w)),n===s&&(n=null),n===s?(K=e,e=s):(t.charCodeAt(K)===61?(r=`=`,K++):(r=s,X(T)),r===s?(K=e,e=s):(n=E(n),e=n)),e===s&&(D.test(t.charAt(K))?(e=t.charAt(K),K++):(e=s,X(O))),J[i]={nextPos:K,result:e},e)}())!==s&&Z()!==s?((i=function(){var e,n,r,i,a,o,c=36*K+17,l=J[c];if(l)return K=l.nextPos,l.result;if(e=K,t.charCodeAt(K)===34?(n=`"`,K++):(n=s,X(j)),n!==s){for(r=[],M.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(N)),i===s&&(i=K,t.charCodeAt(K)===92?(a=`\\`,K++):(a=s,X(P)),a===s?(K=i,i=s):(t.length>K?(o=t.charAt(K),K++):(o=s,X(F)),o===s?(K=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),M.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(N)),i===s&&(i=K,t.charCodeAt(K)===92?(a=`\\`,K++):(a=s,X(P)),a===s?(K=i,i=s):(t.length>K?(o=t.charAt(K),K++):(o=s,X(F)),o===s?(K=i,i=s):(a=I(a,o),i=a)));r===s?(K=e,e=s):(t.charCodeAt(K)===34?(i=`"`,K++):(i=s,X(j)),i===s?(K=e,e=s):(n=L(r),e=n))}else K=e,e=s;if(e===s)if(e=K,t.charCodeAt(K)===39?(n=`'`,K++):(n=s,X(R)),n!==s){for(r=[],z.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(ee)),i===s&&(i=K,t.charCodeAt(K)===92?(a=`\\`,K++):(a=s,X(P)),a===s?(K=i,i=s):(t.length>K?(o=t.charAt(K),K++):(o=s,X(F)),o===s?(K=i,i=s):(a=I(a,o),i=a)));i!==s;)r.push(i),z.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(ee)),i===s&&(i=K,t.charCodeAt(K)===92?(a=`\\`,K++):(a=s,X(P)),a===s?(K=i,i=s):(t.length>K?(o=t.charAt(K),K++):(o=s,X(F)),o===s?(K=i,i=s):(a=I(a,o),i=a)));r===s?(K=e,e=s):(t.charCodeAt(K)===39?(i=`'`,K++):(i=s,X(R)),i===s?(K=e,e=s):(n=L(r),e=n))}else K=e,e=s;return J[c]={nextPos:K,result:e},e}())===s&&(i=function(){var e,n,r,i,a,o,c,l=36*K+18,u=J[l];if(u)return K=u.nextPos,u.result;for(e=K,n=K,r=[],B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te));i!==s;)r.push(i),B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te));if(r===s?(K=n,n=s):(t.charCodeAt(K)===46?(i=`.`,K++):(i=s,X(k)),i===s?(K=n,n=s):n=r=[r,i]),n===s&&(n=null),n!==s){if(r=[],B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te)),i!==s)for(;i!==s;)r.push(i),B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te));else r=s;r===s?(K=e,e=s):(o=r,c=(a=n)?[].concat.apply([],a).join(``):``,n={type:`literal`,value:parseFloat(c+o.join(``))},e=n)}else K=e,e=s;return J[l]={nextPos:K,result:e},e}())===s&&(i=function(){var e,t,n=36*K+19,r=J[n];return r?(K=r.nextPos,r.result):((t=we())!==s&&(t={type:`literal`,value:t}),e=t,J[n]={nextPos:K,result:e},e)}()),i===s?(K=e,e=s):(n=A(n,r,i),e=n)):(K=e,e=s),e===s&&(e=K,(n=Ae())!==s&&(n={type:`attribute`,name:n}),e=n)),J[a]={nextPos:K,result:e},e)}())!==s&&Z()!==s?(t.charCodeAt(K)===93?(i=`]`,K++):(i=s,X(S)),i===s?(K=e,e=s):e=n=r):(K=e,e=s),J[a]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o,c,l,u=36*K+26,d=J[u];if(d)return K=d.nextPos,d.result;if(e=K,t.charCodeAt(K)===46?(n=`.`,K++):(n=s,X(k)),n!==s)if((r=we())!==s){for(i=[],a=K,t.charCodeAt(K)===46?(o=`.`,K++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(K=a,a=s);a!==s;)i.push(a),a=K,t.charCodeAt(K)===46?(o=`.`,K++):(o=s,X(k)),o!==s&&(c=we())!==s?a=o=[o,c]:(K=a,a=s);i===s?(K=e,e=s):(l=r,n={type:`field`,name:i.reduce((function(e,t){return e+t[0]+t[1]}),l)},e=n)}else K=e,e=s;else K=e,e=s;return J[u]={nextPos:K,result:e},e}())===s&&(e=function(){var e,n,r,i,a=36*K+27,o=J[a];return o?(K=o.nextPos,o.result):(e=K,t.substr(K,5)===`:not(`?(n=`:not(`,K+=5):(n=s,X(ce)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(K)===41?(i=`)`,K++):(i=s,X(W)),i===s?(K=e,e=s):e=n={type:`not`,selectors:r}):(K=e,e=s),J[a]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*K+28,o=J[a];return o?(K=o.nextPos,o.result):(e=K,t.substr(K,9)===`:matches(`?(n=`:matches(`,K+=9):(n=s,X(le)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(K)===41?(i=`)`,K++):(i=s,X(W)),i===s?(K=e,e=s):(n=ue(r),e=n)):(K=e,e=s),J[a]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*K+29,o=J[a];return o?(K=o.nextPos,o.result):(e=K,t.substr(K,4)===`:is(`?(n=`:is(`,K+=4):(n=s,X(de)),n!==s&&Z()!==s&&(r=Ee())!==s&&Z()!==s?(t.charCodeAt(K)===41?(i=`)`,K++):(i=s,X(W)),i===s?(K=e,e=s):(n=ue(r),e=n)):(K=e,e=s),J[a]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a=36*K+30,o=J[a];return o?(K=o.nextPos,o.result):(e=K,t.substr(K,5)===`:has(`?(n=`:has(`,K+=5):(n=s,X(fe)),n!==s&&Z()!==s&&(r=function(){var e,n,r,i,a,o,c,l,u=36*K+4,d=J[u];if(d)return K=d.nextPos,d.result;if(e=K,(n=De())!==s){for(r=[],i=K,(a=Z())===s?(K=i,i=s):(t.charCodeAt(K)===44?(o=`,`,K++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(K=i,i=s));i!==s;)r.push(i),i=K,(a=Z())===s?(K=i,i=s):(t.charCodeAt(K)===44?(o=`,`,K++):(o=s,X(g)),o!==s&&(c=Z())!==s&&(l=De())!==s?i=a=[a,o,c,l]:(K=i,i=s));r===s?(K=e,e=s):e=n=_(n,r)}else K=e,e=s;return J[u]={nextPos:K,result:e},e}())!==s&&Z()!==s?(t.charCodeAt(K)===41?(i=`)`,K++):(i=s,X(W)),i===s?(K=e,e=s):e=n={type:`has`,selectors:r}):(K=e,e=s),J[a]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r=36*K+31,i=J[r];return i?(K=i.nextPos,i.result):(t.substr(K,12)===`:first-child`?(n=`:first-child`,K+=12):(n=s,X(pe)),n!==s&&(n=Pe(1)),e=n,J[r]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r=36*K+32,i=J[r];return i?(K=i.nextPos,i.result):(t.substr(K,11)===`:last-child`?(n=`:last-child`,K+=11):(n=s,X(me)),n!==s&&(n=Fe(1)),e=n,J[r]={nextPos:K,result:e},e)}())===s&&(e=function(){var e,n,r,i,a,o=36*K+33,c=J[o];if(c)return K=c.nextPos,c.result;if(e=K,t.substr(K,11)===`:nth-child(`?(n=`:nth-child(`,K+=11):(n=s,X(he)),n!==s)if(Z()!==s){if(r=[],B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te)),i!==s)for(;i!==s;)r.push(i),B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(K)===41?(a=`)`,K++):(a=s,X(W)),a===s?(K=e,e=s):(n=Pe(parseInt(r.join(``),10)),e=n)):(K=e,e=s)}else K=e,e=s;else K=e,e=s;return J[o]={nextPos:K,result:e},e}())===s&&(e=function(){var e,n,r,i,a,o=36*K+34,c=J[o];if(c)return K=c.nextPos,c.result;if(e=K,t.substr(K,16)===`:nth-last-child(`?(n=`:nth-last-child(`,K+=16):(n=s,X(ge)),n!==s)if(Z()!==s){if(r=[],B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te)),i!==s)for(;i!==s;)r.push(i),B.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(te));else r=s;r!==s&&(i=Z())!==s?(t.charCodeAt(K)===41?(a=`)`,K++):(a=s,X(W)),a===s?(K=e,e=s):(n=Fe(parseInt(r.join(``),10)),e=n)):(K=e,e=s)}else K=e,e=s;else K=e,e=s;return J[o]={nextPos:K,result:e},e}())===s&&(e=function(){var e,n,r,i=36*K+35,a=J[i];return a?(K=a.nextPos,a.result):(e=K,t.charCodeAt(K)===58?(n=`:`,K++):(n=s,X(_e)),n!==s&&(r=we())!==s?e=n={type:`class`,name:r}:(K=e,e=s),J[i]={nextPos:K,result:e},e)}()),J[n]={nextPos:K,result:e},e)}function Ae(){var e,n,r,i,a,o,c,l,u=36*K+15,d=J[u];if(d)return K=d.nextPos,d.result;if(e=K,(n=we())!==s){for(r=[],i=K,t.charCodeAt(K)===46?(a=`.`,K++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(K=i,i=s);i!==s;)r.push(i),i=K,t.charCodeAt(K)===46?(a=`.`,K++):(a=s,X(k)),a!==s&&(o=we())!==s?i=a=[a,o]:(K=i,i=s);r===s?(K=e,e=s):(c=n,l=r,e=n=[].concat.apply([c],l).join(``))}else K=e,e=s;return J[u]={nextPos:K,result:e},e}function je(){var e,n,r,i,a=36*K+23,o=J[a];if(o)return K=o.nextPos,o.result;if(e=K,t.charCodeAt(K)===91?(n=`[`,K++):(n=s,X(x)),n!==s){if(r=[],ie.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(ae)),i===s&&(i=Me()),i!==s)for(;i!==s;)r.push(i),ie.test(t.charAt(K))?(i=t.charAt(K),K++):(i=s,X(ae)),i===s&&(i=Me());else r=s;r===s?(K=e,e=s):(t.charCodeAt(K)===93?(i=`]`,K++):(i=s,X(S)),i===s?(K=e,e=s):e=n=`[`+r.join(``)+`]`)}else K=e,e=s;return J[a]={nextPos:K,result:e},e}function Me(){var e,n,r,i=36*K+24,a=J[i];return a?(K=a.nextPos,a.result):(e=K,t.charCodeAt(K)===92?(n=`\\`,K++):(n=s,X(P)),n===s?(K=e,e=s):(t.length>K?(r=t.charAt(K),K++):(r=s,X(F)),r===s?(K=e,e=s):e=n=`\\`+r),J[i]={nextPos:K,result:e},e)}function Ne(){var e,n,r,i=36*K+25,a=J[i];if(a)return K=a.nextPos,a.result;if(n=[],oe.test(t.charAt(K))?(r=t.charAt(K),K++):(r=s,X(se)),r!==s)for(;r!==s;)n.push(r),oe.test(t.charAt(K))?(r=t.charAt(K),K++):(r=s,X(se));else n=s;return n!==s&&(n=n.join(``)),e=n,J[i]={nextPos:K,result:e},e}function Pe(e){return{type:`nth-child`,index:{type:`literal`,value:e}}}function Fe(e){return{type:`nth-last-child`,index:{type:`literal`,value:e}}}if((r=l())!==s&&K===t.length)return r;throw r!==s&&K<t.length&&X({type:`end`}),i=q,a=ye<t.length?t.charAt(ye):null,o=ye<t.length?Se(ye,ye+1):Se(ye,ye),new e(e.buildMessage(i,a),i,a,o)}}}()}));function c(e,t){for(var n=0;n<t.length;++n){if(e==null)return e;e=e[t[n]]}return e}var l=typeof WeakMap==`function`?new WeakMap:null;function u(e){if(e==null)return function(){return!0};if(l!=null){var t=l.get(e);return t??(t=d(e),l.set(e,t)),t}return d(e)}function d(e){switch(e.type){case`wildcard`:return function(){return!0};case`identifier`:var t=e.value.toLowerCase();return function(e,n,r){return t===e[r&&r.nodeTypeKey||`type`].toLowerCase()};case`exactNode`:return function(e,t){return t.length===0};case`field`:var n=e.name.split(`.`);return function(e,t){return function e(t,n,r,i){for(var a=n,o=i;o<r.length;++o){if(a==null)return!1;var s=a[r[o]];if(Array.isArray(s)){for(var c=0;c<s.length;++c)if(e(t,s[c],r,o+1))return!0;return!1}a=s}return t===a}(e,t[n.length-1],n,0)};case`matches`:var i=e.selectors.map(u);return function(e,t,n){for(var r=0;r<i.length;++r)if(i[r](e,t,n))return!0;return!1};case`compound`:var a=e.selectors.map(u);return function(e,t,n){for(var r=0;r<a.length;++r)if(!a[r](e,t,n))return!1;return!0};case`not`:var s=e.selectors.map(u);return function(e,t,n){for(var r=0;r<s.length;++r)if(s[r](e,t,n))return!1;return!0};case`has`:var l=e.selectors.map(u);return function(e,t,n){var r=!1,i=[];return o.traverse(e,{enter:function(e,t){t!=null&&i.unshift(t);for(var a=0;a<l.length;++a)if(l[a](e,i,n))return r=!0,void this.break()},leave:function(){i.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||`iteration`}),r};case`child`:var d=u(e.left),f=u(e.right);return function(e,t,n){return!!(t.length>0&&f(e,t,n))&&d(t[0],t.slice(1),n)};case`descendant`:var p=u(e.left),_=u(e.right);return function(e,t,n){if(_(e,t,n)){for(var r=0,i=t.length;r<i;++r)if(p(t[r],t.slice(r+1),n))return!0}return!1};case`attribute`:var v=e.name.split(`.`);switch(e.operator){case void 0:return function(e){return c(e,v)!=null};case`=`:switch(e.value.type){case`regexp`:return function(t){var n=c(t,v);return typeof n==`string`&&e.value.value.test(n)};case`literal`:var y=`${e.value.value}`;return function(e){return y===`${c(e,v)}`};case`type`:return function(t){return e.value.value===r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`!=`:switch(e.value.type){case`regexp`:return function(t){return!e.value.value.test(c(t,v))};case`literal`:var b=`${e.value.value}`;return function(e){return b!==`${c(e,v)}`};case`type`:return function(t){return e.value.value!==r(c(t,v))}}throw Error(`Unknown selector value type: ${e.value.type}`);case`<=`:return function(t){return c(t,v)<=e.value.value};case`<`:return function(t){return c(t,v)<e.value.value};case`>`:return function(t){return c(t,v)>e.value.value};case`>=`:return function(t){return c(t,v)>=e.value.value}}throw Error(`Unknown operator: ${e.operator}`);case`sibling`:var x=u(e.left),S=u(e.right);return function(t,n,r){return S(t,n,r)&&m(t,x,n,`LEFT_SIDE`,r)||e.left.subject&&x(t,n,r)&&m(t,S,n,`RIGHT_SIDE`,r)};case`adjacent`:var C=u(e.left),w=u(e.right);return function(t,n,r){return w(t,n,r)&&h(t,C,n,`LEFT_SIDE`,r)||e.right.subject&&C(t,n,r)&&h(t,w,n,`RIGHT_SIDE`,r)};case`nth-child`:var T=e.index.value,E=u(e.right);return function(e,t,n){return E(e,t,n)&&g(e,t,T,n)};case`nth-last-child`:var D=-e.index.value,O=u(e.right);return function(e,t,n){return O(e,t,n)&&g(e,t,D,n)};case`class`:var k=e.name.toLowerCase();return function(t,n,r){if(r&&r.matchClass)return r.matchClass(e.name,t,n);if(r&&r.nodeTypeKey)return!1;switch(k){case`statement`:if(t.type.slice(-9)===`Statement`)return!0;case`declaration`:return t.type.slice(-11)===`Declaration`;case`pattern`:if(t.type.slice(-7)===`Pattern`)return!0;case`expression`:return t.type.slice(-10)===`Expression`||t.type.slice(-7)===`Literal`||t.type===`Identifier`&&(n.length===0||n[0].type!==`MetaProperty`)||t.type===`MetaProperty`;case`function`:return t.type===`FunctionDeclaration`||t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`}throw Error(`Unknown class name: ${e.name}`)}}throw Error(`Unknown selector type: ${e.type}`)}function f(e,t){var n=t&&t.nodeTypeKey||`type`,r=e[n];return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:o.VisitorKeys[r]?o.VisitorKeys[r]:t&&typeof t.fallback==`function`?t.fallback(e):Object.keys(e).filter((function(e){return e!==n}))}function p(e,t){var n=t&&t.nodeTypeKey||`type`;return e!==null&&r(e)===`object`&&typeof e[n]==`string`}function m(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;var d=void 0,m=void 0;i===`LEFT_SIDE`?(d=0,m=u):(d=u+1,m=l.length);for(var h=d;h<m;++h)if(p(l[h],a)&&n(l[h],r,a))return!0}}return!1}function h(e,n,r,i,a){var o=t(r,1)[0];if(!o)return!1;for(var s=f(o,a),c=0;c<s.length;++c){var l=o[s[c]];if(Array.isArray(l)){var u=l.indexOf(e);if(u<0)continue;if(i===`LEFT_SIDE`&&u>0&&p(l[u-1],a)&&n(l[u-1],r,a)||i===`RIGHT_SIDE`&&u<l.length-1&&p(l[u+1],a)&&n(l[u+1],r,a))return!0}}return!1}function g(e,n,r,i){if(r===0)return!1;var a=t(n,1)[0];if(!a)return!1;for(var o=f(a,i),s=0;s<o.length;++s){var c=a[o[s]];if(Array.isArray(c)){var l=r<0?c.length+r:r-1;if(l>=0&&l<c.length&&c[l]===e)return!0}}return!1}function _(e,t,i,a){if(t){var s=[],c=u(t),l=function e(t,i){if(t==null||r(t)!=`object`)return[];i??=t;for(var a=t.subject?[i]:[],o=Object.keys(t),s=0;s<o.length;++s){var c=o[s],l=t[c];a.push.apply(a,n(e(l,c===`left`?l:i)))}return a}(t).map(u);o.traverse(e,{enter:function(e,t){if(t!=null&&s.unshift(t),c(e,s,a))if(l.length)for(var n=0,r=l.length;n<r;++n){l[n](e,s,a)&&i(e,t,s);for(var o=0,u=s.length;o<u;++o){var d=s.slice(o+1);l[n](s[o],d,a)&&i(s[o],t,d)}}else i(e,t,s)},leave:function(){s.shift()},keys:a&&a.visitorKeys,fallback:a&&a.fallback||`iteration`})}}function v(e,t,n){var r=[];return _(e,t,(function(e){r.push(e)}),n),r}function y(e){return s.parse(e)}function b(e,t,n){return v(e,y(t),n)}return b.parse=y,b.match=v,b.traverse=_,b.matches=function(e,t,n,r){return!t||!!e&&(n||=[],u(t)(e,n,r))},b.query=b,b}))})),Gs=n(((e,t)=>{let n=Ws();var r=class{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(e,t,n,r,i,a){this.source=e,this.isExit=t,this.root=n,this.nodeTypes=r,this.attributeCount=i,this.identifierCount=a}compare(e){return this.attributeCount-e.attributeCount||this.identifierCount-e.identifierCount||(this.source<=e.source?-1:1)}};let i=new Map;function a(...e){return[...new Set(e.flat())]}function o(...e){if(e.length===0)return[];let t=[...new Set(e[0])];for(let n of e.slice(1))t=t.filter(e=>n.includes(e));return t}function s(e){let t=0,n=0;function r(e){switch(e.type){case`identifier`:return n++,[e.value];case`not`:return e.selectors.map(r),null;case`matches`:{let t=e.selectors.map(r);return t.every(Boolean)?a(...t):null}case`compound`:{let t=e.selectors.map(r).filter(e=>e);return t.length?o(...t):null}case`attribute`:case`field`:case`nth-child`:case`nth-last-child`:return t++,null;case`child`:case`descendant`:case`sibling`:case`adjacent`:return r(e.left),r(e.right);case`class`:return e.name===`function`?[`FunctionDeclaration`,`FunctionExpression`,`ArrowFunctionExpression`]:null;default:return null}}return{nodeTypes:r(e),attributeCount:t,identifierCount:n}}function c(e){return e===`*`?{type:`wildcard`,value:`*`}:/^[a-z]+$/iu.test(e)?{type:`identifier`,value:e}:null}function l(e){try{return n.parse(e)}catch(t){throw t.location&&t.location.start&&typeof t.location.start.offset==`number`?SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`,{cause:t}):t}}function u(e){if(i.has(e))return i.get(e);let t=e.replace(/:exit$/u,``),n=c(t)??l(t),{nodeTypes:a,attributeCount:o,identifierCount:u}=s(n),d=new r(e,e.endsWith(`:exit`),n,a,o,u);return i.set(e,d),d}function d(e,t,r,i){return n.matches(e,t,r,i)}t.exports={parse:u,matches:d,ESQueryParsedSelector:r}})),Ks=n(((e,t)=>{let{parse:n,matches:r}=Gs(),i=y();function a(e,t){return e.compare(t)}var o=class{constructor(e,t){this.visitor=e,this.esqueryOptions=t,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.forEachName(e=>{let t=n(e);if(t.nodeTypes){let e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;t.nodeTypes.forEach(n=>{e.has(n)||e.set(n,[]),e.get(n).push(t)});return}(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(e=>e.sort(a)),this.exitSelectorsByNodeType.forEach(e=>e.sort(a))}matches(e,t,n){return r(e,n.root,t,this.esqueryOptions)}calculateSelectors(e,t,n){let r=this.esqueryOptions?.nodeTypeKey||`type`,i=[],a=(n?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e[r])||[],o=n?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,s=0,c=0;for(;s<a.length||c<o.length;){let n=s<a.length,r=c<o.length,l=o[c],u=a[s],d=r&&n&&l.compare(u)<0;!n||d?(c++,this.matches(e,t,l)&&i.push(l.source)):(s++,this.matches(e,t,u)&&i.push(u.source))}return i}};t.exports={SourceCodeTraverser:class{#e;static instances=new WeakMap;constructor(e){this.#e=e}static getInstance(e){return this.instances.has(e)||this.instances.set(e,new this(e)),this.instances.get(e)}traverseSync(e,t,{steps:n}={}){let r=new o(t,{visitorKeys:e.visitorKeys??this.#e.visitorKeys,fallback:i.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),a=[];for(let i of n??e.traverse())switch(i.kind){case 1:try{i.phase===1?(r.calculateSelectors(i.target,a,!1).forEach(e=>{t.callSync(e,...i.args??[i.target])}),a.unshift(i.target)):(a.shift(),r.calculateSelectors(i.target,a,!0).forEach(e=>{t.callSync(e,...i.args??[i.target])}))}catch(e){throw e.currentNode=i.target,e}break;case 2:t.callSync(i.target,...i.args);break;default:throw Error(`Invalid traversal step found: "${i.kind}".`)}}}}})),qs=n(((e,t)=>{function n(e,t){return{range:[e,e],text:t}}function r(e){if(typeof e!=`string`)throw TypeError(`'text' must be a string`)}t.exports={RuleFixer:class{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,t){r(t);let n=this.#e.getRange(e);return this.insertTextAfterRange(n,t)}insertTextAfterRange(e,t){return r(t),n(e[1],t)}insertTextBefore(e,t){r(t);let n=this.#e.getRange(e);return this.insertTextBeforeRange(n,t)}insertTextBeforeRange(e,t){return r(t),n(e[0],t)}replaceText(e,t){r(t);let n=this.#e.getRange(e);return this.replaceTextRange(n,t)}replaceTextRange(e,t){return r(t),{range:e,text:t}}remove(e){let t=this.#e.getRange(e);return this.removeRange(t)}removeRange(e){return{range:e,text:``}}}}})),Js=n(((e,t)=>{function n(){return/\{\{([^{}]+)\}\}/gu}function r(e,t){if(!t)return e;let r=n();return e.replace(r,(e,n)=>{let r=n.trim();return r in t?t[r]:e})}t.exports={getPlaceholderMatcher:n,interpolate:r}})),Ys=n(((e,t)=>{let n=ba(),{RuleFixer:r}=qs(),{interpolate:i}=Js(),a=js(),o={start:{line:1,column:0},end:{line:1,column:1}};function s({line:e,column:t,endLine:n,endColumn:r},i){let a=i.columnStart===1?0:1,o=i.lineStart===1?0:1,s=n===void 0?n:n+o,c=r===void 0?r:r+a;return{line:e+o,column:t+a,endLine:s,endColumn:c}}function c(e){return Object.hasOwn(a.rules,e)?`Rule '${e}' was removed and replaced by: ${a.rules[e].join(`, `)}`:`Definition for rule '${e}' was not found.`}function l(e,t,n){let{ruleId:r=null,loc:i=o,message:a=c(e.ruleId)}=e;return{ruleId:r,message:a,...s({line:i.start.line,column:i.start.column,endLine:i.end.line,endColumn:i.end.column},n),severity:t}}function u(...e){return e.length===1?Object.assign({},e[0]):typeof e[1]==`string`?{node:e[0],message:e[1],data:e[2],fix:e[3]}:{node:e[0],loc:e[1],message:e[2],data:e[3],fix:e[4]}}function d(e){e.node?n(typeof e.node==`object`,`Node must be an object`):n(e.loc,`Node must be provided when reporting error if location is not provided`)}function f(e){return e.loc.start?e.loc:{start:e.loc,end:null}}function p(e){return e?{range:[e.range[0],e.range[1]],text:e.text}:null}function m(e){e&&n(e.range&&typeof e.range[0]==`number`&&typeof e.range[1]==`number`,`Fix has invalid range: ${JSON.stringify(e,null,2)}`)}function h(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function g(e,t){for(let t of e)m(t);if(e.length===0)return null;if(e.length===1)return p(e[0]);e.sort(h);let r=t.text,i=e[0].range[0],a=e.at(-1).range[1],o=``,s=-(2**53-1);for(let t of e)n(t.range[0]>=s,`Fix objects must not be overlapped in a report.`),t.range[0]>=0&&(o+=r.slice(Math.max(0,i,s),t.range[0])),o+=t.text,s=t.range[1];return o+=r.slice(Math.max(0,i,s),a),{range:[i,a],text:o}}function _(e,t){if(typeof e.fix!=`function`)return null;let n=new r({sourceCode:t}),i=e.fix(n);return i&&Symbol.iterator in i?g(Array.from(i),t):(m(i),p(i))}function v(e,t,n){return!e.suggest||!Array.isArray(e.suggest)?[]:e.suggest.map(e=>{let r=e.desc||n[e.messageId];return{...e,desc:i(r,e.data),fix:_(e,t)}}).filter(({fix:e})=>e)}function y(e){let{language:t}=e,n=t.columnStart===1?0:1,r=t.lineStart===1?0:1,i={ruleId:e.ruleId,severity:e.severity,message:e.message,line:e.loc.start.line+r,column:e.loc.start.column+n};return e.messageId&&(i.messageId=e.messageId),e.loc.end&&(i.endLine=e.loc.end.line+r,i.endColumn=e.loc.end.column+n),e.fix&&(i.fix=e.fix),e.suggestions&&e.suggestions.length>0&&(i.suggestions=e.suggestions),i}function b(e,t){e&&Array.isArray(e)&&e.forEach(e=>{if(e.messageId){let{messageId:n}=e;if(!t)throw TypeError(`context.report() called with a suggest option with a messageId '${n}', but no messages were present in the rule metadata.`);if(!t[n])throw TypeError(`context.report() called with a suggest option with a messageId '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);if(e.desc)throw TypeError(`context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.`)}else if(!e.desc)throw TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof e.fix!=`function`)throw TypeError(`context.report() called with a suggest option without a fix function. See: ${JSON.stringify(e,null,2)}`)})}function x(e,t){if(e.messageId){if(!t)throw TypeError(`context.report() called with a messageId, but no messages were present in the rule metadata.`);let n=e.messageId;if(e.message)throw TypeError(`context.report() called with a message and a messageId. Please only pass one.`);if(!t||!Object.hasOwn(t,n))throw TypeError(`context.report() called with a messageId of '${n}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);return t[n]}if(e.message)return e.message;throw TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}t.exports={FileReport:class{messages=[];#e;#t;#n;#r;constructor({ruleMapper:e,sourceCode:t,language:n,disableFixes:r=!1}){this.#e=e,this.#t=t,this.#n=n,this.#r=r}addRuleMessage(e,t,...n){let r=u(...n),a=this.#e(e)?.meta?.messages;d(r);let o=x(r,a);return b(r.suggest,a),this.messages.push(y({ruleId:e,severity:t,message:i(o,r.data),messageId:r.messageId,loc:r.loc?f(r):this.#t.getLoc(r.node),fix:this.#r?null:_(r,this.#t),suggestions:this.#r?[]:v(r,this.#t,a),language:this.#n})),this.messages.at(-1)}addError(e){let t=l(e,2,this.#n);return this.messages.push(t),t}addFatal(e){let t=l(e,2,this.#n);return t.fatal=!0,this.messages.push(t),t}addWarning(e){let t=l(e,1,this.#n);return this.messages.push(t),t}},updateLocationInformation:s}})),Xs=n(((e,n)=>{let r=t(`node:path`),i=ao(),a=y(),o=f(),s=zr(),{SourceCode:c}=to(),l=Ns(),{ConfigCommentParser:u}=$a(),p=Ps(),{SourceCodeVisitor:m}=Fs(),h=uo(),{FlatConfigArray:g}=Is(),{startTime:_,endTime:v}=lo(),{assertIsRuleSeverity:b}=Mo(),{normalizeSeverityToString:x,normalizeSeverityToNumber:S}=jo(),{deepMergeArrays:C}=Ao(),{activeFlags:w,inactiveFlags:T,getInactivityReasonMessage:E}=Ls(),D=d()(`eslint:linter`),O=new u,{VFile:k}=Rs(),{ParserService:A}=zs(),{FileContext:j}=Bs(),{ProcessorService:M}=Vs(),{containsDifferentProperty:N}=Hs(),{Config:P}=Ms(),{WarningService:F}=Us(),{SourceCodeTraverser:I}=Ks(),{FileReport:L,updateLocationInformation:R}=Ys();function z(e){return Array.isArray(e)?e:[e]}function ee(e,t,n,r,i,a,o){let s=e.rules?.[r],c=s?z(s):[`off`],l=x(c[0]);if(l!==x(i[0]))return;let u=s?`is already configured to '${l}'`:`is not enabled so can't be turned off`,d;if(c.length===1&&i.length===1||l===`off`?d=`Unused inline config ('${r}' ${u}).`:N(i.slice(1),c.slice(1))||(d=a.length===1?`Unused inline config ('${r}' ${u}).`:`Unused inline config ('${r}' ${u} with the same options).`),d){let e=S(o),r={message:d,loc:t};e===1?n.addWarning(r):e===2&&n.addError(r)}}function B({type:e,value:t,justification:n,node:r},i,a,o,s){let c=Object.keys(O.parseListConfig(t)),l=c.length?c:[null],u=[],d={node:r,value:t,ruleIds:c};for(let t of l){let c=o.getLoc(r);if(t===null||i(t))if(e===`disable-next-line`){let{line:r,column:i}=R(c.end,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else{let{line:r,column:i}=R(c.start,a);u.push({parentDirective:d,type:e,line:r,column:i,ruleId:t,justification:n})}else s.addError({ruleId:t,loc:c})}return u}function te(e,t,n,r){let i=[];if(e.getDisableDirectives){let{directives:a,problems:o}=e.getDisableDirectives();Array.isArray(o)&&o.forEach(e=>r.addError(e)),a.forEach(a=>{let o=B(a,t,n,e,r);i.push(...o)})}return i}function V(e){let t=e.split(r.sep),n=t.lastIndexOf(`<text>`);return n===-1?e:t.slice(n).join(r.sep)}function H(e,t){let n=t.linterOptions||t,r=n.noInlineConfig===!0,i=e.allowInlineConfig===!1,a=t.configNameOfNoInlineConfig?` (${t.configNameOfNoInlineConfig})`:``,o=e.reportUnusedDisableDirectives;typeof o==`boolean`&&(o=o?`error`:`off`),typeof o!=`string`&&(o=typeof n.reportUnusedDisableDirectives==`boolean`?n.reportUnusedDisableDirectives?`warn`:`off`:n.reportUnusedDisableDirectives===void 0?`off`:x(n.reportUnusedDisableDirectives));let s=n.reportUnusedInlineConfigs===void 0?`off`:x(n.reportUnusedInlineConfigs),c=e.ruleFilter;return typeof c!=`function`&&(c=()=>!0),{filename:V(e.filename||`<input>`),allowInlineConfig:!i,warnInlineConfig:r&&!i?`your config${a}`:null,reportUnusedDisableDirectives:o,reportUnusedInlineConfigs:s,disableFixes:!!e.disableFixes,stats:e.stats,ruleFilter:c}}function U(e,t,n){let{type:r,key:i}=t;n.times||={passes:[{}]};let a=n.fixPasses;a>n.times.passes.length-1&&n.times.passes.push({}),i?(n.times.passes[a][r]??={},n.times.passes[a][r][i]??={total:0},n.times.passes[a][r][i].total+=e):(n.times.passes[a][r]??={total:0},n.times.passes[a][r].total+=e)}function W(e,t){return Array.isArray(e)?C(t,e.slice(1)):t??[]}function ne(e,t,n){let r=t.parserOptions.ecmaFeatures||{},o=t.ecmaVersion||5;return i.analyze(e,{ignoreEval:!0,nodejsScope:r.globalReturn,impliedStrict:r.impliedStrict,ecmaVersion:typeof o==`number`?o:6,sourceType:t.sourceType||`script`,childVisitorKeys:n||a.KEYS,fallback:s.getKeys,jsx:r.jsx})}function re(e,t){if(!e||typeof e!=`object`||typeof e.create!=`function`)throw TypeError(`Error while loading rule '${t.id}': Rule must be an object with a \`create\` method`);try{return e.create(t)}catch(e){throw e.message=`Error while loading rule '${t.id}': ${e.message}`,e}}function G(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let g=new m,_=new j({cwd:c,filename:o,physicalFilename:l||o,sourceCode:e,languageOptions:i,settings:a}),v=e.traverse();return Object.keys(t).forEach(e=>{let r=P.getRuleNumericSeverity(t[e]);if(r===0||u&&!u({ruleId:e,severity:r}))return;let i=n(e);if(!i){p.addError({ruleId:e});return}let a=_.extend({id:e,options:W(t[e],s?i.meta?.defaultOptions:void 0),report(...t){let n=p.addRuleMessage(e,r,...t);if(n.fix&&!(i.meta&&i.meta.fixable))throw Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(n.suggestions&&!(i.meta&&i.meta.hasSuggestions===!0))throw i.meta&&i.meta.docs&&i.meta.docs.suggestion!==void 0?Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),o=h.enabled||d?h.time(e,re,d)(i,a):re(i,a),c=d?o.result:o;d&&U(o.tdiff,{type:`rules`,key:e},f);function l(t){return function(...n){try{let r=t(...n),i=d?r.result:r;return d&&U(r.tdiff,{type:`rules`,key:e},f),i}catch(t){throw t.ruleId=e,t}}}if(c==null)throw Error(`The create() function for rule '${e}' did not return an object.`);Object.keys(c).forEach(t=>{let n=h.enabled||d?h.time(e,c[t],d):c[t];g.add(t,l(n))})}),I.getInstance(r).traverseSync(e,g,{steps:v}),p}function ie(e){if(typeof e==`object`){let{hasBOM:t,text:n}=e;return(t?``:``)+n}return String(e)}function ae(e){if(e)return e;if(typeof process==`object`)return process.cwd()}let oe=new WeakMap;n.exports={Linter:class{constructor({cwd:e,configType:t=`flat`,flags:n=[],warningService:r=new F}={}){let i=[];if(t!==`flat`)throw TypeError(`The 'configType' option value must be 'flat'. The value '${t}' is not supported.`);n.forEach(e=>{if(T.has(e)){let t=T.get(e),n=`The flag '${e}' is inactive: ${E(t)}`;if(t.replacedBy===void 0)throw Error(n);typeof t.replacedBy==`string`&&i.push(t.replacedBy),r.emitInactiveFlagWarning(e,n);return}if(!w.has(e))throw Error(`Unknown flag '${e}'.`);i.push(e)}),oe.set(this,{cwd:ae(e),flags:i,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],warningService:r}),this.version=o.version}static get version(){return o.version}hasFlag(e){return oe.get(this).flags.includes(e)}verify(e,t,n){D(`Verify`);let{cwd:r}=oe.get(this),i=typeof n==`string`?{filename:n}:n||{},a=t??{},o=a;return(!Array.isArray(a)||typeof a.getConfig!=`function`)&&(o=new g(a,{basePath:r}),o.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,o,i,!0))}_verifyWithFlatConfigArrayAndProcessor(e,t,n,i){let a=oe.get(this),o=n.filename||`<input>`,s=V(o),c=n.physicalFilename||s,l=ie(e),u=new k(s,l,{physicalPath:c}),d=n.preprocess||(e=>[e]),f=n.postprocess||(e=>e.flat()),p=new M,m=p.preprocessSync(u,{processor:{preprocess:d,postprocess:f}});if(!m.ok)return m.errors;let h=n.filterCodeBlock||(e=>e.endsWith(`.js`)),g=r.extname(o),{files:_}=m,v=_.map(e=>(D(`A code block was found: %o`,e.path||`(unnamed)`),typeof e==`string`?this._verifyWithFlatConfigArrayAndWithoutProcessors(e,t,n):h(e.path,e.body)?i&&(l!==e.rawBody||r.extname(e.path)!==g)?(D(`Resolving configuration again because the file content or extension was changed.`),this._verifyWithFlatConfigArray(e.rawBody,i,{...n,filename:e.path,physicalFilename:e.physicalPath})):(a.lastSourceCode=null,this.#e(e,t,{...n,filename:e.path,physicalFilename:e.physicalPath})):(D(`This code block was skipped.`),[])));return p.postprocessSync(u,v,{processor:{preprocess:d,postprocess:f}})}#e(e,t,n){let r=oe.get(this),i=t||{},{settings:a={},languageOptions:o}=i,s=H(n,i);if(r.lastSourceCode)r.lastSourceCode.scopeManager===null&&(r.lastSourceCode=new c({text:r.lastSourceCode.text,ast:r.lastSourceCode.ast,hasBOM:r.lastSourceCode.hasBOM,parserServices:r.lastSourceCode.parserServices,visitorKeys:r.lastSourceCode.visitorKeys,scopeManager:ne(r.lastSourceCode.ast,o)}));else{let t;s.stats&&(t=_());let n=new A().parseSync(e,i);if(s.stats&&U(v(t),{type:`parse`},r),!n.ok)return n.errors;r.lastSourceCode=n.sourceCode}let u=r.lastSourceCode,d=new L({ruleMapper:e=>i.getRuleDefinition(e),language:i.language,sourceCode:u,disableFixes:s.disableFixes});u.applyLanguageOptions?.(o);let f={rules:{}};if(s.allowInlineConfig)if(s.warnInlineConfig)u.getInlineConfigNodes&&u.getInlineConfigNodes().forEach(e=>{let t=u.getLoc(e),n=u.getRange(e);d.addWarning({message:`'${u.text.slice(n[0],n[1])}' has no effect because you have 'noInlineConfig' setting in ${s.warnInlineConfig}.`,loc:t})});else{let e=u.applyInlineConfig?.();if(e){e.problems.forEach(e=>{d.addFatal(e)});for(let{config:t,loc:n}of e.configs)Object.keys(t.rules).forEach(e=>{let r=i.getRuleDefinition(e),a=t.rules[e];if(!r){d.addError({ruleId:e,loc:n});return}if(Object.hasOwn(f.rules,e)){d.addError({message:`Rule "${e}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:n});return}try{let t=z(a),o=t;b(e,o[0]);let c=!0;if(o.length===1&&i.rules&&Object.hasOwn(i.rules,e))o=[o[0],...i.rules[e].slice(1)],i.rules[e][0]>0&&(c=!1);else{let e=o.slice(1),t=C(r.meta?.defaultOptions,e);t.length&&(o=[o[0],...t])}s.reportUnusedInlineConfigs!==`off`&&ee(i,n,d,e,o,t,s.reportUnusedInlineConfigs),c&&i.validateRulesConfig({[e]:o}),f.rules[e]=o}catch(t){if(t.code===`ESLINT_INVALID_RULE_OPTIONS_SCHEMA`)throw t;let r=t.message.slice(t.message.startsWith(`Key "rules":`)?t.message.indexOf(`:`,12)+1:t.message.indexOf(`:`)+1).trim();t.messageTemplate&&(r+=` You passed "${a}".`),d.addError({ruleId:e,message:`Inline configuration for rule "${e}" is invalid:\n\t${r}\n`,loc:n})}})}}let p=s.allowInlineConfig&&!s.warnInlineConfig?te(u,e=>i.getRuleDefinition(e),i.language,d):[],m=Object.assign({},i.rules,f.rules);u.finalize?.();try{G(u,m,e=>i.getRuleDefinition(e),i.language,o,a,s.filename,!1,r.cwd,n.physicalFilename,s.ruleFilter,s.stats,r,d)}catch(e){if(e.message+=`\nOccurred while linting ${s.filename}`,D(`An error occurred while traversing`),D(`Filename:`,s.filename),e.currentNode){let{line:t}=u.getLoc(e.currentNode).start;D(`Line:`,t),e.message+=`:${t}`}throw D(`Parser Options:`,o.parserOptions),D(`Settings:`,a),e.ruleId&&(e.message+=`\nRule: "${e.ruleId}"`),e}return l({language:i.language,sourceCode:u,directives:p,disableFixes:s.disableFixes,problems:d.messages.sort((e,t)=>e.line-t.line||e.column-t.column),reportUnusedDisableDirectives:s.reportUnusedDisableDirectives,ruleFilter:s.ruleFilter,configuredRules:m})}_verifyWithFlatConfigArrayAndWithoutProcessors(e,t,n){let r=oe.get(this),i=V(n.filename||`<input>`),a;typeof e==`string`?(r.lastSourceCode=null,a=e):(r.lastSourceCode=e,a=e.text);let o=new k(i,a,{physicalPath:n.physicalFilename});return this.#e(o,t,n)}_verifyWithFlatConfigArray(e,t,n,r=!1){D(`With flat config: %s`,n.filename);let i=n.filename||`__placeholder__.js`;oe.get(this).lastConfigArray=t;let a=t.getConfig(i);if(!a)return[{ruleId:null,severity:1,message:`No matching configuration found for ${i}.`,line:0,column:0}];if(a.processor){D(`Apply the processor: %o`,a.processor);let{preprocess:r,postprocess:o,supportsAutofix:s}=a.processor,c=n.disableFixes||!s;return this._verifyWithFlatConfigArrayAndProcessor(e,a,{...n,filename:i,disableFixes:c,postprocess:o,preprocess:r},t)}return r&&(n.preprocess||n.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,a,n):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,a,n)}_distinguishSuppressedMessages(e){let t=[],n=[],r=oe.get(this);for(let r of e)r.suppressions?n.push(r):t.push(r);return r.lastSuppressedMessages=n,t}getSourceCode(){return oe.get(this).lastSourceCode}getTimes(){return oe.get(this).times??{passes:[]}}getFixPassCount(){return oe.get(this).fixPasses??0}getSuppressedMessages(){return oe.get(this).lastSuppressedMessages}verifyAndFix(e,t,n){let r,i,a=!1,o=0,s=e,c,l,u=typeof n==`string`?{filename:n}:n||{},d=u.filename||`${e.slice(0,10)}...`,f=u.fix===void 0?!0:u.fix,m=u?.stats,h=oe.get(this);m&&(delete h.times,h.fixPasses=0);do{o++;let e;m&&(e=_()),D(`Linting code for ${d} (pass ${o})`),r=this.verify(s,t,u),D(`Generating fixed text for ${d} (pass ${o})`);let n;if(m&&(n=_()),i=p.applyFixes(s,r,f),m&&(i.fixed?(U(v(n),{type:`fix`},h),h.fixPasses++):U(0,{type:`fix`},h)),r.length===1&&r[0].fatal)break;if(a||=i.fixed,c=l,l=s,s=i.output,m){e=v(e);let t=h.times.passes.length-1;h.times.passes[t].total=e}if(o>1&&s.length===c.length&&s===c){D(`Circular fixes detected after pass ${o}. Exiting fix loop.`),h.warningService.emitCircularFixesWarning(u.filename??`text`);break}}while(i.fixed&&o<10);if(i.fixed){let e;m&&(e=_()),i.messages=this.verify(s,t,u),m&&(U(0,{type:`fix`},h),h.times.passes.at(-1).total=v(e))}return i.fixed=a,i.output=s,i}}}})),Zs=n(((e,t)=>{let{Linter:n}=Xs();t.exports={Linter:n,SourceCodeFixer:Ps()}})),Qs=n(((e,t)=>{let n=/^@.*\//u;function r(e,t){let n=e;if(n.includes(`\\`)&&(n=n.replace(/\\/gu,`/`)),n.charAt(0)===`@`){let e=RegExp(`^(@[^/]+)(?:/(?:${t})?)?$`,`u`),r=RegExp(`^${t}(-|$)`,`u`);e.test(n)?n=n.replace(e,`$1/${t}`):r.test(n.split(`/`)[1])||(n=n.replace(/^@([^/]+)\/(.*)$/u,`@$1/${t}-$2`))}else n.startsWith(`${t}-`)||(n=`${t}-${n}`);return n}function i(e,t){if(e[0]===`@`){let n=RegExp(`^(@[^/]+)/${t}$`,`u`).exec(e);if(n)return n[1];if(n=RegExp(`^(@[^/]+)/${t}-(.+)$`,`u`).exec(e),n)return`${n[1]}/${n[2]}`}else if(e.startsWith(`${t}-`))return e.slice(t.length+1);return e}function a(e){let t=e.match(n);return t?t[0]:``}t.exports={normalizePackageName:r,getShorthandName:i,getNamespaceFromTerm:a}})),$s=n(((e,t)=>{function n(e){let t={errorCount:0,fatalErrorCount:0,warningCount:0,fixableErrorCount:0,fixableWarningCount:0};for(let n=0;n<e.length;n++){let r=e[n];r.fatal||r.severity===2?(t.errorCount++,r.fatal&&t.fatalErrorCount++,r.fix&&t.fixableErrorCount++):(t.warningCount++,r.fix&&t.fixableWarningCount++)}return t}t.exports={calculateStatsPerFile:n}})),ec=n((e=>{e.stringify=function e(t){if(t===void 0)return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(`:base64:`+t.toString(`base64`));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t==`object`){var n=``,r=Array.isArray(t);n=r?`[`:`{`;var i=!0;for(var a in t){var o=typeof t[a]==`function`||!r&&t[a]===void 0;Object.hasOwnProperty.call(t,a)&&!o&&(i||(n+=`,`),i=!1,r?t[a]==null?n+=`null`:n+=e(t[a]):t[a]!==void 0&&(n+=e(a)+`:`+e(t[a])))}return n+=r?`]`:`}`,n}else if(typeof t==`string`)return JSON.stringify(/^:/.test(t)?`:`+t:t);else if(t===void 0)return`null`;else return JSON.stringify(t)},e.parse=function(e){return JSON.parse(e,function(e,t){return typeof t==`string`?/^:base64:/.test(t)?Buffer.from(t.substring(8),`base64`):/^:/.test(t)?t.substring(1):t:t})}})),tc=n(((e,n)=>{let r=t(`events`),i=ec(),a=e=>e.adapter||e.uri?new(t({redis:`@keyv/redis`,rediss:`@keyv/redis`,mongodb:`@keyv/mongo`,mongo:`@keyv/mongo`,sqlite:`@keyv/sqlite`,postgresql:`@keyv/postgres`,postgres:`@keyv/postgres`,mysql:`@keyv/mysql`,etcd:`@keyv/etcd`,offline:`@keyv/offline`,tiered:`@keyv/tiered`}[e.adapter||/^[^:+]*/.exec(e.uri)[0]]))(e):new Map,o=[`sqlite`,`postgres`,`mysql`,`mongo`,`redis`,`tiered`];n.exports=class extends r{constructor(e,{emitErrors:t=!0,...n}={}){if(super(),this.opts={namespace:`keyv`,serialize:i.stringify,deserialize:i.parse,...typeof e==`string`?{uri:e}:e,...n},!this.opts.store){let e={...this.opts};this.opts.store=a(e)}if(this.opts.compression){let e=this.opts.compression;this.opts.serialize=e.serialize.bind(e),this.opts.deserialize=e.deserialize.bind(e)}typeof this.opts.store.on==`function`&&t&&this.opts.store.on(`error`,e=>this.emit(`error`,e)),this.opts.store.namespace=this.opts.namespace;let r=e=>async function*(){for await(let[t,n]of typeof e==`function`?e(this.opts.store.namespace):e){let e=await this.opts.deserialize(n);if(!(this.opts.store.namespace&&!t.includes(this.opts.store.namespace))){if(typeof e.expires==`number`&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}}};typeof this.opts.store[Symbol.iterator]==`function`&&this.opts.store instanceof Map?this.iterator=r(this.opts.store):typeof this.opts.store.iterator==`function`&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=r(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return o.includes(this.opts.store.opts.dialect)||o.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(e){return e.split(`:`).splice(1).join(`:`)}get(e,t){let{store:n}=this.opts,r=Array.isArray(e),i=r?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(r&&n.getMany===void 0){let e=[];for(let r of i)e.push(Promise.resolve().then(()=>n.get(r)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(e=>{if(e!=null)return typeof e.expires==`number`&&Date.now()>e.expires?this.delete(r).then(()=>void 0):t&&t.raw?e:e.value}));return Promise.allSettled(e).then(e=>{let t=[];for(let n of e)t.push(n.value);return t})}return Promise.resolve().then(()=>r?n.getMany(i):n.get(i)).then(e=>typeof e==`string`||this.opts.compression?this.opts.deserialize(e):e).then(n=>{if(n!=null)return r?n.map((n,r)=>{if(typeof n==`string`&&(n=this.opts.deserialize(n)),n!=null){if(typeof n.expires==`number`&&Date.now()>n.expires){this.delete(e[r]).then(()=>void 0);return}return t&&t.raw?n:n.value}}):typeof n.expires==`number`&&Date.now()>n.expires?this.delete(e).then(()=>void 0):t&&t.raw?n:n.value})}set(e,t,n){let r=this._getKeyPrefix(e);n===void 0&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:i}=this.opts;return Promise.resolve().then(()=>{let e=typeof n==`number`?Date.now()+n:null;return typeof t==`symbol`&&this.emit(`error`,`symbol cannot be serialized`),t={value:t,expires:e},this.opts.serialize(t)}).then(e=>i.set(r,e,n)).then(()=>!0)}delete(e){let{store:t}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(t.deleteMany===void 0){let e=[];for(let r of n)e.push(t.delete(r));return Promise.allSettled(e).then(e=>e.every(e=>e.value===!0))}return Promise.resolve().then(()=>t.deleteMany(n))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let t=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has==`function`?n.has(t):await n.get(t)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect==`function`)return e.disconnect()}}})),nc=n((e=>{let{parse:t,stringify:n}=JSON,{keys:r}=Object,i=String,a=`string`,o={},s=`object`,c=(e,t)=>t,l=e=>e instanceof i?i(e):e,u=(e,t)=>typeof t===a?new i(t):t,d=(e,t,n,a)=>c=>{for(let l=r(c),{length:u}=l,d=0;d<u;d++){let r=l[d],u=c[r];if(u instanceof i){let i=e[+u];typeof i===s&&!n.has(i)?(n.add(i),c[r]=o,t.push({o:c,k:r,r:i})):c[r]=a.call(c,r,i)}else c[r]!==o&&(c[r]=a.call(c,r,u))}return c},f=(e,t,n)=>{let r=i(t.push(n)-1);return e.set(n,r),r},p=(e,n)=>{let r=t(e,u).map(l),i=n||c,a=r[0];if(typeof a===s&&a){let e=[],t=d(r,e,new Set,i);a=t(a);let n=0;for(;n<e.length;){let{o:r,k:a,r:o}=e[n++];r[a]=i.call(r,a,t(o))}}return i.call({"":a},``,a)};e.parse=p;let m=(e,t,r)=>{let i=t&&typeof t===s?(e,n)=>e===``||-1<t.indexOf(e)?n:void 0:t||c,o=new Map,l=[],u=[],d=+f(o,l,i.call({"":e},``,e)),p=!d;for(;d<l.length;)p=!0,u[d]=n(l[d++],m,r);return`[`+u.join(`,`)+`]`;function m(e,t){if(p)return p=!p,t;let n=i.call(this,e,t);switch(typeof n){case s:if(n===null)return n;case a:return o.get(n)||f(o,l,n)}return n}};e.stringify=m,e.toJSON=e=>t(m(e)),e.fromJSON=e=>p(n(e))})),rc=n(((e,n)=>{let r=t(`fs`),i=t(`path`),a=nc();function o(e,t){let n;try{n=s(e)}catch{n=t}return n}function s(e){return a.parse(r.readFileSync(e,{encoding:`utf8`}))}function c(e,t){r.mkdirSync(i.dirname(e),{recursive:!0}),r.writeFileSync(e,a.stringify(t))}n.exports={tryParse:o,readJSON:s,writeJSON:c}})),ic=n(((e,n)=>{let r=t(`fs`),i=t(`path`);function a(e){if(!r.existsSync(e))return!1;try{return r.statSync(e).isDirectory()?(r.readdirSync(e).forEach(t=>{let n=i.join(e,t);r.statSync(n).isFile()&&r.unlinkSync(n)}),r.rmdirSync(e)):r.unlinkSync(e),!0}catch(t){console.error(`Error while deleting ${e}: ${t.message}`)}}n.exports={del:a}})),ac=n(((e,n)=>{_();let r=t(`path`),i=t(`fs`),a=tc(),{writeJSON:o,tryParse:s}=rc(),{del:c}=ic(),l={load:function(e,t){let n=this;n.keyv=new a,n.__visited={},n.__persisted={},n._pathToFile=t?r.resolve(t,e):r.resolve(h,`../.cache/`,e),i.existsSync(n._pathToFile)&&(n._persisted=s(n._pathToFile,{}))},get _persisted(){return this.__persisted},set _persisted(e){this.__persisted=e},get _visited(){return this.__visited},set _visited(e){this.__visited=e},loadFile:function(e){let t=this,n=r.dirname(e),i=r.basename(e);t.load(i,n)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,t){this._visited[e]=!0,this._persisted[e]=t},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){let e=this,t={},n=Object.keys(e._visited);n.length!==0&&(n.forEach(function(n){t[n]=e._persisted[n]}),e._visited={},e._persisted=t)},save:function(e){let t=this;!e&&t._prune(),o(t._pathToFile,t._persisted)},removeCacheFile:function(){return c(this._pathToFile)},destroy:function(){let e=this;e._visited={},e._persisted={},e.removeCacheFile()}};n.exports={load:function(e,t){return this.create(e,t)},create:function(e,t){let n=Object.create(l);return n.load(e,t),n},createFromFile:function(e){let t=Object.create(l);return t.loadFile(e),t},clearCacheById:function(e,t){return c(t?r.resolve(t,e):r.resolve(h,`../.cache/`,e))},clearAll:function(e){return c(e?r.resolve(e):r.resolve(h,`../.cache/`))}}})),oc=n(((e,n)=>{var r=t(`path`),i=t(`crypto`);n.exports={createFromFile:function(e,t){var n=r.basename(e),i=r.dirname(e);return this.create(n,i,t)},create:function(e,n,r){var a=t(`fs`),o=ac().load(e,n),s={},c=function(){o.keys().forEach(function(e){try{a.statSync(e)}catch(t){t.code===`ENOENT`&&o.removeKey(e)}})};return c(),{cache:o,getHash:function(e){return i.createHash(`md5`).update(e).digest(`hex`)},hasFileChanged:function(e){return this.getFileDescriptor(e).changed},analyzeFiles:function(e){var t=this;e||=[];var n={changedFiles:[],notFoundFiles:[],notChangedFiles:[]};return t.normalizeEntries(e).forEach(function(e){if(e.changed){n.changedFiles.push(e.key);return}if(e.notFound){n.notFoundFiles.push(e.key);return}n.notChangedFiles.push(e.key)}),n},getFileDescriptor:function(e){var t;try{t=a.statSync(e)}catch(t){return this.removeEntry(e),{key:e,notFound:!0,err:t}}return r?this._getFileDescriptorUsingChecksum(e):this._getFileDescriptorUsingMtimeAndSize(e,t)},_getFileDescriptorUsingMtimeAndSize:function(e,t){var n=o.getKey(e),r=!!n,i=t.size,a=t.mtime.getTime(),c,l;return n?(c=a!==n.mtime,l=i!==n.size):n={size:i,mtime:a},s[e]={key:e,changed:!r||c||l,meta:n}},_getFileDescriptorUsingChecksum:function(e){var t=o.getKey(e),n=!!t,r;try{r=a.readFileSync(e)}catch{r=``}var i=!0,c=this.getHash(r);return t?i=c!==t.hash:t={hash:c},s[e]={key:e,changed:!n||i,meta:t}},getUpdatedFiles:function(e){var t=this;return e||=[],t.normalizeEntries(e).filter(function(e){return e.changed}).map(function(e){return e.key})},normalizeEntries:function(e){e||=[];var t=this;return e.map(function(e){return t.getFileDescriptor(e)})},removeEntry:function(e){delete s[e],o.removeKey(e)},deleteCacheFile:function(){o.removeCacheFile()},destroy:function(){s={},o.destroy()},_getMetaForFileUsingCheckSum:function(e){var t=a.readFileSync(e.key),n=this.getHash(t),r=Object.assign(e.meta,{hash:n});return delete r.size,delete r.mtime,r},_getMetaForFileUsingMtimeAndSize:function(e){var t=a.statSync(e.key),n=Object.assign(e.meta,{size:t.size,mtime:t.mtime.getTime()});return delete n.hash,n},reconcile:function(e){c(),e=e===void 0?!0:e;var t=s,n=Object.keys(t);if(n.length!==0){var i=this;n.forEach(function(e){var n=t[e];try{var a=r?i._getMetaForFileUsingCheckSum(n):i._getMetaForFileUsingMtimeAndSize(n);o.setKey(e,a)}catch(e){if(e.code!==`ENOENT`)throw e}}),o.save(e)}}}}}})),sc=n(((e,t)=>{t.exports=function(e,t){t||={},typeof t==`function`&&(t={cmp:t});var i=t.space||``;typeof i==`number`&&(i=Array(i+1).join(` `));var a=typeof t.cycles==`boolean`?t.cycles:!1,o=t.replacer||function(e,t){return t},s=t.cmp&&(function(e){return function(t){return function(n,r){return e({key:n,value:t[n]},{key:r,value:t[r]})}}})(t.cmp),c=[];return(function e(t,l,u,d){var f=i?`
255
+ `+Array(d+1).join(i):``,p=i?`: `:`:`;if(u&&u.toJSON&&typeof u.toJSON==`function`&&(u=u.toJSON()),u=o.call(t,l,u),u!==void 0){if(typeof u!=`object`||!u)return JSON.stringify(u);if(n(u)){for(var m=[],h=0;h<u.length;h++){var g=e(u,h,u[h],d+1)||JSON.stringify(null);m.push(f+i+g)}return`[`+m.join(`,`)+f+`]`}else{if(c.indexOf(u)!==-1){if(a)return JSON.stringify(`__cycle__`);throw TypeError(`Converting circular structure to JSON`)}else c.push(u);for(var _=r(u).sort(s&&s(u)),m=[],h=0;h<_.length;h++){var l=_[h],v=e(u,l,u[l],d+1);if(v){var y=JSON.stringify(l)+p+v;m.push(f+i+y)}}return c.splice(c.indexOf(u),1),`{`+m.join(`,`)+f+`}`}}})({"":e},``,e,0)};var n=Array.isArray||function(e){return{}.toString.call(e)===`[object Array]`},r=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}})),cc=n(((e,n)=>{let r=t(`node:fs`),i=oc(),a=sc(),o=f(),s=ba(),c=bo(),l=d()(`eslint:lint-result-cache`),u=new WeakMap,p=process&&process.version,m=[`metadata`,`content`],h=`Cache strategy must be one of: ${m.map(e=>`"${e}"`).join(`, `)}`;function g(e){return m.includes(e)}function _(e){return u.has(e)||u.set(e,c(`${o.version}_${p}_${a(e)}`)),u.get(e)}n.exports=class{constructor(e,t){s(e,`Cache file location is required`),s(t,`Cache strategy is required`),s(g(t),h),l(`Caching results to ${e}`);let n=t===`content`;l(`Using "${t}" strategy to detect changes`),this.fileEntryCache=i.create(e,void 0,n),this.cacheFileLocation=e}getCachedLintResults(e,t){let n=this.getValidCachedLintResults(e,t);if(!n)return n;let i={...n};return i.source===null&&(l(`Rereading cached result source from filesystem: ${e}`),i.source=r.readFileSync(e,`utf-8`)),i}getValidCachedLintResults(e,t){let n=this.fileEntryCache.getFileDescriptor(e);if(n.notFound)return l(`File not found on the file system: ${e}`),null;let r=_(t);return n.changed||n.meta.hashOfConfig!==r?(l(`Cache entry not found or no longer valid: ${e}`),null):n.meta.results}setCachedLintResults(e,t,n){if(n&&Object.hasOwn(n,`output`))return;let r=this.fileEntryCache.getFileDescriptor(e);if(r&&!r.notFound){l(`Updating cached result: ${e}`);let i=Object.assign({},n);Object.hasOwn(i,`source`)&&(i.source=null),r.meta.results=i,r.meta.hashOfConfig=_(t)}}reconcile(){l(`Persisting cached results: ${this.cacheFileLocation}`),this.fileEntryCache.reconcile()}}})),lc=n(((e,t)=>{var n=class{constructor(e){this.value=e,this.next=void 0}};t.exports=class{constructor(){this.clear()}enqueue(e){let t=new n(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}}})),uc=n(((e,t)=>{let n=lc();t.exports=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new n,r=0,i=()=>{r--,t.size>0&&t.dequeue()()},a=async(e,t,...n)=>{r++;let a=(async()=>e(...n))();t(a);try{await a}catch{}i()},o=(n,i,...o)=>{t.enqueue(a.bind(null,n,i,...o)),(async()=>{await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()})()},s=(e,...t)=>new Promise(n=>{o(e,n,...t)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s}})),dc=n(((e,t)=>{let n=uc();var r=class extends Error{constructor(e){super(),this.value=e}};let i=async(e,t)=>t(await e),a=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new r(t[0]);return!1};t.exports=async(e,t,o)=>{o={concurrency:1/0,preserveOrder:!0,...o};let s=n(o.concurrency),c=[...e].map(e=>[e,s(i,e,t)]),l=n(o.preserveOrder?1:1/0);try{await Promise.all(c.map(e=>l(a,e)))}catch(e){if(e instanceof r)return e.value;throw e}}})),fc=n(((e,n)=>{let r=t(`path`),i=t(`fs`),{promisify:a}=t(`util`),o=dc(),s=a(i.stat),c=a(i.lstat),l={directory:`isDirectory`,file:`isFile`};function u({type:e}){if(!(e in l))throw Error(`Invalid type specified: ${e}`)}let d=(e,t)=>e===void 0||t[l[e]]();n.exports=async(e,t)=>{t={cwd:process.cwd(),type:`file`,allowSymlinks:!0,...t},u(t);let n=t.allowSymlinks?s:c;return o(e,async e=>{try{let i=await n(r.resolve(t.cwd,e));return d(t.type,i)}catch{return!1}},t)},n.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:`file`,...t},u(t);let n=t.allowSymlinks?i.statSync:i.lstatSync;for(let i of e)try{let e=n(r.resolve(t.cwd,i));if(d(t.type,e))return i}catch{}}})),pc=n(((e,n)=>{let r=t(`fs`),{promisify:i}=t(`util`),a=i(r.access);n.exports=async e=>{try{return await a(e),!0}catch{return!1}},n.exports.sync=e=>{try{return r.accessSync(e),!0}catch{return!1}}})),mc=n(((e,n)=>{let r=t(`path`),i=fc(),a=pc(),o=Symbol(`findUp.stop`);n.exports=async(e,t={})=>{let n=r.resolve(t.cwd||``),{root:a}=r.parse(n),s=[].concat(e),c=async t=>{if(typeof e!=`function`)return i(s,t);let n=await e(t.cwd);return typeof n==`string`?i([n],t):n};for(;;){let e=await c({...t,cwd:n});if(e===o)return;if(e)return r.resolve(n,e);if(n===a)return;n=r.dirname(n)}},n.exports.sync=(e,t={})=>{let n=r.resolve(t.cwd||``),{root:a}=r.parse(n),s=[].concat(e),c=t=>{if(typeof e!=`function`)return i.sync(s,t);let n=e(t.cwd);return typeof n==`string`?i.sync([n],t):n};for(;;){let e=c({...t,cwd:n});if(e===o)return;if(e)return r.resolve(n,e);if(n===a)return;n=r.dirname(n)}},n.exports.exists=a,n.exports.sync.exists=a.sync,n.exports.stop=o})),hc=n(((e,t)=>{t.exports={name:`jiti`,version:`2.6.1`,description:`Runtime typescript and ESM support for Node.js`,repository:`unjs/jiti`,license:`MIT`,type:`module`,exports:{".":{import:{types:`./lib/jiti.d.mts`,default:`./lib/jiti.mjs`},require:{types:`./lib/jiti.d.cts`,default:`./lib/jiti.cjs`}},"./register":{types:`./lib/jiti-register.d.mts`,import:`./lib/jiti-register.mjs`},"./native":{types:`./lib/jiti.d.mts`,import:`./lib/jiti-native.mjs`},"./package.json":`./package.json`},main:`./lib/jiti.cjs`,module:`./lib/jiti.mjs`,types:`./lib/jiti.d.cts`,typesVersions:{"*":{register:[`./lib/jiti-register.d.mts`],native:[`./lib/jiti.d.mts`]}},bin:{jiti:`./lib/jiti-cli.mjs`},files:[`lib`,`dist`,`register.cjs`],scripts:{bench:`node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs`,build:`pnpm clean && pnpm rspack`,clean:`rm -rf dist`,dev:`pnpm clean && pnpm rspack --watch`,jiti:`JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs`,lint:`eslint . && prettier -c src lib test stubs`,"lint:fix":`eslint --fix . && prettier -w src lib test stubs`,prepack:`pnpm build`,release:`pnpm build && pnpm test && changelogen --release --push --publish`,test:`pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native`,"test:bun":`bun --bun test test/bun`,"test:native":`pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno`,"test:native:bun":`bun --bun test test/native/bun.test.ts`,"test:native:deno":`deno test -A --no-check test/native/deno.test.ts`,"test:native:node":`node --test --experimental-strip-types test/native/node.test.ts`,"test:node-register":`JITI_JSX=1 node --test test/node-register.test.mjs`,"test:types":`tsc --noEmit`},devDependencies:{"@babel/core":`^7.28.4`,"@babel/helper-module-imports":`^7.27.1`,"@babel/helper-module-transforms":`^7.28.3`,"@babel/helper-plugin-utils":`^7.27.1`,"@babel/helper-simple-access":`^7.27.1`,"@babel/plugin-proposal-decorators":`^7.28.0`,"@babel/plugin-syntax-class-properties":`^7.12.13`,"@babel/plugin-syntax-import-assertions":`^7.27.1`,"@babel/plugin-syntax-jsx":`^7.27.1`,"@babel/plugin-transform-export-namespace-from":`^7.27.1`,"@babel/plugin-transform-react-jsx":`^7.27.1`,"@babel/plugin-transform-typescript":`^7.28.0`,"@babel/preset-typescript":`^7.27.1`,"@babel/template":`^7.27.2`,"@babel/traverse":`^7.28.4`,"@babel/types":`^7.28.4`,"@rspack/cli":`^1.5.8`,"@rspack/core":`^1.5.8`,"@types/babel__core":`^7.20.5`,"@types/babel__helper-module-imports":`^7.18.3`,"@types/babel__helper-plugin-utils":`^7.10.3`,"@types/babel__template":`^7.4.4`,"@types/babel__traverse":`^7.28.0`,"@types/node":`^24.6.1`,"@vitest/coverage-v8":`^3.2.4`,acorn:`^8.15.0`,"babel-plugin-parameter-decorator":`^1.0.16`,changelogen:`^0.6.2`,config:`^4.1.1`,consola:`^3.4.2`,defu:`^6.1.4`,destr:`^2.0.5`,"escape-string-regexp":`^5.0.0`,eslint:`^9.36.0`,"eslint-config-unjs":`^0.5.0`,"estree-walker":`^3.0.3`,etag:`^1.8.1`,"fast-glob":`^3.3.3`,"is-installed-globally":`^1.0.0`,mime:`^4.1.0`,mlly:`^1.8.0`,"moment-timezone":`^0.6.0`,"nano-jsx":`^0.2.0`,pathe:`^2.0.3`,"pkg-types":`^2.3.0`,preact:`^10.27.2`,"preact-render-to-string":`^6.6.2`,prettier:`^3.6.2`,react:`^19.1.1`,"react-dom":`^19.1.1`,"reflect-metadata":`^0.2.2`,"solid-js":`^1.9.9`,"std-env":`^3.9.0`,"terser-webpack-plugin":`^5.3.14`,tinyexec:`^1.0.1`,"ts-loader":`^9.5.4`,typescript:`^5.9.3`,vitest:`^3.2.4`,vue:`^3.5.22`,yoctocolors:`^2.1.2`,zod:`^4.1.11`},packageManager:`pnpm@10.17.1`}})),gc=n(((e,n)=>{_();let r=t(`node:path`),i=t(`node:fs/promises`),a=mc(),{pathToFileURL:o}=t(`node:url`),s=d()(`eslint:config-loader`),{FlatConfigArray:c}=Is(),{WarningService:l}=Us(),u=[`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`],f=new Map;function p(e){if(!e||typeof e!=`string`)throw Error(`'filePath' must be a non-empty string`)}function m(e,t){let{configFile:n}=t;if(!e&&n!==!1){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}}function h(e){let t=r.extname(e);return/^\.[mc]?ts$/u.test(t)}function v(){return!!globalThis.Bun}function y(){return!!globalThis.Deno}function b(){return[`strip`,`transform`].includes(process.features.typescript)}async function x(e,t,n){let{createJiti:r,version:i}=await w.loadJiti().catch(()=>{throw Error(`The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.`)}),[a,o]=i.split(`.`).map(e=>Number(e));if(a<2||a===2&&o<2)throw Error(`You are using an outdated version of the 'jiti' library. Please update to the latest version of 'jiti' to ensure compatibility and access to the latest features.`);let s=await r(g,{moduleCache:!1}).import(t.href);return f.set(e,n),s?.default??s}async function S(e,t,n){let r=await import(t.href);return f.set(e,n),r.default}async function C(e,n){s(`Loading config from ${e}`);let r=o(e);s(`Config file URL is ${r}`);let a=(await i.stat(e)).mtime.getTime();r.searchParams.append(`mtime`,a),f.get(e)!==a&&delete t.cache[e];let c=h(e),l=v(),u=y();if(c){if(n){if(b())return await S(e,r,a);throw`typescript`in process.features?Error(`The unstable_native_nodejs_ts_config flag is enabled, but native TypeScript support is not enabled in the current Node.js process. You need to either enable native TypeScript support by passing --experimental-strip-types or remove the unstable_native_nodejs_ts_config flag.`):Error(`The unstable_native_nodejs_ts_config flag is not supported in older versions of Node.js.`)}if(!u&&!l)return await x(e,r,a)}return await S(e,r,a)}var w=class e{#e=new Map;#t=new Map;#n;constructor(e){this.#n=e.warningService?e:{...e,warningService:new l}}async#r(t){if(this.#t.has(t))return this.#t.get(t);let n=e.locateConfigFileToUse({useConfigFile:this.#n.configFile,cwd:this.#n.cwd,fromDirectory:t});this.#t.set(t,n);let r=await n;return this.#t.set(t,r),r}async#i(t,n){if(this.#e.has(t))return this.#e.get(t);let r=e.calculateConfigArray(t,n,this.#n);this.#e.set(t,r);let i=await r;return this.#e.set(t,i),i}async findConfigFileForPath(e){p(e);let t=r.resolve(this.#n.cwd,r.dirname(e)),{configFilePath:n}=await this.#r(t);return n}async loadConfigArrayForFile(e){return p(e),s(`Calculating config for file ${e}`),m(await this.findConfigFileForPath(e),this.#n),this.loadConfigArrayForDirectory(e)}async loadConfigArrayForDirectory(e){p(e),s(`Calculating config for directory ${e}`);let t=r.resolve(this.#n.cwd,r.dirname(e)),{configFilePath:n,basePath:i}=await this.#r(t);return s(`Using config file ${n} and base path ${i}`),this.#i(n,i)}getCachedConfigArrayForFile(e){return p(e),s(`Looking up cached config for ${e}`),this.getCachedConfigArrayForPath(r.dirname(e))}getCachedConfigArrayForPath(e){p(e),s(`Looking up cached config for ${e}`);let t=r.resolve(this.#n.cwd,e);if(!this.#t.has(t))throw Error(`Could not find config file for ${e}`);let n=this.#t.get(t);if(typeof n.then==`function`)throw Error(`Config file path for ${e} has not yet been calculated or an error occurred during the calculation`);let{configFilePath:i}=n,a=this.#e.get(i);if(!a||typeof a.then==`function`)throw Error(`Config array for ${e} has not yet been calculated or an error occurred during the calculation`);return a}static async loadJiti(){let{createJiti:e}=await import(`./jiti-BvM1NyiB.js`);return{createJiti:e,version:hc().version}}static async locateConfigFileToUse({useConfigFile:e,cwd:t,fromDirectory:n=t}){let i,o=t;return typeof e==`string`?(s(`Override config file path is ${e}`),i=r.resolve(t,e),o=t):e!==!1&&(s(`Searching for eslint.config.js`),i=await a(u,{cwd:n}),i&&(o=r.dirname(i))),{configFilePath:i,basePath:o}}static async calculateConfigArray(e,t,n){let{cwd:r,baseConfig:i,ignoreEnabled:a,ignorePatterns:o,overrideConfig:l,hasUnstableNativeNodeJsTSConfigFlag:u=!1,defaultConfigs:d=[],warningService:f}=n;s(`Calculating config array from config file ${e} and base path ${t}`);let p=new c(i||[],{basePath:t,shouldIgnore:a});if(e){s(`Loading config file ${e}`);let t=await C(e,u),n=t===void 0;s(`Config file ${e} is ${n?`empty`:`not empty`}`),n||(Array.isArray(t)?t.length===0?(s(`Config file ${e} is an empty array`),n=!0):p.push(...t):typeof t==`object`&&t&&Object.keys(t).length===0?(s(`Config file ${e} is an empty object`),n=!0):p.push(t)),n&&f.emitEmptyConfigWarning(e)}return p.push(...d),o&&o.length>0&&p.push({basePath:r,ignores:o}),l&&(Array.isArray(l)?p.push(...l):p.push(l)),await p.normalize(),p}};n.exports={ConfigLoader:w}})),_c=n(((e,n)=>{let r=t(`node:fs`),i=t(`node:path`),{calculateStatsPerFile:a}=$s(),o=sc();n.exports={SuppressionsService:class e{static DEFAULT_SUPPRESSIONS_FILENAME=`eslint-suppressions.json`;filePath=``;cwd=``;constructor({filePath:e,cwd:t}){this.filePath=e,this.cwd=t}async suppress(t,n){let r=await this.load();for(let i of t){let t=this.getRelativeFilePath(i.filePath),a=e.countViolationsByRule(i.messages);for(let e in a)n&&!n.includes(e)||(r[t]??={},r[t][e]=a[e])}return this.save(r)}async prune(e){let t=await this.load(),{unused:n}=this.applySuppressions(e,t);for(let e in n)if(t[e]){for(let r in n[e]){if(!t[e][r])continue;let i=t[e][r].count,a=n[e][r].count;i===a?delete t[e][r]:t[e][r].count-=a}Object.keys(t[e]).length===0&&delete t[e]}for(let e of Object.keys(t)){let n=i.resolve(this.cwd,e);r.existsSync(n)||delete t[e]}return this.save(t)}applySuppressions(t,n){let r=structuredClone(t),i={};for(let t of r){let r=this.getRelativeFilePath(t.filePath);if(!n[r])continue;let o=e.countViolationsByRule(t.messages),s=!1;for(let a in o){if(!n[r][a])continue;let c=n[r][a].count,l=o[a].count;l<=c&&(e.suppressMessagesByRule(t,a),s=!0),l<c&&(i[r]??={},i[r][a]??={},i[r][a].count=c-l)}for(let e in n[r])o[e]||(i[r]??={},i[r][e]=n[r][e]);s&&Object.assign(t,a(t.messages))}return{results:r,unused:i}}async load(){try{let e=await r.promises.readFile(this.filePath,`utf8`);return JSON.parse(e)}catch(e){if(e.code===`ENOENT`)return{};throw Error(`Failed to parse suppressions file at ${this.filePath}`,{cause:e})}}save(e){return r.promises.writeFile(this.filePath,o(e,{space:2}))}static countViolationsByRule(e){return e.reduce((e,t)=>(t.severity===2&&t.ruleId&&(e[t.ruleId]??={count:0},e[t.ruleId].count++),e),{})}getRelativeFilePath(e){return i.relative(this.cwd,e).split(i.sep).join(i.posix.sep)}static suppressMessagesByRule(e,t){let n=e.messages.filter(e=>e.ruleId===t);e.suppressedMessages=e.suppressedMessages.concat(n.map(e=>(e.suppressions=[{kind:`file`,justification:``}],e))),e.messages=e.messages.filter(e=>e.ruleId!==t)}}}})),vc=n(((e,n)=>{let r=t(`node:path`),i=t(`node:fs`),{isMainThread:a,threadId:o}=t(`node:worker_threads`),s=i.promises,c=vo(),l=bo(),u=Oo(),f=ko(),{Linter:p}=Zs(),{getShorthandName:m}=Qs(),{calculateStatsPerFile:h}=$s(),g=cc(),{ConfigLoader:_}=gc(),v=d(),{SuppressionsService:y}=_c(),b=u.Minimatch,x={dot:!0},S=process.hrtime.bigint;v.formatters.t=e=>`${(e+500000n)/1000000n} ms`;let C=v(`eslint:eslint-helpers${a?``:`:thread-${o}`}`);var w=class extends Error{constructor(e,t){super(`No files matching '${e}' were found${t?``:` (glob was disabled)`}.`),this.messageTemplate=`file-not-found`,this.messageData={pattern:e,globDisabled:!t}}},T=class extends Error{constructor({basePath:e,unmatchedPatterns:t,patterns:n,rawPatterns:r}){super(`No files matching '${r}' in '${e}' were found.`),this.basePath=e,this.unmatchedPatterns=t,this.patterns=n,this.rawPatterns=r}},E=class extends Error{constructor(e){super(`All files matched by '${e}' are ignored.`),this.messageTemplate=`all-matched-files-ignored`,this.messageData={pattern:e}}};function D(e){return typeof e==`string`&&e.trim()!==``}function O(e){return Array.isArray(e)&&!!e.length&&e.every(D)}function k(e){return Array.isArray(e)&&e.every(D)}function A(e){return Number.isInteger(e)&&e>0}function j(e){return e.replace(/\\/gu,`/`)}function M(e){return c(r.sep===`\\`?j(e):e)}async function N({basePath:e,pattern:t}){let n=!1,{hfs:i}=await import(`./src-D7slgxDU.js`),a=new b(j(r.relative(e,t)),x);return await i.isDirectory(e)?i.walk(e,{directoryFilter(e){return!n&&a.match(e.path,!0)},entryFilter(e){return n||e.isDirectory?!1:a.match(e.path)?(n=!0,!0):!1}}).next().then(()=>n):n}async function P({basePath:e,patterns:t,rawPatterns:n,configLoader:i,errorOnUnmatchedPattern:a}){if(t.length===0)return[];let o=new Map,s=t.map((n,i)=>{let a=j(r.relative(e,n));return o.set(a,t[i]),new b(a,x)}),c=new Set([...o.keys()]),{hfs:l}=await import(`./src-D7slgxDU.js`),u=l.walk(e,{async directoryFilter(t){if(!s.some(e=>e.match(t.path,!0)))return!1;let n=r.resolve(e,t.path);return!(await i.loadConfigArrayForDirectory(n)).isDirectoryIgnored(n)},async entryFilter(t){let n=r.resolve(e,t.path);if(t.isDirectory)return!1;let a=(await i.loadConfigArrayForFile(n)).getConfig(n);return(c.size>0?s.reduce((e,n)=>{let r=n.match(t.path);return r&&a&&c.delete(n.pattern),r||e},!1):s.some(e=>e.match(t.path)))&&a!==void 0}}),d=[];if(await l.isDirectory(e))for await(let t of u)d.push(r.resolve(e,t.path));if(a&&c.size>0)throw new T({basePath:e,unmatchedPatterns:[...c].map(e=>o.get(e)),patterns:t,rawPatterns:n});return d}async function F({basePath:e,patterns:t,rawPatterns:n,unmatchedPatterns:r}){let i=r[0],a=n[t.indexOf(i)];throw await N({basePath:e,pattern:i})?new E(a):new w(a,!0)}async function I({searches:e,configLoader:t,errorOnUnmatchedPattern:n}){let r=[...e].map(([e,{patterns:t,rawPatterns:n}])=>({basePath:e,patterns:t,rawPatterns:n})).filter(({patterns:e})=>e.length>0),i=await Promise.allSettled(r.map(({basePath:e,patterns:r,rawPatterns:i})=>P({basePath:e,patterns:r,rawPatterns:i,configLoader:t,errorOnUnmatchedPattern:n})));for(let e=0;e<i.length;e++){let t=i[e],a=r[e];if(t.status===`fulfilled`)continue;let o=t.reason;if(!o.basePath)throw o;n&&await F({...a,unmatchedPatterns:o.unmatchedPatterns})}return i.flatMap(e=>e.value)}async function L({patterns:e,globInputPaths:t,cwd:n,configLoader:i,errorOnUnmatchedPattern:a}){let o=[],c=[],l=[],u=[],d=new Map([[n,{patterns:l,rawPatterns:[]}]]),p=e.map(e=>r.resolve(n,e)),m=await Promise.all(p.map(e=>s.stat(e).catch(()=>{}))),h=[];if(m.forEach((a,s)=>{let m=p[s],g=j(e[s]);if(a){a.isFile()&&(o.push(m),h.push(i.loadConfigArrayForFile(m))),a.isDirectory()&&(d.has(m)||d.set(m,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:u}=d.get(m),l.push(`${j(m)}/**`),u.push(g));return}if(t&&M(g)){let e=r.resolve(n,f(g));d.has(e)||d.set(e,{patterns:[],rawPatterns:[]}),{patterns:l,rawPatterns:u}=d.get(e),l.push(m),u.push(g)}else c.push(g)}),a&&c.length)throw new w(c[0],t);h.push(I({searches:d,configLoader:i,errorOnUnmatchedPattern:a}));let g=(await Promise.all(h)).at(-1);return[...new Set([...o,...g])]}function R(e){return r.join(e,`__placeholder__.js`)}function z(e){return e.severity===2}function ee(e,t,n){let i;switch(n){case`external`:i=`File ignored because outside of base path.`;break;case`unconfigured`:i=`File ignored because no matching configuration was supplied.`;break;default:i=t&&r.dirname(r.relative(t,e)).split(r.sep).includes(`node_modules`)?`File ignored by default because it is located under the node_modules directory. Use ignore pattern "!**/node_modules/" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`:`File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`;break}return{filePath:e,messages:[{ruleId:null,fatal:!1,severity:1,message:i}],suppressedMessages:[],errorCount:0,warningCount:1,fatalErrorCount:0,fixableErrorCount:0,fixableWarningCount:0}}function B(e){return e===`directive`||e===`problem`||e===`suggestion`||e===`layout`}function te(e){return Array.isArray(e)&&e.every(B)}var V=class e extends Error{constructor(t){super(`Invalid Options:\n- ${t.join(`
256
+ - `)}`),this.code=`ESLINT_INVALID_OPTIONS`,Error.captureStackTrace(this,e)}};function H({allowInlineConfig:e=!0,baseConfig:t=null,cache:n=!1,cacheLocation:i=`.eslintcache`,cacheStrategy:a=`metadata`,concurrency:o=`off`,cwd:s=process.cwd(),errorOnUnmatchedPattern:c=!0,fix:l=!1,fixTypes:u=null,flags:d=[],globInputPaths:f=!0,ignore:p=!0,ignorePatterns:m=null,overrideConfig:h=null,overrideConfigFile:g=null,plugins:_={},stats:v=!1,warnIgnored:b=!0,passOnNoPatterns:x=!1,ruleFilter:S=()=>!0,applySuppressions:C=!1,suppressionsLocation:w=y.DEFAULT_SUPPRESSIONS_FILENAME,...T}){let E=[],O=Object.keys(T);if(O.length>=1&&(E.push(`Unknown options: ${O.join(`, `)}`),O.includes(`cacheFile`)&&E.push(`'cacheFile' has been removed. Please use the 'cacheLocation' option instead.`),O.includes(`configFile`)&&E.push(`'configFile' has been removed. Please use the 'overrideConfigFile' option instead.`),O.includes(`envs`)&&E.push(`'envs' has been removed.`),O.includes(`extensions`)&&E.push(`'extensions' has been removed.`),O.includes(`resolvePluginsRelativeTo`)&&E.push(`'resolvePluginsRelativeTo' has been removed.`),O.includes(`globals`)&&E.push(`'globals' has been removed. Please use the 'overrideConfig.languageOptions.globals' option instead.`),O.includes(`ignorePath`)&&E.push(`'ignorePath' has been removed.`),O.includes(`ignorePattern`)&&E.push(`'ignorePattern' has been removed. Please use the 'overrideConfig.ignorePatterns' option instead.`),O.includes(`parser`)&&E.push(`'parser' has been removed. Please use the 'overrideConfig.languageOptions.parser' option instead.`),O.includes(`parserOptions`)&&E.push(`'parserOptions' has been removed. Please use the 'overrideConfig.languageOptions.parserOptions' option instead.`),O.includes(`rules`)&&E.push(`'rules' has been removed. Please use the 'overrideConfig.rules' option instead.`),O.includes(`rulePaths`)&&E.push(`'rulePaths' has been removed. Please define your rules using plugins.`),O.includes(`reportUnusedDisableDirectives`)&&E.push(`'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.`)),typeof e!=`boolean`&&E.push(`'allowInlineConfig' must be a boolean.`),typeof t!=`object`&&E.push(`'baseConfig' must be an object or null.`),typeof n!=`boolean`&&E.push(`'cache' must be a boolean.`),D(i)||E.push(`'cacheLocation' must be a non-empty string.`),a!==`metadata`&&a!==`content`&&E.push(`'cacheStrategy' must be any of "metadata", "content".`),o!==`off`&&o!==`auto`&&!A(o)&&E.push(`'concurrency' must be a positive integer, "auto", or "off".`),(!D(s)||!r.isAbsolute(s))&&E.push(`'cwd' must be an absolute path.`),typeof c!=`boolean`&&E.push(`'errorOnUnmatchedPattern' must be a boolean.`),typeof l!=`boolean`&&typeof l!=`function`&&E.push(`'fix' must be a boolean or a function.`),u!==null&&!te(u)&&E.push(`'fixTypes' must be an array of any of "directive", "problem", "suggestion", and "layout".`),k(d)||E.push(`'flags' must be an array of non-empty strings.`),typeof f!=`boolean`&&E.push(`'globInputPaths' must be a boolean.`),typeof p!=`boolean`&&E.push(`'ignore' must be a boolean.`),!k(m)&&m!==null&&E.push(`'ignorePatterns' must be an array of non-empty strings or null.`),typeof h!=`object`&&E.push(`'overrideConfig' must be an object or null.`),!D(g)&&g!==null&&g!==!0&&E.push(`'overrideConfigFile' must be a non-empty string, null, or true.`),typeof x!=`boolean`&&E.push(`'passOnNoPatterns' must be a boolean.`),typeof _==`object`?_!==null&&Object.keys(_).includes(``)&&E.push(`'plugins' must not include an empty string.`):E.push(`'plugins' must be an object or null.`),Array.isArray(_)&&E.push(`'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead.`),typeof v!=`boolean`&&E.push(`'stats' must be a boolean.`),typeof b!=`boolean`&&E.push(`'warnIgnored' must be a boolean.`),typeof S!=`function`&&E.push(`'ruleFilter' must be a function.`),typeof C!=`boolean`&&E.push(`'applySuppressions' must be a boolean.`),D(w)||E.push(`'suppressionsLocation' must be a non-empty string.`),E.length>0)throw new V(E);return{allowInlineConfig:e,baseConfig:t,cache:n,cacheLocation:i,cacheStrategy:a,concurrency:o,configFile:g===!0?!1:g,overrideConfig:h,cwd:r.normalize(s),errorOnUnmatchedPattern:c,fix:l,fixTypes:u,flags:[...d],globInputPaths:f,ignore:p,ignorePatterns:m,stats:v,passOnNoPatterns:x,warnIgnored:b,ruleFilter:S,applySuppressions:C,suppressionsLocation:w}}async function U(e){return(await import(e)).default}function W(e,t,{prefix:n=`.cache_`}={}){let a=r.normalize(e),o=r.resolve(t,a),s=a.slice(-1)===r.sep;function c(){return r.join(o,`${n}${l(t)}`)}let u;try{u=i.lstatSync(o)}catch{u=null}return u?u.isDirectory()||s?c():o:s?c():o}function ne({cache:e,cacheStrategy:t},n){return e?new g(n,t):null}function re(e,t,n){if(!e.ruleId)return n.has(`directive`);let r=e.ruleId&&t.getRuleDefinition(e.ruleId);return!!(r&&r.meta&&n.has(r.meta.type))}function G(e,t,n){if(!e||!t)return e;let r=typeof e==`function`?e:()=>!0;return e=>re(e,n,t)&&r(e)}function ie({text:e,cwd:t,filePath:n,configs:i,fix:a,allowInlineConfig:o,ruleFilter:s,stats:c,linter:l}){let u=S(),d=n||`<text>`,f=d===`<text>`?R(t):d,{fixed:p,messages:m,output:g}=l.verifyAndFix(e,i,{allowInlineConfig:o,filename:f,fix:a,ruleFilter:s,stats:c,filterCodeBlock(e){return i.getConfig(e)!==void 0}}),_={filePath:d===`<text>`?d:r.resolve(d),messages:m,suppressedMessages:l.getSuppressedMessages(),...h(m)};return p&&(_.output=g),_.errorCount+_.warningCount>0&&_.output===void 0&&(_.source=e),c&&(_.stats={times:l.getTimes(),fixPasses:l.getFixPassCount()}),C(`File "%s" linted in %t`,d,S()-u),_}async function ae(e,t,n,r,i,a,o,c){let l=t.getConfig(e),{allowInlineConfig:u,cwd:d,fix:f,fixTypes:p,ruleFilter:m,stats:h,warnIgnored:g}=n,_=p?new Set(p):null;if(!l)return g?ee(e,d,t.getConfigStatus(e)):void 0;if(i){let t=i.getCachedLintResults(e,l);if(t)if(t.messages&&t.messages.length>0&&f)C(`Reprocessing cached file to allow autofix: ${e}`);else return C(`Skipping file since it hasn't changed: ${e}`),t}let v=G(f,_,l);async function y(){let n=S(),i=await s.readFile(e,{encoding:`utf8`,signal:c?.signal}),o=S()-n;return C(`File "%s" read in %t`,e,o),a&&(a.duration+=o),c?.signal.throwIfAborted(),ie({text:i,filePath:e,configs:t,cwd:d,fix:v,allowInlineConfig:u,ruleFilter:m,stats:h,linter:r})}return(o?o.retry(y,{signal:c?.signal}):y()).catch(e=>{throw c?.abort(e),e})}function oe(e){if(!process.env.ESLINT_FLAGS)return e;let t=process.env.ESLINT_FLAGS.trim().split(/\s*,\s*/gu);return Array.from(new Set([...t,...e]))}function se({cwd:e,flags:t},n){return new p({configType:`flat`,cwd:e,flags:oe(t),warningService:n})}function ce(e){let t=[];if(e){let n={};for(let[t,r]of Object.entries(e))n[m(t,`eslint-plugin`)]=r;t.push({plugins:n})}return t}function le({cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignore:i,ignorePatterns:a},o,s,c){return new _({cwd:e,baseConfig:t,overrideConfig:n,configFile:r,ignoreEnabled:i,ignorePatterns:a,defaultConfigs:o,hasUnstableNativeNodeJsTSConfigFlag:s.hasFlag(`unstable_native_nodejs_ts_config`),warningService:c})}n.exports={createDebug:v,findFiles:L,isNonEmptyString:D,isArrayOfNonEmptyString:O,createIgnoreResult:ee,isErrorMessage:z,getPlaceholderPath:R,processOptions:H,loadOptionsFromModule:U,getCacheFile:W,createLintResultCache:ne,getFixerForFixTypes:G,verifyText:ie,lintFile:ae,createLinter:se,createDefaultConfigs:ce,createConfigLoader:le}})),yc=n((e=>{function t(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function n(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function r(e,t){return e.age>t}function i(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var a=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}};e.Retrier=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=6e4,maxDelay:n=100,concurrency:r=1e3}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:n,promise:r,resolve:i,reject:o}){let s;try{s=e()}catch(e){return o(Error(`Synchronous error: ${e.message}`,{cause:e})),r}return!s||typeof s.then!=`function`?(o(Error(`Result is not a promise.`)),r):(this.#n++,r.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(s).then(e=>{t(`Function called successfully without retry.`),i(e)}).catch(r=>{if(!this.#o(r)){o(r);return}let s=new a(e,r,i,o,n);t(`Function failed, queuing for retry with task ${s.id}.`),this.#e.push(s),n?.addEventListener(`abort`,()=>{t(`Task ${s.id} was aborted due to AbortSignal.`),o(n.reason)}),this.#d()}),r)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:a}=i();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:a})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){t(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let n=Math.min(this.pending,e);for(let e=0;e<n;e++)this.#t.shift()?.();t(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,t(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},i=this.#e.shift();if(!i){t(`Queue is empty, exiting.`),this.pending&&e();return}if(r(i,this.#r)){t(`Task ${i.id} was abandoned due to timeout.`),i.reject(i.error),e();return}if(!n(i,this.#i)){t(`Task ${i.id} is not ready to retry, skipping.`),this.#e.push(i),e();return}i.lastAttempt=Date.now(),Promise.resolve(i.fn()).then(e=>{t(`Task ${i.id} succeeded after ${i.age}ms.`),i.resolve(e)}).catch(e=>{if(!this.#o(e)){t(`Task ${i.id} failed with non-retryable error: ${e.message}.`),i.reject(e);return}i.lastAttempt=Date.now(),this.#e.push(i),t(`Task ${i.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),bc=n((e=>{let n=t(`node:module`).createRequire;function r(e,t){return n(t).resolve(e)}e.resolve=r})),xc=n(((e,n)=>{_();let{existsSync:r}=t(`node:fs`),i=t(`node:fs/promises`),a=t(`node:os`),o=t(`node:path`),{pathToFileURL:s,fileURLToPath:c}=t(`node:url`),{SHARE_ENV:l,Worker:u}=t(`node:worker_threads`),{version:d}=f(),{defaultConfig:p}=co(),m=uo(),g={stylish:po(),html:mo(),json:ho(),"json-with-metadata":go()},{createDebug:v,findFiles:y,getCacheFile:b,isNonEmptyString:x,isArrayOfNonEmptyString:S,createIgnoreResult:C,isErrorMessage:w,getPlaceholderPath:T,processOptions:E,loadOptionsFromModule:D,getFixerForFixTypes:O,verifyText:k,lintFile:A,createLinter:j,createLintResultCache:M,createDefaultConfigs:N,createConfigLoader:P}=vc(),{Retrier:F}=yc(),{ConfigLoader:I}=gc(),{WarningService:L}=Us(),{SuppressionsService:R}=_c(),{Config:z}=Ms(),{getShorthandName:ee,getNamespaceFromTerm:B,normalizePackageName:te}=Qs(),{resolve:V}=bc(),H=process.hrtime.bigint,U=v(`eslint:eslint`),W=new WeakMap,ne=new Set([`checkstyle`,`codeframe`,`compact`,`jslint-xml`,`junit`,`table`,`tap`,`unix`,`visualstudio`]),re=new Set([`ENFILE`,`EMFILE`]);function G(e){return Array.from(e).reduce((e,[t,n])=>(e[t]=n.meta,e),{})}let ie=new WeakMap;function ae(e,t){let{options:{cwd:n},configLoader:r}=W.get(e),i=o.isAbsolute(t)?t:T(n),a=r.getCachedConfigArrayForFile(i).getConfig(i);if(a&&!ie.has(a)){let e=[];if(a.rules)for(let[t,n]of Object.entries(a.rules)){if(z.getRuleNumericSeverity(n)===0)continue;let r=a.getRuleDefinition(t),i=r&&r.meta;if(i&&i.deprecated){let n=typeof i.deprecated==`object`;e.push({ruleId:t,replacedBy:n?i.deprecated.replacedBy?.map(e=>`${e.plugin?.name===void 0?``:`${ee(e.plugin.name,`eslint-plugin`)}/`}${e.rule?.name??``}`)??[]:i.replacedBy||[],info:n?i.deprecated:void 0})}}ie.set(a,Object.freeze(e))}return a?ie.get(a):Object.freeze([])}function oe(e,t){let n={configurable:!0,enumerable:!0,get(){return ae(e,this.filePath)}};for(let e of t)Object.defineProperty(e,`usedDeprecatedRules`,n);return t}function se(e,t){return e.filePath<t.filePath?-1:e.filePath>t.filePath?1:0}async function ce({configFile:e,cwd:t}){let n=await new I({cwd:t,configFile:e}).findConfigFileForPath(o.join(t,`__placeholder__.js`));if(!n)throw Error(`No ESLint configuration file was found.`);return{configFilePath:n,basePath:e?t:o.dirname(n)}}function le(e){return TypeError(`Results object was not created from this ESLint instance.`,{cause:e})}function ue(e,t){let n=Math.ceil(e/50);return n>t&&(n=t),n<=1&&(n=0),n}function de(e,t,n,r){let i=e.getValidCachedLintResults(n,r);return!i||t&&i.messages&&i.messages.length>0}function fe(e,t,n){let r=H(),{configLoader:i,lintResultCache:a,options:{cacheStrategy:o,fix:s}}=W.get(e),c=!a||o===`content`,l=0,u=t.length,d=0;for(let e of t){let t=ue(l+u,n);if(d>=t)break;u--;let r=i.getCachedConfigArrayForFile(e).getConfig(e);r&&(c||de(a,s,e,r))&&(l++,d=ue(l,n))}return U(`%d file(s) to process counted in %t`,l,H()-r),d}function pe(e,t,{availableParallelism:n}=a){let{concurrency:r}=W.get(e).options;switch(r){case`off`:return 0;case`auto`:return fe(e,t,n()>>1);default:{let e=Math.min(r,t.length);return e>1?e:0}}}let me=Symbol(`Do not check for uncloneable options.`);async function he(e,t,n,r){let i=e.length,a=Array(i),c=s(o.join(h,`./worker.js`)),d=new Uint32Array(new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT)),f=new AbortController,p=f.signal,g={env:l,workerData:{eslintOptionsOrURL:n,filePathIndexArray:d,filePaths:e}},_=1;function v(e,t){let n=H(),r=new u(c,g);r.once(`message`,t=>{let r=H()-n,i=Number(t.netLintingDuration)/Number(r);_=Math.min(_,i),m.enabled&&t.timings&&m.mergeData(t.timings);for(let e of t){let{index:t}=e;delete e.index,a[t]=e}e()}),r.once(`error`,e=>{f.abort(e),t(e)}),p.addEventListener(`abort`,()=>r.terminate())}let y=Array(t);for(let e=0;e<t;++e)y[e]=new Promise(v);try{await Promise.all(y)}catch(e){throw m.disableDisplay(),e}return _<.7&&r(),a}async function ge(e,t,n,r,i){let{configLoader:a,lintResultCache:o}=W.get(e),s=await he(t,n,r,i);return o&&s.forEach((e,n)=>{if(e){let r=t[n],i=a.getCachedConfigArrayForFile(r).getConfig(r);i&&o.setCachedLintResults(r,i,e)}}),s}async function _e(e,t){let{configLoader:n,linter:r,lintResultCache:i,options:a}=W.get(e),o=new AbortController,s=new F(e=>re.has(e.code),{concurrency:100});return await Promise.all(t.map(async e=>{let t=n.getCachedConfigArrayForFile(e),c=t.getConfig(e),l=await A(e,t,a,r,i,null,s,o);return c&&i?.setCachedLintResults(e,c,l),l}))}function K(e){try{structuredClone(e);return}catch{}let t=Object.keys(e).filter(t=>{try{structuredClone(e[t])}catch{return!0}return!1}).sort(),n=TypeError(`The ${t.length===1?`option`:`options`} ${new Intl.ListFormat(`en-US`).format(t.map(e=>`"${e}"`))} cannot be cloned. When concurrency is enabled, all options must be cloneable values (JSON values). Remove uncloneable options or use an options module.`);throw n.code=`ESLINT_UNCLONEABLE_OPTIONS`,n}var ve=class e{static configType=`flat`;#e;#t;constructor(e={}){let t=E(e);!e[me]&&t.concurrency!==`off`&&(K(e),this.#t=e);let n=new L,i=j(t,n),a=b(t.cacheLocation,t.cwd),s=M(t,a),c=null;t.applySuppressions&&(c=new R({filePath:b(t.suppressionsLocation,t.cwd,{prefix:`suppressions_`}),cwd:t.cwd}));let l=N(e.plugins);this.#e=P(t,l,i,n),U(`Using config loader ${this.#e.constructor.name}`),W.set(this,{options:t,linter:i,cacheFilePath:a,lintResultCache:s,defaultConfigs:l,configs:null,configLoader:this.#e,warningService:n,suppressionsService:c}),r(o.resolve(t.cwd,`.eslintignore`))&&n.emitESLintIgnoreWarning()}static get version(){return d}static get defaultConfig(){return p}static async outputFixes(e){if(!Array.isArray(e))throw Error(`'results' must be an array`);let t=new F(e=>re.has(e.code),{concurrency:100});await Promise.all(e.filter(e=>{if(typeof e!=`object`||!e)throw Error(`'results' must include only objects`);return typeof e.output==`string`&&o.isAbsolute(e.filePath)}).map(e=>t.retry(()=>i.writeFile(e.filePath,e.output))))}static getErrorResults(e){let t=[];return e.forEach(e=>{let n=e.messages.filter(w),r=e.suppressedMessages.filter(w);n.length>0&&t.push({...e,messages:n,suppressedMessages:r,errorCount:n.length,warningCount:0,fixableErrorCount:e.fixableErrorCount,fixableWarningCount:0})}),t}static async fromOptionsModule(t){if(!(t instanceof URL))throw TypeError(`Argument must be a URL object`);let n=t.href,r={...await D(n),[me]:!0},i=new e(r);return r.concurrency!==`off`&&(i.#t=n),i}getRulesMetaForResults(e){if(e.length===0)return{};let t=new Map,{configLoader:n,options:{cwd:r}}=W.get(this);for(let i of e){let e=i.filePath===`<text>`?T(r):i.filePath,a=i.messages.concat(i.suppressedMessages);for(let{ruleId:r}of a){if(!r)continue;let i;try{i=n.getCachedConfigArrayForFile(e)}catch(e){throw le(e)}let a=i.getConfig(e);if(!a)throw le();let o=a.getRuleDefinition(r);o&&t.set(r,o)}}return G(t)}hasFlag(e){return W.get(this).linter.hasFlag(e)}async lintFiles(e){let t=e,{cacheFilePath:a,lintResultCache:o,options:s,warningService:c,suppressionsService:l}=W.get(this);if(e===``||Array.isArray(e)&&e.length===0){if(s.passOnNoPatterns)return[];t=[`.`]}else{if(!x(e)&&!S(e))throw Error(`'patterns' must be a non-empty string or an array of non-empty strings`);typeof e==`string`&&(t=[e])}U(`Using file patterns: ${t}`);let{concurrency:u,cwd:d,globInputPaths:f,errorOnUnmatchedPattern:p}=s;if(!o&&a){U(`Deleting cache file at ${a}`);try{r(a)&&await i.unlink(a)}catch(e){if(r(a))throw e}}let m=H(),h=await y({patterns:t,cwd:d,globInputPaths:f,configLoader:this.#e,errorOnUnmatchedPattern:p});U(`%d file(s) found in %t`,h.length,H()-m);let g,_=n.exports.calculateWorkerCount(this,h);if(_){U(`Linting using ${_} worker thread(s).`);let e;e=_<=2?`disable concurrency`:u===`auto`?`disable concurrency or use a numeric concurrency setting`:`reduce or disable concurrency`,g=await ge(this,h,_,this.#t,()=>c.emitPoorConcurrencyWarning(e))}else U(`Linting in single-thread mode.`),g=await _e(this,h);o&&o.reconcile();let v=g.filter(e=>!!e);if(!s.applySuppressions)return oe(this,v);let{results:b}=l.applySuppressions(v,await l.load());return oe(this,b)}async lintText(e,t={}){if(typeof e!=`string`)throw Error(`'code' must be a string`);if(typeof t!=`object`)throw Error(`'options' must be an object, null, or undefined`);let{filePath:n,warnIgnored:r,...i}=t||{},a=Object.keys(i);if(a.length>0)throw Error(`'options' must not include the unknown option(s): ${a.join(`, `)}`);if(n!==void 0&&!x(n))throw Error(`'options.filePath' must be a non-empty string or undefined`);if(typeof r!=`boolean`&&r!==void 0)throw Error(`'options.warnIgnored' must be a boolean or undefined`);let{linter:s,options:c,suppressionsService:l}=W.get(this),{allowInlineConfig:u,cwd:d,fix:f,fixTypes:p,warnIgnored:m,ruleFilter:h,stats:g}=c,_=[],v=H(),y=p?new Set(p):null,b=o.resolve(d,n||`__placeholder__.js`),S=await this.#e.loadConfigArrayForFile(b),w=S?.getConfigStatus(b)??`unconfigured`;if(b&&w!==`matched`)(typeof r==`boolean`?r:m)&&_.push(C(b,d,w));else{let t=O(f,y,S.getConfig(b));_.push(k({text:e,filePath:b.endsWith(`__placeholder__.js`)?`<text>`:b,configs:S,cwd:d,fix:t,allowInlineConfig:u,ruleFilter:h,stats:g,linter:s}))}if(U(`Linting complete in %t`,H()-v),!n||!c.applySuppressions)return oe(this,_);let{results:T}=l.applySuppressions(_,await l.load());return oe(this,T)}async loadFormatter(e=`stylish`){if(typeof e!=`string`)throw Error(`'name' must be a string`);let t=e.replace(/\\/gu,`/`),n=B(t),{cwd:r}=W.get(this).options,i,a=!1;if(!n&&t.includes(`/`))i=o.resolve(r,t);else{if(g[t]){let e=g[t];if(typeof e!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof e}.`);let n=this;return{format(t,i){let a=null;return t.sort(se),e(t,{...i,cwd:r,get rulesMeta(){return a||=n.getRulesMetaForResults(t),a}})}}}try{i=V(te(t,`eslint-formatter`),T(r))}catch{i=o.resolve(h,`../`,`cli-engine`,`formatters`,`${t}.js`),a=!0}}let c;try{c=(await import(s(i))).default}catch(t){throw a&&ne.has(e)?t.message=`The ${e} formatter is no longer part of core ESLint. Install it manually with \`npm install -D eslint-formatter-${e}\``:t.message=`There was a problem loading formatter: ${i}\nError: ${t.message}`,t}if(typeof c!=`function`)throw TypeError(`Formatter must be a function, but got a ${typeof c}.`);let l=this;return{format(e,t){let n=null;return e.sort(se),c(e,{...t,cwd:r,get rulesMeta(){return n||=l.getRulesMetaForResults(e),n}})}}}async calculateConfigForFile(e){if(!x(e))throw Error(`'filePath' must be a non-empty string`);let t=W.get(this).options,n=o.resolve(t.cwd,e),r=await this.#e.loadConfigArrayForFile(n);if(!r){let e=Error(`Could not find config file.`);throw e.messageTemplate=`config-file-missing`,e}return r.getConfig(n)}async findConfigFile(e){let t=W.get(this).options,n=o.join(t.cwd,`__placeholder__`);return this.#e.findConfigFileForPath(e??n).catch(()=>void 0)}async isPathIgnored(e){return await this.calculateConfigForFile(e)===void 0}};async function ye(){return!0}n.exports={ESLint:ve,shouldUseFlatConfig:ye,locateConfigFileToUse:ce,calculateWorkerCount:pe}}));export{f as C,_ as S,Qa as _,Qs as a,zr as b,Is as c,Ro as d,Io as f,to as g,so as h,sc as i,Ms as l,co as m,vc as n,Zs as o,jo as p,_c as r,Js as s,xc as t,As as u,Xa as v,d as w,g as x,Ka as y};